/* ============================================================ */
/* style.css - Main Web Design System                           */
/* ============================================================ */

:root {
    /* Nexalum-Inspired Core Colors */
    --bg-dark: #0f172a;
    /* Slate 900 */
    --bg-darker: #020617;
    /* Slate 950 */
    --bg-card: rgba(30, 41, 59, 0.4);
    /* Slate 800 transparent */

    /* Vibrant Neon Accents */
    --accent-cyan: #06b6d4;
    --accent-blue: #3b82f6;
    --accent-purple: #a855f7;
    --accent-pink: #ec4899;

    /* Text Colors */
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-dim: #94a3b8;

    /* Glass Effects */
    --glass-bg: rgba(255, 255, 255, 0.03);
    /* Extremely soft glass */
    --glass-border: rgba(255, 255, 255, 0.08);
    /* Barely visible reflection border */
    --glass-border-hover: rgba(255, 255, 255, 0.15);

    /* Glow Effects */
    --glow-cyan: rgba(6, 182, 212, 0.5);
    --glow-purple: rgba(168, 85, 247, 0.5);

    --font-main: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
    --radius-lg: 24px;
    --radius-pill: 9999px;
}

/* --- Global Reset & Background --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: #030014;
    /* Deep cosmic space */

    /* Anti-Cheat */
    -webkit-user-select: none;
    /* Safari */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* IE10+/Edge */
    user-select: none;
    /* Standard */

    /* Simplified CSS Galaxy Implementation to reduce lag */
    background-image:
        /* The glowing Galactic Center (Orange/Yellow) */
        radial-gradient(ellipse at center, rgba(255, 165, 0, 0.4) 0%, rgba(255, 69, 0, 0.1) 20%, transparent 40%),
        /* Inner Magenta/Purple Sweep */
        radial-gradient(ellipse at 40% 40%, rgba(255, 0, 255, 0.15) 0%, transparent 30%),
        radial-gradient(ellipse at 60% 60%, rgba(138, 43, 226, 0.15) 0%, transparent 40%),
        /* Outer Blue Nebula Dust */
        radial-gradient(ellipse at 70% 30%, rgba(0, 191, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 30% 70%, rgba(65, 105, 225, 0.1) 0%, transparent 50%);

    background-size:
        150% 150%,
        /* Center */
        200% 200%, 200% 200%,
        /* Purple */
        200% 200%, 200% 200%;
    /* Blue */

    /* Removed heavy CSS animation. Relying on canvas for animation. */
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
}

main {
    flex: 1;
    /* Forces the main content area to expand and push the footer down */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Optionally center content vertically */
}

@keyframes rotateGalaxy {
    0% {
        background-position:
            50% 50%,
            /* Center immobile */
            0% 0%, 100% 100%,
            /* Purple moving */
            100% 0%, 0% 100%,
            /* Blue moving */
            0px 0px, 0px 0px, 0px 0px, 0px 0px,
            0px 0px, 0px 0px, 0px 0px, 0px 0px;
        /* Stars start */
    }

    100% {
        background-position:
            50% 50%,
            100% 100%, 0% 0%,
            0% 100%, 100% 0%,
            100px 100px, 150px 150px, 200px 200px, 250px 250px,
            300px -300px, -350px 350px, 400px 400px, -450px -450px;
        /* Stars drift */
    }
}

/* --- Nexalum Aesthetic Utilities --- */

/* Text Gradient Effect */
.text-gradient {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Background Glowing Orbs */
.bg-orb {
    position: fixed;
    border-radius: 50%;
    z-index: -1;
    opacity: 0.6;
    pointer-events: none;
    will-change: transform;
    animation: drift 20s ease-in-out infinite alternate;
}

.orb-primary {
    top: -10%;
    right: -5%;
    width: 60vw;
    height: 60vw;
    max-width: 800px;
    max-height: 800px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.4) 0%, transparent 60%);
    /* Purple */
}

.orb-secondary {
    bottom: -10%;
    left: -10%;
    width: 70vw;
    height: 70vw;
    max-width: 900px;
    max-height: 900px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.3) 0%, transparent 60%);
    /* Cyan */
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(-30px, 30px) scale(1.1);
    }
}

/* Base Layout Classes */
.page-container {
    width: 90%;
    max-width: 1200px;
    margin: 4rem auto;
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.grid-3-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    align-items: stretch;
}

.flex-col-gap {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 2rem;
}

.section-spacing {
    margin-top: 8rem;
    margin-bottom: 4rem;
}

.text-hero {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 900;
    letter-spacing: -2px;
}

.margin-b-lg {
    margin-bottom: 2.5rem;
}

/* Floating Badge/Pill Feature */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-pill);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

/* --- Layout Components --- */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 5%;
    background: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .logo-area {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text-primary);
}

.site-header b {
    font-size: 0.95rem;
    font-weight: 600;
    max-width: 300px;
    line-height: 1.2;
}

.site-header nav {
    display: flex;
    gap: 2rem;
}

.site-header nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.site-header nav a:hover {
    color: var(--accent-teal);
    text-shadow: 0 0 8px var(--glow-teal);
}

/* --- Detailed Footer Elements --- */
.site-footer {
    padding: 4rem 5% 1.5rem;
    background: rgba(2, 6, 23, 0.7);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--glass-border);
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto 3rem;
    text-align: left;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.2rem;
}

.footer-section p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-heading {
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links a:hover {
    color: var(--accent-cyan);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
    font-size: 0.85rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Global Utilities --- */
.section-heading {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    color: var(--text-primary);
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05), 0 8px 32px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
    display: block;
    padding: 1.5rem 2rem;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 1.4rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: skewX(-20deg);
    transition: left 0.5s ease;
}

.glass-card:hover {
    transform: translateY(-8px);
    border-color: var(--glass-border-hover);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 15px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(59, 130, 246, 0.2);
}

.glass-card:hover::before {
    left: 200%;
}

/* Subject Card 3D Depth */
.subject-card {
    display: flex;
    align-items: center;
    position: relative;
    padding: 1.5rem 2rem;
    overflow: hidden;
}

.subject-icon {
    position: absolute;
    right: -10px;
    bottom: -20px;
    font-size: 8rem;
    opacity: 0.15;
    transform: rotate(-15deg);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 0;
    pointer-events: none;
}

.subject-card:hover .subject-icon {
    transform: rotate(0deg) scale(1.1);
    opacity: 0.25;
}

.subject-text {
    position: relative;
    z-index: 1;
}

/* Feature Box for Landing Page */
.feature-box {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: left;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-box:hover {
    transform: translateY(-5px);
    border-color: rgba(6, 182, 212, 0.3);
    /* Cyan hint */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 5rem 2rem;
    background: linear-gradient(180deg, transparent, rgba(15, 23, 42, 0.8));
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 8rem;
}

/* Base Hero Layout Classes */
.hero-image {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-glow {
    position: absolute;
    width: 100%;
    padding-top: 100%;
    border-radius: 50%;
    background: radial-gradient(circle, var(--glow-teal) 0%, transparent 70%);
    animation: pulseTimer 4s infinite alternate;
    z-index: 0;
}

.hero-logo-img {
    width: 100%;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.5));
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-outline {
    background: transparent !important;
    box-shadow: none !important;
    border: 1px solid var(--text-secondary) !important;
    color: var(--text-primary) !important;
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--text-primary) !important;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1) !important;
}

/* --- About Page Specifics --- */
.about-container {
    width: 90%;
    max-width: 1000px;
    margin: 4rem auto;
    text-align: center;
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin: 4rem 0;
}

.features-grid .feature-box {
    flex: 1 1 300px;
    max-width: 450px;
    /* Prevents cards from getting too wide if there's space */
}

.creator-card {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.6), rgba(2, 6, 23, 0.8));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(45, 212, 191, 0.3);
    border-radius: var(--radius-lg);
    padding: 3rem 2rem;
    margin: 2rem auto;
    max-width: 600px;
    box-shadow: inset 0 0 20px rgba(45, 212, 191, 0.1), 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.creator-card h3 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.creator-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
    color: var(--text-primary);
    padding: 14px 36px;
    border-radius: var(--radius-pill);
    border: none;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 4px 20px rgba(6, 182, 212, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.15) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.btn-primary:hover::after {
    opacity: 1;
}

.btn-primary:active {
    transform: translateY(1px) scale(0.96);
    box-shadow: 0 2px 10px rgba(6, 182, 212, 0.4);
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.delay-1 {
    animation-delay: 0.1s;
    opacity: 0;
}

.delay-2 {
    animation-delay: 0.2s;
    opacity: 0;
}

.delay-3 {
    animation-delay: 0.3s;
    opacity: 0;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

/* --- Tooltips --- */
[data-tooltip] {
    position: relative;
    cursor: pointer;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: rgba(15, 23, 42, 0.95);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    z-index: 1000;
}

[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 5px;
    border: 2px solid var(--bg-dark);
}

::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

@media (max-width: 900px) {
    .grid-2-col {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .text-hero {
        font-size: 3rem;
    }

    .section-heading {
        text-align: center;
        display: block;
    }

    .grid-2-col .btn-primary {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .page-container {
        width: 92%;
        margin: 2rem auto;
    }

    .site-header {
        padding: 1rem 5%;
        flex-direction: column;
        gap: 1rem;
    }

    .site-header b {
        display: none;
        /* Hide full name on mobile for space */
    }

    .site-header nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .section-heading {
        font-size: 2rem;
    }

    .text-hero {
        font-size: 2.5rem;
    }

    .grid-2-col,
    .grid-3-col {
        gap: 2rem;
    }

    .glass-card,
    .feature-box,
    .creator-card {
        padding: 1.5rem;
    }

    .cta-section {
        padding: 3rem 1.5rem;
        margin-top: 5rem;
    }

    .section-spacing {
        margin-top: 5rem;
        margin-bottom: 3rem;
    }

    /* Hero Layout Mobile Fixes */
    .hero-content {
        order: 2;
        /* Content below image on mobile */
    }

    .hero-image {
        order: 1;
        /* Image above content on mobile */
        max-width: 150px !important;
        /* Force much smaller size */
        margin: 0 auto 1.5rem auto !important;
    }

    .hero-buttons {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 1rem !important;
    }

    .hero-buttons .btn-primary {
        width: 100% !important;
        max-width: 250px;
        margin: 0 !important;
    }
}

@media (max-width: 480px) {
    .text-hero {
        font-size: 2rem;
    }

    .btn-primary {
        padding: 12px 24px;
        font-size: 1rem;
    }
}