/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a3c5e;
    --secondary: #d4a017;
    --accent: #2d6a9f;
    --light: #f5f7fa;
    --dark: #0a0a0a;
    --text: #444;
    --white: #ffffff;
    --gold: #d4a017;
}

html {
    /* JS handles smooth scrolling now — having BOTH on at the same time
       fights with our custom eased scroll. We disable native smooth so
       the JS glide is uncontested. (Keyboard / scrollbar drag still
       feel native because we cancel the JS animation in those cases.) */
    scroll-behavior: auto;
    /* When jumping to anchors, leave room for the fixed navbar so the
       target heading isn't hidden underneath it. */
    scroll-padding-top: 80px;
    /* Prevent macOS / Chrome rubber-band overscroll glitch on the page
       background — keeps the smooth-scroll buttery without bounce-back. */
    overscroll-behavior-y: none;
    /* Smoother iOS / trackpad inertia and predictable scroll snapping */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    overscroll-behavior-y: none;
}

/* ===== SCROLL REVEAL ANIMATIONS =====
   NOTE: will-change is now applied inline by JS only while the element is
   transitioning, then removed. We do NOT keep will-change on every
   .scroll-animated forever — that was creating dozens of GPU layers and
   was the main reason scrolling felt heavy on lower-end devices. */
.scroll-visible {
    opacity: 1 !important;
    transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .scroll-animated { opacity: 1 !important; transform: none !important; transition: none !important; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    /* Lock to the layout root so off-screen sections don't repaint */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Off-screen sections skip painting/layout work. Massive scroll-perf win. */
section {
    content-visibility: auto;
    contain-intrinsic-size: 1px 800px;
}
/* Hero must always paint (it's the LCP target) */
#home {
    content-visibility: visible;
}

img, video {
    max-width: 100%;
    height: auto;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(10, 14, 22, 0.78);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 0 clamp(1.25rem, 2.5vw, 2.5rem);
    /* Only transition properties that actually change — `transition: all`
       on a fixed element re-runs every paint and was contributing to lag. */
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 1px solid rgba(212, 160, 23, 0.15);
    /* Promote to its own layer so it doesn't repaint with page content */
    transform: translateZ(0);
    will-change: background-color;
    contain: layout paint;
}

.navbar.scrolled {
    background: rgba(8, 12, 20, 0.96);
    border-bottom: 1px solid rgba(212, 160, 23, 0.3);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
    /* Keep blur the same as the un-scrolled state — re-blurring on scroll
       was forcing an expensive full repaint of everything below. */
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.nav-container {
    max-width: min(1900px, 97vw);
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.nav-logo img {
    height: 50px;
    width: auto;
}

.nav-logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.nav-logo-text .logo-line1,
.nav-logo-text .logo-main {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 4px;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

.nav-logo-text .logo-line2,
.nav-logo-text .logo-sub {
    color: var(--secondary);
    font-size: 0.72rem;
    letter-spacing: 3.5px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 4px;
    white-space: nowrap;
}

.nav-logo-text .logo-line2::before,
.nav-logo-text .logo-sub::before,
.nav-logo-text .logo-line2::after,
.nav-logo-text .logo-sub::after {
    content: '';
    display: inline-block;
    width: 25px;
    height: 1.5px;
    background: var(--secondary);
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.2rem;
    align-items: center;
}

.nav-links a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    padding: 0.5rem 0.9rem;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Hide icons on desktop */
.nav-links a i {
    display: none;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary);
}

.nav-links a.active {
    border-bottom: 2px solid var(--secondary);
}

.nav-signin {
    color: var(--secondary) !important;
    border: 1.5px solid var(--secondary) !important;
    border-radius: 6px !important;
    padding: 0.45rem 1.2rem !important;
    margin-left: 0.5rem;
}

.nav-signin:hover {
    background: var(--secondary) !important;
    color: var(--dark) !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    position: relative;
    z-index: 10001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hamburger animation when menu is open */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===== HERO SECTION ===== */
#home {
    height: 100vh;
    min-height: 100vh;
    background: #000;
    display: flex;
    align-items: stretch;
    position: relative;
    overflow: hidden;
}

/* ---- Slider ---- */
.hero-slider {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center right;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

/* Dark overlay on each slide */
.hero-slide::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(
        to right,
        rgba(0,0,0,0.88) 0%,
        rgba(0,0,0,0.65) 45%,
        rgba(0,0,0,0.15) 100%
    );
}

/* fallback when no slides */
#home.no-image {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0d0d0d 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 620px;
    padding: 75px clamp(1.25rem, 2.5vw, 5rem) 3rem clamp(1.25rem, 2.5vw, 5rem);
    margin-top: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100vh - 75px);
    box-sizing: border-box;
}

.hero-tagline {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
    margin-top: 0.5rem;
}

.hero-tagline::before {
    content: none;
}

.hero-tagline span {
    color: var(--secondary);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 5rem);
    color: var(--white);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: 'Oswald', sans-serif;
}

/* "Welcome to" line - lighter weight */
.hero-content h1 span:first-child {
    font-weight: 400;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 1px;
}

.hero-content h1 .gold {
    color: var(--secondary);
    display: block;
    font-weight: 700;
    font-family: 'Oswald', sans-serif;
}

.hero-content h1 .white-line {
    color: var(--white);
    display: block;
    font-weight: 700;
    font-family: 'Oswald', sans-serif;
}

.hero-content p {
    font-size: 1rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    max-width: 420px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--secondary);
    color: #000;
    padding: 0.85rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.btn-hero-primary:hover {
    background: #e09400;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 160, 23, 0.4);
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--white);
    padding: 0.85rem 2rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    border: 2px solid rgba(255,255,255,0.4);
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

.btn-hero-secondary:hover {
    border-color: var(--white);
    background: rgba(255,255,255,0.08);
    transform: translateY(-2px);
}

/* Trust badges */
.hero-trust {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 0.8rem;
    margin-top: 0.3rem;
    padding-bottom: 0;
}

/* ── Hero trust label hidden on mobile (shown via grid layout) ── */

.hero-trust-label {
    color: var(--secondary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.hero-badges {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.hero-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    text-align: center;
}

.hero-badge i {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.6);
}

.hero-badge span {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.55);
    line-height: 1.3;
    max-width: 70px;
}

/* Years of excellence badge */
/* Desktop version: absolute positioned on right side of hero */
.hero-years-badge {
    background: #1a1200;
    border: 1px solid var(--secondary);
    border-radius: 10px;
    padding: 0.9rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    z-index: 2;
}

.hero-years-desktop {
    position: absolute;
    bottom: 3rem;
    right: clamp(1.25rem, 2.5vw, 4rem);
}

/* Mobile version: hidden on desktop, shown in flow on mobile */
.hero-years-mobile {
    display: none;
    margin-top: 1.2rem;
    width: 100%;
    justify-content: center;
}

.hero-years-badge i {
    font-size: 1.8rem;
    color: var(--secondary);
}

.hero-years-badge .years-text strong {
    display: block;
    font-size: 1.3rem;
    color: var(--white);
    font-weight: 800;
    line-height: 1;
}

.hero-years-badge .years-text span {
    font-size: 0.78rem;
    color: var(--secondary);
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Slider dots */
.hero-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 3;
}

.hero-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.hero-dot.active {
    background: var(--secondary);
    width: 24px;
    border-radius: 4px;
}

/* ===== SECTION COMMON ===== */
section {
    padding: clamp(2rem, 4vw, 4.5rem) clamp(1.25rem, 2.5vw, 2.5rem);
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-size: clamp(1.8rem, 1.2rem + 1.6vw, 3.2rem);
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--secondary);
    border-radius: 2px;
}

.section-header p {
    color: #777;
    font-size: clamp(1.05rem, 0.88rem + 0.35vw, 1.25rem);
    max-width: min(800px, 90%);
    margin: 1.5rem auto 0;
}

.container {
    max-width: min(1850px, 96vw);
    width: 100%;
    margin: 0 auto;
    padding-left: clamp(1.25rem, 2.5vw, 2.5rem);
    padding-right: clamp(1.25rem, 2.5vw, 2.5rem);
}

/* Page content sections — consistent top spacing */
#about .container,
#services .container,
#projects .container,
#hse .container,
#contact .container,
#service-detail .container {
    padding-top: 4rem;
    padding-bottom: 2rem;
}

/* ===== ABOUT SECTION ===== */
#about {
    background: #fff;
    margin-top: 0;
}

/* ── Common ── */
.about-small-label {
    display: inline-block;
    color: #5b4fcf;
    font-size: clamp(0.72rem, 0.62rem + 0.2vw, 0.9rem);
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.about-big-heading {
    font-size: clamp(2rem, 1.4rem + 1.8vw, 3.6rem);
    color: #0f1923;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.4rem;
}

.about-highlight {
    color: #5b4fcf;
    display: inline;
}

/* ── Unified About Row — flexible layout ── */
.about-row {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: clamp(2.5rem, 3vw, 4.5rem);
    align-items: center;
    margin-bottom: 3rem;
    padding-bottom: 0;
    border-bottom: none;
}

.about-row-reverse {
    grid-template-columns: 1.1fr 1fr;
}

.about-row-reverse .about-text-side {
    order: 2;
}

.about-row-reverse .about-image-side {
    order: 1;
}

.about-desc {
    color: #555;
    font-size: clamp(1rem, 0.88rem + 0.3vw, 1.22rem);
    line-height: 1.85;
    margin-bottom: 2.2rem;
    max-width: 100%;
    text-align: justify;
}

.about-btns {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    flex-wrap: wrap;
}

.btn-about-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: #5b4fcf;
    color: #fff;
    padding: 0.85rem 1.8rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
}

.btn-about-primary:hover {
    background: #4a3fbf;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(91,79,207,0.35);
}

.btn-about-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
    color: #333;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.btn-about-outline:hover { color: #5b4fcf; }

.play-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #bbb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #555;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.btn-about-outline:hover .play-btn {
    border-color: #5b4fcf;
    color: #5b4fcf;
}

/* ── Single Image Layout ── */
.about-single-image {
    position: relative;
    padding-bottom: 0;
}

.about-single-image > img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    object-position: top center;
    border-radius: 16px;
    display: block;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

.about-float-badge {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border-radius: 14px;
    padding: 1rem 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.14);
    min-width: 170px;
    white-space: nowrap;
}

.about-float-badge-icon {
    width: 46px;
    height: 46px;
    background: #5b4fcf;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.about-float-badge-icon i {
    color: #fff;
    font-size: 1.2rem;
}

.about-float-badge strong {
    display: block;
    font-size: 1.25rem;
    color: #111;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.2rem;
}

.about-float-badge span {
    font-size: 0.78rem;
    color: #888;
}

/* ── Overlapping Images Layout ── */
.about-images-overlap {
    position: relative;
    height: 380px;
}

.about-img-main {
    position: absolute;
    top: 0;
    left: 0;
    width: 75%;
    height: 320px;
    object-fit: cover;
    object-position: top center;
    border-radius: 16px;
    display: block;
    box-shadow: 0 15px 50px rgba(0,0,0,0.12);
}

.about-img-secondary {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50%;
    height: 200px;
    object-fit: cover;
    object-position: top center;
    border-radius: 16px;
    border: 5px solid #fff;
    box-shadow: 0 10px 35px rgba(0,0,0,0.15);
}

.about-badge-purple {
    position: absolute;
    bottom: 1.5rem;
    left: 0;
    background: #5b4fcf;
    color: #fff;
    border-radius: 12px;
    padding: 1.1rem 1.3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    min-width: 115px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(91,79,207,0.45);
    z-index: 2;
}

.about-badge-purple i {
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
}

.about-badge-purple strong {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1;
}

.about-badge-purple span {
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.4;
    margin-top: 0.2rem;
}

/* ── Value Cards — 4 in a row ── */
.about-values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-bottom: 2.5rem;
    margin-top: 2rem;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #ebebeb;
    overflow: hidden;
    box-shadow: 0 4px 30px rgba(0,0,0,0.06);
}

.about-value-card {
    padding: 2.2rem 1.8rem;
    border-right: 1px solid #ebebeb;
    transition: background 0.3s ease;
}

.about-value-card:last-child {
    border-right: none;
}

.about-value-card:hover {
    background: #fafafa;
}

.about-value-icon {
    width: 46px;
    height: 46px;
    background: rgba(91,79,207,0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
}

.about-value-icon i {
    color: #5b4fcf;
    font-size: 1.25rem;
}

.about-value-card h4 {
    font-size: 1rem;
    color: #111;
    font-weight: 700;
    margin-bottom: 0.6rem;
    line-height: 1.3;
}

.about-value-card p {
    font-size: clamp(0.87rem, 0.8rem + 0.15vw, 1rem);
    color: #666;
    line-height: 1.65;
}




/* ===== SERVICES SECTION ===== */
#services {
    background: var(--white);
    padding-top: 2rem;
    padding-bottom: 2rem;
}

.service-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-new-card {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 2rem 1.8rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid #ebebeb;
    transition: box-shadow 0.3s ease;
    min-height: 280px;
}

.service-new-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.service-new-heading {
    font-size: clamp(1rem, 0.9rem + 0.2vw, 1.15rem);
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.2rem;
    text-align: left;
}

.service-new-list {
    list-style: disc;
    padding-left: 1.2rem;
    margin-bottom: 1.5rem;
    flex: 1;
}

.service-new-list li {
    color: #444;
    font-size: clamp(0.9rem, 0.82rem + 0.2vw, 1.05rem);
    line-height: 1.7;
    margin-bottom: 0.3rem;
}

.service-item-desc {
    color: #666;
    font-size: clamp(0.85rem, 0.78rem + 0.15vw, 1rem);
    line-height: 1.6;
    margin-top: 0.4rem;
    padding: 0.6rem 0.8rem;
    background: #fff;
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}

.btn-learn-more-new {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gold);
    color: var(--dark);
    border: 2px solid var(--gold);
    padding: 0.55rem 1.4rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
    text-decoration: none;
}

.btn-learn-more-new:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.btn-learn-more-new i {
    transition: transform 0.3s ease;
    font-size: 0.75rem;
}

.btn-learn-more-new.active i {
    transform: rotate(180deg);
}

@media (max-width: 992px) {
    .service-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .service-cards-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== HSE SECTION ===== */
#hse {
    background: #fff;
    color: var(--text);
    padding-top: 2rem;
    padding-left: 0;
    padding-right: 0;
}

#hse .hse-why-box {
    margin-left: calc(-1 * clamp(1.25rem, 2.5vw, 2.5rem));
    margin-right: calc(-1 * clamp(1.25rem, 2.5vw, 2.5rem));
    border-radius: 0;
}

#hse .section-header h2 {
    color: var(--primary);
}

#hse .section-header h2::after {
    background: var(--secondary);
}

#hse .section-header p {
    color: #777;
}

/* Top row: left text, right image */
.hse-float-img {
    float: right;
    width: 45%;
    height: 380px;
    object-fit: cover;
    object-position: top center;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    margin: 0 0 2rem 2.5rem;
    display: block;
}

.hse-placeholder {
    float: right;
    width: 45%;
    height: 380px;
    border-radius: 16px;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: #ccc;
    margin: 0 0 2rem 2.5rem;
}

@media (max-width: 768px) {
    .hse-float-img,
    .hse-placeholder {
        float: none;
        width: 100%;
        margin: 0 0 1.5rem 0;
    }
}

.hse-main-desc {
    font-size: clamp(1rem, 0.88rem + 0.3vw, 1.22rem);
    line-height: 1.8;
    margin-bottom: 2rem;
    color: #555;
}

.hse-commitments-heading {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.2rem;
}

.hse-points-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hse-points-list li {
    color: #555;
    font-size: clamp(0.95rem, 0.85rem + 0.25vw, 1.1rem);
    line-height: 1.7;
    margin-bottom: 1rem;
    padding-left: 1.2rem;
    position: relative;
}

.hse-points-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 1.2rem;
    line-height: 1.4;
}

.hse-points-list li strong {
    color: var(--primary);
}

/* Right image */
.hse-right img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    object-position: top center;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.1);
    position: sticky;
    top: 80px;
}

.hse-placeholder {
    background: var(--light);
    border-radius: 16px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: #ccc;
}

/* Bottom Why HSE box */
.hse-why-box {
    background: var(--light);
    border-radius: 16px;
    padding: 2.5rem 3rem;
}

.hse-why-heading {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.hse-why-desc {
    color: #555;
    font-size: clamp(0.97rem, 0.88rem + 0.3vw, 1.18rem);
    line-height: 1.85;
}

@media (max-width: 992px) {
    .hse-top-row {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .hse-right img {
        position: static;
    }
    .hse-why-box {
        padding: 1.5rem;
    }
}

.hse-image img {
    width: 100%;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.hse-placeholder {
    background: rgba(255,255,255,0.1);
    border-radius: 16px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: rgba(255,255,255,0.3);
}

/* ===== PROJECTS SECTION ===== */
#projects {
    background: var(--light);
}

.projects-label {
    color: var(--secondary);
    font-size: clamp(0.72rem, 0.62rem + 0.2vw, 0.9rem);
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    text-align: center;
}

/* ── Tabs ── */
.project-tabs {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.project-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: #666;
    border: 2px solid #e0e0e0;
    padding: 0.65rem 1.4rem;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.project-tab:hover,
.project-tab.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.project-tab i {
    font-size: 0.8rem;
}

/* ── Project List ── */
.projects-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.project-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    align-items: stretch;
    background: #fff;
    border-radius: 16px;
    overflow: visible;
    box-shadow: 0 4px 30px rgba(0,0,0,0.07);
    transition: opacity 0.3s ease;
}

.project-row.hidden {
    display: none;
}

.project-row-reverse .project-text-side {
    order: 2;
}

.project-row-reverse .project-image-side {
    order: 1;
    padding: 1.5rem 0 1.5rem 1.5rem;
}

.project-row-reverse .project-img,
.project-row-reverse .project-placeholder {
    border-radius: 16px;
}

/* ── Text Side ── */
.project-text-side {
    padding: 2rem 2rem 1.5rem 1.8rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: #fff;
}

.project-category-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--secondary);
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-category-label i {
    font-size: 0.85rem;
}

.project-title {
    font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.4rem);
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 0.8rem;
    line-height: 1.2;
}

.project-divider {
    width: 50px;
    height: 3px;
    background: var(--secondary);
    margin-bottom: 1.2rem;
    border-radius: 2px;
}

.project-desc {
    color: #555;
    font-size: clamp(0.95rem, 0.85rem + 0.3vw, 1.18rem);
    line-height: 1.8;
    flex: 1;
}

/* ── Features Row ── */
.project-features {
    display: flex;
    flex-wrap: nowrap;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid #f0f0f0;
    justify-content: flex-start;
}

.project-feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    text-align: center;
}

.project-feature-item i {
    color: var(--secondary);
    font-size: 1.2rem;
}

.project-feature-item span {
    font-size: 0.75rem;
    color: #555;
    font-weight: 600;
    line-height: 1.3;
}

/* ── Image Side ── */
.project-image-side {
    position: relative;
    padding: 1.5rem 1.5rem 1.5rem 0;
}

.project-img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    object-position: top center;
    display: block;
    border-radius: 16px;
}

.project-placeholder {
    width: 100%;
    height: 380px;
    background: #e8edf2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #ccc;
    border-radius: 16px;
}

/* ── Stats Badge (overlaid on image bottom) ── */
.project-stats-badge {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 14px;
    padding: 1rem 1.5rem;
    display: flex;
    gap: 1.5rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    white-space: nowrap;
}

.project-stat-item {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.project-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.project-stat-icon--gold {
    background: var(--secondary);
}

.project-stat-icon i {
    color: #fff;
    font-size: 0.9rem;
}

.project-stat-item strong {
    display: block;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.project-stat-item span {
    font-size: 0.72rem;
    color: #888;
    line-height: 1.3;
}

/* ── Responsive ── */
@media (max-width: 992px) {
    .project-row {
        grid-template-columns: 1fr;
    }

    /* Mobile: always text first, image second */
    .project-row-reverse .project-text-side {
        order: 1;
    }

    .project-row-reverse .project-image-side {
        order: 2;
        padding: 0 1.2rem 1.2rem 1.2rem;
    }

    .project-image-side {
        min-height: 280px;
        padding: 0 1.2rem 1.2rem 1.2rem !important;
        overflow: hidden;
    }

    .project-img,
    .project-placeholder {
        height: 250px;
    }

    .project-stats-badge {
        gap: 1rem;
        padding: 0.8rem 1rem;
    }

    .project-tabs {
        gap: 0.5rem;
    }

    .project-tab {
        padding: 0.55rem 1rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 600px) {
    .project-text-side {
        padding: 1.5rem;
    }

    .project-stats-badge {
        flex-direction: row;
        gap: 0.3rem;
        left: 0;
        right: 0;
        transform: none;
        bottom: 0;
        padding: 0.6rem 0.8rem;
        justify-content: space-between;
        border-radius: 0 0 16px 16px;
    }

    .project-stat-item {
        gap: 0.4rem;
        flex: 1;
    }

    .project-stat-icon {
        width: 30px;
        height: 30px;
        flex-shrink: 0;
    }

    .project-stat-icon i {
        font-size: 0.75rem;
    }

    .project-stat-item strong {
        font-size: 0.85rem;
    }

    .project-stat-item span {
        font-size: 0.6rem;
    }

    .project-img,
    .project-placeholder {
        height: 220px;
    }
}

/* ===== CONTACT SECTION ===== */
#contact {
    background: #f0f4f8;
    margin-bottom: 0;
    padding-bottom: 4rem;
}

.contact-label {
    color: var(--secondary);
    font-size: clamp(0.78rem, 0.7rem + 0.15vw, 0.9rem);
    font-weight: 700;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 0.5rem;
}

/* ── Top Info Cards ── */
.contact-info-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-info-card {
    background: #fff;
    border-radius: 12px;
    padding: 0.9rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    border-bottom: 3px solid transparent;
    transition: border-color 0.3s ease;
}

.contact-info-card:hover {
    border-bottom-color: var(--secondary);
}

.contact-info-icon {
    width: 42px;
    height: 42px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-icon i {
    color: #fff;
    font-size: 0.95rem;
}

.contact-info-text h4 {
    font-size: clamp(0.85rem, 0.78rem + 0.15vw, 1rem);
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.25rem;
}

.contact-info-text p {
    font-size: clamp(0.8rem, 0.72rem + 0.15vw, 0.95rem);
    color: #666;
    line-height: 1.4;
}

/* Social icons in card */
.contact-social-icons {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: 0.2rem;
}

.csocial {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.csocial:hover { opacity: 0.85; }
.csocial-fb { background: #1877f2; }
.csocial-li { background: #0a66c2; }
.csocial-tw { background: #1da1f2; }
.csocial-ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.csocial-yt { background: #ff0000; }
.csocial-wa { background: #25d366; }

/* ── Form + Map Row ── */
.contact-main-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    align-items: stretch;
}

/* ── Form Box ── */
.contact-form-box {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.contact-form-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.8rem 2rem;
    background: var(--primary);
    margin-bottom: 0;
}

.contact-form-header-icon {
    width: 56px;
    height: 56px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-form-header-icon i {
    color: #fff;
    font-size: 1.3rem;
}

.contact-form-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.3rem;
}

.contact-form-header p {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.7);
}

.contact-form-inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.8rem 2rem 1.2rem 2rem;
    background: #fff;
}

.cf-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.cf-group {
    position: relative;
}

.cf-icon {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 0.9rem;
    z-index: 1;
    pointer-events: none;
}

.cf-icon-top {
    top: 1.1rem;
    transform: none;
}

.cf-select-wrap select,
.cf-group .form-control {
    width: 100%;
    padding: 0.9rem 1.2rem 0.9rem 2.8rem;
    border: 1.5px solid #e0e0e0;
    border-radius: 50px;
    font-size: 0.92rem;
    font-family: inherit;
    background: #f8f9fa;
    color: #333;
    transition: border-color 0.3s ease, background 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
}

.cf-group .form-control::placeholder {
    color: #aaa;
}

.cf-group .form-control:focus {
    outline: none;
    border-color: var(--secondary);
    background: #fff;
}

.cf-group select option {
    background: #fff;
    color: #333;
}

.cf-select-arrow {
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 0.75rem;
    pointer-events: none;
}

.cf-textarea-wrap .form-control {
    padding-top: 1rem;
    resize: none;
    border-radius: 16px;
}

.cf-char-count {
    position: absolute;
    bottom: 0.6rem;
    right: 1rem;
    font-size: 0.72rem;
    color: #bbb;
}

.btn-contact-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 1.2rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.3rem;
    letter-spacing: 0.3px;
}

.btn-contact-submit:hover {
    background: #0f2a45;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26,60,94,0.4);
}

/* ── Map Wrapper ── */
.contact-map-wrapper {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    height: 100%;
    background: #fff;
}

/* ── Map Box ── */
.contact-map-box {
    overflow: hidden;
    flex: 1;
    position: relative;
}

.contact-map-box iframe {
    width: 100%;
    height: 100%;
    min-height: 280px;
    border: 0;
    display: block;
}

/* ── Map Address Overlay ── */
.map-address-overlay {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 10;
    background: #fff;
    border-radius: 12px;
    padding: 0.9rem 1.2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    max-width: 260px;
}

.map-address-text strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.3rem;
}

.map-address-text span {
    font-size: 0.78rem;
    color: #555;
    line-height: 1.5;
    display: block;
}

.contact-map-placeholder {
    width: 100%;
    height: 320px;
    background: #e8edf2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    color: #888;
    text-align: center;
    padding: 2rem;
}

.contact-map-placeholder i {
    font-size: 3rem;
    color: var(--primary);
    opacity: 0.4;
}

.contact-map-placeholder p {
    font-size: 1rem;
    font-weight: 600;
    color: #555;
}

.contact-map-placeholder small {
    font-size: 0.8rem;
    color: #999;
    max-width: 280px;
    line-height: 1.5;
}

/* ── Get Directions Button ── */
.btn-get-directions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: var(--primary);
    color: #fff;
    text-decoration: none;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    transition: all 0.3s ease;
    letter-spacing: 0.3px;
    border-radius: 50px;
    margin: 0.3rem 1rem 0.8rem 1rem;
}

.btn-get-directions:hover {
    background: #0f2a45;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26,60,94,0.4);
}

.btn-get-directions i {
    font-size: 0.9rem;
}

/* ── Bottom Features Bar ── */
.contact-features-bar {
    background: var(--primary);
    border-radius: 16px;
    padding: 1.8rem 2.5rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.contact-feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #fff;
}

.contact-feature-item > i {
    font-size: 1.8rem;
    color: rgba(255,255,255,0.6);
    flex-shrink: 0;
}

.contact-feature-item strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.contact-feature-item span {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.65);
}

/* Alert messages */
.alert {
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.alert-success {
    background: rgba(212,255,212,0.15);
    color: #90ee90;
    border: 1px solid rgba(144,238,144,0.3);
}

/* ── Responsive ── */
@media (max-width: 1100px) {
    .contact-info-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .contact-main-row {
        grid-template-columns: 1fr;
    }

    .contact-features-bar {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .contact-info-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.7rem;
    }

    /* Follow Us card - full width */
    .contact-info-cards .contact-info-card:last-child {
        grid-column: 1 / -1;
    }

    .contact-info-card {
        padding: 0.7rem 0.8rem;
        gap: 0.6rem;
    }

    .contact-info-icon {
        width: 34px;
        height: 34px;
        flex-shrink: 0;
    }

    .contact-info-icon i {
        font-size: 0.8rem;
    }

    .contact-info-text h4 {
        font-size: 0.78rem;
    }

    .contact-info-text p {
        font-size: 0.72rem;
    }

    .cf-row-2 {
        grid-template-columns: 1fr;
    }

    .contact-features-bar {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
}

/* ===== NEW FOOTER ===== */

/* ── Footer Accordion: Global (works on all screen sizes) ── */
.footer-accordion-header {
    display: none; /* hidden on desktop */
}

.footer-accordion-body {
    display: block; /* visible on desktop */
}

/* Mobile accordion behavior handled in @media (max-width: 768px) */
.new-footer {
    background: #1a1a1a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    color: rgba(255, 255, 255, 0.8);
    padding: 2rem 0 0;
    margin-top: 0;
}

.footer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.95);
    z-index: 0;
}

.new-footer .container {
    position: relative;
    z-index: 1;
}

.footer-main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr 1fr;
    gap: 1.5rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Footer Logo */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.8rem;
}

.footer-logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.footer-logo-icon {
    width: 40px;
    height: 40px;
    background: var(--secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-logo-icon i {
    font-size: 1.2rem;
    color: #000;
}

.footer-logo-text {
    display: flex;
    flex-direction: column;
}

.footer-logo-line1 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.footer-logo-line2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary);
    line-height: 1.2;
    letter-spacing: 0.5px;
}

.footer-description {
    font-size: 0.85rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.8rem;
}

.footer-social-icons {
    display: flex;
    gap: 0.6rem;
}

.footer-social-icon {
    width: 35px;
    height: 35px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.85rem;
}

.footer-social-icon:hover {
    background: var(--secondary);
    color: #000;
    transform: translateY(-3px);
}

/* Footer Column Titles */
.footer-column-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.3rem;
    letter-spacing: 0.5px;
}

.footer-title-underline {
    width: 30px;
    height: 2px;
    background: var(--secondary);
    margin-bottom: 1rem;
}

/* Quick Links */
.footer-links-list {
    list-style: none;
}

.footer-links-list li {
    margin-bottom: 0.5rem;
}

.footer-links-list li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-links-list li a i {
    font-size: 0.6rem;
    color: var(--secondary);
    transition: transform 0.3s ease;
}

.footer-links-list li a:hover {
    color: var(--secondary);
    padding-left: 0.5rem;
}

.footer-links-list li a:hover i {
    transform: translateX(3px);
}

/* Services List */
.footer-services-list {
    list-style: none;
}

.footer-services-list li {
    margin-bottom: 0.5rem;
}

.footer-services-list li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.footer-services-list li a i {
    font-size: 0.95rem;
    color: var(--secondary);
    width: 16px;
}

.footer-services-list li a:hover {
    color: var(--secondary);
    padding-left: 0.5rem;
}

/* Contact List */
.footer-contact-list {
    list-style: none;
    margin-bottom: 0;
}

.footer-contact-list li {
    margin-bottom: 0.7rem;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
}

.footer-contact-list li i {
    font-size: 0.9rem;
    color: var(--secondary);
    margin-top: 0.15rem;
    width: 16px;
}

.footer-contact-list li a,
.footer-contact-list li span {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s ease;
}

.footer-contact-list li a:hover {
    color: var(--secondary);
}

/* Newsletter Section (Below Main Grid) */
.footer-newsletter-section {
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-newsletter-box {
    max-width: 100%;
}

.footer-newsletter-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.footer-newsletter-text {
    flex: 1;
}

.footer-newsletter-text h5 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.2rem;
    letter-spacing: 0.5px;
}

.footer-newsletter-text p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    line-height: 1.4;
}

.footer-newsletter-form {
    display: flex;
    gap: 0.5rem;
    min-width: 350px;
}

.footer-newsletter-form input {
    flex: 1;
    padding: 0.65rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    color: #fff;
    font-size: 0.85rem;
    outline: none;
    transition: all 0.3s ease;
}

.footer-newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.footer-newsletter-form input:focus {
    border-color: var(--secondary);
    background: rgba(255, 255, 255, 0.15);
}

.footer-newsletter-form button {
    padding: 0.65rem 1.1rem;
    background: var(--secondary);
    border: none;
    border-radius: 5px;
    color: #000;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.footer-newsletter-form button:hover {
    background: #f0b429;
    transform: translateY(-2px);
}

/* Footer Values Row */
.footer-values-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-value-item {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
}

.footer-value-icon {
    width: 38px;
    height: 38px;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.footer-value-icon i {
    font-size: 1.1rem;
    color: var(--secondary);
}

.footer-value-text h5 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.15rem;
}

.footer-value-text p {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.3;
}

/* Footer Bottom Bar */
.floating-back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #f0b429 0%, #d4a017 100%);
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(212, 160, 23, 0.4);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.floating-back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.floating-back-to-top i {
    color: #000;
    font-size: 1.1rem;
    font-weight: 900;
}

.floating-back-to-top:hover {
    background: linear-gradient(135deg, #e09400 0%, #c28d0f 100%);
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(212, 160, 23, 0.6);
}

.floating-back-to-top:active {
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .floating-back-to-top {
        width: 42px;
        height: 42px;
        bottom: 1.5rem;
        right: 1.5rem;
    }
    
    .floating-back-to-top i {
        font-size: 1rem;
    }
}

.footer-back-to-top {
    display: flex;
    justify-content: center;
    padding: 1.2rem 0 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--secondary);
    color: #000;
    border: none;
    padding: 0.65rem 1.6rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(212, 160, 23, 0.3);
}

.btn-back-to-top i {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.btn-back-to-top:hover {
    background: #e09400;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 160, 23, 0.45);
}

.btn-back-to-top:hover i {
    transform: translateY(-3px);
}

.footer-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    padding-right: 90px; /* Space for floating button */
}

.footer-copyright {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-designer {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-right: 1rem; /* Extra space from button */
}

.footer-designer a {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-designer a:hover {
    color: #f0b429;
}

.footer-designer i {
    color: #e74c3c;
    margin-left: 0.3rem;
}

/* Responsive */
@media (max-width: 1200px) {
    .footer-main-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        gap: 1.8rem;
    }
    
    .footer-newsletter-form {
        min-width: 300px;
    }
}

@media (max-width: 992px) {
    .footer-main-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .footer-newsletter-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .footer-newsletter-form {
        width: 100%;
        min-width: auto;
    }

    .footer-values-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }

    .footer-bottom-bar {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
        padding-right: 0; /* Remove extra padding on mobile */
        padding-bottom: 5rem; /* Space for floating button on mobile */
    }
    
    .footer-designer {
        margin-right: 0; /* Center on mobile */
    }
}

@media (max-width: 768px) {
    .new-footer {
        padding: 2rem 0 0;
    }

    .new-footer .container {
        padding: 0 1.2rem;
    }

    .footer-main-grid {
        grid-template-columns: 1fr;
        gap: 0;
        padding-bottom: 0;
    }

    /* Accordion columns */
    .footer-accordion-col {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .footer-accordion-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 0;
        cursor: pointer;
        user-select: none;
    }

    .footer-accordion-title-wrap {
        display: flex;
        align-items: center;
        gap: 0.8rem;
    }

    .footer-acc-icon {
        color: var(--secondary);
        font-size: 1rem;
        width: 20px;
        text-align: center;
    }

    .footer-accordion-header .footer-column-title {
        margin-bottom: 0;
        font-size: 0.9rem;
    }

    .footer-accordion-arrow {
        color: rgba(255,255,255,0.6);
        font-size: 0.85rem;
        transition: transform 0.3s ease;
    }

    .footer-accordion-col.open .footer-accordion-arrow {
        transform: rotate(180deg);
        color: var(--secondary);
    }

    .footer-accordion-body {
        display: none;
        padding-bottom: 1rem;
    }

    .footer-accordion-col.open .footer-accordion-body {
        display: block;
    }

    /* Hide desktop title/underline inside accordion */
    .footer-accordion-body .footer-title-underline {
        display: none;
    }

    .footer-newsletter-section {
        padding: 1.2rem 0;
    }

    .footer-newsletter-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
    }

    .footer-newsletter-form {
        width: 100%;
        min-width: auto;
        flex-direction: row;
    }

    .footer-newsletter-form button {
        width: auto;
        padding: 0.65rem 1rem;
    }

    .footer-values-row {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
        border-bottom: none;
    }

    .footer-value-item {
        padding: 0.9rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }

    .footer-logo-line1,
    .footer-logo-line2 {
        font-size: 1.1rem;
    }

    .footer-bottom-bar {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        padding-right: 0;
        padding-bottom: 5rem;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .hero-content {
        padding: 0 2rem;
        padding-top: 62px;
        padding-bottom: 2rem;
        max-width: 100%;
        min-height: unset;
        justify-content: flex-start;
    }

    #home {
        height: auto;
        min-height: 100vh;
        align-items: flex-start;
    }

    /* Desktop badge hidden, mobile badge shown */
    .hero-years-desktop {
        display: none !important;
    }

    .hero-years-mobile {
        display: flex !important;
    }

    .about-row,
    .about-row-reverse {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .about-row-reverse .about-text-side {
        order: 1;
    }

    .about-row-reverse .about-image-side {
        order: 2;
    }

    /* About images - mobile responsive */
    .about-single-image > img {
        height: auto;
        min-height: 280px;
        max-height: 400px;
        object-fit: contain;
        background: #f8f9fa;
    }

    .about-images-overlap {
        height: auto;
        min-height: 320px;
        position: relative;
        padding-bottom: 120px;
    }

    .about-img-main {
        position: relative;
        width: 100%;
        height: auto;
        min-height: 280px;
        max-height: 350px;
        object-fit: contain;
        background: #f8f9fa;
    }

    .about-img-secondary {
        position: absolute;
        bottom: 0;
        right: 0;
        width: 60%;
        height: auto;
        min-height: 150px;
        max-height: 180px;
        object-fit: contain;
        background: #fff;
    }

    .about-float-badge {
        bottom: -20px;
        left: 50%;
        transform: translateX(-50%);
    }

    .about-badge-purple {
        bottom: 0;
        left: 0;
    }

    .about-values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hse-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    /* Mobile menu overlay */
    .nav-links {
        display: flex;
        position: fixed;
        top: 60px;
        right: -100%;
        width: 65%;
        max-width: 320px;
        height: auto;
        max-height: calc(100vh - 60px - 1.5rem);
        background: linear-gradient(135deg, rgba(15, 15, 15, 0.98) 0%, rgba(25, 25, 25, 0.98) 100%);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 1.2rem 1.5rem 1.2rem;
        gap: 0;
        z-index: 9999;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -8px 0 30px rgba(0, 0, 0, 0.6);
        border-left: 1px solid rgba(212, 160, 23, 0.2);
        border-radius: 0 0 0 20px;
        overflow: hidden;
        list-style: none;
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links li {
        width: 100%;
        margin-bottom: 0.6rem;
    }

    .nav-links a {
        display: flex;
        align-items: center;
        gap: 1.2rem;
        padding: 1rem 1.5rem;
        border-radius: 12px;
        border: 1px solid transparent;
        font-size: 1rem;
        font-weight: 600;
        letter-spacing: 0.5px;
        text-transform: uppercase;
        transition: all 0.3s ease;
        color: rgba(255, 255, 255, 0.85);
    }

    .nav-links a i {
        display: block;
        font-size: 1.3rem;
        width: 24px;
        text-align: center;
        color: rgba(255, 255, 255, 0.7);
        transition: all 0.3s ease;
    }

    .nav-links a span {
        flex: 1;
    }

    .nav-links a:hover {
        background: rgba(212, 160, 23, 0.08);
        border-color: rgba(212, 160, 23, 0.2);
        color: var(--white);
        transform: translateX(-3px);
    }

    .nav-links a:hover i {
        color: var(--secondary);
    }

    .nav-links a.active {
        background: linear-gradient(135deg, rgba(212, 160, 23, 0.25) 0%, rgba(212, 160, 23, 0.15) 100%);
        border-color: rgba(212, 160, 23, 0.4);
        color: var(--secondary);
        box-shadow: 0 4px 15px rgba(212, 160, 23, 0.2);
    }

    .nav-links a.active i {
        color: var(--secondary);
    }

    .hamburger {
        display: flex;
        z-index: 10000;
    }

    /* Overlay backdrop when menu is open */
    .nav-links::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.75);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s ease;
        z-index: -1;
    }

    .nav-links.open::before {
        opacity: 1;
        pointer-events: auto;
    }

    .hero-content {
        padding: 0 1.5rem;
        padding-top: 62px;
        padding-bottom: 2rem;
        min-height: unset;
        justify-content: flex-start;
        max-width: 100%;
        width: 100%;
    }

    #home {
        height: auto;
        min-height: 100vh;
        align-items: flex-start;
        overflow-x: hidden;
    }

    .hero-content h1 {
        font-size: clamp(2rem, 9vw, 3rem);
        word-break: break-word;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        text-align: center;
        justify-content: center;
        width: 100%;
    }

    .hero-badges {
        gap: 1.2rem;
    }

    /* About images - smaller mobile screens */
    .about-single-image > img {
        height: auto;
        min-height: 250px;
        max-height: 350px;
        object-fit: contain;
        background: #f8f9fa;
        border-radius: 12px;
    }

    .about-images-overlap {
        height: auto;
        min-height: 280px;
        padding-bottom: 100px;
    }

    .about-img-main {
        position: relative;
        width: 100%;
        height: auto;
        min-height: 250px;
        max-height: 300px;
        object-fit: contain;
        background: #f8f9fa;
        border-radius: 12px;
    }

    .about-img-secondary {
        position: absolute;
        bottom: 0;
        right: 0;
        width: 65%;
        height: auto;
        min-height: 140px;
        max-height: 160px;
        object-fit: contain;
        background: #fff;
        border-radius: 12px;
    }

    .about-float-badge {
        bottom: -25px;
        padding: 0.8rem 1.1rem;
        min-width: 150px;
    }

    .about-badge-purple {
        bottom: 0.8rem;
        left: 0.5rem;
        padding: 0.9rem 1.1rem;
        min-width: 100px;
    }

    .about-badge-purple i {
        font-size: 1.1rem;
    }

    .about-badge-purple strong {
        font-size: 1.5rem;
    }

    .about-badge-purple span {
        font-size: 0.68rem;
    }

    .about-values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    section {
        padding: 3.5rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .about-grid,
    .projects-grid {
        grid-template-columns: 1fr;
    }

    /* About images - extra small mobile screens */
    .about-single-image > img {
        height: auto;
        min-height: 220px;
        max-height: 300px;
        object-fit: contain;
        background: #f8f9fa;
        border-radius: 10px;
    }

    .about-images-overlap {
        height: auto;
        min-height: 250px;
        padding-bottom: 80px;
    }

    .about-img-main {
        position: relative;
        width: 100%;
        height: auto;
        min-height: 220px;
        max-height: 280px;
        object-fit: contain;
        background: #f8f9fa;
        border-radius: 10px;
    }

    .about-img-secondary {
        position: absolute;
        bottom: 0;
        right: 0;
        width: 70%;
        height: auto;
        min-height: 120px;
        max-height: 140px;
        object-fit: contain;
        background: #fff;
        border-radius: 10px;
        border: 3px solid #fff;
    }

    .about-float-badge {
        bottom: -30px;
        padding: 0.7rem 1rem;
        min-width: 140px;
        gap: 0.7rem;
    }

    .about-float-badge-icon {
        width: 38px;
        height: 38px;
    }

    .about-float-badge-icon i {
        font-size: 1rem;
    }

    .about-float-badge strong {
        font-size: 1.1rem;
    }

    .about-float-badge span {
        font-size: 0.72rem;
    }

    .about-badge-purple {
        bottom: 0.5rem;
        left: 0.3rem;
        padding: 0.8rem 1rem;
        min-width: 90px;
    }

    .about-badge-purple i {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }

    .about-badge-purple strong {
        font-size: 1.4rem;
    }

    .about-badge-purple span {
        font-size: 0.65rem;
    }

    /* About buttons - same row on mobile */
    .about-btns {
        flex-wrap: nowrap;
        gap: 0.8rem;
        align-items: center;
    }

    .btn-about-primary {
        flex-shrink: 1;
        padding: 0.65rem 1rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .btn-about-outline {
        flex-shrink: 0;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .btn-about-outline .play-btn {
        width: 32px;
        height: 32px;
        flex-shrink: 0;
    }

    .hero-content {
        padding: 0 1.2rem;
        padding-top: 62px;
        padding-bottom: 2rem;
        min-height: unset;
        justify-content: flex-start;
        max-width: 100%;
        width: 100%;
    }

    .hero-content h1 {
        font-size: clamp(1.8rem, 8vw, 2.8rem);
        word-break: normal;
        overflow-wrap: break-word;
    }

    .hero-badges {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.8rem;
    }

    .hero-badge {
        flex-direction: row;
        align-items: center;
        gap: 0.6rem;
        text-align: left;
        background: rgba(255,255,255,0.07);
        border: 1px solid rgba(255,255,255,0.12);
        border-radius: 10px;
        padding: 0.7rem 0.9rem;
    }

    .hero-badge i {
        font-size: 1.2rem;
        flex-shrink: 0;
    }

    .hero-badge span {
        font-size: 0.75rem;
        max-width: unset;
        color: rgba(255,255,255,0.8);
    }

    /* Years badge handled by hero-years-mobile class */

    .hero-buttons {
        flex-direction: column;
        gap: 0.8rem;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        text-align: center;
        justify-content: center;
        width: 100%;
        padding: 0.9rem 1.5rem;
    }

    /* Hero section height auto on mobile */
    #home {
        height: auto;
        min-height: 100vh;
        align-items: flex-start;
    }
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: #aaa;
    font-size: 1rem;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

/* ===== VIDEO POPUP ===== */
.video-popup {
    display: none !important;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    animation: fadeIn 0.3s ease;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.video-popup.open {
    display: flex !important;
}

.video-popup-content {
    position: relative;
    width: 90%;
    max-width: 500px;
    background: transparent;
    border-radius: 16px;
    padding: 0;
    box-shadow: none;
}

.video-popup video {
    width: 100%;
    max-height: 80vh;
    border-radius: 12px;
    background: transparent;
    display: block;
    object-fit: contain;
    cursor: default;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 768px) {
    .video-popup-content {
        padding: 1rem;
        width: 95%;
        max-width: 500px;
    }
    
    .video-popup-title {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }
    
    .video-popup video {
        max-height: 300px;
    }
}


/* ===== SUCCESS POPUP ===== */
.success-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.success-popup.open {
    display: flex !important;
}

.success-popup-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
    position: relative;
    border: 3px solid var(--secondary);
}

.success-popup-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: scaleIn 0.5s ease 0.2s both;
    box-shadow: 0 10px 30px rgba(40, 167, 69, 0.3);
}

.success-popup-icon i {
    font-size: 3.5rem;
    color: #fff;
    animation: checkmark 0.6s ease 0.4s both;
}

.success-popup-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
    animation: fadeInUp 0.5s ease 0.3s both;
}

.success-popup-message {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 2rem;
    line-height: 1.6;
    animation: fadeInUp 0.5s ease 0.4s both;
}

.btn-success-close {
    background: linear-gradient(135deg, var(--primary) 0%, #0a3d62 100%);
    color: #fff;
    border: none;
    padding: 0.9rem 2.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(13, 71, 161, 0.3);
    animation: fadeInUp 0.5s ease 0.5s both;
}

.btn-success-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 71, 161, 0.4);
    background: linear-gradient(135deg, #0a3d62 0%, var(--primary) 100%);
}

.btn-success-close i {
    margin-right: 0.5rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes checkmark {
    0% {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.2) rotate(0deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .success-popup-content {
        padding: 2rem 1.5rem;
        width: 95%;
    }

    .success-popup-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 1rem;
    }

    .success-popup-icon i {
        font-size: 2.5rem;
    }

    .success-popup-title {
        font-size: 1.4rem;
        margin-bottom: 0.8rem;
    }

    .success-popup-message {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .btn-success-close {
        padding: 0.8rem 2rem;
        font-size: 0.95rem;
    }
}


/* ===== PAGE HEADERS ===== */
.page-header {
    position: relative;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 5.5rem 0 2rem;
    margin-bottom: 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
}

.page-header .container {
    position: relative;
    z-index: 2;
    max-width: min(1850px, 96vw);
    width: 100%;
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 2.5vw, 3rem);
}

.page-header-content {
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.page-header-text {
    max-width: 45%;
    flex: 0 0 45%;
}

.page-header-small-title {
    display: inline-block;
    color: var(--secondary);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 0.6rem;
    text-transform: uppercase;
}

.page-header-title {
    font-size: clamp(2.2rem, 1.5rem + 1.5vw, 3.2rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.page-header-highlight {
    color: var(--secondary);
    display: block;
}

.page-header-description {
    font-size: clamp(0.85rem, 0.75rem + 0.3vw, 1.1rem);
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 0;
}

.page-header-values {
    display: flex;
    gap: 1.5rem;
    flex: 0 0 55%;
    max-width: 55%;
    margin-top: 1.5rem;
}

.page-header-value-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 1.3rem 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 193, 7, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    flex: 1;
    min-height: auto;
}

.page-header-value-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 193, 7, 0.4);
    transform: translateY(-2px);
}

.page-header-value-icon {
    width: 42px;
    height: 42px;
    background: rgba(255, 193, 7, 0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.page-header-value-icon i {
    font-size: 1.2rem;
    color: var(--secondary);
}

.page-header-value-text h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.4rem;
    line-height: 1.5;
}

.page-header-value-text p {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Responsive */
@media (max-width: 1200px) {
    .page-header-content {
        gap: 2rem;
    }
    
    .page-header-values {
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    .page-header {
        padding: 2.5rem 0 1.5rem;
    }
    
    .page-header .container {
        padding: 0 2rem;
    }
    
    .page-header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .page-header-text {
        max-width: 100%;
    }
    
    .page-header-title {
        font-size: 2.5rem;
    }
    
    .page-header-values {
        max-width: 100%;
        width: 100%;
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 2rem 0 1.2rem;
    }
    
    .page-header .container {
        padding: 0 1.5rem;
    }
    
    .page-header-title {
        font-size: 2rem;
    }
    
    .page-header-description {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    
    .page-header-value-card {
        padding: 1rem;
    }
}


/* ===== SERVICE DETAIL PAGE ===== */
.service-detail-wrapper {
    max-width: min(1850px, 96vw);
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
}

.service-detail-content {
    padding: 0;
}

.service-detail-title {
    font-size: clamp(1.8rem, 1.3rem + 1.2vw, 2.4rem);
    color: var(--dark);
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.service-items-list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.service-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    padding: 0.3rem 0;
}

.service-detail-item-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.service-detail-item-icon i {
    font-size: 1rem;
    color: var(--gold);
}

.service-detail-item-text {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
    font-size: clamp(0.95rem, 0.85rem + 0.25vw, 1.1rem);
    color: var(--text);
    line-height: 1.5;
}

.service-item-number {
    font-weight: 600;
    color: var(--text);
}

.service-item-title-text {
    font-weight: 400;
    color: var(--text);
}

.service-detail-image {
    width: 100%;
    max-width: 600px;
    height: 350px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
    justify-self: center;
    align-self: center;
}

.service-detail-image img {
    width: 100%;
    height: 350px;
    display: block;
    object-fit: cover;
    object-position: top center;
}

/* Service Descriptions Section (Below the grid) */
.service-descriptions-section {
    max-width: min(1850px, 96vw);
    width: 100%;
    margin: 2.5rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid #e0e0e0;
}

.service-description-block {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    align-items: start;
    margin-bottom: 0.8rem;
    padding: 0.5rem 0;
}

.service-description-icon {
    width: 40px;
    height: 40px;
    background: var(--gold);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-description-icon i {
    font-size: 1.2rem;
    color: var(--white);
}

.service-description-content {
    flex: 1;
}

.service-description-title {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.service-description-text {
    font-size: clamp(0.95rem, 0.85rem + 0.25vw, 1.1rem);
    color: var(--text);
    line-height: 1.6;
    margin: 0;
}

.service-detail-back {
    margin-top: 2rem;
    text-align: center;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.9rem 1.8rem;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(26, 60, 94, 0.25);
}

.btn-back:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 18px rgba(26, 60, 94, 0.35);
}

.btn-back i {
    font-size: 0.9rem;
}

/* Responsive Design for Service Detail */
@media (max-width: 968px) {
    .service-detail-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-detail-image {
        justify-self: center;
        max-width: 100%;
        max-height: 350px;
    }
    
    .service-detail-image img {
        max-height: 350px;
    }
}

@media (max-width: 768px) {
    .service-detail-title {
        font-size: 1.6rem;
        margin-bottom: 1.2rem;
    }
    
    .service-items-list {
        gap: 0.5rem;
    }
    
    .service-detail-item-text {
        font-size: 0.9rem;
    }
    
    .service-detail-image {
        max-height: 300px;
    }
    
    .service-detail-image img {
        max-height: 300px;
    }
    
    .service-description-block {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .service-description-icon {
        width: 35px;
        height: 35px;
    }
    
    .service-description-icon i {
        font-size: 1rem;
    }
    
    .service-description-title {
        font-size: 1rem;
    }
    
    .service-description-text {
        font-size: 0.9rem;
    }
    
    .service-descriptions-section {
        margin-top: 2rem;
        padding-top: 1.5rem;
    }
}



/* ===== PAGE LOADER ===== */
#pageLoader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1200 50%, #0a0a0a 100%);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#pageLoader.hide {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

/* Tree ring animation */
.loader-tree-ring {
    position: relative;
    width: 110px;
    height: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-ring {
    position: absolute;
    border-radius: 50%;
    border: 2.5px solid transparent;
    animation: loaderSpin 1.8s linear infinite;
}

.ring-1 {
    width: 110px;
    height: 110px;
    border-top-color: #d4a017;
    border-right-color: rgba(212, 160, 23, 0.3);
    animation-duration: 1.4s;
}

.ring-2 {
    width: 82px;
    height: 82px;
    border-top-color: rgba(212, 160, 23, 0.7);
    border-left-color: rgba(212, 160, 23, 0.2);
    animation-duration: 1.8s;
    animation-direction: reverse;
}

.ring-3 {
    width: 56px;
    height: 56px;
    border-top-color: rgba(212, 160, 23, 0.4);
    border-right-color: #d4a017;
    animation-duration: 1.2s;
}

@keyframes loaderSpin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loader-icon {
    position: relative;
    z-index: 2;
    width: 42px;
    height: 42px;
    background: rgba(212, 160, 23, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: loaderPulse 1.5s ease-in-out infinite;
}

.loader-icon i {
    font-size: 1.3rem;
    color: #d4a017;
}

@keyframes loaderPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%       { transform: scale(1.15); opacity: 0.8; }
}

/* Brand text */
.loader-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.loader-name {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 5px;
    font-family: 'Playfair Display', Georgia, serif;
    animation: loaderFadeIn 0.8s ease forwards;
}

.loader-sub {
    font-size: 0.65rem;
    color: #d4a017;
    letter-spacing: 4px;
    font-weight: 600;
    animation: loaderFadeIn 1s ease forwards;
}

@keyframes loaderFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Progress bar */
.loader-bar-wrap {
    width: 180px;
    height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
}

.loader-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #d4a017, #f0c040, #d4a017);
    border-radius: 3px;
    animation: loaderProgress 2s ease forwards;
}

@keyframes loaderProgress {
    0%   { width: 0%; }
    60%  { width: 75%; }
    100% { width: 100%; }
}

/* Loading text */
.loader-text {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    letter-spacing: 2px;
    text-transform: uppercase;
    animation: loaderDots 1.5s ease-in-out infinite;
}

@keyframes loaderDots {
    0%, 100% { opacity: 0.4; }
    50%       { opacity: 1; }
}


/* ============================================================
   PERFORMANCE + UX UPGRADE PASS
   Goals:
   • Smooth scroll (no jank, no fade-in lag)
   • Stronger CTAs (gold glow, soft pulse, larger tap targets)
   • Better mobile typography & spacing (less clutter)
   ============================================================ */

/* --- Always-visible fixed elements get their own compositing layer
       so they never trigger full-page repaints during scroll. --- */
.floating-back-to-top {
    transform: translate3d(0, 20px, 0);
    contain: layout paint;
    transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.floating-back-to-top.show {
    transform: translate3d(0, 0, 0);
}
.floating-back-to-top:hover {
    transform: translate3d(0, -4px, 0);
}
.floating-back-to-top:active {
    transform: translate3d(0, -1px, 0);
}

/* --- Hero slider: GPU-promote slides so the cross-fade is silky --- */
.hero-slide { transform: translateZ(0); backface-visibility: hidden; }

/* --- Containment hints on heavy content blocks --- */
.service-cards-grid,
.projects-list,
.about-values-grid,
.new-footer { contain: layout paint; }

/* --- Project images & all media: prevent layout shift mid-scroll --- */
.project-img,
.about-img-main,
.about-img-secondary,
.hse-float-img,
.about-single-image img {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: top center;
    background: #f0f2f5;
}
.hse-float-img { aspect-ratio: 4 / 3; }
.about-img-main { aspect-ratio: 4 / 3; }

/* --- CTA BUTTON UPGRADE -----------------------------------------
   Client feedback was "CTAs don't stand out". We give the primary
   hero CTA a gold glow + a gentle, infinite pulse so the eye is
   immediately drawn to it, plus larger tap area on mobile.        */
.btn-hero-primary {
    position: relative;
    padding: 0.95rem 2.2rem;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.7px;
    border-radius: 8px;
    box-shadow:
        0 4px 14px rgba(212, 160, 23, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    animation: ctaPulse 2.6s ease-in-out infinite;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn-hero-primary:hover {
    animation-play-state: paused;
    background: #f0b429;
    transform: translate3d(0, -3px, 0);
    box-shadow:
        0 12px 30px rgba(212, 160, 23, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-hero-primary i {
    transition: transform 0.25s ease;
}
.btn-hero-primary:hover i {
    transform: translateX(4px);
}

@keyframes ctaPulse {
    0%, 100% {
        box-shadow:
            0 4px 14px rgba(212, 160, 23, 0.35),
            0 0 0 0 rgba(212, 160, 23, 0.45),
            inset 0 1px 0 rgba(255, 255, 255, 0.25);
    }
    60% {
        box-shadow:
            0 4px 14px rgba(212, 160, 23, 0.35),
            0 0 0 14px rgba(212, 160, 23, 0),
            inset 0 1px 0 rgba(255, 255, 255, 0.25);
    }
}

@media (prefers-reduced-motion: reduce) {
    .btn-hero-primary { animation: none; }
}

/* Secondary hero CTA: clearer outline + readable on dark backgrounds */
.btn-hero-secondary {
    border-width: 2px;
    border-color: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--secondary);
    color: var(--secondary);
    transform: translate3d(0, -3px, 0);
}

/* --- Section padding tightened for less "cluttered" feel ------- */
.section-header {
    margin-bottom: 3rem;
}
.section-header p {
    line-height: 1.65;
    color: #5e6470;
}

/* --- Smoother card hovers (use transform only, not box-shadow alone) --- */
.service-new-card,
.about-value-card,
.contact-info-card,
.project-row {
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.3s ease,
                border-color 0.3s ease;
}

/* --- MOBILE TYPOGRAPHY & SPACING (client: "text on mobile harder
        to read"). Values calibrated for ~375-414px screens.       */
@media (max-width: 600px) {
    body { line-height: 1.65; font-size: 16px; }

    section { padding: 3rem 1.1rem; }
    .container { padding: 0 0.25rem; }

    .section-header { margin-bottom: 2rem; }
    .section-header h2 { font-size: 1.7rem; line-height: 1.25; }
    .section-header p  { font-size: 0.98rem; }

    .hero-content { padding: 0 1.25rem 2.5rem; }
    .hero-content h1 { line-height: 1.1; letter-spacing: 0.5px; }
    .hero-content p  { font-size: 1rem; line-height: 1.7; max-width: 100%; }

    .hero-buttons { gap: 0.7rem; }
    .btn-hero-primary,
    .btn-hero-secondary {
        flex: 1 1 auto;
        justify-content: center;
        min-height: 48px;       /* WCAG-friendly tap target */
        padding: 0.95rem 1.3rem;
        font-size: 0.98rem;
    }

    .about-desc,
    .hse-main-desc,
    .project-desc {
        font-size: 1rem;
        line-height: 1.75;
    }

    /* All anchors/buttons easier to tap on phones */
    .nav-links a,
    .btn-learn-more-new,
    .project-tab,
    .footer-newsletter-form button {
        min-height: 44px;
    }
}

/* Tablet text size tweaks */
@media (min-width: 601px) and (max-width: 992px) {
    .section-header h2 { font-size: 2rem; }
    .about-desc, .hse-main-desc { font-size: 1rem; }
}

/* Large screens — full width layout across all sections */
@media (min-width: 1400px) {
    .container {
        max-width: min(1900px, 97vw);
    }

    .about-text-side {
        padding-right: 1rem;
    }

    .about-row-reverse .about-text-side {
        padding-right: 0;
        padding-left: 1rem;
    }

    .hero-content {
        max-width: 780px;
    }

    .hero-content h1 {
        font-size: clamp(3.5rem, 4.5vw, 6.5rem);
    }

    .hero-tagline span {
        font-size: 1.1rem;
    }

    .hero-content p {
        font-size: 1.15rem;
        max-width: 520px;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        font-size: 1.05rem;
        padding: 1rem 2.25rem;
    }

    .hero-trust-label {
        font-size: 0.85rem;
    }

    .hero-badge i {
        font-size: 1.75rem;
    }

    .hero-badge span {
        font-size: 0.82rem;
        max-width: 85px;
    }
}

@media (min-width: 1920px) {
    .hero-content {
        max-width: 900px;
        padding-left: clamp(2rem, 4vw, 6rem);
    }

    .hero-content h1 {
        font-size: clamp(4rem, 5vw, 7.5rem);
    }

    .hero-tagline span {
        font-size: 1.2rem;
    }

    .hero-content p {
        font-size: 1.25rem;
        max-width: 580px;
    }
}

/* --- Tame the hidden-by-default service descriptions so opening
       them doesn't cause a layout shift further down the page --- */
.service-item-desc {
    transition: max-height 0.35s ease;
}

/* ============================================================
   FULL SMOOTHNESS PASS — subtle GPU-friendly polish
   The JS handles the actual scrolling glide; this layer just
   makes everything *interactions* feel buttery alongside it.
   ============================================================ */

/* Use a single luxurious easing across hover/focus interactions */
:root {
    --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-quick: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Card hovers: transform + box-shadow only (cheap on GPU). 
   Specifically NO width/padding/font-size animations anywhere. */
.service-new-card,
.about-value-card,
.contact-info-card,
.project-row,
.footer-value-item,
.page-header-value-card,
.about-img-main,
.about-img-secondary,
.project-img,
.hse-float-img {
    transition: transform 0.45s var(--ease-soft),
                box-shadow 0.45s var(--ease-soft),
                border-color 0.3s var(--ease-quick);
    backface-visibility: hidden;
}

/* Subtle lift on hover (cards). Promotes layer for buttery hover. */
.service-new-card:hover,
.about-value-card:hover,
.contact-info-card:hover {
    transform: translate3d(0, -6px, 0);
}

/* Buttons: transform-only hover, snappy easing */
.btn-hero-primary,
.btn-hero-secondary,
.btn-about-primary,
.btn-about-outline,
.btn-learn-more-new,
.btn-success-close,
.btn-back-to-top,
.btn-contact-submit,
.project-tab {
    transition: transform 0.25s var(--ease-quick),
                box-shadow 0.25s var(--ease-quick),
                background-color 0.25s var(--ease-quick),
                color 0.25s var(--ease-quick),
                border-color 0.25s var(--ease-quick);
}

/* Visible keyboard focus — accessibility + looks polished */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid var(--secondary);
    outline-offset: 3px;
    border-radius: 4px;
    transition: outline-offset 0.15s var(--ease-quick);
}

/* Images get a soft fade-in when they finish lazy-loading so they
   don't pop in mid-scroll. */
img[loading="lazy"] {
    transition: filter 0.35s ease, opacity 0.35s ease;
}

/* Smooth navbar logo / link hover */
.nav-links a {
    transition: color 0.25s var(--ease-quick),
                background-color 0.25s var(--ease-quick),
                transform 0.25s var(--ease-quick);
    will-change: auto;
}
.nav-links a:hover {
    transform: translateY(-1px);
}

/* When the mobile menu is open, freeze body scroll for clean feel */
body.menu-open {
    overflow: hidden;
}

/* Any element that lives inside a scrollable popup must keep its own
   scroll behavior — never pollute it with the global wheel handler. */
.video-popup,
.success-popup {
    overscroll-behavior: contain;
}



/* ===== PROJECT VIEW DETAILS BUTTON ===== */
.project-view-details-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(75, 0, 130, 0.2);
}

.project-view-details-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(75, 0, 130, 0.3);
    color: white;
}

.project-view-details-btn i {
    transition: transform 0.3s ease;
}

.project-view-details-btn:hover i {
    transform: translateX(4px);
}


/* ===== UNIVERSAL IMAGE HOVER EFFECTS ===== */
/* Exact same effect as project detail gallery - purple-gold gradient overlay + zoom + lift */

/* About Page Images */
.about-images-overlap,
.about-single-image,
.about-img-main,
.about-img-secondary {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-images-overlap::before,
.about-single-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(75, 0, 130, 0.3), rgba(218, 165, 32, 0.3));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.about-images-overlap:hover::before,
.about-single-image:hover::before {
    opacity: 1;
}

.about-images-overlap:hover,
.about-single-image:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 45px rgba(75, 0, 130, 0.2);
}

.about-images-overlap img,
.about-single-image img {
    transition: transform 0.4s ease;
}

.about-images-overlap:hover img,
.about-single-image:hover img {
    transform: scale(1.08);
}

/* HSE Page Images */
.hse-float-img {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    float: right;
    margin: 0 0 2rem 2rem;
    max-width: 45%;
}

/* Wrap HSE image in a container for the overlay effect */
.hse-image-wrapper {
    position: relative;
    display: inline-block;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hse-image-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(75, 0, 130, 0.3), rgba(218, 165, 32, 0.3));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.hse-image-wrapper:hover::before {
    opacity: 1;
}

.hse-image-wrapper:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 45px rgba(75, 0, 130, 0.2);
}

.hse-image-wrapper img {
    display: block;
    transition: transform 0.4s ease;
}

.hse-image-wrapper:hover img {
    transform: scale(1.08);
}

/* Services Page Images */
.service-new-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-new-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(75, 0, 130, 0.3), rgba(218, 165, 32, 0.3));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.service-new-card:hover::before {
    opacity: 1;
}

.service-new-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 45px rgba(75, 0, 130, 0.2);
}

/* Service Detail Page Images */
.service-detail-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-detail-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(75, 0, 130, 0.3), rgba(218, 165, 32, 0.3));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.service-detail-image:hover::before {
    opacity: 1;
}

.service-detail-image:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 45px rgba(75, 0, 130, 0.2);
}

.service-detail-image img {
    transition: transform 0.4s ease;
}

.service-detail-image:hover img {
    transform: scale(1.08);
}

/* Projects Page Images */
.project-image-side {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-image-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(75, 0, 130, 0.3), rgba(218, 165, 32, 0.3));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.project-image-side:hover::before {
    opacity: 1;
}

.project-image-side:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 45px rgba(75, 0, 130, 0.2);
}

.project-img {
    transition: transform 0.4s ease;
}

.project-image-side:hover .project-img {
    transform: scale(1.08);
}

/* Index/Home Page - About Section Images */
#home .about-images-overlap,
#home .about-single-image {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#home .about-images-overlap::before,
#home .about-single-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(75, 0, 130, 0.3), rgba(218, 165, 32, 0.3));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

#home .about-images-overlap:hover::before,
#home .about-single-image:hover::before {
    opacity: 1;
}

#home .about-images-overlap:hover,
#home .about-single-image:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 45px rgba(75, 0, 130, 0.2);
}

#home .about-images-overlap img,
#home .about-single-image img {
    transition: transform 0.4s ease;
}

#home .about-images-overlap:hover img,
#home .about-single-image:hover img {
    transform: scale(1.08);
}

/* Index/Home Page - HSE Section Images */
#home .hse-float-img {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Index/Home Page - Projects Section Images */
#home .project-image-side {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#home .project-image-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(75, 0, 130, 0.3), rgba(218, 165, 32, 0.3));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

#home .project-image-side:hover::before {
    opacity: 1;
}

#home .project-image-side:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 45px rgba(75, 0, 130, 0.2);
}

#home .project-img {
    transition: transform 0.4s ease;
}

#home .project-image-side:hover .project-img {
    transform: scale(1.08);
}
