@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800;900&display=swap');

:root {
    /* Color Palette */
    --bg-dark: #030509;
    --bg-panel: rgba(10, 15, 25, 0.4);
    --primary: #00e1ff; /* Cyan */
    --secondary: #6200ea; /* Deep Violet */
    --accent: #ff007a; /* Neon Pink */
    --text-main: #ffffff;
    --text-muted: #8b9bb4;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary), var(--secondary));
    --gradient-glow: linear-gradient(135deg, rgba(0, 225, 255, 0.5), rgba(98, 0, 234, 0.5));
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* UI Elements */
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --glass-border-hover: 1px solid rgba(0, 225, 255, 0.3);
    --radius-lg: 24px;
    --radius-xl: 32px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ----------------------------------
   Animated Mesh Background
----------------------------------- */
.mesh-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-dark);
}

.mesh-blob {
    position: absolute;
    filter: blur(100px);
    opacity: 0.5;
    border-radius: 50%;
    animation: rotate 20s infinite linear;
}

.mesh-1 {
    top: -10%; left: -10%;
    width: 50vw; height: 50vw;
    background: radial-gradient(circle, rgba(98,0,234,0.4) 0%, transparent 70%);
}

.mesh-2 {
    bottom: -20%; right: -10%;
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, rgba(0,225,255,0.3) 0%, transparent 70%);
    animation-direction: reverse;
    animation-duration: 25s;
}

.mesh-3 {
    top: 40%; left: 50%;
    width: 40vw; height: 40vw;
    background: radial-gradient(circle, rgba(255,0,122,0.15) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: float 15s infinite ease-in-out alternate;
}

.mesh-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)"/></svg>');
    opacity: 0.03;
    pointer-events: none;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes float {
    0% { transform: translate(-50%, -50%) scale(1); }
    100% { transform: translate(-40%, -60%) scale(1.2); }
}

/* ----------------------------------
   Typography & Utilities
----------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

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

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

/* ----------------------------------
   Navbar
----------------------------------- */
.navbar {
    position: fixed;
    top: 0; left: 0; width: 100%;
    padding: 24px 0;
    z-index: 1000;
    background: rgba(3, 5, 9, 0.7);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.03);
    transition: var(--transition-smooth);
}

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

.logo {
    display: flex; align-items: center; gap: 12px;
    font-family: var(--font-heading);
    font-size: 1.5rem; font-weight: 800;
    color: var(--text-main); text-decoration: none;
    letter-spacing: -0.5px;
}

.logo-icon {
    width: 32px; height: 32px;
    background: var(--gradient-primary);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; color: white;
}

.nav-menu {
    display: flex; gap: 40px; list-style: none;
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 32px;
    border-radius: 100px;
    border: var(--glass-border);
}

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

.nav-menu a:hover, .nav-menu a.active {
    color: var(--text-main);
}

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 28px; border-radius: 100px;
    font-family: var(--font-body); font-size: 1rem; font-weight: 600;
    text-decoration: none; cursor: pointer; border: none; outline: none;
    transition: var(--transition-smooth);
    position: relative; overflow: hidden;
}

.btn-glow {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-glow:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

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

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-main);
}

.btn-large { padding: 18px 36px; font-size: 1.1rem; }
.btn-massive { padding: 22px 48px; font-size: 1.25rem; }

/* ----------------------------------
   Hero Section
----------------------------------- */
.hero {
    min-height: 100vh;
    padding: 160px 0 100px;
    display: flex; align-items: center;
}

.hero-layout {
    display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}

.hero-content h1 {
    font-size: 5.5rem; margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.hero-content p {
    font-size: 1.25rem; color: var(--text-muted); margin-bottom: 40px;
    max-width: 90%; font-weight: 400; line-height: 1.7;
}

.hero-actions { display: flex; gap: 20px; }

.badge {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 16px; background: rgba(0, 225, 255, 0.1);
    border: 1px solid rgba(0, 225, 255, 0.2);
    border-radius: 100px; color: var(--primary);
    font-size: 0.85rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 1px; margin-bottom: 30px;
}

.pulse-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 225, 255, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 225, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 225, 255, 0); }
}

/* Hero Visual 3D Layers */
.hero-visual {
    position: relative;
    height: 500px;
    perspective: 1000px;
}

.glass-layer {
    position: absolute;
    background: rgba(255, 255, 255, 0.03);
    border: var(--glass-border);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 30px;
    display: flex; align-items: center; gap: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    transition: var(--transition-smooth);
}

.glass-layer i { font-size: 2.5rem; color: var(--primary); }
.layer-text { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 600; }

.layer-1 { top: 10%; left: 10%; width: 70%; z-index: 3; transform: translateZ(50px) rotateY(-10deg); }
.layer-2 { top: 40%; right: 5%; width: 65%; z-index: 2; transform: translateZ(20px) rotateY(-10deg); }
.layer-3 { bottom: 10%; left: 20%; width: 60%; z-index: 1; transform: translateZ(-10px) rotateY(-10deg); }

.hero-visual:hover .layer-1 { transform: translateZ(80px) rotateY(0deg); border-color: rgba(0,225,255,0.3); }
.hero-visual:hover .layer-2 { transform: translateZ(40px) rotateY(0deg); border-color: rgba(98,0,234,0.3); }
.hero-visual:hover .layer-3 { transform: translateZ(0px) rotateY(0deg); border-color: rgba(255,0,122,0.3); }

.glow-sphere {
    position: absolute;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 250px; height: 250px;
    background: radial-gradient(circle, rgba(0,225,255,0.4) 0%, transparent 70%);
    filter: blur(40px); z-index: 0;
}

/* ----------------------------------
   Stats Bar
----------------------------------- */
.stats-wrapper {
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.stats-bar {
    display: flex; justify-content: space-between; align-items: center;
    background: var(--bg-panel); border: var(--glass-border);
    backdrop-filter: blur(24px); border-radius: var(--radius-lg);
    padding: 40px 60px; box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.stat-block { text-align: center; }
.stat-num { font-family: var(--font-heading); font-size: 3.5rem; font-weight: 800; line-height: 1; margin-bottom: 8px; }
.stat-num span { color: var(--primary); font-size: 2.5rem; }
.stat-desc { color: var(--text-muted); font-size: 1rem; font-weight: 500; text-transform: uppercase; letter-spacing: 1px; }
.stat-divider { width: 1px; height: 60px; background: rgba(255,255,255,0.1); }

/* ----------------------------------
   Bento Services Section
----------------------------------- */
.section { padding: 140px 0; }
.section-header { margin-bottom: 80px; }
.section-title { font-size: 4rem; margin-bottom: 20px; }
.section-subtitle { font-size: 1.25rem; color: var(--text-muted); max-width: 600px; margin: 0 auto; }

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 320px;
    gap: 24px;
}

.glass-card {
    background: var(--bg-panel);
    border: var(--glass-border);
    border-radius: var(--radius-xl);
    backdrop-filter: blur(20px);
    padding: 40px;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex; flex-direction: column; justify-content: space-between;
}

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

.glass-card:hover {
    transform: translateY(-5px);
    border-color: var(--glass-border-hover);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.glass-card:hover .card-glow { opacity: 1; }

.icon-wrapper {
    width: 60px; height: 60px; border-radius: 16px;
    background: rgba(255,255,255,0.05); border: var(--glass-border);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; color: var(--primary); margin-bottom: 24px;
    transition: var(--transition-smooth);
}

.glass-card:hover .icon-wrapper {
    background: var(--primary); color: var(--bg-dark); transform: scale(1.1) rotate(-5deg);
}

.bento-content h3 { font-size: 1.75rem; margin-bottom: 16px; }
.bento-content p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 24px; }

.feature-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.feature-list li { display: flex; align-items: center; gap: 12px; font-size: 0.95rem; font-weight: 500; }
.feature-list i { color: var(--primary); }

/* Grid Spanning */
.bento-large { grid-column: span 2; grid-row: span 2; flex-direction: row; gap: 40px; }
.bento-small { grid-column: span 1; grid-row: span 1; }
.bento-wide { grid-column: span 3; grid-row: span 1; justify-content: center; }

.horizontal { display: flex; align-items: center; gap: 60px; width: 100%; }
.bento-text { flex: 1; }
.bento-visual { flex: 1; position: relative; height: 100%; min-height: 200px; border-radius: var(--radius-lg); background: rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.05); }

/* Abstract visuals in bento */
.mobile-visual { background: linear-gradient(135deg, rgba(0,225,255,0.1), rgba(98,0,234,0.1)); overflow: hidden; }
.mobile-visual::after { content: ''; position: absolute; top: 20%; left: 20%; right: 20%; bottom: -20%; background: #000; border-radius: 30px 30px 0 0; border: 4px solid #222; border-bottom: none; }

.design-visual { display: flex; align-items: center; justify-content: center; gap: 20px; background: transparent; border: none; }
.color-swatch { width: 80px; height: 80px; border-radius: 50%; box-shadow: 0 10px 20px rgba(0,0,0,0.3); }
.s1 { background: var(--primary); transform: translateY(10px); }
.s2 { background: var(--secondary); transform: translateY(-10px); }
.s3 { background: var(--accent); transform: translateY(10px); }

/* ----------------------------------
   CTA Section (Magnetic)
----------------------------------- */
.cta-section { padding: 80px 0 160px; }
.cta-banner {
    padding: 80px; text-align: center;
    position: relative; overflow: hidden;
}
.cta-bg-glow {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 100%; height: 100%;
    background: radial-gradient(ellipse at center, rgba(98,0,234,0.3) 0%, transparent 70%);
    z-index: 0; pointer-events: none;
}
.cta-content { position: relative; z-index: 1; }
.cta-content h2 { font-size: 4.5rem; margin-bottom: 24px; }
.cta-content p { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 40px; max-width: 600px; margin-inline: auto; }

/* ----------------------------------
   Footer
----------------------------------- */
.footer { border-top: 1px solid rgba(255,255,255,0.05); padding: 80px 0 40px; background: #020305; }
.footer-top { display: grid; grid-template-columns: 2fr 3fr; gap: 60px; margin-bottom: 60px; }
.footer-brand p { color: var(--text-muted); margin-top: 20px; font-size: 1.1rem; max-width: 300px; }
.footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.link-group h4 { font-size: 1.2rem; margin-bottom: 24px; }
.link-group a { display: block; color: var(--text-muted); text-decoration: none; margin-bottom: 16px; font-size: 1rem; transition: var(--transition-fast); }
.link-group a:hover { color: var(--primary); transform: translateX(5px); }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.05); padding-top: 30px;
    display: flex; justify-content: space-between; align-items: center;
    color: var(--text-muted); font-size: 0.95rem;
}
.legal-links { display: flex; gap: 24px; }
.legal-links a { color: var(--text-muted); text-decoration: none; transition: var(--transition-fast); }
.legal-links a:hover { color: var(--text-main); }

/* ----------------------------------
   Animations & Utilities
----------------------------------- */
.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0; transform: translateY(30px);
}
.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); }
}

/* ----------------------------------
   Responsive Design
----------------------------------- */
.mobile-menu-btn { display: none; background: none; border: none; color: var(--text-main); font-size: 1.5rem; cursor: pointer; }

@media (max-width: 1200px) {
    .hero-content h1 { font-size: 4.5rem; }
    .bento-large { flex-direction: column; }
    .bento-large .bento-visual { min-height: 250px; }
}

@media (max-width: 992px) {
    .hero-layout { grid-template-columns: 1fr; text-align: center; }
    .hero-content p { margin: 0 auto 40px; }
    .hero-actions { justify-content: center; }
    .hero-visual { display: none; }
    
    .stats-bar { flex-wrap: wrap; gap: 40px; padding: 40px; }
    .stat-divider { display: none; }
    .stat-block { width: 40%; }
    
    .bento-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
    .bento-large, .bento-small, .bento-wide { grid-column: span 1; grid-row: span 1; }
    .horizontal { flex-direction: column; }
    .bento-visual { min-height: 250px; width: 100%; margin-top: 30px; }
    
    .cta-content h2 { font-size: 3.5rem; }
}

@media (max-width: 768px) {
    .mobile-menu-btn { display: block; position: relative; z-index: 2001; }
    .nav-cta, .nav-menu { display: none; }
    
    .nav-menu.active {
        display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 30px;
        position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
        background: rgba(3, 5, 9, 0.98); backdrop-filter: blur(20px);
        border-radius: 0; border: none; z-index: 2000;
    }
    .nav-menu.active a { font-size: 2rem; font-weight: 700; }
    
    .hero-content h1 { font-size: 3.5rem; }
    .stat-block { width: 100%; }
    .section-title { font-size: 3rem; }
    
    .footer-top { grid-template-columns: 1fr; text-align: center; }
    .footer-brand p { margin: 20px auto; }
    .footer-bottom { flex-direction: column; gap: 20px; }
}

/* ----------------------------------
   Contact Page Styles
----------------------------------- */
.contact-page { padding: 160px 0 100px; position: relative; z-index: 10; }
.contact-grid {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 40px;
    align-items: stretch;
}

/* Info Side */
.contact-info-fresh { padding: 60px 50px; display: flex; flex-direction: column; justify-content: center; }
.info-header .display-title { font-size: 4rem; margin-bottom: 20px; letter-spacing: -1.5px; line-height: 1.1; }
.info-header .subtitle { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 50px; }

.info-cards { display: grid; gap: 20px; }
.info-card {
    display: flex; align-items: center; gap: 24px;
    background: rgba(255, 255, 255, 0.02);
    padding: 24px 30px; border-radius: var(--radius-lg);
    border: var(--glass-border);
    transition: var(--transition-smooth);
}
.info-card:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 225, 255, 0.2);
}
.info-card .icon-box {
    width: 60px; height: 60px; border-radius: 16px;
    background: var(--gradient-glow);
    color: var(--text-main); display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; border: var(--glass-border);
}
.info-content h3 { font-size: 1.1rem; margin-bottom: 5px; color: var(--text-main); }
.info-content a, .info-content p { color: var(--text-muted); text-decoration: none; font-size: 1.05rem; transition: var(--transition-fast); }
.info-content a:hover { color: var(--primary); }

/* Form Side */
.contact-form-fresh { padding: 60px 50px; }
.contact-form-fresh h2 { font-size: 2.5rem; margin-bottom: 40px; }
.input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.input-group { margin-bottom: 24px; text-align: left; }
.input-group label { display: block; font-size: 0.95rem; font-weight: 500; color: var(--text-muted); margin-bottom: 10px; }
.form-input {
    width: 100%; padding: 18px 24px;
    background: rgba(0, 0, 0, 0.4);
    border: var(--glass-border);
    border-radius: 16px;
    color: var(--text-main);
    font-family: var(--font-body); font-size: 1.05rem;
    transition: var(--transition-fast);
}
.form-input:focus {
    outline: none; border-color: var(--primary);
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 0 4px rgba(0, 225, 255, 0.15);
}
.form-input::placeholder { color: rgba(255, 255, 255, 0.2); }
.btn-submit { width: 100%; margin-top: 20px; padding: 20px; font-size: 1.2rem; border-radius: 16px; justify-content: center; }

/* Modal */
.modal-backdrop {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85); backdrop-filter: blur(10px);
    display: flex; align-items: center; justify-content: center;
    z-index: 2000; opacity: 0; pointer-events: none; transition: var(--transition-smooth);
}
.modal-backdrop.show { opacity: 1; pointer-events: all; }
.modal-content { max-width: 450px; width: 90%; padding: 50px 40px; text-align: center; transform: scale(0.9); transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); margin: auto; }
.modal-backdrop.show .modal-content { transform: scale(1); }
.modal-success-icon { font-size: 4.5rem; color: var(--primary); margin-bottom: 24px; display: flex; justify-content: center; }

@media (max-width: 992px) {
    .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .contact-info-fresh, .contact-form-fresh { padding: 40px 30px; }
    .input-row { grid-template-columns: 1fr; }
    .info-header .display-title { font-size: 3rem; }
}