/* ============================================
   PURI BROTHERS — CHA Website
   Light Theme | Clean | Professional
   ============================================ */

:root {
    --bg: #ffffff;
    --bg-light: #f7f8fa;
    --bg-card: #ffffff;
    --accent: #1a6db5;
    --accent-hover: #155a96;
    --accent-light: rgba(26, 109, 181, 0.08);
    --accent-soft: rgba(26, 109, 181, 0.12);
    --green: #2a9d5c;
    --green-light: rgba(42, 157, 92, 0.08);
    --gradient-brand: linear-gradient(135deg, #1a6db5, #2a9d5c);
    --dark: #0f1724;
    --dark-soft: #1a2536;
    --text: #4a5568;
    --text-light: #718096;
    --text-dark: #1a202c;
    --border: #e8ecf1;
    --border-light: #f0f3f7;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.1);
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: clip;
    -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; outline: none; background: none; font-family: var(--font); }
input, textarea, select { font-family: var(--font); }

.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-light { background: var(--bg-light); }
.section-dark { background: var(--dark); }
.text-accent { color: var(--accent); }
.hero-content .text-accent {
    background: linear-gradient(135deg, #4db8ff, #5de6a8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hidden { display: none !important; }

/* Section Tag */
.section-tag {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 14px; font-weight: 600; color: var(--accent);
    margin-bottom: 14px; text-transform: uppercase; letter-spacing: 1.5px;
}
.section-tag.center { justify-content: center; width: 100%; }
.section-tag.white { color: #fff; }
.tag-icon { font-size: 10px; }
.section-tag.white .tag-icon { color: #fff; }

.section-header { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.section-header h2 {
    font-family: var(--font-heading);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700; color: var(--text-dark); line-height: 1.2; margin-bottom: 14px;
}
.section-header p { font-size: 16px; color: var(--text); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 30px; border-radius: 50px; font-size: 15px;
    font-weight: 600; transition: var(--transition); border: 2px solid transparent;
}
.btn-sm { padding: 10px 22px; font-size: 14px; }
.btn-primary { background: var(--gradient-brand); color: #fff; border-color: transparent; }
.btn-primary:hover {
    transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26, 109, 181, 0.35);
    opacity: 0.95;
}
.btn-white {
    background: rgba(255,255,255,0.15); color: #fff;
    border-color: rgba(255,255,255,0.3); backdrop-filter: blur(10px);
}
.btn-white:hover { background: #fff; color: var(--dark); transform: translateY(-2px); }
.btn-outline { border: 2px solid var(--dark); color: var(--dark); background: transparent; }
.btn-outline:hover { background: var(--dark); color: #fff; transform: translateY(-2px); }
.btn-full { width: 100%; justify-content: center; }

/* Preloader */
#preloader {
    position: fixed; inset: 0; background: #fff;
    display: flex; align-items: center; justify-content: center;
    z-index: 99999; transition: opacity 0.5s, visibility 0.5s;
}
#preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader { position: relative; width: 72px; height: 72px; }
.loader-spinner {
    position: absolute; inset: 0; border: 3px solid var(--border);
    border-top-color: var(--accent); border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
.loader-logo {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%); width: 36px; height: 36px; object-fit: contain;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Navbar */
#navbar {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 1000; padding: 14px 0; transition: var(--transition); background: transparent;
}
#navbar.scrolled {
    background: rgba(255,255,255,0.95); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border); padding: 8px 0; box-shadow: var(--shadow-sm);
}
.nav-container {
    max-width: 1240px; margin: 0 auto; padding: 0 24px;
    display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 1px; }
.nav-logo img { height: 72px; width: auto; }
.logo-default { display: block; }
.logo-scrolled { display: none; }
#navbar.scrolled .logo-default { display: none; }
#navbar.scrolled .logo-scrolled { display: block; }
.logo-text { display: flex; flex-direction: column; padding-top: 6px; }
.logo-name { font-family: var(--font-heading); font-size: 17px; font-weight: 700; color: #fff; line-height: 1.1; }
.logo-tagline { font-size: 10px; color: rgba(255,255,255,0.7); letter-spacing: 0.5px; }
#navbar.scrolled .logo-name { color: var(--text-dark); }
#navbar.scrolled .logo-tagline { color: var(--text-light); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-close-wrap { display: none; }
.nav-links a {
    padding: 8px 16px; font-size: 14px; font-weight: 500;
    color: rgba(255,255,255,0.8); border-radius: 8px; transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255,255,255,0.1); }
#navbar.scrolled .nav-links a { color: var(--text); }
#navbar.scrolled .nav-links a:hover,
#navbar.scrolled .nav-links a.active { color: var(--accent); background: var(--accent-light); }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.nav-phone {
    display: flex; align-items: center; gap: 6px;
    font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.8);
}
#navbar.scrolled .nav-phone { color: var(--text); }
.nav-phone:hover { color: var(--accent); }
.nav-actions .btn-primary { display: none; }
#navbar.scrolled .nav-actions .btn-primary { display: inline-flex; }

.hamburger { display: none; flex-direction: column; gap: 5px; width: 26px; z-index: 1001; }
.hamburger span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: var(--transition); }
#navbar.scrolled .hamburger span { background: var(--text-dark); }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
#hero {
    position: relative; min-height: 100vh;
    display: flex; flex-direction: column; justify-content: center; overflow: hidden;
}
.hero-slider { position: absolute; inset: 0; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s ease; }
.slide.active { opacity: 1; }
.slide-bg {
    width: 100%; height: 100%; background-size: cover; background-position: center;
    transform: scale(1.08); transition: transform 8s ease;
}
.slide.active .slide-bg { transform: scale(1); }

#slide1 .slide-bg { background-image: url('assets/hero1.jpg'); }
#slide2 .slide-bg { background-image: url('assets/hero2.jpg'); }
#slide3 .slide-bg { background-image: url('assets/hero3.jpg'); }

.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, rgba(15,23,36,0.88) 0%, rgba(15,23,36,0.65) 100%);
    z-index: 1;
}
.hero-wrapper {
    position: relative; z-index: 2; padding-top: 120px; padding-bottom: 60px;
    display: flex; align-items: center; justify-content: center; min-height: 100vh;
}
.hero-content { max-width: 800px; }
.hero-content.centered { text-align: center; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 20px; background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15); border-radius: 50px;
    font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.9);
    margin-bottom: 24px; backdrop-filter: blur(10px);
}
.badge-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero-content h1 {
    font-family: var(--font-heading); font-size: clamp(34px, 5.5vw, 58px);
    font-weight: 700; color: #fff; line-height: 1.12; margin-bottom: 20px;
}
.hero-sub {
    font-size: clamp(15px, 1.8vw, 17px); color: rgba(255,255,255,0.75);
    max-width: 600px; margin: 0 auto 36px; line-height: 1.8;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.hero-info-bar {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
    background: rgba(255,255,255,0.08); backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-lg); padding: 28px 32px;
}
.hero-info { display: flex; align-items: center; gap: 14px; }
.info-icon {
    width: 44px; height: 44px; background: var(--gradient-brand); border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 18px; flex-shrink: 0;
}
.hero-info strong { display: block; font-size: 15px; color: #fff; font-weight: 700; }
.hero-info span { font-size: 13px; color: rgba(255,255,255,0.6); }

.slider-controls {
    position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
    z-index: 3; display: flex; align-items: center; gap: 16px;
}
.slider-btn {
    width: 42px; height: 42px; border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2); color: #fff;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition); backdrop-filter: blur(10px); background: rgba(255,255,255,0.05);
}
.slider-btn:hover { background: var(--accent); border-color: var(--accent); }
.slider-dots { display: flex; gap: 6px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.3); cursor: pointer; transition: var(--transition); }
.dot.active { background: var(--accent); width: 28px; border-radius: 8px; }

/* Marquee */
.marquee-section { background: var(--dark); padding: 16px 0; overflow: hidden; }
.marquee-track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
.marquee-content { display: flex; gap: 48px; padding-right: 48px; }
.marquee-content span {
    display: flex; align-items: center; gap: 10px;
    font-size: 14px; font-weight: 600; color: rgba(255,255,255,0.7);
    white-space: nowrap; text-transform: uppercase; letter-spacing: 1px;
}
.marquee-content span i { color: var(--accent); font-size: 8px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-images { position: relative; }
.about-img-main { border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-img-main img { width: 100%; height: 540px; object-fit: cover; }
.about-img-secondary { display: none; }
.about-exp-badge {
    position: absolute; top: -20px; left: -20px;
    background: var(--gradient-brand); color: #fff; padding: 22px; border-radius: var(--radius-lg);
    text-align: center; box-shadow: 0 8px 24px rgba(26, 109, 181, 0.3);
}
.exp-num { font-family: var(--font-heading); font-size: 42px; font-weight: 700; display: block; line-height: 1; }
.exp-num sup { font-size: 20px; }
.exp-label { font-size: 12px; font-weight: 500; }

.about-content h2 {
    font-family: var(--font-heading); font-size: clamp(26px, 3.5vw, 38px);
    font-weight: 700; color: var(--text-dark); line-height: 1.2; margin-bottom: 20px;
}
.about-lead { font-size: 16px; margin-bottom: 12px; }
.about-content > p { margin-bottom: 28px; font-size: 15px; line-height: 1.8; }
.about-highlights { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 28px; }
.highlight { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--text-dark); }
.highlight i { color: var(--accent); font-size: 16px; }

/* Modes (Split Layout) */
.modes-split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.modes-left h2 {
    font-family: var(--font-heading); font-size: clamp(26px, 3.5vw, 40px);
    font-weight: 700; color: var(--text-dark); line-height: 1.2; margin-bottom: 16px;
}
.modes-desc { font-size: 15px; margin-bottom: 24px; line-height: 1.7; }
/* 3D Stacked Cards */
.card-stack {
    margin-top: 40px;
    position: relative;
}
.stack-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 8px;
    cursor: pointer;
    overflow: hidden;
}
.stack-card::before {
    content: '';
    position: absolute; inset: 0;
    background: var(--gradient-brand);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

/* Active card */
.stack-card.active {
    box-shadow: 0 16px 48px rgba(26, 109, 181, 0.25);
    border-color: transparent;
}
.stack-card.active::before { opacity: 1; }

/* Inactive cards */
.stack-card:not(.active):hover {
    border-color: var(--accent);
}

.stack-card-inner {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 24px;
    position: relative;
    z-index: 1;
}

.stack-icon {
    width: 48px; height: 48px; flex-shrink: 0;
    background: var(--accent-light);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: var(--accent); font-size: 20px;
    transition: all 0.4s ease;
}
.stack-card.active .stack-icon {
    background: rgba(255,255,255,0.2);
    color: #fff;
}

.stack-info { flex: 1; min-width: 0; }
.stack-info h3 {
    font-family: var(--font-heading);
    font-size: 16px; font-weight: 700;
    color: var(--text-dark);
    transition: all 0.4s ease;
}
.stack-card.active .stack-info h3 { color: #fff; }
.stack-card:not(.active) .stack-info p { color: var(--text); }

.stack-info p {
    font-size: 13px; line-height: 1.6;
    color: rgba(255,255,255,0.85);
    margin-top: 6px;
}

.stack-arrow {
    width: 34px; height: 34px; flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-light); font-size: 13px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.stack-card.active .stack-arrow {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.3);
    color: #fff;
    transform: rotate(-45deg) scale(1.1);
}
.stack-card:not(.active):hover .stack-arrow {
    border-color: var(--accent);
    color: var(--accent);
}

/* Right Image — 3D Stack */
.modes-right { position: sticky; top: 100px; align-self: start; height: fit-content; }
.modes-image-stack {
    position: relative;
    height: 580px;
    perspective: 1200px;
    overflow: hidden;
    border-radius: var(--radius-xl);
}
.mode-img-card {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    backface-visibility: hidden;
}
.mode-img-card img {
    width: 100%; height: 100%;
    object-fit: cover;
}

/* Stack positions */
.mode-img-card[data-pos="active"] {
    z-index: 4;
    transform: translateZ(0) rotateY(0) scale(1);
    opacity: 1;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.mode-img-card[data-pos="next"] {
    z-index: 3;
    transform: translateX(20px) translateZ(-40px) scale(0.94);
    opacity: 0.6;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.mode-img-card[data-pos="back"] {
    z-index: 2;
    transform: translateX(40px) translateZ(-80px) scale(0.88);
    opacity: 0.3;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.mode-img-card[data-pos="hidden"] {
    z-index: 1;
    transform: translateX(60px) translateZ(-120px) scale(0.82);
    opacity: 0;
}

/* Dots */
.mode-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}
.mode-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    cursor: pointer;
    transition: all 0.4s ease;
    padding: 0;
}
.mode-dot.active {
    background: var(--accent);
    width: 32px;
    border-radius: 8px;
}

/* Services Grid */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.service-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 36px 28px; transition: var(--transition); position: relative; overflow: hidden;
}
.service-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--gradient-brand); transform: scaleX(0); transition: var(--transition); transform-origin: left;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-num {
    position: absolute; top: 16px; right: 20px;
    font-family: var(--font-heading); font-size: 52px; font-weight: 700;
    color: var(--border-light); line-height: 1;
}
.service-icon {
    width: 52px; height: 52px; background: var(--accent-light); border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: var(--accent); margin-bottom: 18px;
}
.service-card h3 { font-family: var(--font-heading); font-size: 17px; font-weight: 700; color: var(--text-dark); margin-bottom: 10px; }
.service-card p { font-size: 14px; line-height: 1.7; }

/* Why Choose Us */
.why-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 60px; align-items: start; }
.why-left h2 { font-family: var(--font-heading); font-size: clamp(28px, 4vw, 42px); font-weight: 700; color: #fff; line-height: 1.2; margin-bottom: 16px; }
.why-left p { font-size: 16px; color: rgba(255,255,255,0.7); line-height: 1.7; }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.why-card {
    background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius-lg); padding: 28px 24px; transition: var(--transition);
}
.why-card:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15); transform: translateY(-4px); }
.why-icon {
    width: 48px; height: 48px; background: var(--gradient-brand); border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 20px; margin-bottom: 16px;
}
.why-card h3 { font-family: var(--font-heading); font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.why-card p { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.6; }

/* Stats */
.stats-section { text-align: center; }
.stats-header { max-width: 600px; margin: 0 auto 48px; }
.stats-header h2 {
    font-family: var(--font-heading); font-size: clamp(28px, 4vw, 42px);
    font-weight: 700; color: var(--text-dark); line-height: 1.2; margin-bottom: 14px;
}
.stats-header p { font-size: 16px; }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-box {
    background: var(--bg-light); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 36px 24px; text-align: center; transition: var(--transition);
}
.stat-box:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.stat-num {
    font-family: var(--font-heading); font-size: 44px; font-weight: 700;
    color: var(--accent); line-height: 1; margin-bottom: 8px;
}
.stat-icon-box { font-size: 44px; color: var(--accent); margin-bottom: 8px; }
.stat-label { font-size: 13px; color: var(--text-light); text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 32px; }
.contact-form {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-xl); padding: 40px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { display: flex; flex-direction: column; margin-bottom: 8px; }
.contact-form .btn-full { margin-top: 16px; }
.contact-sidebar { gap: 16px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text-dark); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
    padding: 12px 16px; background: var(--bg-light); border: 1px solid var(--border);
    border-radius: var(--radius); color: var(--text-dark); font-size: 14px;
    transition: var(--transition); outline: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
    border-color: var(--accent); box-shadow: 0 0 0 3px rgba(232, 67, 42, 0.08);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-group select { cursor: pointer; }
.form-success {
    text-align: center; padding: 40px; background: var(--bg-card);
    border-radius: var(--radius-xl); border: 1px solid #d4edda;
}
.form-success i { font-size: 48px; color: #28a745; margin-bottom: 12px; }
.form-success h3 { font-family: var(--font-heading); color: var(--text-dark); margin-bottom: 8px; }

/* Contact Sidebar */
.contact-sidebar { display: flex; flex-direction: column; gap: 20px; }
.contact-cta-card {
    background: var(--dark); color: #fff; border-radius: var(--radius-xl);
    padding: 36px; text-align: center;
}
.cta-icon { font-size: 36px; color: var(--accent); margin-bottom: 16px; }
.contact-cta-card h3 { font-family: var(--font-heading); font-size: 20px; margin-bottom: 10px; }
.contact-cta-card p { font-size: 14px; color: rgba(255,255,255,0.7); margin-bottom: 20px; }
.contact-quick-info {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-xl); padding: 28px; display: flex; flex-direction: column; gap: 20px;
}
.quick-info-item { display: flex; align-items: flex-start; gap: 14px; }
.quick-info-item i { color: var(--accent); font-size: 18px; margin-top: 2px; }
.quick-info-item strong { display: block; font-size: 14px; color: var(--text-dark); margin-bottom: 2px; }
.quick-info-item span { font-size: 13px; color: var(--text-light); }

/* Locations */
.locations-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.location-card {
    background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-xl);
    padding: 32px; transition: var(--transition); position: relative;
}
.location-card:hover { box-shadow: var(--shadow-lg); border-color: transparent; transform: translateY(-4px); }
.location-badge {
    position: absolute; top: 16px; right: 16px;
    padding: 4px 14px; background: var(--accent-light); color: var(--accent);
    border-radius: 20px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
}
.location-card h3 {
    font-family: var(--font-heading); font-size: 20px; font-weight: 700;
    color: var(--text-dark); margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}
.location-card h3 i { color: var(--accent); font-size: 16px; }
.location-details { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.location-details p {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 13px; margin-bottom: 8px; color: var(--text); line-height: 1.5;
}
.location-details p i { color: var(--accent); margin-top: 3px; width: 14px; flex-shrink: 0; font-size: 12px; }
.location-person { display: flex; align-items: center; gap: 12px; }
.location-person > i { color: var(--accent); font-size: 18px; }
.location-person strong { display: block; font-size: 14px; color: var(--text-dark); }
.location-person a { font-size: 13px; color: var(--accent); }

/* Footer */
#footer { background: var(--dark); padding: 72px 0 0; color: rgba(255,255,255,0.6); }
.footer-grid {
    display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px;
    padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo-wrap { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo { height: 72px; }
.footer-brand h3 { font-family: var(--font-heading); font-size: 18px; color: #fff; }
.footer-brand > p { font-size: 14px; margin-bottom: 20px; line-height: 1.7; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
    width: 38px; height: 38px; background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.6); font-size: 14px; transition: var(--transition);
}
.footer-social a:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-3px); }
.footer-col h4 { font-family: var(--font-heading); font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 18px; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,0.5); }
.footer-col a:hover { color: var(--accent); padding-left: 3px; }
.footer-contact li {
    display: flex; align-items: flex-start; gap: 8px;
    font-size: 14px; color: rgba(255,255,255,0.5);
}
.footer-contact i { color: var(--accent); margin-top: 4px; font-size: 12px; }
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center; padding: 20px 0;
}
.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.4); }
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a { font-size: 13px; color: rgba(255,255,255,0.4); }
.footer-bottom-links a:hover { color: var(--accent); }

/* Chat Widget */
.chat-widget { position: fixed; bottom: 24px; right: 24px; z-index: 9999; }
.chat-toggle {
    width: 58px; height: 58px; border-radius: 50%; background: var(--gradient-brand);
    color: #fff; font-size: 22px; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 20px rgba(26, 109, 181, 0.35); transition: var(--transition); position: relative;
}
.chat-toggle:hover { transform: scale(1.08); }
.chat-badge {
    position: absolute; top: -2px; right: -2px; width: 20px; height: 20px;
    background: var(--dark); color: #fff; font-size: 11px; font-weight: 700;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.chat-window {
    position: absolute; bottom: 72px; right: 0; width: 370px; max-height: 500px;
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl); display: none; flex-direction: column; overflow: hidden;
}
.chat-window.open { display: flex; animation: chatSlide 0.3s ease; }
@keyframes chatSlide { from { opacity: 0; transform: translateY(12px) scale(0.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
.chat-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; background: var(--gradient-brand); color: #fff;
}
.chat-header-info { display: flex; align-items: center; gap: 12px; }
.chat-avatar {
    width: 38px; height: 38px; background: rgba(255,255,255,0.2); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 16px;
}
.chat-header h4 { font-size: 15px; font-weight: 700; }
.chat-online { font-size: 12px; display: flex; align-items: center; gap: 4px; color: rgba(255,255,255,0.8); }
.online-dot { width: 6px; height: 6px; background: #2ecc71; border-radius: 50%; display: inline-block; }
.chat-close { color: rgba(255,255,255,0.8); font-size: 18px; padding: 4px; }
.chat-close:hover { color: #fff; }
.chat-body {
    flex: 1; overflow-y: auto; padding: 16px;
    display: flex; flex-direction: column; gap: 12px;
    max-height: 330px; background: var(--bg-light);
}
.chat-body::-webkit-scrollbar { width: 3px; }
.chat-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.chat-message { display: flex; gap: 8px; }
.chat-message.user { flex-direction: row-reverse; }
.msg-avatar {
    width: 30px; height: 30px; background: var(--accent-light); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--accent); font-size: 12px; flex-shrink: 0;
}
.chat-message.user .msg-avatar { background: var(--dark); color: #fff; }
.msg-bubble {
    background: #fff; border: 1px solid var(--border);
    border-radius: 14px 14px 14px 4px; padding: 10px 14px; max-width: 82%; box-shadow: var(--shadow-sm);
}
.chat-message.user .msg-bubble { background: var(--accent); border-color: var(--accent); border-radius: 14px 14px 4px 14px; }
.msg-bubble p { font-size: 13px; line-height: 1.6; color: var(--text-dark); }
.chat-message.user .msg-bubble p { color: #fff; }
.quick-btns { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.quick-btn {
    padding: 5px 12px; background: var(--accent-light);
    border: 1px solid rgba(232, 67, 42, 0.15); border-radius: 16px;
    font-size: 11px; font-weight: 600; color: var(--accent); transition: var(--transition);
}
.quick-btn:hover { background: var(--accent-soft); }
.chat-input {
    display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--border); background: #fff;
}
.chat-input input {
    flex: 1; padding: 10px 14px; background: var(--bg-light);
    border: 1px solid var(--border); border-radius: 20px; color: var(--text-dark); font-size: 13px; outline: none;
}
.chat-input input:focus { border-color: var(--accent); }
#chatSend {
    width: 38px; height: 38px; background: var(--gradient-brand); border-radius: 50%;
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 14px; transition: var(--transition);
}
#chatSend:hover { opacity: 0.9; }
.typing-indicator { display: flex; gap: 4px; padding: 4px 0; }
.typing-indicator span { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; animation: blink 1.2s infinite; }
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }

/* Back to Top */
.back-to-top {
    position: fixed; bottom: 24px; left: 24px;
    width: 44px; height: 44px; background: #fff; border: 1px solid var(--border);
    border-radius: 50%; color: var(--text-dark); display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: var(--transition); z-index: 999; box-shadow: var(--shadow);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--accent); color: #fff; border-color: var(--accent); transform: translateY(-3px); }

/* Animations */
[data-animate] { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-animate="fade-right"] { transform: translateX(-30px); }
[data-animate="fade-left"] { transform: translateX(30px); }
[data-animate].animated { opacity: 1; transform: translate(0, 0); }

/* Prevent horizontal overflow from animations */
#about, #services, #services-detail, #why-us, #experience, #contact, #locations, #countries, #testimonials {
    overflow-x: hidden;
}
/* #modes — no overflow hidden/clip here, it kills sticky */

/* Responsive */
@media (max-width: 1024px) {
    .modes-split { grid-template-columns: 1fr; gap: 40px; }
    .modes-right { position: static; }
    .modes-image-stack { height: 380px; }
    .mode-img-card[data-pos="next"] { transform: translateX(12px) translateZ(-30px) scale(0.95); }
    .mode-img-card[data-pos="back"] { transform: translateX(24px) translateZ(-60px) scale(0.9); }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .why-layout { grid-template-columns: 1fr; gap: 40px; }
    .stats-row { grid-template-columns: repeat(2, 1fr); }
    .locations-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .hero-info-bar { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .section { padding: 64px 0; }

    /* Fix horizontal overflow */
    body { overflow-x: clip; }
    .container { padding: 0 16px; }

    /* Full page mobile menu */
    .nav-links {
        position: fixed; top: 0; left: 0; right: 0; bottom: 0;
        width: 100%; height: 100vh;
        background: linear-gradient(160deg, #ffffff 0%, #e8f4f8 40%, #d4eaf5 70%, #c2e5d3 100%);
        flex-direction: column;
        display: flex; align-items: center; justify-content: center; gap: 8px;
        padding: 28px;
        transform: translateX(100%);
        transition: transform 0.4s ease;
        z-index: 1002;
    }
    .nav-links.open { transform: translateX(0); }
    .nav-links a {
        width: auto; text-align: center; padding: 14px 24px;
        font-size: 20px; color: var(--text-dark) !important;
        border-bottom: none; border-radius: 8px;
    }
    .nav-links a:hover { background: rgba(255,255,255,0.6); }
    .nav-close-wrap { display: block; position: absolute; top: 20px; right: 20px; }
    .nav-close {
        width: 48px; height: 48px;
        font-size: 28px; display: flex; align-items: center; justify-content: center;
        color: var(--text-dark); background: var(--bg-light); border: none;
        cursor: pointer; border-radius: 50%;
    }
    .hamburger { display: flex; z-index: 1001; }
    .hamburger.active { display: none; }
    .nav-phone { display: none; }
    .nav-actions .btn-primary { display: none !important; }

    /* Hero */
    .hero-wrapper { padding-top: 100px; padding-bottom: 40px; min-height: auto; }
    .hero-content h1 { font-size: 28px; }
    .hero-content.centered { padding: 0 8px; }
    .hero-badge { font-size: 11px; padding: 6px 14px; }
    .hero-sub { font-size: 14px; }
    .hero-btns { flex-direction: column; gap: 10px; }
    .hero-btns .btn { width: 100%; justify-content: center; padding: 14px 24px; }
    .slider-controls { bottom: 16px; }

    /* Nav logo */
    .nav-logo img { height: 48px; }
    .logo-name { font-size: 14px; }
    .logo-tagline { font-size: 9px; }

    /* About */
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-img-main img { height: 300px; }
    .about-img-secondary { display: none; }
    .about-highlights { grid-template-columns: 1fr; }
    .about-content h2 { font-size: 24px; }

    /* Modes */
    .modes-split { grid-template-columns: 1fr; gap: 32px; }
    .modes-left h2 { font-size: 24px; }
    .modes-image-stack { height: 300px; }
    .mode-img-card[data-pos="next"] { transform: translateX(10px) translateZ(-25px) scale(0.96); }
    .mode-img-card[data-pos="back"] { transform: translateX(20px) translateZ(-50px) scale(0.92); }
    .mode-img-card[data-pos="hidden"] { transform: translateX(30px) translateZ(-75px) scale(0.88); }

    /* Services */
    .services-grid { grid-template-columns: 1fr; }
    .section-header h2 { font-size: 24px; }

    /* Why us */
    .why-layout { grid-template-columns: 1fr; gap: 32px; }
    .why-grid { grid-template-columns: 1fr; }
    .why-left h2 { font-size: 24px; }

    /* Stats */
    .stats-row { grid-template-columns: 1fr 1fr; }
    .stats-header h2 { font-size: 24px; }

    /* Contact */
    .contact-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .contact-form { padding: 24px; }
    .key-persons { flex-direction: column; }

    /* Locations */
    .locations-grid { grid-template-columns: 1fr; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

    /* Marquee fix */
    .marquee-content span { font-size: 12px; gap: 8px; }
    .marquee-content { gap: 32px; padding-right: 32px; }
}

@media (max-width: 480px) {
    .hero-content h1 { font-size: 24px; }
    .about-exp-badge { display: none; }
    .stats-row { grid-template-columns: 1fr; }
    .stat-num { font-size: 36px; }
    .modes-image-stack { height: 250px; }
    .stack-card-inner { padding: 16px; gap: 12px; }
    .stack-info h3 { font-size: 14px; }
    .stack-info p { font-size: 12px; }
    .service-card { padding: 24px 20px; }
    .service-card h3 { font-size: 15px; }
    .detail-grid { grid-template-columns: 1fr; }
    .footer-social { justify-content: center; }
}
