/* ==========================================================================
   Base & Design System Tokens (Premium Dark Glassmorphism)
   ========================================================================== */
:root {
    /* Colors */
    --bg-primary: #040406;
    --bg-secondary: #0a0a0e;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    
    /* Vercel Premium Action / Flow Colors */
    --accent-cyan: #00f0ff;
    --accent-magenta: #fc00ff;
    --accent-purple: #7000ff;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-magenta) 100%);
    --gradient-glow: linear-gradient(135deg, rgba(0,240,255,0.4) 0%, rgba(252,0,255,0.4) 100%);
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.02);
    --glass-bg-hover: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(255, 255, 255, 0.15);

    /* Shadows */
    --shadow-neon: 0 0 25px rgba(252, 0, 255, 0.3);
    --shadow-ambient: 0 10px 40px rgba(0, 0, 0, 0.5);

    /* Typography */
    --font-heading: 'Geist', Arial, sans-serif;
    --font-body: 'Geist', Arial, sans-serif;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-feature-settings: "liga" 1;
    font-feature-settings: "liga" 1;
    font-variant-ligatures: common-ligatures;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-size: 18px;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Utility Classes */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent; /* Fallback */
    animation: gradientShift 6s ease-in-out infinite alternate;
    background-size: 200% 200%;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

/* Typography styles */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary);
}

h1 {
    font-size: 64px;
    line-height: 1.1;
    letter-spacing: -2.4px;
}

h2 {
    font-size: 48px;
    line-height: 1.2;
    letter-spacing: -1.8px;
    margin-bottom: 1rem;
}

h3 {
    font-size: 28px;
    line-height: 1.33;
    letter-spacing: -0.96px;
}

p {
    color: var(--text-secondary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px; /* Pill buttons for dynamic style */
    font-weight: 600;
    font-family: var(--font-body);
    text-decoration: none;
    transition: var(--transition-medium);
    cursor: pointer;
    font-size: 15px;
    position: relative;
    z-index: 1;
    box-shadow: none;
    padding: 12px 28px;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #ffffff;
    border: none;
    box-shadow: 0 8px 24px rgba(252, 0, 255, 0.25);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, var(--accent-magenta) 0%, var(--accent-cyan) 100%);
    z-index: -1;
    opacity: 0;
    transition: var(--transition-medium);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 240, 255, 0.4);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-secondary, .btn-outline {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.btn-secondary:hover, .btn-outline:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.25);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.4);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 18px;
}

/* Flat Card Panels (replacing glassmorphism) */
.glass-panel {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 16px;
    box-shadow: var(--shadow-ambient);
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
}

/* Inner glow inset for glass panels */
.glass-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.1);
    pointer-events: none;
}

.glass-panel:hover {
    transform: translateY(-6px);
    border-color: var(--glass-border-hover);
    box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 40px rgba(252, 0, 255, 0.05);
}

/* ==========================================================================
   Ambient Glow (Blobs) & Background Grid
   ========================================================================== */
.hero-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -2;
    overflow: hidden;
}

/* Ambient Grid */
.hero-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    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(ellipse at top, black 40%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at top, black 40%, transparent 80%);
    pointer-events: none;
}

.glow-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
    mix-blend-mode: screen;
    animation: float 14s infinite ease-in-out alternate;
}

.blob-1 {
    top: -10%; left: 10%; width: 600px; height: 600px;
    background: var(--accent-magenta);
}

.blob-2 {
    top: 20%; right: -5%; width: 500px; height: 500px;
    background: var(--accent-cyan);
    animation-delay: -5s;
}

.blob-3 {
    bottom: -10%; left: 30%; width: 700px; height: 400px;
    background: var(--accent-purple);
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(40px, 60px) scale(1.1); }
}

/* Restoring Image gently */
.hero-bg img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.1; 
    filter: contrast(120%);
}

.hero-bg .overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(4,4,6,0.5) 0%, var(--bg-primary) 100%);
    pointer-events: none;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    transition: var(--transition-medium);
}

.site-header.scrolled {
    background: rgba(4, 4, 6, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem 0;
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 22px;
    letter-spacing: -0.96px;
}

.logo img {
    height: 38px;
    width: auto;
    /* Removed invert so the real logo pops */
}

.main-nav ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.main-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 0; width: 0%; height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition-fast);
    border-radius: 2px;
}

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

.main-nav a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-toggle .bar {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    margin: 5px 0;
    transition: var(--transition-fast);
}

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

.hero-content {
    max-width: 900px;
    text-align: center;
    margin: 0 auto;
}

.pill-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 500;
    color: #e0e0e0;
    margin-bottom: 2rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Pulsing dot in pill badge */
.pill-badge::before {
    content: '';
    display: inline-block;
    width: 8px; height: 8px;
    background: var(--accent-cyan);
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 10px var(--accent-cyan);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(0, 240, 255, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 240, 255, 0); }
}

.hero-content p {
    font-size: 22px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-section {
    padding: 140px 0;
    position: relative;
}

.about-container {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 5rem;
    align-items: center;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 18px;
}

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

.stat-card {
    padding: 2.5rem;
    text-align: center;
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 100%);
}

.stat-card h3 {
    font-size: 42px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

.stat-card p {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-section {
    padding: 140px 0;
    background: var(--bg-secondary);
    position: relative;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem auto;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 18px;
}

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

.service-card {
    padding: 2.5rem;
}

.icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    color: var(--accent-magenta);
    transition: var(--transition-medium);
}

.service-card:hover .icon-wrapper {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 10px 25px rgba(252,0,255,0.4);
    transform: scale(1.1) rotate(5deg);
}

.icon-wrapper svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 22px;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 16px;
}

/* ==========================================================================
   Stats Counter Section
   ========================================================================== */
.stats-section {
    padding: 120px 0;
    position: relative;
    background: radial-gradient(circle at center, rgba(112, 0, 255, 0.1) 0%, var(--bg-primary) 70%);
}

.stats-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 3rem;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-item .prefix,
.stat-item .suffix,
.stat-item .counter {
    font-family: var(--font-heading);
    font-size: 56px;
    letter-spacing: -2.4px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.stat-item .prefix,
.stat-item .suffix {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-item .label {
    margin-top: 1rem;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* ==========================================================================
   CTA Section
   ========================================================================== */
.cta-section {
    padding: 120px 0;
}

.cta-container {
    padding: 5rem 3rem;
    text-align: center;
    background: linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    position: relative;
}

.cta-container::before {
    content: '';
    position: absolute;
    inset: -1px;
    padding: 1px;
    border-radius: 17px;
    background: var(--gradient-primary);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.cta-container h2 {
    margin-bottom: 1.5rem;
}

.cta-container p {
    color: var(--text-secondary);
    font-size: 20px;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-section {
    padding: 120px 0;
    background: var(--bg-secondary);
    position: relative;
}

.contact-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.contact-card {
    flex: 1 1 300px;
    max-width: 400px;
    padding: 4rem 2rem;
    text-align: center;
    background: rgba(255,255,255,0.02);
}

.contact-card .icon-wrapper {
    margin: 0 auto 2rem auto;
    width: 64px; height: 64px;
    border-radius: 50%;
    color: var(--accent-cyan);
}

.contact-card h3 {
    margin-bottom: 1rem;
}

.contact-card p, .contact-card a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 18px;
    transition: var(--transition-fast);
}

.contact-card a:hover {
    color: var(--accent-cyan);
    text-shadow: 0 0 10px rgba(0,240,255,0.5);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    padding: 4rem 0;
    background: var(--bg-primary);
    border-top: 1px solid rgba(255,255,255,0.05);
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 20px;
    letter-spacing: -0.5px;
}

.footer-logo-img {
    height: 32px;
    width: auto;
}

.footer-content p {
    color: var(--text-muted);
    font-size: 15px;
}

.footer-content a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
}

.footer-content a:hover {
    color: var(--text-primary);
}

/* ==========================================================================
   Animations & Responsive
   ========================================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

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

.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Media Queries */
@media (max-width: 992px) {
    .about-container { grid-template-columns: 1fr; gap: 4rem; }
}

@media (max-width: 768px) {
    h1 { font-size: 46px; }
    h2 { font-size: 38px; }

    .main-nav {
        display: none; 
        position: absolute;
        top: 100%; left: 0; width: 100%;
        background: rgba(4, 4, 6, 0.98);
        backdrop-filter: blur(20px);
        padding: 2rem;
        border-top: 1px solid rgba(255,255,255,0.05);
    }
    .main-nav.active { display: block; animation: fadeIn 0.3s ease forwards; }

    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }

    .main-nav ul { flex-direction: column; align-items: center; gap: 1.5rem; }
    .header-actions { display: none; }
    .menu-toggle { display: block; }
    .hero-buttons { flex-direction: column; }
    .footer-content { flex-direction: column; text-align: center; }
}
