/* Global Styles */
* {
    box-sizing: border-box;
}

:root {
    /* Using a dark theme base */
    --bg-color: #0a0a0a;
    --card-bg: #141414;
    --text-color: #e0e0e0;
    --text-muted: #a0a0a0;

    /* Green and Red Palette - Premium Shades */
    --primary-green: #00dc82;
    /* Vibrant modern green */
    --primary-red: #ff3e3e;
    /* Vibrant modern red */

    --green-glow: rgba(0, 220, 130, 0.4);
    --red-glow: rgba(255, 62, 62, 0.4);

    --gradient-green: linear-gradient(135deg, #00dc82 0%, #00a862 100%);
    --gradient-red: linear-gradient(135deg, #ff3e3e 0%, #cc0000 100%);
    --gradient-mix: linear-gradient(90deg, #ff3e3e 0%, #00dc82 100%);

    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s ease;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--gradient-mix);
    z-index: 9999;
    box-shadow: 0 0 10px var(--red-glow);
    transition: width 0.1s ease;
}

/* Global Photo Box Styles */
.photo-section {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 30px;
    margin: 60px 0;
}

.photo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.photo-box {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: var(--transition);
}

.photo-box:hover {
    transform: scale(1.02);
    border-color: var(--primary-green);
    box-shadow: 0 30px 60px rgba(0, 220, 130, 0.2);
}

.photo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.photo-box:hover img {
    transform: scale(1.1);
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: #fff;
    transform: translateY(100%);
    transition: var(--transition);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.photo-box:hover .photo-overlay {
    transform: translateY(0);
}

.photo-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Centered Inset */
    width: 140px;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.8));
    z-index: 10;
    transition: var(--transition);
    opacity: 0.8;
}

.photo-box:hover .photo-logo {
    transform: translate(-50%, -60%) scale(1.1);
    opacity: 1;
    filter: drop-shadow(0 0 30px rgba(0, 220, 130, 0.6));
}

.photo-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.photo-content p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .photo-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    .photo-box {
        order: -1;
        aspect-ratio: 16/9;
    }
    .photo-content h2 {
        font-size: 1.8rem;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Syne', sans-serif;
    line-height: 1.2;
}

/* Scroll Reveal Base */
.reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Shimmer Text Effect */
.shimmer-text {
    background: linear-gradient(90deg, 
        rgba(255,255,255,0) 0%, 
        rgba(255,255,255,0.8) 50%, 
        rgba(255,255,255,0) 100%);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

/* Reveal Variations */
.reveal-left {
    transform: translateX(-30px);
}

.reveal-right {
    transform: translateX(30px);
}

.reveal-active-left, .reveal-active-right {
    transform: translateX(0);
}

/* Delay Utilities */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

/* Premium Shine Effect for any element */
.premium-shine {
    position: relative;
    overflow: hidden;
}

.premium-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.03),
        transparent
    );
    transform: rotate(45deg);
    transition: 0.5s;
    pointer-events: none;
}

.premium-shine:hover::after {
    left: 100%;
    top: 100%;
}

@media (max-width: 768px) {
    section {
        padding: 50px 0 !important;
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography Utility */
.highlight-green {
    color: var(--primary-green);
    text-shadow: 0 0 20px var(--green-glow);
}

.highlight-red {
    color: var(--primary-red);
    text-shadow: 0 0 20px var(--red-glow);
}

.text-gradient {
    background: var(--gradient-mix);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Page Header Utility */
.page-header {
    padding: 150px 0 80px;
    background: radial-gradient(circle at top right, rgba(0, 220, 130, 0.1), transparent 40%),
        radial-gradient(circle at bottom left, rgba(255, 62, 62, 0.1), transparent 40%);
    text-align: center;
}

@media (max-width: 768px) {
    .page-header {
        padding: 100px 0 40px;
    }
}

.btn-wrap {
    position: relative;
    display: inline-block;
}

.btn-wrap canvas {
    position: absolute;
    pointer-events: none;
    z-index: 10;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.btn-primary {
    background: var(--gradient-green);
    color: #000;
    border: none;
    box-shadow: 0 4px 15px var(--green-glow);
}

.btn-primary:hover,
.btn-primary.active {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--red-glow);
    background: var(--gradient-red);
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    border-bottom: none;
}

.btn-primary span {
    position: relative;
    z-index: 2;
}

.btn-secondary {
    --bc: var(--primary-red);
    background: transparent;
    color: var(--bc);
    border: 2px solid var(--bc);
    box-shadow: 0 4px 15px rgba(255, 62, 62, 0.1);
}

.btn-secondary:hover {
    background: var(--bc);
    color: #fff;
    box-shadow: 0 6px 20px rgba(255,255,255,0.2), 0 0 0 4px rgba(255, 255, 255, 0.1);
}

/* Header */
/* Futuristic Floating Header */
.header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    height: 85px; /* Locked height for consistency */
    z-index: 1000;
    background: rgba(15, 15, 15, 0.7);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    padding: 0 30px; /* Locked padding for consistency */
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: none; /* Removed moving animation as per previous request */
    display: flex;
    align-items: center;
}

.header.scrolled {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    height: 85px; /* Locked height for consistency */
    z-index: 1000;
    background: rgba(15, 15, 15, 0.9); /* Slightly more opaque on scroll */
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    padding: 0 30px; /* Locked padding for consistency */
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: none; /* Removed moving animation */
    display: flex;
    align-items: center;
}

/* Nav-up logic removed to support static header request */

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    z-index: 2;
    height: 100%; /* Fill the 85px header */
}

.logo-img {
    height: 85px;   /* Match strictly with header height */
    width: auto;
    object-fit: contain;
    cursor: pointer;
    transition: transform 0.3s ease;
    margin: 0;      /* Flush alignment, no sticking out */
    display: block;
    position: relative;
    z-index: 10;
}

.logo:hover .logo-img {
    transform: scale(1.05);
}

/* Liquid Navigation */
.nav {
    position: relative;
    display: flex;
    align-items: center;
}

/* ===== QMEX NAVBAR - EQUAL SIZE FIX ===== */
.nav-list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative; /* Support for absolute marker */
}

/* Dynamic Sliding Marker */
.nav-marker {
    position: absolute;
    top: 0;
    left: 0;
    width: 110px; /* Locked to button size */
    height: 42px;  /* Locked to button size */
    background: linear-gradient(135deg, #e63329, #c22b22);
    border-radius: 50px;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 20px rgba(230, 51, 41, 0.4);
}

.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    /* ✅ FIXED EQUAL SIZE FOR ALL NAV ITEMS */
    min-width: 110px;
    height: 42px;
    padding: 0 20px;

    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 50px;
    white-space: nowrap;

    /* Default state */
    color: #ffffff;
    background: transparent;
    border: none;

    box-sizing: border-box;
    transition: color 0.3s ease;
    position: relative;
    z-index: 2; /* Stay above marker */
}

/* ✅ Active Page Style (Marker handles the pill) */
.nav-link.active {
    color: #ffffff !important;
}

/* ✅ Contact Us - GREEN pill */
.nav-link.btn-primary {
    background-color: #00c853 !important;
    color: #ffffff !important;
    min-width: 110px; /* Force equal size */
    height: 42px;    /* Force equal height */
    margin-left: 0;  /* Standardize gap */
}

/* ✅ Hover effect for plain links */
.nav-link:not(.active):not(.btn-primary):hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}


/* Hamburger Menu (Mobile) */
.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: var(--text-color);
    transition: var(--transition);
}

/* Hero Section */
/* Hero Section - Premium Overhaul */
/* Hero Section - Premium Overhaul */
/* Hero Section - Premium Overhaul */
/* Hero Section - Premium Abstract */
.hero {
    padding: 180px 0 100px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: #050505;
}

/* Premium Animated Background */
.hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 220, 130, 0.15), transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(255, 62, 62, 0.15), transparent 40%);
    animation: aurora 15s ease-in-out infinite alternate;
    z-index: 0;
}

/* Video Background */
/* Video Background Removed */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Start with a clean slate or subtle gradient if needed */
    background: radial-gradient(circle at center, rgba(0, 220, 130, 0.05), transparent 70%);
    z-index: 0;
}

@keyframes aurora {
    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(5deg) scale(1.1);
    }

    100% {
        transform: rotate(-5deg) scale(1.05);
    }
}

@keyframes gridMove {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0) translateZ(-200px);
    }

    100% {
        transform: perspective(500px) rotateX(60deg) translateY(40px) translateZ(-200px);
    }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
    padding: 0 20px;
}

.hero-content {
    text-align: left;
    opacity: 0;
    animation: fadeUp 1s ease-out forwards;
}

@media (max-width: 991px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content {
        text-align: center;
    }
}

.hero-3d-container {
    width: 100%;
    height: 500px;
    position: relative;
    cursor: grab;
    z-index: 10;
    opacity: 0;
    animation: fadeUp 1s ease-out 0.3s forwards;
}

.hero-3d-container:active {
    cursor: grabbing;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1.1;
    margin-bottom: 25px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

/* Shimmer Text Effect */
.shimmer-text {
    background: linear-gradient(90deg,
            var(--primary-green) 0%,
            #fff 50%,
            var(--primary-green) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 5s linear infinite;
    text-shadow: none;
}

@keyframes shimmer {
    to {
        background-position: 200% center;
    }
}

.hero-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 40px; /* Left align */
    max-width: 600px;
    line-height: 1.6;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

@media (max-width: 991px) {
    .hero-subtitle {
        margin: 0 auto 40px; /* Center align */
    }
}

.hero-buttons {
    display: flex;
    justify-content: flex-start;
    /* Left align */
    gap: 20px;
}

@media (max-width: 991px) {
    .hero-buttons {
        justify-content: center;
    }
}

/* Hero Visual Area */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
    opacity: 0;
    animation: fadeUp 1s ease-out 0.3s forwards;
}

.hero-img-main {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s ease;
}

.hero-visual:hover .hero-img-main {
    transform: scale(1.02) rotateY(5deg);
}

/* Refined Glass Cards */
.glass-card {
    position: absolute;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 15px 25px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #fff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    z-index: 3;
    transition: all 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px) scale(1.05);
    background: rgba(30, 30, 30, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
}

.glass-card:first-child {
    top: 20%;
    left: 0;
    animation: floatCard 7s ease-in-out infinite;
}

.card-2 {
    bottom: 20%;
    right: 0;
    animation: floatCard 6s ease-in-out 1s infinite;
}

.glass-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-25deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }

    20% {
        left: 200%;
    }

    100% {
        left: 200%;
    }
}

.icon-float {
    font-size: 1.5rem;
    padding: 10px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

@keyframes floatCard {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Background Glowing Orbs */
.glowing-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    opacity: 0.4;
    transition: all 1s ease;
}

.orb-red {
    width: 300px;
    height: 300px;
    background: var(--primary-red);
    top: 10%;
    right: 10%;
    animation: pulseGlow 8s infinite alternate;
}

.orb-green {
    width: 400px;
    height: 400px;
    background: var(--primary-green);
    bottom: -10%;
    left: -10%;
    animation: pulseGlow 10s infinite alternate-reverse;
}

@keyframes pulseGlow {
    0% {
        opacity: 0.3;
        transform: scale(1);
    }

    100% {
        opacity: 0.5;
        transform: scale(1.1);
    }
}

.icon-float {
    font-size: 1.5rem;
}

.glass-card:first-child .icon-float {
    color: var(--primary-green);
}

.card-2 .icon-float {
    color: var(--primary-red);
}

/* Services Section */


.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-desc {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Premium Star Progress Tracker --- */
.star-tracker-container {
    position: fixed;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    height: 50vh;
    width: 4px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.02);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.star-tracker-container.visible {
    opacity: 1;
    pointer-events: auto;
}

.tracker-line-fill {
    position: absolute;
    top: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(180deg, var(--primary-red) 0%, var(--primary-green) 100%);
    box-shadow: 0 0 15px rgba(0, 220, 130, 0.4);
    border-radius: 20px;
    transition: height 0.1s ease-out;
}

.star-moving-wrap {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: top 0.1s ease-out;
}

.star-glow-effect {
    position: absolute;
    width: 32px;
    height: 32px;
    background: rgba(255, 50, 50, 0.28);
    border-radius: 50%;
    pointer-events: none;
    z-index: 8;
    animation: glowPulse 1.6s ease-in-out infinite;
    transition: background 0.4s ease;
}

@keyframes idle {
    0%, 100% { transform: rotate(0deg) scale(1); }
    30% { transform: rotate(13deg) scale(1.12); }
    70% { transform: rotate(-11deg) scale(0.91); }
}

@keyframes goDown {
    0% { transform: rotate(-22deg) scale(1.3) translateY(-5px); }
    55% { transform: rotate(8deg) scale(0.88) translateY(2px); }
    100% { transform: rotate(0deg) scale(1) translateY(0); }
}

@keyframes goUp {
    0% { transform: rotate(22deg) scale(1.3) translateY(5px); }
    55% { transform: rotate(-8deg) scale(0.88) translateY(-2px); }
    100% { transform: rotate(0deg) scale(1) translateY(0); }
}

@keyframes glowPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(2.2); opacity: 0.1; }
}

@keyframes hintPulse {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.7; }
}

.premium-star-svg {
    width: 32px;
    height: 32px;
    fill: url(#starGradient);
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
    animation: idle 2.2s ease-in-out infinite;
    transform-origin: center;
}


.star-hint {
    position: absolute;
    right: 25px;
    top: 50%;
    transform: rotate(90deg) translateY(-50%);
    white-space: nowrap;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-family: 'Syne', sans-serif;
    animation: hintPulse 2s ease-in-out infinite;
}

@media (max-width: 1100px) {
    .star-tracker-container {
        right: 20px;
        height: 40vh;
    }
}

@media (max-width: 768px) {
    .star-tracker-container {
        display: none;
    }
}

/* --- History Page Specific Styles --- */
.history-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.timeline-item {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    transition: var(--transition);
}

.timeline-item:hover {
    transform: translateY(-8px);
    border-color: var(--primary-green);
    box-shadow: 0 20px 50px rgba(0, 220, 130, 0.15);
}

.timeline-date {
    font-family: 'Syne', sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* --- Service Row Grid System --- */
.service-row {
    display: flex;
    align-items: center;
    gap: 80px;
    margin-bottom: 100px;
    transition: var(--transition);
}

.service-row:nth-child(even) {
    flex-direction: row-reverse;
}

.service-info {
    flex: 1;
}

.service-visual {
    flex: 1;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16 / 10;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.visual-accent-red::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 50px rgba(255, 62, 62, 0.2);
    pointer-events: none;
}

.visual-accent-green::after {
    content: '';
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 50px rgba(0, 220, 130, 0.2);
    pointer-events: none;
}

.service-row:hover .service-visual {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-green);
    box-shadow: 0 40px 80px rgba(0, 220, 130, 0.2);
}

/* Feature List Styles */
.feature-list {
    margin: 25px 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.feature-list-red i { color: var(--primary-red); }
.feature-list-green i { color: var(--primary-green); }

/* --- Stats Boxes --- */
.stat-box {
    transition: var(--transition);
}

.stat-box:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: var(--primary-green) !important;
}

/* --- Responsive Overrides for New Components --- */
@media (max-width: 992px) {
    .service-row {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .service-row {
        flex-direction: column !important;
        text-align: center;
        margin-bottom: 60px;
    }
    
    .service-info {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .feature-list {
        align-items: center;
    }
    
    .history-timeline {
        grid-template-columns: 1fr;
    }
    
    .stats-section div {
        gap: 20px !important;
    }
    
    .stat-box {
        width: 100% !important;
        max-width: 300px;
    }
}

/* Core Values Grid Styles (Global) */
.val-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 40px;
}

.val-card {
    position: relative;
    border-radius: 18px;
    padding: 36px 24px 38px;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #111313;
    border: 1px solid #1c2020;
    cursor: pointer;
    overflow: hidden;
    opacity: 0;
    text-align: center;
    animation: val-rise .7s cubic-bezier(.22, 1, .36, 1) forwards;
    transition: box-shadow .4s, border-color .4s;
}

.val-card:nth-child(1) { animation-delay: .06s; }
.val-card:nth-child(2) { animation-delay: .16s; }
.val-card:nth-child(3) { animation-delay: .26s; }
.val-card:nth-child(4) { animation-delay: .36s; }

@keyframes val-rise {
    from { opacity: 0; transform: perspective(900px) translateY(32px); }
    to { opacity: 1; transform: perspective(900px) translateY(0); }
}

.val-card:hover { box-shadow: 0 28px 72px rgba(0, 0, 0, .8); }

.val-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 19px;
    background: linear-gradient(135deg, var(--a), transparent 55%);
    opacity: 0;
    z-index: -1;
    transition: opacity .4s;
}

.val-card:hover::before { opacity: 1; }

.val-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--a), transparent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .55s cubic-bezier(.22, 1, .36, 1);
}

.val-card:hover .val-bar { transform: scaleX(1); }

.val-cn {
    position: absolute;
    width: 14px;
    height: 14px;
    opacity: 0;
    transition: opacity .3s, transform .3s;
    z-index: 2;
}

.val-cn-tl {
    top: 12px;
    left: 12px;
    border-top: 1.5px solid var(--a);
    border-left: 1.5px solid var(--a);
    transform: translate(-4px, -4px);
}

.val-cn-br {
    bottom: 12px;
    right: 12px;
    border-bottom: 1.5px solid var(--a);
    border-right: 1.5px solid var(--a);
    transform: translate(4px, 4px);
}

.val-card:hover .val-cn { opacity: 1; transform: translate(0, 0); }

.val-shine {
    position: absolute;
    inset: 0;
    border-radius: 18px;
    pointer-events: none;
    z-index: 5;
}

canvas.val-pts {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transition: opacity .4s;
}

.val-card:hover canvas.val-pts { opacity: 1; }

.val-icon-stage {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--ib);
    border: 1px solid var(--ab);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    position: relative;
    z-index: 2;
    transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), box-shadow .35s, border-color .3s;
}

.val-card:hover .val-icon-stage {
    transform: translateY(-7px) scale(1.13);
    box-shadow: 0 14px 36px var(--ag);
    border-color: var(--a);
}

svg.val-ico { width: 32px; height: 32px; overflow: visible; }

.val-title {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
    transition: color .3s;
}

.val-card:hover .val-title { color: var(--a); }

.val-desc {
    font-size: .84rem;
    font-weight: 300;
    color: #4a5e50;
    line-height: 1.85;
    position: relative;
    z-index: 2;
    transition: color .3s;
}

.val-card:hover .val-desc { color: #88a090; }

/* Animation Keyframes for Specific Icons */
@keyframes val-bulb-glow { 0%, 100% { opacity: .15 } 50% { opacity: .45 } }
@keyframes val-bulb-bob { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-4px) } }
@keyframes val-ray-spin { 0% { transform: rotate(0deg) } 100% { transform: rotate(360deg) } }
@keyframes val-filament-bright { 0%, 100% { opacity: .5 } 50% { opacity: 1 } }
.val-ico-bulb-g { animation: val-bulb-bob 2s ease-in-out infinite; }
.val-ico-bulb-fill { animation: val-bulb-glow 1.5s ease-in-out infinite; }
.val-ico-rays { animation: val-ray-spin 4s linear infinite; transform-origin: 16px 14px; }
.val-ico-filament { animation: val-filament-bright 1s ease-in-out infinite; }

@keyframes val-shake-shake { 0%, 100% { transform: rotate(0deg) } 20% { transform: rotate(-8deg) } 40% { transform: rotate(8deg) } 60% { transform: rotate(-5deg) } 80% { transform: rotate(3deg) } }
@keyframes val-pulse-ring-hs { 0% { r: 12; opacity: .5 } 100% { r: 22; opacity: 0 } }
@keyframes val-trust-star { 0%, 100% { opacity: 0; transform: scale(0) } 50% { opacity: 1; transform: scale(1) } }
.val-ico-hs-g { animation: val-shake-shake 2.2s ease-in-out infinite; transform-origin: 16px 16px; }
.val-ico-hs-ring { animation: val-pulse-ring-hs 2s ease-out infinite; }
.val-ico-hs-ring2 { animation: val-pulse-ring-hs 2s ease-out infinite .6s; }
.val-ico-ts1 { animation: val-trust-star 2s ease-in-out infinite .3s; }
.val-ico-ts2 { animation: val-trust-star 2s ease-in-out infinite .9s; }

@keyframes val-gem-spin { 0%, 100% { transform: rotate(0deg) scale(1) } 25% { transform: rotate(-8deg) scale(1.08) } 75% { transform: rotate(8deg) scale(1.08) } }
@keyframes val-gem-shine { 0%, 100% { opacity: 0 } 50% { opacity: .8 } }
@keyframes val-gem-sparkle { 0%, 100% { opacity: 0; transform: scale(0) } 50% { opacity: 1; transform: scale(1) } }
.val-ico-gem-g { animation: val-gem-spin 2.4s ease-in-out infinite; transform-origin: 16px 16px; }
.val-ico-gem-shine { animation: val-gem-shine 1.5s ease-in-out infinite; }
.val-ico-sp1 { animation: val-gem-sparkle 1.8s ease-in-out infinite .1s; }
.val-ico-sp2 { animation: val-gem-sparkle 1.8s ease-in-out infinite .6s; }
.val-ico-sp3 { animation: val-gem-sparkle 1.8s ease-in-out infinite 1.1s; }

@keyframes val-team-bounce { 0%, 100% { transform: translateY(0) } 33% { transform: translateY(-5px) } 66% { transform: translateY(-3px) } }
@keyframes val-person-l { 0%, 100% { transform: translateX(0) } 50% { transform: translateX(-2px) } }
@keyframes val-person-r { 0%, 100% { transform: translateX(0) } 50% { transform: translateX(2px) } }
@keyframes val-connect-line { 0%, 100% { opacity: .2 } 50% { opacity: .8 } }
@keyframes val-heart-pop { 0%, 100% { transform: scale(0); opacity: 0 } 50% { transform: scale(1); opacity: 1 } }
.val-ico-tm-c { animation: val-team-bounce 2s ease-in-out infinite; transform-origin: 16px 20px; }
.val-ico-tm-l { animation: val-person-l 2s ease-in-out infinite; transform-origin: 8px 20px; }
.val-ico-tm-r { animation: val-person-r 2s ease-in-out infinite; transform-origin: 24px 20px; }
.val-ico-tm-line { animation: val-connect-line 2s ease-in-out infinite; }
.val-ico-tm-heart { animation: val-heart-pop 2s ease-in-out infinite .5s; transform-origin: 16px 6px; }

/* Base Neon Style (Themed via variables) */
.send-btn {
  --btn-c: #3dff8a; /* default green */
  --btn-bg: #050e07;
  
  position: relative;
  padding: 18px 48px;
  border-radius: 60px;
  border: none;
  cursor: pointer;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .04em;
  overflow: hidden;
  outline: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;

  /* Neon Outline Style */
  background: var(--btn-bg);
  color: var(--btn-c);
  box-shadow:
    0 0 0 2px var(--btn-c),
    0 0 20px rgba(var(--btn-rgb, 61, 255, 138), 0.4),
    inset 0 1px 0 rgba(255,255,255,.1);

  transition:
    background .45s cubic-bezier(.22,1,.36,1),
    color .35s ease,
    box-shadow .45s ease,
    transform .2s cubic-bezier(.34,1.56,.64,1),
    letter-spacing .3s ease;
}

/* Button Variants */
.send-btn.send-btn-green {
  --btn-c: #3dff8a;
  --btn-bg: #050e07;
  --btn-rgb: 61, 255, 138;
}

.send-btn.send-btn-red {
  --btn-c: #ff3e3e;
  --btn-bg: #0e0505;
  --btn-rgb: 255, 62, 62;
}

.send-btn:hover {
  background: var(--btn-bg);
  color: #fff;
  letter-spacing: .08em;
  transform: translateY(-3px) scale(1.04);
  box-shadow:
    0 0 0 2px var(--btn-c),
    0 0 32px rgba(var(--btn-rgb, 61, 255, 138), 0.7),
    0 0 80px rgba(var(--btn-rgb, 61, 255, 138), 0.3),
    0 12px 32px rgba(0,0,0,.6);
}
.send-btn:hover::before { left: 130%; }
.send-btn:hover::after  { opacity: 1; }

.send-btn .btn-text {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: gap .3s ease;
}
.send-btn:hover .btn-text { gap: 14px; }

.send-btn .btn-arr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px; height: 18px;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 11px;
  opacity: 0;
  transform: translateX(-8px);
  transition:
    opacity .3s ease .1s,
    transform .3s cubic-bezier(.34,1.56,.64,1) .1s;
}
.send-btn:hover .btn-arr {
  opacity: 1;
  transform: translateX(0);
}

.send-btn:active {
  transform: translateY(0) scale(.98);
  box-shadow:
    0 0 0 2px #3dff8a,
    0 0 12px #3dff8a66,
    0 4px 12px rgba(0,0,0,.5);
}

.btn-wrap {
  position: relative;
  display: inline-block;
}
.btn-wrap canvas {
  position: absolute;
  top: 50%; 
  left: 50%;
  transform: translate(-50%, -50%); /* Perfectly centered */
  pointer-events: none;
  width: 500px;  /* INCREASED: Massive canvas width to prevent clipping */
  height: 300px; /* INCREASED: Massive canvas height so bubbles can rise far */
  z-index: 10;
}

/* Services Grid (Replaced by Slider) */
.services-slider,
.hire-slider {
    width: 100%;
    padding-bottom: 60px;
    /* Space for pagination */
    overflow: hidden;
}

.swiper-slide {
    height: auto;
    display: flex;
    justify-content: center;
}

.swiper-slide .service-card {
    width: 100%;
    height: 100%;
    margin: 0;
    /* Swiper handles spacing */
}

/* Swiper Pagination */
.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.3);
    opacity: 1;
    width: 10px;
    height: 10px;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background: var(--primary-green);
    width: 25px;
    border-radius: 5px;
    box-shadow: 0 0 10px var(--green-glow);
}

/* Swiper Navigation Arrows - Removed */

/* Premium Glassmorphic Service Cards */
.service-card {
    background: rgba(20, 20, 20, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 35px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Subtle border */
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.05), transparent 60%);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* UNIQUE PREMIUM HOLOGRAPHIC 3D CARD */
.service-card {
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    perspective: 1500px;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    /* Continuous floating effect */
    animation: floatCard 6s ease-in-out infinite;
}

@keyframes floatCard {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.service-card:hover {
    transform: perspective(1500px) rotateX(15deg) rotateY(10deg) scale(1.08) translateY(-20px);
    background: linear-gradient(135deg, rgba(40, 40, 40, 0.95), rgba(10, 10, 10, 0.98));
    z-index: 100;
    /* Neon Border Pulse */
    animation: none;
    /* Stop floating on hover */
    box-shadow:
        0 50px 100px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255, 255, 255, 0.5),
        inset 0 0 40px rgba(255, 255, 255, 0.1);
}

/* Dynamic Holographic Overlay */
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(125deg, transparent 0%, rgba(255, 255, 255, 0.05) 30%, transparent 35%, transparent 100%);
    transform: translateX(-100%);
    transition: transform 0.6s;
    z-index: 2;
    pointer-events: none;
}

.service-card:hover::before {
    transform: translateX(100%);
    transition: transform 0.8s ease-in-out;
}


.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: skewX(-25deg);
    transition: left 0.5s ease;
    pointer-events: none;
    opacity: 0;
}

.service-card:hover::after {
    left: 150%;
    opacity: 1;
    transition: left 0.7s ease;
}

.service-card:hover::before {
    opacity: 1;
}


/* NEON PULSE SHADOWS */
.service-card:has(.red-icon):hover {
    box-shadow:
        0 30px 60px rgba(255, 0, 0, 0.3),
        0 0 20px rgba(255, 0, 0, 0.4),
        0 0 0 1px rgba(255, 62, 62, 0.6),
        inset 0 0 30px rgba(255, 0, 0, 0.15);
    border-color: rgba(255, 62, 62, 0.8);
}

.service-card:has(.green-icon):hover {
    box-shadow:
        0 30px 60px rgba(0, 255, 130, 0.3),
        0 0 20px rgba(0, 255, 130, 0.4),
        0 0 0 1px rgba(0, 220, 130, 0.6),
        inset 0 0 30px rgba(0, 255, 130, 0.15);
    border-color: rgba(0, 220, 130, 0.8);
}

/* Inner Content 3D Pop-out */
.service-card .icon-box,
.service-card h3,
.service-card p,
.service-card .learn-more {
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    transform: translateZ(0);
    /* Prepare for 3D */
}

.service-card:hover .icon-box {
    transform: translateZ(50px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    /* Icon shadow */
}

.service-card:hover h3 {
    transform: translateZ(30px);
}

.service-card:hover p {
    transform: translateZ(20px);
}

.service-card:hover .learn-more {
    transform: translateZ(40px);
}

.icon-box {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.red-icon {
    background: rgba(255, 62, 62, 0.1);
    color: var(--primary-red);
}

.green-icon {
    background: rgba(0, 220, 130, 0.1);
    color: var(--primary-green);
}



.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.learn-more {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.learn-more i {
    transition: margin-left 0.3s ease;
}

.service-card:hover .learn-more i {
    margin-left: 5px;
}

/* Services Section */
/* Services Section */
.services,
.hire {
    padding: 100px 0;
    /* Reverting to dark/transparent theme */
    background-color: transparent;
}


/* About Section */
.about {
    padding: 100px 0;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.image-wrapper {
    position: relative;
    height: 400px;
    background: rgba(20, 20, 20, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: floatCard 6s ease-in-out infinite;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.abstract-shape {
    width: 150px;
    height: 150px;
    background: linear-gradient(45deg, var(--primary-red), var(--primary-green));
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morph 6s ease-in-out infinite;
    filter: blur(20px);
    opacity: 0.8;
    transform: scale(2);
}

@keyframes morph {
    0% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }

    50% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
        background: linear-gradient(135deg, var(--primary-green), var(--primary-red));
    }

    100% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    }
}

.feature-list {
    margin: 30px 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.feature-list i {
    color: var(--primary-green);
}

.stats {
    display: flex;
    gap: 40px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
}

.stat-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: #0d0d0d;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    background: rgba(20, 20, 20, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.contact-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--gradient-mix);
}

.contact-info h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.contact-info>p {
    color: var(--text-muted);
    margin-bottom: 40px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.info-item i {
    color: var(--primary-red);
    font-size: 1.2rem;
    margin-top: 5px;
}

.social-links {
    margin-top: 40px;
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-green);
    color: #000;
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    background: #0a0a0a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    font-family: inherit;
    transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    background: #111;
}

.contact-form select {
    width: 100%;
    padding: 15px;
    background: rgba(0, 0, 0, 0.678);
    border: 1px solid rgba(7, 0, 0, 0.1);
    color: #9b9393;
    border-radius: 8px;
    font-family: inherit;
    cursor: pointer;
    outline: none;
}

.contact-form select option {
    background: #1a1a1a;
    color: #fff;
    padding: 10px;
}

/* Footer */
.footer {
    padding: 50px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-brand h2 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary-green);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
    animation: fadeUp 1s ease-out 1s forwards;
    z-index: 2;
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: #fff;
    border-radius: 2px;
    animation: scrollMouse 2s infinite;
}

.scroll-indicator p {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

@keyframes scrollMouse {
    0% {
        transform: translate(-50%, 0);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, 15px);
        opacity: 0;
    }
}

/* Media Queries */
@media (max-width: 1024px) {
    .val-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 20px;
    }

    .logo-img {
        height: 65px;
        margin: -10px 0;
    }

    .nav-list {
        position: fixed;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        padding: 40px 0;
        transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        border-radius: 20px;
        gap: 20px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-marker {
        display: none;
    }

    .nav-list.active {
        right: 0;
    }

    .hamburger {
        display: block;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 60px;
    }

    .hero-title {
        font-size: 2.5rem !important;
    }

    .hero-subtitle {
        font-size: 1rem !important;
    }

    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        gap: 15px;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        padding: 30px;
    }

    .val-grid {
        grid-template-columns: 1fr;
    }

    .history-timeline {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .service-row {
        flex-direction: column !important;
        text-align: center;
        gap: 30px;
        margin-bottom: 60px;
    }

    .service-visual {
        height: 300px;
        width: 100%;
    }

    #slide-in-image {
        width: 200px;
        height: 240px;
        bottom: 10px;
        left: 10px;
    }

    .thinking-character {
        width: 150px !important;
    }

    .thought-bubble {
        width: 80px;
        height: 80px;
    }

    .btn-wrap canvas {
        width: 240px;
        height: 120px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem !important;
    }

    .section-title {
        font-size: 1.8rem !important;
    }

    .logo-img {
        height: 50px;
    }

    .header {
        padding: 5px 15px;
    }

    #slide-in-image {
        display: none; /* Hide character widget on very small screens to save space */
    }
}


/* Featured Section */
/* Featured Section Video Background */
.section-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.featured-section {
    position: relative;
    padding: 100px 0;
    min-height: 500px;
}

.featured-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    /* Lighter overlay for brighter video */
    z-index: 1;
    /* Above video */
}

/* Ensure content is above overlay */
.featured-container {
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 300px;
}

/* Snake Light Animation */

/* Thinking Animation */
@keyframes thinkingFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-8px) rotate(2deg);
    }
}

.thinking-gesture-active {
    animation: thinkingFloat 3s ease-in-out infinite;
    transform-origin: center bottom;
    display: block;
}

/* Service Detail Rows (Global) */
.services-detailed {
    padding: 80px 0;
    background-color: #0d0d0d;
}

.service-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 100px;
}

.service-row:nth-child(even) {
    flex-direction: row-reverse;
}

.service-info {
    flex: 1;
}

.service-info h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #fff;
}

.service-info p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.service-visual {
    flex: 1;
    height: 400px;
    background: #141414;
    border-radius: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.service-visual:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
    z-index: 10;
}

.service-visual i,
.service-visual img {
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.service-visual:hover i,
.service-visual:hover img {
    transform: scale(1.1);
}

.service-visual i {
    font-size: 6rem;
    opacity: 0.2;
    color: #fff;
}

.visual-accent-red {
    border-color: rgba(255, 62, 62, 0.3);
    box-shadow: 0 0 30px rgba(255, 62, 62, 0.1);
}

.visual-accent-red i {
    color: var(--primary-red);
}

.visual-accent-green {
    border-color: rgba(0, 220, 130, 0.3);
    box-shadow: 0 0 30px rgba(0, 220, 130, 0.1);
}

.visual-accent-green i {
    color: var(--primary-green);
}

.feature-list {
    padding-left: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.feature-list-red i {
    color: var(--primary-red);
    margin-right: 12px;
}

.feature-list-green i {
    color: var(--primary-green);
    margin-right: 12px;
}

/* Slide Left Entrance from Box */
/* Character Wrapper & Animation */
#slide-in-image {
    perspective: 1200px;
    width: 350px;
    height: 420px;
    position: absolute;
    bottom: -100px;
    left: -50px;
    z-index: 5;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    overflow: visible !important;
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: auto;
    opacity: 1; /* Always visible */
    transform: none;
}

/* Override for hero section — display mascot as centered visual */
#slide-in-image.mascot-hero {
    position: relative;
    bottom: auto;
    left: auto;
    width: 100%;
    height: 100%;
    max-width: 420px;
    max-height: 480px;
    margin: 0 auto;
    justify-content: center;
    align-items: center;
}

#slide-in-image.mascot-hero .vertical-bar {
    right: 20px;
    top: 0;
    bottom: 0;
}

#slide-in-image.mascot-hero .thinking-character {
    max-height: 420px;
    width: auto;
    object-fit: contain;
    /* Force visible — bypass the JS-triggered animation */
    opacity: 1 !important;
    transform: scale(1.05) !important;
    animation: stableFloat 5s ease-in-out infinite !important;
}


#slide-in-image:hover {
    transform: scale(1.02);
}

/* The Character Image */
.thinking-character {
    opacity: 0;
    transform: translateX(-80px) rotateY(-60deg) scale(0.8);
    /* Start turned away and back */
    transform-origin: center right;
    /* Pivot from the side near the bar */
    transition: all 1.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Bouncy pop */
    filter: drop-shadow(15px 15px 30px rgba(0, 0, 0, 0.8));
    /* Deep shadow */
    will-change: transform, opacity;
}

/* State when visible */
#slide-in-image.is-visible .thinking-character {
    opacity: 1;
    transform: translateX(0) rotateY(0deg) scale(1.1);
    animation: stableFloat 5s ease-in-out infinite;
}

@keyframes stableFloat {
    0%, 100% { transform: translateX(0) rotateY(0deg) scale(1.1) translateY(0); }
    50% { transform: translateX(0) rotateY(0deg) scale(1.1) translateY(-10px); }
}

/* Grounding Platform for stable mascot */
#slide-in-image::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) rotateX(70deg);
    width: 60%;
    height: 40px;
    background: radial-gradient(ellipse, var(--primary-green), transparent 70%);
    opacity: 0.2;
    filter: blur(10px);
    z-index: 1;
    animation: shadowPulse 5s ease-in-out infinite;
}

@keyframes shadowPulse {
    0%, 100% { transform: translateX(-50%) rotateX(70deg) scale(1); opacity: 0.2; }
    50% { transform: translateX(-50%) rotateX(70deg) scale(0.8); opacity: 0.1; }
}



/* Vertical Glowing Portal Bar */
.vertical-bar {
    position: absolute;
    right: 40px;
    /* Position bar behind the character on the right side of the box */
    top: 5%;
    bottom: 5%;
    width: 5px;
    background: #fff;
    box-shadow:
        0 0 10px #fff,
        0 0 20px var(--primary-green),
        0 0 40px var(--primary-green);
    /* Neon Portal Glow */
    border-radius: 4px;
    z-index: 10;
    /* Bar is in FRONT of the starting position, but character passes it */
    opacity: 0;
    transform: scaleY(0);
    transition: all 0.8s ease;
}

#slide-in-image.is-visible .vertical-bar {
    opacity: 1;
    transform: scaleY(1);
}

/* Futuristic Thought Bubble - Floating 3D */
.thought-link {
    position: absolute;
    top: 0;
    left: 0;
    /* Move to left side for balance */
    z-index: 30;
    text-decoration: none;
    opacity: 0;
    transform: translateZ(50px) scale(0);
    /* 3D float */
    animation: popInBubble 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1.2s forwards;
}

@keyframes popInBubble {
    to {
        opacity: 1;
        transform: translateZ(50px) scale(1) rotate(-5deg);
    }
}

.thought-bubble {
    width: 110px;
    height: 110px;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid var(--primary-green);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--primary-green);
    box-shadow:
        0 0 20px rgba(0, 220, 130, 0.3),
        inset 0 0 20px rgba(0, 220, 130, 0.1);
    transition: all 0.4s ease;
}

.thought-bubble:hover {
    transform: scale(1.2) rotate(5deg);
    background: var(--primary-green);
    color: #000;
    box-shadow: 0 0 60px var(--green-glow);
    border-color: #fff;
}

.click-hint {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.2;
    display: none;
}

.thought-bubble:hover i {
    display: none;
}

.thought-bubble:hover .click-hint {
    display: block;
}

/* Radar Pulse */
.pulse-ring {
    position: absolute;
    inset: -10px;
    border: 1px dashed rgba(0, 220, 130, 0.3);
    border-radius: 50%;
    animation: spinPulse 8s linear infinite;
}

@keyframes spinPulse {
    to {
        transform: rotate(360deg);
    }
}

/* History Timeline Styles (From history.html) */
.history-section {
    padding: 0 0 100px;
}

/* History Timeline Styles (Grid 2 Columns) */
.history-timeline {
    margin-top: 60px;
    position: relative;
    padding: 0;
    text-align: center;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px 40px;
}

/* Remove Central vertical line */
.history-timeline::before {
    display: none;
}

.timeline-item {
    position: relative;
    margin: 0;
    padding: 10px;
    z-index: 1;
    width: 100%;
    max-width: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease;
}

/* Dot styles - Centered above content */
.timeline-item::before {
    content: '';
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    margin-bottom: 20px;
    width: 16px;
    height: 16px;
    background: var(--primary-green);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--green-glow);
    border: 3px solid #0a0a0a;
    z-index: 2;
    display: inline-block;
}

.timeline-item:nth-child(even)::before {
    background: var(--primary-red);
    box-shadow: 0 0 15px var(--red-glow);
}

.timeline-year {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    display: inline-block;
}

.timeline-content h3 {
    font-size: 1.4rem;
    color: var(--primary-green);
    margin-bottom: 15px;
}

.timeline-item:nth-child(even) .timeline-content h3 {
    color: var(--primary-red);
}

.timeline-content p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 400px;
    /* Constrain width for better readability */
    margin: 0 auto;
}

/* ============================================================
   Mascot Hero Display
   ============================================================ */
.mascot-display {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: flex-end;
    width: 100%;
    max-width: 420px;
    height: 100%;
}

.mascot-img {
    max-height: 440px;
    width: auto;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 20px 50px rgba(0, 220, 130, 0.35)) drop-shadow(0 0 30px rgba(0, 0, 0, 0.8));
    animation: mascotFloat 5s ease-in-out infinite;
    transform-origin: center bottom;
}

@keyframes mascotFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-14px) scale(1.02); }
}

.mascot-glow-bar {
    position: absolute;
    right: 30px;
    top: 5%;
    bottom: 5%;
    width: 4px;
    background: #fff;
    box-shadow:
        0 0 8px #fff,
        0 0 20px var(--primary-green),
        0 0 45px var(--primary-green);
    border-radius: 4px;
    z-index: 1;
    animation: barPulse 3s ease-in-out infinite;
}

@keyframes barPulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px #fff, 0 0 20px var(--primary-green), 0 0 45px var(--primary-green); }
    50% { opacity: 0.7; box-shadow: 0 0 4px #fff, 0 0 10px var(--primary-green), 0 0 25px var(--primary-green); }
}

.mascot-bubble-link {
    position: absolute;
    top: 20px;
    left: 10px;
    z-index: 10;
    text-decoration: none;
    animation: bubbleAppear 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 1s both;
}

@keyframes bubbleAppear {
    from { opacity: 0; transform: scale(0) rotate(-10deg); }
    to { opacity: 1; transform: scale(1) rotate(-5deg); }
}

.mascot-thought-bubble {
    width: 100px;
    height: 100px;
    background: rgba(5, 14, 7, 0.92);
    backdrop-filter: blur(10px);
    border: 2px solid var(--primary-green);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    color: var(--primary-green);
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow:
        0 0 20px rgba(0, 220, 130, 0.3),
        inset 0 0 20px rgba(0, 220, 130, 0.08);
    transition: all 0.35s ease;
    animation: mascotFloat 5s ease-in-out infinite 0.5s;
}

.mascot-thought-bubble i {
    font-size: 1.4rem;
}

.mascot-thought-bubble:hover {
    background: var(--primary-green);
    color: #000;
    box-shadow: 0 0 50px var(--green-glow);
    transform: scale(1.15) rotate(5deg);
}

/* Contact Form Elements Global */
.contact-form .form-group {
    margin-bottom: 20px;
    width: 100%;
}

.contact-form .form-group input,
.contact-form .form-group select,
.contact-form .form-group textarea {
    width: 100%;
    padding: 15px 20px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border-radius: 12px !important;
    font-family: var(--font-main) !important;
    font-size: 1rem !important;
    transition: var(--transition) !important;
    outline: none !important;
}

.contact-form .form-group select {
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2300dc82' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 15px center !important;
    background-size: 18px !important;
    cursor: pointer !important;
}

.contact-form .form-group select option {
    background: #111 !important;
    color: #fff !important;
}

.contact-form .form-group input:focus,
.contact-form .form-group select:focus,
.contact-form .form-group textarea:focus {
    border-color: var(--primary-green) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 0 20px rgba(0, 220, 130, 0.2) !important;
}

.contact-form .form-group input::placeholder,
.contact-form .form-group textarea::placeholder {
    color: var(--text-muted) !important;
}

/* Global Animated Grid & Cards */
.anim-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 50px auto 0;
}

.anim-card {
    position: relative;
    border-radius: 20px;
    padding: 36px 30px 40px;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    background: #111414;
    border: 1px solid #1c2220;
    cursor: pointer;
    overflow: hidden;
    opacity: 0;
    animation: anim-rise .75s cubic-bezier(.22, 1, .36, 1) forwards;
    transition: box-shadow .4s, border-color .4s;
    text-align: left;
}

.anim-card:nth-child(1) { animation-delay: .07s; }
.anim-card:nth-child(2) { animation-delay: .19s; }
.anim-card:nth-child(3) { animation-delay: .31s; }
.anim-card:nth-child(4) { animation-delay: .43s; }
.anim-card:nth-child(5) { animation-delay: .55s; }
.anim-card:nth-child(6) { animation-delay: .67s; }

@keyframes anim-rise {
    from { opacity: 0; transform: perspective(900px) translateY(36px); }
    to { opacity: 1; transform: perspective(900px) translateY(0) rotateX(0deg) rotateY(0deg); }
}

.anim-card:hover {
    box-shadow: 0 40px 100px rgba(0, 0, 0, .85);
    transform: perspective(900px) translateY(-15px) rotateX(4deg) rotateY(2deg) scale(1.05);
    border-color: var(--a, #3dff8a);
    z-index: 10;
}

/* Multi-Color Variation */
.anim-card.anim-multi {
    --a: #fff;
    --ag: linear-gradient(135deg, #00d4ff 0%, #7000ff 50%, #ff0099 100%);
}

.anim-card.anim-multi::before {
    background: var(--ag) !important;
}

.anim-card.anim-multi .anim-title {
    background: var(--ag);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.anim-card.anim-multi:hover {
    border-color: #fff;
}

/* Medium Sized Cards */
.anim-card.medium-card {
    min-height: 260px !important;
    padding: 30px !important;
}

.anim-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 21px;
    background: linear-gradient(135deg, var(--a, #3dff8a), transparent 55%);
    opacity: 0;
    z-index: -1;
    transition: opacity .45s;
}

.anim-card:hover::before { opacity: 1; }

.anim-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--a), transparent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .55s cubic-bezier(.22, 1, .36, 1);
}

.anim-card:hover .anim-bar { transform: scaleX(1); }

.anim-shine { position: absolute; inset: 0; border-radius: 20px; pointer-events: none; z-index: 5; }
canvas.anim-pts { position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: 0; transition: opacity .4s; }
.anim-card:hover canvas.anim-pts { opacity: 1; }

.anim-num {
    position: absolute;
    top: 18px;
    right: 22px;
    font-family: 'Syne', sans-serif;
    font-size: 10px;
    letter-spacing: .16em;
    color: #1e2b20;
    transition: color .3s;
    z-index: 2;
}

.anim-card:hover .anim-num { color: var(--a); opacity: .5; }

.anim-icon-box {
    width: 62px;
    height: 62px;
    border-radius: 16px;
    background: var(--ib);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 26px;
    position: relative;
    z-index: 2;
    transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), box-shadow .35s;
}

.anim-card:hover .anim-icon-box {
    transform: translateY(-6px) scale(1.12) rotate(-4deg);
    box-shadow: 0 12px 32px var(--ag);
}

svg.anim-ico { width: 30px; height: 30px; overflow: visible; }

.anim-title {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: #f0fff4;
    margin-bottom: 12px;
    position: relative;
    z-index: 2;
    transition: color .3s;
}

.anim-card:hover .anim-title { color: var(--a); }

.anim-desc {
    font-size: .88rem;
    font-weight: 300;
    color: #4a6050;
    line-height: 1.85;
    position: relative;
    z-index: 2;
    margin-bottom: 28px;
    transition: color .3s;
}

.anim-card:hover .anim-desc { color: #85a890; }

.anim-learn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    font-size: .84rem;
    color: #d0e8d4;
    position: relative;
    z-index: 2;
    text-decoration: none;
    transition: color .3s, gap .3s;
    letter-spacing: .02em;
    margin-top: auto;
}

.anim-card:hover .anim-learn { color: var(--a); gap: 13px; }
.anim-arrow { display: inline-block; transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.anim-card:hover .anim-arrow { transform: translateX(5px); }

@media(max-width:900px) { .anim-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width:680px) { .anim-grid { grid-template-columns: 1fr; gap: 14px; } }

/* Icon animations */
@keyframes anim-lens-blink{0%,88%,100%{opacity:1}94%{opacity:.2}}
.ico-vid .anim-lens{animation:anim-lens-blink 3.2s ease-in-out infinite;}
@keyframes anim-rec-beat{0%,100%{transform:scale(1);opacity:1}50%{transform:scale(1.5);opacity:.4}}
.ico-vid .anim-rec{animation:anim-rec-beat 1.1s ease-in-out infinite;transform-origin:7px 12px;}

@keyframes anim-hbounce{0%,100%{transform:translateY(0)}45%{transform:translateY(-4px)}70%{transform:translateY(-1px)}}
.ico-soc .anim-hg{animation:anim-hbounce 1.8s ease-in-out infinite;}

@keyframes anim-mon-glow{0%,100%{opacity:.1}50%{opacity:.25}}
.ico-web .anim-fill{animation:anim-mon-glow 2.2s ease-in-out infinite;}
@keyframes anim-bracket-l{0%,100%{transform:translateX(0)}50%{transform:translateX(-2px)}}
@keyframes anim-bracket-r{0%,100%{transform:translateX(0)}50%{transform:translateX(2px)}}
.ico-web .anim-bl{animation:anim-bracket-l 1.6s ease-in-out infinite;}
.ico-web .anim-br{animation:anim-bracket-r 1.6s ease-in-out infinite;}

/* PEN ICON */
@keyframes anim-pen-write{0%,100%{transform:translate(0,0) rotate(-35deg)}30%{transform:translate(4px,4px) rotate(-35deg)}60%{transform:translate(8px,2px) rotate(-35deg)}}
@keyframes anim-ink-drop{0%,70%{opacity:0;transform:translateY(0)}75%{opacity:1}100%{opacity:0;transform:translateY(8px) scale(.4)}}
@keyframes anim-lw1{0%,100%{width:0}40%,90%{width:16px}}
@keyframes anim-lw2{0%,20%,100%{width:0}60%,90%{width:10px}}
@keyframes anim-lw3{0%,40%,100%{width:0}80%,95%{width:13px}}
.ico-pen-g{animation:anim-pen-write 2.4s ease-in-out infinite;transform-origin:16px 16px;}
.ico-ink{animation:anim-ink-drop 2.4s ease-in-out infinite;}
.ico-l1{animation:anim-lw1 2.4s ease-in-out infinite;}
.ico-l2{animation:anim-lw2 2.4s ease-in-out infinite .1s;}
.ico-l3{animation:anim-lw3 2.4s ease-in-out infinite .2s;}

/* BRIEFCASE ICON */
@keyframes anim-brief-bounce{0%,100%{transform:translateY(0) rotate(0deg)}30%{transform:translateY(-5px) rotate(-3deg)}50%{transform:translateY(-3px) rotate(3deg)}70%{transform:translateY(-1px) rotate(0deg)}}
@keyframes anim-latch-click{0%,100%{transform:scaleX(1)}40%,60%{transform:scaleX(1.4)}}
@keyframes anim-bra{0%,100%{transform:scaleY(.3)}50%{transform:scaleY(1)}}
@keyframes anim-brb{0%,30%,100%{transform:scaleY(.3)}60%,80%{transform:scaleY(1)}}
@keyframes anim-brc{0%,50%,100%{transform:scaleY(.3)}75%,90%{transform:scaleY(1)}}
.ico-brief-g{animation:anim-brief-bounce 2s ease-in-out infinite;}
.ico-latch{animation:anim-latch-click 2s ease-in-out infinite;transform-origin:16px 12px;}
.ico-ba{animation:anim-bra 1.8s ease-in-out infinite;transform-origin:bottom;}
.ico-bb{animation:anim-brb 1.8s ease-in-out infinite;transform-origin:bottom;}
.ico-bc{animation:anim-brc 1.8s ease-in-out infinite;transform-origin:bottom;}

/* MAGNIFIER ICON */
@keyframes anim-mag-orbit{0%,100%{transform:rotate(0deg)}50%{transform:rotate(-20deg)}}
@keyframes anim-sring1{0%{r:7;opacity:.7}100%{r:16;opacity:0}}
@keyframes anim-sring2{0%{r:7;opacity:.5}100%{r:13;opacity:0}}
@keyframes anim-ib1{0%,100%{transform:scaleY(.4)}40%{transform:scaleY(1)}}
@keyframes anim-ib2{0%,20%,100%{transform:scaleY(.4)}55%{transform:scaleY(1)}}
@keyframes anim-ib3{0%,40%,100%{transform:scaleY(.4)}70%{transform:scaleY(1)}}
.ico-mag-g{animation:anim-mag-orbit 2.2s ease-in-out infinite;transform-origin:13px 13px;}
.ico-sr1{animation:anim-sring1 2s ease-out infinite;}
.ico-sr2{animation:anim-sring2 2s ease-out infinite .5s;}
.ico-ib1{animation:anim-ib1 1.6s ease-in-out infinite;transform-origin:9px 18px;}
.ico-ib2{animation:anim-ib2 1.6s ease-in-out infinite;transform-origin:13px 18px;}
.ico-ib3{animation:anim-ib3 1.6s ease-in-out infinite;transform-origin:17px 18px;}

/* ══════════════════════════════════════════════════════════════
   COMPREHENSIVE RESPONSIVE DESIGN SYSTEM
   Standardizing Mobile, Tablet, Laptop, and Desktop viewports
   ══════════════════════════════════════════════════════════════ */

/* --- GLOBAL CONTAINER FIXES --- */
.container {
    padding: 0 24px;
    max-width: 1240px;
    margin: 0 auto;
    width: 100%;
}

/* 1. LAPTOP & SMALLER (769px – 1024px) */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-visual {
        max-width: 500px;
        margin: 0 auto;
    }

    .nav-link {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
}

/* 2. TABLET PHASE (481px – 768px) */
@media (max-width: 768px) {
    /* Header & Navigation Fixes */
    .header {
        width: 92%;
        padding: 5px 20px;
        border-radius: 50px;
    }
    
    .logo-img {
        height: 100px;
        margin: -20px 0;
    }

    .hamburger {
        display: block;
        z-index: 101;
    }

    .nav-list {
        position: fixed;
        right: -100%;
        top: 0;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        height: 100vh;
        justify-content: center;
        gap: 20px;
        transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        border: none;
        border-radius: 0;
        padding: 50px 0;
    }

    .nav-list.active {
        right: 0;
    }

    .nav-link {
        font-size: 1.2rem;
        padding: 15px;
    }

    .nav-link.btn-primary {
        margin: 20px 0 0;
        width: 80%;
        text-align: center;
    }

    .nav-marker {
        display: none !important; /* marker looks messy on vertical menu */
    }

    /* Hero Responsive */
    .hero {
        padding: 140px 0 60px;
    }

    .hero-title {
        font-size: 2.8rem;
    }

    /* Grids */
    .services-grid, .anim-grid, .photo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* 3. MOBILE OPTIMIZATION (320px – 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    /* Font Size Adjustments */
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }

    h2 {
        font-size: 1.8rem !important;
    }

    /* Spacing */
    .section-header {
        margin-bottom: 40px;
    }

    /* Form & Input adjustments */
    .contact-form {
        padding: 30px 20px;
    }

    .form-group input, .form-group select, .form-group textarea {
        padding: 14px;
        font-size: 0.95rem;
    }

    /* Logo scaling */
    .logo-img {
        height: 80px;
        margin: -15px 0;
    }

    /* Hero Button Stacking */
    .hero-btns {
        flex-direction: column;
        gap: 15px;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        text-align: center;
        padding: 14px 25px; /* Touch friendly */
    }

    .hero-visual {
        display: none; /* Hide complex 3D visual on very small screens for performance */
    }
}


/* ==========================================================================
   COMPREHENSIVE RESPONSIVE UPGRADE (ALL DEVICES)
   ========================================================================== */

/* 1. TABLET & LAPTOP (481px–1024px) */
@media (max-width: 1024px) {
    .container { max-width: 95%; }
    .hero-title { font-size: clamp(2.5rem, 5vw, 3.8rem); line-height: 1.1; }
    .val-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 20px; }
    .header { width: 95%; height: 75px; top: 10px; padding: 0 20px; }
    .logo-img { height: 75px; }
    .star-tracker-container { display: none; } /* Clean tablet UI */
}

/* 2. MOBILE & SMALL TABLET (Up to 768px) */
@media (max-width: 768px) {
    /* Header & Navigation Fixes */
    .header { border-radius: 40px; height: 70px; top: 10px; }
    .logo-img { height: 70px; }
    
    .hamburger { display: block !important; z-index: 1001; }
    .nav-list {
        position: fixed;
        left: -100%;
        top: 0;
        gap: 0;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(25px);
        width: 100%;
        height: 100vh;
        text-align: center;
        transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        justify-content: center;
        z-index: 1000;
        padding: 80px 0;
    }

    .nav-list.active { left: 0; }
    .nav-link { 
        font-size: 1.4rem; 
        padding: 15px; 
        width: 100%; 
        border-radius: 0; 
        border-bottom: 1px solid rgba(255,255,255,0.05); 
    }
    .nav-marker { display: none !important; }

    /* Hero Responsive */
    .hero { padding: 120px 0 50px; text-align: center; min-height: auto; }
    .hero-container { grid-template-columns: 1fr; }
    .hero-content { display: flex; flex-direction: column; align-items: center; }
    .hero-title { font-size: clamp(2rem, 8vw, 2.8rem); margin-bottom: 20px; }
    .hero-subtitle { font-size: 1rem; margin: 0 auto 30px; }
    .hero-buttons { flex-direction: column; width: 100%; max-width: 320px; }
    .send-btn { width: 100% !important; justify-content: center; }
    
    /* Grid & Component Resets */
    .val-grid { grid-template-columns: 1fr !important; }
    .photo-grid { grid-template-columns: 1fr !important; }
    .service-row { flex-direction: column !important; gap: 30px; }
    .service-row:nth-child(even) { flex-direction: column !important; }
    
    /* Process Section Mobile Tweaks */
    .qx-timeline { display: none !important; } /* Hidden for mobile speed */
    .cards-row { flex-direction: column !important; gap: 20px; }
    .card { transform: none !important; opacity: 1 !important; margin-bottom: 10px; }
}

/* 3. ULTRA-MOBILE (320px–480px) */
@media (max-width: 480px) {
    .section-title, h2 { font-size: 1.8rem !important; }
    .photo-section { padding: 40px 10px; border-radius: 15px; }
    .card { padding: 25px 20px; }
    
    /* Footer & Bottom UI */
    .footer-grid { grid-template-columns: 1fr !important; gap: 40px; }
}

/* 4. DESKTOP & WIDE (1025px+) */
@media (min-width: 1025px) {
    .hero-title { font-size: 5rem; }
}

/* Hamburger UI Core */
.hamburger.active .bar:nth-child(2) { opacity: 0; }
.hamburger.active .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Universal No-Horizontal Scroll */
* { box-sizing: border-box; }
html, body {
    max-width: 100% !important;
    overflow-x: hidden !important;
    position: relative;
}
