/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Light Theme Variables */
    --primary-hue: 250;
    /* Violet/Purple-ish */
    --primary-sat: 80%;
    --primary-light: 50%;

    --color-primary: hsl(var(--primary-hue), var(--primary-sat), var(--primary-light));
    --color-primary-dark: hsl(var(--primary-hue), var(--primary-sat), 40%);
    --color-primary-light: hsl(var(--primary-hue), var(--primary-sat), 90%);

    --color-bg: hsl(0, 0%, 98%);
    --color-surface: hsl(0, 0%, 100%);
    --color-text: hsl(220, 10%, 20%);
    --color-text-light: hsl(220, 10%, 40%);
    --color-border: hsl(220, 10%, 90%);

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;

    --transition: all 0.3s ease;
}

[data-theme="dark"] {
    /* Dark Theme Variables */
    --color-bg: hsl(220, 20%, 10%);
    --color-surface: hsl(220, 20%, 14%);
    --color-text: hsl(0, 0%, 95%);
    --color-text-light: hsl(220, 10%, 70%);
    --color-border: hsl(220, 20%, 20%);

    /* Slightly adjust primary for dark mode visibility if needed, 
       but keeping it bright usually looks good */
    --color-primary: hsl(var(--primary-hue), var(--primary-sat), 60%);

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Layout Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
    /* Reduced from 80px */
}

.flex {
    display: flex;
    align-items: center;
}

/* 3D & Animation Utilities */
.perspective-container {
    perspective: 1000px;
}

.card-3d {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
}

.card-3d:hover {
    transform: translateY(-5px) rotateX(2deg) rotateY(2deg);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

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

.gradient-text {
    background: linear-gradient(135deg, var(--color-primary), #a855f7);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Bento Grid System */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-auto-rows: 250px;
    gap: 20px;
}

.span-2 {
    grid-column: span 2;
}

.span-full {
    grid-column: 1 / -1;
}

.row-span-2 {
    grid-row: span 2;
}

/* Responsive adjustments for Grid */
@media (max-width: 768px) {

    .span-2,
    .span-full {
        grid-column: span 1;
    }

    .row-span-2 {
        grid-row: span 1;
    }

    .bento-grid {
        grid-auto-rows: auto;
    }
}

/* Top Notification Banner */
.top-banner {
    background: linear-gradient(90deg, #6366f1, #a855f7, #ec4899);
    color: white;
    text-align: center;
    padding: 12px 20px;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    z-index: 1001;
    /* Above navbar */
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
    overflow: hidden;
    /* Hide overflow for marquee */
    white-space: nowrap;
}

.top-banner span {
    display: inline-block;
    vertical-align: middle;
    animation: scrollText 15s linear infinite;
    /* Marquee effect */
    padding-left: 100%;
    /* Start from outside right */
}

.top-banner strong {
    font-weight: 700;
    margin-right: 5px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

@keyframes scrollText {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-100%);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

/* Premium Visuals */
.glass {
    background: rgba(255, 255, 255, 0.85);
    /* More opaque for "premium" feel */
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 24px;
    /* Soft, large radius */
}

[data-theme="dark"] .glass {
    background: rgba(30, 30, 40, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}

.card-img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    transition: transform 0.5s ease;
}

.bento-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy premium feel */
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

.bento-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.bento-card:hover .card-img-cover {
    transform: scale(1.05);
}

/* Typography Refinement */
h1,
h2,
h3 {
    letter-spacing: -0.03em;
    /* Tighter heading tracking */
}

.flex-between {
    justify-content: space-between;
}

.grid {
    display: grid;
    gap: 2rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
    /* Adjust shadow color to match hue roughly */
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
}

[data-theme="dark"] .navbar {
    background: rgba(20, 24, 39, 0.8);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    display: flex;
    align-items: center;
}

.logo img {
    height: 70px; /* Slightly larger base size */
    width: auto; /* Maintain aspect ratio */
    transition: height 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .logo img {
        height: 45px; /* Slightly smaller on tablets */
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 40px; /* Slightly smaller on mobile */
    }
}

/* Ensure navbar height remains consistent */
.navbar {
    min-height: 80px; /* Match the navbar height to accommodate the logo */
    display: flex;
    align-items: center;
}

.nav-content {
    display: flex;
    align-items: center;
    width: 100%;
    letter-spacing: -0.5px;
}

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

.nav-link {
    font-weight: 500;
    color: var(--color-text);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--color-primary);
}

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

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Theme Toggle */
.theme-toggle {
    background: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    padding: 8px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: var(--color-surface);
    border-color: var(--color-primary);
}

/* Footer */
.footer {
    background-color: var(--color-surface);
    padding: 60px 0 20px;
    border-top: 1px solid var(--color-border);
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer h3 {
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a:hover {
    color: var(--color-primary);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* Mobile Menu */
.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: var(--color-surface);
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid var(--color-border);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 999;
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .mobile-toggle {
        display: block;
    }
}

/* Editorial / Premium Layout Utilities */
.text-display {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

.text-editorial {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--color-text-light);
    font-weight: 400;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 80px;
    padding: 60px 0;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-content {
    flex: 1;
}

.feature-image {
    flex: 1;
    position: relative;
}

.feature-image img {
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    width: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.feature-image:hover img {
    transform: scale(1.02);
}

.stat-minimal {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--color-text-light);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

@media (max-width: 900px) {

    .feature-row,
    .feature-row.reverse {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .text-display {
        font-size: 2.5rem;
    }
}