:root {
    --bg-color: #08090a;
    --text-main: #f2f2f3;
    --text-muted: #8a8f98;
    --primary-accent: #5e6ad2;
    --primary-glow: rgba(94, 106, 210, 0.5);
    --secondary-accent: #e052a0;
    --border-color: rgba(255, 255, 255, 0.08);
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-hover: rgba(255, 255, 255, 0.06);
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --nav-height: 64px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

.glow-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: floatBlob 10s infinite alternate ease-in-out;
}

.glow-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--primary-accent), transparent 70%);
}

.glow-2 {
    bottom: -10%;
    right: -10%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--secondary-accent), transparent 70%);
    animation-delay: -5s;
}

@keyframes floatBlob {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(20px, 40px) scale(1.1);
    }
}

@media (max-width: 768px) {
    .glow-1 {
        width: 100vw;
        height: 100vw;
        opacity: 0.5;
        filter: blur(60px);
    }

    .glow-2 {
        width: 80vw;
        height: 80vw;
        opacity: 0.5;
        filter: blur(60px);
    }
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.05;
    mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
    -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
}

/* Typography & Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-gradient {
    background: linear-gradient(135deg, #fff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight {
    color: var(--primary-accent);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background: rgba(8, 9, 10, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    align-items: center;
}

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

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--text-main);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-main);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 99px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 0.95rem;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.btn-sm:hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-primary {
    background: var(--text-main);
    color: var(--bg-color);
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--card-hover);
    border-color: var(--text-muted);
}

/* Hero Section */
.hero {
    padding-top: calc(var(--nav-height) + 80px);
    padding-bottom: 80px;
    text-align: center;
    position: relative;
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(94, 106, 210, 0.1);
    border: 1px solid rgba(94, 106, 210, 0.2);
    border-radius: 99px;
    color: #a5b4fc;
    font-size: 0.875rem;
    margin-bottom: 24px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background-color: #a5b4fc;
    border-radius: 50%;
    box-shadow: 0 0 8px #a5b4fc;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    font-weight: 700;
}

.hero .subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

.cta-group {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
}

/* Hero Visual (Code Card) */
.hero-visual {
    perspective: 1000px;
    max-width: 600px;
    margin: 0 auto;
}

.glass-card {
    background: rgba(20, 20, 22, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transform: rotateX(10deg) scale(0.95);
    transition: transform 0.5s ease;
}

.hero:hover .glass-card {
    transform: rotateX(0deg) scale(1);
}

.card-header {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 8px;
}

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

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

.card-body {
    padding: 24px;
    text-align: left;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
}

.code-line {
    display: block;
    margin-bottom: 4px;
}

.indent {
    margin-left: 20px;
}

.indent-2 {
    margin-left: 40px;
}

.kwd {
    color: #c678dd;
}

.cls {
    color: #e5c07b;
}

.str {
    color: #98c379;
}

.func {
    color: #61afef;
}

.this {
    color: #e06c75;
}

/* Services (Bento Grid) */
.services {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 300px);
    gap: 24px;
}

.bento-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 32px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
}

.bento-card:hover {
    background: var(--card-hover);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.card-large {
    grid-column: span 2;
    grid-row: span 1;
}

.card-wide {
    grid-column: span 3;
    grid-row: span 1;
    height: 200px;
}

.card-content h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.card-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.tags {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.tags span {
    font-size: 0.75rem;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 99px;
}

/* Features */
.features {
    padding: 100px 0;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.02));
}

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

.feature-text {
    flex: 1;
}

.feature-text h2 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 24px;
}

.feature-list {
    list-style: none;
    margin-top: 32px;
}

.feature-list li {
    margin-bottom: 16px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-visual {
    flex: 1;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.glow-circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent, var(--primary-accent), transparent);
    animation: spin 4s linear infinite;
    filter: blur(40px);
    opacity: 0.5;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Team Section */
.team-section {
    padding: 100px 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.02), transparent);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.team-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.team-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.team-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
}

.team-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-card:hover .team-image {
    transform: scale(1.05);
}

.team-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 50%, rgba(8, 9, 10, 0.9) 100%);
    pointer-events: none;
}

.team-info {
    padding: 24px;
    text-align: center;
}

.team-info h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.team-age {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.team-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.role-tag {
    font-size: 0.75rem;
    padding: 6px 12px;
    background: rgba(94, 106, 210, 0.15);
    border: 1px solid rgba(94, 106, 210, 0.3);
    border-radius: 99px;
    color: #a5b4fc;
    transition: all 0.2s ease;
}

.team-card:hover .role-tag {
    background: rgba(94, 106, 210, 0.25);
    border-color: rgba(94, 106, 210, 0.5);
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    text-align: center;
}

.cta-box {
    background: radial-gradient(circle at center, rgba(94, 106, 210, 0.1), transparent 70%);
    padding: 60px;
    border: 1px solid var(--border-color);
    border-radius: 32px;
}

.cta-box h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.cta-box p {
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    margin-top: 40px;
}

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

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-top: 8px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--text-main);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

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

    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .card-large,
    .card-wide {
        grid-column: span 1;
    }

    .feature-row {
        flex-direction: column;
        text-align: center;
    }

    .feature-list li {
        justify-content: center;
    }

    .team-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
}