 /* ======================================== */
        /* ==            CSS STYLES              == */
        /* ======================================== */
        
        /* -- VARIABLES & ROOT -- */
        :root {
            --primary-color: #4a90e2;
            --secondary-color: #50e3c2;
            --dark-blue: #2c3e50;
            --light-gray: #ecf0f1;
            --bg-color: #f9fafb;
            --text-color: #34495e;
            --white-color: #ffffff;
            --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
            --card-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.12);
            --border-radius: 12px;
            --transition-speed: 0.3s;
        }

        /* -- RESET & BASE STYLES -- */
        *, *::before, *::after {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        html {
            scroll-behavior: smooth;
            font-size: 16px;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
            background-color: var(--bg-color);
            color: var(--text-color);
            line-height: 1.7;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        /* -- TYPOGRAPHY & LINKS -- */
        h1, h2, h3, h4 {
            color: var(--dark-blue);
            line-height: 1.3;
            font-weight: 700;
        }

        h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
        h2 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 1.5rem; }
        h3 { font-size: 1.5rem; margin-bottom: 1rem; }

        p { margin-bottom: 1rem; }

        a {
            color: var(--primary-color);
            text-decoration: none;
            position: relative;
            transition: color var(--transition-speed) ease;
        }

        a::after {
            content: '';
            position: absolute;
            width: 100%;
            height: 2px;
            bottom: -2px;
            left: 0;
            background-color: var(--secondary-color);
            transform: scaleX(0);
            transform-origin: bottom right;
            transition: transform var(--transition-speed) ease-out;
        }

        a:hover, a:focus {
            color: var(--dark-blue);
        }

        a:hover::after, a:focus::after {
            transform: scaleX(1);
            transform-origin: bottom left;
        }
        
        /* -- LAYOUT & CONTAINER -- */
        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 1.5rem;
        }

        section {
            padding: 4rem 0;
        }

        /* -- HEADER & NAVIGATION -- */
        .main-header {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            z-index: 1000;
            background-color: rgba(255, 255, 255, 0.85);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
            transition: top var(--transition-speed) ease;
        }

        .main-header.hidden {
            top: -100px;
        }

        .navbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            height: 70px;
        }

        .logo {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--dark-blue);
        }

        .nav-links {
            list-style: none;
            display: flex;
            gap: 2rem;
        }

        .nav-links a {
            font-weight: 600;
        }

        .nav-toggle {
            display: none;
            background: none;
            border: none;
            cursor: pointer;
            z-index: 1001;
        }

        .hamburger {
            width: 24px;
            height: 2px;
            background-color: var(--dark-blue);
            display: block;
            position: relative;
            transition: background-color 0s 0.2s;
        }

        .hamburger::before,
        .hamburger::after {
            content: '';
            width: 24px;
            height: 2px;
            background-color: var(--dark-blue);
            position: absolute;
            left: 0;
            transition: transform 0.2s ease-in-out, top 0.2s ease-in-out 0.2s;
        }
        .hamburger::before { top: -8px; }
        .hamburger::after { top: 8px; }

        body.nav-open .hamburger { background-color: transparent; }
        body.nav-open .hamburger::before { top: 0; transform: rotate(45deg); transition: top 0.2s ease-in-out, transform 0.2s ease-in-out 0.2s; }
        body.nav-open .hamburger::after { top: 0; transform: rotate(-45deg); transition: top 0.2s ease-in-out, transform 0.2s ease-in-out 0.2s; }
        

        /* -- HERO SECTION -- */
        .hero {
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            min-height: 100vh;
            padding-top: 70px; /* Header height */
            color: var(--white-color);
            background: linear-gradient(135deg, rgba(74, 144, 226, 0.9), rgba(80, 227, 194, 0.9)), 
                        url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.1"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
            background-attachment: fixed;
        }

        .hero h1 {
            color: var(--white-color);
            margin-bottom: 1rem;
        }

        .hero-subtitle {
            font-size: 1.5rem;
            font-weight: 300;
            min-height: 2.2rem; /* Prevent layout shift */
        }
        
        .typing-cursor {
            display: inline-block;
            width: 3px;
            height: 1.5rem;
            background-color: var(--secondary-color);
            animation: blink 1s infinite;
        }

        @keyframes blink {
            0%, 100% { opacity: 1; }
            50% { opacity: 0; }
        }

        /* -- CARDS & SECTIONS -- */
        .card {
            background: var(--white-color);
            border-radius: var(--border-radius);
            box-shadow: var(--card-shadow);
            padding: 2.5rem;
            transition: transform var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
        }

        .card:hover {
            transform: translateY(-8px);
            box-shadow: var(--card-shadow-hover);
        }

        .grid-2 {
            display: grid;
            grid-template-columns: 1fr;
            gap: 2rem;
        }
        
        /* -- POSTS SECTION -- */
        #posts .post-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 2rem;
        }
        .post-card { text-align: left; }
        .post-card svg {
            width: 100%;
            height: 200px;
            border-radius: var(--border-radius) var(--border-radius) 0 0;
            display: block;
        }
        .post-content { padding: 1.5rem; }
        .post-excerpt {
            margin-bottom: 1.5rem;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;  
            overflow: hidden;
        }

        /* -- STATS SECTION -- */
        #stats {
            background-color: var(--light-gray);
        }
        .stats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 2rem;
            text-align: center;
        }
        .stat-item .stat-number {
            font-size: 3rem;
            font-weight: 700;
            color: var(--primary-color);
        }
        .stat-item .stat-label {
            font-size: 1rem;
            color: var(--text-color);
        }

        /* -- NEWSLETTER & FORM -- */
        .newsletter-form {
            display: flex;
            gap: 1rem;
            max-width: 500px;
            margin: 0 auto;
        }
        .newsletter-form input {
            flex-grow: 1;
            padding: 0.8rem 1rem;
            border: 2px solid var(--light-gray);
            border-radius: 8px;
            font-size: 1rem;
            transition: border-color var(--transition-speed);
        }
        .newsletter-form input:focus {
            outline: none;
            border-color: var(--primary-color);
        }
        .newsletter-form .error-message {
            display: none;
            color: #e74c3c;
            font-size: 0.9rem;
            margin-top: 0.5rem;
        }
        .newsletter-form.error input {
            border-color: #e74c3c;
        }
        .newsletter-form.error .error-message {
            display: block;
        }
        .newsletter-success {
            display: none;
            text-align: center;
            font-weight: bold;
            color: var(--primary-color);
        }

        /* -- BUTTONS -- */
        .btn {
            display: inline-block;
            padding: 0.8rem 1.8rem;
            border: none;
            border-radius: 50px;
            font-weight: 600;
            cursor: pointer;
            transition: transform var(--transition-speed) ease, background-color var(--transition-speed) ease;
            position: relative;
            overflow: hidden;
        }
        .btn-primary {
            background-color: var(--primary-color);
            color: var(--white-color);
        }
        .btn-primary:hover {
            background-color: #3a7ac8;
        }
        .btn:active {
            transform: scale(0.97);
        }

        /* -- FOOTER -- */
        .main-footer {
            background-color: var(--dark-blue);
            color: var(--light-gray);
            padding: 3rem 0;
            text-align: center;
        }
        .social-links {
            list-style: none;
            display: flex;
            justify-content: center;
            gap: 1.5rem;
            margin-bottom: 1.5rem;
        }
        .social-links a {
            color: var(--light-gray);
            transition: color var(--transition-speed);
        }
        .social-links a:hover {
            color: var(--secondary-color);
        }
        .social-links svg {
            width: 24px;
            height: 24px;
            fill: currentColor;
        }
        
        /* -- MODAL -- */
        .modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 2000;
            background-color: rgba(0, 0, 0, 0.6);
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            visibility: hidden;
            transition: opacity var(--transition-speed) ease, visibility 0s var(--transition-speed);
        }

        .modal.open {
            opacity: 1;
            visibility: visible;
            transition-delay: 0s;
        }

        .modal-content {
            background: var(--white-color);
            padding: 2.5rem;
            border-radius: var(--border-radius);
            max-width: 800px;
            width: 90%;
            max-height: 90vh;
            overflow-y: auto;
            position: relative;
            transform: scale(0.95);
            transition: transform var(--transition-speed) ease;
        }
        
        .modal.open .modal-content {
            transform: scale(1);
        }

        .modal-close {
            position: absolute;
            top: 1rem;
            right: 1rem;
            background: none;
            border: none;
            cursor: pointer;
            padding: 0.5rem;
        }

        .modal-close svg {
            width: 24px;
            height: 24px;
            stroke: var(--text-color);
            transition: stroke var(--transition-speed);
        }
        .modal-close:hover svg { stroke: var(--primary-color); }
        
        /* -- SCROLL REVEAL ANIMATIONS -- */
        .reveal {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.8s ease, transform 0.8s ease;
        }
        .reveal.visible {
            opacity: 1;
            transform: translateY(0);
        }

        /* -- RESPONSIVE DESIGN -- */
        @media (max-width: 768px) {
            .nav-toggle {
                display: block;
            }
            .nav-links {
                position: fixed;
                top: 0;
                right: -100%;
                width: 70%;
                height: 100vh;
                background-color: var(--white-color);
                flex-direction: column;
                justify-content: center;
                align-items: center;
                gap: 2.5rem;
                transition: right var(--transition-speed) ease-in-out;
                box-shadow: -5px 0 15px rgba(0,0,0,0.1);
            }
            body.nav-open .nav-links {
                right: 0;
            }

            .newsletter-form {
                flex-direction: column;
            }
        }

        @media (min-width: 768px) {
            .grid-2 {
                grid-template-columns: repeat(2, 1fr);
            }
            #posts .post-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (min-width: 1024px) {
            #posts .post-grid {
                grid-template-columns: repeat(3, 1fr);
            }
        }