:root {
    /* Colors */
    --bg-color: #ffffff;
    /* Clean Light Background */
    --text-primary: #0f172a;
    /* Slate 900 */
    --text-secondary: #475569;
    /* Slate 600 */
    --accent-primary: #004b93;
    /* Azure Blue */
    --accent-secondary: #d9232a;
    /* Deep Purple */
    --accent-tertiary: #10b981;
    /* Success Green */
    --card-bg: rgba(255, 255, 255, 0.9);
    --card-border: rgba(15, 23, 42, 0.08);

    /* Typography */
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

html, body, main {
    width: 100% !important;
    max-width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
}

/* Corporate Background Shadow Image - REMOVED skyscraper from here */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('server_bg.jpg') no-repeat center center / cover;
    opacity: 0.22;
    z-index: 0;
    pointer-events: none;
}

/* New Wrapper for Logo with Skyscraper Background - Simplified for true full-width */
.logo-bg-wrapper {
    display: none !important;
}

.logo-bg-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(8, 12, 20, 0.05), #080c14);
    pointer-events: none;
}

.logo-bg-wrapper img {
    position: relative;
    z-index: 5;
    width: 85%; /* Large prominent logo */
    max-width: 1200px;
    height: auto;
    display: block;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.4));
}

/* Ensure all direct children of body stack above the background */
body > * {
    position: relative;
    z-index: 1;
}


/* Typography Utility */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.center {
    text-align: center;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.container-sm {
    max-width: 800px;
}

.section {
    padding: var(--spacing-xl) 0;
    position: relative;
    z-index: 10;
}

.relative {
    position: relative;
}

/* Glassmorphism & Cards */
.glass-panel {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
}

/* Buttons */
.btn-primary,
.btn-primary-outline,
.btn-secondary,
.btn-watch-video {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 100px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-base);
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-watch-video {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--accent-primary);
    backdrop-filter: blur(10px);
}

.btn-watch-video:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.btn-primary-outline {
    background: transparent;
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
}

.btn-primary-outline:hover {
    background: rgba(59, 130, 246, 0.1);
    box-shadow: inset 0 0 10px rgba(59, 130, 246, 0.3);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: var(--spacing-sm) 0;
    transition: var(--transition-base);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    padding: 0.8rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 45px !important;
    max-height: 180px !important;
    width: auto !important;
    object-fit: contain !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3)) !important;
    display: block !important;
    transition: var(--transition-base);
}
@media (max-width: 768px) {
    .logo-img {
        height: 75px !important;
        max-height: 75px !important;
    }
}

.nav-links {
    display: flex;
    gap: 0.5rem; /* Tighter gap for pill style */
    align-items: center;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.6rem 1.2rem;
    border-radius: 100px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(15, 23, 42, 0.05);
    color: var(--accent-primary);
}

/* Scrolled Navbar State */
.navbar.scrolled .nav-link {
    color: var(--text-primary);
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
    background: var(--accent-primary);
    color: #fff;
}

/* Get Support Button in Nav */
.btn-nav {
    background: var(--accent-primary);
    color: #fff !important;
    font-weight: 600 !important;
    margin-left: 1rem;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.btn-nav:hover {
    background: var(--accent-secondary) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.4);
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    padding: 0.5rem 0;
    z-index: 1000;
    flex-direction: column;
}

.nav-dropdown:hover .dropdown-content {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.dropdown-item {
    color: var(--text-secondary);
    padding: 0.8rem 1.5rem;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.dropdown-item:hover {
    background: rgba(15, 23, 42, 0.05);
    color: var(--accent-primary);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 101;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    position: absolute;
    transition: var(--transition-fast);
}

.mobile-menu-toggle span:nth-child(1) {
    top: 0;
}

.mobile-menu-toggle span:nth-child(2) {
    top: 9px;
}

.mobile-menu-toggle span:nth-child(3) {
    top: 18px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: block; /* Section itself should be block to allow 100% width children */
    padding-top: calc(var(--spacing-sm) + 60px); 
    position: relative;
    text-align: center; /* Root centering */
}

.hero-container {
    display: flex;
    flex-direction: column; /* Center column */
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin: 0 auto;
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 100px;
    color: var(--accent-primary);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-align: center;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.hero-visual {
    flex: 1;
    position: relative;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.abstract-sphere {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--accent-primary), var(--accent-secondary), transparent 70%);
    filter: blur(20px);
    animation: revolve 15s linear infinite;
    box-shadow: inset -20px -20px 40px rgba(0, 0, 0, 0.2), inset 20px 20px 40px rgba(255, 255, 255, 0.4);
}

@keyframes revolve {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.glass-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-primary);
    font-weight: 600;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    animation: appearDisappear 6s ease-in-out infinite;
    z-index: 2;
    opacity: 0;
}

.glass-card svg {
    color: var(--accent-primary);
}

.decor-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.decor-2 {
    bottom: 20%;
    right: 10%;
    animation-delay: 3s;
    /* Offset so they alternate appearing */
}

.decor-3 {
    top: 15%;
    right: 5%;
    animation-delay: 1.5s;
}

.decor-4 {
    bottom: 15%;
    left: 15%;
    animation-delay: 4.5s;
}

@keyframes appearDisappear {
    0% {
        opacity: 0;
        transform: scale(0.8) translateY(10px);
    }

    20% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }

    40% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }

    60% {
        opacity: 0;
        transform: scale(0.8) translateY(-10px);
    }

    100% {
        opacity: 0;
        transform: scale(0.8) translateY(-10px);
    }
}

/* Services */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-inline: auto;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 2.5rem 2rem;
    transition: var(--transition-base);
    cursor: crosshair;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(0, 0, 0, 0.05);
}

.service-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(59, 130, 246, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    transition: var(--transition-base);
}

.service-card:hover .service-icon {
    background: var(--accent-primary);
    color: white;
    transform: scale(1.1) rotate(-5deg);
}

.service-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    justify-items: center;
}

.team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 350px;
    text-align: center;
    transition: var(--transition-base);
}

.team-card:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(59, 130, 246, 0.1);
}

.team-pic-wrapper {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    padding: 6px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    position: relative;
    overflow: hidden;
}

.team-pic {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--bg-color);
    /* fallback */
    border: 3px solid var(--bg-color);
    transition: var(--transition-base);
}

.team-card:hover .team-pic {
    transform: scale(1.05);
}

.team-info h4 {
    font-size: 1.3rem;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.team-role {
    display: block;
    color: var(--accent-primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.team-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.team-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-secondary);
    transition: var(--transition-base);
}

.team-social a:hover {
    background: var(--accent-primary);
    color: var(--text-primary);
    transform: translateY(-3px);
}

/* About / Partners */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.stats-grid {
    display: flex;
    gap: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--accent-primary);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

.partners-area {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
}

.partners-area h3 {
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.logo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.partner-logo {
    padding: 0.8rem 1.5rem;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    font-weight: 600;
    color: var(--text-secondary);
    border: 1px solid transparent;
    transition: var(--transition-fast);
}

.partner-logo:hover {
    color: var(--text-primary);
    border-color: rgba(0, 0, 0, 0.2);
    background: rgba(0, 0, 0, 0.1);
}

/* Contact Section Two Columns */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: stretch;
}

.contact-left .contact-panel {
    padding: 3rem;
    height: 100%;
}

.contact-header {
    margin-bottom: 4rem;
    text-align: center;
}

/* Hover effects for contact info blocks */
.info-block-horizontal a:hover {
    color: var(--accent-primary) !important;
}

.tech-form .form-control:focus {
    outline: none;
    border-color: var(--accent-primary) !important;
    background: rgba(59, 130, 246, 0.1) !important;
}

.info-block h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.info-block p,
.info-block a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.info-block a:hover {
    color: var(--accent-primary);
}

/* Footer */
footer {
    border-top: 1px solid var(--card-border);
    padding: 3rem 0;
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand .logo-img-footer {
    height: 55px;
    width: auto;
    margin-bottom: 0.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
    transform: scale(1.0);
    transform-origin: left center;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.footer-links p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Accolades Gallery */
.accolades-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.accolade-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: var(--transition-base);
    position: relative;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.accolade-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.accolade-item:hover {
    transform: translateY(-10px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 20px rgba(59, 130, 246, 0.2);
}

.accolade-item:hover::before {
    opacity: 1;
}

.accolade-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* ensures certificates aren't cropped */
    padding: 1rem;
    transition: transform 0.5s ease;
}

.accolade-item:hover img {
    transform: scale(1.05);
}

/* Gallery Filters */
.accolade-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}

.filter-btn {
    background: transparent;
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--accent-primary);
    color: var(--text-primary);
    border-color: var(--accent-primary);
}

#accolades-container {
    transition: opacity 0.3s ease;
}

/* Custom Work Info Overlay */
.accolade-item .work-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 1rem 1.5rem;
    color: var(--text-primary);
    text-align: center;
    z-index: 2;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: linear-gradient(to top, rgba(10, 15, 30, 0.95) 0%, rgba(10, 15, 30, 0.8) 50%, transparent 100%);
}

.accolade-item:hover .work-info {
    transform: translateY(0);
}

.work-info h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
    color: var(--text-primary);
}

.work-info span {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    display: block;
}

/* Lightbox Modal */
.accolade-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 15, 30, 0.95);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 2rem;
}

.accolade-lightbox.show {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-content {
    position: relative;
    max-width: 98%;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.accolade-lightbox.show .lightbox-content {
    transform: scale(1);
}

.lightbox-content img {
    max-width: 100%;
    max-height: 92vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-title {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 500;
    margin-top: 1.5rem;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 3rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10000;
}

.lightbox-close:hover {
    color: var(--accent-primary);
}

/* Animations & Reveal Classes */
.reveal {
    opacity: 0;
    transition: opacity 1s ease, transform 1s ease;
}

.reveal.active {
    opacity: 1;
    transform: translate(0, 0);
}

.fade-up {
    transform: translateY(50px);
}

.slide-left {
    transform: translateX(-50px);
}

.slide-right {
    transform: translateX(50px);
}

.delay-1 {
    transition-delay: 0.2s;
}

.delay-2 {
    transition-delay: 0.4s;
}

.delay-3 {
    transition-delay: 0.6s;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-visual {
        width: 100%;
    }

    .about-container {
        grid-template-columns: 1fr;
    }

    .about-content {
        text-align: center;
    }

    .stats-grid {
        justify-content: center;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .tech-form .form-row {
        grid-template-columns: 1fr !important;
    }

    .contact-left .contact-panel,
    .contact-right .contact-form-panel {
        padding: 2rem !important;
    }
}

@media (max-width: 768px) {
    /* Hamburger menu */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1rem;
        transition: var(--transition-base);
        backdrop-filter: blur(20px);
        z-index: 99;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links .nav-link {
        font-size: 1.2rem !important;
        padding: 0.8rem 2rem !important;
    }

    .nav-links .btn-nav {
        margin-left: 0 !important;
        margin-top: 0.5rem;
    }

    /* Show dropdown inline on mobile */
    .nav-dropdown .dropdown-content {
        position: static;
        display: none;
        background: rgba(15, 23, 42, 0.04);
        border-radius: 8px;
        border: none;
        box-shadow: none;
        width: 100%;
        padding: 0;
    }
    .nav-dropdown:hover .dropdown-content,
    .nav-dropdown.open .dropdown-content {
        display: flex;
        flex-direction: column;
    }
    .dropdown-item {
        color: var(--text-secondary);
        text-align: center;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .mobile-menu-toggle span {
        background: var(--text-primary);
    }
    .navbar.scrolled .mobile-menu-toggle span {
        background: var(--text-primary);
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg);
        top: 9px;
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg);
        top: 9px;
    }

    /* Hero */
    .hero {
        padding-top: 80px !important;
        padding-bottom: 3rem !important;
    }

    .hero-title {
        font-size: clamp(1.8rem, 7vw, 2.5rem) !important;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta a {
        width: 100%;
        text-align: center;
    }

    /* Logo watermark bg */
    .logo-bg-wrapper {
        height: 50vh;
    }

    /* Section spacing */
    .section {
        padding: 4rem 0;
    }

    .section-title {
        font-size: 1.8rem;
    }

    /* Services grid - single column on mobile */
    .services-grid {
        grid-template-columns: 1fr;
    }

    /* Team grid */
    .team-grid {
        grid-template-columns: 1fr;
    }
    .team-card {
        max-width: 100%;
    }

    /* About */
    .about-container {
        gap: 2rem;
    }
    .partners-area {
        padding: 2rem 1rem;
    }

    /* Contact */
    .contact-left .contact-panel,
    .contact-right .contact-form-panel {
        padding: 1.5rem !important;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .footer-brand .logo-img-footer {
        transform: scale(1.5) !important;
        transform-origin: center center !important;
        margin-bottom: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    /* Accolades */
    .accolades-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    /* Extra small tweaks */
    .container {
        padding: 0 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }

    .service-card {
        padding: 1.5rem 1.25rem;
    }

    .team-card {
        padding: 1.5rem 1rem;
    }

    .tech-form .form-row {
        grid-template-columns: 1fr !important;
    }

    /* Make the video hero responsive */
    .hero-visual {
        height: 220px !important;
    }
}

/* =========================================
   Chatbot Styles
   ========================================= */
.chatbot-popout {
    position: fixed;
    bottom: 5.5rem;
    right: 2rem;
    background: var(--card-bg);
    color: var(--text-primary);
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
    z-index: 1000;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateY(20px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chatbot-popout.show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.chatbot-popout::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 24px;
    border-width: 8px 8px 0;
    border-style: solid;
    border-color: var(--card-border) transparent transparent transparent;
}

.chatbot-popout .chatbot-popout-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    margin-left: 5px;
    transition: color 0.2s ease;
}

.chatbot-popout .chatbot-popout-close:hover {
    color: var(--text-primary);
}

.chatbot-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--text-primary);
    border: none;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chatbot-fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.6);
}

.chatbot-window {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    width: 380px;
    height: 600px;
    background: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    overflow: hidden;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: bottom right;
}

.chatbot-window.hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
}

.chatbot-header {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-bottom: 1px solid var(--card-border);
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: white;
    font-size: 1.1rem;
}

.chatbot-avatar {
    background: rgba(255, 255, 255, 0.2);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.chatbot-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.chatbot-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.chatbot-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Scrollbar for chat */
.chatbot-messages::-webkit-scrollbar {
    width: 6px;
}

.chatbot-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chatbot-messages::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.chat-message {
    max-width: 85%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.4;
    animation: fadeIn 0.3s ease;
}

.bot-message {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.user-message {
    background: var(--primary-color);
    color: #ffffff;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-quick-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.quick-reply-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    border-radius: 20px;
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.quick-reply-btn:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #ffffff;
}

.chatbot-input {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border-top: 1px solid var(--card-border);
    display: flex;
    gap: 0.75rem;
}

.chatbot-input input {
    flex: 1;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    color: var(--text-primary);
    font-family: inherit;
    outline: none;
    transition: all 0.2s ease;
}

.chatbot-input input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2);
}

.chatbot-input button {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.chatbot-input button:hover {
    transform: scale(1.05);
}

@media (max-width: 480px) {
    .chatbot-window {
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        height: 100dvh;
        border-radius: 0;
        border: none;
    }
}

/* =========================================
   Testimonials Slider
   ========================================= */
.testimonials {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.testimonial-slides {
    display: flex;
    overflow-x: hidden;
    scroll-snap-type: x mandatory;
    gap: 2rem;
    padding-bottom: 2rem;
    
    /* Auto Scroll Setup */
    animation: autoScroll 30s linear infinite;
    width: max-content;
}

.testimonial-slides:hover {
    animation-play-state: paused;
}

@keyframes autoScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}

.testimonial-card {
    flex: 0 0 100%;
    scroll-snap-align: center;
    max-width: 600px;
    padding: 2.5rem;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

@media (min-width: 768px) {
    .testimonial-card {
        flex: 0 0 Calc(50% - 1rem);
    }
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    font-style: italic;
    flex-grow: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--card-border);
}

.testimonial-avatar img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-primary);
}

.testimonial-info h4 {
    margin: 0 0 0.2rem 0;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.testimonial-info span {
    font-size: 0.9rem;
    color: var(--accent-primary);
}

/* =========================================
   Chatbot Typing Indicator
   ========================================= */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 0.2rem;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background-color: var(--text-secondary);
    border-radius: 50%;
    animation: bounce 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes bounce {
    0%, 80%, 100% { 
        transform: scale(0); 
    }
    40% { 
        transform: scale(1); 
    }
}

/* FINAL OVERRIDE FOR NAVIGATION CONTRAST AND HIGHLIGHTS */
/* Logo styles removed per user request */

.nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
    padding: 0.6rem 1.2rem !important;
    border-radius: 100px !important;
    background: transparent !important;
    transition: all 0.3s ease !important;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #fff !important;
}

/* Scrolled Navbar State */
.navbar.scrolled .nav-link {
    color: var(--text-primary) !important;
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
    background: var(--accent-primary) !important;
    color: #fff !important;
}

/* Force Remove any ::after underline */
.nav-link::after {
    display: none !important;
    content: none !important;
}

/* Get Support Button */
.btn-nav {
    background: var(--accent-primary) !important;
    color: #fff !important;
    font-weight: 600 !important;
    margin-left: 1rem !important;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3) !important;
}

/* Stats Section */
.stats-section {
    padding: 5rem 0;
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: var(--transition-base);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(14, 165, 233, 0.15);
    border-color: rgba(14, 165, 233, 0.3);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Custom form select styling */
.tech-form select.form-control {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--card-bg) !important;
    border: 1px solid var(--card-border);
    border-radius: 12px;
    color: var(--text-primary) !important;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: var(--transition-fast);
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' 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 1.5rem center !important;
    background-size: 1.2em !important;
}

.tech-form select.form-control:focus {
    border-color: var(--accent-primary) !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.2);
}

.tech-form select.form-control option {
    background: #ffffff !important;
    color: #0f172a !important;
}

/* Media query updates for stats */
@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}