/* 
 * Cinematic Dark Theme - Premium Polish 
 */

:root {
    --bg-color: #000000;
    --text-primary: #F5F5F7;
    --text-secondary: #86868B;
    --accent-color: #FFFFFF;
    /* Minimalist white accent */
    --font-heading: 'Playfair Display', serif;
    /* Elegant, Cinematic */
    --font-body: 'Lato', sans-serif;
    /* Clean, Professional */
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    width: 100%;
}

/* Typography Refinement */
h1 {
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    /* Slightly reduced again */
    letter-spacing: 0.05em;
    /* Cleaner spacing */
    font-weight: 300;
}

h2 {
    font-size: clamp(1.6rem, 2vw, 2rem);
    /* More modest */
    margin-bottom: var(--spacing-md);
    font-weight: 300;
    /* Lighter */
    letter-spacing: 0.02em;
}

h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    /* Lighter weight for elegance */
    color: #fff;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 60ch;
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Portfolio & Showreel Section */
.showreel-section {
    max-width: 900px;
    /* Reduced for elegance */
    margin: 0 auto;
    text-align: center;
    margin-bottom: 6rem;
    position: relative;
    z-index: 1;
}

.showreel-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 300;
    margin-bottom: 2rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
}

.showreel-title span {
    color: var(--accent-light, #e0e0e0);
}

.showreel-container {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.showreel-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Video Modal - Fix */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    display: none;
    /* Changed from flex to none to avoid ghost player */
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-modal.open {
    display: flex;
    /* Show only when open */
    opacity: 1;
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #fff;
    color: #000;
    border-radius: 50px;
    /* Apple-style pill */
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    border: 1px solid #fff;
}

.btn:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.15);
}

/* Navigation - Centered Split Layout */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 3%;
    /* Reduced side padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: background 0.4s ease, padding 0.4s ease;
    height: 140px;
}

nav.scrolled {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    padding: 0.5rem 3%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    height: 100px;
}

.nav-group {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-group.left {
    justify-content: flex-end;
    /* Align towards center logo */
    padding-right: 4rem;
}

.nav-group.right {
    justify-content: flex-start;
    /* Align towards center logo */
    padding-left: 4rem;
}

.logo-center {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-logo {
    height: 165px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.6));
    transition: height 0.4s ease;
}

nav.scrolled .nav-logo {
    height: 90px;
}

/* Legal Pages */
.legal-content {
    color: #e0e0e0;
    text-align: justify;
    /* Justified text */
    font-family: 'Lato', sans-serif;
    /* Readable font */
    line-height: 1.8;
    max-width: 800px;
    margin: 4rem auto 0;
}

.legal-content h3 {
    margin-top: 3.5rem;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    text-transform: uppercase;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.8rem;
    text-align: center;
    /* Headers centered */
    letter-spacing: 0.05em;
}

.legal-content p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: #ccc;
    font-weight: 300;
}

.legal-content ul {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.legal-content li {
    margin-bottom: 0.5rem;
    color: #ccc;
}

.legal-content strong {
    color: #fff;
    font-weight: 600;
}

.nav-group a {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: #fff;
    opacity: 0.8;
    position: relative;
    text-transform: uppercase;
}

.nav-group a:hover {
    opacity: 1;
}

/* Nav CTA */
.nav-cta {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.7rem 1.4rem;
    border-radius: 50px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
}

/* Language Selector (Global) */
.language-dropdown {
    position: relative;
    margin-left: 2.5rem;
    /* Increased spacing */
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: #fff;
    display: inline-block;
}

.current-lang {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

/* ... existing code ... */

/* Project Category in Overlay */
.project-category {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.5rem;
    font-family: var(--font-heading);
}

.current-lang:hover {
    opacity: 1;
}

.lang-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(10, 10, 12, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 0.5rem 0;
    min-width: 80px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    z-index: 1002;
}

.language-dropdown:hover .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-btn {
    display: block;
    padding: 0.5rem 1rem;
    color: #ccc;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    text-align: center;
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.nav-cta:hover {
    background: #fff;
    color: #000 !important;
    border-color: #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

/* Mobile Nav Tweak */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
    z-index: 1001;
}

/* Ensure animation works for portfolio items */
.portfolio-item.active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

@media (max-width: 1024px) {
    .nav-group.left {
        padding-right: 1rem;
    }

    .nav-group.right {
        padding-left: 1rem;
    }
}

@media (max-width: 768px) {
    nav {
        justify-content: space-between;
        padding: 1rem 1.5rem;
        height: 70px;
        /* Smaller on mobile */
    }

    nav.scrolled {
        height: 70px;
    }

    .nav-logo {
        height: 80px;
        /* Increased by another 25% */
    }

    nav.scrolled .nav-logo {
        height: 80px;
    }

    .mobile-menu-btn {
        display: block;
        order: 1;
        /* Left side */
    }

    .logo-center {
        order: 2;
        /* Center */
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }

    /* Hidden Right Placeholder for balance if needed, or just let absolute center work */

    .nav-group {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: #000;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0;
        z-index: 999;
        /* Hidden by default */
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s ease;
        padding: 0;
    }

    .nav-group.left {
        transform: translateY(-20px);
        padding-right: 0;
        justify-content: center;
    }

    nav.mobile-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(20, 20, 25, 0.95);
        backdrop-filter: blur(10px);
        z-index: 998;
        opacity: 0;
        animation: fadeIn 0.4s forwards;
    }

    @keyframes fadeIn {
        to {
            opacity: 1;
        }
    }

    /* Reset individual backgrounds */
    nav.mobile-open .nav-group.left,
    nav.mobile-open .nav-group.right {
        background: transparent !important;
        height: 50vh;
        /* Stacked 50/50 split remains for layout but transparent */
        z-index: 999;
        transition: none;
        width: 100%;
        left: 0;
        position: fixed;
    }

    nav.mobile-open .nav-group.left {
        top: 0;
        opacity: 1;
        visibility: visible;
        display: flex;
        justify-content: flex-end;
        align-items: center;
        padding-bottom: 0;
    }

    nav.mobile-open .nav-group.right {
        top: 50vh;
        opacity: 1;
        visibility: visible;
        display: flex;
        justify-content: flex-start;
        padding-top: 0;
    }

    .nav-group a {
        font-size: 1.5rem;
        margin-bottom: 2.5rem;
        color: #fff;
    }

    .nav-cta {
        margin-top: 0;
        background: #fff;
        color: #000 !important;
    }

    /* Language Selector Mobile */
    .language-dropdown {
        margin-left: 0;
        margin-top: 1.5rem;
    }

    .lang-menu {
        position: relative;
        top: auto;
        right: auto;
        background: transparent;
        border: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        flex-direction: row;
        justify-content: center;
        padding: 0;
        margin-top: 0.5rem;
        box-shadow: none;
    }

    .current-lang {
        display: none;
    }

    .lang-btn {
        padding: 0.5rem;
        font-size: 1.1rem;
        display: inline-block;
    }

    /* Optimize Typography for Mobile */
    h1 {
        font-size: 2.2rem;
    }

    /* Hero Responsive Adjustments */
    .hero-content {
        padding-left: 5%;
        padding-right: 5%;
        text-align: center;
        /* Center on mobile usually looks better */
    }

    .hero h1 {
        font-size: 2.5rem;
        /* Much smaller than 4.5rem */
    }

    .hero p {
        font-size: 1.1rem;
        max-width: 100%;
    }

    .hero-tagline {
        font-size: 0.9rem;
    }

    .hero-tags {
        font-size: 0.75rem;
        margin-bottom: 2rem;
    }

    .hero-cta-btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.65);
    /* Elegant darkening */
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    max-width: 800px;
    padding-left: 10%;
    /* Center-Left positioning */
}

.hero-tagline {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    opacity: 0;
    animation: fadeUp 1s ease-out forwards;
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    opacity: 0;
    animation: fadeUp 1s ease-out 0.2s forwards;
}

.highlight-text {
    color: #ffcca8;
    /* Warm amber/gold */
    text-shadow: 0 0 20px rgba(255, 204, 168, 0.3), 0 5px 15px rgba(0, 0, 0, 0.8);
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    max-width: 600px;
    line-height: 1.6;
    color: #eaeaea;
    /* Integrated Off-white */
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    opacity: 0;
    animation: fadeUp 1s ease-out 0.4s forwards;
}

.hero-tags {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    opacity: 0;
    animation: fadeUp 1s ease-out 0.6s forwards;
}

.hero-cta-btn {
    background: #fff;
    color: #000;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    border: none;
    opacity: 0;
    animation: fadeUp 1s ease-out 0.8s forwards;
}

.hero-cta-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    background: #f0f0f0;
    color: #000;
}

/* Modal Hidden by default, triggered only if needed,
   but simplistic background video is the priority now. */

/* Portfolio Link Items (Index) */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.portfolio-item-link {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    height: 100%;
}

.portfolio-item-link .portfolio-image-wrapper {
    height: 100%;
    margin-bottom: 0;
}

.portfolio-item-link:hover .portfolio-image-wrapper img {
    transform: scale(1.1);
    filter: brightness(0.4);
}

.portfolio-item-link:hover .portfolio-overlay {
    opacity: 1;
}

/* Portfolio Section */
.portfolio {
    padding: 5rem 0;
    position: relative;
    /* User provided image: background01.png */
    background: linear-gradient(to bottom, rgba(18, 18, 18, 0.94), rgba(18, 18, 18, 0.94)), url('../img/backgrounds/background01.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.recent-projects-title {
    text-align: center;
    font-size: 2rem;
    color: #fff;
    margin-top: 6rem;
    margin-bottom: 3rem;
    font-family: var(--font-heading);
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    font-weight: 300;
}

.portfolio-header {
    margin-bottom: 4rem;
    text-align: center;
    /* Center title as requested "projets" usually centered looks better with grid */
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 Columns for smaller items */
    gap: 2rem;
    /* Tight spacing */
    padding: 0 5%;
}

.portfolio-item {
    position: relative;
    cursor: pointer;
    opacity: 0;
    transform: translateY(30px);
    overflow: hidden;
    /* Ensure overlay stays inside */
    border-radius: 4px;
    /* Slight roundness */
}

/* Remove Parallax offset for this tighter grid to keep it clean */
.portfolio-item:nth-child(even) {
    transform: translateY(0);
}

.portfolio-image-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    margin-bottom: 0;
    /* No margin needed as text is overlay */
    background: #000;
}

.portfolio-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1), filter 0.6s ease;
    filter: brightness(0.8);
}

/* Hover Effects */
.portfolio-item:hover .portfolio-image-wrapper img {
    transform: scale(1.1);
    filter: brightness(0.4);
    /* Darken image to make text pop */
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 2;
    padding: 1rem;
    text-align: center;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    transform: translateY(20px);
    transition: transform 0.4s ease;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.portfolio-item:hover .portfolio-overlay h3 {
    transform: translateY(0);
}

.play-icon {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1rem;
    transform: scale(0.8);
    transition: transform 0.4s ease;
}

.portfolio-item:hover .play-icon {
    transform: scale(1);
}

/* Responsive */
@media (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

/* About Section */
.about {
    padding: 8rem 0;
    position: relative;
    background: var(--bg-color);
    overflow: hidden;
    /* Prevent ANY child from causing scroll */
    /* User provided image: background2.png */
    background: linear-gradient(to bottom, rgba(11, 11, 11, 0.94), rgba(11, 11, 11, 0.94)), url('../img/backgrounds/background2.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.about-content {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 8rem;
    /* More space */
    align-items: center;
}

.about-image img {
    border-radius: 4px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    /* Deep shadow */
}

.certification-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

.cert-logo {
    height: 35px;
    width: auto;
    display: block;
}

.cert-text {
    color: #ccc;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 300;
    font-family: var(--font-body);
}

/* Testimonials (Vos Avis) - Cinematic Parallax */
.testimonials {
    padding: 7rem 0;
    /* More expansive */
    background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85)), url('../img/projects/project_polwat.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax Effect */
    text-align: center;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.testimonials-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    min-height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

.review-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    opacity: 0;
    transition: opacity 1s ease, transform 1s ease;
    pointer-events: none;
    /* Prevent interaction when hidden */
}

.review-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

.review-text {
    font-size: 1.8rem;
    font-family: var(--font-heading);
    line-height: 1.4;
    margin-bottom: 2rem;
    color: #fff;
}

.review-author {
    font-size: 1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Contact Section */
.contact {
    padding: 5rem 0;
    position: relative;
    /* User provided image: background3.png */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.94), rgba(0, 0, 0, 0.94)), url('../img/backgrounds/background3.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.contact-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    padding: 3rem;
}

.contact h2 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 3rem;
}

.contact-subtitle {
    font-size: 1.1rem;
    margin-bottom: 0;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.contact-footer-text {
    margin-top: 3rem;
    color: #555;
    font-size: 0.9rem;
    font-style: italic;
}

.form-group {
    margin-bottom: 2rem;
    text-align: left;
    /* Keep labels left aligned */
}

.form-control {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid #333;
    padding: 1rem 0;
    color: #fff;
    font-size: 1.1rem;
    font-family: var(--font-body);
    transition: border-color 0.3s ease;
    resize: vertical;
    /* for textarea */
}

.form-control:focus {
    outline: none;
    border-color: #fff;
}

label {
    display: block;
    font-size: 0.85rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

button[type="submit"] {
    width: 100%;
    padding: 1.2rem;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 2rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

button[type="submit"]:hover {
    background: #ddd;
}

/* Footer (Redesigned) */
footer {
    padding: 3rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #050505;
    border-top: 1px solid #111;
}

.footer-left {
    display: flex;
    flex-direction: row;
    /* Side by side on desktop */
    align-items: center;
    gap: 1rem;
    flex: 1;
    flex-wrap: wrap;
}

.copyright-text,
.links-text {
    font-size: 0.8rem;
    color: #444;
}

.links-text a {
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.links-text a:hover {
    color: #fff;
    text-decoration: underline;
}

.separator {
    margin: 0 5px;
    color: #444;
}

.footer-center {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex: 1;
}

.footer-right {
    flex: 1;
    /* Spacer */
}

.social-icon {
    width: 45px;
    height: 45px;
    background: #1a1a1a;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.social-icon:hover {
    background: #fff;
    color: #000;
    transform: translateY(-3px);
}

/* Responsive Footer */
@media (max-width: 768px) {
    footer {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .footer-left {
        align-items: center;
        flex-direction: column;
        /* Stack strictly on mobile */
        gap: 0.2rem;
        /* Tight spacing as requested */
    }
}

/* Animations */
.reveal,
.reveal-left,
.reveal-right {
    opacity: 0;
    transition: all 1s cubic-bezier(0.2, 1, 0.2, 1);
    will-change: opacity, transform;
}

.reveal {
    transform: translateY(30px);
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

.reveal.active,
.reveal-left.active,
.reveal-right.active {
    opacity: 1;
    transform: translate(0);
}

/* Remove old fade-in-up if not needed, or map it to .reveal */
.fade-in-up {
    /* Legacy support if JS still adds this */
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        padding-left: 5%;
    }

    h1 {
        font-size: 3.5rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .portfolio-item:nth-child(even) {
        transform: none;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .nav-links {
        display: none;
        /* Hide nav on mobile for MVP */
    }

    /* About Section Mobile Fixes (Moved here) */
    .about-content {
        flex-direction: column;
        gap: 3rem;
        padding: 0 5%;
    }

    .about-image {
        width: 100%;
        max-width: 100vw;
        /* Hard limit */
        margin-bottom: 2rem;
        overflow: hidden;
    }

    .about-image img {
        width: 100%;
        height: auto;
        display: block;
    }

    .about-text h2 {
        text-align: center;
        margin-bottom: 2rem;
    }

    .about-text h2::after {
        margin: 1.5rem auto 0;
    }

    /* Fix Badge Overflow on Mobile */
    .certification-badge {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 1rem;
        /* Positive margin to sit BELOW image */
        margin-left: auto;
        margin-right: auto;
        transform: none;
        max-width: 90%;
        justify-content: center;
        width: auto;
        left: 0;
        padding: 0.8rem 1rem;
        /* Smaller padding */
    }

    .certification-badge .cert-logo {
        height: 25px;
        /* Smaller logo for mobile */
        width: auto;
        /* Force aspect ratio preservation */
        object-fit: contain;
    }

    .certification-badge .cert-text {
        font-size: 0.6rem;
        /* Smaller text */
    }

    .reveal-left,
    .reveal-right {
        transform: translateY(30px);
        /* Vertical reveal prevents horizontal scroll */
    }
}