@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;700&family=Plus+Jakarta+Sans:wght@400;500;600&family=JetBrains+Mono&display=swap');

:root {
    /* Color Palette */
    --bg-deep: #050508;
    --bg-card: rgba(15, 15, 25, 0.7);
    --primary: #00e5ff;
    --primary-glow: rgba(0, 229, 255, 0.3);
    --secondary: #6366f1;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    /* Spacing & Sizing */
    --container-width: 1200px;
    --section-padding: clamp(4rem, 8vw, 8rem);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.1;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* --- Layout Components --- */

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: var(--section-padding) 0;
}

.glass {
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 1.5rem;
}

/* --- Header & Nav --- */

header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: all 0.4s ease;
}

header.scrolled {
    background: rgba(5, 5, 8, 0.8);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.nav-links {
    display: flex;
    gap: 2.5rem;
}

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

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
}

.btn-contact {
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: #000;
    border-radius: 3rem;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 0 20px var(--primary-glow);
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--primary-glow);
}

/* --- Hero Section --- */

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: url('hero-bg.png') no-repeat center center/cover;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(5, 5, 8, 0.3), var(--bg-deep));
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.hero-tagline {
    font-family: 'JetBrains Mono', monospace;
    color: var(--primary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 4px;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    margin-bottom: 2rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    max-width: 600px;
}

/* --- Services --- */

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

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

.section-title p {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

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

.service-card {
    padding: 3rem 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.service-card:hover {
    transform: translateY(-1rem);
    border-color: var(--primary);
    background: rgba(0, 229, 255, 0.05);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--glass);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    width: 30px;
    height: 30px;
    stroke: var(--primary);
}

.service-card h3 {
    font-size: 1.5rem;
}

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

/* --- Stats --- */

.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 3rem;
    background: var(--glass);
    padding: 4rem 2rem;
    border-radius: 2rem;
}

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

.stat-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Footer --- */

footer {
    padding: 6rem 0 3rem;
    border-top: 1px solid var(--glass-border);
    background: #000;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-info p {
    margin-top: 1.5rem;
    color: var(--text-muted);
    max-width: 300px;
}

.footer-links h4 {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.footer-links ul li {
    margin-bottom: 1rem;
}

.footer-links ul li a {
    color: var(--text-muted);
}

.footer-links ul li a:hover {
    color: var(--primary);
    padding-left: 0.5rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.icp-link {
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: color 0.3s;
}

.icp-link:hover {
    color: var(--primary);
}

/* --- Animations --- */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Responsiveness */

@media (max-width: 968px) {
    .nav-links {
        display: none;
    }
    
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .footer-top {
        grid-template-columns: 1fr;
    }
}
