/* ==============================
   GIRIDHAR HOUSING — DESIGN SYSTEM
   ============================== */

:root {
    --primary: #354C71;
    --primary-dark: #090F1E;
    --primary-light: #e4e9f1;
    --accent: #5a7ba8;
    --dark: #090F1E;
    --dark-800: #121a2e;
    --dark-700: #1e2d47;
    --gray-100: #f7f8fa;
    --gray-200: #eef0f4;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-600: #4b5563;
    --gray-800: #1f2937;
    --white: #ffffff;
    --font-sans: 'Inter', system-ui, sans-serif;
    --font-serif: 'Inter', system-ui, sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,.15);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

html { scroll-behavior:smooth; font-size:16px; }
body {
    font-family: var(--font-sans);
    color: var(--gray-800);
    background: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Prevent background scroll when mobile nav drawer is open */
body.mobile-nav-open { overflow: hidden; }

/* ===== JUSTIFIED LAYOUT FOR index.php ===== */
body.justify-content p,
body.justify-content .section-description,
body.justify-content .about-intro-text,
body.justify-content .about-sub-text,
body.justify-content .hero-subtitle,
body.justify-content .expertise-desc,
body.justify-content .stat-desc,
body.justify-content .project-card-meta span,
body.justify-content .footer-tagline,
body.justify-content .testimonial-text {
    text-align: justify;
    text-justify: inter-word;
}
img { max-width:100%; height:auto; display:block; }
a { text-decoration:none; color:inherit; transition: var(--transition); }
ul { list-style:none; }

.container { max-width:1200px; margin:0 auto; padding:0 24px; }

/* ===== BUTTONS ===== */
.btn {
    display:inline-flex; align-items:center; gap:8px;
    padding: 14px 28px; border-radius: 50px;
    font-family: var(--font-sans); font-weight:600; font-size:.938rem;
    border:2px solid transparent; cursor:pointer; transition: var(--transition);
    white-space: nowrap;
}
.btn i { font-size:1.1em; transition: transform var(--transition); }
.btn:hover i { transform: translateX(4px); }
.btn-primary { background:#1e3f74; color:var(--white); border-color:var(--primary); }
.btn-primary:hover { background:var(--primary-dark); border-color:var(--primary-dark); transform:translateY(-3px) scale(1.02); box-shadow: 0 8px 25px rgba(53,76,113,.3); }
.btn-primary:active { transform:scale(0.96); }
.btn-dark { background:var(--dark); color:var(--white); }
.btn-dark:hover { background:var(--dark-800); transform:translateY(-3px) scale(1.02); box-shadow: 0 8px 25px rgba(9,15,30,.3); }
.btn-dark:active { transform:scale(0.96); }
.btn-outline-dark { border-color:var(--gray-300); color:var(--dark); background:transparent; }
.btn-outline-dark:hover { border-color:var(--dark); background:var(--dark); color:var(--white); transform:translateY(-3px) scale(1.02); }
.btn-outline-dark:active { transform:scale(0.96); }
.btn-outline-light { border-color:rgba(255,255,255,.4); color:var(--white); background:transparent; }
.btn-outline-light:hover { background:var(--white); color:var(--dark); border-color:var(--white); transform:translateY(-3px) scale(1.02); }
.btn-outline-light:active { transform:scale(0.96); }
.btn-light { background:var(--white); color:var(--primary); }
.btn-light:hover { background:var(--gray-100); transform:translateY(-3px) scale(1.02); box-shadow: 0 8px 25px rgba(255,255,255,.2); }
.btn-light:active { transform:scale(0.96); }
.btn-lg { padding:18px 36px; font-size:1rem; }

/* ===== SECTION TITLES ===== */
.section-title { font-family:var(--font-serif); font-size:clamp(1.8rem,4vw,2.8rem); font-weight:700; color:var(--dark); line-height:1.2; margin-bottom:16px; }
.section-title-left { font-family:var(--font-serif); font-size:clamp(1.5rem,3vw,2.2rem); font-weight:700; color:var(--dark); line-height:1.3; margin-bottom:24px; }
.section-description { font-size:1.05rem; color:var(--gray-600); max-width:640px; line-height:1.7; }
.section-tag { display:inline-block; font-size:.8rem; font-weight:700; text-transform:uppercase; letter-spacing:2px; color:var(--primary); background:var(--primary-light); padding:6px 16px; border-radius:50px; margin-bottom:16px; }

/* ===== HEADER ===== */
.site-header {
    position:fixed; top:0; left:0; width:100%; z-index:1000;
    background:#1e3f74;
    border-bottom:1px solid rgba(255,255,255,.10);
    transition: var(--transition);
}
.site-header.scrolled { box-shadow:var(--shadow-sm); }
.header-container { display:flex; align-items:center; justify-content:space-between; max-width:1200px; margin:0 auto; padding:0 24px; height:124px; }
.logo { display:flex; align-items:center; gap:10px; }
.logo-image { height:64px; width:auto; display:block; }
.logo-icon { font-size:1.8rem; color:var(--primary); }
.logo-text { display:flex; flex-direction:column; line-height:1.1; }
.logo-brand { font-weight:800; font-size:1.1rem; letter-spacing:1.5px; color:var(--dark); }
.logo-sub { font-size:.65rem; font-weight:600; letter-spacing:3px; color:var(--gray-400); text-transform:uppercase; }
.nav-links { display:flex; gap:32px; }
.site-header .logo-brand { color:var(--white); }
.site-header .logo-sub { color:rgba(255,255,255,.65); }
.nav-link { font-size:.875rem; font-weight:500; color:rgba(255,255,255,.78); position:relative; padding:4px 0; }
.nav-link::after { content:''; position:absolute; bottom:-2px; left:0; width:0; height:2px; background:rgba(255,255,255,.92); transition:var(--transition); }
.nav-link:hover, .nav-link.active { color:var(--white); }
.nav-link:hover::after, .nav-link.active::after { width:100%; }
.header-actions { display:flex; align-items:center; gap:16px; }
.btn-header { padding:10px 22px; font-size:.85rem; }

/* Mobile toggle */
.mobile-toggle { display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; padding:4px; }
.hamburger-line { width:24px; height:2px; background:var(--white); border-radius:2px; transition:var(--transition); }
.mobile-nav { display:none; position:absolute; top:124px; left:0; width:100%; background:var(--white); border-top:1px solid var(--gray-200); padding:24px; box-shadow:var(--shadow-lg); z-index:999; max-height:80vh; overflow-y:auto; }

/* Off-canvas mobile drawer (appears from left) */
@media(max-width:900px) {
    .mobile-nav {
        display:block;
        position:fixed;
        top:0;
        left:0;
        height:100vh;
        width:min(86vw, 360px);
        max-height:none;
        overflow-y:auto;
        border-top:none;
        transform:translateX(-110%);
        transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        z-index:1500;
        padding:24px;
        padding-top:calc(88px + 24px);
    }
    .mobile-nav.active {
        transform:translateX(0);
    }
}
.mobile-nav-links { display:flex; flex-direction:column; gap:0; margin-bottom:20px; }
.mobile-link { font-size:1rem; font-weight:500; color:var(--gray-600); padding:14px 0; border-bottom:1px solid var(--gray-200); display:flex; align-items:center; justify-content:space-between; }
.mobile-link:hover { color:var(--primary); }
.btn-mobile-cta { width:100%; justify-content:center; }

/* Desktop Dropdown */
.nav-dropdown { position:relative; }
.dropdown-menu {
    position:absolute; top:100%; left:50%; transform:translateX(-50%) translateY(8px);
    min-width:240px; background:var(--white);
    border:1px solid var(--gray-200); border-radius:var(--radius);
    box-shadow: 0 20px 50px rgba(0,0,0,.12);
    padding:8px 0; opacity:0; visibility:hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
    z-index:1000;
}
.nav-dropdown:hover .dropdown-menu {
    opacity:1; visibility:visible; transform:translateX(-50%) translateY(0);
}
.dropdown-item {
    display:flex; align-items:center; gap:10px;
    padding:10px 20px; font-size:0.875rem; font-weight:500;
    color:var(--gray-600); transition: var(--transition); white-space:nowrap;
}
.dropdown-item i { font-size:1.1rem; color:var(--primary); width:20px; text-align:center; }
.dropdown-item:hover, .dropdown-item.active { background:var(--gray-100); color:var(--dark); }
.dropdown-item.dropdown-all { color:var(--primary); font-weight:600; }
.dropdown-divider { height:1px; background:var(--gray-200); margin:6px 0; }

/* Mobile Dropdown */
.mobile-dropdown-list {
    display:none; padding:0 0 8px 16px;
}
.mobile-dropdown-list.open { display:block; }
.mobile-sub-link {
    display:block; padding:10px 0; font-size:0.9rem;
    color:var(--gray-600); border-bottom:1px solid var(--gray-100);
}
.mobile-sub-link:hover { color:var(--primary); }
.mobile-dropdown-toggle i.rotated { transform:rotate(180deg); }

@media(max-width:900px) {
    .main-nav, .btn-header { display:none; }
    .mobile-toggle { display:flex; }
}

/* ===== HERO ===== */
.hero {
    position:relative; min-height:100vh; display:flex; align-items:center;
    background: var(--dark);
    padding: 100px 24px 40px;
}
.hero-video {
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    z-index:0;
    pointer-events:none;
}
.hero-overlay {
    position:absolute; inset:0;
    background: linear-gradient(135deg, rgba(9,15,30,.88) 0%, rgba(53,76,113,.5) 50%, rgba(9,15,30,.75) 100%);
    z-index:1;
    pointer-events:none;
}
.hero-content { position:relative; z-index:2; max-width:720px; }
.hero-badge {
    display:inline-block; padding:8px 20px; border-radius:50px;
    background:rgba(255,255,255,.12); backdrop-filter:blur(8px);
    border:1px solid rgba(255,255,255,.15);
    font-size:.8rem; font-weight:500; color:rgba(255,255,255,.85);
    margin-bottom:16px; letter-spacing:.5px;
}
.hero-title {
    font-family:var(--font-sans); font-size:clamp(2.5rem,6vw,4.5rem);
    font-weight:800; color:var(--white); line-height:1.1; margin-bottom:16px;
    letter-spacing: -1px;
}
.hero-title-accent { color:#7a9cc6; }
.hero-title-outline { color:var(--white); }
.hero-subtitle { font-size:clamp(1rem,2vw,1.15rem); color:rgba(255,255,255,.75); line-height:1.7; max-width:540px; margin-bottom:24px; }
.hero-cta-group { display:flex; flex-wrap:wrap; gap:16px; }
.hero-scroll-indicator {
    position:absolute; bottom:40px; right:40px; z-index:2;
    display:flex; flex-direction:column; align-items:center; gap:8px;
    color:rgba(255,255,255,.5); font-size:.7rem; letter-spacing:2px; text-transform:uppercase;
}
.scroll-line { width:1px; height:40px; background:rgba(255,255,255,.3); animation:scrollPulse 2s ease infinite; }
@keyframes scrollPulse { 0%,100%{opacity:.3;transform:scaleY(1)} 50%{opacity:1;transform:scaleY(1.3)} }

/* ===== TRUSTED BY ===== */
.trusted-by { padding:32px 0; border-bottom:1px solid var(--gray-200); background:#5a626f; text-align:center; }
.trusted-by .trusted-label { text-align:center; text-justify:auto; font-size:.8rem; color:#d1d5db; letter-spacing:.5px; margin:0 auto 20px; width:100%; }
.trusted-logos {
    display:flex;
    justify-content:flex-start;
    justify-content:safe center;
    align-items:center;
    flex-wrap:nowrap;
    gap:24px;
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    padding:0 6px;
}
.trust-item {
    display:flex;
    align-items:center;
    gap:8px;
    color:#d1d5db;
    font-size:.82rem;
    font-weight:500;
    transition:var(--transition);
    line-height:1.2;
    flex:0 0 auto;
    white-space:nowrap;
}
.trust-item i { font-size:1.15rem; line-height:1; display:block; }

/* Hide scrollbar but keep scrollability */
.trusted-logos { scrollbar-width:none; }
.trusted-logos::-webkit-scrollbar { display:none; }

/* ===== ABOUT INTRO ===== */
.about-intro { padding:50px 0; background:#ced5df; }
.about-grid {
    display:grid; grid-template-columns:1fr 1.2fr; gap:60px;
    align-items:center; max-width:1100px; margin:0 auto;
}
.about-visual {
    padding-right:40px; border-right:1px solid var(--gray-200);
}
.about-visual-image {
    width:440px;
    max-width:100%;
    aspect-ratio: 1 / 1;
    border-radius: 0;
    border: none;
    overflow:hidden;
    box-shadow: none;
}
.about-visual-image img {
    width:100%;
    height:100%;
    object-fit:cover;
}
.about-icon-large {
    font-size:3rem; color:var(--primary); margin-bottom:24px;
}
.about-heading {
    font-family:var(--font-serif); font-size:clamp(2.2rem, 4vw, 3rem);
    font-weight:700; color:var(--dark); line-height:1.15;
}
.decorative-line {
    width:60px; height:3px; background:var(--primary); margin-bottom:30px;
}
.about-intro-text {
    font-size:1.2rem; color:var(--dark-700); line-height:1.7;
    margin-bottom:20px; font-weight:500;
}
.about-sub-text {
    font-size:1.05rem; color:var(--gray-600); line-height:1.6;
    margin-bottom:32px;
}
.about-actions { display:flex; gap:16px; }

@media(max-width:900px) {
    .about-grid { grid-template-columns:1fr; gap:40px; }
    .about-visual { padding-right:0; border-right:none; border-bottom:1px solid var(--gray-200); padding-bottom:30px; }
    .about-visual-image { width:100%; max-width:520px; }
}

/* ===== ARCHITECTURE STATS ===== */
.arch-stats { 
    padding:50px 0; background:var(--gray-100); 
    background-image: radial-gradient(var(--gray-300) 1px, transparent 1px);
    background-size: 24px 24px;
}
.arch-stats-header { text-align:center; margin-bottom:60px; }
.arch-stats-header .section-description { margin:0 auto; }
.title-image-inline { display:inline-block; vertical-align:middle; width:90px; height:50px; border-radius:30px; overflow:hidden; margin:0 6px; position:relative; top:-2px; }
.title-image-inline img { width:100%; height:100%; object-fit:cover; }
.stats-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:32px; margin-bottom:48px; }
.stat-card { 
    background:rgba(255,255,255,.8); backdrop-filter:blur(10px);
    padding:40px 32px; border-radius:var(--radius); border:1px solid rgba(255,255,255,1);
    box-shadow: 0 10px 30px rgba(0,0,0,.03);
    text-align:center; transition:var(--transition); 
}
.stat-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-md); border-color:var(--primary-light); }
.stat-number { font-family:var(--font-serif); font-size:3.5rem; font-weight:800; color:var(--dark); }
.stat-suffix { font-family:var(--font-serif); font-size:2rem; font-weight:700; color:var(--primary); }
.stat-label { font-weight:600; color:var(--dark); margin:8px 0 6px; font-size:.95rem; }
.stat-desc { font-size:.85rem; color:var(--gray-400); line-height:1.5; }
.arch-stats-cta { display:flex; justify-content:center; gap:16px; flex-wrap:wrap; }

@media(max-width:768px) { .stats-grid { grid-template-columns:1fr; } }

/* ===== WHY CHOOSE US ===== */
.why-choose { padding:50px 0; background:var(--white); }
.why-choose-grid { display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:center; }
.why-choose-image { border-radius:var(--radius-lg); overflow:hidden; position:relative; }
.why-choose-image img { width:100%; height:450px; object-fit:cover; transition:transform .6s ease; }
.why-choose-image:hover img { transform:scale(1.03); }
.why-stats-row { display:flex; gap:40px; margin-top:12px; }
.why-stat-number { font-family:var(--font-serif); font-size:3rem; font-weight:800; color:var(--dark); }
.why-stat-suffix { font-family:var(--font-serif); font-size:1.8rem; font-weight:700; color:var(--primary); }
.why-stat-label { font-size:.85rem; color:var(--gray-400); margin-top:4px; }

@media(max-width:768px) { .why-choose-grid { grid-template-columns:1fr; } .why-choose-image img { height:300px; } }

/* ===== SERVICES TICKER ===== */
.services-ticker { padding:28px 0; background:var(--dark); overflow:hidden; display:flex; align-items:center; }
.ticker-track { display:flex; width:max-content; animation:tickerScroll 25s linear infinite; align-items:center; }
.ticker-content { display:flex; align-items:center; gap:0; flex-shrink:0; }
.ticker-item { font-size:1.1rem; font-weight:600; color:var(--white); white-space:nowrap; padding:0 20px; display:flex; align-items:center; gap:10px; }
.ticker-item i { font-size:1.3rem; color:#7a9cc6; }
.ticker-dot { color:var(--primary); font-size:.5rem; padding:0 8px; }
@keyframes tickerScroll { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

/* ===== EXPERTISE ===== */
.expertise { padding:50px 0; background:var(--white); }
.expertise-header { text-align:center; margin-bottom:56px; }
.expertise-header .section-description { margin:0 auto; }
.expertise-grid { 
    display:grid; grid-template-columns:repeat(3, 1fr); gap:24px; 
}
.expertise-card {
    background:var(--gray-100); padding:32px; border-radius:var(--radius);
    border:1px solid var(--gray-200); transition:var(--transition);
}
.expertise-card:hover {
    background:var(--white); transform:translateY(-8px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0,0,0,.06); border-color:var(--primary-light);
}
.expertise-icon {
    width:56px; height:56px; border-radius:50%; background:var(--white);
    display:flex; align-items:center; justify-content:center;
    font-size:1.5rem; color:var(--primary); margin-bottom:20px;
    box-shadow:var(--shadow-sm); transition:var(--transition);
}
.expertise-card:hover .expertise-icon {
    background:var(--primary); color:var(--white);
}
.expertise-name {
    font-size:1.25rem; font-weight:700; color:var(--dark); margin-bottom:12px;
    font-family:var(--font-serif);
}
.expertise-desc {
    font-size:.9rem; color:var(--gray-600); line-height:1.6;
}

@media(max-width:900px) {
    .expertise-grid { grid-template-columns:repeat(2, 1fr); }
}
@media(max-width:600px) {
    .expertise-grid { grid-template-columns:1fr; }
}

/* ===== TEAM / COVERFLOW CAROUSEL ===== */
.team-section { padding:50px 0; background:var(--gray-100); }
.team-header { text-align:center; margin-bottom:56px; }
.team-header .section-description { margin:0 auto; }

/* Coverflow Wrapper */
.coverflow-wrapper {
    position:relative; width:100%; overflow:hidden;
    padding:40px 0 60px; margin-bottom:48px;
    perspective:1200px;
}
.coverflow-track {
    display:flex; align-items:center; justify-content:center;
    position:relative; height:420px; width:100%;
}
.coverflow-slide {
    position:absolute; width:280px; height:360px;
    border-radius:0; overflow:hidden;
    transition: all .55s cubic-bezier(.4,0,.2,1);
    cursor:pointer; box-shadow:var(--shadow-md);
    transform-origin:center center;
}
.coverflow-slide img {
    width:100%; height:100%; object-fit:cover;
}
.coverflow-caption {
    position:absolute; bottom:0; left:0; right:0;
    padding:20px; text-align:center;
    background:linear-gradient(transparent, rgba(0,0,0,.6));
    color:var(--white); font-weight:600; font-size:.95rem;
    letter-spacing:.3px; opacity:0;
    transition:opacity var(--transition);
}

/* Active center slide */
.coverflow-slide.active {
    z-index:5; transform:translateX(-50%) scale(1);
    left:50%; width:320px; height:400px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.coverflow-slide.active .coverflow-caption { opacity:1; }

/* Immediate neighbors */
.coverflow-slide.pos-1 {
    z-index:4; left:50%;
    transform:translateX(calc(-50% - 300px)) scale(.82) rotateY(8deg);
    opacity:.85; filter:brightness(.9);
}
.coverflow-slide.pos1 {
    z-index:4; left:50%;
    transform:translateX(calc(-50% + 300px)) scale(.82) rotateY(-8deg);
    opacity:.85; filter:brightness(.9);
}

/* Second neighbors */
.coverflow-slide.pos-2 {
    z-index:3; left:50%;
    transform:translateX(calc(-50% - 520px)) scale(.65) rotateY(14deg);
    opacity:.5; filter:brightness(.75);
}
.coverflow-slide.pos2 {
    z-index:3; left:50%;
    transform:translateX(calc(-50% + 520px)) scale(.65) rotateY(-14deg);
    opacity:.5; filter:brightness(.75);
}

/* Far neighbors */
.coverflow-slide.pos-3 {
    z-index:2; left:50%;
    transform:translateX(calc(-50% - 680px)) scale(.5) rotateY(18deg);
    opacity:.25; filter:brightness(.6);
}
.coverflow-slide.pos3 {
    z-index:2; left:50%;
    transform:translateX(calc(-50% + 680px)) scale(.5) rotateY(-18deg);
    opacity:.25; filter:brightness(.6);
}

/* Hidden slides */
.coverflow-slide.hidden-slide {
    opacity:0; pointer-events:none;
    transform:translateX(-50%) scale(.3);
    left:50%;
}

/* Navigation Buttons */
.coverflow-btn {
    position:absolute; top:50%; transform:translateY(-50%);
    z-index:10; width:48px; height:48px; border-radius:50%;
    border:2px solid var(--gray-300); background:rgba(255,255,255,.9);
    backdrop-filter:blur(8px); cursor:pointer;
    display:flex; align-items:center; justify-content:center;
    font-size:1.3rem; color:var(--dark);
    transition:var(--transition);
}
.coverflow-btn:hover {
    background:var(--primary); color:var(--white); border-color:var(--primary);
    box-shadow:var(--shadow-md);
}
.coverflow-prev { left:32px; }
.coverflow-next { right:32px; }

/* Dots */
.coverflow-dots {
    display:flex; justify-content:center; gap:10px;
    position:absolute; bottom:10px; left:50%; transform:translateX(-50%);
}
.coverflow-dot {
    width:10px; height:10px; border-radius:50%;
    background:var(--gray-300); border:none; cursor:pointer;
    transition:var(--transition);
}
.coverflow-dot.active {
    background:var(--primary); width:28px; border-radius:5px;
}

.team-cta { display:flex; justify-content:center; gap:16px; flex-wrap:wrap; }

@media(max-width:900px) {
    .coverflow-slide { width:220px; height:280px; }
    .coverflow-slide.active { width:260px; height:330px; }
    .coverflow-slide.pos-1 { transform:translateX(calc(-50% - 230px)) scale(.78) rotateY(8deg); }
    .coverflow-slide.pos1 { transform:translateX(calc(-50% + 230px)) scale(.78) rotateY(-8deg); }
    .coverflow-slide.pos-2, .coverflow-slide.pos2 { opacity:.3; }
    .coverflow-slide.pos-3, .coverflow-slide.pos3 { opacity:0; pointer-events:none; }
    .coverflow-track { height:360px; }
}
@media(max-width:600px) {
    .coverflow-slide { width:200px; height:260px; }
    .coverflow-slide.active { width:240px; height:300px; }
    .coverflow-slide.pos-1 { transform:translateX(calc(-50% - 180px)) scale(.72) rotateY(10deg); }
    .coverflow-slide.pos1 { transform:translateX(calc(-50% + 180px)) scale(.72) rotateY(-10deg); }
    .coverflow-slide.pos-2, .coverflow-slide.pos2,
    .coverflow-slide.pos-3, .coverflow-slide.pos3 { opacity:0; pointer-events:none; }
    .coverflow-track { height:320px; }
    .coverflow-prev { left:12px; }
    .coverflow-next { right:12px; }
}

/* ===== PROJECTS SHOWCASE ===== */
.projects-showcase { padding:50px 0; background:var(--white); }
.projects-header { margin-bottom:48px; }
.projects-header-text { max-width:640px; }
.projects-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:28px; margin-bottom:40px; }
.project-card { 
    border-radius:var(--radius); overflow:hidden; background:var(--white); 
    border:none; box-shadow:var(--shadow-sm); transition:var(--transition); 
}
.project-card:hover { transform:translateY(-8px) scale(1.01); box-shadow: 0 20px 40px rgba(0,0,0,.08); }
.project-card-image { position:relative; height:240px; overflow:hidden; margin:12px 12px 0; border-radius:var(--radius-sm); }
.project-card-image img { width:100%; height:100%; object-fit:cover; transition:transform .8s ease; }
.project-card:hover .project-card-image img { transform:scale(1.08); }
.project-card-badge {
    position:absolute; top:14px; left:14px; padding:5px 14px;
    background:rgba(255,255,255,.92); backdrop-filter:blur(6px);
    border-radius:50px; font-size:.75rem; font-weight:600; color:var(--primary);
}
.project-card-body { padding:20px; }
.project-card-title { font-family:var(--font-serif); font-size:1.15rem; font-weight:700; color:var(--dark); margin-bottom:10px; }
.project-card-meta { display:flex; flex-wrap:wrap; gap:12px; }
.project-card-meta span { display:flex; align-items:center; gap:4px; font-size:.8rem; color:var(--gray-400); }
.project-card-meta i { font-size:.9rem; }
.projects-cta { text-align:center; }

@media(max-width:768px) { .projects-grid { grid-template-columns:1fr; } }

/* ===== CTA SECTION ===== */
.cta-section {
    padding:50px 0;
    background:#5a626f;
    position:relative; overflow:hidden;
}
/* .cta-section::before {
    content:''; position:absolute; top:-120px; right:-120px;
    width:400px; height:400px; border-radius:50%;
    background:rgba(255,255,255,.04);
} */
.cta-content { text-align:center; position:relative; z-index:2; }
.cta-title { font-family:var(--font-serif); font-size:clamp(2rem,5vw,3.2rem); font-weight:800; color:var(--white); line-height:1.15; margin-bottom:20px; }
.cta-title-accent { color:#8badd4; }
.cta-description { font-size:1.05rem; color:rgba(255,255,255,.7); max-width:560px; margin:0 auto 36px; line-height:1.7; }

/* ===== FOOTER ===== */
.site-footer { background:#1E3F74; color:rgba(255,255,255,.78); }
.site-footer .logo-brand { color:var(--white); }
.site-footer .logo-sub { color:rgba(255,255,255,.65); }

.footer-marquee { overflow:hidden; padding:24px 0; background:#1E3F74; border-top:1px solid rgba(255,255,255,.08); border-bottom:1px solid rgba(255,255,255,.08); display:flex; align-items:center; }
.footer-marquee-track { display:flex; width:max-content; animation:tickerScroll 25s linear infinite; align-items:center; }
.footer-marquee-text {
    font-family:var(--font-sans); font-size:clamp(1.5rem,4vw,2rem); font-weight:700;
    color:var(--white); white-space:nowrap; padding:0 20px;
    display:flex; align-items:center; gap:32px; letter-spacing:1px;
}
.footer-marquee-text i { font-size:1.5rem; color:rgba(255,255,255,.92); }
.footer-main { padding:60px 0 40px; background:#1E3F74; }
.footer-grid { display:grid; grid-template-columns:1.5fr 1fr 1fr 1fr; gap:40px; }
.footer-logo { display:flex; align-items:center; gap:10px; margin-bottom:16px; }
.footer-logo-image { height:72px; width:auto; display:block; }
.footer-tagline { font-size:.9rem; color:rgba(255,255,255,.72); line-height:1.6; margin-bottom:20px; }
.footer-social { display:flex; gap:12px; }
.footer-social a {
    width:40px; height:40px; border-radius:50%; border:1px solid rgba(255,255,255,.18);
    display:flex; align-items:center; justify-content:center;
    color:rgba(255,255,255,.72); font-size:1.1rem; transition:var(--transition);
}
.footer-social a:hover { background:var(--white); color:#1E3F74; border-color:var(--white); }
.footer-links-col h4 { font-size:.9rem; font-weight:700; color:rgba(255,255,255,.92); margin-bottom:16px; text-transform:uppercase; letter-spacing:1px; }
.footer-links-col ul { display:flex; flex-direction:column; gap:10px; }
.footer-links-col a { font-size:.9rem; color:rgba(255,255,255,.70); }
.footer-links-col a:hover { color:var(--white); }
.footer-contact-list li { display:flex; align-items:center; gap:8px; font-size:.9rem; color:rgba(255,255,255,.70); }
.footer-contact-list i { color:rgba(255,255,255,.92); }
.footer-bottom { padding:20px 0; border-top:1px solid rgba(255,255,255,.12); background:#1E3F74; }
.footer-bottom .container { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; }
.footer-bottom p { font-size:.8rem; color:rgba(255,255,255,.65); }
.footer-bottom-links { display:flex; gap:20px; }
.footer-bottom-links a { font-size:.8rem; color:rgba(255,255,255,.65); }
.footer-bottom-links a:hover { color:var(--white); }

@media(max-width:768px) { .footer-grid { grid-template-columns:1fr 1fr; gap:32px; } }
@media(max-width:480px) { .footer-grid { grid-template-columns:1fr; } }

/* ===== TESTIMONIALS ===== */
.testimonials { padding:50px 0; background:var(--gray-100); }
.testimonials-header { text-align:center; margin-bottom:56px; }
.testimonials-header .section-description { margin:0 auto; }
.testimonials-grid { display:grid; grid-template-columns:repeat(3, 1fr); gap:32px; }
.testimonial-card {
    background:var(--white); padding:40px 32px; border-radius:var(--radius);
    border:1px solid var(--gray-200); box-shadow:var(--shadow-sm);
    transition:var(--transition); position:relative;
}
.testimonial-card:hover { transform:translateY(-8px); box-shadow:var(--shadow-md); border-color:var(--primary-light); }
.testimonial-card i.ph-quotes { font-size:2.5rem; color:var(--primary-light); position:absolute; top:32px; right:32px; opacity:0.5; }
.testimonial-text { font-size:1.05rem; color:var(--gray-600); line-height:1.7; margin-bottom:32px; font-style:italic; position:relative; z-index:2; }
.testimonial-author { display:flex; align-items:center; gap:16px; border-top:1px solid var(--gray-200); padding-top:20px; }
.author-avatar { width:56px; height:56px; border-radius:50%; overflow:hidden; }
.author-avatar img { width:100%; height:100%; object-fit:cover; }
.author-name { font-size:1.05rem; font-weight:700; color:var(--dark); margin-bottom:4px; font-family:var(--font-serif); }
.author-role { font-size:.85rem; color:var(--gray-400); }

@media(max-width:900px) { .testimonials-grid { grid-template-columns:repeat(2, 1fr); } }
@media(max-width:600px) { .testimonials-grid { grid-template-columns:1fr; } }

/* ===== AWARDS ===== */
.awards-section { padding:50px 0; background:var(--white); }
.awards-grid { display:grid; grid-template-columns:1fr 1fr; gap:60px; align-items:center; }
.awards-list { display:flex; flex-direction:column; gap:24px; }
.award-item {
    display:flex; gap:24px; padding:24px; border-radius:var(--radius);
    background:var(--gray-100); border:1px solid var(--gray-200);
    transition:var(--transition); align-items:center;
}
.award-item:hover { transform:translateX(8px); background:var(--white); box-shadow:var(--shadow-md); border-color:var(--primary-light); }
.award-year {
    font-family:var(--font-serif); font-size:1.5rem; font-weight:800;
    color:var(--primary); background:var(--white); padding:12px 20px;
    border-radius:var(--radius-sm); box-shadow:var(--shadow-sm);
}
.award-title { font-size:1.15rem; font-weight:700; color:var(--dark); margin-bottom:6px; font-family:var(--font-serif); }
.award-body { font-size:.9rem; color:var(--gray-600); }

@media(max-width:900px) { .awards-grid { grid-template-columns:1fr; gap:40px; } }

/* ===== ANIMATIONS ===== */
[data-animate] { opacity:0; transform:translateY(40px); transition:opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1); }
[data-animate].animated { opacity:1; transform:translateY(0); }
[data-animate="fade-right"] { transform:translateX(-40px); }
[data-animate="fade-right"].animated { transform:translateX(0); }
[data-animate="fade-left"] { transform:translateX(40px); }
[data-animate="fade-left"].animated { transform:translateX(0); }

/* ===== COMPREHENSIVE MOBILE RESPONSIVE ===== */

/* --- Tablet (max 900px) --- */
@media(max-width:900px) {
    .container { padding: 0 20px; }
    .section-title { font-size: clamp(1.6rem, 4vw, 2.2rem); }
    .section-description { font-size: 0.95rem; }

    /* Header (use mobile nav before 768px too) */
    .header-container { height: 88px; }
    .logo-image { height: 56px; }

    /* Hero */
    .hero { min-height: 85vh; padding: 100px 20px 40px; }
    .hero-title { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.5px; }
    .hero-subtitle { font-size: 0.95rem; }
    .hero-cta-group { gap: 12px; }
    .hero-cta-group .btn { padding: 12px 24px; font-size: 0.875rem; }
    .hero-scroll-indicator { display: none; }

    /* Buttons */
    .btn { padding: 12px 24px; font-size: 0.875rem; }
    .btn-lg { padding: 14px 28px; font-size: 0.9rem; }

    /* Trusted By */
    .trusted-logos { gap: 24px; }
    .trust-item { font-size: 0.8rem; }

    /* About intro */
    .about-grid { grid-template-columns: 1fr; gap: 32px; }
    .about-visual { padding-right: 0; border-right: none; border-bottom: 1px solid var(--gray-200); padding-bottom: 24px; }
    .about-heading { font-size: clamp(1.8rem, 4vw, 2.4rem); }

    /* Stats */
    .stats-grid { grid-template-columns: 1fr; gap: 20px; }
    .stat-card { padding: 28px 24px; }
    .stat-number { font-size: 2.8rem; }

    /* Why Choose */
    .why-choose-grid { grid-template-columns: 1fr; gap: 32px; }
    .why-choose-image img { height: 280px; }
    .why-stats-row { gap: 24px; justify-content: center; align-items: center; }
    .why-stat { width: 100%; text-align: center; }
    .why-stat-label { text-align: center; }
    .why-stat { width: 100%; text-align: center; }
    .why-stat-label { text-align: center; }

    /* Expertise */
    .expertise-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .expertise-card { padding: 24px; }

    /* Projects */
    .projects-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .project-card-image { height: 200px; margin: 8px 8px 0; }

    /* Testimonials */
    .testimonials-grid { grid-template-columns: 1fr; gap: 20px; }
    .testimonial-card { padding: 28px 24px; }

    /* Awards */
    .awards-grid { grid-template-columns: 1fr; gap: 32px; }

    /* Team carousel */
    .coverflow-track { height: 340px; }
    .coverflow-slide { width: 220px; height: 280px; }
    .coverflow-slide.active { width: 260px; height: 320px; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .footer-marquee-text { font-size: clamp(1.2rem, 3vw, 1.5rem); gap: 20px; }
}

/* --- Mobile (max 768px) --- */
@media(max-width:768px) {
    .container { padding: 0 16px; }

    /* Header */
    .main-nav, .btn-header { display: none; }
    .mobile-toggle { display: flex; }
    .header-container { height: 72px; }
    .logo-image { height: 48px; }

    /* Off-canvas drawer header spacing */
    .mobile-nav { top: 0; padding-top: calc(72px + 24px); }

    /* Hero */
    .hero { min-height: 75vh; padding: 80px 16px 32px; }
    .hero-title { font-size: clamp(1.8rem, 6vw, 2.5rem); }
    .hero-subtitle { font-size: 0.9rem; max-width: 100%; }
    .hero-badge { font-size: 0.75rem; padding: 6px 14px; }
    .hero-cta-group { flex-direction: column; width: 100%; }
    .hero-cta-group .btn { width: 100%; justify-content: center; }

    /* Section spacing */
    .about-intro, .arch-stats, .why-choose, .expertise, .projects-showcase,
    .cta-section, .testimonials, .awards-section, .team-section { padding: 40px 0; }

    /* Stats */
    .arch-stats-header { margin-bottom: 32px; }
    .stats-grid { margin-bottom: 32px; }

    /* Expertise */
    .expertise-grid { grid-template-columns: 1fr; gap: 12px; }
    .expertise-header { margin-bottom: 32px; }

    /* Projects */
    .projects-grid { grid-template-columns: 1fr; gap: 16px; }
    .project-card-image { height: 220px; }
    .project-card-body { padding: 16px; }
    .project-card-title { font-size: 1.05rem; }
    .project-card-meta { gap: 8px; }
    .project-card-meta span { font-size: 0.75rem; }

    /* Team carousel */
    .team-header, .testimonials-header { margin-bottom: 32px; }
    .coverflow-wrapper { padding: 24px 0 48px; margin-bottom: 32px; }
    .coverflow-track { height: 300px; }
    .coverflow-slide { width: 200px; height: 260px; }
    .coverflow-slide.active { width: 240px; height: 300px; }
    .coverflow-prev { left: 8px; width: 40px; height: 40px; font-size: 1.1rem; }
    .coverflow-next { right: 8px; width: 40px; height: 40px; font-size: 1.1rem; }

    /* CTA */
    .cta-title { font-size: clamp(1.6rem, 5vw, 2.2rem); }
    .cta-description { font-size: 0.9rem; margin-bottom: 24px; }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-main { padding: 40px 0 24px; }
    .footer-logo-image { height:56px; }
    .footer-marquee-text { font-size: 1.1rem; gap: 16px; }
    .footer-bottom .container { flex-direction: column; text-align: center; gap: 8px; }
    .footer-bottom-links { justify-content: center; }

    /* Testimonials */
    .testimonial-card { padding: 24px 20px; }
    .testimonial-text { font-size: 0.95rem; margin-bottom: 24px; }
    .testimonial-card i.ph-quotes { font-size: 2rem; top: 20px; right: 20px; }

    /* Title image inline */
    .title-image-inline { width: 60px; height: 35px; }

    /* Page headers (for sub-pages) */
    .page-header { padding: 100px 0 48px !important; }
    .page-title { font-size: clamp(1.8rem, 5vw, 2.5rem) !important; }
}

/* --- Small Mobile (max 480px) --- */
@media(max-width:480px) {
    html { font-size: 15px; }
    .container { padding: 0 14px; }

    .hero-title { font-size: 1.75rem; }
    .hero-subtitle { font-size: 0.85rem; }
    .hero-badge { font-size: 0.7rem; }

    .about-heading { font-size: 1.6rem; }
    .about-intro-text { font-size: 1.05rem; }

    .stat-number { font-size: 2.2rem; }
    .stat-suffix { font-size: 1.4rem; }
    .stat-card { padding: 20px 16px; }

    .section-title { font-size: 1.5rem; }
    .section-title-left { font-size: 1.3rem; }
    .section-tag { font-size: 0.7rem; padding: 5px 12px; }

    .expertise-card { padding: 20px; }
    .expertise-name { font-size: 1.1rem; }
    .expertise-desc { font-size: 0.85rem; }

    .project-card-image { height: 180px; margin: 8px 8px 0; }

    .cta-section { padding: 32px 0; }
    .cta-title { font-size: 1.4rem; }

    .btn { padding: 11px 20px; font-size: 0.83rem; }
    .btn-lg { padding: 13px 24px; font-size: 0.85rem; }

    .why-stats-row { flex-direction: column; gap: 16px; }
    .why-stat-number { font-size: 2.4rem; }

    .footer-social a { width: 36px; height: 36px; font-size: 1rem; }
    .footer-links-col h4 { font-size: 0.85rem; }

    .coverflow-slide { width: 180px; height: 240px; }
    .coverflow-slide.active { width: 220px; height: 280px; }
    .coverflow-track { height: 280px; }

    .testimonials-grid { gap: 14px; }
    .author-avatar { width: 44px; height: 44px; }
    .author-name { font-size: 0.95rem; }
}

/* --- Touch-friendly improvements --- */
@media(hover: none) {
    .btn:hover { transform: none; }
    .project-card:hover { transform: none; }
    .expertise-card:hover { transform: none; background: var(--gray-100); }
    .testimonial-card:hover { transform: none; }
    .award-item:hover { transform: none; }
}

/* ===== PRELOADER ===== */
/* Full-screen overlay shown while page loads */
#preloader {
    position:fixed; inset:0; display:flex; align-items:center; justify-content:center;
    background: linear-gradient(180deg, rgba(9,15,30,0.96) 0%, rgba(53,76,113,0.94) 60%);
    z-index:2000; transition: opacity 0.6s ease, visibility 0.6s ease;
}
.preloader-inner { display:flex; flex-direction:column; align-items:center; gap:18px; transform:translateY(0); }
.preloader-logo { height:72px; width:auto; display:block; filter:drop-shadow(0 16px 40px rgba(0,0,0,.45)); }
.loader-ring { position:relative; width:64px; height:64px; }
.loader-ring span {
    box-sizing:border-box; position:absolute; inset:0; border-radius:50%;
    border:4px solid rgba(255,255,255,.10); border-top-color:rgba(255,255,255,.95);
    animation:preloader-spin 1s linear infinite;
}
.loader-ring span:nth-child(2) { transform:scale(.82); border-top-color:rgba(255,255,255,.85); animation-duration:1.2s; }
.loader-ring span:nth-child(3) { transform:scale(.64); border-top-color:rgba(255,255,255,.75); animation-duration:1.4s; }
.loader-ring span:nth-child(4) { transform:scale(.46); border-top-color:rgba(255,255,255,.6); animation-duration:1.6s; }
@keyframes preloader-spin { to { transform: rotate(360deg); } }

/* Hide state */
.preloader--hide { opacity:0; visibility:hidden; pointer-events:none; }

/* Prevent scrolling while preloader active (JS toggles) */
body.preloader-active { overflow:hidden; }

@media(max-width:768px) {
    .preloader-logo { height:56px; }
    .loader-ring { width:48px; height:48px; }
}


/* --- Ensure no horizontal overflow --- */
body, html { overflow-x: hidden; }
.projects-grid, .expertise-grid, .stats-grid, .testimonials-grid,
.footer-grid, .awards-grid { overflow: hidden; }
