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

:root {
    --bg-depth: #020617;
    --primary-cyan: #00D2FF;
    --primary-cobalt: #3A7BD5;
    --accent-glow: rgba(0, 210, 255, 0.4);
    --glass-surface: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --btn-gradient: linear-gradient(135deg, #00D2FF 0%, #3A7BD5 100%);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

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

h1, h2, h3, h4, .navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Background Effects */
.bg-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(at 0% 0%, rgba(0, 210, 255, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(58, 123, 213, 0.1) 0px, transparent 50%);
    z-index: -2;
}

.bg-dot-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: -1;
    opacity: 0.5;
}

/* Navigation */
.navbar {
    padding: 1.25rem 0;
    background: rgba(2, 6, 23, 0.8) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    width: 36px;
    height: 36px;
    background: var(--btn-gradient);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.nav-link {
    font-weight: 500;
    color: var(--text-secondary) !important;
    margin: 0 1rem;
    transition: color 0.3s ease;
    font-size: 0.9rem;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-cyan) !important;
}

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

.hero-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 210, 255, 0.1);
    border: 1px solid rgba(0, 210, 255, 0.2);
    border-radius: 100px;
    color: var(--primary-cyan);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

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

.hero-desc {
    color: var(--text-secondary);
    font-size: 1.125rem;
    max-width: 540px;
    margin-bottom: 2.5rem;
}

.hero-visual-container {
    position: relative;
}

.hero-image-frame {
    width: 100%;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    padding: 12px;
    background: var(--glass-surface);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.hero-image-frame img {
    width: 100%;
    border-radius: 16px;
}

/* Buttons */
.btn-primary-custom {
    padding: 14px 28px;
    background: var(--btn-gradient);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 210, 255, 0.2);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 210, 255, 0.4);
    color: white;
}

.btn-outline-custom {
    padding: 14px 28px;
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    background: var(--glass-surface);
    border-color: var(--primary-cyan);
}

/* Services */
.section-id {
    color: var(--primary-cyan);
    font-weight: 600;
    display: block;
    margin-bottom: 0.75rem;
}

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

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

.service-card {
    background: var(--glass-surface);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-cyan);
    transform: translateY(-5px);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--btn-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--primary-cyan);
}

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

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

/* Process Section */
.process-section {
    padding: 100px 0;
}

.process-step {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.step-num {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: var(--glass-surface);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--primary-cyan);
}

.step-content h4 {
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--text-secondary);
    max-width: 500px;
}

/* Footer */
.footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--glass-border);
}

.footer-email-link {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
}

.footer-email-link:hover {
    color: var(--primary-cyan);
}

.copyright {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

/* Hero Icon Animation Stack */
.icon-visual-stack {
    position: relative;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.core-hub {
    position: relative;
    width: 130px;
    height: 130px;
    background: var(--btn-gradient);
    border-radius: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.5rem;
    color: white;
    z-index: 10;
    box-shadow: 0 0 50px var(--accent-glow);
    animation: core-float 4s infinite ease-in-out;
}

.core-hub i {
    animation: core-rotate 8s infinite linear;
}

.glow-ring {
    position: absolute;
    border: 1px solid rgba(0, 210, 255, 0.3);
    border-radius: 50%;
    pointer-events: none;
    animation: ring-rotate 10s infinite linear;
}

.ring-1 { width: 220px; height: 220px; border-style: dashed; }
.ring-2 { width: 320px; height: 320px; animation-duration: 20s; animation-direction: reverse; }
.ring-3 { width: 420px; height: 420px; border-width: 2px; opacity: 0.1; }

.floating-icon {
    position: absolute;
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--primary-cyan);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    animation: float-base 6s infinite ease-in-out;
}

.pos-1 { top: 5%; left: 10%; animation-delay: 0s; }
.pos-2 { top: 15%; right: 5%; animation-delay: -1.5s; }
.pos-3 { bottom: 10%; left: 5%; animation-delay: -3s; }
.pos-4 { bottom: 20%; right: 10%; animation-delay: -4.5s; }

@keyframes core-float {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1.05); }
}

@keyframes core-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes ring-rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes float-base {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(10px, -20px) rotate(5deg); }
    66% { transform: translate(-15px, 15px) rotate(-5deg); }
}

/* Responsive */
@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--bg-depth);
        padding: 1.5rem;
        border-radius: 12px;
        margin-top: 1rem;
        border: 1px solid var(--glass-border);
    }
}