/* CSS Custom Properties & Base Styles */
:root {
    --primary: #00f0ff;      /* Neon Cyan */
    --primary-dark: #00b3cc;
    --secondary: #bc13fe;    /* Neon Purple */
    --accent: #ff003c;       /* Neon Red (Cyberpunk vibe) */
    
    --bg-base: #050505;      /* Deep Black */
    --bg-dark: #0a0a0f;      /* Very dark blue/black */
    --bg-card: rgba(16, 18, 27, 0.6); /* Semi-transparent for glass */
    --bg-card-hover: rgba(22, 25, 40, 0.8);
    
    --text-main: #f3f4f6;    /* Gray 100 */
    --text-muted: #9ca3af;   /* Gray 400 */
    
    --glow-cyan: 0 0 15px rgba(0, 240, 255, 0.5), 0 0 30px rgba(0, 240, 255, 0.2);
    --glow-purple: 0 0 15px rgba(188, 19, 254, 0.5), 0 0 30px rgba(188, 19, 254, 0.2);
}

/* Reset & Utilities */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-base);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Global Technological Grid Background */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(to right, rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -2;
    pointer-events: none;
}

/* Ambient glow orbs */
body::after {
    content: '';
    position: fixed;
    top: -20%; left: -10%; width: 50vw; height: 50vw;
    background: radial-gradient(circle, rgba(188, 19, 254, 0.1) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(80px);
}
.ambient-glow {
    position: fixed;
    bottom: -20%; right: -10%; width: 50vw; height: 50vw;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.1) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(80px);
}

h1, h2, h3, h4, h5, h6, .font-heading {
    font-family: 'Inter', sans-serif; /* You can switch to Outfit if linked */
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Common Tailwind Equivalents / Overrides to ensure pure dark mode */
.text-cyan-neon { color: var(--primary); }
.text-purple-neon { color: var(--secondary); }

/* Buttons & Interactive Elements */
.btn-cyber {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 4px; /* Slightly sharp for tech feel */
    transition: all 0.4s ease;
    overflow: hidden;
    z-index: 1;
}

.btn-cyber::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 0%; height: 100%;
    background: var(--primary);
    z-index: -1;
    transition: all 0.4s cubic-bezier(0.86, 0, 0.07, 1);
}

.btn-cyber:hover {
    color: var(--bg-base);
    border-color: var(--primary);
    box-shadow: var(--glow-cyan);
}

.btn-cyber:hover::before {
    width: 100%;
}

.btn-cyber-purple {
    color: var(--secondary);
    background: rgba(188, 19, 254, 0.05);
    border-color: rgba(188, 19, 254, 0.3);
}
.btn-cyber-purple::before {
    background: var(--secondary);
}
.btn-cyber-purple:hover {
    color: #fff;
    border-color: var(--secondary);
    box-shadow: var(--glow-purple);
}

/* Glass UI Elements */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Service Cards - Futuristic */
.service-card {
    background: linear-gradient(145deg, rgba(16, 18, 27, 0.8) 0%, rgba(10, 10, 15, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    backdrop-filter: blur(10px);
}

.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    padding: 1px;
    background: linear-gradient(to bottom right, rgba(255,255,255,0.1), transparent, var(--primary));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 240, 255, 0.15);
    border-color: transparent; /* Rely on gradient border */
}

.service-card:hover::after {
    opacity: 1;
}

.service-img-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.service-img-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent, var(--bg-dark));
    z-index: 1;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease, filter 0.8s ease;
    filter: brightness(0.6) grayscale(1) contrast(1.2);
}

.service-card:hover .service-img {
    transform: scale(1.1);
    filter: brightness(0.8) grayscale(0) hue-rotate(15deg);
}

.service-icon-float {
    position: absolute;
    top: 20px; right: 20px;
    background: rgba(0, 240, 255, 0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: var(--primary);
    width: 50px; height: 50px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    z-index: 2;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.service-content {
    padding: 2rem;
    position: relative;
    z-index: 2;
}

/* Nav Link Holographic */
.nav-link {
    position: relative;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.05em;
    padding: 0.5rem 0;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: text-shadow 0.3s ease, color 0.3s ease;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 0; height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
    box-shadow: 0 0 8px var(--primary);
}

.nav-link:hover, .nav-link.active {
    color: #fff;
    text-shadow: 0 0 8px rgba(255,255,255,0.4);
}

.nav-link:hover::before, .nav-link.active::before {
    width: 100%;
}

/* Navbar scroll effect */
.navbar-scrolled {
    background-color: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 240, 255, 0.15);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

/* Hologram Text Effect */
.text-hologram {
    background: linear-gradient(90deg, #fff 0%, var(--primary) 50%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    filter: drop-shadow(0 0 10px rgba(0,240,255,0.3));
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary);
}

/* Forms */
.cyber-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.cyber-input:focus {
    outline: none;
    background: rgba(0, 240, 255, 0.05);
    border-color: var(--primary);
    box-shadow: inset 0 0 10px rgba(0, 240, 255, 0.1), 0 0 10px rgba(0, 240, 255, 0.2);
}

/* Utilities for Animations */
@keyframes scanningLine {
    0% { transform: translateY(-100%); opacity: 0; }
    50% { opacity: 1; }
    100% { transform: translateY(100vh); opacity: 0; }
}
.scanner-line {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(to right, transparent, var(--primary), transparent);
    box-shadow: 0 0 20px var(--primary);
    animation: scanningLine 8s linear infinite;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.3;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; text-shadow: 0 0 10px rgba(0,240,255,0.5); }
    50% { opacity: 0.8; text-shadow: 0 0 20px rgba(0,240,255,0.8), 0 0 30px rgba(0,240,255,0.4); }
}
.animate-pulse-glow {
    animation: pulseGlow 3s infinite;
}

/* Utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
