:root {
    --bg-color: #0d1117;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --accent: #58a6ff;
    --accent-hover: #3182ce;
    --glass-bg: rgba(22, 27, 34, 0.65);
    --glass-border: rgba(255, 255, 255, 0.1);
    --blob-1: rgba(88, 166, 255, 0.3);
    --blob-2: rgba(138, 43, 226, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

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

/* Background Blobs (Premium aesthetic) */
.blob-bg {
    position: absolute;
    top: -200px;
    left: -100px;
    width: 600px;
    height: 600px;
    background: var(--blob-1);
    filter: blur(120px);
    border-radius: 50%;
    z-index: -1;
    animation: drift 15s infinite alternate ease-in-out;
}

.blob-2 {
    top: 40%;
    right: -200px;
    left: auto;
    background: var(--blob-2);
    animation: drift 20s infinite alternate-reverse ease-in-out;
}

@keyframes drift {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 100px) scale(1.1); }
}

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

/* Glassmorphism utility */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
}

/* Typography */
h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #a0aec0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 48px;
    text-align: center;
}

p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.25rem;
}

.logo img {
    height: 40px;
    width: auto;
    border-radius: 8px;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--accent);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
}

/* Buttons */
.btn-primary, .btn-primary-small, .btn-secondary {
    display: inline-block;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    padding: 16px 32px;
    border: none;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(88, 166, 255, 0.2);
}

.btn-primary-small {
    background: var(--accent);
    color: #fff;
    padding: 10px 20px;
}

.btn-primary-small:hover {
    background: var(--accent-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    padding: 14px 30px;
    border: 2px solid var(--glass-border);
}

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

/* Animated Hero Section (Cyberpunk/Tech Style) */
.animated-hero {
    position: relative;
    margin-top: 80px; /* Offset for navbar */
    padding: 100px 20px 140px;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: -2;
    background: radial-gradient(circle at center, rgba(13, 25, 48, 0.8) 0%, var(--bg-color) 70%);
}

.cyber-grid {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image: 
        linear-gradient(rgba(88, 166, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(88, 166, 255, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    transform: perspective(600px) rotateX(60deg);
    animation: gridMove 15s linear infinite;
    z-index: -1;
}

@keyframes gridMove {
    0% { transform: perspective(600px) rotateX(60deg) translateY(0); }
    100% { transform: perspective(600px) rotateX(60deg) translateY(40px); }
}

.hero-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    z-index: 1;
}

.hero-center-display {
    position: relative;
    width: 100%;
    max-width: 600px;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}

.cyber-rings {
    position: relative;
    width: 280px;
    height: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
}

.ring-outer {
    width: 280px;
    height: 280px;
    border-top: 2px solid #00f0ff;
    border-bottom: 2px solid #00f0ff;
    animation: rotateRing 12s linear infinite;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.2), inset 0 0 20px rgba(0, 240, 255, 0.2);
}

.ring-inner {
    width: 220px;
    height: 220px;
    border-left: 2px solid #58a6ff;
    border-right: 2px solid #58a6ff;
    animation: rotateRingReverse 8s linear infinite;
    box-shadow: 0 0 15px rgba(88, 166, 255, 0.3), inset 0 0 15px rgba(88, 166, 255, 0.3);
}

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

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

.cyber-logo {
    width: 140px;
    height: auto;
    filter: drop-shadow(0 0 15px rgba(0, 240, 255, 0.6));
    animation: pulseGlow 3s ease-in-out infinite;
    z-index: 10;
}

@keyframes pulseGlow {
    0%, 100% { filter: drop-shadow(0 0 15px rgba(0, 240, 255, 0.6)); }
    50% { filter: drop-shadow(0 0 30px rgba(0, 240, 255, 0.9)); }
}

/* Floating UI Panels */
.float-ui {
    position: absolute;
    padding: 20px;
    width: 220px;
    animation: floatPanel 6s ease-in-out infinite;
    background: rgba(22, 27, 34, 0.5); /* extra transparency for UI */
}

.ui-left {
    left: -40px;
    top: 15%;
    animation-delay: 0s;
}

.ui-right {
    right: -40px;
    top: 35%;
    animation-delay: 3s;
}

@keyframes floatPanel {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.ui-skeleton .sk-title {
    height: 12px;
    width: 40%;
    background: rgba(88, 166, 255, 0.6);
    border-radius: 4px;
    margin-bottom: 16px;
}

.ui-skeleton .sk-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    margin-bottom: 10px;
}
.sk-bar.w-80 { width: 80%; }
.sk-bar.w-60 { width: 60%; }
.sk-bar.w-90 { width: 90%; }
.sk-bar.w-40 { width: 40%; }

.ui-skeleton .sk-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 4px solid rgba(0, 240, 255, 0.3);
    border-top-color: #00f0ff;
    margin-bottom: 15px;
    animation: rotateRing 4s linear infinite;
}

.sk-lines {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.sk-line {
    height: 6px;
    width: 100%;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

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

.hero-text h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    line-height: 1.2;
}

.cyan-text {
    color: #00f0ff;
    -webkit-text-fill-color: #00f0ff;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.5);
}

.hero-text p.tagline {
    font-size: 1.25rem;
    font-weight: 400;
    color: #e6edf3;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* Services */
.services {
    margin-bottom: 120px;
}

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

.service-card {
    padding: 40px;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(88, 166, 255, 0.4);
}

.service-card .icon {
    font-size: 3rem;
    margin-bottom: 24px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

/* Contact */
.contact {
    padding: 80px 40px;
    text-align: center;
    margin-bottom: 120px;
    background: linear-gradient(to bottom, rgba(22, 27, 34, 0.8), rgba(22, 27, 34, 0.4));
}

.contact h2 {
    margin-bottom: 24px;
}

.contact p {
    margin-bottom: 32px;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

/* Animations (Initial State) */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s forwards ease-out;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

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

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

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

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
    .animated-hero {
        padding: 100px 20px 80px;
    }
    .hero-actions {
        flex-direction: column;
    }
    .float-ui {
        display: none; /* Hide floating UI on mobile */
    }
    .cyber-rings {
        transform: scale(0.7);
    }
}
