/* --- 1. THEME VARIABLES --- */
        :root {
            /* Brand Identity Colors */
            --brand-navy: #022e47;
            --brand-cream: #FAF8F1;
            --brand-orange: #f68f1d;
            --brand-pink: #ea3b60;
            
            /* Default LIGHT Theme Mapping */
            --bg-body: var(--brand-cream);
            --text-main: var(--brand-navy);
            --text-muted: rgba(2, 46, 71, 0.6);
            --nav-bg-scrolled: rgba(250, 248, 241, 0.95);
            --nav-mobile-bg: #FAF8F1;
            --nav-mobile-shadow: rgba(0,0,0,0.1);
            
            /* Footer is always dark */
            --footer-bg: var(--brand-navy);
            
            --vf-grad: linear-gradient(135deg, var(--brand-orange) 0%, var(--brand-orange) 65%, var(--brand-pink) 100%);
            
            --font-display: 'Bakbak One', cursive;
            --font-body: 'Work Sans', sans-serif;
        }

        /* DARK THEME OVERRIDES */
        [data-theme="dark"] {
            --bg-body: #011a2a; 
            --text-main: #e6e6e6;
            --text-muted: rgba(255, 255, 255, 0.6);
            --nav-bg-scrolled: rgba(1, 26, 42, 0.95);
            --nav-mobile-bg: #022e47;
            --nav-mobile-shadow: rgba(0,0,0,0.4);
        }

        /* --- 2. GLOBAL STYLES --- */
        body {
            background-color: var(--bg-body);
            font-family: var(--font-body);
            color: var(--text-main);
            overflow-x: hidden;
            transition: background-color 0.3s ease, color 0.3s ease;
        }

        h1, h2, h3, h4, h5, h6 {
            font-family: var(--font-display);
            text-transform: uppercase;
            font-weight: 400; 
        }

        .text-gradient {
            background: var(--vf-grad);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        /* --- 3. AMBIENT BACKGROUND --- */
        .ambient-light {
            position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
            z-index: -1; pointer-events: none; overflow: hidden;
            background: var(--bg-body);
            transition: background-color 0.3s ease;
        }

        .orb {
            position: absolute; border-radius: 50%;
            filter: blur(80px); opacity: 0.5;
            animation: floatOrb 20s infinite ease-in-out;
        }

        .orb-1 { width: 100vw; height: 100vw; background: var(--brand-orange); top: -10%; left: -10%; opacity: 0.15;}
        .orb-2 { width: 30vw; height: 30vw; background: var(--brand-pink); bottom: 10%; right: -5%; animation-delay: -5s; opacity: 0.15;}
        .orb-3 { width: 60vw; height: 60vw; background: #ff5500; top: 40%; left: 40%; animation-delay: -10s; opacity: 0.1;}

        @keyframes floatOrb {
            0%, 100% { transform: translate(0, 0) scale(1); }
            50% { transform: translate(30px, -50px) scale(1.1); }
        }

		/* --- 7. HERO SECTION (SPLIT LAYOUT) --- */
        .hero-section {
            min-height: 100vh;
            display: flex;
            align-items: center;
            position: relative;
            padding-top: 160px; 
            padding-bottom: 80px;
            z-index: 1; 
        }

        .hero-title {
            font-size: clamp(3rem, 6vw, 4.5rem); 
            letter-spacing: -0.04em; /* Strict Verafede Guideline */
            margin-bottom: 1.2rem;
            line-height: 0.8 !important;
        }

        .hero-sub {
            font-size: 1.15rem;
            max-width: 500px; 
            font-weight: 600;
            line-height: 1;
            margin-bottom: 2rem;
        }
		
		/* --- 8. BOXED EDITORIAL TOPICS --- */
        .topics-box {
            max-width: 520px;
            background: rgba(255, 255, 255, 0.4);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border: 1px solid rgba(255, 255, 255, 0.6);
            border-radius: 16px;
            padding: 24px 28px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .topics-box:hover {
            transform: translateY(-4px);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
        }

        .topics-box-header {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 20px;
            border-bottom: 1px solid rgba(2, 46, 71, 0.08);
            padding-bottom: 12px;
        }

        .topics-box-header i {
            font-size: 1rem;
        }

        .editorial-label {
            font-family: var(--font-display);
            font-size: 0.85rem;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 2px;
            font-weight: 600;
            margin: 0; /* Removed bottom margin since the header handles it */
        }

        .editorial-list {
            display: flex;
            flex-wrap: wrap;
            gap: 14px 24px; 
            justify-content: center;
        }

        /* Target desktop to align left */
        @media (min-width: 992px) {
            .editorial-list { justify-content: flex-start; }
        }

        .editorial-link {
            position: relative;
            color: var(--text-main);
            text-decoration: none;
            font-family: var(--font-body);
            font-weight: 500;
            font-size: 1rem;
            display: inline-flex;
            align-items: flex-start;
            transition: color 0.3s ease;
            padding-bottom: 4px;
        }

        /* The tiny numbers next to the topics */
        .editorial-link .num {
            font-size: 0.65rem;
            color: var(--brand-orange);
            font-weight: 700;
            margin-right: 6px;
            margin-top: 3px;
            opacity: 0.8;
            transition: opacity 0.3s ease;
        }

        /* The animated underline effect */
        .editorial-link::after {
            content: '';
            position: absolute;
            left: 0;
            bottom: 0;
            width: 0;
            height: 2px;
            background: var(--vf-grad);
            transition: width 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
        }

        /* Hover States */
        .editorial-link:hover { color: var(--brand-orange); }
        .editorial-link:hover .num { opacity: 1; }
        .editorial-link:hover::after { width: 100%; }

        /* DARK MODE OVERRIDES */
        [data-theme="dark"] .topics-box { 
            background: rgba(2, 46, 71, 0.4); 
            border-color: rgba(255, 255, 255, 0.08); 
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        }
        [data-theme="dark"] .topics-box-header { border-bottom-color: rgba(255, 255, 255, 0.1); }
        [data-theme="dark"] .editorial-label { color: rgba(255, 255, 255, 0.7); }
        [data-theme="dark"] .editorial-link { color: rgba(255, 255, 255, 0.9); }
        [data-theme="dark"] .editorial-link:hover { color: var(--brand-orange); }

        /* --- 8. MODERN SEARCH PILL --- */
        .search-box-modern {
            display: flex;
            align-items: center;
            background: rgba(255, 255, 255, 0.5);
            backdrop-filter: blur(12px);
            border: 1px solid rgba(2, 46, 71, 0.1);
            border-radius: 50px;
            padding: 6px;
            width: 100%; /* Added to ensure it stretches */
            max-width: 198px; /* Increased from 450px. Adjust this number as needed. */
            transition: all 0.3s ease;
            box-shadow: 0 10px 30px rgba(0,0,0,0.03);
            position: relative;
        }

        .search-box-modern:focus-within {
            border-color: var(--brand-orange);
            box-shadow: 0 10px 30px rgba(246, 143, 29, 0.15);
            background: rgba(255, 255, 255, 0.8);
        }

        .search-icon-modern {
            padding-left: 15px;
            color: var(--text-muted);
            font-size: 1.1rem;
        }

        .search-input-modern {
            flex-grow: 1;
            border: none;
            background: transparent;
            padding: 10px 15px;
            color: var(--text-main);
            font-family: var(--font-body);
            font-size: 1rem;
            outline: none;
        }

        .search-input-modern::placeholder { color: var(--text-muted); opacity: 0.7; }

        /* --- MOBILE FRIENDLY DOCK BUTTONS --- */
.dock-buttons {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Smooth swiping on iOS */
    scrollbar-width: none; /* Hide scrollbar in Firefox */
    padding-bottom: 5px; /* Prevent box-shadow clipping on active buttons */
}

/* Hide scrollbar in Chrome/Safari/Edge */
.dock-buttons::-webkit-scrollbar {
    display: none;
}

/* Force buttons to stay in a row and not shrink */
.dock-btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

/* Reset to normal wrapping on Desktop (lg breakpoints and up) */
@media (min-width: 992px) {
    .dock-buttons {
        width: auto;
        overflow-x: visible;
        flex-wrap: wrap;
        padding-bottom: 0;
    }
    
    /* Ensure the search box doesn't overstretch on desktop */
    .search-box-modern.w-100 {
        width: auto !important; 
    }
}

        /* --- 8.5 UNIFIED CATEGORY DOCK --- */
        .category-dock {
            display: flex;
            background: rgba(255, 255, 255, 0.3);
            backdrop-filter: blur(12px);
            border: 1px solid rgba(2, 46, 71, 0.1);
            border-radius: 50px;
            padding: 8px 12px; /* Slightly more padding to accommodate the search bar */
            box-shadow: 0 4px 15px rgba(0,0,0,0.02);
            width: 100%; /* Ensures it spans the container to fit both elements */
        }

        .dock-btn {
            background: transparent;
            border: none;
            padding: 8px 22px;
            border-radius: 50px;
            color: var(--text-main);
            font-family: var(--font-body);
            font-weight: 500;
            font-size: 0.9rem;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .dock-btn:hover {
            color: var(--brand-orange);
            background: rgba(255, 255, 255, 0.4);
        }

        .dock-btn.active {
            background: var(--vf-grad);
            color: white;
            box-shadow: 0 4px 15px rgba(246, 143, 29, 0.3);
        }

        /* DARK MODE OVERRIDES FOR DOCK */
        [data-theme="dark"] .category-dock { background: rgba(0, 0, 0, 0.3); border-color: rgba(255, 255, 255, 0.1); }
        [data-theme="dark"] .dock-btn:hover { background: rgba(255, 255, 255, 0.1); }

        /* --- 9. INTERACTIVE ARTICLE FRAME --- */
        .interactive-article-wrapper {
            position: relative;
            max-width: 480px;
            margin: 0 auto;
            perspective: 1000px; /* Gives it 3D depth */
        }

        /* The glowing aura behind the card */
        .frame-glow {
            position: absolute;
            top: 10%; left: 10%; width: 80%; height: 80%;
            background: var(--vf-grad);
            filter: blur(45px);
            opacity: 0.4;
            z-index: 0;
            transition: opacity 0.5s;
            animation: pulse-glow 4s infinite alternate;
        }

        .article-frame {
            position: relative;
            z-index: 1;
            background: rgba(255, 255, 255, 0.4);
            border: 1px solid rgba(255, 255, 255, 0.5);
            backdrop-filter: blur(20px);
            border-radius: 20px;
            overflow: hidden;
            box-shadow: 0 20px 40px rgba(0,0,0,0.08);
            
            /* Changed transition to be very fast so it tracks the mouse smoothly */
            transition: transform 0.1s ease-out, box-shadow 0.3s ease; 
            transform-style: preserve-3d;
            will-change: transform;
        }

        /* We removed the old hover rotation, JS does the work now. We just increase the shadow. */
        .interactive-article-wrapper:hover .article-frame {
            box-shadow: 0 30px 50px rgba(0,0,0,0.15);
        }

        .interactive-article-wrapper:hover .frame-glow { opacity: 0.7; }

        .frame-img-wrapper { position: relative; width: 100%; height: 220px; overflow: hidden; }
        
        .frame-img {
            width: 100%; height: 100%; object-fit: cover;
            transition: transform 0.6s ease;
        }
        
        .interactive-article-wrapper:hover .frame-img { transform: scale(1.08); }

        .frame-tag {
            position: absolute; top: 15px; left: 15px;
            background: rgba(0,0,0,0.6); color: white;
            backdrop-filter: blur(5px); font-size: 0.75rem;
            padding: 5px 12px; border-radius: 50px; text-transform: uppercase;
            font-weight: 600; letter-spacing: 1px;
        }

        .frame-content { padding: 30px; }

        .frame-title {
            font-size: 1.5rem; letter-spacing: -0.04em;
            margin-bottom: 12px; line-height: 1.2;
        }

        .frame-desc {
            font-size: 0.95rem; 
            line-height: 1.5; 
            margin-bottom: 20px;
            display: -webkit-box; 
            -webkit-line-clamp: 3; 
            line-clamp: 3; /* The standard property to satisfy VS Code */
            -webkit-box-orient: vertical; 
            overflow: hidden;
        }

        .frame-btn {
            text-decoration: none; color: var(--brand-orange);
            font-weight: 600; font-size: 0.95rem; display: inline-flex;
            align-items: center; gap: 8px; transition: gap 0.3s;
        }
        .frame-btn:hover { gap: 12px; color: var(--brand-pink); }

        /* DARK MODE OVERRIDES */
        [data-theme="dark"] .search-box-modern { background: rgba(0, 0, 0, 0.3); border-color: rgba(255, 255, 255, 0.1); }
        [data-theme="dark"] .search-box-modern:focus-within { background: rgba(0, 0, 0, 0.6); border-color: var(--brand-orange); }
        [data-theme="dark"] .cat-chip { border-color: rgba(255, 255, 255, 0.15); background: rgba(0, 0, 0, 0.2); }
        [data-theme="dark"] .article-frame { background: rgba(2, 46, 71, 0.4); border-color: rgba(255, 255, 255, 0.05); }

        /* Animations */
        @keyframes pulse-glow { 0% { transform: scale(1); } 100% { transform: scale(1.05); } }
        .fade-in-up { animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
        @keyframes fadeInUp { 0% { opacity: 0; transform: translateY(30px); } 100% { opacity: 1; transform: translateY(0); } }
		
		/* --- 10. BLOG/ARTICLE GRID LAYOUT --- */
       /* REPLACE YOUR EXISTING .posts-grid WITH THIS */
.posts-grid {
    display: grid;
    /* This creates a responsive 3-column grid. On small screens, they stack. On large screens, they sit side-by-side */
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px; /* Space between the cards */
    width: 100%;
    margin-top: 40px;
    align-items: stretch; /* Makes all cards in a row the exact same height */
}

        /* Tablet and up: 2 columns */
        @media (min-width: 768px) {
            .posts-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        /* Desktop and up: 3 columns + featured spanning */
        @media (min-width: 1024px) {
            .posts-grid {
                grid-template-columns: repeat(3, 1fr);
                gap: 30px;
            }
            /* The 'big' card takes up 2 columns and 2 rows */
            .post-card.big {
                grid-column: span 2;
                grid-row: span 2;
            }
        }

        /* --- 11. POST CARD STYLING --- */
        .post-card {
            position: relative;
            display: flex;
            flex-direction: column;
            justify-content: flex-end;
            min-height: 300px;
            border-radius: 20px;
            overflow: hidden;
            text-decoration: none;
            box-shadow: 0 10px 30px rgba(0,0,0,0.08);
            transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s;
            /* Using transform-style to prevent text blurring during scale */
            transform-style: preserve-3d;
        }

        .post-card.big {
            min-height: 500px;
        }

        /* Background Image setup using the inline CSS variable */
        .post-card::before {
            content: '';
            position: absolute;
            inset: 0;
            background-image: var(--img);
            background-size: cover;
            background-position: center;
            transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
            z-index: 0;
        }

        /* Dark Gradient Overlay for text readability */
        .post-card::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 50%, rgba(0, 0, 0, 0.1) 100%);
            z-index: 1;
            transition: background 0.4s ease;
        }

        /* Hover Effects */
        .post-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 20px 40px rgba(0,0,0,0.15);
        }

        .post-card:hover::before {
            transform: scale(1.08); /* Zooms the background image */
        }

        .post-card:hover::after {
            background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.4) 60%, rgba(0, 0, 0, 0.2) 100%);
        }

        /* --- 12. CARD CONTENT STYLING --- */
        .post-content {
            position: relative;
            z-index: 2;
            padding: 24px;
            color: #ffffff; /* Text is always white on top of the dark gradient */
            width: 100%;
        }

        .post-card.big .post-content {
            padding: 36px;
        }

        /* Topline (Category & Arrow) */
        .post-topline {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
        }

        .post-chip {
            background: rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
            padding: 6px 14px;
            border-radius: 50px;
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 1px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .arrow-badge {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(10px);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            font-size: 0.9rem;
        }

        .post-card:hover .arrow-badge {
            background: var(--brand-orange);
            color: white;
            transform: rotate(45deg); /* Playful little spin on hover */
        }

        /* Typography */
        .post-title {
            font-size: 1.4rem;
            margin-bottom: 12px;
            line-height: 1.25;
            letter-spacing: -0.02em;
        }

        .post-card.big .post-title {
            font-size: 2.2rem;
        }

        .post-desc {
            font-size: 0.95rem;
            color: rgba(255, 255, 255, 0.8);
            line-height: 1.5;
            margin-bottom: 20px;
            display: -webkit-box;
            -webkit-line-clamp: 2; 
            line-clamp: 2; 
            -webkit-box-orient: vertical;
        overflow: hidden;
        }

        .post-card.big .post-desc {
            font-size: 1.1rem;
            max-width: 80%;
            -webkit-line-clamp: 3;
            line-clamp: 3; 
        }

        .post-meta {
            display: flex;
            gap: 16px;
            border-top: 1px solid rgba(255, 255, 255, 0.15);
            padding-top: 16px;
        }

        .meta-pill {
            font-size: 0.8rem;
            color: rgba(255, 255, 255, 0.9);
            display: flex;
            align-items: center;
            gap: 6px;
            font-weight: 500;
        }

        /* DARK MODE OVERRIDES */
        /* Note: Because the images have a dark gradient overlay, the text inside the cards remains white regardless of theme. 
           We just need to adjust the outer shadow for dark mode. */
        [data-theme="dark"] .post-card {
            box-shadow: 0 10px 30px rgba(0,0,0,0.5);
        }
        [data-theme="dark"] .post-card:hover {
            box-shadow: 0 20px 40px rgba(0,0,0,0.8);
        }
		
		/* --- BRAND LOGO THEME ADAPTATION --- */
		/* Set a uniform height so it fits cleanly in the navbar */
		.brand-logo {
			height: 70px; /* Adjust this value if you want the logo bigger or smaller */
			width: auto;
		object-fit: contain;
		}

		/* Default (Light Theme) Settings */
		.logo-light {
			display: block;
		}
		.logo-dark {
			display: none;
		}

		/* Dark Theme Settings */
		/* Targets the images when your JS adds data-theme="dark" to the html tag */
		html[data-theme="dark"] .logo-light {
			display: none;
		}
		html[data-theme="dark"] .logo-dark {
			display: block;
		}
		
		/* --- NEW: Mac Window Header Styling --- */
.mac-window-header {
    display: flex;
    gap: 8px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.mac-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

/* Dark mode override for the window header */
[data-theme="dark"] .mac-window-header {
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.interactive-article-wrapper {
    position: relative;
    max-width: 650px; /* Increased size */
    margin: 0 auto;
    perspective: 1000px; 
}

/* Find this existing class and change height from 220px to 280px to match the bigger card */
.frame-img-wrapper { 
    position: relative; 
    width: 100%; 
    height: 580px; /* Increased image height */
    overflow: hidden; 
}

/* --- STRICT CARD CONTENT STRUCTURE --- */

.frame-content { 
    padding: 30px; 
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Allows this section to fill the card */
    height: 100%;
}

.frame-title {
    font-size: 1.5rem; 
    line-height: 1.2;
    /* 1.5rem font-size * 1.2 line-height * 2 lines = 3.6rem */
    min-height: 3.6rem !important; /* Forces the box to never shrink below 2 lines */
    max-height: 3.6rem !important; /* Forces the box to never grow above 2 lines */
    margin-bottom: 12px !important;
    display: -webkit-box !important;
    line-clamp: 2 !important; 
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis;
}

.frame-desc {
    font-size: 0.95rem; 
    color: var(--text-muted);
    line-height: 1.5; 
    /* 0.95rem font-size * 1.5 line-height * 3 lines = 4.275rem */
    min-height: 4.275rem !important; /* Forces the box to never shrink below 3 lines */
    max-height: 4.275rem !important; /* Forces the box to never grow above 3 lines */
    margin-bottom: 20px !important;
    display: -webkit-box !important;
    line-clamp: 3 !important; 
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis;
}

.frame-btn {
    margin-top: auto !important; /* Anchors the button firmly to the bottom */
    text-decoration: none; 
    color: var(--brand-orange);
    font-weight: 600; 
    font-size: 0.95rem; 
    display: inline-flex !important;
    align-items: center; 
    gap: 8px; 
    transition: gap 0.3s;
}

.frame-btn:hover { 
    gap: 12px; 
    color: var(--brand-pink); 
}

/* REPLACE YOUR EXISTING .article-frame WITH THIS */
.article-frame {
    position: relative;
    z-index: 1;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    transition: transform 0.1s ease-out, box-shadow 0.3s ease; 
    
    /* Flexbox rules to make the cards uniform */
    display: flex;
    flex-direction: column;
    height: 500px; /* Forces the card to stretch to the grid row height */
}

/* --- PROJECT COUNTER STATS --- */
.project-stats-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 600px;
}

/* Tablet and up: 4 columns side-by-side */
@media (min-width: 768px) {
    .project-stats-row {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-box {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 16px;
    padding: 20px 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2.2rem;
    background: var(--vf-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
}

/* DARK MODE OVERRIDES */
[data-theme="dark"] .stat-box {
    background: rgba(2, 46, 71, 0.4);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
[data-theme="dark"] .stat-label {
    color: rgba(255, 255, 255, 0.7);
}

/* --- CASE STUDY BUTTON --- */
.frame-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: var(--vf-grad); /* Verafede gradient */
  box-shadow: 0 6px 16px rgba(246, 143, 29, 0.25);
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

/* Hover: gradient glow + arrow slide */
.frame-btn:hover {
  box-shadow: 0 10px 24px rgba(234, 59, 96, 0.35);
  transform: translateY(-2px);
}

.frame-btn i {
  transition: transform 0.35s ease;
}

.frame-btn:hover i {
  transform: translateX(6px); /* arrow slides forward */
}

/* Shine effect */
.frame-btn::after {
  content: '';
  position: absolute;
  top: 0; left: -50%;
  width: 50%; height: 100%;
  background: rgba(255,255,255,0.25);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.frame-btn:hover::after {
  left: 120%;
}







