:root {
    /* Navy Tech Theme (Default & Only) */
    --bg-primary: #0a192f;
    --bg-secondary: #112240;
    --accent-cyan: #64ffda;
    --accent-lime: #a2ff00;
    --text-primary: #e6f1ff;
    --text-secondary: #8892b0;
    --glass-bg: rgba(2, 12, 27, 0.7);
    --glass-border: rgba(100, 255, 218, 0.1);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --nav-height: 80px;
    --bubble-bg: rgba(100, 255, 218, 0.15);
    --bubble-border: rgba(100, 255, 218, 0.2);
}

/* Cache-Bust v4.0.0 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

html,
body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: clip;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    overflow-wrap: break-word;
}

#page-wrapper {
    width: 100%;
    overflow-x: clip;
    position: relative;
    min-height: 100vh;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    overflow-x: clip;
    position: relative;
}

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

/* Typography Gradient */
.text-gradient {
    background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-lime) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: var(--accent-cyan);
    /* Fallback */
    display: inline-block;
}

/* Global Glow */
.glow-accent {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(100, 255, 218, 0.05) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.glow-top-left {
    top: 10%;
    left: 10%;
}

.glow-bottom-right {
    bottom: 10%;
    right: 10%;
}

nav {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

nav.scrolled {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--glass-border);
    height: 70px;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 1.5rem;
}

.nav-content>div:first-child {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}

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

.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-lime));
    color: #0a192f;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(100, 255, 218, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(100, 255, 218, 0.4);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--accent-cyan);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}


.btn-outline {
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--glass-bg);
    border-color: var(--accent-cyan);
}

/* CTA Navigation override */
.nav-links .btn-primary:hover {
    transform: none;
    box-shadow: none;
}

/* Section Layout */
.section {
    padding: 10rem 0;
    position: relative;
}

/* Section Divider (elegant gradient line) */
.section-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-lime));
    margin-bottom: 3rem;
    border-radius: 2px;
    opacity: 1;
    /* Fully visible */
}

.tag-line {
    color: var(--accent-cyan);
    letter-spacing: 4px;
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
}

.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
}

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

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 3rem;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

/* Grid & Content Utilities */
.grid-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 6rem;
    align-items: center;
}

@media (max-width: 968px) {
    .grid-content {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.section-title.centered {
    text-align: center;
    margin-bottom: 5rem;
}

.section-p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.stat-card {
    padding: 2rem;
    text-align: left;
}

.stat-card h3 {
    color: var(--accent-cyan);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stat-card p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Interactive Bubbles Removed */

/* Marquee Refinement */
.marquee-wrapper {
    text-align: center;
}

.marquee-title {
    font-size: 0.9rem;
    color: var(--text-secondary);
    letter-spacing: 2px;
    margin-bottom: 4rem;
    opacity: 0.6;
}

.marquee {
    overflow: hidden;
    padding: 5rem 0;
    background: rgba(100, 255, 218, 0.03);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    position: relative;
    width: 100%;
}

.marquee-content {
    display: flex;
    width: max-content;
    animation: marquee-scroll 30s linear infinite;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.logo-item {
    height: 60px;
    width: auto;
    margin: 0 5rem;
    opacity: 0.85;
    filter: grayscale(0.3) brightness(1.1);
    transition: all 0.3s;
}


.logo-item:hover {
    opacity: 1;
    filter: grayscale(0) brightness(1.2);
    transform: scale(1.05);
}

/* Testimonials Carousel */
.testimonial-section {
    overflow: hidden;
    padding: 4rem 0;
}

.testimonials-carousel {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    min-height: 400px;
}

.testimonials-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
    min-width: 100%;
    width: 100%;
    padding: 3.5rem;
    flex-shrink: 0;
    box-sizing: border-box;
    height: auto;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-text {
    font-size: 1.1rem;
    font-style: normal;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    white-space: normal;
    flex: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.gradient-1 {
    background: linear-gradient(135deg, #64ffda, #48bfe3);
}

.gradient-2 {
    background: linear-gradient(135deg, #74ebd5, #acb6e5);
}

.author-name {
    font-weight: 700;
    font-size: 1rem;
}

.author-role {
    font-size: 0.8rem;
    color: var(--accent-cyan);
}

/* Carousel Navigation Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-top: 3rem;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--glass-border);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--accent-cyan);
    width: 30px;
    border-radius: 5px;
}

/* Footer Standard */
.footer {
    padding: 6rem 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}

/* Terminal Standard */
.terminal {
    background: #020c1b;
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 12px;
}

.terminal-line {
    opacity: 0;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.8;
}

.terminal-line.visible {
    opacity: 1;
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: var(--accent-cyan);
    margin-left: 4px;
    animation: blink 1s infinite;
}

@keyframes blink {

    0%,
    49% {
        opacity: 1;
    }

    50%,
    100% {
        opacity: 0;
    }
}


/* Cursor Follower Glow (Antigravity Style) */
#cursor-follower {
    position: fixed;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(100, 255, 218, 0.05) 0%, rgba(100, 255, 218, 0.02) 40%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, opacity 0.4s ease;
    opacity: 0;
    /* Hidden by default, shown via JS */
    will-change: transform;
    contain: strict;
}

/* Hide on mobile if still causing issues, or keep subtle */
@media (max-width: 768px) {
    #cursor-follower {
        width: 250px;
        height: 250px;
        opacity: 0.3;
        display: block !important;
        /* Keep it but subtle */
    }
}

/* Subpage Layout Fixes */
.page-content {
    padding-top: 180px;
    padding-bottom: 10rem;
}

@media (max-width: 768px) {
    .page-content {
        padding-top: 130px !important;
        /* Definitive header clearance */
    }

    .hero-section {
        padding-top: 130px !important;
        /* Definitive header clearance */
    }

    #cursor-follower {
        width: 200px;
        height: 200px;
        opacity: 0;
        display: block !important;
    }
}

.portrait-wrapper {
    max-height: 600px;
    border-radius: 20px;
    overflow: hidden;
    line-height: 0;
}

.portrait-img {
    width: 100%;
    height: 100%;
    max-height: 600px;
    object-fit: cover;
    display: block;
}

.section-header {
    margin-bottom: 6rem;
    text-align: left;
}

.service-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    padding: 4rem;
    margin-bottom: 3rem;
    align-items: center;
}

.service-visual {
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    background: var(--bg-secondary);
    padding: 2rem;
}

.service-visual img {
    width: 100%;
    height: auto;
    max-height: 350px;
    object-fit: contain;
    display: block;
}

.visual-placeholder {
    color: var(--text-secondary);
    font-size: 1.2rem;
    opacity: 0.5;
}

.cta-mini {
    margin-top: 2rem;
}

/* Bubble Counter Removed */

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
    .service-card {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .bubble-counter {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Mobile navigation drawer */
    .nav-links {
        position: fixed;
        top: 70px;
        right: 0;
        width: 280px;
        height: calc(100vh - 70px);
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        transform: translateX(100%);
        display: none !important;
        transition: transform 0.3s ease;
        border-left: 1px solid var(--glass-border);
        z-index: 1000;
    }

    .nav-links.active {
        display: flex !important;
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1.1rem;
    }

    .nav-links .btn {
        width: 100%;
        text-align: center;
    }

    /* Adjust logo size */
    .logo {
        font-size: 1.2rem;
    }

    /* Hero section adjustments */
    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    /* Terminal adjustments */
    .terminal {
        padding: 1.5rem;
    }

    .terminal-line {
        font-size: 0.85rem;
    }

    /* Testimonial carousel */
    .testimonial-card {
        padding: 2rem;
        min-height: 300px;
    }

    .testimonial-text {
        font-size: 1rem;
    }

    /* Service cards */
    .service-visual {
        min-height: 200px;
    }

    /* Stats grid */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Section padding */
    .section {
        padding: 3rem 0;
    }

    /* Container padding */
    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

@media (max-width: 768px) {
    #cursor-follower {
        display: none !important;
    }

    .glow-accent {
        width: 100%;
        max-width: 250px;
        height: 250px;
        opacity: 0.2;
        overflow: hidden;
    }

    .glow-top-left {
        top: 2%;
        left: -10%;
        /* Move slightly out but contained by page-wrapper */
    }

    .glow-bottom-right {
        bottom: 2%;
        right: -10%;
    }
}

@media (max-width: 480px) {

    /* Extra small screens */
    .logo {
        font-size: 1rem;
    }

    .logo .rest {
        display: none;
    }

    .bubble-counter {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }

    .hero h1 {
        font-size: 1.75rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }

    .section-title {
        font-size: 1.75rem;
    }
}