:root {
    --bg: #F8FAFC;
    --bg-sec: #FFFFFF;
    --text: #0F172A;
    --muted: #475569;
    --primary: #3B82F6;
    --primary-glow: rgba(59, 130, 246, 0.2);
    --secondary: #8B5CF6;
    --glass: rgba(255, 255, 255, 0.85);
    --border: rgba(15, 23, 42, 0.1);
}

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

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', -apple-system, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1,
h2,
h3,
.brand-text {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
}

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

/* Background Effects */
.bg-glow {
    position: fixed;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -2;
    pointer-events: none;
}

.bg-glow.top-left {
    top: -20vw;
    left: -20vw;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(15, 23, 42, 0) 70%);
}

.bg-glow.bottom-right {
    bottom: -20vw;
    right: -20vw;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.12) 0%, rgba(15, 23, 42, 0) 70%);
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    z-index: -1;
    pointer-events: none;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
}

.logo-icon {
    width: 28px;
    height: 28px;
}

.brand-text {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: 1px;
}

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

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

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

/* Buttons */
.btn-primary {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-family: 'Inter';
    transition: all 0.3s;
    box-shadow: 0 4px 14px var(--primary-glow);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
    display: inline-block;
    background: var(--bg-sec);
    color: var(--text);
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(15, 23, 42, 0.05);
    border-color: rgba(15, 23, 42, 0.1);
}

.btn-outline {
    border: 1px solid var(--border);
    padding: 10px 20px;
    border-radius: 6px;
    color: var(--text) !important;
}

.btn-outline:hover {
    background: rgba(15, 23, 42, 0.05);
    border-color: var(--muted);
}

.btn-outline-glow {
    display: inline-block;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid var(--secondary);
    padding-bottom: 4px;
    transition: all 0.3s;
}

.btn-outline-glow:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

/* Typography Utilities */
.text-gradient {
    background: linear-gradient(to right, #3B82F6, #A855F7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-center {
    text-align: center;
}

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

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&q=80&w=2000') center/cover no-repeat;
    opacity: 0.20;
    z-index: 0;
    mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

.hero-content {
    text-align: center;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.chip {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: #60A5FA;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: inline-block;
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    font-weight: 900;
}

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

.hero-actions {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

/* Sections */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 24px;
    text-align: center;
}

/* About */
.about {
    background: linear-gradient(180deg, transparent 0%, rgba(59, 130, 246, 0.03) 50%, transparent 100%);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 64px;
    align-items: start;
    margin-top: 40px;
}

.about-text p {
    color: var(--muted);
    font-size: 1.05rem;
    margin-bottom: 20px;
    line-height: 1.8;
}

.about-text strong {
    color: var(--text);
}

.about-lead {
    font-size: 1.3rem !important;
    color: var(--text) !important;
    font-weight: 500;
    margin-bottom: 28px !important;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

.stat-number {
    font-family: 'Montserrat', 'Outfit', sans-serif;
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 500;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 40px;
    transition: transform 0.3s, border-color 0.3s;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(15, 23, 42, 0.15);
}

.icon-box {
    width: 48px;
    height: 48px;
    background: rgba(15, 23, 42, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
    border: 1px solid var(--border);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 12px;
}

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

/* Featured Project */
.split-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    padding: 64px;
    overflow: hidden;
    position: relative;
}

.split-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 50%;
    height: 150%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, rgba(15, 23, 42, 0) 70%);
    pointer-events: none;
}

.badge {
    background: rgba(16, 185, 129, 0.1);
    color: #34D399;
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.project-title {
    font-size: 3rem;
    margin: 16px 0;
}

.project-desc {
    font-size: 1.1rem;
    color: var(--muted);
    margin-bottom: 24px;
}

.feature-item {
    font-weight: 500;
    color: var(--text);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Abstract Mockup */
.abstract-mockup {
    background: #0B1120;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    aspect-ratio: 16/10;
    display: flex;
    flex-direction: column;
}

.mockup-header {
    background: #111827;
    padding: 12px 16px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border);
}

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

.dot.red {
    background: #EF4444;
}

.dot.yellow {
    background: #F59E0B;
}

.dot.green {
    background: #10B981;
}

.mockup-body {
    flex: 1;
    display: flex;
    padding: 16px;
    gap: 16px;
}

.mockup-sidebar {
    width: 60px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.mockup-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.m-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
}

.m-card.main {
    flex: 2;
    border: 1px solid rgba(59, 130, 246, 0.2);
    position: relative;
    overflow: hidden;
}

.m-card.main::before {
    content: '';
    position: absolute;
    width: 100px;
    height: 200px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
    transform: skewX(-20deg);
    animation: shine 4s infinite;
}

@keyframes shine {
    0% {
        left: -150px;
    }

    100% {
        left: 150%;
    }
}

.m-flex {
    flex: 1;
    display: flex;
    gap: 16px;
}

.m-card.sub {
    flex: 1;
}

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

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

/* Animations */
.slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s ease forwards;
}

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

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

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

@media (max-width: 900px) {
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .split-card {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 32px;
    }

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

    .nav-links {
        display: none;
    }
}