/* Global Reset & Variables */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
    color-scheme: dark;
    --bg-color: #0b0f19;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;

    /* Modern vibrant neon colors */
    --accent-primary: #8b5cf6;
    --accent-secondary: #ec4899;
    --accent-tertiary: #3b82f6;

    --accent-gradient: linear-gradient(135deg, #8b5cf6 0%, #ec4899 50%, #f43f5e 100%);
    --accent-gradient-2: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #d946ef 100%);

    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover-bg: rgba(255, 255, 255, 0.06);
    --glass-hover-border: rgba(255, 255, 255, 0.2);

    --font-heading: 'Outfit', 'Inter', 'Noto Sans SC', sans-serif;
    --font-body: 'Outfit', 'Inter', 'Noto Sans SC', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    /* Subtler mesh noise overlay */
    background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

main {
    flex: 1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

ul {
    list-style: none;
}

::selection {
    background: rgba(139, 92, 246, 0.5);
    color: #fff;
}

/* Background Gradients - Dynamic Orbs */
.bg-gradient-1,
.bg-gradient-2,
.bg-gradient-3 {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    opacity: 0.4;
    pointer-events: none;
}

.bg-gradient-1 {
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, #4f46e5 0%, rgba(15, 23, 42, 0) 70%);
    top: -20vh;
    left: -20vw;
    animation: float1 25s infinite alternate ease-in-out;
}

.bg-gradient-2 {
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, #ec4899 0%, rgba(15, 23, 42, 0) 70%);
    bottom: -10vh;
    right: -10vw;
    animation: float2 20s infinite alternate-reverse ease-in-out;
}

.bg-gradient-3 {
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, #06b6d4 0%, rgba(15, 23, 42, 0) 70%);
    top: 40vh;
    left: 30vw;
    animation: float3 30s infinite alternate cubic-bezier(0.5, 0, 0.5, 1);
    opacity: 0.2;
}

@keyframes float1 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(8vw, 8vh) scale(1.1);
    }
}

@keyframes float2 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-10vw, -5vh) scale(1.2);
    }
}

@keyframes float3 {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(15vw, -10vh) scale(0.9);
    }
}

/* Layout Utilities */
.container {
    width: 92%;
    max-width: 1600px;
    /* Wide screen support */
    margin: 0 auto;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.2rem 0;
    z-index: 1000;
    background: rgba(11, 15, 25, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.03em;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--accent-gradient);
    border-radius: 12px;
    color: white;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
}

.logo-text {
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1rem;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links a:hover {
    color: white;
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-primary {
    padding: 0.6rem 1.75rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Hero Section */
.hero-section {
    padding-top: 220px;
    padding-bottom: 140px;
    text-align: center;
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #c4b5fd;
    margin-bottom: 2.5rem;
    backdrop-filter: blur(10px);
    animation: fadeInDown 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 6rem);
    /* Perfectly scales with width */
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s both;
}

.hero-title .gradient-text {
    background: var(--accent-gradient-2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 1.5vw, 1.35rem);
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 3.5rem;
    line-height: 1.8;
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s both;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    animation: fadeInUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s both;
}

.btn-glow {
    position: relative;
    padding: 1rem 2.5rem;
    background: var(--accent-gradient);
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 10px 30px -10px rgba(236, 72, 153, 0.6);
}

.btn-glow:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(236, 72, 153, 0.8);
}

.btn-ghost {
    padding: 1rem 2.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Content Section (Cards) */
.content-section {
    padding: 40px 0 120px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-size: clamp(2rem, 3vw, 2.75rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.view-all {
    color: var(--accent-tertiary);
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: 0.3s;
}

.view-all:hover {
    color: #60a5fa;
    transform: translateX(5px);
}

/* Unified Glass Grid */
.grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.glass-card {
    background: rgba(20, 25, 40, 0.5);
    /* slightly deeper than pure transparent */
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
    height: 100%;
    text-decoration: none;
    color: white;
}

.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.glass-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.5), 0 0 40px rgba(139, 92, 246, 0.1);
}

.glass-card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 65px;
    height: 65px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 1.8rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.gradient-blue {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.gradient-purple {
    background: linear-gradient(135deg, #8b5cf6, #6d28d9);
}

.gradient-pink {
    background: linear-gradient(135deg, #ec4899, #be185d);
}

.gradient-green {
    background: linear-gradient(135deg, #10b981, #047857);
}

.gradient-orange {
    background: linear-gradient(135deg, #f97316, #c2410c);
}

.gradient-cyan {
    background: linear-gradient(135deg, #06b6d4, #0369a1);
}

.card-title {
    font-size: 1.45rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
    line-height: 1.3;
}

.card-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 2rem;
    flex: 1;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.tag {
    font-size: 0.8rem;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.08);
    font-weight: 500;
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.arrow-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    transition: 0.3s;
    color: var(--text-secondary);
}

.glass-card:hover .arrow-icon {
    background: white;
    color: black;
    transform: translateX(5px) rotate(-45deg);
}

/* Footer */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.2);
    padding: 4rem 0 2rem;
    margin-top: auto;
    backdrop-filter: blur(10px);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-left .footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: block;
    margin-bottom: 1rem;
}

.footer-left p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    line-height: 1.6;
    max-width: 400px;
}

.footer-links {
    display: flex;
    gap: 2.5rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-weight: 500;
    transition: 0.2s;
}

.footer-links a:hover {
    color: white;
}

/* Responsive adjustments */
.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
}

@media (max-width: 1024px) {
    .grid-layout {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .navbar .container {
        flex-wrap: wrap;
    }

    .navbar .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        padding: 1rem 0;
        gap: 1.5rem;
        background: rgba(11, 15, 25, 0.95);
        backdrop-filter: blur(20px);
        margin-top: 1rem;
        border-radius: 12px;
        text-align: center;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .navbar .nav-links.active {
        display: flex;
        animation: fadeInDown 0.3s ease;
    }

    .hero-section {
        padding-top: 160px;
        padding-bottom: 80px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}