/* ==========================================================================
   Base Styles & Variables
   ========================================================================== */
:root {
    --bg-dark: #05070A;
    --accent-blue: #00D4FF;
    --text-white: #FFFFFF;
    --text-silver: #A0AAB2;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.05);
    --glass-hover: rgba(0, 212, 255, 0.05);
    --glow-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: initial; /* Lenis smooth scroll */
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    overflow-x: hidden;
    line-height: 1.6;
    cursor: none; /* Custom cursor */
}

::selection {
    background-color: var(--accent-blue);
    color: var(--bg-dark);
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
h1, h2, h3, h4 {
    line-height: 1.2;
    font-weight: 700;
}

.text-blue {
    color: var(--accent-blue);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center { text-align: center; }
.max-w-sm { max-width: 600px; margin-left: auto; margin-right: auto; }
.mt-4 { margin-top: 2rem; }

/* ==========================================================================
   Custom Cursor & Background Canvas
   ========================================================================== */
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, rgba(5, 7, 10, 0) 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: screen;
    transition: width 0.3s, height 0.3s;
}

.cursor-glow.active {
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.3) 0%, rgba(5, 7, 10, 0) 70%);
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    opacity: 0.6;
}

/* ==========================================================================
   Glassmorphism Cards
   ========================================================================== */
.glass-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 2.5rem;
    transition: var(--transition-smooth);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5), 0 10px 30px rgba(0, 0, 0, 0.5);
    position: relative;
}

.glass-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    border-radius: 16px;
    box-shadow: inset 0 0 10px rgba(212, 175, 55, 0.05); /* subtle gold lighting */
}

.glass-card:hover {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.05), rgba(255, 90, 0, 0.03));
    border-color: rgba(0, 212, 255, 0.3);
    transform: translateY(-10px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 212, 255, 0.2), inset 0 0 20px rgba(212, 175, 55, 0.1);
}

/* ==========================================================================
   Interactive Buttons (Magnetic)
   ========================================================================== */
.cta-btn, .submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--bg-dark);
    background: var(--text-white);
    border: none;
    border-radius: 50px;
    text-decoration: none;
    overflow: hidden;
    cursor: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-btn:hover, .submit-btn:hover {
    color: var(--text-white);
    background: transparent;
    border: 1px solid var(--accent-blue);
    box-shadow: var(--glow-shadow);
    transform: scale(1.05);
}

.cta-btn::after, .submit-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: skewX(-25deg);
    transition: all 0.6s ease;
    z-index: 1;
}

.cta-btn:hover::after, .submit-btn:hover::after {
    left: 150%;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--accent-blue);
    top: 100%;
    left: 0;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: -1;
}

.cta-btn:hover .btn-glow, .submit-btn:hover .btn-glow {
    top: 0;
    border-radius: 0;
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(5, 7, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-white);
    text-decoration: none;
    letter-spacing: 1px;
}

.logo span {
    color: var(--accent-blue);
    font-weight: 300;
}

.brand-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
/* Logo + Text Alignment */
.brand-logo-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-logo {
    height: 1.8em;   
    width: auto;     /*  aspect ratio */
    object-fit: contain;
}
.brand-subtitle {
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #FFFFFF, #A0AAB2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-top: -4px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    color: var(--text-silver);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: width 0.3s ease;
    box-shadow: 0 0 10px var(--accent-blue);
}

.nav-link:hover {
    color: var(--text-white);
    text-shadow: 0 0 12px rgba(0, 212, 255, 0.6);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    color: var(--text-white);
    cursor: pointer;
}

/* Mobile Nav */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(5, 7, 10, 0.95);
    backdrop-filter: blur(20px);
    z-index: 200;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav.open {
    right: 0;
}

.close-menu {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2rem;
    color: var(--text-white);
    cursor: pointer;
}

.mobile-link {
    color: var(--text-white);
    text-decoration: none;
    font-size: 2rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.mobile-link:hover {
    color: var(--accent-blue);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0 2rem;
}

.hero-content {
    text-align: center;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
    padding: 0 1rem;
    transform-style: preserve-3d;
}

.cyber-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    pointer-events: none;
    z-index: 1;
}

.cyber-rings .ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(0, 212, 255, 0.1);
}

.ring-1 {
    width: 400px;
    height: 400px;
    border-top-color: rgba(0, 212, 255, 0.5);
    animation: spin 15s linear infinite;
}

.ring-2 {
    width: 600px;
    height: 600px;
    border-left-color: rgba(255, 90, 0, 0.3);
    animation: spin-reverse 25s linear infinite;
}

.ring-3 {
    width: 800px;
    height: 800px;
    border-bottom-color: rgba(0, 212, 255, 0.2);
    border-style: dashed;
    animation: spin 40s linear infinite;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes spin-reverse {
    0% { transform: translate(-50%, -50%) rotate(360deg); }
    100% { transform: translate(-50%, -50%) rotate(0deg); }
}

.hero-title {
    font-size: clamp(2.5rem, 5.5vw, 5.5rem);
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
    background: linear-gradient(180deg, #FFFFFF 0%, #A0AAB2 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0; /* For GSAP */
    transform: translateY(50px);
    line-height: 1.1;
    white-space: nowrap;
}

.hero-subtext {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-silver);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(30px);
}

/* ==========================================================================
   Sections General
   ========================================================================== */
section {
    padding: 8rem 0;
    position: relative;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-silver);
    margin-bottom: 3rem;
    max-width: 700px;
}

.subsection-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-intro {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 5rem;
}

.vision-mission {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

.vm-icon {
    font-size: 2.5rem;
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.5));
}

.vm-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.vm-card p {
    color: var(--text-silver);
}

/* count */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 6rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
    border-radius: 12px;
    background: radial-gradient(circle at center, rgba(0, 212, 255, 0.05) 0%, transparent 70%);
}

.stat-number {
    font-size: 4rem;
    font-weight: 800;
    color: var(--accent-blue);
    display: inline-block;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}

.stat-plus {
    font-size: 3rem;
    font-weight: 700;
    color: var(--accent-blue);
    vertical-align: top;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--text-silver);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 0.5rem;
}

/* Team Carousel */
.team-section {
    position: relative;
    margin-bottom: 6rem;
}

.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.team-carousel {
    overflow: hidden;
    width: 100%;
    padding: 2.5rem 0;
}

.team-track {
    display: flex;
    gap: 2rem;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-card {
    flex: 0 0 300px;
    text-align: center;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.member-img img {
    width: 250px;
    height: 250px;
    
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    border: 3px solid var(--glass-border);
    transition: var(--transition-smooth);
    box-sizing: border-box;
    transform: translateZ(0); 
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    background-color: var(--bg-dark);
}

.team-card.center-card {
    transform: scale(1.1);
}

.team-card.center-card .member-img {
    border-color: var(--accent-blue);
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.4), inset 0 0 20px rgba(0, 212, 255, 0.2);
}

.img-placeholder {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.team-card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}

.team-card p {
    color: var(--text-silver);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.carousel-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: var(--transition-smooth);
    position: relative;
    z-index: 50;
}

.carousel-btn:hover {
    background: var(--glass-hover);
    border-color: var(--accent-blue);
    color: var(--accent-blue);
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);

}

/* Testimonials */
.testimonials-section {
    max-width: 800px;
    margin: 0 auto;
}

.testimonial-carousel {
    position: relative;
    overflow: hidden;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-card {
    flex: 0 0 100%;
    text-align: center;
    padding: 3rem;
}

.stars {
    color: #FFD700;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: 3px;
}

.feedback {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-white);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.client-name {
    color: var(--accent-blue);
    font-weight: 600;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--glass-border);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.dot.active {
    background: var(--accent-blue);
    box-shadow: 0 0 10px var(--accent-blue);
}

/* ==========================================================================
   Services Section
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-icon {
    font-size: 2rem;
    color: var(--text-white);
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.service-card:hover .service-icon {
    color: var(--accent-blue);
    transform: scale(1.1);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-silver);
}

/* ==========================================================================
   Portfolio Section
   ========================================================================== */
.portfolio {
    overflow: hidden;
}

.portfolio-showcase {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
}

.portfolio-showcase::-webkit-scrollbar {
    display: none; /* Chrome */
}

.portfolio-item {
    flex: 0 0 400px;
    height: 500px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(5, 7, 10, 0.9));
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition-smooth);
}

.portfolio-item:hover .portfolio-overlay {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.portfolio-overlay p {
    color: var(--accent-blue);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Portfolio Navigation Arrows */
.portfolio-nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
}

.portfolio-arrow {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-silver);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.portfolio-arrow:hover {
    color: #D4AF37; /* Neon Gold */
    border-color: #D4AF37;
    background: rgba(212, 175, 55, 0.05);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4), inset 0 0 10px rgba(212, 175, 55, 0.2);
    transform: scale(1.1);
}

.portfolio-arrow:active {
    transform: scale(0.95);
}

/* ==========================================================================
   Careers Section
   ========================================================================== */
.careers {
    background: radial-gradient(circle at 50% 50%, rgba(0, 212, 255, 0.05) 0%, transparent 60%);
}

.careers-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.career-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 3rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.career-item:hover {
    transform: scale(1.02) translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(0, 212, 255, 0.2), inset 0 0 10px rgba(212, 175, 55, 0.08);
}

.career-item .role-title {
    font-size: 1.5rem;
    margin-bottom: 0;
    text-align: left;
    color: var(--text-white);
}

@media (max-width: 768px) {
    .career-item {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        padding: 2rem;
    }
    .career-item .role-title {
        text-align: center;
    }
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.input-group {
    position: relative;
    width: 100%;
}

.input-group input,
.input-group textarea,
.input-group select {
    width: 100%;
    padding: 1rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--glass-border);
    color: var(--text-white);
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    outline: none;
}

.input-group select option {
    background: var(--bg-dark);
    color: var(--text-white);
}

/* Dropdown UI */
.custom-select-ui {
    position: relative;
    width: 100%;
}

.custom-select-trigger {
    width: 100%;
    padding: 1rem 0;
    color: var(--text-silver);
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
    border-bottom: 1px solid var(--glass-border);
}

.custom-select-trigger .trigger-icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.custom-select-options {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    background: rgba(5, 7, 10, 0.7);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(0, 212, 255, 0.25);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 212, 255, 0.15), inset 0 0 15px rgba(255, 255, 255, 0.02);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    padding: 0.8rem;
}

.custom-select-options.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.custom-option {
    padding: 1rem 1.2rem;
    color: var(--text-silver);
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.custom-option.selected {
    color: var(--text-white);
    background: rgba(0, 212, 255, 0.05);
}

.custom-option:hover {
    color: var(--text-white);
    background: rgba(0, 212, 255, 0.1);
    box-shadow: inset 0 0 10px rgba(0, 212, 255, 0.2);
    padding-left: 1.8rem;
}

.custom-option::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(180deg, var(--accent-blue), transparent);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.3s ease;
    box-shadow: 0 0 10px var(--accent-blue);
}

.custom-option:hover::before, .custom-option.selected::before {
    transform: scaleY(1);
}

.input-group label {
    position: absolute;
    left: 0;
    top: 1rem;
    color: var(--text-silver);
    pointer-events: none;
    transition: var(--transition-smooth);
}

.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:not(:placeholder-shown) ~ label {
    top: -10px;
    font-size: 0.8rem;
    color: var(--accent-blue);
}

.line-glow {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-blue);
    transition: width 0.4s ease;
    box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.input-group input:focus ~ .line-glow,
.input-group textarea:focus ~ .line-glow,
.input-group select:focus ~ .line-glow {
    width: 100%;
}

.submit-btn {
    align-self: flex-start;
    margin-top: 1rem;
    cursor: pointer;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    border-top: 1px solid var(--glass-border);
    padding-top: 5rem;
    padding-bottom: 2rem;
    background: #020305;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-desc {
    color: var(--text-silver);
    margin: 1.5rem 0;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    color: var(--text-white);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.social-icon:hover {
    color: var(--bg-dark);
    background: var(--text-white);
    border-color: var(--text-white);
}

.footer h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-white);
}

.footer-links a, .footer-locations li, .email-link {
    display: block;
    color: var(--text-silver);
    text-decoration: none;
    margin-bottom: 0.8rem;
    transition: color 0.3s ease;
}

.footer-locations ul {
    list-style: none;
}

.footer-links a:hover, .email-link:hover {
    color: var(--accent-blue);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    color: #4a5568;
    font-size: 0.9rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom {
    display: flex;
    justify-content: center;   /*  center horizontally */
    align-items: center;
    text-align: center;
    width: 100%;
}

.footer-logo-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.ils-logo-footer {
    height: 2.2rem;
    width: auto;
    object-fit: contain;
    display: block;
}

.footer-logo-row {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
}

.ev-logo-footer {
    height: 2.2rem;
    width: auto;
    object-fit: contain;
    display: block;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media (max-width: 1024px) {
    .contact-content, .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .team-card {
        flex: 0 0 250px;
    }
    .member-img { width: 200px; height: 200px; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 8vw, 3.5rem);
        white-space: normal;
        line-height: 1.2;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .team-card {
        flex: 0 0 100%;
    }
    
    .portfolio-item {
        flex: 0 0 300px;
    }
    
    .footer-bottom {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }

    .footer-bottom-right {
        justify-content: center;
        margin-top: 1rem;
    }
}

/* ==========================================================================
   New Hero Staggered Titles & Animations
   ========================================================================== */
.brand-logo-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.header-logo-space {
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.staggered-title {
    position: relative;
    display: inline-block;
}

.word-wrapper {
    display: inline-block;
}

.word {
    display: inline-block;
    opacity: 0;
}

.word.ready-hover {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), text-shadow 0.4s ease;
}

.slide-left { transform: translateX(-100px); }
.slide-right { transform: translateX(100px); }

/* Micro hover effect */
.word.ready-hover:hover {
    transform: scale(1.05) translateZ(0) !important;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
}

.glow-pulse .word {
    animation: subtleTextGlow 3s infinite alternate ease-in-out;
}

@keyframes subtleTextGlow {
    0% { text-shadow: 0 0 10px rgba(255, 255, 255, 0.05); }
    100% { text-shadow: 0 0 25px rgba(255, 255, 255, 0.3), 0 0 15px rgba(0, 212, 255, 0.2); }
}

/* Light streak effect */
.light-streak-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 2;
}

.light-streak {
    position: absolute;
    top: 0;
    left: -100%;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transform: skewX(-20deg);
    opacity: 0;
    filter: blur(4px);
}

@keyframes softPulse {
    0% { transform: translateY(0); box-shadow: 0 0 10px rgba(0, 212, 255, 0.05); border-color: rgba(255, 255, 255, 0.1); }
    100% { transform: translateY(-8px); box-shadow: 0 0 25px rgba(0, 212, 255, 0.3); border-color: rgba(0, 212, 255, 0.4); }
}


/* ==========================================================================
   WhatsApp Floating Button
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-white);
    font-size: 2rem;
    z-index: 99;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
    animation: whatsappPulse 2s infinite;
    text-decoration: none;
}

.whatsapp-float:hover {
    background: #25D366;
    color: #fff;
    border-color: #25D366;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.5);
    transform: scale(1.1);
    animation: none;
}

@keyframes whatsappPulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.2); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
/* ===== TEAM FIX (DO NOT REMOVE ANYTHING ABOVE) ===== */

/* keep image circle */
.member-img {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    border: 3px solid var(--glass-border);
}

.member-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.member-img,
.member-img img {
    border-radius: 50% !important;
}

/* mobile fix */
@media (max-width: 768px) {
    .member-img {
        width: 180px;
        height: 180px;
    }
}


/*==========================================================================
Chatbot
========================================================================== */
.chatbot-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 5;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
.chatbot-toggle,
.chatbot-window {
    pointer-events: auto;
}

.chatbot-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--text-white);
    color: var(--bg-dark);
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.chatbot-toggle:hover {
    color: var(--text-white);
    background: transparent;
    border: 1px solid var(--accent-blue);
    box-shadow: var(--glow-shadow);
    transform: scale(1.05);
}

.chatbot-window {
    width: 350px;
    max-height: 500px;
    margin-bottom: 1rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #000000 !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transform-origin: bottom right;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0;
}

.chatbot-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.chatbot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    background: #000000;
    border-bottom: 1px solid var(--glass-border);
}

.chatbot-title {
    font-weight: 600;
    color: var(--text-white);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chatbot-title i {
    color: var(--accent-blue);
}

.chatbot-close {
    background: none;
    border: none;
    color: var(--text-silver);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.chatbot-close:hover {
    color: var(--text-white);
}

.chatbot-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-height: 350px;
}

.chatbot-body::-webkit-scrollbar {
    width: 6px;
}
.chatbot-body::-webkit-scrollbar-track {
    background: transparent;
}
.chatbot-body::-webkit-scrollbar-thumb {
    background: var(--glass-border);
    border-radius: 10px;
}

.chat-msg {
    max-width: 85%;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
    line-height: 1.4;
    animation: fadeInMsg 0.3s ease-out forwards;
}

@keyframes fadeInMsg {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.bot-msg {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-bottom-left-radius: 4px;
    color: var(--text-white);
}

.user-msg {
    align-self: flex-end;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-bottom-right-radius: 4px;
    color: var(--text-white);
}

.chat-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.chat-option-btn {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-silver);
    padding: 0.6rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-align: left;
}

.chat-option-btn:hover {
    border-color: var(--accent-blue);
    color: var(--text-white);
    background: rgba(0, 212, 255, 0.05);
    box-shadow: inset 0 0 10px rgba(0, 212, 255, 0.1);
}

.chatbot-input-area {
    display: flex;
    padding: 1rem;
    background: rgba(5, 7, 10, 0.5);
    border-top: 1px solid var(--glass-border);
}

.chatbot-input-area input {
    flex: 1;
    background: #000000;
    border: none;
    color: var(--text-white);
    font-size: 0.9rem;
    outline: none;
    padding-right: 1rem;
}

.chatbot-input-area input::placeholder {
    color: var(--text-silver);
}

.chatbot-input-area button {
    background: transparent;
    border: none;
    color: var(--accent-blue);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.chatbot-input-area button:hover {
    transform: scale(1.1);
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.chatbot-input-area button:disabled {
    color: var(--text-silver);
    cursor: not-allowed;
    transform: none;
    text-shadow: none;
}

@media (max-width: 768px) {
    .chatbot-window {
        width: 300px;
    }
    
    .whatsapp-float {
        bottom: 1.5rem;
        left: 1.5rem;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .chatbot-container {
        bottom: 1.5rem;
        right: 1.5rem;
    }
    
    .chatbot-toggle {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}
.chatbot-container {
   position: fixed;
   bottom: 100px;
   right: 20px;
   width: 350px;
   height: 500px;
}

@media (max-width: 768px) {
    .chatbot-container {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        max-width: 100% !important;
        border-radius: 0 !important;
        z-index: 99999 !important;
    }

    .chatbot-toggle {
        bottom: 20px !important;
        right: 20px !important;
        z-index: 100000 !important;
    }
}