:root {
    /* Color Palette */
    --bg-dark: #050505;
    --bg-surface: rgba(20, 20, 22, 0.6);
    --bg-glass: rgba(255, 255, 255, 0.03);
    
    --brand-blue: #00a8ff;
    --brand-blue-deep: #0050ff;
    --brand-glow: rgba(0, 168, 255, 0.5);

    --text-primary: #ffffff;
    --text-secondary: #a0a0ab;

    /* Typography */
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Transitions */
    --smooth: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    --bounce: 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

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

html {
    scroll-behavior: smooth;
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom Cursor */
#cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--brand-blue);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease, background 0.3s ease;
}

#cursor-blur {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--brand-glow) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
    transition: width 0.3s ease, height 0.3s ease;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(3rem, 8vw, 6rem); }
h2 { font-size: clamp(2rem, 5vw, 4rem); margin-bottom: 1rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }
p { color: var(--text-secondary); font-size: 1.125rem; }

.eyebrow {
    font-family: var(--font-display);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brand-blue);
    display: block;
    margin-bottom: 1rem;
    font-weight: 700;
}

.text-gradient {
    background: linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-deep) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

.section {
    padding: 8rem 0;
    position: relative;
}

/* Glassmorphism Utilities */
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    transition: background var(--smooth), padding var(--smooth);
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 48px;
    width: auto;
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--brand-blue);
}

.btn-contact {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all var(--smooth);
}

.btn-contact:hover {
    background: var(--text-primary);
    color: var(--bg-dark);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 800px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

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

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--brand-blue-deep);
    top: -10%;
    right: -10%;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: var(--brand-blue);
    bottom: -20%;
    left: 10%;
    animation-delay: -5s;
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    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 0%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 0%, transparent 80%);
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-text-wrapper {
    max-width: 800px;
}

.hero-title {
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    max-width: 600px;
    margin-bottom: 3rem;
}

/* Buttons */
.primary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-deep));
    color: white;
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 500;
    border-radius: 100px;
    position: relative;
    overflow: hidden;
    transition: transform var(--smooth), box-shadow var(--smooth);
}

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

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.stat-card {
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform var(--smooth), background var(--smooth);
}

.stat-card:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.05);
}

.stat-num {
    font-size: 3rem;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--brand-blue);
}

.stat-label {
    font-family: var(--font-display);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.875rem;
}

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

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

.card {
    padding: 3rem 2rem;
    text-align: left;
    transition: transform var(--smooth), box-shadow var(--smooth);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, var(--brand-glow), transparent 60%);
    opacity: 0;
    transition: opacity var(--smooth);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.card:hover::before {
    opacity: 0.1;
}

.card-icon {
    width: 64px;
    height: 64px;
    background: rgba(0, 168, 255, 0.1);
    color: var(--brand-blue);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

/* Contact */
.contact-container {
    max-width: 800px;
}

.contact-card {
    padding: 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-link {
    display: block;
    color: var(--brand-blue);
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-top: 1rem;
    transition: opacity var(--smooth);
}

.contact-link:hover {
    opacity: 0.7;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.input-group {
    position: relative;
}

input, textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 0;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--smooth);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--brand-blue);
}

.input-group label {
    position: absolute;
    top: 0.5rem;
    left: 0;
    color: var(--text-secondary);
    pointer-events: none;
    transition: all var(--smooth);
}

input:focus ~ label, input:not(:placeholder-shown) ~ label,
textarea:focus ~ label, textarea:not(:placeholder-shown) ~ label {
    top: -1.5rem;
    font-size: 0.75rem;
    color: var(--brand-blue);
}

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

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    height: 40px;
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.link-column h4 {
    margin-bottom: 1.5rem;
}

.link-column a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.link-column a:hover {
    color: var(--brand-blue);
}

.footer-bottom {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Animations Core */
.reveal {
    opacity: 0;
    transition: all 1s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--delay, 0s);
}

.reveal.active {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

.fade-up {
    transform: translateY(40px);
}

.scale-in {
    transform: scale(0.95);
}

/* Mobile Adjustments */
@media (max-width: 1024px) {
    .about-grid, .contact-card {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .contact-card {
        padding: 2rem;
    }
    .stat-card {
        padding: 1.5rem;
    }
    .stat-num {
        font-size: 2rem;
    }
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}
