/* -------------------------------------
   VARIABLES & BASE
------------------------------------- */
:root {
    --bg-primary: #030305;
    --bg-secondary: rgba(15, 16, 22, 0.6);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.2);
    
    --text-primary: #ffffff;
    --text-secondary: #94A3B8;
    
    --accent-cyan: #00F0FF;
    --accent-purple: #7000FF;
    --accent-blue: #0A66C2;
    
    --gradient-glow: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-purple) 100%);
    --gradient-text: linear-gradient(90deg, #FFFFFF 0%, #A5B4FC 100%);
    --gradient-accent: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
    
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-main: 'Inter', sans-serif;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    --glass-bg: rgba(15, 17, 26, 0.4);
    --glass-blur: blur(16px);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Blurs */
.blur-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.5;
    pointer-events: none;
}
.circle-1 {
    top: -20%;
    left: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(112,0,255,0.2) 0%, rgba(0,0,0,0) 70%);
    animation: float 15s ease-in-out infinite alternate;
}
.circle-2 {
    top: 30%;
    right: -20%;
    width: 900px;
    height: 900px;
    background: radial-gradient(circle, rgba(0,240,255,0.15) 0%, rgba(0,0,0,0) 70%);
    animation: float 20s ease-in-out infinite alternate-reverse;
}

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    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");
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 30px) scale(1.05); }
    100% { transform: translate(-30px, -50px) scale(0.95); }
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}
.container-narrow {
    max-width: 800px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    font-weight: 700;
}
h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    letter-spacing: -1px;
    margin-bottom: 24px;
}
h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
}
h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}
p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    font-weight: 400;
}
a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}
.btn-primary {
    background: var(--gradient-glow);
    color: #fff;
    box-shadow: 0 4px 20px rgba(112, 0, 255, 0.3);
}
.btn-primary:hover {
    box-shadow: 0 6px 25px rgba(0, 240, 255, 0.5);
    transform: translateY(-2px);
}
.btn-primary:active {
    transform: translateY(1px);
}
.btn-secondary {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    color: #fff;
    backdrop-filter: var(--glass-blur);
}
.btn-secondary:hover {
    border-color: var(--text-primary);
    transform: translateY(-2px);
    background: rgba(255,255,255,0.05);
}
.btn-outline {
    border: 1px solid var(--border-color);
    padding: 10px 24px;
}
.btn-outline:hover {
    background: #fff;
    color: #000;
}
.btn-lg {
    padding: 18px 36px;
    font-size: 1.125rem;
}

/* -------------------------------------
   NAVBAR
------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    transition: var(--transition);
}
.navbar.scrolled {
    padding: 16px 0;
    background: rgba(3, 3, 5, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    background: #ffffff; /* Bright background for contrast */
    padding: 8px 16px;
    border-radius: 100px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
}
.logo:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 240, 255, 0.25);
}
.logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
    display: block;
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}
.nav-links li a:not(.btn) {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
}
.nav-links li a:not(.btn):hover {
    color: var(--text-primary);
}
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}
.hamburger .bar {
    width: 28px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition);
}

/* -------------------------------------
   HERO
------------------------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    position: relative;
}
.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 10;
}
.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 100px;
    color: var(--accent-cyan);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 24px;
}
.hero p {
    font-size: clamp(1.125rem, 2vw, 1.35rem);
    max-width: 700px;
    margin-bottom: 40px;
}
.hero-actions {
    display: flex;
    gap: 16px;
}

/* -------------------------------------
   SERVICES
------------------------------------- */
.services {
    padding: 120px 0;
    position: relative;
}
.section-header {
    text-align: center;
    margin-bottom: 80px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}
.service-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px 32px;
    position: relative;
    overflow: hidden;
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    transition: var(--transition);
    z-index: 1;
    box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05),
                0 4px 6px rgba(0, 0, 0, 0.1);
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 24px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.0));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    pointer-events: none;
    transition: var(--transition);
}
.service-card:hover::before {
    background: var(--gradient-glow);
}
.card-glow {
    position: absolute;
    width: 150px;
    height: 150px;
    background: var(--accent-purple);
    top: -75px;
    right: -75px;
    filter: blur(80px);
    opacity: 0;
    transition: var(--transition);
    z-index: -1;
}
.service-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.service-card:hover .card-glow {
    opacity: 0.3;
}
.service-card:hover .icon-wrapper {
    color: var(--accent-cyan);
    transform: scale(1.1);
}
.icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--text-primary);
    transition: var(--transition);
}

/* -------------------------------------
   STATS
------------------------------------- */
.stats {
    padding: 80px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(90deg, transparent, rgba(112,0,255,0.03), transparent);
}
.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 40px;
    text-align: center;
}
.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 8px;
}
.stats p {
    color: var(--accent-cyan);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

/* -------------------------------------
   CONTACT
------------------------------------- */
.contact {
    padding: 120px 0;
}
.contact-card {
    background: radial-gradient(circle at top right, rgba(112,0,255,0.2) 0%, rgba(10,11,16,1) 60%);
    border: 1px solid rgba(112,0,255,0.3);
    border-radius: 32px;
    padding: 80px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.contact-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: 32px;
    padding: 2px;
    background: var(--gradient-glow);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    pointer-events: none;
    opacity: 0.5;
}
.contact-card p {
    margin-bottom: 32px;
}
.mt-4 {
    margin-top: 24px;
}

/* -------------------------------------
   FOOTER
------------------------------------- */
footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-brand p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 4px;
}
.footer-links p {
    font-size: 0.85rem;
}

/* -------------------------------------
   ANIMATIONS
------------------------------------- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }

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

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* -------------------------------------
   RESPONSIVE
------------------------------------- */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .nav-links {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background: var(--bg-primary);
        width: 100%;
        height: 100vh;
        justify-content: center;
        transition: 0.3s;
        z-index: 1000;
        padding: 40px;
    }
    .nav-links.active {
        left: 0;
    }
    .nav-links li a.btn {
        width: 100%;
    }
    
    h1 {
        font-size: 2.5rem;
    }
    .hero-actions {
        flex-direction: column;
    }
    .hero-actions .btn {
        width: 100%;
    }
    .stats-container {
        flex-direction: column;
        gap: 32px;
    }
}
