/* ─── SECTION PADDINGS ───================================================================================ */
        #hero {
            padding: 6rem 0;
            background: radial-gradient(circle at top right, rgba(6, 215, 184, 0.05), transparent 50%),
                radial-gradient(circle at bottom left, rgba(40, 151, 201, 0.05), transparent 50%);
        }

        #purpose,
        #articles,
        #projects-preview,
        #free-resources-preview,
        #premium {
            padding: 8rem 0;
        }

        #presence {
            padding: 7rem 0;
            background: var(--surface-card);
            border-top: 1px solid var(--border-subtle);
            border-bottom: 1px solid var(--border-subtle);
        }

        #premium {
            background: var(--ink-dark);
            color: #ffffff;
        }



/* ─── HERO SECTION ───========================================================================================= */
        .hero-site-name {
            font-size: clamp(3rem, 6vw, 6rem);
            letter-spacing: -0.03em;
            line-height: 1.1;
            margin-bottom: 1rem;
            color: var(--ink-dark);
            min-height: 1.2em;
            /* Prevents height jumping while typing */
        }

        .hero-site-name .dot {
            color: var(--brand-blue);
        }

        /* Typing cursor animation */
        .typing-cursor {
            display: inline-block;
            color: var(--brand-blue);
            font-weight: 300 !important;
            animation: blink 0.8s step-end infinite;
            vertical-align: baseline;
            margin-left: 4px;
        }

        @keyframes blink {

            from,
            to {
                opacity: 1;
            }

            50% {
                opacity: 0;
            }
        }

        .hero-tagline {
            font-size: clamp(1.2rem, 2vw, 1.8rem);
            color: var(--brand-blue);
            font-style: italic;
            margin-bottom: 2rem;
        }

        /*.mouse-frame {*/
        /*    width: 100%;*/
        /*    max-width: 550px;*/
        /*    aspect-ratio: 4/3;*/
        /*    position: relative;*/
        /*    margin: 0 auto;*/
        /*    perspective: 1000px;*/
        /*}*/

        /*.mouse-image-wrapper {*/
        /*    width: 100%;*/
        /*    height: 100%;*/
        /*    border: 1px solid var(--border-subtle);*/
        /*    border-radius: 8px;*/
        /*    background: var(--surface-card);*/
        /*    position: relative;*/
        /*    transition: box-shadow 0.4s ease;*/
        /*    will-change: transform;*/
        /*    overflow: hidden;*/
        /*    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);*/
        /*}*/

        /*.hero-img-placeholder {*/
        /*    width: 100%;*/
        /*    height: 100%;*/
        /*    display: flex;*/
        /*    flex-direction: column;*/
        /*    align-items: center;*/
        /*    justify-content: center;*/
        /*    color: var(--ink-light);*/
        /*    background: linear-gradient(135deg, rgba(40, 151, 201, 0.05), rgba(6, 215, 184, 0.1));*/
        /*    text-align: center;*/
        /*    padding: 1rem;*/
        /*}*/
        
        
        /* ─── HERO SLIDER SECTION (ELEVATED AESTHETIC SCRIM) ─── */
        .hero-slider-wrapper {
            width: 100%;
            max-width: 600px;
            aspect-ratio: 4/3; /* Perfectly proportioned across devices */
            margin: 0 auto;
            border-radius: 12px;
            border: 1px solid var(--border-subtle);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
            overflow: hidden;
            background: #000000; /* Dark base prevents flashes */
            position: relative;
        }
        
        .hero-slider-card {
            position: relative;
            overflow: hidden;
        }

        /* Ken Burns Cinematic Pan/Zoom effect */
        .hero-slider-bg {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-size: cover;
            background-position: center;
            transform: scale(1.0);
            transition: transform 8s ease-out; /* Super slow, imperceptible zoom */
            z-index: 1;
        }

        /* Activates zoom when the slide is active OR hovered */
        .hero-slider-card:hover .hero-slider-bg,
        .carousel-item.active .hero-slider-bg {
            transform: scale(1.1) translateX(-1%); /* Slow cinematic zoom & slight pan */
        }

        /* Aesthetic Scrim (Dynamic Multi-stop Gradient) */
        .hero-slider-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 100%;
            /* Starts very dark at bottom, fades out completely about 60% up */
            background: linear-gradient(to top, 
                rgba(0,0,0,0.95) 0%, 
                rgba(0,0,0,0.8) 25%, 
                rgba(0,0,0,0.4) 50%, 
                rgba(0,0,0,0) 65%);
            z-index: 2;
            padding: 2.5rem 3rem 4rem 3rem; /* Spacious padding */
            transition: background-color 0.4s ease;
        }
        
        /* Subtle card brighten on hover */
        .hero-slider-card:hover .hero-slider-overlay {
            background-color: rgba(40, 151, 201, 0.1); /* Infuses very subtle brand blue on hover */
        }

        /* Floating Mint Tag */
        .hero-slider-tag {
            font-size: 0.7rem;
            letter-spacing: 0.12em;
            text-transform: uppercase;
            color: var(--ink-dark);
            background-color: var(--brand-mint);
            padding: 5px 12px;
            border-radius: 4px;
            font-weight: 700;
            box-shadow: 0 4px 12px rgba(0,0,0,0.2);
            align-self: flex-start;
            margin-bottom: 1.25rem;
        }

        /* Refined Title Typography */
        .hero-slider-title {
            font-size: clamp(1.1rem, 2vw, 1.5rem); /* Scaled up significantly */
            font-weight: 700;
            letter-spacing: -0.01em;
            line-height: 1.25;
            margin-bottom: 0.8rem;
            /* Ensures readability on ANY image */
            text-shadow: 0 2px 10px rgba(0,0,0,0.7);
            /* Clamps to exactly 2 lines so the design never looks messy */
            display: -webkit-box;
            -webkit-line-clamp: 2; 
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .hero-slider-meta {
            font-size: 0.95rem;
            font-weight: 500;
            text-shadow: 0 1px 3px rgba(0,0,0,0.5);
        }

        /* White Dot Indicators (Over the gradient) */
        .custom-hero-dots {
            margin-bottom: 1rem !important;
            z-index: 3;
            justify-content: center !important; /* Forces centering on Desktop and Mobile */
            margin-right: 0 !important; 
            margin-left: 0 !important;
        }
        
        .custom-hero-dots [data-bs-target] {
            width: 8px !important;
            height: 8px !important;
            border-radius: 50% !important;
            background-color: rgba(255,255,255,0.4) !important;
            border: none !important;
            margin: 0 5px !important;
            opacity: 1 !important;
            transition: all 0.3s ease !important;
        }
        
        .custom-hero-dots .active {
            background-color: var(--brand-mint) !important;
            transform: scale(1.4);
        }

        @media (max-width: 991px) {
            .hero-slider-wrapper { margin-top: 3rem; }
            .hero-slider-overlay { padding: 2rem; }
            .custom-hero-dots { justify-content: center !important; margin-right: 0 !important; }
        }

/* ─── PURPOSE SECTION (ELEVATED CARDS) ─── */
        .purpose-card {
            background: var(--surface-bg);
            border: 1px solid var(--border-subtle);
            border-radius: 12px;
            padding: 3.5rem 3rem;
            position: relative;
            overflow: hidden;
            transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
            z-index: 1;
        }

        /* Subtle gradient accent bar at the top of the card */
        .purpose-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: var(--brand-gradient);
            opacity: 0.3;
            transition: opacity 0.4s ease;
        }

        .purpose-card:hover {
            background: var(--surface-card);
            transform: translateY(-6px);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.04);
            border-color: rgba(40, 151, 201, 0.25);
        }

        .purpose-card:hover::before {
            opacity: 1; /* Gradient brightens on hover */
        }

        .purpose-icon-wrapper {
            width: 65px;
            height: 65px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.8rem;
            transition: transform 0.4s ease;
        }

        .purpose-icon-blue {
            background: rgba(40, 151, 201, 0.1);
            color: var(--brand-blue);
            border: 1px solid rgba(40, 151, 201, 0.2);
        }

        .purpose-icon-mint {
            background: rgba(6, 215, 184, 0.1);
            color: var(--brand-mint);
            border: 1px solid rgba(6, 215, 184, 0.2);
        }

        .purpose-card:hover .purpose-icon-wrapper {
            transform: scale(1.08) rotate(-5deg); /* Playful icon pop on hover */
        }
        
        @media (max-width: 767px) {
            .purpose-card { padding: 2.5rem 1.5rem; }
        }
        

        .text-link {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            font-size: 1rem;
            color: var(--brand-blue);
            margin-top: 1.5rem;
            border-bottom: 1px solid transparent;
            transition: all 0.3s ease;
        }

        .text-link:hover {
            border-color: var(--brand-blue);
            gap: 0.8rem;
        }
        
/* ─── RECENT PROJECTS SECTION ─── */
        .project-card {
            background: var(--surface-card);
            border: 1px solid var(--border-subtle);
            border-radius: 8px;
            display: flex;
            flex-direction: column;
            transition: all 0.3s ease;
            overflow: hidden;
            height: 100%;
        }

        .project-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
            border-color: var(--brand-mint); /* Mint hover for projects */
        }

        .project-img {
            width: 100%;
            aspect-ratio: 16/10; /* Slightly tighter than blogs */
            background: linear-gradient(135deg, rgba(6, 215, 184, 0.1), rgba(40, 151, 201, 0.1));
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--brand-mint);
            font-size: 2rem;
            border-bottom: 1px solid var(--border-subtle);
        }

        .project-body {
            padding: 1.5rem; /* Tighter padding for a smaller card feel */
            display: flex;
            flex-direction: column;
            flex: 1;
        }

        .project-tag {
            font-size: 0.65rem;
            letter-spacing: 0.1em;
            text-transform: uppercase;
            color: var(--ink-dark);
            background-color: var(--brand-mint); /* Solid mint pill */
            padding: 3px 8px;
            border-radius: 4px;
            align-self: flex-start;
            margin-bottom: 0.8rem;
            font-weight: 600;
        }

        .project-title {
            font-size: 1.1rem;
            color: var(--ink-dark);
            line-height: 1.4;
            margin-bottom: 1rem;
            /* CRITICAL: Truncates long titles to exactly 2 lines with an ellipsis (...) */
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .project-meta {
            font-size: 0.8rem;
            color: var(--ink-light);
            margin-top: auto;
        }

/* ─── ARTICLES SECTION ─── */
        .blog-card {
            background: var(--surface-card);
            border: 1px solid var(--border-subtle);
            border-radius: 8px;
            display: flex;
            flex-direction: column;
            transition: all 0.3s ease;
            overflow: hidden;
            height: 100%;
        }

        .blog-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
            border-color: var(--brand-teal);
        }

        .blog-img {
            width: 100%;
            aspect-ratio: 16/9;
            background: linear-gradient(135deg, rgba(40, 151, 201, 0.1), rgba(6, 215, 184, 0.1));
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--brand-blue);
            font-size: 2.5rem;
            border-bottom: 1px solid var(--border-subtle);
        }

        .blog-body {
            padding: 2rem;
            display: flex;
            flex-direction: column;
            flex: 1;
        }

        .blog-tag {
            font-size: 0.75rem;
            letter-spacing: 0.15em;
            text-transform: uppercase;
            color: var(--brand-blue);
            margin-bottom: 0.75rem;
        }

        .blog-title {
            font-size: 1.3rem;
            color: var(--ink-dark);
            line-height: 1.4;
            margin-bottom: 1rem;
        }

        .blog-excerpt {
            font-size: 0.95rem;
            color: var(--ink-medium);
            line-height: 1.7;
            margin-bottom: 1.5rem;
            flex: 1;
        }

        .blog-meta {
            font-size: 0.85rem;
            color: var(--ink-light);
            display: flex;
            flex-wrap: wrap;
            gap: 0.8rem;
            margin-top: auto;
        }

 /* ─── YOUTUBE SECTION ─── */
#youtube-showcase {
            padding: 8rem 0;
            background-color: var(--surface-card);
            border-top: 1px solid var(--border-subtle);
            border-bottom: 1px solid var(--border-subtle);
        }

        /* Matches the mobile spacing of your other index.html sections */
        @media (max-width: 991px) {
            #youtube-showcase {
                padding: 4rem 0;
            }
        }

 /* ─── PRESENCE SECTION ─── */
        .presence-card {
            background: var(--surface-bg);
            border: 1px solid var(--border-subtle);
            padding: 1.5rem; /* CRITICAL FIX: Slashed from 3rem to make it compact */
            border-radius: 12px;
            display: flex;
            flex-direction: column;
            height: 100%;
            transition: all 0.4s ease;
            position: relative;
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02); /* Soft resting shadow */
        }

        .presence-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background: var(--brand-gradient);
            transform: scaleX(0);
            transition: transform 0.4s ease;
            transform-origin: left;
        }

        .presence-card:hover {
            background: var(--surface-card);
            transform: translateY(-4px);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
            border-color: transparent;
        }

        .presence-card:hover::before {
            transform: scaleX(1);
        }

        .presence-icon {
            width: 42px; /* Shrunk from 50px */
            height: 42px; /* Shrunk from 50px */
            border: 1px solid var(--border-subtle);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.1rem; /* Shrunk from 1.3rem */
            background: var(--surface-card);
            flex-shrink: 0;
        }
        
/* ─── FREE RESOURCES SECTION ─── */
        .free-card {
            background: var(--surface-bg);
            border: 1px dashed var(--border-subtle); /* Dashed border gives a "document/file" feel */
            border-radius: 8px;
            padding: 1.5rem;
            transition: all 0.3s ease;
        }

        .free-card:hover {
            border-style: solid;
            border-color: var(--brand-blue);
            box-shadow: 0 8px 24px rgba(40, 151, 201, 0.08);
            transform: translateY(-3px);
            background: var(--surface-card); /* Pops to pure white on hover */
        }

        .free-card-icon {
            width: 50px;
            height: 50px;
            background-color: rgba(40, 151, 201, 0.05);
            color: var(--brand-blue);
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            flex-shrink: 0; /* Prevents the icon from squishing if the title is long */
            border: 1px solid rgba(40, 151, 201, 0.15);
        }

        .free-card-title {
            font-size: 1.05rem;
            color: var(--ink-dark);
            line-height: 1.3;
            font-weight: 600;
        }

        .free-card-excerpt {
            font-size: 0.85rem;
            color: var(--ink-medium);
            line-height: 1.6;
            margin-bottom: 0;
        }

/* ─── PREMIUM SECTION ─── */
        .premium-row {
            display: flex;
            align-items: center;
            gap: 1.2rem;
            padding: 1.2rem;
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 6px;
            background: rgba(255, 255, 255, 0.03);
            transition: all 0.3s ease;
            margin-bottom: 1rem;
        }

        .premium-row:hover {
            border-color: var(--brand-mint);
            background: rgba(6, 215, 184, 0.05);
            transform: translateX(5px);
        }

        .premium-row-icon {
            width: 45px;
            height: 45px;
            border: 1px solid rgba(6, 215, 184, 0.3);
            border-radius: 6px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.1rem;
            color: var(--brand-mint);
            background: rgba(6, 215, 184, 0.1);
            flex-shrink: 0;
        }

        /* ══════════════════════════════════════════════════ */
        /* ─── RESPONSIVE ADJUSTMENTS (THE MOBILE FIXES) ─================================================================── */
        /* ══════════════════════════════════════════════════ */

        @media (max-width: 991px) {
            

            #purpose,
            #articles,
            #projects-preview,
            #free-resources-preview,
            #premium{
                padding: 4rem 0;
            }

            #presence {
                padding: 4rem 0;
            }


        }

        @media (max-width: 576px) {

            .premium-row {
                flex-direction: column;
                text-align: center;
                align-items: center;
            }
        }
        
        /* ─── MOBILE OVERRIDES FOR 2-COLUMN PROJECT GRID ─── */
        @media (max-width: 576px) {
            .project-body {
                padding: 1rem; /* Shrinks the inner padding so text isn't suffocated */
            }
            .project-title {
                font-size: 0.9rem; /* Scales down the title */
                margin-bottom: 0.75rem;
            }
            .project-tag {
                font-size: 0.55rem; /* Scales down the mint pill */
                padding: 2px 6px;
                margin-bottom: 0.5rem;
            }
            .project-img {
                font-size: 1.3rem; /* Scales down the placeholder icon */
            }
        }


/*/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
        /* ─── ASSISTED READING HIGHLIGHT ─── */
        .reading-word {
            transition: background-color 0.2s ease, color 0.2s ease;
            border-radius: 3px;
            padding: 2px 0;
            /* Keeps the highlight tight to the word */
        }

        .reading-word.highlighted {
            color: #000000 !important;
            /* Dark black front */
            background-color: rgba(29, 168, 201, 0.15);
            /* Light brand teal background */
        }
        
        
        
/* ─── MOBILE OVERRIDES FOR HERO BUTTONS ─── */
        @media (max-width: 576px) {
            .hero-actions {
                flex-direction: row !important; 
                flex-wrap: nowrap !important;
                gap: 0.5rem !important;
            }

            .hero-actions .btn-custom {
                flex: 1 !important; /* Forces both buttons to split the row 50/50 */
                width: auto !important;
                padding: 0.7rem 0.5rem !important;
                font-size: 0.85rem !important;
                white-space: nowrap !important; /* Stops text from breaking to two lines */
            }
        }
    