/* Variables */
:root {
    --bg-color: #020408;
    /* Deep Black/Blue */
    --primary-color: #0066FF;
    /* Electric Royal Blue */
    --secondary-color: #00B2FF;
    /* Lighter Blue Accent */
    --text-color: #F0F4F8;
    --text-muted: #94A3B8;
    --glass-bg: rgba(0, 10, 30, 0.4);
    --glass-border: rgba(0, 102, 255, 0.2);
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --font-wide: 'Syncopate', sans-serif;
    --max-width: 1200px;
    --transition-speed: 0.3s;
    --glow-primary: rgba(0, 102, 255, 0.6);
    --glow-secondary: rgba(0, 178, 255, 0.4);
}

/* Property for Rotating Border - REMOVED */

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    /* Hide default cursor */
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at 50% 50%, #051224 0%, #020408 70%);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    overflow-y: scroll;
    /* Force scrollbar */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 30px;
    left: 7%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1300px;
    height: 80px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;

    /* Hydro-Electric Flow Design */
    background:
        linear-gradient(#050505, #050505) padding-box,
        linear-gradient(90deg, transparent 20%, #0066FF 50%, #00EAFF 55%, #fff 60%, transparent 80%) border-box;

    border: 2px solid transparent;
    background-size: 200% 100%;
    animation: shimmerBorder 4s linear infinite;

    border-radius: 12px;
    backdrop-filter: blur(20px);
    z-index: 1000;

    /* Subtle focused glow */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 102, 255, 0.2);
}

@keyframes shimmerBorder {
    0% {
        background-position: 100% 0;
    }

    100% {
        background-position: -100% 0;
    }
}

/* Moving Glow Pseudo-element - REMOVED */

.logo {
    display: flex;
    align-items: center;
    height: 100%;
    z-index: 100;
}

.logo-img {
    height: 50px;
    /* Adjusted to fit navbar */
    width: auto;
    object-fit: contain;
    border-radius: 50%;
    mix-blend-mode: screen;
    /* Blends black BG */
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.logo:hover .logo-img {
    transform: scale(1.1);
    filter: drop-shadow(0 0 15px rgba(0, 102, 255, 0.6));
}

.nav-links {
    display: flex;
    gap: 50px;
    /* More space */
    margin: 0;
    padding: 0;
    height: 100%;
    align-items: center;
}

.nav-links li {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-links a {
    font-family: var(--font-heading);
    /* Outfit */
    font-size: 0.9rem;
    /* Slightly larger */
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    /* Bold */
    color: #fff;
    /* Clean White */
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    line-height: 1;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #00EAFF;
    /* Electric Cyan */
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 0 10px rgba(0, 234, 255, 0.8);
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.nav-links a:hover {
    color: #00EAFF;
    text-shadow: 0 0 15px rgba(0, 234, 255, 0.5);
    letter-spacing: 3px;
    /* Kinetic Expansion */
}

.btn-nav {
    padding: 12px 35px;
    border: 1px solid var(--primary-color);
    border-radius: 50px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
    background: transparent;
    color: #fff;
    transition: all 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 0 15px rgba(0, 102, 255, 0.2);
}

.btn-nav:hover {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 30px var(--glow-primary);
    transform: translateY(-2px);
}

/* Custom Cursor - Premium Upgrade */
.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: #fff;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    box-shadow: 0 0 10px #fff, 0 0 20px #00EAFF;
}

.cursor-outline {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(0, 234, 255, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9998;
    pointer-events: none;
    transition: width 0.3s, height 0.3s, background-color 0.3s, border-color 0.3s;
    background-color: transparent;
}

/* Cursor Hover State */
body.hovering .cursor-outline {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 234, 255, 0.1);
    border-color: #00EAFF;
    box-shadow: 0 0 30px rgba(0, 234, 255, 0.2);
    backdrop-filter: blur(2px);
}

body.hovering .cursor-dot {
    opacity: 0;
    /* Hide dot on hover for cleaner look, or keep it */
}

/* Noise Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)" opacity="0.05"/%3E%3C/svg%3E');
    pointer-events: none;
    z-index: 9000;
    opacity: 0.05;
}

/* Background Effects */
.bg-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: floatOrb 20s infinite alternate ease-in-out;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--glow-primary);
    top: -20%;
    left: 20%;
    opacity: 0.2;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--glow-secondary);
    bottom: -10%;
    right: 10%;
    opacity: 0.2;
}

.floating-shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(2px);
    z-index: -1;
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    transform: rotate(45deg);
    animation: floatRotate 15s infinite linear;
}

.shape-2 {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    top: 60%;
    right: 15%;
    animation: float 12s infinite ease-in-out;
}

.shape-3 {
    width: 150px;
    height: 150px;
    border: 1px solid rgba(0, 102, 255, 0.1);
    top: 60%;
    left: -50px;
    transform: rotate(15deg);
    animation: floatRotate 25s infinite linear;
}

.shape-4 {
    width: 400px;
    height: 400px;
    border: 1px dashed rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    top: -100px;
    right: 20%;
    animation: spin 60s infinite linear;
}

.shape-5 {
    width: 20px;
    height: 20px;
    top: 80%;
    right: 5%;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float 8s infinite ease-in-out reverse;
}

.shape-5::before,
.shape-5::after {
    content: '';
    position: absolute;
    background: rgba(0, 102, 255, 0.3);
}

.shape-5::before {
    width: 100%;
    height: 2px;
}

.shape-5::after {
    width: 2px;
    height: 100%;
}

.shape-3 {
    width: 150px;
    height: 150px;
    border-radius: 20px;
    bottom: 10%;
    left: 30%;
    transform: rotate(-15deg);
    animation: floatRotate 20s infinite linear reverse;
}

@keyframes floatOrb {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 30px) scale(1.1);
    }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-30px);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes floatRotate {
    0% {
        transform: rotate(0deg) translate(0, 0);
    }

    50% {
        transform: rotate(180deg) translate(20px, -20px);
    }

    100% {
        transform: rotate(360deg) translate(0, 0);
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-speed) ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 100px 0;
    position: relative;
    width: 100%;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 14px 40px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn:hover {
    transform: translateY(-3px) scale(1.02);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #00A3CC);
    color: #000;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
    border: none;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 60%);
    opacity: 0;
    transform: scale(0.5);
    transition: box-shadow 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
    /* correct property order */
}

.btn-primary:hover {
    box-shadow: 0 0 35px rgba(0, 212, 255, 0.6);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.2);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding-top: 60px;
    /* Space for navbar */
    overflow: hidden;
}

.hero-portal-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    z-index: 0;
    pointer-events: none;
}

.portal-ring {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid rgba(0, 102, 255, 0.1);
    position: relative;
    animation: pulseGlow 4s infinite ease-in-out;
}

.portal-ring::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--primary-color);
    border-bottom-color: var(--secondary-color);
    animation: spin 10s infinite linear;
}

.portal-ring::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 50px rgba(0, 102, 255, 0.3);
}

.portal-core {
    position: absolute;
    top: 15%;
    left: 15%;
    width: 70%;
    height: 70%;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.2), transparent 70%);
    filter: blur(20px);
    opacity: 0.8;
}

.hero-title {
    font-family: var(--font-wide);
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: 15px;
    margin-bottom: 15px;
    z-index: 1;
    position: relative;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 0 30px rgba(0, 102, 255, 0.4);
    white-space: nowrap;
    opacity: 0;
    /* Combined Animation: Reveal once, then Pulse infinitely */
    animation: cinematicReveal 3.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards, neon-pulse 5s ease-in-out 3.5s infinite;
}

/* Cinematic Reveal */
@keyframes cinematicReveal {
    0% {
        opacity: 0;
        filter: blur(20px);
        letter-spacing: 25px;
        transform: scale(1.1);
    }

    100% {
        opacity: 1;
        filter: blur(0);
        letter-spacing: 15px;
        transform: scale(1);
    }
}

/* Neon Pulse - Smooth Breathing */
@keyframes neon-pulse {

    0%,
    100% {
        text-shadow: 0 0 30px rgba(0, 102, 255, 0.2);
    }

    50% {
        text-shadow: 0 0 50px rgba(0, 102, 255, 0.5), 0 0 20px rgba(0, 102, 255, 0.3);
    }
}

/* Glitch Effect - Professional & Subtle */
/* Glitch Effect - Applied to Spans for Wave Sync */
.hero-title span {
    position: relative;
    /* Ensure span is relative for pseudos */
}

/* Only Glitch on Hover */
.hero-title span::before,
.hero-title span::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hero-title:hover span::before,
.hero-title:hover span::after {
    opacity: 0.7;
}

.hero-title span::before {
    left: 2px;
    text-shadow: -1px 0 #ff00c1;
    animation: glitch-anim-1 3s infinite linear alternate-reverse;
}

.hero-title span::after {
    left: -2px;
    text-shadow: -1px 0 #00fff9;
    animation: glitch-anim-2 4s infinite linear alternate-reverse;
}

/* Smooth, barely-there glitch for background ambiance */
@keyframes glitch-anim-1 {
    0% {
        clip: rect(20px, 9999px, 80px, 0);
    }

    20% {
        clip: rect(60px, 9999px, 10px, 0);
    }

    40% {
        clip: rect(30px, 9999px, 90px, 0);
    }

    60% {
        clip: rect(80px, 9999px, 20px, 0);
    }

    80% {
        clip: rect(10px, 9999px, 50px, 0);
    }

    100% {
        clip: rect(40px, 9999px, 70px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(70px, 9999px, 20px, 0);
    }

    20% {
        clip: rect(30px, 9999px, 90px, 0);
    }

    40% {
        clip: rect(10px, 9999px, 40px, 0);
    }

    60% {
        clip: rect(50px, 9999px, 60px, 0);
    }

    80% {
        clip: rect(90px, 9999px, 30px, 0);
    }

    100% {
        clip: rect(20px, 9999px, 10px, 0);
    }
}

/* Hero Tagline - Holographic Gradient */
.hero-tagline {
    font-size: 1.2rem;
    letter-spacing: 8px;
    /* Wider spacing for cinematic look */
    text-transform: uppercase;
    margin-bottom: 50px;
    z-index: 1;
    position: relative;
    font-weight: 600;
    opacity: 0;

    /* Gradient Text */
    background: linear-gradient(90deg, #0066FF, #00B2FF, #fff, #0066FF);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    /* Fallback handled by background-clip */
    -webkit-text-fill-color: transparent;

    animation: gradientShine 8s linear infinite, taglineFadeIn 3s ease 1.5s forwards;
}

@keyframes gradientShine {
    to {
        background-position: 200% center;
    }
}

@keyframes taglineFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* CTA Button - Sci-Fi Glass Pill */
.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    text-transform: uppercase;
    font-size: 1rem;
    letter-spacing: 3px;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    position: relative;
    transition: all 0.4s ease;

    /* Glass Style */
    padding: 15px 40px;
    border: 1px solid rgba(0, 102, 255, 0.3);
    background: rgba(0, 102, 255, 0.05);
    border-radius: 50px;
    backdrop-filter: blur(5px);
}

.link-arrow:hover {
    background: rgba(0, 102, 255, 0.2);
    border-color: #00B2FF;
    box-shadow: 0 0 30px rgba(0, 102, 255, 0.4);
    transform: translateY(-2px);
    letter-spacing: 5px;
    /* Expands on hover */
}

.link-arrow .arrow {
    transition: transform 0.3s ease;
    color: #00B2FF;
}

.link-arrow:hover .arrow {
    transform: translateX(8px);
    color: #fff;
}

.arrow {
    display: inline-block;
    /* Ensure transform works */
}

/* Stats Bar */
.stats-bar {
    position: absolute;
    bottom: 50px;
    left: 1%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    /* Glass + Gradient Border */
    background: linear-gradient(135deg, rgba(2, 4, 8, 0.8), rgba(0, 10, 30, 0.9));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 102, 255, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), inset 0 0 20px rgba(0, 102, 255, 0.1);
    padding: 25px 50px;
    border-radius: 16px;
    width: 85%;
    max-width: 1100px;
    justify-content: space-between;
    z-index: 10;
}

.stat-item {
    text-align: left;
}

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-wide);
}

.stat-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.stat-separator {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, rgba(0, 102, 255, 0.5), transparent);
}

.stat-action {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.stat-action:hover {
    opacity: 0.8;
}

.play-btn {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(0, 102, 255, 0.5);
    background: rgba(0, 102, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    padding-left: 3px;
    color: #fff;
    position: relative;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.play-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px solid rgba(0, 102, 255, 0.6);
    animation: ripple 2s infinite;
    opacity: 0;
}

.stat-action:hover .play-btn {
    background: var(--primary-color);
    box-shadow: 0 0 30px var(--glow-primary);
    transform: scale(1.1);
    border-color: transparent;
}

@keyframes ripple {
    0% {
        width: 100%;
        height: 100%;
        opacity: 0.8;
    }

    100% {
        width: 250%;
        height: 250%;
        opacity: 0;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Text Wave Animation - Restored & Boosted */
.hero-title span {
    display: inline-block;
    position: relative;
    /* Added for glitch positioning */
    animation: textWave 6s ease-in-out infinite;
    animation-delay: calc(2.5s + (0.15s * var(--i)));
    /* Overlap slightly with reveal */
    transform-origin: bottom center;
    will-change: transform, color;
}

@keyframes textWave {

    0%,
    100% {
        transform: translateY(0);
        color: #fff;
        text-shadow: none;
    }

    50% {
        transform: translateY(-15px);
        color: #fff;
        /* Keep text white, don't switch to blue */
        text-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
        /* Very subtle glow only */
    }
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 30px rgba(0, 229, 255, 0.1);
    }

    50% {
        box-shadow: 0 0 60px rgba(0, 229, 255, 0.3);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar {
        width: 100%;
        top: 0;
        border-radius: 0;
        padding: 15px;
    }

    .nav-links {
        display: none;
        /* Simple hiding for now */
    }

    .hero-title {
        font-size: 2.5rem;
        letter-spacing: 5px;
        white-space: normal;
    }

    .hero-portal-container {
        width: 300px;
        height: 300px;
    }

    .stats-bar {
        width: 95%;
        padding: 15px;
        flex-wrap: wrap;
        gap: 20px;
        bottom: 20px;
    }

    .stat-separator {
        display: none;
    }
}

/* Global Scroll Reveal Animation */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1.2s ease-out, transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Section Title - Sci-Fi Header */
.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 70px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 5px;

    /* Gradient Text */
    background: linear-gradient(90deg, #fff, #0066FF);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(0, 102, 255, 0.3);
}

/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding: 0 20px;
}

@keyframes cardFloat {
    0%, 100% {
        translate: 0 0;
    }
    50% {
        translate: 0 -15px;
    }
}

.service-card {
    background-color: #05122b;
    background-image:
        linear-gradient(rgba(0, 80, 200, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 80, 200, 0.03) 1px, transparent 1px),
        linear-gradient(145deg, #05122b, #020408);
    background-size: 20px 20px, 20px 20px, 100% 100%;
    /* Midnight Blue Depth */
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 50px 40px;
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: cardFloat 6s ease-in-out infinite;
    will-change: translate;
}

.service-card:nth-child(1) { animation-delay: 0s; }
.service-card:nth-child(2) { animation-delay: 0.5s; }
.service-card:nth-child(3) { animation-delay: 1s; }

/* Holographic Sheen Effect - Cyan Tinted */
.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            transparent,
            rgba(0, 234, 255, 0.1),
            /* Electric Cyan Shine */
            rgba(0, 102, 255, 0.2),
            /* Deep Blue Core */
            transparent);
    transform: skewX(-25deg);
    pointer-events: none;
    z-index: 2;
    transition: left 0s;
    /* Instant reset */
}

.service-card:hover::before {
    left: 150%;
    transition: left 1.5s ease-in-out;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: #00EAFF;
    /* Bright Neon Cyan Border */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 234, 255, 0.2);
}

/* Service Icon - Floating Orb */
.service-icon {
    font-size: 2.5rem;
    margin-bottom: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    transition: all 0.4s ease;
    color: #fff;
    position: relative;
    animation: iconPulse 4s infinite ease-in-out;
}

@keyframes iconPulse {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(0, 102, 255, 0.05);
    }

    50% {
        box-shadow: 0 0 20px rgba(0, 102, 255, 0.2);
    }
}

/* Inner glow for icon */
.service-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at center, rgba(0, 102, 255, 0.2), transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover .service-icon {
    background: rgba(0, 102, 255, 0.1);
    border-color: rgba(0, 102, 255, 0.4);
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(0, 102, 255, 0.3);
    animation: none;
    /* Stop pulse on hover for stable glow */
}

.service-card:hover .service-icon::before {
    opacity: 1;
}

.service-icon svg {
    width: 36px;
    height: 36px;
    transition: all 0.4s ease;
    stroke: #fff;
    /* Default white stroke */
}

.service-card:hover .service-icon svg {
    stroke: #00EAFF;
    /* Electric Cyan on hover */
    filter: drop-shadow(0 0 8px rgba(0, 234, 255, 0.6));
}

.service-title {
    font-size: 1.6rem;
    margin-bottom: 15px;
    font-weight: 700;
    color: #fff;
    transition: color 0.3s ease;
}

.service-card:hover .service-title {
    color: #fff;
    /* Keep white for premium feel, or go blue if requested */
}

.service-desc {
    color: #94A3B8;
    font-size: 1.05rem;
    line-height: 1.7;
    font-weight: 400;
}

/* Responsive Services */
@media (max-width: 900px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.portfolio-card {
    background: linear-gradient(145deg, #05122b, #020408);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: cardFloat 6s ease-in-out infinite;
    will-change: translate;
}

.portfolio-card:nth-child(1) { animation-delay: 0s; }
.portfolio-card:nth-child(2) { animation-delay: 0.5s; }
.portfolio-card:nth-child(3) { animation-delay: 1s; }

/* Holographic Sheen Effect (Same as Services) */
.portfolio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            transparent,
            rgba(0, 234, 255, 0.1),
            rgba(0, 102, 255, 0.2),
            transparent);
    transform: skewX(-25deg);
    pointer-events: none;
    z-index: 10;
    transition: left 0s;
}

.portfolio-card:hover::before {
    left: 150%;
    transition: left 1.5s ease-in-out;
}

.portfolio-card:hover {
    transform: translateY(-10px);
    border-color: #00EAFF;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 25px rgba(0, 234, 255, 0.2);
}

.portfolio-image-placeholder {
    width: 100%;
    height: 220px;
    background-color: #020408;
    background-image:
        linear-gradient(rgba(0, 102, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 102, 255, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: center;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Optional: Support for future images if added manually */
.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.portfolio-card:hover .portfolio-img {
    transform: scale(1.1);
}

/* Overlay for shine effect visibility */
.portfolio-image-placeholder::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0, 102, 255, 0.1), transparent 70%);
    z-index: 2;
    pointer-events: none;
}

.portfolio-info {
    padding: 30px;
    position: relative;
    z-index: 5;
}

.portfolio-info h3 {
    margin-bottom: 10px;
    font-size: 1.4rem;
    color: #fff;
    transition: color 0.3s ease;
}

.portfolio-card:hover .portfolio-info h3 {
    color: #00EAFF;
}

.portfolio-info p {
    color: #94A3B8;
    font-size: 1rem;
}

/* Placeholder glow effect */
.portfolio-image-placeholder::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.1), transparent 60%);
    top: -50%;
    left: -50%;
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.portfolio-card:hover .portfolio-image-placeholder::before {
    opacity: 1;
}

.portfolio-info {
    padding: 25px;
}

.portfolio-info h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    color: var(--text-color);
    font-weight: 600;
}

.portfolio-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.portfolio-note {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-style: italic;
    opacity: 0.7;
}

/* Responsive Portfolio */
@media (max-width: 900px) {
    .portfolio-grid {
        display: flex;
        overflow-x: auto;
        gap: 20px;
        padding-bottom: 20px;
        scroll-snap-type: x mandatory;
        padding-right: 20px;
        /* Space for scroll */
    }

    .portfolio-card {
        min-width: 300px;
        scroll-snap-align: start;
    }
}

/* Interactive Robot About Section */
.about-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 50px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.interactive-robot-section {
    position: relative;
    width: 100%;
    height: 650px;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Deep space aesthetic with subtle radial glow behind the robot */
    background: radial-gradient(circle at 50% 50%, rgba(0, 102, 255, 0.15) 0%, rgba(2, 4, 8, 0.9) 60%),
                linear-gradient(rgba(0, 102, 255, 0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(0, 102, 255, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 50px 50px, 50px 50px;
    border-radius: 40px;
    border: 1px solid rgba(0, 234, 255, 0.1);
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.8), 0 20px 50px rgba(0,0,0,0.5);
    overflow: hidden;
}

/* Info Panels - Premium Glassmorphism */
.info-panel {
    position: absolute;
    width: 320px;
    background: linear-gradient(145deg, rgba(10, 20, 45, 0.6), rgba(2, 5, 12, 0.8));
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(0, 234, 255, 0.1);
    border-top: 1px solid rgba(0, 234, 255, 0.3); /* Top highlight */
    border-radius: 24px;
    padding: 35px 30px;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 234, 255, 0.05);
    
    /* Animation defaults */
    opacity: 0;
    pointer-events: none;
    transition: all 0.7s cubic-bezier(0.34, 1.56, 0.64, 1); /* Enhanced bouncy snap */
    z-index: 10;
}

.info-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(0, 234, 255, 0.5), transparent 40%, transparent 60%, rgba(0, 102, 255, 0.5));
    -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;
    pointer-events: none;
}

.panel-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: inline-block;
    filter: drop-shadow(0 0 15px rgba(0, 234, 255, 0.6));
    animation: iconFloat 3s infinite ease-in-out;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.info-panel h3 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #fff, #00EAFF);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.info-panel p {
    color: #A0B2C6;
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 400;
}

/* Panel Positioning & Active States */
.panel-up {
    top: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(40px) scale(0.85);
}
.panel-up.active {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9), 0 0 50px rgba(0, 102, 255, 0.2);
}

.panel-left {
    left: 8%;
    top: 50%;
    transform: translateY(-50%) translateX(40px) scale(0.85);
}
.panel-left.active {
    opacity: 1;
    transform: translateY(-50%) translateX(0) scale(1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9), 0 0 50px rgba(0, 102, 255, 0.2);
}

.panel-right {
    right: 8%;
    top: 50%;
    transform: translateY(-50%) translateX(-40px) scale(0.85);
}
.panel-right.active {
    opacity: 1;
    transform: translateY(-50%) translateX(0) scale(1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9), 0 0 50px rgba(0, 102, 255, 0.2);
}

/* The Robot - Advanced 3D Styling */
.robot-container {
    position: relative;
    width: 240px;
    height: 350px;
    perspective: 1000px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    pointer-events: none; 
}

/* Glow aura around the robot */
.robot-container::before {
    content: '';
    position: absolute;
    bottom: 20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.15), transparent 70%);
    border-radius: 50%;
    filter: blur(30px);
    z-index: 0;
    pointer-events: none;
}

.robot {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    animation: robotHover 5s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
    z-index: 1;
    transform-style: preserve-3d;
}

@keyframes robotHover {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Robot Head - 3D Volume */
.robot-head {
    width: 140px;
    height: 110px;
    /* Create a 3D cylindrical/spherical illusion based on a flat plane */
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #020617 100%);
    border-radius: 50px 50px 25px 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 -15px 40px rgba(0, 102, 255, 0.3), inset 0 10px 20px rgba(255, 255, 255, 0.05), inset 0 -10px 20px rgba(0,0,0,0.8);
    position: relative;
    z-index: 2;
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-origin: center bottom;
    transition: transform 0.1s cubic-bezier(0.1, 0.8, 0.3, 1); 
    transform-style: preserve-3d;
}

/* Wide continuous glowing visor strip in 3D Space */
.robot-head::before {
    content: '';
    position: absolute;
    top: 45%;
    left: 10%;
    width: 80%;
    height: 35px;
    background: rgba(2, 6, 23, 0.9);
    border-radius: 20px;
    border: 1px solid rgba(0, 234, 255, 0.3);
    box-shadow: inset 0 0 15px #000, 0 0 20px rgba(0, 234, 255, 0.2);
    z-index: 1;
    /* Push visor forward in 3D space */
    transform: translateZ(30px);
}

/* Robot Eyes Container to manage 3D positioning */
.robot-eyes-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    position: absolute;
    top: 45%;
    left: 0;
    width: 100%;
    height: 35px;
    /* Push eyes further forward than the visor */
    transform: translateZ(40px);
    z-index: 3;
}

/* Robot Eyes */
.robot-eye {
    width: 28px;
    height: 10px;
    background: #00EAFF;
    border-radius: 50px;
    box-shadow: 0 0 10px #fff, 0 0 20px #00EAFF, 0 0 40px #00EAFF;
    position: relative;
    z-index: 3;
    animation: blink 5s infinite;
}

/* Add an internal glowing iris/pupil effect for extreme detail */
.robot-eye::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 4px;
    background: #fff;
    border-radius: 50px;
    opacity: 0.8;
}

@keyframes blink {
    0%, 95%, 98% { transform: scaleY(1); }
    96%, 99% { transform: scaleY(0.1); }
    100% { transform: scaleY(1); }
}

/* Robot Body - Segmented Armor Look */
.robot-body {
    width: 160px;
    height: 180px;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 60%, #020408 100%);
    border-radius: 45px 45px 70px 70px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 15px 30px rgba(255, 255, 255, 0.05), inset 0 -20px 50px rgba(0, 0, 0, 0.9), 0 25px 50px rgba(0, 0, 0, 0.7);
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-origin: center top;
    transition: transform 0.15s cubic-bezier(0.1, 0.8, 0.3, 1);
    overflow: hidden;
}

/* Decorative armor segment lines */
.robot-body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(rgba(255,255,255,0.03) 2px, transparent 2px),
        linear-gradient(90deg, transparent 48%, rgba(255,255,255,0.05) 49%, rgba(255,255,255,0.05) 51%, transparent 52%);
    background-size: 100% 40px, 100% 100%;
    pointer-events: none;
    z-index: 0;
}

/* Iron Man Arc Reactor Style Core */
.robot-core-glow {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle, #fff 0%, #00EAFF 30%, #0066FF 70%, #0f172a 100%);
    border: 3px solid rgba(0, 234, 255, 0.4);
    box-shadow: 0 0 30px rgba(0, 234, 255, 0.6), inset 0 0 15px rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 10;
    animation: corePulse 2s infinite alternate cubic-bezier(0.4, 0, 0.6, 1);
}

/* Internal core ring */
.robot-core-glow::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 2px dashed rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: spin 10s linear infinite;
}

@keyframes corePulse {
    0% { transform: scale(0.95); opacity: 0.8; box-shadow: 0 0 20px rgba(0, 234, 255, 0.4); }
    100% { transform: scale(1.05); opacity: 1; box-shadow: 0 0 50px rgba(0, 234, 255, 0.8), 0 0 20px #fff; }
}

.robot-shadow {
    position: absolute;
    bottom: -40px;
    width: 140px;
    height: 25px;
    background: radial-gradient(ellipse at center, rgba(0, 234, 255, 0.2) 0%, rgba(0, 0, 0, 0.6) 40%, transparent 70%);
    border-radius: 50%;
    filter: blur(5px);
    animation: shadowPulse 5s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

@keyframes shadowPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(0.7); opacity: 0.2; }
}

/* Responsive constraints */
@media (max-width: 1024px) {
    .interactive-robot-section {
        height: 700px;
    }
    .panel-left, .panel-right {
        top: auto;
        bottom: 40px;
        transform: translateY(40px) scale(0.85);
    }
    .panel-left { left: 5%; }
    .panel-right { right: 5%; }
    
    .panel-up { top: 30px; }
    
    .panel-left.active, .panel-right.active, .panel-up.active {
        transform: translateY(0) scale(1);
    }
}

/* Contact Section */
.contact-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-color);
    font-family: var(--font-main);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
}

.submit-btn {
    width: 100%;
    margin-top: 10px;
}

.contact-extra {
    margin-top: 30px;
    text-align: center;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #25D366;
    /* WhatsApp Green */
    font-weight: 600;
    transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.whatsapp-btn:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Footer */
.footer {
    padding: 50px 0;
    border-top: 1px solid var(--glass-border);
    margin-top: 50px;
    text-align: center;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.social-links {
    display: flex;
    gap: 20px;
    margin: 10px 0;
}

.social-icon {
    width: 24px;
    height: 24px;
    background: #333;
    /* Placeholder for icon */
    border-radius: 50%;
    display: block;
    transition: background-color 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.social-icon:hover {
    background-color: var(--primary-color);
}

.copyright {
    color: #666;
    font-size: 0.8rem;
    margin-top: 10px;
}