:root {
    --bg-dark: #030014;
    --bg-card: rgba(17, 12, 46, 0.6);
    --primary: #7c3aed;
    --primary-glow: #8b5cf6;
    --secondary: #a855f7;
    --accent: #c084fc;
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --font-main: 'Outfit', sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
    --gradient-main: linear-gradient(135deg, #7c3aed 0%, #c084fc 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Effects */
.background-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: floatOrb 10s infinite ease-in-out;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--secondary);
    bottom: -100px;
    right: -100px;
    animation-delay: -5s;
}

.grid-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
}

@keyframes floatOrb {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, 50px);
    }
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-display);
    font-weight: 700;
}

.text-gradient {
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
.navbar {
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    font-family: var(--font-display);
    color: white;
    text-decoration: none;
}

.logo .dot {
    color: var(--primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    border-radius: 9999px;
    /* Pill shape */
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--gradient-main);
    color: white;
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.5);
}

.glow-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
    z-index: -1;
}

.glow-effect:hover::before {
    left: 100%;
}

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 9999px;
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.pulse {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(124, 58, 237, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(124, 58, 237, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(124, 58, 237, 0);
    }
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 90%;
}

.subtitle strong {
    color: white;
}

.stats-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.stat-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.stat-pill i {
    color: var(--primary);
}

/* 3D Hero Visual */
.hero-visual {
    perspective: 1000px;
    display: flex;
    justify-content: center;
}

.card-3d {
    width: 350px;
    height: 450px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.1s ease;
}

.card-content {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.profile-img {
    width: 90%;
    height: 90%;
    object-fit: cover;
    border-radius: 15px;
    filter: contrast(1.1) brightness(1.1);
}

.floating-card {
    position: absolute;
    background: rgba(15, 15, 20, 0.9);
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    border: 1px solid rgba(124, 58, 237, 0.3);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateZ(30px);
    font-size: 0.9rem;
    font-weight: 600;
}

.floating-card i {
    font-size: 1.2rem;
}

.card-1 {
    top: 10%;
    left: -40px;
    color: #4285f4;
}

.card-2 {
    bottom: 20%;
    right: -30px;
    color: #1877f2;
}

.card-3 {
    bottom: -20px;
    left: 20px;
    color: var(--secondary);
}

/* Methodology Section */
.methodology {
    padding: 8rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    transform-style: preserve-3d;
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(124, 58, 237, 0.1), transparent 60%);
    z-index: 0;
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(124, 58, 237, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.feature-card p {
    color: var(--text-muted);
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

/* Niches Section */
.niches-section {
    padding: 6rem 0;
    background: linear-gradient(to bottom, transparent, rgba(124, 58, 237, 0.05), transparent);
}

.niche-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.niche-list {
    list-style: none;
    margin-top: 2rem;
}

.niche-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.niche-list i {
    color: var(--primary);
    background: rgba(124, 58, 237, 0.1);
    padding: 0.3rem;
    border-radius: 50%;
    font-size: 0.8rem;
}

.glass-panel {
    background: rgba(20, 20, 30, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.panel-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

.metric-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.metric-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.metric-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
}

.code-line {
    font-family: monospace;
    color: #d4d4d4;
    margin-bottom: 0.5rem;
}

.keyword {
    color: #c586c0;
}

.function {
    color: #dcdcaa;
}

.var {
    color: #9cdcfe;
}

.indent {
    padding-left: 1.5rem;
}

.chart-mockup {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 100px;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.bar {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px 4px 0 0;
    transition: height 1s ease;
}

.bar.active {
    background: var(--gradient-main);
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.4);
}

/* CTA Final */
.cta-final {
    padding: 8rem 0;
}

.cta-box {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
    border-radius: 30px;
    padding: 4rem;
    text-align: center;
    border: 1px solid rgba(124, 58, 237, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(124, 58, 237, 0.2), transparent 70%);
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.cta-content p {
    font-size: 1.2rem;
    color: #c7d2fe;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: #020010;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-left h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-left p {
    color: var(--text-muted);
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.footer-social a:hover {
    color: var(--primary);
}

.copyright {
    text-align: center;
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .stats-row {
        justify-content: center;
    }

    .hero-visual {
        margin-top: 2rem;
        /* Ensure it doesn't overflow */
        max-width: 100%;
        overflow: visible;
    }

    .niche-wrapper {
        grid-template-columns: 1fr;
    }

    .cta-box {
        padding: 3rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.5rem;
    }

    .navbar {
        padding: 1rem 0;
    }

    .logo {
        font-size: 1.5rem;
    }

    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
    }

    .hero {
        padding-top: 100px;
        padding-bottom: 4rem;
        min-height: auto;
        /* Allow content to dictate height on mobile */
    }

    .hero h1 {
        font-size: 2.2rem;
        /* Smaller font for mobile */
    }

    .subtitle {
        font-size: 1rem;
    }

    .stats-row {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }

    .stat-pill {
        width: 100%;
        justify-content: center;
    }

    .cta-group {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    .btn-large {
        width: 100%;
        padding: 1rem;
    }

    /* 3D Card Mobile Adjustments */
    .card-3d {
        width: 280px;
        /* Smaller width for mobile */
        height: 380px;
    }

    .floating-card {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }

    .card-1 {
        left: -20px;
    }

    .card-2 {
        right: -10px;
    }

    .card-3 {
        left: 0px;
        bottom: -30px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .feature-card {
        padding: 2rem;
    }

    .cta-content h2 {
        font-size: 1.8rem;
    }
}