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

:root {
    --primary-color: #d4af37;
    --secondary-color: #1a1a1a;
    --accent-color: #2c3e50;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e0e0e0;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 5px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
    --header-offset: 120px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-offset);
}

section[id] {
    scroll-margin-top: var(--header-offset);
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Keep media responsive and prevent overflow */
img,
video,
iframe,
svg {
    max-width: 100%;
    height: auto;
    display: block;
}

canvas {
    max-width: 100%;
}

/* ============================================
   Splash Screen
   ============================================ */
.splash-screen {
    position: fixed;
    inset: 0;
    z-index: 20000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top, rgba(212, 175, 55, 0.25), transparent 55%),
        linear-gradient(135deg, #111 0%, #1f2a35 45%, #111 100%);
    color: #fff;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

.splash-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.splash-content {
    text-align: center;
    padding: 30px 20px;
    animation: splashIn 0.8s ease both;
}

.splash-logo {
    width: 96px;
    height: auto;
    margin-bottom: 18px;
    border-radius: 50%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.splash-title {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.splash-motto {
    font-size: clamp(14px, 2vw, 20px);
    color: rgba(255, 255, 255, 0.85);
}

.splash-motto.typewriter {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    min-height: 1.4em;
}

.splash-motto .typewriter-text {
    white-space: pre-wrap;
}

.splash-motto .typewriter-cursor {
    width: 1px;
    height: 1.2em;
    background: rgba(255, 255, 255, 0.85);
    display: inline-block;
    animation: typewriterBlink 0.8s steps(1) infinite;
}

body.splash-active {
    overflow: hidden;
}

.header,
#main-content,
.footer,
.scroll-top {
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

body.splash-active .header,
body.splash-active #main-content,
body.splash-active .footer,
body.splash-active .scroll-top {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Ensure high-quality image rendering */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: auto;
    -ms-interpolation-mode: bicubic;
}

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

/* Prevent long text from forcing layout overflow */
.section-header h2,
.section-header h3,
.contact-item a,
.contact-item p,
.member-contact,
.project-list-info h5 {
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* ============================================
   Header & Navigation
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-white);
    box-shadow: var(--shadow);
}

.service-highlights {
    padding: 6px 10px;
    border-radius: 16px;
    background: none;
    border: 1px solid rgba(212, 175, 55, 0.18);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(6px);
    position: relative;
    overflow: hidden;
}

.service-highlights-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.service-highlight-card {
    border-radius: 999px;
    padding: 7px 16px;
    background: var(--bg-white);
    border: 1px solid rgba(27, 42, 74, 0.12);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.service-highlight-label {
    color: var(--secondary-color);
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    white-space: nowrap;
    text-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}

.service-highlights::before {
    content: none;
}

.service-highlight-card::after {
    content: "";
    position: absolute;
    inset: -40% 0 auto 0;
    height: 200%;
    background: linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.35) 45%, transparent 70%);
    opacity: 0;
    transform: translateX(-120%);
    transition: opacity 0.3s ease, transform 0.6s ease;
}

.service-highlight-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.25);
    filter: saturate(1.1);
}

.service-highlight-card:hover::after {
    opacity: 1;
    transform: translateX(120%);
}

.service-highlight-card:focus-within {
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.5), 0 16px 32px rgba(15, 23, 42, 0.25);
}

/* Service highlight pills - one solid color per box */
.service-highlight-card:nth-child(1) {
    border-color: #1f5fbf;
    background: linear-gradient(135deg, #2c7be5 0%, #1f5fbf 55%, #163f8c 100%);
}

.service-highlight-card:nth-child(2) {
    border-color: #c24a1b;
    background: linear-gradient(135deg, #e85d1f 0%, #c24a1b 55%, #8c3410 100%);
}

.service-highlight-card:nth-child(3) {
    border-color: #1c7f45;
    background: linear-gradient(135deg, #2bbd6c 0%, #1c7f45 55%, #12522d 100%);
}

.service-highlight-card:nth-child(1) .service-highlight-label,
.service-highlight-card:nth-child(2) .service-highlight-label,
.service-highlight-card:nth-child(3) .service-highlight-label {
    color: #fff;
}

.top-bar {
    background: var(--secondary-color);
    color: #fff;
    padding: 10px 0;
    font-size: 14px;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.contact-info {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.contact-info a,
.address-info span {
    color: #fff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.contact-info a:hover {
    color: var(--primary-color);
}

.navbar {
    padding: 15px 0;
    background: var(--bg-white);
}

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

.nav-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
}

.logo-img {
    width: 250px;
    height: auto;
    object-fit: contain;
    transition: var(--transition);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: auto;
    -ms-interpolation-mode: bicubic;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.logo a:hover .logo-img {
    transform: scale(1.05);
    opacity: 0.9;
}

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

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--secondary-color);
    transition: var(--transition);
}

/* ============================================
   Hero Section / Carousel
   ============================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
     margin-top: 0 !important;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 0 20px;
    max-width: 800px;
    perspective: 1000px;
}

.slide-content h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0;
    line-height: 1.2;
    word-break: keep-all;
    overflow-wrap: break-word;
    white-space: normal;
}

.slide-content h1 .letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(-100px);
    animation: letterFall 0.6s ease forwards;
}

.slide-content h1 .word-container {
    display: inline-block;
    white-space: nowrap;
}

.slide-content h1 .letter-space {
    display: inline-block;
    width: 0.4em;
}

/* Reset animation when slide changes */
.carousel-slide:not(.active) .slide-content h1 .letter {
    opacity: 0;
    transform: translateY(-100px);
    animation: none;
}

.slide-content p {
    font-size: 24px;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.2s both;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 10;
}

.carousel-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    font-size: 20px;
}

.carousel-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 6px;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-block;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
}

.btn-primary:hover {
    background: #b8941f;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--secondary-color);
    color: #fff;
}

.btn-secondary:hover {
    background: #333;
}

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

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

/* ============================================
   Features Section
   ============================================ */
.features {
    padding: 80px 0;
    background: var(--bg-light);
}

/* ============================================
   Statistics & Charts Section
   ============================================ */
.stats-charts {
    padding: 80px 0;
    background: var(--bg-white);
}

.metrics-card {
    background: var(--bg-light);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 50px;
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    overflow: hidden;
}

.metrics-chart-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-container {
    width: 100%;
    max-width: 500px;
    height: 500px;
    position: relative;
}

.chart-container canvas {
    max-height: 100%;
}

.metrics-image-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.metrics-image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    width: 100%;
}

.metrics-image-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 1;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.metrics-image-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.metrics-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.metrics-image-item:hover img {
    transform: scale(1.1);
}

.metrics-image-item .image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.metrics-image-item:hover .image-overlay {
    transform: translateY(0);
}

.metrics-image-item .image-overlay h4 {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    text-align: center;
}

.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.chart-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
}

.chart-card h4 {
    font-size: 20px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.chart-card canvas {
    max-height: 300px;
}

/* ============================================
   Tabbed Data Section
   ============================================ */
.tabbed-data-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.data-tabs {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.data-tab-btn {
    padding: 12px 30px;
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    color: var(--primary-color);
    font-size: 16px;
	margin-top: 10px;
}

.data-tab-btn.active,
.data-tab-btn:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.data-tab-content {
    display: none;
}

.data-tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.data-item {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.data-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.data-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #fff;
}

.data-item h4 {
    font-size: 20px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.data-number {
    font-size: 42px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.data-desc {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 14px;
}

/* Project Cards - Clickable */
.project-card {
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   Project Gallery Modal (Slides in from right)
   ============================================ */
.project-gallery-modal {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    max-width: 800px;
    height: 100vh;
    background: var(--bg-white);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-gallery-modal.active {
    right: 0;
}

.gallery-modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.gallery-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 10001;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.gallery-modal-close:hover {
    background: #b8941f;
    transform: rotate(90deg);
}

.gallery-modal-header {
    padding: 25px 30px;
    background: var(--primary-color);
    color: var(--bg-white);
    border-bottom: 3px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.gallery-modal-header h4 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: var(--bg-white);
    padding-right: 60px;
}

.gallery-modal-body {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    overflow-x: hidden;
    background: var(--bg-light);
}

.gallery-modal-body.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.gallery-modal-body .gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 200px;
    cursor: pointer;
}

.gallery-modal-body .gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.gallery-modal-body .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.gallery-modal-body .gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-loading,
.gallery-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: var(--text-light);
}

.gallery-loading i,
.gallery-placeholder i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.gallery-loading p,
.gallery-placeholder p {
    font-size: 16px;
    margin: 0;
}

.no-projects {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.no-projects p {
    font-size: 18px;
}

/* Backdrop overlay */
.gallery-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    pointer-events: none;
}

.gallery-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* ============================================
   Image Showcase Section
   ============================================ */
.image-showcase {
    padding: 80px 0;
    background: var(--bg-white);
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.showcase-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow);
    height: 300px;
    cursor: pointer;
    transition: var(--transition);
}

.showcase-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.showcase-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.showcase-item:hover img {
    transform: scale(1.1);
}

.showcase-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    padding: 25px;
    color: #fff;
    transform: translateY(100%);
    transition: var(--transition);
}

.showcase-item:hover .showcase-overlay {
    transform: translateY(0);
}

.showcase-overlay h4 {
    font-size: 22px;
    margin-bottom: 8px;
}

.showcase-overlay p {
    font-size: 14px;
    opacity: 0.9;
}

/* ============================================
   Project Highlights Section
   ============================================ */
.project-highlights {
    padding: 80px 0;
    background: var(--bg-light);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 40px;
}

.highlight-card {
    background: var(--bg-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.highlight-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

.highlight-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
    position: relative;
}

.highlight-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.highlight-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.35));
    opacity: 0.7;
    transition: var(--transition);
    pointer-events: none;
}

.highlight-card:hover .highlight-image img {
    transform: scale(1.1);
}

.highlight-card:hover .highlight-image::after {
    opacity: 0.9;
}

.highlight-content {
    padding: 30px;
}

.highlight-content h4 {
    font-size: 24px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.highlight-content p {
    color: var(--text-light);
    margin-bottom: 10px;
    line-height: 1.8;
}

.highlight-content p strong {
    color: var(--secondary-color);
    font-weight: 600;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #fff;
}

.feature-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.8;
}

/* ============================================
   About Section
   ============================================ */
.about {
    padding: 0;
    background: var(--bg-white);
}

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

.section-header h2 {
    font-size: 42px;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.section-header h3 {
    font-size: 24px;
    color: var(--text-light);
    font-weight: 400;
}

.rating {
    margin-top: 24px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(6px);
}

.rating p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    margin: 0;
}

.stars {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
}

.rating-stars {
    display: inline-flex;
    gap: 6px;
    font-size: 14px;
    color: #f7d46a;
}

.rating-stars i {
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
}

.about-content-wrapper {
    padding: 80px 0;
}

.about-main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
    align-items: start;
}

.about-text-section,
.about-description-section {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.about-text-section:hover,
.about-description-section:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.about-section-title {
    font-size: 28px;
    color: var(--secondary-color);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--primary-color);
    font-weight: 700;
}

.about-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 14px 32px;
    background: var(--bg-white);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    color: var(--primary-color);
    font-size: 16px;
    position: relative;
    overflow: hidden;
}

.tab-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transition: var(--transition);
    z-index: 0;
}

.tab-btn span,
.tab-btn {
    position: relative;
    z-index: 1;
}

.tab-btn.active,
.tab-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.tab-content {
    display: none;
    margin-bottom: 30px;
    line-height: 1.9;
    color: var(--text-light);
    font-size: 16px;
    padding: 20px;
    background: var(--bg-white);
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

.tab-content p {
    margin: 0;
    text-align: justify;
}

.about-description {
    padding: 0;
}

.about-description p {
    margin-bottom: 20px;
    line-height: 1.9;
    color: var(--text-light);
    font-size: 16px;
    text-align: justify;
    padding: 15px;
    background: var(--bg-white);
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    transition: var(--transition);
}

.about-description p:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateX(5px);
}

.about-description p:last-child {
    margin-bottom: 0;
}

.about-description strong {
    color: var(--secondary-color);
    font-weight: 600;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin: 0 0 50px;
}

.about-highlight-card {
    background: #fff;
    padding: 26px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.about-highlight-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.about-highlight-card h4 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.about-highlight-card p {
    color: var(--text-light);
    font-size: 15px;
    line-height: 1.6;
}

.about-highlight-card .highlight-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: rgba(212, 175, 55, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--primary-color);
    margin-bottom: 14px;
}

.about-cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 32px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(44, 62, 80, 0.15) 100%);
    border: 1px solid rgba(212, 175, 55, 0.35);
    margin-bottom: 60px;
    box-shadow: var(--shadow);
}

.about-cta-banner h4 {
    font-size: 22px;
    color: var(--secondary-color);
    margin-bottom: 6px;
}

.about-cta-banner p {
    color: var(--text-light);
    margin: 0;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    text-align: center;
    padding: 60px 40px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    margin-top: 0;
}

.stat-item {
    position: relative;
    padding: 20px;
    transition: var(--transition);
}

.stat-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: rgba(255, 255, 255, 0.2);
}

.stat-item:last-child::after {
    display: none;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: rgba(212, 175, 55, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--primary-color);
    transition: var(--transition);
}

.stat-item:hover .stat-icon {
    background: var(--primary-color);
    color: #fff;
    transform: rotate(360deg);
}

.stat-item h3 {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 10px;
    font-weight: 800;
    transition: var(--transition);
}

.stat-item:hover h3 {
    transform: scale(1.1);
}

.stat-item p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    margin: 0;
}

/* ============================================
   Why Choose Us Section
   ============================================ */
.why-choose-us {
    padding: 100px 0;
    background: var(--bg-light);
    position: relative;
}

.why-choose-us .features-grid {
    grid-template-columns: repeat(3, 1fr);
}

.feature-item {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-item i {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-item h4 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.feature-item p {
    color: var(--text-light);
}

.experience-badge {
    text-align: center;
    margin-top: 60px;
    padding: 40px;
    background: var(--secondary-color);
    color: #fff;
    border-radius: 10px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.experience-badge h3 {
    font-size: 64px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.experience-badge p {
    font-size: 20px;
}

/* ============================================
   Services Section
   ============================================ */
.services {
    padding: 100px 0;
    background: var(--bg-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.service-card {
    background: var(--bg-white);
    border-radius: 13px;
    padding: 10px 10px 18px 10px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: unset;
    height: 100%;
    justify-content: flex-start;
}


.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.service-image {
    width: 100%;
    max-width: 210px;
    height: 160px;
    margin: 0 auto 10px;
    background: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.service-image img {
    width: 97%; /* slightly less than 100% for padding */
    max-width: 280px; /* adjust as desired */
    height: 178px;     /* slightly increased */
    object-fit: cover;
    border-radius: 0; /* <--- Removes rounded blend at corners */
    box-shadow: none; /* <--- Removes any blend/shadow effect */
    display: block;
    margin: 0 auto;
    transition: var(--transition);
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-image i {
    display: none;
}

.service-image:has(img) i {
    display: none !important;
}

.service-card h4 {
    font-size: 18px;
    margin-bottom: 5px;
    color: var(--secondary-color);
    font-weight: 600;
    line-height: 1.15;
    margin-top: 4px;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 0;
    line-height: 1.6;
    font-size: 14px;
    padding-bottom: 0;
}

.services-cover {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    height: 84vh;
    background-image: url('images/Our Services cover pic/construction-site-sunset_23-2152006125.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.services-tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.services-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 768px) {
    .services-cover {
        height: 60vh;
    }
}

.services-cover .slide-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 0 20px;
    margin-top: 40px;
    /* This will move header down to prevent collision */
    background: rgba(0,0,0,0.4);
    border-radius: 13px;
    max-width: 800px;
}
.services-cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

/* ============================================
   About Cover Section
   ============================================ */
.about-cover {
    width: 100%;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 100px 0 60px;
    position: relative;
}

.about-cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.75) 0%, rgba(26, 26, 26, 0.55) 45%, rgba(0, 0, 0, 0.25) 100%);
    z-index: 1;
}

.about-cover .container {
    position: relative;
    z-index: 2;
}

.about-cover .section-header {
    color: #fff;
}

.about-cover .section-header h2,
.about-cover .section-header h3 {
    color: #fff;
}

/* ============================================
   Gallery Section
   ============================================ */
.gallery {
    padding: 80px 0;
    background: var(--bg-light);
}

.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.gallery-tab-btn {
    padding: 12px 30px;
    background: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    color: var(--primary-color);
}

.gallery-tab-btn.active,
.gallery-tab-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

.gallery-content {
    position: relative;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    display: none;
}

.gallery-grid.active {
    display: grid;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: var(--transition);
    height: 300px;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 20px;
    color: #fff;
    transform: translateY(100%);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    font-size: 20px;
    margin-bottom: 5px;
}

.gallery-overlay p {
    font-size: 14px;
    opacity: 0.9;
}

/* ============================================
   Site Inspection Section
   ============================================ */
.site-inspection {
    padding: 80px 0;
    background: var(--bg-white);
}

.inspection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.inspection-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 300px;
}

.inspection-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.inspection-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.inspection-item:hover img {
    transform: scale(1.05);
}

.inspection-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 15px;
    color: #fff;
}

.inspection-caption h4 {
    font-size: 16px;
    font-weight: 600;
}

/* ============================================
   Projects Section
   ============================================ */
.projects-section {
    padding: 100px 0 150px;
    background: var(--bg-white);
    min-height: calc(100vh - 100px);
    position: relative;
    z-index: 1;
}

.projects-layout {
    margin-top: 40px;
    margin-bottom: 40px;
}

.projects-single-card {
    background: var(--bg-white);
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--primary-color);
    overflow: hidden;
    display: grid;
    grid-template-columns: 350px 1fr;
    min-height: 800px;
    max-height: calc(100vh - 200px);
}

.projects-left {
    background: var(--bg-light);
    border-right: 2px solid var(--primary-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.projects-list-header {
    padding: 25px 30px;
    background: var(--primary-color);
    color: var(--bg-white);
    border-bottom: 3px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    min-height: 75px;
    display: flex;
    align-items: center;
}

.projects-list-header h4 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: var(--bg-white);
    line-height: 1.2;
}

.projects-list {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    scrollbar-width: auto;
    scrollbar-color: var(--primary-color) var(--bg-light);
    min-height: 0;
}

.projects-list::-webkit-scrollbar {
    width: 12px;
}

.projects-list::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 10px;
}

.projects-list::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
    border: 2px solid var(--bg-light);
}

.projects-list::-webkit-scrollbar-thumb:hover {
    background: #b8941f;
}

.project-list-item {
    background: var(--bg-white);
    border-radius: 10px;
    padding: 15px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    display: flex;
    gap: 15px;
    align-items: center;
    box-shadow: var(--shadow);
}

.project-list-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.project-list-item.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--bg-white);
}

.project-list-item.active .project-list-info h5 {
    color: var(--bg-white);
}

.project-list-thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: var(--shadow);
}

.project-list-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-list-info {
    flex: 1;
    min-width: 0;
}

.project-list-info h5 {
    font-size: 16px;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 0;
    line-height: 1.4;
    word-wrap: break-word;
}

.projects-right {
    background: var(--bg-light);
    padding: 0;
    box-shadow: var(--shadow);
    min-height: 600px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.project-gallery-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--bg-white);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.gallery-card-header {
    padding: 25px 30px;
    background: var(--primary-color);
    color: var(--bg-white);
    border-bottom: 3px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    min-height: 75px;
    display: flex;
    align-items: center;
}

.gallery-card-header h4 {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: var(--bg-white);
    line-height: 1.2;
}

.project-gallery-scroll {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
    overflow-x: hidden;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    min-height: 0;
    scrollbar-width: auto;
    scrollbar-color: var(--primary-color) var(--bg-light);
}

.project-gallery-scroll .gallery-item {
    height: auto;
    min-height: 250px;
}

.project-gallery-scroll .gallery-item img {
    height: 250px;
    width: 100%;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.project-gallery-scroll .gallery-item img:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.project-gallery-scroll::-webkit-scrollbar {
    width: 12px;
}

.project-gallery-scroll::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: 10px;
}

.project-gallery-scroll::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
    border: 2px solid var(--bg-light);
}

.project-gallery-scroll::-webkit-scrollbar-thumb:hover {
    background: #b8941f;
}

/* Legacy support - keeping for backward compatibility */
.project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.gallery-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 100px 20px;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.gallery-placeholder i {
    font-size: 64px;
    color: var(--primary-color);
    margin-bottom: 20px;
    opacity: 0.5;
}

.gallery-placeholder p {
    font-size: 18px;
    color: var(--text-light);
}

.project-gallery .gallery-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.project-gallery .gallery-image:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

/* Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
}

.image-modal.active {
    display: flex;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 10px;
}

.modal-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

/* Responsive Design */
@media (max-width: 968px) {
    .projects-single-card {
        grid-template-columns: 1fr;
        min-height: auto;
        max-height: none;
    }
    
    .projects-left {
        border-right: none;
        border-bottom: 2px solid var(--primary-color);
        max-height: 400px;
    }
    
    .projects-list {
        max-height: 350px;
    }
    
    .project-list-item {
        padding: 12px;
    }
    
    .project-list-thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .project-list-info h5 {
        font-size: 14px;
    }
    
    .project-gallery-scroll {
        max-height: 500px;
    }
    
    .gallery-card-header {
        padding: 20px;
    }
    
    .gallery-card-header h4 {
        font-size: 18px;
    }
}

/* ============================================
   Team Section
   ============================================ */
.team {
    padding: 100px 0;
    background: var(--bg-white);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.team-member {
    background: var(--bg-light);
    padding: 40px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.team-member:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.member-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: #fff;
}

.team-member h4 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.member-role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 15px;
}

.member-contact {
    color: var(--text-light);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition);
}

.member-contact:hover {
    color: var(--primary-color);
}

/* ============================================
   Testimonials Section
   ============================================ */
.testimonials {
    padding: 100px 0;
    background: var(--bg-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--bg-white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-content {
    margin-bottom: 25px;
}

.testimonial-content p {
    color: var(--text-light);
    font-style: italic;
    line-height: 1.8;
}

.testimonial-author strong {
    display: block;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.testimonial-author span {
    color: var(--text-light);
    font-size: 14px;
}

/* ============================================
   CTA Section
   ============================================ */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
    color: #fff;
    text-align: center;
}

.cta h2 {
    font-size: 42px;
    font-weight: 700;
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="%23e0e0e0" stroke-width="0.5" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.1;
    z-index: 0;
}

.contact .container {
    position: relative;
    z-index: 1;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    background: var(--bg-white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.contact-item h4 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-item h4 i {
    color: var(--primary-color);
    font-size: 24px;
}

.contact-item a,
.contact-item p {
    color: var(--text-light);
    text-decoration: none;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.8;
    font-size: 16px;
}

.contact-item a i {
    color: var(--primary-color);
    font-size: 18px;
    margin-top: 3px;
}

.contact-item a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.contact-scan-card {
    position: relative;
    padding: 26px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(27, 38, 59, 0.06));
    border: 1px solid rgba(212, 175, 55, 0.25);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.contact-scan-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.18), transparent 55%);
    opacity: 0.8;
    pointer-events: none;
}

.scan-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(27, 38, 59, 0.95);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
}

.scan-content {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 18px;
    position: relative;
    z-index: 1;
}

.scan-text h4 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.scan-text p {
    color: var(--text-light);
    line-height: 1.7;
    font-size: 15px;
}

.scan-actions {
    display: flex;
    gap: 16px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.scan-hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 8px;
    background: #fff;
    color: var(--secondary-color);
    font-size: 13px;
    font-weight: 500;
    box-shadow: var(--shadow);
}

.scan-hint i {
    color: var(--primary-color);
}

.scan-image {
    width: 150px;
    height: 150px;
    border-radius: 16px;
    background: #fff;
    padding: 10px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scan-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.contact-form {
    background: var(--bg-white);
    padding: 50px;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    border-top: 4px solid var(--primary-color);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    transition: var(--transition);
    background: var(--bg-white);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
}

.form-group textarea {
    resize: vertical;
}

.contact-form .btn-primary {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    font-weight: 600;
    margin-top: 10px;
    transition: var(--transition);
}

.contact-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--secondary-color);
    color: #fff;
    padding: 40px 0 20px;
    position: relative;
    z-index: 10;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section h4 i {
    font-size: 16px;
}

.footer-section p,
.footer-section a {
    color: #ccc;
    text-decoration: none;
    line-height: 1.6;
    font-size: 14px;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #ccc;
}

/* ============================================
   Scroll to Top Button
   ============================================ */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    z-index: 999;
}

.scroll-top:hover {
    background: #b8941f;
    transform: translateY(-5px);
}

.scroll-top.show {
    display: flex;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes letterFall {
    0% {
        opacity: 0;
        transform: translateY(-100px) rotateZ(-10deg);
    }
    60% {
        transform: translateY(10px) rotateZ(5deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateZ(0deg);
    }
}

@keyframes wordFall {
    0% {
        opacity: 0;
        transform: translateY(-50px) rotateX(90deg);
    }
    60% {
        transform: translateY(10px) rotateX(-10deg);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0deg);
    }
}

@keyframes wordRotate {
    0% {
        opacity: 0;
        transform: rotateY(90deg) scale(0.8);
    }
    50% {
        transform: rotateY(-10deg) scale(1.05);
    }
    100% {
        opacity: 1;
        transform: rotateY(0deg) scale(1);
    }
}

@keyframes splashIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes typewriterBlink {
    0%,
    49% {
        opacity: 1;
    }
    50%,
    100% {
        opacity: 0;
    }
}

@keyframes serviceHighlightSweep {
    0% {
        transform: translateX(-60%);
    }
    50% {
        transform: translateX(20%);
    }
    100% {
        transform: translateX(120%);
    }
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 968px) {
    .nav-right {
        width: 100%;
        align-items: stretch;
        gap: 12px;
    }

    .service-highlights {
        display: none;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background: var(--bg-white);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: var(--shadow-lg);
        padding: 20px 0;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .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);
    }

    .top-bar-content {
        flex-direction: column;
        text-align: center;
    }

    .contact-info {
        justify-content: center;
    }

    .slide-content h1 {
        font-size: 36px;
    }

    .slide-content p {
        font-size: 20px;
    }

    .about-main-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-content-wrapper {
        padding: 60px 0;
    }

    .about-text-section,
    .about-description-section {
        padding: 30px;
    }

    .about-highlights {
        grid-template-columns: repeat(2, 1fr);
        margin-bottom: 40px;
    }

    .about-cta-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 40px 20px;
    }

    .stat-item::after {
        display: none;
    }

    .stat-item {
        padding-bottom: 30px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    }

    .stat-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .why-choose-us .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --header-offset: 90px;
    }

    .hero {
         margin-top: 0 !important;
        min-height: 500px;
    }

    .scan-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .scan-image {
        width: 180px;
        height: 180px;
    }
    
    .logo-img {
        width: 140px;
        height: auto;
    }

    .section-header h2 {
        font-size: 32px;
    }

    .section-header h3 {
        font-size: 20px;
    }

    .features-grid,
    .cities-grid,
    .team-grid,
    .testimonials-grid,
    .gallery-grid,
    .inspection-grid,
    .charts-grid,
    .data-grid,
    .showcase-grid,
    .highlights-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        aspect-ratio: auto;
        height: auto;
    }

    .service-image {
        height: 200px;
    }

    .metrics-card {
        grid-template-columns: 1fr;
        padding: 30px 20px;
        gap: 30px;
    }

    .chart-container {
        height: 400px;
        max-width: 100%;
    }

    .metrics-image-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .about-cover {
        min-height: 300px;
        padding: 80px 0 40px;
    }

    .about-main-content {
        gap: 30px;
        margin-bottom: 50px;
    }

    .about-text-section,
    .about-description-section {
        padding: 25px;
    }

    .about-highlights {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-cta-banner {
        padding: 24px;
    }

    .about-section-title {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .tab-btn {
        padding: 12px 24px;
        font-size: 14px;
    }

    .tab-content,
    .about-description p {
        font-size: 15px;
        padding: 15px;
    }

    .stats {
        padding: 30px 15px;
    }

    .stat-item h3 {
        font-size: 40px;
    }

    .stat-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }

    .services-cover {
        height: 200px;
    }

    .services-cover {
        width: 100%;
        margin-left: 0;
    }

    .gallery-item,
    .inspection-item,
    .showcase-item {
        height: 250px;
    }

    .data-tabs {
        flex-direction: column;
        align-items: stretch;
    }

    .data-tab-btn {
        width: 100%;
    }

    .gallery-tab-btn {
        width: 100%;
    }

    .highlight-card {
        max-width: 100%;
    }

    .carousel-controls {
        padding: 0 15px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

/* Responsive styles for Project Gallery Modal */
@media (max-width: 768px) {
    .project-gallery-modal {
        max-width: 100%;
    }
    
    .gallery-modal-body.gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
        padding: 20px;
    }
    
    .gallery-modal-body .gallery-item {
        height: 150px;
    }
    
    .gallery-modal-header {
        padding: 20px;
    }
    
    .gallery-modal-header h4 {
        font-size: 18px;
        padding-right: 50px;
    }
    
    .data-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .slide-content h1 {
        font-size: 28px;
    }

    .slide-content p {
        font-size: 16px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .contact-form {
        padding: 25px;
    }

    .metrics-card {
        padding: 20px 15px;
        gap: 25px;
    }

    .chart-container {
        height: 350px;
    }

    .metrics-image-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .metrics-image-item .image-overlay h4 {
        font-size: 14px;
    }
    
    .project-gallery-modal {
        max-width: 100%;
    }
    
    .gallery-modal-body.gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }
    
    .gallery-modal-body .gallery-item {
        height: 200px;
    }
    
    .gallery-modal-header {
        padding: 15px;
    }
    
    .gallery-modal-header h4 {
        font-size: 16px;
        padding-right: 45px;
    }
    
    .gallery-modal-close {
        width: 35px;
        height: 35px;
        top: 15px;
        right: 15px;
        font-size: 18px;
    }
    
    .data-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .data-tabs {
        flex-direction: column;
        gap: 10px;
    }
    
    .data-tab-btn {
        width: 100%;
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* ============================================
   Page Container Styles
   ============================================ */
.page-container {
    margin-top: 0;
    padding-top: 0;
    width: 100%;
    min-height: calc(100vh - 200px);
}

#page-content {
    width: 100%;
    min-height: calc(100vh - 200px);
}

.page {
    display: none;
    width: 100%;
    min-height: 100vh;
    animation: fadeIn 0.3s ease-in;
}

.page.active {
    display: block;
}

#main-content {
    width: 100%;
    margin-top: 0;
    padding-top: var(--header-offset);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Rectangle heading box */
.service-heading{
  text-align:center;
  margin: 35px 0 18px;
  padding: 18px 16px;
  border-radius: 0;                 /* ✅ rectangle */
  background: #fff;
  border: 2px solid var(--primary-color);
  box-shadow: 0 12px 28px rgba(0,0,0,0.10);
  position: relative;
  overflow: hidden;
}

.service-heading::before{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(135deg, rgba(212,175,55,0.12), transparent 55%);
  pointer-events:none;
}

.service-badge{
  display:inline-block;
  padding: 6px 14px;
  border-radius: 0;                 /* ✅ rectangle */
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .7px;
  text-transform: uppercase;
  color: var(--secondary-color);
  background: rgba(212,175,55,0.18);
  border: 1px solid rgba(212,175,55,0.45);
}

.service-title{
  margin: 10px 0 8px;
  font-size: 30px;
  font-weight: 800;
  color: var(--secondary-color);
  position: relative;
  z-index: 1;
}

.service-subtitle{
  margin: 0;
  font-size: 14px;
  color: rgba(0,0,0,0.7);
  position: relative;
  z-index: 1;
}

@media (max-width: 600px){
  .service-title{ font-size: 22px; }
}



.reveal-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}

.reveal-on-scroll.reveal-active {
  opacity: 1;
  transform: translateY(0);
}
.contact-form-heading{
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  text-align: center;
}

.contact-form-heading h3{
  margin: 0 0 6px;
  font-size: 24px;
  font-weight: 800;
  color: var(--secondary-color);
}

.contact-form-heading p{
  margin: 0;
  font-size: 14px;
  color: var(--text-light);
}
