/* ========================================
   RS TENSILE GROUP - UNIFIED STYLESHEET
   ======================================== */

/* ---- CSS CUSTOM PROPERTIES ---- */
:root {
    /* Primary Colors */
    --color-primary: #0f172a;
    --color-primary-light: #1e293b;
    --color-primary-dark: #020617;

    /* Accent Colors (Warm Amber/Gold) */
    --color-accent: #f59e0b;
    --color-accent-light: #fbbf24;
    --color-accent-dark: #d97706;

    /* Neutrals */
    --color-bg: #fafaf9;
    --color-bg-alt: #f5f5f4;
    --color-surface: #ffffff;
    --color-border: #e7e5e4;
    --color-border-light: #f5f5f4;

    /* Text */
    --color-text: #1c1917;
    --color-text-secondary: #57534e;
    --color-text-muted: #78716c;
    --color-text-light: #a8a29e;

    /* Footer */
    --color-footer: #0c0a09;
    --color-footer-text: #d6d3d1;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Typography */
    --font-display: 'Playfair Display', 'Times New Roman', serif;
    --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --header-height: 80px;
    --section-padding: 100px;
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition-fast); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-primary);
}

.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 20px;
    position: relative;
}

/* ---- ANIMATIONS ---- */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.section-header { text-align: center; margin-bottom: 60px; }

/* ---- BUTTONS ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border-radius: 4px;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.btn-primary-solid {
    background: var(--color-accent);
    color: white;
    border: 2px solid var(--color-accent);
}

.btn-primary-solid:hover {
    background: var(--color-accent-dark);
    border-color: var(--color-accent-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline-light {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
    background: white;
    color: var(--color-primary);
    border-color: white;
}

.btn-primary-nav {
    background: var(--color-accent);
    color: white;
    padding: 10px 24px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    margin-left: 16px;
}

.btn-primary-nav:hover {
    background: var(--color-accent-dark);
    color: white;
}

/* ---- HEADER (UNIFIED LOGIC) ---- */
#mainHeader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999; /* High Z-Index to fix overlap issues */
  background: rgba(255, 255, 255, 0.98);
    padding: 5px 0;
    transition: all var(--transition-base);
}

/* Solid State (Used on Scroll OR for specific pages via JS) */
#mainHeader.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    box-shadow: var(--shadow-md);
}

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

.navbar-brand img {
    height: 50px;
    width: auto;
    transition: opacity var(--transition-fast);
}
.navbar-brand:hover img { opacity: 0.8; }

.navbar-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-link {
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: rgb(0, 0, 0); /* Default for transparent header on dark background */
    position: relative;
    transition: color var(--transition-fast);
}

/* Change text color when header is solid */
#mainHeader.scrolled .nav-link { color: var(--color-text); }

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: all var(--transition-fast);
    transform: translateX(-50%);
}

.nav-link:hover::after, .nav-link.active::after { width: 20px; }
.nav-link:hover, .nav-link.active { color: var(--color-accent); }

/* Mobile toggler */
.navbar-toggler {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: transparent;
}

.toggler-line {
    width: 24px;
    height: 2px;
    background: white; /* Default white */
    transition: all var(--transition-fast);
}

/* Change toggler color when header is solid */
#mainHeader.scrolled .toggler-line { background: var(--color-text); }

/* ---- HERO SECTION (Index Page) ---- */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    max-height: 900px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.92) 0%, rgba(15, 38, 68, 0.87) 50%, rgba(26, 54, 93, 0.85) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
    height: 100%;
    padding-top: var(--header-height);
}

.hero-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 40px;
    height: 100%;
    align-items: center;
    padding: 40px 0;
}

.hero-left {
    max-width: 100%;
    animation: fadeInLeft 0.8s ease-out;
}

.hero-tag {
    display: inline-block;
    padding: 8px 16px;
    background: var(--color-accent);
    color: white;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    color: white;
    margin-bottom: 16px;
    line-height: 1.1;
}

.hero-desc {
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 30px;
    font-weight: 300;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-project-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 26px;
}

.hero-project-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid rgba(248, 250, 252, 0.18);
    background: radial-gradient(circle at top, rgba(248, 250, 252, 0.06), transparent 55%);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.65);
}

.hero-project-card img {
    width: 100%;
    height: 88px;
    object-fit: cover;
    filter: saturate(1.1) contrast(1.05);
    transform: scale(1.02);
    transition: transform var(--transition-slow), filter var(--transition-base);
}

.hero-project-card:hover img {
    transform: scale(1.06);
    filter: saturate(1.25) contrast(1.1);
}

.hero-project-label {
    position: absolute;
    left: 10px;
    bottom: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.82);
    color: #f9fafb;
    font-size: 11px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

/* Hero meta badges */
.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 28px;
}

.hero-meta-item {
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(15, 38, 68, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px);
    color: white;
}

.hero-meta-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.hero-meta-value {
    display: block;
    font-size: 13px;
    font-weight: 600;
}

.hero-trust {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(15, 38, 68, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
}

.hero-trust-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.35);
}

.hero-trust-text {
    white-space: normal;
}

/* ---- CONTACT HERO (Contact Page) ---- */
.contact-hero {
    padding: 160px 0 80px;
    background: var(--color-primary);
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(246, 137, 43, 0.2) 0%, transparent 70%);
    border-radius: 50%;
}

.contact-hero h1 { font-size: 3.5rem; color: white; margin-bottom: 16px; }
.contact-hero p { font-size: 1.25rem; color: rgba(255, 255, 255, 0.8); }

/* ---- TRUST BAR ---- */
.trust-bar { background: var(--color-surface); padding: 80px 0; border-bottom: 1px solid var(--color-border-light); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.trust-item { display: flex; align-items: flex-start; gap: 20px; padding: 24px; border-radius: 8px; transition: all var(--transition-base); }
.trust-item:hover { background: var(--color-bg-alt); transform: translateY(-4px); }
.trust-icon { flex-shrink: 0; width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%); color: white; border-radius: 8px; }
.trust-content { flex: 1; }
.trust-number { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; color: var(--color-primary); line-height: 1; }
.trust-suffix { font-family: var(--font-display); font-size: 2rem; color: var(--color-accent); }
.trust-label { display: block; font-size: 14px; color: var(--color-text-secondary); margin-top: 8px; }

/* ---- ABOUT SECTION ---- */
.about-section { padding: var(--section-padding) 0; background: var(--color-bg); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-visual { position: relative; }
.image-frame { position: relative; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-2xl); }
.about-image { width: 100%; height: 500px; object-fit: cover; transition: transform var(--transition-slow); }
.image-frame:hover .about-image { transform: scale(1.02); }

.floating-badge { position: absolute; bottom: -20px; right: -20px; background: var(--color-accent); color: white; padding: 24px 32px; border-radius: 8px; text-align: center; box-shadow: var(--shadow-xl); }
.badge-number { display: block; font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; line-height: 1; }
.badge-text { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; opacity: 0.9; }
.accent-line { position: absolute; top: -20px; left: -20px; width: 100px; height: 4px; background: var(--color-accent); }

.about-intro { font-size: 1.25rem; color: var(--color-primary); font-weight: 500; margin-bottom: 20px; }
.about-text { color: var(--color-text-secondary); margin-bottom: 32px; line-height: 1.8; }
.about-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.highlight-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 6px; transition: all var(--transition-fast); }
.highlight-item:hover { background: var(--color-surface); transform: translateX(8px); }
.highlight-icon { flex-shrink: 0; width: 24px; height: 24px; background: rgba(246, 137, 43, 0.15); color: var(--color-accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.highlight-item span { font-size: 14px; font-weight: 500; color: var(--color-text); }

/* ---- BRANDS SECTION ---- */
.brands-section { padding: var(--section-padding) 0; background: var(--color-surface); }
.brands-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 32px; }
.brand-card { background: var(--color-bg); border-radius: 12px; overflow: hidden; transition: all var(--transition-base); border: 1px solid var(--color-border-light); }
.brand-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); border-color: var(--color-border); }
.brand-visual { position: relative; height: 200px; background: var(--color-bg-alt); overflow: hidden; }
.brand-image { width: 100%; height: 100%; object-fit: contain; padding: 20px; transition: transform var(--transition-base); }
.brand-card:hover .brand-image { transform: scale(1.05); }
.brand-overlay { position: absolute; inset: 0; background: rgba(26, 54, 93, 0.95); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity var(--transition-base); }
.brand-card:hover .brand-overlay { opacity: 1; }
.brand-info { padding: 28px; }
.brand-name { font-size: 1.25rem; margin-bottom: 12px; color: var(--color-primary); }
.brand-desc { font-size: 14px; color: var(--color-text-secondary); line-height: 1.7; margin-bottom: 16px; }
.brand-meta { display: flex; gap: 8px; }
.meta-item { padding: 4px 12px; background: rgba(246, 137, 43, 0.15); color: var(--color-accent); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; border-radius: 4px; }

/* ---- SERVICES SECTION ---- */
.services-section { padding: var(--section-padding) 0; background: var(--color-bg); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.service-card { background: var(--color-surface); padding: 40px 32px; border-radius: 12px; border: 1px solid var(--color-border-light); transition: all var(--transition-base); position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light)); transform: scaleX(0); transform-origin: left; transition: transform var(--transition-base); }
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); border-color: var(--color-border); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon { width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; background: var(--color-bg); color: var(--color-accent); border-radius: 12px; margin-bottom: 24px; transition: all var(--transition-base); }
.service-card:hover .service-icon { background: var(--color-accent); color: white; }
.service-title { font-size: 1.25rem; margin-bottom: 12px; color: var(--color-primary); }
.service-desc { font-size: 14px; color: var(--color-text-secondary); line-height: 1.7; }

/* ---- LEADERSHIP SECTION ---- */
.leadership-section { padding: var(--section-padding) 0; background: var(--color-surface); }
.leadership-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.leader-image-wrapper { position: relative; max-width: 400px; margin: 0 auto; }
.leader-image { width: 100%; border-radius: 8px; box-shadow: var(--shadow-2xl); }
.leader-frame { position: absolute; inset: -16px; border: 2px solid var(--color-accent); border-radius: 12px; z-index: -1; }
.leadership-text { color: var(--color-text-secondary); line-height: 1.8; margin-bottom: 20px; }
.leader-info { padding-top: 32px; border-top: 1px solid var(--color-border); margin-top: 32px; }
.leader-name { font-size: 1.5rem; color: var(--color-primary); margin-bottom: 4px; }
.leader-title { color: var(--color-accent); font-weight: 600; margin-bottom: 8px; }
.leader-exp { font-size: 14px; color: var(--color-text-muted); }

/* ---- CERTIFICATES SECTION ---- */
.certificates-section { padding: var(--section-padding) 0; background: var(--color-bg); }
.certificates-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.cert-card { background: var(--color-surface); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-md); transition: all var(--transition-base); }
.cert-card:hover { transform: translateY(-8px) scale(1.02); box-shadow: var(--shadow-2xl); }
.cert-image-wrapper { height: 300px; display: flex; align-items: center; justify-content: center; padding: 20px; background: var(--color-bg-alt); }
.cert-image { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform var(--transition-base); }
.cert-card:hover .cert-image { transform: scale(1.05); }

/* ---- PORTFOLIO SECTION ---- */
.portfolio-section { padding: var(--section-padding) 0; background: var(--color-surface); }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.portfolio-item { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; cursor: pointer; }
.portfolio-item:nth-child(3n+1) { grid-row: span 2; aspect-ratio: auto; }
.portfolio-image { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-slow); }
.portfolio-item:hover .portfolio-image { transform: scale(1.1); }
.portfolio-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0%, rgba(26, 54, 93, 0.9) 100%); display: flex; align-items: flex-end; padding: 28px; opacity: 0; transition: opacity var(--transition-base); }
.portfolio-item:hover .portfolio-overlay { opacity: 1; }
.portfolio-info { color: white; width: 100%; }
.portfolio-category { display: inline-block; padding: 4px 12px; background: rgba(246, 137, 43, 0.9); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.portfolio-title { font-size: 1.25rem; color: white; margin-bottom: 8px; }
.portfolio-desc { font-size: 14px; color: rgba(255, 255, 255, 0.8); margin-bottom: 16px; }
.view-btn { width: 44px; height: 44px; background: white; color: var(--color-primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all var(--transition-fast); border: none; cursor: pointer; }
.view-btn:hover { background: var(--color-accent); color: white; transform: scale(1.1); }

/* ---- LIGHTBOX ---- */
.lightbox { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all var(--transition-base); }
.lightbox.active { opacity: 1; visibility: visible; }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.95); }
.lightbox-content { position: relative; width: 90vw; max-width: 1200px; display: flex; align-items: center; justify-content: center; padding: 40px; }
.lightbox-close { position: absolute; top: 20px; right: 20px; width: 48px; height: 48px; background: rgba(255, 255, 255, 0.1); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 10; transition: all var(--transition-fast); cursor: pointer; border: none; }
.lightbox-close:hover { background: var(--color-accent); transform: rotate(90deg); }
.lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 56px; height: 56px; background: rgba(255, 255, 255, 0.1); color: white; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 10; transition: all var(--transition-fast); cursor: pointer; }
.lightbox-nav:hover { background: rgba(255, 255, 255, 0.2); }
.lightbox-nav.prev { left: 20px; }
.lightbox-nav.next { right: 20px; }
.lightbox-image-wrapper { max-width: 100%; max-height: 70vh; display: flex; align-items: center; justify-content: center; }
.lightbox-image { max-width: 100%; max-height: 70vh; object-fit: contain; border-radius: 8px; box-shadow: var(--shadow-2xl); }
.lightbox-info { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); text-align: center; color: white; }
.lightbox-info h3 { color: white; font-size: 1.5rem; margin-bottom: 8px; }
.lightbox-info p { color: rgba(255, 255, 255, 0.7); }
.lightbox-counter { position: absolute; bottom: 100px; left: 50%; transform: translateX(-50%); background: rgba(255, 255, 255, 0.1); padding: 8px 20px; border-radius: 50px; color: white; font-size: 14px; }

/* ---- TESTIMONIALS SECTION ---- */
.testimonials-section { padding: var(--section-padding) 0; background: var(--color-bg); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.testimonial-card { background: var(--color-surface); padding: 40px 32px; border-radius: 12px; border: 1px solid var(--color-border-light); transition: all var(--transition-base); position: relative; }
.testimonial-card::before { content: '"'; position: absolute; top: 20px; right: 30px; font-family: var(--font-display); font-size: 80px; color: var(--color-border); line-height: 1; }
.testimonial-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); border-color: var(--color-border); }
.testimonial-rating { display: flex; gap: 4px; color: #f59e0b; margin-bottom: 20px; }
.testimonial-quote { font-size: 15px; font-style: italic; color: var(--color-text-secondary); line-height: 1.8; margin-bottom: 24px; position: relative; z-index: 1; }
.testimonial-author { display: flex; align-items: center; gap: 16px; }
.author-avatar { width: 48px; height: 48px; background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light)); color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; }
.author-name { font-weight: 600; color: var(--color-text); font-style: normal; }
.author-role { display: block; font-size: 13px; color: var(--color-text-muted); margin-top: 2px; }

/* ---- CTA SECTION ---- */
.cta-section { position: relative; padding: 100px 0; background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%); overflow: hidden; }
.cta-bg-pattern { position: absolute; inset: 0; background: radial-gradient(circle at 20% 50%, rgba(246, 137, 43, 0.2) 0%, transparent 40%), radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 30%); pointer-events: none; }
.cta-content { position: relative; text-align: center; max-width: 600px; margin: 0 auto; }
.cta-title { font-size: clamp(2rem, 4vw, 2.5rem); color: white; margin-bottom: 20px; }
.cta-text { font-size: 1.1rem; color: rgba(255, 255, 255, 0.85); margin-bottom: 40px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---- CONTACT PAGE FORM ---- */
.contact-main { padding: 80px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 380px; gap: 60px; align-items: flex-start; }

.form-wrapper { background: var(--color-surface); padding: 48px; border-radius: 12px; box-shadow: var(--shadow-lg); border: 1px solid var(--color-border); }
.form-group { margin-bottom: 24px; position: relative; }
.form-group label { display: block; font-size: 13px; font-weight: 600; color: var(--color-text-secondary); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.common-input { width: 100%; padding: 16px 20px; font-size: 16px; font-family: var(--font-body); border: 1px solid var(--color-border); border-radius: 6px; background: var(--color-bg); color: var(--color-text); transition: all var(--transition-base); }
.common-input:focus { outline: none; border-color: var(--color-accent); background: var(--color-surface); box-shadow: 0 0 0 3px rgba(246, 137, 43, 0.1); }
.common-input::placeholder { color: var(--color-text-muted); }

.rn-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; background: var(--color-accent); color: white; border: none; padding: 16px 32px; font-size: 15px; font-weight: 600; border-radius: 6px; cursor: pointer; transition: all var(--transition-base); width: 100%; }
.rn-btn:hover { background: #e67e1f; transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.form-response-message { padding: 16px; border-radius: 8px; margin-bottom: 24px; font-size: 14px; font-weight: 500; }
.form-response-message.success { background: #e6fffa; color: #047857; border: 1px solid #9ae6b4; }
.form-response-message.error { background: #fff5f5; color: #c53030; border: 1px solid #feb2b2; }

/* ---- INFO CARDS (Contact Page) ---- */
.info-card { background: var(--color-surface); padding: 28px; border-radius: 8px; border: 1px solid var(--color-border); margin-bottom: 24px; transition: all var(--transition-base); }
.info-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--color-accent); }
.info-icon { width: 48px; height: 48px; background: rgba(246, 137, 43, 0.1); color: var(--color-accent); border-radius: 8px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.info-card h3 { font-size: 1.1rem; margin-bottom: 12px; font-family: var(--font-body); font-weight: 600; }
.info-card p { font-size: 14px; color: var(--color-text-secondary); margin-bottom: 0; }
.info-card a { color: var(--color-accent); font-weight: 500; }

/* Contact map card */
.contact-map-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-xl);
    background: var(--color-bg-alt);
    margin-bottom: 2rem;
}

.contact-map-frame {
    width: 100%;
    height: 420px;
    border: 0;
    display: block;
}

.contact-map-badge {
    position: absolute;
    left: 18px;
    bottom: 18px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(12, 10, 9, 0.85);
    color: rgba(249, 250, 251, 0.95);
    font-size: 11px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* ---- WHY SECTION ---- */
.why-section { padding: 80px 0; background: var(--color-surface); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { padding: 24px; border: 1px solid var(--color-border); border-radius: 8px; transition: all var(--transition-base); }
.feature-card:hover { border-color: var(--color-accent); }
.feature-card h4 { font-size: 1.1rem; font-family: var(--font-body); margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.feature-card h4 i { color: var(--color-accent); }
.feature-card p { font-size: 14px; color: var(--color-text-secondary); margin: 0; }

/* Why section layout (home) */
.why-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
}

.why-intro {
    margin-bottom: 24px;
    color: var(--color-text-secondary);
    line-height: 1.8;
    font-size: 0.98rem;
}

.why-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.metric-card {
    padding: 14px 16px;
    border-radius: 10px;
    background: var(--color-bg);
    border: 1px solid var(--color-border-light);
}

.metric-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    margin-bottom: 6px;
}

.metric-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--color-primary);
}

.metric-bar {
    margin-top: 10px;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: var(--color-border-light);
    overflow: hidden;
}

.metric-bar-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
}

.why-layout .features-grid {
    margin-top: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.why-layout .feature-card {
    background: var(--color-bg);
}

.india-map-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    padding: 24px 24px 28px;
    background:
        radial-gradient(circle at 20% 0%, rgba(246, 137, 43, 0.15) 0%, transparent 55%),
        radial-gradient(circle at 80% 100%, rgba(26, 54, 93, 0.45) 0%, rgba(26, 54, 93, 0.95) 60%);
    color: white;
    box-shadow: var(--shadow-xl);
}

.india-map-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}

.india-map-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: #f9fafb;
}

.india-map-badge {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.45);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.india-map-body {
    margin-top: 8px;
    font-size: 0.9rem;
    color: rgba(241, 245, 249, 0.9);
}

.india-map-cities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 18px;
}

.india-map-city-pill {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.4);
    font-size: 11px;
}

.india-map-footnote {
    font-size: 11px;
    color: rgba(226, 232, 240, 0.85);
}

.india-map-orbit {
    position: absolute;
    inset: 16px;
    border-radius: inherit;
    border: 1px dashed rgba(148, 163, 184, 0.4);
    pointer-events: none;
}

.india-map-dot {
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #fbbf24;
    box-shadow: 0 0 0 5px rgba(234, 179, 8, 0.35);
}

.india-map-dot.north { top: 20%; left: 40%; }
.india-map-dot.west { top: 52%; left: 28%; }
.india-map-dot.south { top: 70%; left: 46%; }
.india-map-dot.east { top: 48%; left: 65%; }

/* ---- FOOTER ---- */
.main-footer { background: var(--color-footer); color: var(--color-footer-text); padding: 80px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 30px; padding-bottom: 30px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.footer-logo { height: 50px; width: auto; margin-bottom: 20px; }
.footer-desc { font-size: 14px; line-height: 1.7; margin-bottom: 24px; color: rgba(255, 255, 255, 0.7); }
.footer-social { display: flex; gap: 12px; }
.social-link { width: 40px; height: 40px; background: rgba(255, 255, 255, 0.1); color: var(--color-footer-text); border-radius: 8px; display: flex; align-items: center; justify-content: center; transition: all var(--transition-fast); }
.social-link:hover { background: var(--color-accent); color: white; transform: translateY(-3px); }
.footer-title { font-family: var(--font-body); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: white; margin-bottom: 24px; }
.footer-links nav { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { font-size: 14px; color: rgba(255, 255, 255, 0.7); transition: all var(--transition-fast); }
.footer-links a:hover { color: var(--color-accent); padding-left: 8px; }
.contact-item { display: flex; gap: 16px; margin-bottom: 20px; }
.contact-item svg, .contact-item i { flex-shrink: 0; color: var(--color-accent); margin-top: 4px; }
.contact-item div { font-size: 14px; line-height: 1.5; }
.contact-item a { color: rgba(255, 255, 255, 0.9); transition: color var(--transition-fast); }
.contact-item a:hover { color: var(--color-accent); }
.footer-bottom { display: flex; justify-content: center; align-items: center; padding-top: 30px; font-size: 13px; }
.copyright, .credit { color: rgba(255, 255, 255, 0.5); }
.footer-bottom a { color: var(--color-accent); }
.footer-bottom a:hover { text-decoration: underline; }

/* ---- SCROLL TO TOP ---- */
.scroll-top-btn { position: fixed; bottom: 30px; right: 30px; width: 50px; height: 50px; background: var(--color-accent); color: white; border-radius: 8px; display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(20px); transition: all var(--transition-base); z-index: 100; border: none; cursor: pointer; }
.scroll-top-btn.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top-btn:hover { background: var(--color-accent-dark); transform: translateY(-5px); }

/* ---- RESPONSIVE ---- */
@media (max-width: 1200px) {
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .services-grid, .certificates-grid, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}

@media (max-width: 991px) {
    :root { --section-padding: 80px; --header-height: 74px; }
    
    .navbar-toggler { display: flex; }
    .navbar-collapse { position: fixed; top: 0; right: 0; width: 300px; height: 100vh; background: var(--color-surface); padding: 80px 30px 30px; transform: translateX(100%); transition: transform var(--transition-base); box-shadow: var(--shadow-2xl); z-index: 9998; }
    .navbar-collapse.show { transform: translateX(0); }
    .navbar-nav { flex-direction: column; gap: 0; }
    .nav-link { padding: 16px 0; color: var(--color-text) !important; border-bottom: 1px solid var(--color-border-light); }
    .toggler-line { background: var(--color-text) !important; } /* Force dark toggler for mobile */
    .btn-primary-nav { margin-left: 0; margin-top: 20px; width: 100%; text-align: center; }
    
    .about-grid, .leadership-grid, .contact-grid { grid-template-columns: 1fr; gap: 50px; }
    .about-visual { order: -1; }
    .about-image { height: 400px; }
    
    .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
    .portfolio-item:nth-child(3n+1) { grid-row: auto; aspect-ratio: 4/3; }
}

@media (max-width: 768px) {
    :root { --section-padding: 60px; }
    
    .hero { min-height: 500px; }
    
    .hero-actions, .cta-actions { flex-direction: column; }
    .btn { width: 100%; }
    
    .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .trust-item { flex-direction: column; text-align: center; padding: 20px 16px; }
    .trust-number { font-size: 2rem; }
    
    .brands-grid, .services-grid, .certificates-grid, .testimonials-grid, .portfolio-grid, .features-grid { grid-template-columns: 1fr; }
    .portfolio-item { aspect-ratio: 4/3; }
    
    .lightbox-content { padding: 20px; }
    .lightbox-nav { width: 44px; height: 44px; }
    .lightbox-nav.prev { left: 10px; }
    .lightbox-nav.next { right: 10px; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    
    .form-wrapper { padding: 24px; }
}

@media (max-width: 480px) {
    .hero-actions, .cta-actions { flex-direction: column; }
    .btn { width: 100%; }
    .about-highlights { grid-template-columns: 1fr; }
    .floating-badge { position: relative; bottom: auto; right: auto; margin-top: 20px; display: inline-block; }
    .accent-line { display: none; }
}

        /* Hero Form Styles */
        .hero-form-wrapper {
            display: flex;
            align-items: center;
            justify-content: center;
            animation: fadeInRight 0.8s ease-out;
        }

        .hero-form-card {
            background: rgba(255, 255, 255, 0.98);
            padding: 30px;
            border-radius: 12px;
            width: 100%;
            max-width: 420px;
            min-width: 320px;
            max-height: calc(100vh - 120px);
            overflow-y: auto;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
            backdrop-filter: blur(10px);
        }

        .hero-form-card h3 {
            font-size: 1.25rem;
            margin-bottom: 18px;
            text-align: center;
            color: var(--color-primary);
        }

        .hero-form-title {
            font-size: 1.25rem;
            margin-bottom: 6px;
            text-align: center;
            color: var(--color-primary);
            font-weight: 600;
        }

        .hero-form-subtitle {
            font-size: 0.9rem;
            color: var(--color-text-secondary);
            text-align: center;
            margin-bottom: 16px;
            line-height: 1.4;
        }

        .hero-form-card .form-response-message {
            padding: 10px 12px;
            border-radius: 6px;
            margin-bottom: 16px;
            font-size: 13px;
            text-align: center;
        }

        .form-response-message.success {
            background: #e6fffa;
            color: #047857;
            border: 1px solid #9ae6b4;
        }

        .form-response-message.error {
            background: #fff5f5;
            color: #c53030;
            border: 1px solid #feb2b2;
        }

        .hero-form-card .common-input,
        .hero-form-card .form-control {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid var(--color-border);
            border-radius: 6px;
            font-size: 13px;
            font-family: var(--font-body);
            transition: all 0.3s;
        }

        .hero-form-card .common-input:focus,
        .hero-form-card .form-control:focus {
            border-color: var(--color-accent);
            box-shadow: 0 0 0 3px rgba(246, 137, 43, 0.1);
            outline: none;
        }

        .hero-form-card .form-group-hero textarea {
            resize: vertical;
            min-height: 80px;
        }

        .hero-form-card .btn-hero-submit {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }

        .hero-form-card .icon-right {
            display: inline-flex;
            align-items: center;
        }

        .w-100 {
            width: 100%;
        }

        .mt-2 {
            margin-top: 12px;
        }

        .mb-3 {
            margin-bottom: 18px;
        }

        .mb-4 {
            margin-bottom: 24px;
        }

        /* Responsive: Stack on tablets/mobile */
        @media (max-width: 1199px) {
            .hero-content-wrapper {
                grid-template-columns: 1fr 380px;
                gap: 30px;
                padding: 30px 0;
            }

            .hero-title {
                font-size: clamp(1.6rem, 4vw, 3rem);
            }
        }

        @media (max-width: 991px) {
    .hero-content-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 0;
        max-height: none;
    }

            .hero-form-card {
                max-width: 100%;
                padding: 25px;
                max-height: auto;
            }

    .hero-title {
        font-size: clamp(1.5rem, 3vw, 2.5rem);
    }
        }

        @media (max-width: 768px) {
            .hero {
                min-height: auto;
                padding: 20px 0;
            }

            .hero .container {
                padding: 20px 15px;
            }

            .hero-content-wrapper {
                padding: 20px 0;
                gap: 20px;
            }

            .hero-form-card {
                padding: 20px;
            }

            .hero-form-card h3 {
                font-size: 1.1rem;
                margin-bottom: 14px;
            }

            .form-group-hero {
                margin-bottom: 12px;
            }

            .btn-hero-submit {
                padding: 10px;
                font-size: 13px;
            }
        }

        @media (max-width: 480px) {
            .hero-title {
                font-size: clamp(1.3rem, 2.5vw, 2rem);
            }

            .hero-form-card {
                padding: 16px;
            }

            .hero-form-card h3 {
                font-size: 1rem;
                margin-bottom: 12px;
            }

            .form-group-hero label {
                font-size: 10px;
                margin-bottom: 4px;
            }

            .form-group-hero input,
            .form-group-hero textarea {
                padding: 8px 10px;
                font-size: 12px;
            }

            .btn-hero-submit {
                padding: 9px;
                font-size: 12px;
            }
        }

        .form-group-hero {
            margin-bottom: 14px;
        }

        .form-group-hero label {
            display: block;
            font-size: 11px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 5px;
            color: var(--color-text-secondary);
        }

        .form-group-hero input,
        .form-group-hero textarea {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid var(--color-border);
            border-radius: 6px;
            font-size: 13px;
            transition: all 0.3s;
        }

        .form-group-hero input:focus,
        .form-group-hero textarea:focus {
            border-color: var(--color-accent);
            box-shadow: 0 0 0 3px rgba(246, 137, 43, 0.1);
            outline: none;
        }

        .btn-hero-submit {
            width: 100%;
            padding: 12px;
            background: var(--color-accent);
            color: white;
            border: none;
            border-radius: 6px;
            font-weight: 600;
            font-size: 14px;
            cursor: pointer;
            transition: background 0.3s;
        }

        .btn-hero-submit:hover {
            background: var(--color-accent-dark);
        }

        .form-response-hero {
            padding: 10px;
            border-radius: 6px;
            margin-bottom: 15px;
            font-size: 13px;
            text-align: center;
        }

        .form-response-hero.success {
            background: #e6fffa;
            color: #047857;
            border: 1px solid #9ae6b4;
        }

        .form-response-hero.error {
            background: #fff5f5;
            color: #c53030;
            border: 1px solid #feb2b2;
        }