/* Existing Styles... (Preserving previous styles) */

/* ... (Include all previous CSS from Step 126/120 - I will append/overwrite relevant parts) ... */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;700;800&display=swap');

:root {
    --bg-color: #FFFFFF;
    --primary-color: #0039A6;
    /* Russia Blue */
    --secondary-color: #D52B1E;
    /* Russia Red for gradients/hover */
    --accent-color: #D52B1E;
    /* Russia Red */
    --text-color: #1c1c1c;
    --text-muted: #4a5568;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(0, 57, 166, 0.1);
    --card-shadow: 0 4px 6px -1px rgba(0, 57, 166, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --font-main: 'Outfit', system-ui, -apple-system, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 10% 10%, rgba(0, 57, 166, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 90%, rgba(213, 43, 30, 0.05) 0%, transparent 50%);
    min-height: 100vh;
    min-height: 100vh;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
    color: var(--primary-color);
    /* Solid Blue for professionalism */
    animation: fadeUp 1s ease-out;
}

/* ... (keep other H stats) ... */
h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    margin-top: 2rem;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navigation */
nav {
    padding: 1.5rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.85);
    margin: 0 -2rem;
    /* Expand to full width inside container */
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-color);
    text-decoration: none;
}

.logo img {
    height: 40px;
    width: auto;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
    font-size: 1rem;
}

/* Mobile Auth Buttons (Hidden on Desktop) */
.mobile-auth {
    display: none;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    width: 100%;
}

.mobile-auth a {
    text-align: center;
    justify-content: center;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 101;
}

.mobile-menu-btn span {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 2px;
    transition: 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-primary {
    background: var(--primary-color);
    color: white !important;
    /* Force white text */
    padding: 0.8rem 1.6rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 57, 166, 0.2);
    border: none;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.nav-links .btn-primary,
.desktop-auth .btn-primary {
    color: white !important;
}

.btn-primary:hover {
    background: var(--secondary-color);
    /* Red on hover for interaction */
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(213, 43, 30, 0.3);
}

/* Animation Keyframes */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 6rem 0;
}

.hero .container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-content {
    text-align: left;
    z-index: 2;
}

.hero p {
    font-size: 1.35rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 90%;
    font-weight: 300;
}

.hero-image {
    position: relative;
    z-index: 1;
    animation: float 8s ease-in-out infinite;
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(79, 70, 229, 0.2) 0%, transparent 70%);
    z-index: -1;
    filter: blur(40px);
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
    border-radius: 20px;
}

/* Store Buttons */
.store-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    background: white;
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: var(--card-shadow);
}

.store-btn:hover {
    transform: translateY(-3px);
    background: rgba(59, 130, 246, 0.2);
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.15);
}

.store-btn svg,
.store-btn img {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    fill: currentColor;
}

.store-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    text-align: left;
}

.store-text small {
    font-size: 0.75rem;
    opacity: 0.8;
}

.store-text strong {
    font-size: 1rem;
    font-weight: 600;
}

/* Generic Section Styles */
section {
    position: relative;
    padding: 5rem 0;
}

.section-full {
    background: #f1f5f9;
    margin: 0 -2rem;
    padding: 5rem 2rem;
}

/* Animations Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Features */
.features {
    padding: 4rem 0;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--card-shadow);
}

.card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
    box-shadow: 0 15px 30px -10px rgba(139, 92, 246, 0.2);
}

.card-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    transition: transform 0.5s;
}

.card:hover .card-image {
    transform: scale(1.05);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.card p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* Text Blocks */
.content-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
}

.content-block.reverse {
    direction: rtl;
}

.content-block.reverse .text-content {
    direction: ltr;
}

.text-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.text-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.blob-bg {
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--primary-color);
    filter: blur(100px);
    opacity: 0.1;
    border-radius: 50%;
    z-index: -1;
}

/* Blog, Auth, Footer (Keep existing but enhance) */
.blog-header {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 20px;
    margin-bottom: 3rem;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

@media (max-width: 600px) {
    .blog-grid {
        grid-template-columns: 1fr;
        /* Full width on mobile */
        gap: 1.5rem;
    }
}

.blog-card {
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    /* Softer shadow */
}

.blog-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    /* Use primary instead of accent */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.blog-thumb {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
}

.blog-content {
    padding: 1.5rem;
}

.blog-title {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    text-decoration: none;
}

.blog-title:hover {
    color: var(--primary-color);
}

/* Auth */
.auth-box {
    max-width: 400px;
    margin: 4rem auto;
    padding: 2.5rem;
    background: #ffffff;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    animation: fadeUp 0.6s ease-out;
}

.form-input {
    width: 100%;
    padding: 0.8rem;
    margin-top: 0.5rem;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid var(--glass-border);
    color: var(--text-color);
    transition: border-color 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 5rem 0 2rem;
    margin-top: 4rem;
    background: #f8fafc;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

/* Responsive */
@media (max-width: 900px) {
    h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .container {
        padding: 0 1rem;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 4rem 0 2rem;
        text-align: center;
        flex-direction: column;
        min-height: auto;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 2rem;
        display: flex;
        flex-direction: column-reverse;
        /* Image on top logic reversed in CSS, let's explicit order */
    }

    .hero-content {
        order: 2;
        margin: 0 auto;
        padding: 0;
        width: 100%;
    }

    .hero-image {
        order: 1;
        margin-bottom: 1rem;
        max-width: 100%;
        margin: 0 auto 1.5rem;
        padding: 0 1rem;
    }

    .content-block,
    .content-block.reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        direction: ltr;
        margin-bottom: 3rem;
    }

    .content-block img {
        margin-top: 1rem;
    }

    .content-block.reverse .text-content {
        direction: ltr;
    }

    .store-buttons {
        justify-content: center;
        flex-direction: column;
        width: 100%;
    }

    .store-btn {
        width: 100%;
        justify-content: center;
    }

    /* Mobile Navigation */
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 85%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        padding: 6rem 2rem;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 99;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transform: translateX(100%);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1.25rem;
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid var(--glass-border);
        text-align: left;
    }

    .desktop-auth {
        display: none !important;
    }

    .mobile-auth {
        display: flex;
        margin-top: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }

    .card {
        padding: 1.5rem;
    }

    .section-full {
        padding: 3rem 1rem;
        margin: 0 -1rem;
        /* Counteract container padding */
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.1rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .card-image {
        height: 160px;
    }
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 5rem 0 2rem;
    margin-top: 4rem;
    background: #f8fafc;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-col h4 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

/* Responsive */
@media (max-width: 900px) {
    h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .container {
        padding: 0 1rem;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 4rem 0 2rem;
        text-align: center;
        flex-direction: column;
        min-height: auto;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 2rem;
        display: flex;
        flex-direction: column-reverse;
        /* Image on top logic reversed in CSS, let's explicit order */
    }

    .hero-content {
        order: 2;
        margin: 0 auto;
        padding: 0;
        width: 100%;
    }

    .hero-image {
        order: 1;
        margin-bottom: 1rem;
        max-width: 100%;
        margin: 0 auto 1.5rem;
        padding: 0 1rem;
    }

    .content-block,
    .content-block.reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        direction: ltr;
        margin-bottom: 3rem;
    }

    .content-block img {
        margin-top: 1rem;
    }

    .content-block.reverse .text-content {
        direction: ltr;
    }

    .store-buttons {
        justify-content: center;
        flex-direction: column;
        width: 100%;
    }

    .store-btn {
        width: 100%;
        justify-content: center;
    }

    /* Mobile Navigation */
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 85%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        padding: 6rem 2rem;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 99;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        transform: translateX(100%);
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1.25rem;
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid var(--glass-border);
        text-align: left;
    }

    .desktop-auth {
        display: none !important;
    }

    .mobile-auth {
        display: flex;
        margin-top: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }

    .card {
        padding: 1.5rem;
    }

    .section-full {
        padding: 3rem 1rem;
        margin: 0 -1rem;
        /* Counteract container padding */
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2.1rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .hero p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .card-image {
        height: 160px;
    }

    .blob-bg {
        display: none;
        /* Hide heavy blobs on very small screens */
    }
}

/* Blog Header Improvements */
.blog-header-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 4rem;
    box-shadow: var(--card-shadow);
}

.blog-header-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.blog-header-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 60%, transparent 100%);
    padding: 3rem 2rem 2rem;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.blog-header-content h1 {
    color: #ffffff;
    font-size: 3rem;
    margin-bottom: 0.5rem;
    /* Reset global h1 gradient styles */
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    -webkit-text-fill-color: currentColor;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.blog-header-content p {
    color: #e2e8f0;
    font-size: 1.25rem;
    max-width: 700px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .blog-header-img {
        height: 300px;
    }

    .blog-header-content {
        position: relative;
        /* Flow normally below image on small screens? */
        background: #1e293b;
        /* Dark solid background for readability */
        padding: 2rem 1.5rem;
        margin-top: -5px;
        /* overlap slightly to prevent gap */
    }

    .blog-header-content h1 {
        font-size: 2rem;
    }

    .blog-header-content p {
        font-size: 1rem;
    }
}