:root {
    --primary: #1a1a1a;
    --secondary: #f5f5f0;
    --accent: #c9a961;
    --text: #2d2d2d;
    --text-light: #666;
    --border: #e0e0d8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cormorant Garamond', serif;
    background: var(--secondary);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(245, 245, 240, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

nav .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.02em;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 3rem;
}

nav a {
    text-decoration: none;
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    color: var(--accent);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 3rem 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: -20%;
    width: 60%;
    height: 100%;
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(5deg); }
}

.hero-content {
    max-width: 1400px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3.5rem, 8vw, 7rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 2rem;
    color: var(--primary);
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero .subtitle {
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 800px;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-button {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--primary);
    color: var(--secondary);
    text-decoration: none;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid var(--primary);
    animation: fadeInUp 0.8s ease-out 0.6s both;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--accent);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.cta-button:hover::before {
    left: 0;
}

.cta-button:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Section Styling */
section {
    padding: 8rem 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 5rem;
    text-align: center;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--accent);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.project-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.project-card {
    background: white;
    border: 1px solid var(--border);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
    border-color: var(--accent);
}

.project-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #f5f5f0 0%, #e8e8dc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--accent);
    transition: transform 0.4s ease;
    overflow: hidden;
    position: relative;
}

.project-card:hover .project-image {
    transform: scale(1.05);
}

.project-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(26, 26, 26, 0.05) 100%);
}

.project-content {
    padding: 2rem;
}

.project-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary);
}

.project-card p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.7;
}

.project-tags {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.4rem 1rem;
    background: var(--secondary);
    color: var(--text);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.project-card:hover .tag {
    background: rgba(201, 169, 97, 0.1);
    border-color: var(--accent);
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--primary);
}

.about-text p {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.about-image {
    width: 100%;
    height: 100%;
    min-height: 500px;
    background: linear-gradient(135deg, var(--primary) 0%, #2d2d2d 100%);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.about-skills {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
}

.skill-category {
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(245, 245, 240, 0.2);
}

.skill-category:last-child {
    border-bottom: none;
}

.skill-category h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    color: var(--accent);
    margin-bottom: 0.8rem;
    letter-spacing: 0.05em;
}

.skill-category p {
    font-size: 1rem;
    color: rgba(245, 245, 240, 0.8);
    line-height: 1.6;
}

/* Blog Section */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.blog-card {
    background: white;
    border: 1px solid var(--border);
    padding: 2.5rem;
    transition: all 0.4s ease;
    cursor: pointer;
}

.blog-card:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    box-shadow: 0 15px 45px rgba(0,0,0,0.1);
}

.blog-date {
    font-size: 0.95rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.blog-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary);
    line-height: 1.3;
}

.blog-card p {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.read-more {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--accent);
    font-size: 1rem;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.read-more:hover {
    transform: translateX(5px);
}

/* Contact Section */
.contact-section {
    background: var(--primary);
    color: var(--secondary);
    margin: 0;
    max-width: 100%;
}

.contact-content {
    max-width: 800px;
    margin: 0 auto;
}

.contact-section .section-title {
    color: var(--secondary);
}

.contact-section .section-title::after {
    background: var(--accent);
}

.contact-form {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    letter-spacing: 0.05em;
    color: var(--secondary);
}

.form-group input,
.form-group textarea {
    padding: 1.2rem;
    background: rgba(245, 245, 240, 0.05);
    border: 1px solid rgba(245, 245, 240, 0.2);
    color: var(--secondary);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(245, 245, 240, 0.4);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(245, 245, 240, 0.08);
}

.form-group textarea {
    min-height: 180px;
    resize: vertical;
}

.submit-button {
    padding: 1.3rem 3rem;
    background: var(--accent);
    color: var(--primary);
    border: 2px solid var(--accent);
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: all 0.4s ease;
    justify-self: start;
}

.submit-button:hover {
    background: transparent;
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(201, 169, 97, 0.3);
}

/* Footer */
footer {
    background: var(--primary);
    color: var(--secondary);
    padding: 3rem;
    text-align: center;
    border-top: 1px solid rgba(245, 245, 240, 0.1);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.social-links a {
    color: var(--secondary);
    font-size: 1.1rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--accent);
}

footer p {
    font-size: 1rem;
    color: rgba(245, 245, 240, 0.6);
}

/* Responsive */
@media (max-width: 968px) {
    nav .container {
        padding: 1.5rem 2rem;
    }

    nav ul {
        gap: 2rem;
    }

    .hero {
        padding: 6rem 2rem 3rem;
    }

    section {
        padding: 5rem 2rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-image {
        min-height: 400px;
    }

    .projects-grid,
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    nav ul {
        gap: 1.5rem;
        font-size: 1rem;
    }

    .logo {
        font-size: 1.4rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    nav .container {
        padding: 1rem 1.5rem;
    }

    .hero {
        padding: 5rem 1.5rem 2rem;
    }

    section {
        padding: 4rem 1.5rem;
    }

    .projects-grid,
    .blog-grid {
        gap: 2rem;
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background: var(--accent);
    color: white;
}

/* Scrollbar styling for webkit browsers */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #b89851;
}

/* =========================================
   HAMBURGER MENU & MOBILE NAVIGATION
   Add this to the very bottom of your CSS
   ========================================= */

/* 1. Hamburger Icon (Hidden on Desktop) */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001; /* Ensure it sits above the menu overlay */
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--primary); /* Uses your existing dark color */
    transition: all 0.3s ease-in-out;
}
@media (max-width: 768px) {
    
    /* Disable animation on nav to prevent bugs */
    nav {
        animation: none !important;
        height: auto;
        overflow: visible;
    }

    /* --- HAMBURGER --- */
    .hamburger {
        display: block;
        z-index: 1002; /* High z-index */
    }

    /* --- OVERLAY (The "Touch Content" area) --- */
    .menu-overlay {
        display: block; /* Make sure it exists on mobile */
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        backdrop-filter: blur(2px);
    }

    /* Show overlay when active */
    .menu-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    /* --- MENU DRAWER --- */
    nav ul.nav-menu {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background: var(--secondary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1001; /* Above overlay */
        padding-top: 2rem; /* Space for close button */
    }

    nav ul.nav-menu.active {
        right: 0;
    }

    /* --- MANUAL CLOSE BUTTON (Inside Menu) --- */
    .menu-close-btn {
        display: block; /* Show the X button on mobile */
        position: absolute;
        top: 20px;
        right: 25px;
        font-size: 2.5rem;
        color: var(--primary);
        cursor: pointer;
        line-height: 1;
        padding: 10px;
    }
    

    /* Hide Hamburger when menu is open (optional, since we have the close button) */
    .hamburger.active {
        opacity: 0;
        pointer-events: none;
    }

    nav ul li a {
        font-size: 1.5rem;
        font-family: 'Playfair Display', serif;
        color: var(--primary);
    }
}

/* =========================================
   FINAL FIX: FORCE HIDE ON DESKTOP
   Paste this at the very bottom of style.css
   ========================================= */

@media (min-width: 769px) {
    .menu-close-btn, 
    .menu-overlay, 
    .hamburger {
        display: none !important;
    }
}
