/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Source Sans Pro', sans-serif;
    line-height: 1.6;
    color: #2c2c2c;
    overflow-x: hidden;
    background: #f8f6f0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Vintage Film Grain Effect */
.film-grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 1px 1px, rgba(139, 69, 19, 0.15) 1px, transparent 0);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 1000;
    animation: grain-move 8s linear infinite;
    opacity: 0.3;
}

@keyframes grain-move {
    0%, 100% { transform: translate(0, 0); }
    10% { transform: translate(-5%, -10%); }
    20% { transform: translate(-15%, 5%); }
    30% { transform: translate(7%, -25%); }
    40% { transform: translate(-5%, 25%); }
    50% { transform: translate(-15%, 10%); }
    60% { transform: translate(15%, 0%); }
    70% { transform: translate(0%, 15%); }
    80% { transform: translate(3%, 35%); }
    90% { transform: translate(-10%, 10%); }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(248, 246, 240, 0.95);
    backdrop-filter: blur(10px);
    z-index: 999;
    transition: all 0.3s ease;
    border-bottom: 1px solid #d4af37;
    box-shadow: 0 2px 20px rgba(212, 175, 55, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.nav-logo {
    position: relative;
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    color: #8b4513;
    letter-spacing: 2px;
}

.logo-ornament {
    position: absolute;
    bottom: -5px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-link {
    text-decoration: none;
    color: #2c2c2c;
    font-weight: 400;
    font-size: 1.1rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    text-transform: uppercase;
}

.nav-link:hover {
    color: #8b4513;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 1px;
    background: #d4af37;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 2px;
    background: #8b4513;
    margin: 4px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background-image: url('Maher.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.vintage-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(139, 69, 19, 0.8) 0%,
        rgba(160, 82, 45, 0.7) 25%,
        rgba(210, 180, 140, 0.6) 50%,
        rgba(139, 69, 19, 0.8) 100%
    );
}

.geometric-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(30deg, transparent 40%, rgba(212, 175, 55, 0.1) 50%, transparent 60%),
        linear-gradient(150deg, transparent 40%, rgba(212, 175, 55, 0.1) 50%, transparent 60%);
    background-size: 100px 100px;
    animation: pattern-shift 20s linear infinite;
}

@keyframes pattern-shift {
    0% { background-position: 0 0, 0 0; }
    100% { background-position: 100px 100px, -100px 100px; }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
}

.vintage-frame {
    background: rgba(248, 246, 240, 0.1);
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 10px;
    padding: 3rem;
    backdrop-filter: blur(5px);
    position: relative;
}

.vintage-frame::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 5px;
}

.hero-title {
    font-family: 'Playfair Display', serif;
    margin-bottom: 1.5rem;
    position: relative;
}

.title-greeting {
    display: block;
    font-size: 1.5rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
    letter-spacing: 2px;
    animation: elegant-fade-in 1s ease-out;
}

.title-name {
    display: block;
    font-size: 4.5rem;
    font-weight: 900;
    color: #d4af37;
    letter-spacing: 3px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: elegant-slide-up 1s ease-out 0.3s both;
}

.title-ornament {
    width: 150px;
    height: 3px;
    background: linear-gradient(90deg, #d4af37, #f4e4bc, #d4af37);
    margin: 1rem 0;
    position: relative;
    animation: ornament-expand 1s ease-out 0.6s both;
}

.title-ornament::before,
.title-ornament::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 8px;
    height: 8px;
    background: #d4af37;
    border-radius: 50%;
    transform: translateY(-50%);
}

.title-ornament::before {
    left: -15px;
}

.title-ornament::after {
    right: -15px;
}

@keyframes elegant-fade-in {
    0% { opacity: 0; transform: translateY(-20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes elegant-slide-up {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes ornament-expand {
    0% { width: 0; opacity: 0; }
    100% { width: 150px; opacity: 1; }
}

.hero-subtitle {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
    font-style: italic;
    letter-spacing: 1px;
    animation: elegant-fade-in 1s ease-out 0.9s both;
}

.hero-description {
    margin-bottom: 2rem;
    animation: elegant-fade-in 1s ease-out 1.2s both;
}

.hero-description p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    letter-spacing: 0.5px;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    animation: elegant-fade-in 1s ease-out 1.5s both;
}

.btn {
    padding: 15px 35px;
    border: 2px solid #d4af37;
    border-radius: 0;
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Source Sans Pro', sans-serif;
}

.btn-primary {
    background: #d4af37;
    color: #2c2c2c;
}

.btn-secondary {
    background: transparent;
    color: #d4af37;
}

.vintage-btn {
    position: relative;
    z-index: 1;
}

.vintage-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.3);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.6s ease;
}

.vintage-btn:hover .btn-shine {
    left: 100%;
}

.art-deco-frame {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.deco-lines {
    position: absolute;
    width: 300px;
    height: 300px;
    border: 2px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    animation: rotate-slow 30s linear infinite;
}

.deco-lines::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 50%;
}

@keyframes rotate-slow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.vintage-badge {
    background: rgba(248, 246, 240, 0.9);
    border: 2px solid #d4af37;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    color: #8b4513;
    letter-spacing: 1px;
    animation: badge-pulse 3s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

.vintage-arrow {
    width: 2px;
    height: 30px;
    background: #d4af37;
    margin: 0 auto 10px;
    position: relative;
    animation: arrow-bounce 2s infinite;
}

.vintage-arrow::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 8px solid #d4af37;
}

@keyframes arrow-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

.scroll-indicator span {
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Section Styles */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: #8b4513;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.title-ornament-left,
.title-ornament-right {
    position: absolute;
    top: 50%;
    width: 60px;
    height: 2px;
    background: #d4af37;
    transform: translateY(-50%);
}

.title-ornament-left {
    left: -80px;
}

.title-ornament-right {
    right: -80px;
}

.title-ornament-left::before,
.title-ornament-right::before {
    content: '';
    position: absolute;
    top: 50%;
    width: 6px;
    height: 6px;
    background: #d4af37;
    border-radius: 50%;
    transform: translateY(-50%);
}

.title-ornament-left::before {
    left: -10px;
}

.title-ornament-right::before {
    right: -10px;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
    font-style: italic;
    letter-spacing: 1px;
}

/* Vintage Card Style */
.vintage-card {
    background: rgba(248, 246, 240, 0.95);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 0;
    padding: 2rem;
    box-shadow: 
        0 4px 20px rgba(139, 69, 19, 0.1),
        inset 0 1px 0 rgba(212, 175, 55, 0.1);
    position: relative;
    transition: all 0.3s ease;
}

.vintage-card::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 1px solid rgba(212, 175, 55, 0.1);
    pointer-events: none;
}

.vintage-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 8px 30px rgba(139, 69, 19, 0.15),
        inset 0 1px 0 rgba(212, 175, 55, 0.2);
}

/* About Section */
.about {
    padding: 120px 0;
    background: #f8f6f0;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-description {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 2rem;
    text-align: justify;
}

.signature {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
}

.signature-text {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 400;
    color: #8b4513;
    font-style: italic;
}

.signature-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, #d4af37, transparent);
}

.skills-vintage {
    margin-top: 3rem;
}

.skills-vintage h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #8b4513;
    margin-bottom: 2rem;
    text-align: center;
}

.skill-bars {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.skill-item {
    position: relative;
}

.skill-name {
    display: block;
    font-weight: 600;
    color: #2c2c2c;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.skill-bar {
    height: 8px;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #d4af37, #f4e4bc);
    border-radius: 4px;
    width: 0;
    transition: width 2s ease-in-out;
    position: relative;
}

.skill-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: skill-shine 2s ease-in-out;
}

@keyframes skill-shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.stats-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    transition: all 0.3s ease;
}

.stat-icon {
    font-size: 2.5rem;
    color: #d4af37;
    margin-bottom: 1rem;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    color: #8b4513;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    font-size: 1rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Portfolio Section */
.portfolio {
    padding: 120px 0;
    background: #fff;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.portfolio-item {
    transition: all 0.3s ease;
}

.portfolio-image {
    height: 250px;
    background: linear-gradient(135deg, #8b4513 0%, #d4af37 100%);
    position: relative;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(139, 69, 19, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.portfolio-item:hover .image-overlay {
    opacity: 1;
}

.overlay-content {
    text-align: center;
    color: white;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.portfolio-item:hover .overlay-content {
    transform: translateY(0);
}

.overlay-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.overlay-content p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.view-project-btn {
    background: transparent;
    border: 2px solid #d4af37;
    color: #d4af37;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.view-project-btn:hover {
    background: #d4af37;
    color: #2c2c2c;
}

.portfolio-info {
    text-align: center;
}

.project-category {
    font-size: 0.9rem;
    color: #d4af37;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.portfolio-info h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: #2c2c2c;
}

/* Contact Section */
.contact {
    padding: 120px 0;
    background: #f8f6f0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.method-icon {
    width: 50px;
    height: 50px;
    background: #d4af37;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
}

.method-info {
    display: flex;
    flex-direction: column;
}

.method-label {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.25rem;
}

.method-value {
    font-size: 1.1rem;
    color: #2c2c2c;
    font-weight: 500;
}

.contact-form h3 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #8b4513;
    margin-bottom: 2rem;
    text-align: center;
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 0;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(212, 175, 55, 0.3);
    font-size: 1rem;
    color: #2c2c2c;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: #d4af37;
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 0;
    font-size: 1rem;
    color: #666;
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-group input:focus + label,
.form-group input:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label {
    top: -10px;
    font-size: 0.8rem;
    color: #d4af37;
}

.form-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #d4af37;
    transition: width 0.3s ease;
}

.form-group input:focus ~ .form-line,
.form-group textarea:focus ~ .form-line {
    width: 100%;
}

/* Footer */
.footer {
    background: #2c2c2c;
    color: #f8f6f0;
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    position: relative;
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #d4af37;
    letter-spacing: 2px;
}

.footer-text {
    text-align: center;
    color: #ccc;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    width: 45px;
    height: 45px;
    background: transparent;
    border: 2px solid #d4af37;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d4af37;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: #d4af37;
    color: #2c2c2c;
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: rgba(248, 246, 240, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(139, 69, 19, 0.1);
        padding: 2rem 0;
        gap: 1rem;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .title-name {
        font-size: 3rem;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .stats-grid {
        flex-direction: row;
        justify-content: space-around;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .title-ornament-left,
    .title-ornament-right {
        display: none;
    }
}

@media (max-width: 480px) {
    .title-name {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        flex-direction: column;
    }
    
    .vintage-frame {
        padding: 2rem;
    }
}

/* Animation Classes */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in-up.animated {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.animated {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.animated {
    opacity: 1;
    transform: translateX(0);
}