@font-face {
    font-family: 'Inter';
    src: url('fonts/Inter.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.image-clip-wrapper {
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow);
    display: block;
    width: 100%;
    height: auto;
}

.about-image .image-clip-wrapper,
.hero-image .image-clip-wrapper {
    max-width: 100%;
    max-height: 400px;
    margin: 0 auto;
}

.movable-image.is-zoomed {
    box-shadow: 0 8px 32px rgba(26, 60, 135, 0.18), 0 2px 8px rgba(0, 0, 0, 0.10);
    z-index: 1;
}

:root {
    --primary-color: #1a3c87;
    /* Deep Blue */
    --secondary-color: #f0f8ff;
    /* Light Blue Background */
    --text-color: #333;
    --text-light: #666;
    --white: #ffffff;
    --gradient-bg: linear-gradient(135deg, #e6f2ff 0%, #ffffff 100%);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
    --font-family: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

section {
    scroll-margin-top: 100px;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    padding-top: 110px;
    /* Offset for fixed header */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #132d66;
}

.btn-secondary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
    background-size: 300% 300%;
    color: var(--white);
    border: none;
    position: relative;
    overflow: hidden;
    animation: gradientShift 4s ease infinite, btnPulse 2s ease-in-out infinite;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 30%,
            rgba(255, 255, 255, 0.3) 50%,
            transparent 70%);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
    animation: gradientShift 2s ease infinite, btnPulse 1s ease-in-out infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes btnPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    50%,
    100% {
        left: 100%;
    }
}

/* Hero button group */
.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 0;
}

/* Header */
header {
    background-color: var(--white);
    padding: 6px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: transform 0.3s ease-in-out;
}

header.header-hidden {
    transform: translateY(-100%);
}

.header-container {
    display: flex;
    align-items: center;
    gap: 24px;
}

.logo {
    margin-right: auto;
    margin-top: 1px;
}

.logo img {
    height: 100px;
    max-width: 160px;
    display: block;
    object-fit: contain;
    /* Visually enlarge without affecting layout height */
    transform: scale(1.25);
    transform-origin: left center;

}

nav ul {
    display: flex;
    gap: 20px;
}

nav a {
    font-weight: 500;
    color: var(--primary-color);
}

/* Navigation link sizing and alignment */
nav ul li a {
    display: block;
    padding: 8px 6px;
}

nav a {
    font-size: 1.05rem;
    line-height: 1.2;
    letter-spacing: 0.2px;
}

/* Search Bar */
.search-container {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #f3f4f6;
    padding: 6px 12px;
    border-radius: 24px;
    transition: all 0.3s ease;
}

.search-container:focus-within {
    background: #e5e7eb;
    box-shadow: 0 0 0 3px rgba(26, 60, 135, 0.1);
}

.search-input {
    border: none;
    background: transparent;
    outline: none;
    padding: 6px 8px;
    font-size: 0.95rem;
    color: var(--text-color);
    width: 200px;
    font-family: var(--font-family);
}

.search-input::placeholder {
    color: #9ca3af;
}

.search-btn,
.voice-search-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.search-btn i,
.voice-search-btn i {
    font-size: 1rem;
    color: var(--primary-color);
}

.search-btn:hover,
.voice-search-btn:hover {
    background: rgba(26, 60, 135, 0.1);
}

.voice-search-btn.listening {
    background: #ef4444;
    animation: pulse 1.5s infinite;
}

.voice-search-btn.listening i {
    color: white;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

/* Language Selector */
.language-selector {
    position: relative;
}

.language-selector .lang-btn {
    background: none;
    border: 1px solid #ddd;
    padding: 8px 16px;
    border-radius: 20px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.language-selector .lang-btn:hover {
    border-color: var(--primary-color);
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.language-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    padding: 12px 20px;
    cursor: pointer;
    color: var(--text-color);
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.lang-option:first-child {
    border-radius: 12px 12px 0 0;
}

.lang-option:last-child {
    border-radius: 0 0 12px 12px;
}

.lang-option:hover {
    background-color: #f5f5f5;
}

.lang-option.active {
    background-color: #e6f2ff;
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(-45deg, #eff6ff, #ffffff, #dbeafe, #f0f9ff);
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
    padding: 48px 0;
    min-height: 70vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-floating-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
    animation: floatingColorAnimation 15s ease infinite;
    color: rgba(255, 255, 255, 0.5);
}

.floating-text {
    position: absolute;
    color: inherit;
    font-weight: 800;
    font-family: var(--font-family);
    user-select: none;
    white-space: nowrap;
    animation: floatBackground 20s linear infinite;
}

.floating-text.t1 {
    font-size: 8rem;
    top: 10%;
    left: -10%;
    animation-duration: 25s;
}

.floating-text.t2 {
    font-size: 6rem;
    bottom: 20%;
    right: -5%;
    animation-duration: 22s;
    animation-delay: -5s;
}

.floating-text.t3 {
    font-size: 5rem;
    top: 20%;
    right: 15%;
    animation-duration: 28s;
    animation-delay: -10s;
}

.floating-text.t4 {
    font-size: 7rem;
    bottom: 10%;
    left: 10%;
    animation-duration: 30s;
    animation-delay: -2s;
}

.floating-text.t5 {
    font-size: 4rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-duration: 35s;
    opacity: 0.03;
}

.floating-text.t6 {
    font-size: 6rem;
    top: 5%;
    right: 40%;
    animation-duration: 24s;
    animation-delay: -15s;
}

@keyframes floatBackground {
    0% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }

    33% {
        transform: translateY(-20px) translateX(10px) rotate(2deg);
    }

    66% {
        transform: translateY(10px) translateX(-10px) rotate(-1deg);
    }

    100% {
        transform: translateY(0) translateX(0) rotate(0deg);
    }
}

/* Floating Icons */
.floating-icon {
    position: absolute;
    color: inherit;
    font-size: 4rem;
    animation: floatBackground 25s linear infinite;
    pointer-events: none;
    z-index: 0;
}

.floating-icon.i1 {
    top: 15%;
    left: 20%;
    font-size: 5rem;
    animation-duration: 28s;
    animation-delay: -5s;
}

.floating-icon.i2 {
    bottom: 25%;
    right: 25%;
    font-size: 6rem;
    animation-duration: 32s;
    animation-delay: -10s;
}

.floating-icon.i3 {
    top: 40%;
    right: 5%;
    font-size: 4.5rem;
    animation-duration: 24s;
}

.floating-icon.i4 {
    bottom: 15%;
    left: 35%;
    font-size: 3.5rem;
    animation-duration: 30s;
    animation-delay: -15s;
}

.floating-icon.i5 {
    top: 5%;
    right: 30%;
    font-size: 4rem;
    animation-duration: 26s;
    animation-delay: -2s;
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes floatingColorAnimation {
    0% {
        color: rgba(255, 255, 255, 0.8);
        /* White text on Blue BG */
    }

    50% {
        color: rgba(26, 60, 135, 0.1);
        /* Blue text on White BG */
    }

    100% {
        color: rgba(255, 255, 255, 0.8);
        /* White text on Blue BG */
    }
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    position: relative;
    z-index: 1;
}

.hero-content {
    flex: 1;
}

.hero-content h1 {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 5px;
    font-weight: 700;
    opacity: 0;
    /* Initial state for animation */
    animation: heroTitleReveal 2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s forwards;
}

@keyframes heroTitleReveal {
    0% {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.hero-content p {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 550px;
    text-align: justify;
    opacity: 0;
    /* Initial state for animation */
    animation: heroTitleReveal 2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.6s forwards;
}



.hero-image {
    flex: 1;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.placeholder-image {
    width: 100%;
    height: 400px;
    background-color: #dbeafe;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #889db8;
    font-size: 1.5rem;
    font-weight: 500;
}

.hero-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

/* Hero background wrapper and subtle floating particles */
/* hero-bg and particle overlay removed to restore original plain hero background */

/* Movable image: only zoom on pointer/focus. No continuous animation. */
.movable-image {
    width: 450px;
    max-width: 100%;
    display: block;
    will-change: transform;
    transition: transform 300ms ease;
}

.movable-image:hover {
    transform: scale(1.05) translateY(-5px);
}



/* Pointer-triggered zoom: apply a small scale while pointer is over the image.
   Use a separate class so JS can toggle on pointer events and keyboard focus.
   Also pause the loop animation while the pointer zoom is active to avoid
   conflicting transform animations. */
.movable-image.is-zoomed {
    transform: scale(1.06) !important;
    transition: transform 240ms ease-out;
    animation-play-state: paused !important;
}

/* Make the image appear interactive for pointer users */
.movable-image {
    cursor: zoom-in;
    transition: transform 300ms ease;
}

/* When zoomed (e.g. on focus via keyboard), show zoom-out cursor */
.movable-image.is-zoomed {
    cursor: zoom-out;
}


/* About Section */
.about {
    padding: 48px 0;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 30px;
}

@media (max-width: 968px) {
    .about-container {
        display: flex !important;
        flex-direction: column !important;
        text-align: center;
    }

    /* Remove wrapper box so children can be reordered */
    .about-content {
        display: contents;
    }

    /* Force specific order */
    .about-content h2 {
        order: 1;
        margin-bottom: 20px;
        width: 100%;
    }

    .about-image {
        order: 2;
        margin-bottom: 30px;
        width: 100%;
    }

    .about-content p {
        order: 3;
        width: 100%;
    }

    .about-features-wrapper {
        order: 4;
        width: 100%;
    }
}

.about-image {
    flex: 1;
}

.about-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.ceo-name-3d {
    text-align: center;
    margin-top: 15px;
    font-weight: 700;
    color: var(--text-color);
    font-size: 1.1rem;
    position: relative;
    /* 3D Effect */
    animation: float3D 3s ease-in-out infinite;
    text-shadow: 0 1px 0 #ddd, 0 2px 0 #ccc, 0 3px 5px rgba(0, 0, 0, 0.2);
}

@keyframes float3D {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-4px);
    }
}

.about-content {
    flex: 1;
}

.about-content h2 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
    opacity: 0;
    /* Initial state for animation */
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 25px;
    text-align: justify;
}

.about-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
    font-weight: 500;
}

.about-features-wrapper {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.about-cta {
    margin-bottom: 15px;
    /* Align with bottom list item */
}

@media (max-width: 480px) {
    .about-features-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Zoom Pulse Animation */
.zoom-float-btn {
    padding: 12px 28px;
    background-color: var(--primary-color);
    /* Match theme */
    color: white;
    border-radius: 8px;
    display: inline-block;
    animation: zoomPulse 2s infinite ease-in-out;
    text-decoration: none;
}

@keyframes zoomPulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
    }
}

.about-list i {
    color: #3b82f6;
}

/* Services Section */
.services {
    padding: 48px 0;
    background-color: #f9fafb;
}

.section-header {
    text-align: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
    opacity: 0;
    /* Initial state for animation */
}

.section-header p {
    color: var(--text-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.service-card {
    background: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card .icon {
    margin-bottom: 20px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card .icon img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.service-card .icon i {
    font-size: 2.5rem;
}

.service-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.25rem;
}

.service-card p {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Contact Section */
.contact {
    padding: 48px 0;
}

.contact-container {
    display: flex;
    gap: 24px;
}

.contact-info {
    flex: 1;
}

.contact-info h2 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 700;
    opacity: 0;
    /* Initial state for animation */
}

/* Class to trigger animation on scroll */
.active-animation {
    animation: heroTitleReveal 2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s forwards;
}

/* 3D Service Carousel */
.services-scene {
    width: 100%;
    height: 450px;
    perspective: 1000px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    /* Hide overflow to prevent scrollbars */
    margin-top: 50px;
}

.services-carousel {
    width: 300px;
    height: 400px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.service-card {
    position: absolute;
    width: 280px;
    height: 350px;
    left: 10px;
    top: 10px;
    background: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Improve rendering quality */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transform: translateZ(0);
    /* Trigger hardware acceleration */
    image-rendering: -webkit-optimize-contrast;
    /* Try to crispen images */
    backface-visibility: hidden;
}

/* Blur effect for non-active cards */
.service-card.blur-card {
    filter: blur(4px);
    opacity: 0.6;
    pointer-events: none;
}

.service-card.active-card {
    filter: blur(0);
    opacity: 1;
    z-index: 10;
    box-shadow: 0 15px 35px rgba(26, 60, 135, 0.2);
    border: 1px solid rgba(26, 60, 135, 0.1);
}

.service-card .icon {
    margin-bottom: 20px;
}

.service-card .icon img {
    height: 60px;
    width: auto;
    object-fit: contain;
}



.contact-info>p {
    color: var(--text-light);
    margin-bottom: 40px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    color: var(--text-color);
}

.detail-item i {
    color: #AD650F;
    width: 20px;
}

.contact-form {
    flex: 1;
    background: var(--white);
    padding: 28px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: var(--border-radius);
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Footer */
footer {
    background: linear-gradient(to right, #ffffff, hsl(216, 57%, 25%));
    color: var(--text-color);
    padding: 60px 0 20px;
}


.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 12px;
    padding: 0 16px;
    flex-wrap: wrap;
}

/* Center the middle links (Company & Support) */
.footer-container>div:nth-child(2) {
    margin-left: auto;
}

.footer-container>div:nth-child(3) {
    margin-right: auto;
}

.footer-logo {
    flex: 0 0 auto;
    text-align: left;
    margin-right: 0;
}

.footer-logo img {
    height: 120px;
    margin-bottom: 15px;
    display: block;
    filter: none;
    transform-origin: left center;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.footer-logo img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(26, 60, 135, 0.3));
}

.footer-logo p {
    display: block;
    margin-top: 10px;
    font-size: 0.95rem;
    margin-left: -6px;
}

.footer-links,
.footer-social {
    flex: 0 0 auto;
    /* Stop growing, just fit content */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 150px;
    /* Ensure decent width */
}

.footer-links {
    text-align: left;
}

.footer-social {
    align-items: flex-start;
}

.footer-links h4,
.footer-social h4 {
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--primary-color);
    font-weight: 700;
    text-transform: uppercase;
}

.footer-links ul {
    text-align: left;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-color);
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(8px);
    text-shadow: 0 0 1px rgba(26, 60, 135, 0.1);
}

.social-icons {
    display: flex;
    gap: 10px;
    margin-left: -30px;
}

.social-icons a {
    width: 36px;
    height: 36px;
    background-color: #1e293b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
}

.social-icons a:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.social-icons a[aria-label="Facebook"]:hover {
    background-color: #1877F2;
}

.social-icons a[aria-label="LinkedIn"]:hover {
    background-color: #0077B5;
}

.social-icons a[aria-label="Instagram"]:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.social-icons a[aria-label="YouTube"]:hover {
    background-color: #FF0000;
}

.social-icons a.x-twitter-icon svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}


.footer-bottom {
    text-align: center;
    padding: 16px 0;
    margin-top: 20px;
    background-color: transparent;
    color: var(--text-color);
    font-size: 0.8rem;
    width: 100%;
}

/* Hamburger Menu */
.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

/* Responsive */
@media (max-width: 768px) {

    .header-container {
        justify-content: space-between;
        position: relative;
        gap: 12px;
        padding: 0 8px;
        /* allow wrapping so logo and controls stack cleanly */
        flex-wrap: wrap;
        align-items: center;
    }

    .logo img {
        height: 60px;
        max-width: 140px;
        object-fit: contain;
        transform: none;
    }

    .hamburger {
        display: block;
        z-index: 1001;
        order: 3;
    }

    .search-container {
        display: flex;
        width: auto;
        margin: 0;
        order: 2;
        flex: 1;
        justify-content: flex-end;
        background: transparent;
        padding: 0;
    }

    .search-input {
        width: 100%;
        max-width: 140px;
        background: #f3f4f6;
        border-radius: 20px;
        padding: 6px 12px;
    }

    /* On tablet/mobile, avoid highlighting the whole header when search is focused.
       Only highlight the search button itself. */
    .search-container:focus-within {
        background: transparent;
        box-shadow: none;
    }

    .search-btn:focus,
    .search-btn:active {
        outline: none;
        background: rgba(26, 60, 135, 0.12);
        border-radius: 50%;
        box-shadow: 0 0 0 3px rgba(26, 60, 135, 0.08);
    }

    /* Mobile-friendly font sizing and tighter layout for tablets */
    body {
        font-size: 15px;
    }

    .hero-content h1 {
        font-size: 1.9rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 18px;
    }

    .service-card .icon {
        height: 60px;
    }

    .nav-menu {
        padding: 64px 16px;
    }

    /* increase nav font on tablet for readability */
    nav a {
        font-size: 1.08rem;
    }

    nav ul {
        gap: 18px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        padding: 72px 18px;
        transition: right 0.3s ease;
        box-shadow: -2px 0 14px rgba(0, 0, 0, 0.08);
        gap: 24px;
        z-index: 1000;
        order: 4;
    }

    .nav-menu.active {
        right: 0;
    }

    /* Make language selector full-width inside the off-canvas nav on mobile/tablet */
    .nav-menu .language-selector {
        width: 100%;
        align-self: flex-start;
    }

    .nav-menu .language-selector .lang-btn {
        width: 100%;
        justify-content: space-between;
        padding: 12px 14px;
        border-radius: 10px;
        border: 1px solid #e6eefc;
        background: transparent;
        font-weight: 600;
        color: var(--primary-color);
    }

    /* Make the dropdown items flow naturally inside the nav panel */
    .nav-menu .language-dropdown {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        box-shadow: none;
        background: transparent;
        min-width: unset;
        display: none;
        padding: 8px 0 0 0;
    }

    .nav-menu .language-dropdown.active {
        display: block;
    }

    .nav-menu .language-dropdown .lang-option {
        padding: 10px 6px;
        color: var(--text-color);
        border-bottom: 1px solid #f1f5f9;
        text-align: left;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 18px;
        width: 100%;
    }

    .hero {
        padding: 40px 0;
        min-height: 60vh;
    }

    .hero-container,
    .about-container {
        flex-direction: column;
        text-align: center;
    }

    /* Stack hero content with image below text on tablets */
    .hero-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .hero-content {
        order: 1;
        width: 100%;
        padding: 10px 0;
    }

    .hero-image {
        order: 2;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .movable-image {
        width: 100%;
        max-width: 420px;
        max-height: 260px;
        margin: 0 auto;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
        max-width: 100%;
    }

    .placeholder-image,
    .hero-image img,
    .about-image img {
        max-height: 260px;
        height: auto;
    }

    .contact-container,
    .footer-container {
        flex-direction: column;
        text-align: left;
        align-items: flex-start;
        gap: 20px;
    }

    .footer-links,
    .footer-social {
        align-items: flex-start;
        text-align: left;
        width: 100%;
        margin-top: 20px;
    }

    .contact-form {
        width: 100%;
        padding: 24px;
    }

    .service-card {
        padding: 20px;
    }

    .footer-container {
        padding: 0 20px;
    }

    .footer-logo img {
        height: 80px;
        margin-bottom: 8px;
        padding: 6px 8px;
    }
}

@media (max-width: 480px) {

    .logo img {
        height: 52px;
        max-width: 120px;
        transform: none;
    }

    /* Disable heavy animations on small phones to save CPU/battery */
    .movable-image {
        animation: none;
        max-height: 200px;
        width: 100%;
        max-width: 100%;
    }

    /* Compact the search: show only icons on very small screens */
    .search-input {
        display: none;
    }

    /* Extra compact styles for small phones */
    .container {
        padding: 0 12px;
    }

    body {
        font-size: 14px;
    }

    .container {
        padding-left: 32px !important;
        padding-right: 32px !important;
    }

    /* Justify text for legal/content pages on mobile */
    .terms-section p,
    .privacy-section p,
    .explore-section p,
    .terms-section li,
    .privacy-section li {
        text-align: justify;
        color: black !important;
        /* Force black on mobile */
    }

    .hero-content h1 {
        font-size: 1.3rem;
        /* Reduced from 1.4rem */
    }

    .section-header h2 {
        font-size: 1.3rem;
        /* Reduced from 1.5rem */
    }

    /* Reduce legal page headings on mobile */
    .terms-section h2,
    .privacy-section h2,
    .explore-section h2 {
        font-size: 1.25rem !important;
        /* Reduced from 1.5rem */
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .service-card {
        padding: 16px;
    }

    .service-card .icon {
        height: 56px;
    }

    .contact-info>p {
        margin-bottom: 20px;
    }

    /* Make primary CTAs and form submit easier to tap on phones */
    .contact-form button,
    .hero-buttons .btn,
    .btn.btn-primary {
        width: 100%;
        display: block;
        text-align: center;
        margin-bottom: 12px;
        font-size: 1.1rem;
        padding: 16px 20px;
    }

    .btn {
        padding: 15px 25px;
    }

    header {
        padding: 4px 0;
    }

    .header-container {
        gap: 8px;
    }

    .search-input {
        max-width: 120px;
    }

    .hero {
        padding: 28px 0;
        min-height: 50vh;
    }

    /* Ensure hero content and image fit small screens */
    .hero-container {
        flex-direction: column;
        align-items: center;
        gap: 18px;
        padding: 0 6px;
    }

    .hero-content {
        width: 100%;
        text-align: center;
        padding: 0 6px;
    }

    .hero-image {
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .hero-image img,
    .movable-image {
        width: 100%;
        max-width: 360px;
        height: auto;
        max-height: 220px;
        border-radius: 14px;
    }

    /* Make primary CTA full-width and easy to tap */
    .btn-primary {
        width: 100%;
        padding: 14px 16px;
        box-sizing: border-box;
        display: inline-block;
    }

    /* Header compact layout: logo left, controls right */
    .header-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        /* gap: 8px; */
        /* padding: 6px 12px; */
        gap: 8px;
        padding: 6px 8px 6px 5px !important;
        /* Override container padding to move logo left */
        width: 100% !important;
    }

    /* Adjust search container for mobile */
    .search-container {
        padding: 4px 8px;
        max-width: 180px;
        /* Constrain width */
    }

    .search-input {
        width: 100px;
        /* Smaller input width */
        font-size: 0.85rem;
    }

    .search-input.show-mobile {
        display: block !important;
        position: absolute;
        top: 60px;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        background: white;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
        z-index: 1002;
        border: 1px solid #ddd;
        padding: 10px;
    }

    .voice-search-btn {
        padding: 4px;
    }

    .search-btn {
        padding: 4px;
    }

    /* Reduce nav link sizes to avoid wrapping */
    nav a {
        font-size: 0.95rem;
    }

    .hero-content h1 {
        font-size: 1.6rem;
    }

    .hero-content p {
        font-size: 0.95rem;
    }

    .btn {
        padding: 10px 16px;
    }

    .nav-menu {
        width: 100%;
        max-width: none;
    }

    .footer-logo img {
        height: 60px;
        padding: 4px 6px;
    }

    .footer-logo p {
        margin-left: 0;
    }
}

/* Terms Header Redesign (Tech Mahindra Style) */
.terms-header-wrapper {
    background-color: #ffffff;
    /* White Navigation Background */
    background: #ffffff;
    color: #333333;
    /* Dark text for contrast */
}

.terms-header-wrapper.brand-bg {
    background-color: #ffffff;
    background: #ffffff;
}

.simple-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 48px;
    border-bottom: 1px solid #eee;
    /* Subtle separator */
}

.simple-header .logo img {
    height: 80px;
    padding: 0;
    /* Remove white padding box */
    background: none;
    border-radius: 0;
    transform: none;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 24px;
}

.control-icon {
    font-size: 1.2rem;
    color: #333333;
    /* Dark icons */
    cursor: pointer;
    background: none;
    border: none;
    padding: 8px;
}

.terms-title-banner {
    background-color: #548eec;
    /* Light Blue Banner Background */
    padding: 80px 48px;
    width: 100%;
    margin: 0;
}

.terms-title-banner h1 {
    font-size: 56px;
    font-weight: 600;
    color: #ffffff;
    /* White text */
    font-family: 'DM Sans', sans-serif;
    margin: 0;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-right: auto;
    opacity: 0;
    transform: translateY(15px);
    animation: fadeSlideUp 0.8s ease-out forwards;
}

@keyframes fadeSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .simple-header {
        padding: 16px 20px;
    }

    .terms-title-banner {
        padding: 40px 20px;
    }

    .terms-title-banner h1 {
        font-size: 3rem;
    }
}

/* Terms Page Navigation */
.terms-nav ul {
    display: flex;
    gap: 30px;
    list-style: none;
    /* Ensure no bullets */
    margin: 0;
    padding: 0;
}

.terms-nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.terms-nav a:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .terms-nav {
        display: none;
        /* Hide on mobile */
    }
}

/* Professional Styling for Terms, Privacy & Explore Points */
.terms-section,
.privacy-section,
.explore-section {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    /* Subtle separator */
}

.terms-section:last-child,
.privacy-section:last-child,
.explore-section:last-child {
    border-bottom: none;
}

.terms-section h2,
.privacy-section h2,
.explore-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 16px;
    display: flex;
    align-items: baseline;
}

.terms-section h2 i,
.privacy-section h2 i,
.explore-section h2 i {
    margin-right: 10px;
    color: #f59e0b;
    /* Gold color for stars/icons */
    font-size: 1.2rem;
}

.terms-section p,
.privacy-section p,
.explore-section p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #000;
    /* Changed to pure black */
    /* Softer dark gray for reading */
    margin-bottom: 16px;
    max-width: 900px;
    /* Optimize line length for reading */
}

.terms-section ul,
.privacy-section ul,
.explore-section ul {
    list-style: none;
    /* Changed to none to allow custom icons if needed, or stick to disc */
    margin-left: 0;
    margin-bottom: 16px;
    color: #000;
    /* Changed to pure black */
}

/* Specific list styling for these sections */
.terms-section ul li,
.privacy-section ul li,
.explore-section ul li {
    margin-bottom: 12px;
    line-height: 1.7;
    /* Increased to match p */
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 1.05rem;
    /* Match p font size */
}

.terms-section strong,
.privacy-section strong,
.explore-section strong {
    color: #1f2937;
    /* Darker bold text */
    font-weight: 600;
}

/* Carousel Styles */
.carousel-slide {
    display: none;
    width: 100%;
    animation: fadeEffect 1.5s;
}

.carousel-slide.active {
    display: block;
}

@keyframes fadeEffect {
    from {
        opacity: 0.4;
    }

    to {
        opacity: 1;
    }
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 60px 0;
    background-color: var(--white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.feature-icon {
    flex-shrink: 0;
    width: 24px;
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 4px;
    /* Align with title */
}

.feature-text h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 8px;
}

.feature-text p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.5;
}

@media (min-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .features-grid {
        gap: 30px;
    }

    .feature-item {
        gap: 16px;
    }
}

/* =========================================
   Global Mobile Responsiveness Fixes
   ========================================= */
@media screen and (max-width: 1024px) {

    /* 1. Global Layout & Typography */
    html,
    body {
        overflow-x: hidden;
        width: 100%;
    }

    .container {
        /* Force side padding to override page-content resets */
        padding-left: 48px !important;
        padding-right: 48px !important;
        width: 100%;
        box-sizing: border-box;
    }

    /* Force black text for legal/content pages on tablet */
    .terms-section p,
    .privacy-section p,
    .explore-section p,
    .terms-section li,
    .privacy-section li {
        color: black !important;
    }

    h1 {
        font-size: 2rem !important;
    }

    h2 {
        font-size: 1.75rem !important;
    }

    /* 2. Header & Navigation */
    .header-container {
        padding: 15px 20px;
    }

    .logo img {
        height: 70px !important;
        /* Increased size */
        width: auto;
        transform: scale(1.3);
        /* Visual boost */
        transform-origin: left center;
        max-width: 180px;
    }

    .hamburger {
        display: block !important;
        font-size: 1.5rem;
        cursor: pointer;
        z-index: 1001;
        color: var(--primary-color);
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: white;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 100px;
        align-items: center;
        transition: 0.3s ease-in-out;
        z-index: 1000;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu nav ul {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }

    .nav-menu nav ul li {
        margin: 0;
    }

    /* 3. Hero Section */
    .hero {
        padding-top: 100px;
        /* prevent overlap with fixed header */
        min-height: auto;
        padding-bottom: 40px;
    }

    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        gap: 30px;
    }

    .hero-content {
        align-items: center;
    }

    .hero-btn-group {
        justify-content: center;
    }

    .hero-image {
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    /* 4. Services Carousel Scaling */
    .services-scene {
        height: 350px;
        perspective: 800px;
        margin-top: 10px;
    }

    .services-carousel {
        /* Scale down the 3D carousel to fit mobile width */
        transform: scale(0.75);
    }

    /* 5. Footer Layout */
    .footer-container {
        display: flex;
        flex-direction: column;
        gap: 40px;
        text-align: center;
        align-items: center;
        padding-bottom: 40px;

    }

    .footer-logo {
        width: 100%;
        text-align: center !important;
        margin-bottom: 20px;
        margin-right: 0;
        /* Reset margin for mobile */
        margin-left: 0;
    }

    .footer-logo img {
        margin: 0 auto !important;
        height: auto !important;
        max-height: 100px;
        max-width: 240px;
        display: inline-block;
    }

    .footer-logo p {
        margin-left: 0 !important;
        text-align: center;
        width: 100%;
    }

    .footer-links,
    .footer-social {
        width: 100%;
        align-items: center !important;
        text-align: center !important;
        flex: 0 0 auto;
    }

    .footer-links h4,
    .footer-social h4 {
        width: 100%;
        text-align: center;
        margin-bottom: 15px;
    }

    .footer-links ul {
        align-items: center;
        display: flex;
        flex-direction: column;
        padding: 0;
        margin: 0;
        width: 100%;
        text-align: center !important;
    }

    .footer-links ul li {
        width: 100%;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
        width: 100%;
        gap: 20px;
        display: flex;
    }

    /* Reset auto margins for mobile to prevent right-alignment */
    .footer-container>div:nth-child(2),
    .footer-container>div:nth-child(3) {
        margin-left: 0;
        margin-right: 0;
    }
}

/* Fix Mobile Carousel Swipe */
.services-scene,
.services-carousel {
    touch-action: pan-y !important;
}

/* Blog Coming Soon Effect */
.coming-soon {
    position: relative;
    pointer-events: none;
    overflow: hidden;
}

.coming-soon>div {
    filter: blur(5px);
    opacity: 0.5;
}

.coming-soon::after {
    content: 'Coming Soon';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    background: rgba(0, 0, 0, 0.85);
    color: #ffd700;
    border: 2px solid #ffd700;
    padding: 12px 25px;
    font-size: 1.4rem;
    font-weight: 800;
    text-transform: uppercase;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    letter-spacing: 1px;
}

@media (prefers-reduced-motion: no-preference) {
    .hero h3 {
        animation: heroTitleReveal 1.2s ease forwards;
    }
}