/* ======================= */
/* Variables */
/* ======================= */
:root {
    --navy: #0B1A3E;
    --red: #E63946;
    --ink: #111319;
    --bg: #F6F8FB;
    --card: #FFFFFF;
    --muted: #6B7280;
    --accent-rgb: 230, 57, 70;
}

/* ======================= */
/* Reset & Base Styles */
/* ======================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
}

/* ======================= */
/* Typography */
/* ======================= */
h1, h2, h3, h4 {
    font-family: 'Poppins', Inter, Arial, sans-serif;
    letter-spacing: .2px;
}

h1 { font-size: clamp(28px, 4vw, 48px); line-height: 1.15; }
h2 { font-size: clamp(22px, 3vw, 34px); margin-bottom: 16px; }
h3 { font-size: clamp(18px, 2.2vw, 24px); }
p { color: #2b2f36; }

/* ======================= */
/* Components */
/* ======================= */

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1px 20px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: saturate(180%) blur(10px);
    border-bottom: 1px solid rgba(11, 26, 62, 0.08);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    height: 35px;
    width: auto;
}

.brand-text {
    font-weight: 700;
    text-decoration: none;
    color: var(--ink);
}

.brand-black {
    color: var(--ink);
}

.xtra-red {
    color: var(--red);
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-menu a {
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--red);
}

.actions {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}
.social-icon {
    display: block;
    width: 25px;
    height: 25px;
    max-width: 25px;
    max-height: 25px;
    object-fit: contain;
    flex-shrink: 0;
    cursor: pointer;
    transition: transform 0.3s ease;
}

/* Language and Dark Mode Toggles (Navbar) */
#lang-toggle,
#dark-toggle {
    border: none;
    cursor: pointer;
    border-radius: 15px; /* Pill shape */
    padding: 3px 12px;
    background: var(--navy);
    color: #fff;
    font-weight: 700;
    display: flex;
    gap: 8px;
    align-items: center;
    transition: background-color 0.3s, color 0.3s;
}

#dark-toggle {
    background: transparent;
    color: var(--navy);
    border: 2px solid var(--navy);
    border-radius: 15px; /* Squared corners */
}

#dark-toggle:hover {
    background: var(--navy);
    color: #fff;
}

/* CTA Quote Button */
.cta-quote {
    background: var(--red);
    color: white;
    padding: 3px 12px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 700;
    transition: opacity 0.3s ease;
}

.cta-quote:hover {
    opacity: 0.7;
}


/* Hamburger Menu for Mobile */
.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    display: none;
    z-index: 1001;
}
.hamburger-icon rect { fill: #333; transition: all 0.3s ease; }
.hamburger.active .hamburger-icon rect:nth-child(1) {
    transform: rotate(45deg) translate(15px, 15px);
}
.hamburger.active .hamburger-icon rect:nth-child(2) { opacity: 0; }
.hamburger.active .hamburger-icon rect:nth-child(3) {
    transform: rotate(-45deg) translate(15px, -15px);
}

/* ======================= */
/* Hero Section */
/* ======================= */
.hero {
    position: relative;
    width: 100%;
    height: 51vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 1;
}

.overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.45);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    color: white;
    padding: 20px;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: bold;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

#typed-text {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 0 6px rgba(0,0,0,0.8);
    margin-top: 12px;
    min-height: 32px;
}

.scroll-indicator {
    position: absolute;
    bottom: 1px; left: 50%;
    transform: translateX(-50%);
    font-size: 1rem;
    color: white;
    animation: bounce 1.6s infinite;
    z-index: 3;
}

@keyframes bounce {
    0%,100% { transform: translate(-50%,0); }
    50% { transform: translate(-50%,-12px); }
}

/* ======================= */
/* Responsive Navbar & Hero */
/* ======================= */
@media (max-width: 768px) {
    .nav-menu { display: none; }
    .hamburger { display: block; }
    .actions { flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 12px; }
    .hero-content h1 { font-size: 2rem; }
    #typed-text { font-size: 1.2rem; }
}
/* ======================= */
/* Buttons */
/* ======================= */
.btn {
    display: inline-block;
    padding: 3px 25px;
    border-radius: 55px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn.primary {
    background: var(--red);
    color: white;
}
.btn.primary:hover {
    background: #c12f3a;
}

.btn.ghost {
    background: transparent;
    color: white;
    border: 2px solid white;
}
.btn.ghost:hover {
    background: white;
    color: var(--navy);
}

/* CTA Quote Button */
.cta-quote {
    background: var(--red);
    color: white;
    padding: 3px 12px;
    border-radius: 15px;
    text-decoration: none;
    font-weight: 700;
    transition: opacity 0.3s ease;
}
.cta-quote:hover { opacity: 0.7; }

/* ======================= */
/* Sections & Containers */
/* ======================= */
.section { padding: 64px 20px; }
.container { max-width: 1150px; margin: 0 auto; }

/* ======================= */
/* About Section */
/* ======================= */
.about .container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 28px;
    align-items: center;
}

.about-text h2 { margin-bottom: 20px; }
.about-text p { margin-bottom: 24px; color: #333; }

.badges {
    display: flex;
    gap: 20px;
    margin-top: 16px;
    list-style: none;
    flex-wrap: wrap;
}

.badges li {
    background: var(--card);
    border-radius: 12px;
    padding: 12px 16px;
    box-shadow: 0 8px 30px rgba(11,26,62,0.08);
    text-align: center;
}

.counter {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--red);
    display: block;
}

.about-card {
    background: var(--card);
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 30px rgba(11,26,62,0.08);
}
.about-card h3 { margin-bottom: 16px; }

.checklist {
    margin-top: 10px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    list-style: none;
}
.checklist li {
    position: relative;
    padding-left: 20px;
    color: #333;
}
.checklist li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--red);
    font-weight: 800;
}

/* ======================= */
/* Services Section */
/* ======================= */
.services .cards {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 18px;
}
.card {
    background: var(--card);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 8px 30px rgba(11,26,62,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(230,57,70,0.35);
}
.card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
    background: #EEF2FF;
    margin-bottom: 12px;
}
.card h3 { margin: 0 0 6px 0; }
.card p { font-size: 0.9rem; color: var(--muted); flex-grow: 1; margin-bottom: 0; }

/* ======================= */
/* Industries Section */
/* ======================= */
.industries .industry-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 12px;
    list-style: none;
}

.industry-grid li {
    background: var(--card);
    padding: 14px 16px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(11,26,62,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}
.industry-grid li:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(230,57,70,0.35);
}

/* ======================= */
/* Responsive Sections */
/* ======================= */
@media (max-width: 980px) {
    .about .container { grid-template-columns: 1fr; }
    .services .cards { grid-template-columns: 1fr 1fr; }
    .industry-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .services .cards,
    .industry-grid { grid-template-columns: 1fr; }
}
/* ======================= */
/* Projects / Gallery */
/* ======================= */
#projects { padding: 100px 20px; background: var(--bg); }

.myGallery { padding: 30px 0; overflow: visible; }
.myGallery .swiper-wrapper { align-items: center; }

.myGallery .swiper-slide {
    box-sizing: border-box;
    padding: 12px;
    border-radius: 19px;
    background: var(--card);
    box-shadow: 0 0px 11px rgba(230,57,71,0.25);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-wrapper {
    position: relative;
    border-radius: 19px;
    overflow: hidden;
}

.photo-wrapper img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 19px;
    display: block;
}

.photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(230,57,70,0.85);
    color: #fff;
    text-align: center;
    padding: 12px;
    font-size: 1rem;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.4s ease;
    border-bottom-left-radius: 19px;
    border-bottom-right-radius: 19px;
    pointer-events: none;
}

.photo-wrapper:hover .photo-caption {
    opacity: 1;
    transform: translateY(0);
}

.myGallery .swiper-slide:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 24px rgba(230,57,70,0.7);
}

/* Responsive height */
@media (max-width: 768px) {
    .photo-wrapper img { height: 200px; }
    .photo-caption { font-size: 0.9rem; padding: 10px; }
}

/* Dark mode for Gallery */
body.dark .myGallery .swiper-slide {
    background: #0b172a;
    box-shadow: 0 0px 11px rgba(230,57,70,0.5);
}
body.dark .photo-caption { background: rgba(230,57,70,0.9); }

/* ======================= */
/* Client Logos / Slider */
/* ======================= */
.logo-text { text-align: left; padding-left: 0; margin-bottom: 10px; }
.client-logo-section { text-align: center; padding: 60px 0; background: #ffffff00; }

.logo-slider {
    overflow: hidden;
    width: 100vw;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
}

.logo-track {
    display: flex;
    width: max-content;
    animation: scroll-strip 25s linear infinite;
}

.client-logo-strip {
    height: 450px;
    flex-shrink: 0;
    filter: drop-shadow(0 4px 100px rgba(230,57,70,0.4));
}

@keyframes scroll-strip {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Dark mode for logos */
body.dark .client-logo-strip {
    filter: drop-shadow(0 8px 20px rgba(230,57,70,0.16));
}

/* ======================= */
/* Gallery / Caption overlay duplicates handled in dark mode */
/* ======================= */
body.dark .myGallery .swiper-slide,
body.dark .card:hover,
body.dark .client-logo-strip,
body.dark .photo-wrapper {
    box-shadow: 0 3px 8px rgba(0,0,0,0.55),
                0 12px 28px rgba(230,57,70,0.14);
    transition: box-shadow 300ms ease;
}

@media (hover: hover) {
    body.dark .myGallery .swiper-slide:hover,
    body.dark .card:hover {
        box-shadow: 0 6px 12px rgba(0,0,0,0.6),
                    0 18px 44px rgba(230,57,70,0.22);
    }
}
/* ======================= */
/* FAQ Section */
/* ======================= */
.faq details {
    background: var(--card);
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 10px;
    box-shadow: 0 8px 30px rgba(11,26,62,0.08);
    transition: background-color 0.3s ease;
}
.faq summary {
    cursor: pointer;
    font-weight: 700;
    outline: none;
}
.faq details[open] { background-color: var(--bg); }
.faq p { margin-top: 10px; color: #333; }

/* ======================= */
/* Contact Form Section */
/* ======================= */
.contact-form-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    align-items: start;
}
.contact-form {
    background: var(--card);
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(11,26,62,0.08);
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #E5E7EB;
    outline: none;
    width: 100%;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 2px rgba(230,57,70,0.2);
}
.contact-form textarea { resize: vertical; }
.contact-form button[type="submit"] { margin-top: 12px; width: auto; }

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.contact-info h4 { margin-bottom: 12px; }
.contact-info p { color: #333; margin-bottom: 8px; }

.map-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 12px;
    overflow: hidden;
}
.map {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0; border-radius: 12px;
}

/* ======================= */
/* Footer and Back-to-top */
/* ======================= */
.footer {
    padding: 7px 20px;
    border-top: 1px solid rgba(11,26,62,0.08);
    text-align: center;
    color: #4b5563;
}
.back-to-top {
    position: fixed;
    right: 16px; bottom: 16px;
    background: var(--navy);
    color: #fff;
    border: none; border-radius: 10px;
    padding: 10px 12px;
    display: none; cursor: pointer;
    z-index: 1001;
    transition: background-color 0.3s ease;
}
.back-to-top.show { display: block; }
.back-to-top:hover { background: #07122a; }

/* ======================= */
/* Floating Actions (Dark & Lang) */
/* ======================= */
.floating-actions {
    position: fixed;
    bottom: 90px; right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}
.floating-actions button {
    width: 50px; height: 50px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, background 0.3s ease;
    border: none; cursor: pointer;
}
.floating-actions button:hover { transform: scale(1.1); }

#dark-toggle-float { background-color: var(--navy); color: #fff; }
#lang-toggle-float { background-color: #f2f2f2; color: var(--navy); }

/* ======================= */
/* WhatsApp Floating Button */
/* ======================= */
.whatsapp-wrapper {
    position: fixed; bottom: 15px; right: 20px;
    display: flex; align-items: center; gap: 7px; z-index: 1000;
}
.whatsapp-bubble {
    background: #d1deec;
    color: #18276d;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 14px; font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(255,0,0,0.2);
    opacity: 0.7;
}
.whatsapp-float img {
    width: 55px; height: 55px;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}
.whatsapp-float img:hover { transform: scale(6.1); }

/* ======================= */
/* Dark Mode Overrides */
/* ======================= */
body.dark {
    --bg: #0B0F1D;
    --card: #0F162D;
    --ink: #F4F6FB;
    --muted: #CBD2E1;
}

body.dark .navbar { background: rgba(11,15,29,0.85); border-color: rgba(255,255,255,0.08); }
body.dark .nav-menu a { color: #E2E8F0; }
body.dark .nav-menu a:hover { color: var(--red); }

body.dark .about-card,
body.dark .card,
body.dark .badges li,
body.dark .industry-grid li,
body.dark .faq details,
body.dark .contact-form { background: var(--card); box-shadow: none; }

body.dark p,
body.dark .about-text p,
body.dark .checklist li,
body.dark .card p,
body.dark .contact-info p { color: #d4d4d4; }

body.dark .faq details[open] { background-color: var(--bg); }
body.dark #dark-toggle-float { background-color: var(--red); color: #fff; }
body.dark #lang-toggle-float { background-color: #ccc; color: var(--navy); }

/* ======================= */
/* Responsive */
/* ======================= */
@media (max-width: 980px) {
    .about .container { grid-template-columns: 1fr; }
    .services .cards, .industry-grid, .gallery { grid-template-columns: 1fr 1fr; }
    .contact-form-wrapper { grid-template-columns: 1fr; }
    .contact-info { margin-top: 20px; }
    .floating-actions { bottom: 130px; }
    .whatsapp-float { bottom: 70px; }
}

@media (max-width: 640px) {
    .navbar { padding: 10px 15px; }
    .nav-menu { display: none; }
    .actions .cta-quote { display: none; }
    .hero-content h1 { font-size: 2rem; }
    #typed-text { font-size: 1.2rem; }
    .hero-cta .btn { padding: 10px 18px; font-size: 0.9rem; }
    .badges { justify-content: center; gap: 15px; }
    .badges li { flex-basis: 150px; }
    .services .cards, .industry-grid, .gallery { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .floating-actions { bottom: 120px; }
    .whatsapp-float { bottom: 60px; }
}
