:root {
    /* Color Palette - Modern Glassmorphism (Warm & Bright) */
    --bg-color: #F8F9FA;
    --text-main: #111827;
    --text-muted: #334155;
    --accent-color: #4F46E5;
    --secondary-accent: #8B5CF6;
    /* Indigo/Purple accent */
    --accent-glow: rgba(79, 70, 229, 0.4);
    --gradient-start: #4F46E5;
    --gradient-end: #8B5CF6;

    /* Mesh Gradients blobs - Elegant & Professional Colors */
    --blob-1: rgba(100, 116, 139, 0.15);
    /* Soft Slate/Silver */
    --blob-2: rgba(226, 218, 203, 0.25);
    /* Elegant Champagne/Sand */
    --blob-3: rgba(148, 163, 184, 0.15);
    /* Light Steel Blue */

    /* Typography */
    --font-main: 'Outfit', sans-serif;

    /* Layout & Spacing */
    --nav-height: 80px;
    --container-width: 1200px;
    --nav-scrolled-bg: rgba(255, 255, 255, 0.8);
    --nav-scrolled-border: rgba(255, 255, 255, 0.3);
    --nav-scrolled-shadow: rgba(0, 0, 0, 0.03);
    
    /* Interactive Elements Components */
    --btn-secondary-border: rgba(0, 0, 0, 0.1);
    --btn-secondary-hover-bg: rgba(0, 0, 0, 0.03);
    --btn-secondary-hover-border: rgba(0, 0, 0, 0.2);
    --tag-bg: rgba(0, 0, 0, 0.04);
    --tag-text: var(--text-muted);
    --btn-primary-text: #ffffff;
    --hero-badge-bg: rgba(255, 255, 255, 0.9);
    --hero-badge-hover-bg: #ffffff;
    --social-bg: #ffffff;
}

/* --- Dark Mode Theme Overrides --- */
[data-theme="dark"] {
    --bg-color: #0d1117;
    --text-main: #f0f6fc;
    --text-muted: #8b949e;
    --accent-color: #58a6ff;
    --secondary-accent: #a371f7;
    --accent-glow: rgba(88, 166, 255, 0.4);

    /* Mesh Gradients blobs - Dark Mode */
    --blob-1: rgba(88, 166, 255, 0.15);
    --blob-2: rgba(163, 113, 247, 0.15);
    --blob-3: rgba(46, 160, 67, 0.1);

    /* Glass Panels */
    --glass-bg: rgba(13, 17, 23, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    
    /* Interactive Elements Overrides */
    --btn-secondary-border: rgba(255, 255, 255, 0.2);
    --btn-secondary-hover-bg: rgba(255, 255, 255, 0.08);
    --btn-secondary-hover-border: rgba(255, 255, 255, 0.35);
    --tag-bg: rgba(255, 255, 255, 0.1);
    --tag-text: #e2e8f0;
    --btn-primary-text: #0d1117;
    --hero-badge-bg: rgba(13, 17, 23, 0.8);
    --hero-badge-hover-bg: #0d1117;
    --social-bg: rgba(255, 255, 255, 0.05);
    --nav-scrolled-bg: rgba(13, 17, 23, 0.85);
    --nav-scrolled-border: rgba(255, 255, 255, 0.1);
    --nav-scrolled-shadow: rgba(0, 0, 0, 0.3);
}

/* Ensure smooth transitions for color variables globally */
body,
.glass-panel,
.navbar,
.project-card,
.btn,
.nav-link {
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

/* Theme Toggle Button Styles */
.theme-toggle {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease;
    padding: 0.5rem;
    color: var(--text-main);
}

.theme-toggle:hover {
    transform: scale(1.1);
    color: var(--accent-color);
}

/* --- Theme Overrides --- */
body.theme-yoga {
    --accent-color: #C05E44;
    /* Terracotta Orange */
    --secondary-accent: #8A9A5B;
    /* Sage Green */
    --accent-glow: rgba(192, 94, 68, 0.4);

    /* Modify mesh blobs for yoga theme */
    --blob-1: rgba(186, 203, 165, 0.4);
    /* Sage Green */
    --blob-2: rgba(230, 219, 210, 0.5);
    /* Warm Sand */
    --blob-3: rgba(192, 94, 68, 0.15);
    /* Soft Terracotta */
}

body.theme-stock {
    --accent-color: #1e293b;
    /* Deep Navy / Slate */
    --secondary-accent: #475569;
    /* Muted Slate */
    --accent-glow: rgba(30, 41, 59, 0.4);

    /* Modify mesh blobs for stock theme */
    --blob-1: rgba(30, 41, 59, 0.1);
    /* Slate */
    --blob-2: rgba(16, 185, 129, 0.1);
    /* Muted Green */
    --blob-3: rgba(239, 68, 68, 0.08);
    /* Muted Red */
}

/* Dark mode overrides for specific case study themes */
[data-theme="dark"] body.theme-stock {
    --accent-color: #94a3b8;
    --secondary-accent: #cbd5e1;
    --accent-glow: rgba(148, 163, 184, 0.4);
    --blob-1: rgba(148, 163, 184, 0.15);
    --blob-2: rgba(52, 211, 153, 0.15);
    --blob-3: rgba(248, 113, 113, 0.1);
}

[data-theme="dark"] body.theme-yoga {
    --accent-color: #E27D60;
    --secondary-accent: #A5B676;
    --accent-glow: rgba(226, 125, 96, 0.4);
    --blob-1: rgba(186, 203, 165, 0.15);
    --blob-2: rgba(230, 219, 210, 0.15);
    --blob-3: rgba(192, 94, 68, 0.15);
}

/* Hide entire navbar on scroll specifically for case studies */
body.theme-yoga .navbar.scrolled,
body.theme-stock .navbar.scrolled {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-main);
    font-size: 1.125rem;
    /* Premium Base Size (18px) */
    line-height: 1.7;
    /* Increased for better readability */
    hyphens: none;
    -webkit-hyphens: none;
    -moz-hyphens: none;
    -ms-hyphens: none;
    overflow-x: hidden;
    position: relative;
}

/* Background Animated Mesh */
.mesh-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-color);
}

.mesh-blob {
    position: absolute;
    filter: blur(80px);
    border-radius: 50%;
    animation: float 20s infinite alternate ease-in-out;
    opacity: 0.8;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: var(--blob-1);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: var(--blob-2);
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

.blob-3 {
    width: 700px;
    height: 700px;
    background: var(--blob-3);
    top: 40%;
    left: 40%;
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(50px, -50px) scale(1.1);
    }

    66% {
        transform: translate(-30px, 40px) scale(0.9);
    }

    100% {
        transform: translate(0, 0) scale(1);
    }
}

/* Fun Background Canvas Overlay */
.fun-canvas-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    /* Keep it above the base background color but behind content */
    opacity: 1;
    /* Explicitly ensure it's fully visible */
    pointer-events: none;
    /* Ignore clicks */
}

/* Typography Utility */
.highlight-text {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Glassmorphism Utility */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    box-shadow: var(--glass-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: var(--nav-scrolled-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--nav-scrolled-border);
    box-shadow: 0 4px 20px var(--nav-scrolled-shadow);
}

[data-theme="dark"] .navbar.scrolled {
    background: rgba(13, 17, 23, 0.98);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.4s ease;
}

.logo:hover .logo-icon {
    transform: scale(1.05) rotate(1deg);
    filter: drop-shadow(0 4px 12px rgba(79, 70, 229, 0.25));
}


.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link:not(.resume-btn):hover {
    color: var(--accent-color);
}

.nav-link:not(.resume-btn)::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.nav-link:not(.resume-btn):hover::after {
    width: 100%;
}

.resume-btn {
    padding: 0.6rem 1.4rem;
    background: var(--text-main);
    color: var(--bg-color) !important;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.resume-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--accent-color);
    color: var(--btn-primary-text);
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.6);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--btn-secondary-border);
}

.btn-secondary:hover {
    background-color: var(--btn-secondary-hover-bg);
    border-color: var(--btn-secondary-hover-border);
}

/* Hero Section */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-text-wrapper {
    max-width: 1000px;
    position: relative;
    z-index: 10;
}

.greeting {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.exp-badge {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: var(--accent-color);
    background: var(--accent-light);
    padding: 0.4rem 0.8rem;
    border-radius: 50px;
    border: 1px solid rgba(79, 70, 229, 0.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.wave {
    animation: wave-animation 2.5s infinite;
    transform-origin: 70% 70%;
    display: inline-block;
}

@keyframes wave-animation {
    0% {
        transform: rotate(0.0deg)
    }

    10% {
        transform: rotate(14.0deg)
    }

    20% {
        transform: rotate(-8.0deg)
    }

    30% {
        transform: rotate(14.0deg)
    }

    40% {
        transform: rotate(-4.0deg)
    }

    50% {
        transform: rotate(10.0deg)
    }

    60% {
        transform: rotate(0.0deg)
    }

    100% {
        transform: rotate(0.0deg)
    }
}

.hero-title {
    font-size: clamp(2rem, 3.5vw, 3.2rem);
    /* Significantly smaller max size */
    line-height: 1.15;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    max-width: 650px;
}

.hero-subtitle strong {
    color: var(--text-main);
    font-weight: 600;
}

.hero-status {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 2.5rem;
    background: rgba(255, 255, 255, 0.5);
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.hero-badges {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

@keyframes tilePulse {
    0% {
        transform: translateY(0px) scale(1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    }

    50% {
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 8px 18px rgba(79, 70, 229, 0.12);
    }

    100% {
        transform: translateY(0px) scale(1);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    }
}

.hero-badge {
    padding: 0.5rem 1.1rem;
    background: var(--hero-badge-bg);
    border: 2px solid rgba(79, 70, 229, 0.4);
    /* Much bolder blue */
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    /* Bolder text */
    color: var(--text-main);
    /* Darker for clarity */
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    animation: tilePulse 4s ease-in-out infinite;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hero-badge:nth-child(2) {
    animation-delay: 0.7s;
}

.hero-badge:nth-child(3) {
    animation-delay: 1.4s;
}

.hero-badge:hover {
    animation-play-state: paused;
    transform: translateY(-6px) scale(1.05);
    background: var(--hero-badge-hover-bg);
    border-color: rgba(79, 70, 229, 0.8);
    color: var(--accent-color);
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.15);
}

/* Work Section */
.work {
    padding: 4rem 0 8rem 0;
}

.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.title-underline {
    height: 4px;
    width: 60px;
    background: var(--accent-color);
    border-radius: 2px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 3rem;
}

/* Project Card */
.project-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.4);
    position: relative;
    /* Necessary for stretched link */
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.project-image-container {
    height: 350px;
    overflow: hidden;
    position: relative;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.project-image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.yoga-bg {
    background: linear-gradient(135deg, #F2EDE4 0%, #DCE3D6 100%);
    /* Soft Beige to Sage */
    position: relative;
    overflow: visible;
    /* Allowing elements to maybe pop a bit if we want, but container keeps overflow hidden so keep it relative */
}

/* Beautiful Presentation Styles for Homepage Case Study Cards */
.presentation-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Base glowing shadow behind laptop */
.presentation-glow {
    position: absolute;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(193, 103, 87, 0.2) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    filter: blur(20px);
    z-index: 1;
}

.book-glow {
    background: radial-gradient(circle, rgba(237, 143, 3, 0.25) 0%, rgba(255, 255, 255, 0) 70%);
}

/* Decorative background shapes */
.deco-shape {
    position: absolute;
    z-index: 1;
    opacity: 0.8;
}

.deco-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8A9A5B40, #5C7C6660);
    top: 10%;
    left: 10%;
    filter: blur(5px);
}

.deco-pill {
    width: 150px;
    height: 60px;
    border-radius: 40px;
    background: linear-gradient(135deg, #C1675750, #D2887C60);
    bottom: 15%;
    right: 5%;
    transform: rotate(-15deg);
    filter: blur(5px);
}

/* The laptop itself with a smooth floating animation */
.presentation-laptop {
    width: 88%;
    max-width: 480px;
    object-fit: contain;
    position: relative;
    z-index: 10;
    filter: drop-shadow(0 25px 35px rgba(0, 0, 0, 0.15)) drop-shadow(0 5px 15px rgba(0, 0, 0, 0.08));
    animation: float-laptop 6s ease-in-out infinite;
    transform-origin: center bottom;
}

@keyframes float-laptop {
    0% {
        transform: translateY(1.2rem);
    }

    50% {
        transform: translateY(-0.2rem);
    }

    100% {
        transform: translateY(1.2rem);
    }
}

.dual-device-wrapper {
    position: relative;
    width: 85%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
    z-index: 10;
}

.presentation-laptop-stock {
    width: 95%;
    border-radius: 8px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.3);
    border: 3px solid #1e293b;
    z-index: 5;
    animation: float-laptop 7s ease-in-out infinite;
    transform-origin: center bottom;
}

.presentation-mobile-stock {
    position: absolute;
    width: 30%;
    max-width: 140px;
    right: 5%;
    bottom: 5%;
    border-radius: 14px;
    box-shadow: 15px 15px 40px rgba(0, 0, 0, 0.4);
    border: 3.5px solid #1e293b;
    z-index: 30;
    /* Ensure it stays above EVERYTHING else */
    animation: float-laptop 7s ease-in-out infinite -3.5s;
}

.presentation-laptop-safehome {
    height: 310px;
    width: 95%;
    object-fit: cover;
    object-position: top center;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border: none;
    z-index: 5;
    animation: float-laptop 7s ease-in-out infinite;
    transform-origin: center bottom;
}

.presentation-mobile-safehome {
    position: absolute;
    height: 250px;
    width: auto;
    right: 8%;
    bottom: 0%;
    border-radius: 12px;
    box-shadow: 15px 15px 40px rgba(0, 0, 0, 0.4);
    border: 3px solid #1e293b;
    /* Dark bezel */
    z-index: 30;
    animation: float-laptop 7s ease-in-out infinite -3.5s;
}

/* Floating info badge overlapping the laptop */
.floating-badge {
    position: absolute;
    z-index: 20;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-top: 3px solid var(--accent-color);
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    animation: float-badge 7s ease-in-out infinite reverse;
}

.badge-top-left {
    top: 15%;
    left: 10%;
    border-top-color: #10B981;
}

.badge-bottom-right {
    bottom: 15%;
    right: 5%;
    border-top-color: #C16757;
}

@keyframes float-badge {
    0% {
        transform: translateY(0px) rotate(-2deg);
    }

    50% {
        transform: translateY(-10px) rotate(2deg);
    }

    100% {
        transform: translateY(0px) rotate(-2deg);
    }
}

.stock-bg {
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    /* Vibrant Indigo to Violet */
}

.case-3-bg {
    background: linear-gradient(135deg, #FFF9E6 0%, #FFE6A8 100%);
    /* Golden/Book theme */
}

.case-4-bg {
    background: linear-gradient(135deg, #0f172a 0%, #17386B 100%);
    /* Deep Twilight Blue */
}

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

.placeholder-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.3);
}

.project-info {
    padding: 2.5rem;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    /* Keep it below navbar which is 1000 */
}

.tag {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    background: var(--tag-bg);
    border-radius: 20px;
    color: var(--tag-text);
}

.project-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.project-description {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 800px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 1.1rem;
    transition: gap 0.3s ease;
}

/* Stretched link to make whole card clickable */
.project-link::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    z-index: 25;
    /* Higher than badges (20) */
}

.project-card:hover .project-link {
    gap: 1rem;
    /* Arrow moves outward on hover */
}

.arrow-icon {
    transition: transform 0.3s ease;
}

/* Footer Section */
.footer {
    padding: 4rem 0 8rem 0;
}

.footer-content {
    text-align: center;
    padding: 4rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    color: var(--text-main);
    background: var(--social-bg);
    border: 1px solid var(--btn-secondary-border);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.social-btn.primary-btn {
    background: var(--text-main);
    color: var(--bg-color);
}

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Scroll Reveal Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .nav-links {
        display: none;
        /* simple mobile hide for now */
    }

    .social-links {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }

    .project-image-container {
        height: 250px;
    }
}

/* --- Artistic Bento Grid --- */
.bento-container {
    margin-top: 6rem;
}

.bento-header {
    text-align: center;
    margin-bottom: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 1.5rem;
    grid-auto-rows: minmax(220px, auto);
}

.bento-item {
    position: relative;
    padding: 2.5rem;
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.bento-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
}

.bento-content {
    position: relative;
    z-index: 2;
}

.bento-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: #1A1D20;
    line-height: 1.2;
}

.bento-text {
    font-size: 1.05rem;
    color: rgba(26, 29, 32, 0.65);
    line-height: 1.6;
    font-weight: 400;
}

/* Specific Cells */
.cell-dev {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(240, 245, 255, 0.7));
}

.cell-design {
    background: linear-gradient(135deg, rgba(251, 245, 255, 0.9), rgba(240, 230, 255, 0.6));
}

.cell-yoga {
    background: linear-gradient(180deg, rgba(235, 250, 245, 0.8), rgba(220, 240, 240, 0.5));
    justify-content: flex-start;
}

.cell-badminton {
    background: linear-gradient(135deg, rgba(255, 240, 235, 0.8), rgba(255, 225, 220, 0.5));
}

.cell-coffee {
    background: linear-gradient(135deg, rgba(250, 240, 225, 0.8), rgba(240, 225, 200, 0.6));
}

.cell-travel {
    background: linear-gradient(135deg, rgba(230, 245, 255, 0.8), rgba(210, 230, 250, 0.6));
}

.cell-food {
    background: linear-gradient(135deg, rgba(255, 235, 245, 0.8), rgba(255, 220, 235, 0.5));
}

.food-link {
    display: inline-block;
    margin-top: 1.5rem;
    font-weight: 600;
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s;
}

.food-link:hover {
    color: #3b82f6;
}

/* Artistic Decorative Elements */
.abstract-shape {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 150px;
    height: 150px;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    background: linear-gradient(45deg, rgba(99, 102, 241, 0.25), rgba(168, 85, 247, 0.25));
    animation: morph 8s ease-in-out infinite;
    z-index: 1;
}

.bento-glow {
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.3) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 1;
}

.yoga-rings {
    position: absolute;
    bottom: 30px;
    right: 20px;
    width: 120px;
    height: 120px;
    z-index: 1;
}

.yoga-rings .ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(45, 212, 191, 0.6);
    animation: pulse-ring 4s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.r1 {
    width: 40px;
    height: 40px;
    animation-delay: 0s !important;
}

.r2 {
    width: 80px;
    height: 80px;
    animation-delay: 1.3s !important;
}

.r3 {
    width: 120px;
    height: 120px;
    animation-delay: 2.6s !important;
}

.cup-wrapper {
    position: absolute;
    top: 30px;
    right: 40px;
    width: 50px;
    height: 40px;
    z-index: 1;
}

.cup {
    width: 100%;
    height: 100%;
    border: 3px solid rgba(180, 83, 9, 0.3);
    border-top: none;
    border-radius: 0 0 25px 25px;
    position: relative;
}

.cup::after {
    content: '';
    position: absolute;
    right: -12px;
    top: 8px;
    width: 12px;
    height: 18px;
    border: 3px solid rgba(180, 83, 9, 0.3);
    border-left: none;
    border-radius: 0 10px 10px 0;
}

.steam {
    position: absolute;
    top: -20px;
    left: 20px;
    width: 4px;
    height: 15px;
    background: rgba(180, 83, 9, 0.25);
    border-radius: 2px;
    filter: blur(2px);
    animation: rise 2s infinite ease-out;
}

.shuttle-lines {
    position: absolute;
    top: 40px;
    right: 40px;
    display: flex;
    gap: 8px;
    transform: rotate(45deg);
    z-index: 1;
}

.shuttle-lines span {
    width: 40px;
    height: 4px;
    background: linear-gradient(90deg, rgba(244, 63, 94, 0) 0%, rgba(244, 63, 94, 0.4) 100%);
    border-radius: 2px;
}

.shuttle-lines span:nth-child(2) {
    transform: translateX(10px);
}

.shuttle-lines span:nth-child(3) {
    transform: translateX(20px);
    width: 20px;
}

.decorative-globe {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: 2px dashed rgba(59, 130, 246, 0.5);
    animation: spin 30s linear infinite;
    z-index: 1;
}

@keyframes morph {
    0% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }

    34% {
        border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%;
    }

    67% {
        border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%;
    }

    100% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

@keyframes rise {
    0% {
        transform: translateY(0) scaleX(1);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateY(-20px) scaleX(2);
        opacity: 0;
    }
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
}

/* Baking Cell Specifics */
.cell-baking {
    background: linear-gradient(135deg, rgba(255, 245, 230, 0.8), rgba(245, 225, 200, 0.5));
}

.whisk {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 30px;
    height: 40px;
    border: 3px solid rgba(217, 119, 6, 0.4);
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    z-index: 1;
    transform: rotate(15deg);
}

.whisk::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 10px;
    width: 4px;
    height: 20px;
    background: rgba(217, 119, 6, 0.4);
    border-radius: 2px;
}

.whisk::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    width: 14px;
    height: 30px;
    border: 2px solid rgba(217, 119, 6, 0.3);
    border-radius: 50%;
}

/* Hiking Cell Specifics */
.cell-hiking {
    background: linear-gradient(135deg, rgba(230, 250, 235, 0.8), rgba(200, 235, 210, 0.5));
}

.mountain {
    position: absolute;
    top: 40px;
    right: 40px;
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 30px solid rgba(21, 128, 61, 0.3);
    z-index: 1;
}

.mountain::after {
    content: '';
    position: absolute;
    top: 10px;
    left: -10px;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 25px solid rgba(21, 128, 61, 0.2);
}

/* --- Global Persona Animations --- */
@keyframes personaFloat {
    0% {
        transform: translateY(0px) rotate(0deg);
    }

    50% {
        transform: translateY(-8px) rotate(1deg);
    }

    100% {
        transform: translateY(0px) rotate(0deg);
    }
}

.persona-img-animated,
.persona-img {
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    animation: personaFloat 5s ease-in-out infinite;
    transition: all 0.3s ease;
}

/* Big personas across all case studies */
.persona-img-animated {
    width: 180px;
    height: 180px;
    margin-bottom: 1.5rem;
}

/* Grid persona size for Book study */
.persona-img {
    width: 120px;
    height: 120px;
}

.glass-panel:hover .persona-img-animated,
.glass-panel:hover .persona-img {
    animation-play-state: paused;
    transform: scale(1.08);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}