/* =========================================
    1. CSS Reset & Core Variables
    ========================================= */
:root {
    /* Color Palette */
    --bg-dark: #030303;
    --bg-darker: #000000;
    --bg-light-accent: #0a0a0a;
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --text-muted: #555555;
    
    /* Brand Accents */
    --accent-primary: #00f0ff;
    --accent-secondary: #7000ff;
    --accent-error: #ff3366;
    --accent-success: #00ff66;
    
    /* Surfaces & Borders */
    --surface-glass: rgba(20, 20, 20, 0.6);
    --surface-glass-hover: rgba(30, 30, 30, 0.8);
    --surface-border: rgba(255, 255, 255, 0.08);
    --surface-border-hover: rgba(255, 255, 255, 0.2);
    
    /* Effects */
    --glow-primary: 0 0 40px rgba(0, 240, 255, 0.15);
    --glow-secondary: 0 0 40px rgba(112, 0, 255, 0.2);
    --transition-smooth: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    
    /* Spacing Metrics */
    --section-padding: clamp(80px, 10vw, 150px) 8%;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Custom cursor fallback */
    scroll-behavior: smooth;
}

/* Lenis Smooth Scroll Core Styles */
html.lenis { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

/* Cinematic Film Grain Overlay */
.noise-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    pointer-events: none; z-index: 9999;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* =========================================
    2. Custom Cursor Design
    ========================================= */
.cursor-dot, .cursor-outline {
    position: fixed;
    top: 0; left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 10000;
    pointer-events: none;
}
.cursor-dot {
    width: 8px; height: 8px;
    background-color: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-primary);
}
.cursor-outline {
    width: 40px; height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s, border-color 0.2s;
}

/* =========================================
    3. Typography & Core Layout
    ========================================= */
h1, h2, h3, h4, .logo {
    font-family: 'Space Grotesk', sans-serif;
    text-transform: uppercase;
}

h2 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 3rem;
    letter-spacing: -0.03em;
}

section {
    position: relative;
    z-index: 1;
    padding: var(--section-padding);
    width: 100%;
}

.text-reveal-wrap { overflow: hidden; display: block; }
.text-reveal { display: block; transform: translateY(110%); }

/* General Button Styles */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    border: none;
    outline: none;
    font-family: 'Inter', sans-serif;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-dark);
}
.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(255,255,255,0.2);
    background: var(--accent-primary);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--surface-border);
}
.btn-secondary:hover {
    border-color: var(--accent-primary);
    background: rgba(0, 240, 255, 0.05);
    transform: translateY(-3px);
}

/* =========================================
    4. Navigation System
    ========================================= */
nav {
    position: fixed;
    top: 0; width: 100%;
    padding: 1.5rem 8%;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 100;
    background: linear-gradient(to bottom, rgba(3,3,3,0.9) 0%, rgba(3,3,3,0) 100%);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.02);
    transition: transform 0.3s ease;
}

.logo { 
    font-size: 1.5rem; 
    font-weight: 900; 
    letter-spacing: 2px; 
    color: var(--text-primary);
    text-decoration: none;
}

.nav-links { display: flex; gap: 3rem; }
.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}
.nav-links a:hover { opacity: 1; }
.nav-links a::after {
    content: ''; position: absolute;
    bottom: -6px; left: 0; width: 0%; height: 2px;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }

/* =========================================
    5. Hero Section 
    ========================================= */
.hero {
    min-height: 100vh;
    display: flex; 
    align-items: center;
    padding-top: 13vh;
}

.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1;
    overflow: hidden;
}
.hero-bg-img {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity 2s ease, transform 10s linear;
    filter: grayscale(100%) contrast(120%);
    mix-blend-mode: overlay;
}
.hero-bg-img.active { 
    opacity: 0.15; 
    transform: scale(1.05);
}

.bg-1 { background-image: url('https://images.unsplash.com/photo-1555066931-4365d14bab8c?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80'); }
.bg-2 { background-image: url('https://images.unsplash.com/photo-1542831371-29b0f74f9713?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80'); }
.bg-3 { background-image: url('https://images.unsplash.com/photo-1618477247222-ac60c6211116?ixlib=rb-4.0.3&auto=format&fit=crop&w=2070&q=80'); }

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    width: 100%;
    align-items: center;
}

.hero-greeting {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--accent-primary);
    letter-spacing: 3px;
    font-size: 1rem;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}
.hero-greeting::before {
    content: '';
    width: 40px;
    height: 2px;
    background: var(--accent-primary);
    display: block;
}

.hero h1 {
    font-size: clamp(3rem, 7vw, 7rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 0.5rem;
    
}

.hero-title-accent {
    background: linear-gradient(90deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    padding-right: 20px; /* Prevent clipping */
}

.hero-roles {
    font-size: clamp(1.1rem, 1.5vw, 1.3rem);
    color: var(--text-secondary);
    margin-top: 2rem;
    margin-bottom: 3rem;
    line-height: 1.7;
    max-width: 90%;
    text-align: justify;
}

.hero-cta { display: flex; gap: 1.5rem; flex-wrap: wrap; }

/* Profile Image Setup */
.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 450px;
    aspect-ratio: 1;
    margin: 0 auto;
    border-radius: 50%;
    padding: 8px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    transition: transform 1s cubic-bezier(0.68, -0.55, 0.265, 1.55), box-shadow 0.5s;
    box-shadow: var(--glow-primary);
}

.hero-image-wrapper:hover {
    transform: rotate(360deg) scale(1.02);
    box-shadow: 0 0 60px rgba(112, 0, 255, 0.4);
}

.hero-image-inner {
    width: 100%; height: 100%;
    border-radius: 50%; overflow: hidden;
    border: 6px solid var(--bg-dark);
    background-color: var(--bg-dark);
   
}

.hero-image-inner img {
    width: 100%; height: 100%;
    object-fit: cover;
    filter: grayscale(10%) contrast(110%);
}

/* =========================================
    6. About Section 
    ========================================= */
.about-wrapper {
    display: grid; grid-template-columns: 5fr 7fr; gap: 6rem; align-items: center;
}

.about-text p {
    font-size: clamp(1.1rem, 1.5vw, 1.4rem);
    line-height: 1.8; color: var(--text-secondary);
    margin-bottom: 2rem;
    text-align: justify;
}
.about-text p strong { color: var(--text-primary); font-weight: 600; }

.about-stats {
    display: flex;
    gap: 3rem;
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid var(--surface-border);
}
.stat-item h4 {
    font-size: 3rem;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}
.stat-item span {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.morph-gallery { position: relative; width: 100%; height: 600px; }

.morph-shape {
    position: absolute; overflow: hidden;
    box-shadow: var(--glow-secondary);
    border: 1px solid rgba(255,255,255,0.1);
}

.morph-shape img {
    width: 100%; height: 100%; object-fit: cover;
    transform: scale(1.2); transition: transform 0.5s ease;
}
.morph-shape:hover img { transform: scale(1); }

.shape-1 {
    width: 380px; height: 380px; top: 0; right: 5%; z-index: 2;
    animation: ultimateMorph 10s ease-in-out infinite both alternate;
}
.shape-2 {
    width: 480px; height: 480px; bottom: 0; left: 0; z-index: 1;
    animation: ultimateMorph 15s ease-in-out infinite both alternate-reverse;
    filter: brightness(0.5);
}

@keyframes ultimateMorph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    33% { border-radius: 58% 42% 24% 76% / 46% 62% 38% 54%; }
    66% { border-radius: 41% 59% 68% 32% / 65% 26% 74% 35%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

/* =========================================
    7. Skills & Tech Stack Matrix
    ========================================= */
.skills-header {
    display: flex; justify-content: space-between; align-items: flex-end;
    margin-bottom: 4rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 280px;
    gap: 1.5rem;
}

.bento-item {
    background: linear-gradient(145deg, rgba(30,30,30,0.5) 0%, rgba(10,10,10,0.9) 100%);
    border: 1px solid var(--surface-border);
    border-radius: var(--border-radius-lg); 
    padding: 2.5rem;
    display: flex; flex-direction: column; justify-content: space-between;
    backdrop-filter: blur(20px);
    transition: border-color 0.4s, transform 0.4s, box-shadow 0.4s;
    position: relative; overflow: hidden;
}

.bento-item:hover {
    border-color: rgba(0, 240, 255, 0.5);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

/* Shine Effect */
.bento-item::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
    transform: skewX(-20deg);
    transition: left 0.7s ease;
}
.bento-item:hover::before { left: 200%; }

.bento-span-2 { grid-column: span 2; }
.bento-span-row-2 { grid-row: span 2; }

.tech-icons { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: auto; }
.tech-icons img {
    width: 48px; height: 48px; opacity: 0.7;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5));
    transition: opacity 0.3s, transform 1s;
}

.bento-item:hover .tech-icons img { opacity: 1; transform: rotateY(360deg) scale(1.1); }
.invert-icon { filter: invert(1); }
.bento-item:hover .invert-icon { filter: invert(1) drop-shadow(0 4px 6px rgba(255,255,255,0.3)); }

.bento-item h3 { font-size: 1.6rem; letter-spacing: 1px; color: var(--text-primary); }
.bento-item p { color: var(--text-secondary); font-size: 1rem; margin-top: 1rem; line-height: 1.6; }

/* =========================================
    8. Projects Showcase
    ========================================= */
.project-list {
    display: flex; flex-direction: column; gap: 8rem;
    margin-top: 5rem;
}

.project-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 5rem;
    align-items: center;
}

/* Alternate layout for even items */
.project-row:nth-child(even) { direction: rtl; }
.project-row:nth-child(even) > * { direction: ltr; }

.project-visual {
    width: 100%; height: 550px;
    border-radius: var(--border-radius-lg); 
    overflow: hidden;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    border: 1px solid var(--surface-border);
    /* Background added to clearly show the placeholder space for images */
    background-color: #111; 
}

.project-visual img {
    width: 100%; height: 120%; object-fit: cover;
    position: absolute; top: -10%; left: 0;
    transition: transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.project-visual:hover img { transform: scale(1.08); }

.project-visual::after {
    content:''; position: absolute; top:0; left:0; right:0; bottom:0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    pointer-events: none; opacity: 0; transition: opacity 0.4s;
}
.project-visual:hover::after { opacity: 1; }

.project-info h3 { font-size: 2.5rem; margin-bottom: 1.5rem; line-height: 1.2; }
.project-info p { font-size: 1.15rem; color: var(--text-secondary); margin-bottom: 2.5rem; line-height: 1.7; }

.tech-tags { display: flex; gap: 1rem; margin-bottom: 2.5rem; flex-wrap: wrap;}
.tech-tags span {
    padding: 0.5rem 1.2rem; 
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 50px; font-size: 0.85rem; letter-spacing: 1px;
    text-transform: uppercase; color: var(--accent-primary);
    font-weight: 500;
}

.btn-link {
    display: inline-flex; align-items: center; gap: 1rem;
    color: var(--text-primary); text-decoration: none;
    font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem; font-weight: 700;
    text-transform: uppercase; position: relative;
    padding-bottom: 5px;
}
.btn-link::before {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0%; height: 2px;
    background: var(--accent-primary); transition: width 0.3s;
}
.btn-link::after {
    content: '↗'; font-size: 1.5rem; transition: transform 0.3s, color 0.3s;
}
.btn-link:hover::before { width: 100%; }
.btn-link:hover::after { transform: translate(5px, -5px); color: var(--accent-primary); }

/* =========================================
    9. Reviews / Marquee Component
    ========================================= */
#reviews {
    overflow: hidden;
}

.marquee-container {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 4rem 0;
    background: linear-gradient(90deg, rgba(3,3,3,1) 0%, rgba(10,10,10,0.8) 50%, rgba(3,3,3,1) 100%);
    border-top: 1px solid var(--surface-border);
    border-bottom: 1px solid var(--surface-border);
    overflow: hidden;
}

.marquee-content {
    display: flex;
    width: max-content;
    gap: 2rem;
    animation: marquee 30s linear infinite;
    padding: 0 1rem;
}

.marquee-content:hover {
    animation-play-state: paused;
}

.review-card {
    background: var(--surface-glass);
    border: 1px solid var(--surface-border);
    border-radius: var(--border-radius-md);
    padding: 2.5rem;
    width: 400px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.review-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-primary);
}

.review-card .stars {
    color: var(--accent-primary);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    letter-spacing: 4px;
}

.review-card p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-style: italic;
}

.review-card small {
    display: block;
    color: var(--text-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Space Grotesk', sans-serif;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    /* Subtracting half the width (since we duplicated) plus the gap offset to maintain smooth looping */
    100% { transform: translateX(calc(-50% - 1rem)); } 
}

/* =========================================
    10. Contact Section & Form Architecture
    ========================================= */
.contact-section {
    background: linear-gradient(to bottom, transparent, var(--bg-light-accent));
    border-top: 1px solid var(--surface-border);
    position: relative;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    margin-top: 4rem;
}

.contact-info h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}
.contact-info p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 90%;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.method {
    display: flex;
    flex-direction: column;
}
.method-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}
.method-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 700;
}
.method-value:hover { color: var(--accent-primary); }

/* Form Styling */
.contact-form {
    background: var(--surface-glass);
    padding: 4rem 3rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--surface-border);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
}

.input-group {
    position: relative;
    margin-bottom: 2.5rem;
}

.input-field {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--surface-border);
    padding: 1rem 0;
    font-size: 1.1rem;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s;
    resize: none;
}

.input-field:focus {
    outline: none;
    border-bottom-color: var(--accent-primary);
}

.input-label {
    position: absolute;
    top: 1rem;
    left: 0;
    font-size: 1.1rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Floating Label Logic */
.input-field:focus ~ .input-label,
.input-field:valid ~ .input-label,
.input-field.has-value ~ .input-label {
    top: -1.2rem;
    font-size: 0.85rem;
    color: var(--accent-primary);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.input-field.error { border-bottom-color: var(--accent-error); }
.input-field.error ~ .input-label { color: var(--accent-error); }

.error-message {
    position: absolute;
    bottom: -1.5rem;
    left: 0;
    color: var(--accent-error);
    font-size: 0.8rem;
    opacity: 0;
    transform: translateY(-5px);
    transition: 0.3s;
}
.input-field.error ~ .error-message {
    opacity: 1; transform: translateY(0);
}

/* 1. Base Button Configuration */
.submit-btn {
    width: 100%;
    padding: 1.2rem;
    background: var(--text-primary);
    color: var(--bg-dark);
    border: none;
    border-radius: var(--border-radius-sm);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    z-index: 1;
}

/* 2. The Irregular Color Changing Hover State */
.submit-btn:hover {
    /* Multi-color gradient using your theme variables */
    background: linear-gradient(
        -45deg, 
        var(--accent-primary), 
        var(--accent-secondary), 
        var(--accent-error), 
        var(--accent-primary)
    );
    /* Make the background massive so we can pan it around */
    background-size: 300% 300%;
    color: var(--text-primary); /* Switch text to white for contrast */
    transform: translateY(-3px) scale(1.02);
    
    /* Fire off the two custom animations */
    animation: 
        irregularGradient 3.5s ease infinite,
        irregularShadow 2s alternate infinite;
}

/* 3. Tactile click effect */
.submit-btn:active {
    transform: translateY(1px) scale(0.98);
    animation: none; /* Stop the wobble when clicked */
    box-shadow: 0 2px 10px rgba(0, 240, 255, 0.3);
}

/* =========================================
   Custom Keyframe Animations for Button
   ========================================= */

/* Pans the background around smoothly to create the shifting liquid effect */
@keyframes irregularGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Makes the outer glow pulse and change colors irregularly */
@keyframes irregularShadow {
    0% { box-shadow: 0 5px 20px rgba(0, 240, 255, 0.4); }
    33% { box-shadow: 0 10px 30px rgba(112, 0, 255, 0.5); }
    66% { box-shadow: 0 5px 25px rgba(255, 51, 102, 0.4); }
    100% { box-shadow: 0 8px 20px rgba(0, 240, 255, 0.6); }
}

.submit-btn:disabled {
    background: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.loader {
    display: none;
    width: 20px; height: 20px;
    border: 3px solid rgba(0,0,0,0.3);
    border-radius: 50%;
    border-top-color: var(--bg-dark);
    animation: spin 1s ease-in-out infinite;
}
.loading .loader { display: block; }
.loading .btn-text { display: none; }

@keyframes spin { to { transform: rotate(360deg); } }

/* =========================================
    11. Comprehensive Footer
    ========================================= */
.site-footer {
    background: var(--bg-darker);
    padding: 100px 8% 40px;
    border-top: 1px solid var(--surface-border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 6rem;
}

.footer-brand .logo {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1.5rem;
}
.footer-brand p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 80%;
}

.footer-heading {
    color: var(--text-primary);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: 1rem; }
.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s, padding-left 0.3s;
    display: inline-block;
}
.footer-links a:hover {
    color: var(--accent-primary);
    padding-left: 8px;
}

/* Updated Social List Styling with Icons */
.social-list-icons a {
    display: flex;
    align-items: center;
    gap: 12px;
}
.social-list-icons i {
    font-size: 1.2rem;
    width: 20px;
    text-align: center;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    margin-top: 1.5rem;
}
.newsletter-input {
    flex: 1;
    padding: 0.8rem 1rem;
    background: var(--surface-glass);
    border: 1px solid var(--surface-border);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
}
.newsletter-input:focus {
    outline: none;
    border-color: var(--accent-primary);
}
.newsletter-btn {
    padding: 0.8rem 1.5rem;
    background: var(--accent-primary);
    color: var(--bg-dark);
    border: none;
    border-radius: var(--border-radius-sm);
    font-weight: 700;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--surface-border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.social-icons {
    display: flex; gap: 1.5rem;
}
.social-icons a {
    color: var(--text-muted);
    font-size: 1.4rem;
    transition: color 0.3s, transform 0.3s;
    text-decoration: none;
}
.social-icons a:hover {
    color: var(--accent-primary);
    transform: translateY(-3px);
}

/* =========================================
    12. Responsive Architecture
    ========================================= */
@media (max-width: 1200px) {
    h2 { font-size: 3.5rem; }
    .project-visual { height: 450px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 3rem; }
}

@media (max-width: 992px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; gap: 4rem; }
    .hero-greeting { justify-content: center; }
    .hero-greeting::before { display: none; }
    .hero-roles { margin: 2rem auto; }
    .hero-cta { justify-content: center; }
    
    .about-wrapper, .contact-wrapper { grid-template-columns: 1fr; gap: 4rem; }
    .about-text { text-align: center; }
    .about-stats { justify-content: center; }
    
    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    
    .project-row { grid-template-columns: 1fr; gap: 2rem; }
    .project-row:nth-child(even) { direction: ltr; }
    .project-visual { height: 400px; }
    .project-info { padding-top: 2rem; }
}

@media (max-width: 768px) {
    :root { --section-padding: 100px 6%; }
    nav { padding: 1.2rem 6%; }
    .nav-links { display: none; /* In a real app, implement a hamburger menu here */ }
    .bento-grid { grid-template-columns: 1fr; grid-auto-rows: minmax(250px, auto); }
    .bento-span-2 { grid-column: span 1; }
    .bento-span-row-2 { grid-row: span 1; }
    
    .hero h1 { font-size: 3.5rem; }
    .contact-form { padding: 3rem 2rem; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .footer-brand p { max-width: 100%; }
    .footer-bottom { flex-direction: column; gap: 1.5rem; text-align: center; }
    
    /* Mobile adjustments for specific bento text sizes */
    .mobile-bento-title { font-size: 1.8rem !important; }
    .mobile-bento-desc { font-size: 1rem !important; max-width: 100% !important; margin-top: 1rem !important; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.8rem; }
    .hero-image-wrapper { max-width: 280px; }
    
    .stat-item h4 { font-size: 2.2rem; }
    
    /* Ensure the review cards fit nicely on mobile screens */
    .review-card { width: 300px; padding: 1.5rem; }
    .review-card p { font-size: 1rem; }
    
    .contact-methods .method-value { font-size: 1.3rem; }
}

/* =========================================
   13. Hero Image Slideshow (New Addition)
   ========================================= */
.hero-image-inner {
    position: relative;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    /* Start state: heavily rotated and scaled down */
    transform: rotateY(-360deg) scale(0.5);
    transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.hero-slide.active {
    opacity: 1;
    /* End state: straight and full size */
    transform: rotate(0deg) scale(1);
    filter: grayscale(10%) contrast(110%);
}