/* =============================================
   IPCSA - Global Styles with Canvas Background
   ============================================= */

:root {
    /* Premium Light Mode Palette */
    --primary: #006341;
    --primary-dark: #004b31;
    --primary-light: #e6f1ed;
    --accent: #c5a021;
    /* Rich Gold */
    --accent-bright: #d4af37;
    --text-light: #ffffff;
    --text-dark: #1a1a2e;
    /* For text that should always be read on light */

    /* Theme Variables */
    --bg-primary: #fdfdfd;
    --bg-secondary: #f4f6f8;
    --bg-canvas: radial-gradient(circle at top right, #f4f6f8 0%, #ffffff 50%, #eaeff2 100%);
    --text-primary: #121619;
    --text-secondary: #4a5568;
    --nav-bg: rgba(255, 255, 255, 0.85);
    --card-bg: rgba(255, 255, 255, 0.9);
    --card-border: rgba(0, 107, 70, 0.1);
    --footer-bg: #f8f9fa;
    --glass-bg: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(0, 107, 70, 0.1);
    --glass-shadow: 0 12px 40px rgba(0, 0, 0, 0.04);
}


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

html {
    scroll-behavior: smooth;
}

body {
    font-size: 17px;
    font-family: 'Tajawal', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    line-height: 1.8;
    /* Improved readability */
    transition: background-color 0.4s ease, color 0.4s ease;
}

#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: var(--bg-canvas);
    transition: background 0.3s ease;
}

#app {
    position: relative;
    z-index: 1;
}

/* =============================================
   Preloader
   ============================================= */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s, visibility 0.5s;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

.preloader-logo {
    width: 200px;
    animation: pulse 1.5s ease-in-out infinite;
}

.preloader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid var(--glass-border);
    border-top-color: var(--accent);
    border-radius: 50%;
    margin: 20px auto;
    animation: spin 1s linear infinite;
}

#preloader p {
    color: var(--accent);
    font-size: 1.1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(0.95);
    }
}

/* =============================================
   WhatsApp Floating Button
   ============================================= */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s;
    animation: bounce 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* =============================================
   Statistics Section
   ============================================= */
.stats-section {
    background: linear-gradient(135deg, rgba(0, 99, 65, 0.1), rgba(255, 255, 255, 0.85));
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 2.5rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--accent);
    display: inline;
}

.stat-suffix {
    font-size: 2rem;
    color: var(--accent);
    font-weight: 700;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

/* =============================================
   Scroll Animations (Improved - No Flash)
   ============================================= */
/* Elements start visible - JavaScript will add animation class */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    will-change: transform, opacity;
}

/* Only animate when JS adds the 'animate' class */
.scroll-reveal.animate-in {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    will-change: transform, opacity;
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.scroll-reveal.animate-in.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Staggered delays */
.scroll-reveal.animate-in:nth-child(2) {
    transition-delay: 0.1s;
}

.scroll-reveal.animate-in:nth-child(3) {
    transition-delay: 0.15s;
}

.scroll-reveal.animate-in:nth-child(4) {
    transition-delay: 0.2s;
}

.stagger-reveal.revealed>*:nth-child(5) {
    transition-delay: 0.5s;
}

.stagger-reveal.revealed>*:nth-child(6) {
    transition-delay: 0.6s;
}

/* =============================================
   Smart Quote System Styles
   ============================================= */
.file-upload-wrapper {
    position: relative;
    width: 100%;
}

.file-upload-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.file-upload-custom {
    border: 2px dashed var(--card-border);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.file-upload-wrapper:hover .file-upload-custom {
    border-color: var(--primary);
    background: rgba(0, 107, 70, 0.03);
}

.upload-icon {
    font-size: 2.5rem;
}

.upload-text {
    font-weight: 500;
    color: var(--text-dark);
}

.file-name {
    font-size: 0.9rem;
    color: var(--primary);
    font-weight: 600;
}

.field-note {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: #666;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* =============================================
   Navigation
   ============================================= */
.glass-nav {
    display: flex;
    justify-content: center;
    padding: 1rem 5%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 107, 70, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.02);
}

.glass-nav.scrolled {
    background: rgba(255, 255, 255, 0.98);
    padding: 0.7rem 5%;
    box-shadow: 0 10px 30px rgba(0, 107, 70, 0.08);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
}

.logo img {
    height: 50px;
    transition: transform 0.3s;
}

.logo img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s, transform 0.3s;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    right: 0;
    background: var(--accent);
    transition: width 0.3s;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.btn-sm {
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    background: rgba(0, 107, 70, 0.08);
    border: 1px solid rgba(0, 107, 70, 0.2);
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 10px rgba(0, 107, 70, 0.1);
}

.btn-sm:hover {
    border-color: var(--primary);
    color: #fff !important;
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 99, 65, 0.2);
}

/* Theme Toggle Button */
.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: transparent;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    font-size: 1.2rem;
}

.btn-icon:hover {
    border-color: var(--primary);
    background: rgba(0, 99, 65, 0.1);
    transform: scale(1.05);
}



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

.hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: 0.3s;
}

/* =============================================
   Hero Section
   ============================================= */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 5% 60px;
    position: relative;
    text-align: center;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    /* Removed transparency/fog */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    /* Light black shadow/tint */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.content-glass {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    padding: 2rem;
    border-radius: 0;
    box-shadow: none;
    max-width: 900px;
    margin: 0 auto;
}

.fade-in {
    animation: slideUp 1s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    /* Responsive fluid typography */
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 800;
    color: #061d15;
}

.accent {
    color: var(--primary);
    /* Changed from Gold to Brand Green */
}

.hero-desc {
    font-size: 1.4rem;
    color: #0d2e22;
    line-height: 1.8;
    margin-top: 1rem;
}

.cta-group {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-primary {
    padding: 1rem 2.8rem;
    border-radius: 50px;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    /* Elegant transition */
    font-size: 1.05rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    color: #ffffff !important;
    /* Force white text */
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.btn-primary *,
.btn-secondary *,
.btn-submit *,
.btn-whatsapp * {
    color: #ffffff !important;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: all 0.5s ease;
}

.btn-primary:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(192, 192, 192, 0.4);
}

.btn-primary:active {
    transform: translateY(-2px);
}

.btn-primary:hover::after {
    left: 100%;
}

.btn-secondary {
    padding: 1rem 2.8rem;
    border-radius: 50px;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    font-size: 1.05rem;
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
    /* Green text */
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(197, 160, 33, 0.3);
}

.btn-link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn-link:hover {
    text-decoration: underline;
}

/* =============================================
   Page Hero (for inner pages)
   ============================================= */
.page-hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
}

.page-hero .hero-bg-image img {
    opacity: 1;
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    text-align: center;
    text-shadow: 2px 2px 10px rgba(255, 255, 255, 0.85);
}

/* =============================================
   Sections
   ============================================= */
.section {
    padding: 6rem 5%;
    /* Increased padding for better section rhythm */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.header-badge {
    display: inline-block;
    background: rgba(0, 99, 65, 0.1);
    color: var(--primary);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 1rem;
    border: 1px solid rgba(0, 99, 65, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 800;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, transparent, var(--primary), transparent);
}

.section-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 1rem auto 0;
}

.text-center {
    text-align: center;
    margin-top: 2rem;
}

/* =============================================
   Glass Container
   ============================================= */
.glass-container {
    background: rgba(255, 255, 255, 0.85);
    /* Subtler background for elegance */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 107, 70, 0.1);
    /* More refined border */
    border-top-color: rgba(0, 107, 70, 0.15);
    /* Lighting edge effect */
    border-radius: 25px;
    padding: 3rem;
    /* Better internal rhythm */
}

.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(0, 107, 70, 0.1);
    border-top: 1px solid rgba(0, 107, 70, 0.15);
    /* 3D Lighting border */
    padding: 2.5rem;
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.glass-card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.85), 0 0 15px rgba(0, 99, 65, 0.1);
}

.glass-card:hover::before {
    opacity: 1;
}

/* =============================================
   About Preview
   ============================================= */
.about-preview-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: center;
}

.about-image {
    position: relative;
    border-radius: 20px;
}

.about-image img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 20px;
}

.badge {
    position: absolute;
    bottom: -15px;
    left: 30px;
    background: var(--primary);
    color: #fff;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 800;
    box-shadow: 0 10px 25px rgba(0, 99, 65, 0.3);
    z-index: 10;
    border: 2px solid #fff;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.about-text h3 {
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.about-text p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* =============================================
   Services Grid
   ============================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.service-item-wrapper {
    perspective: 1000px;
}

.service-card {
    text-align: center;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-12px) rotateX(2deg);
}

.service-image {
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    height: 220px;
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.85);
    transition: all 0.5s ease;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.service-card:hover .service-image {
    box-shadow: 0 15px 35px rgba(0, 99, 65, 0.3);
}

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

.service-content h3 {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 0.8rem;
    transition: color 0.3s;
}

.service-card:hover .service-content h3 {
    color: var(--primary);
}

.service-card:hover .service-content p {
    color: var(--text-primary);
}

.service-content p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* Services Detail (services.html) */
.services-detail-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.service-detail-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: center;
}

.service-detail-card.reverse {
    direction: ltr;
}

.service-detail-card.reverse .service-detail-content {
    direction: rtl;
}

.service-detail-image {
    border-radius: 15px;
    overflow: hidden;
    height: 300px;
}

.service-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-detail-content h3 {
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 1rem;
}

.service-detail-content p {
    color: var(--text-secondary);
    line-height: 1.9;
}

/* =============================================
   Clients Grid
   ============================================= */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem;
}

.client-logo {
    background: rgba(255, 255, 255, 0.08);
    padding: 1.5rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    min-height: 100px;
}

.client-logo:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.client-logo img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    mix-blend-mode: multiply;
    opacity: 1;
    transition: opacity 0.3s;
}

.client-logo:hover img {
    opacity: 1;
}

/* Clients Full Grid (clients.html) */
.clients-grid-full {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.client-logo-large {
    background: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    transition: all 0.3s;
}

.client-logo-large:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.client-logo-large img {
    max-width: 100%;
    max-height: 100px;
    object-fit: contain;
    mix-blend-mode: multiply;
}

/* =============================================
   Products Grid
   ============================================= */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.product-card {
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    overflow: hidden;
    height: 100%;
}

.product-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.product-category-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.product-content {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-content h3 {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 0.8rem;
}

.product-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.product-specs {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
}

.spec-label {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 0.8rem;
}

.spec-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.spec-list li {
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    color: var(--text-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Products Detail Page */
.product-detail-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.product-detail-visuals img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.85);
}

.product-info-header h1 {
    text-align: right;
    margin-bottom: 0.5rem;
}

.product-info-category {
    color: var(--primary);
    font-weight: 800;
    margin-bottom: 2rem;
    display: block;
}

.product-detailed-specs {
    margin: 3rem 0;
}

.product-detailed-specs h4 {
    color: var(--accent);
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
}

.spec-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem 2rem;
}

.spec-key {
    font-weight: 700;
    color: #fff;
}

.spec-value {
    color: var(--text-secondary);
}

/* =============================================
   Page Subtitle (Hero sub-text)
   ============================================= */
.page-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 1rem;
    text-shadow: 1px 1px 6px rgba(255, 255, 255, 0.85);
    text-align: center;
}

/* =============================================
   Clients Showcase Grid (rows of logos)
   ============================================= */
.clients-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
}

.client-tile {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.8rem 1.2rem;
    min-height: 110px;
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.client-tile::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 99, 65, 0.08), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.client-tile:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 99, 65, 0.4);
    box-shadow: 0 15px 35px rgba(0, 99, 65, 0.15);
    background: rgba(255, 255, 255, 0.1);
}

.client-tile:hover::before {
    opacity: 1;
}

.client-tile img {
    max-width: 100%;
    max-height: 70px;
    object-fit: contain;
    filter: grayscale(40%);
    opacity: 0.85;
    transition: filter 0.3s, opacity 0.3s, transform 0.3s;
    position: relative;
}

.client-tile:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.08);
}

.client-tile {
    background: rgba(255, 255, 255, 0.7);
}

/* =============================================
   Featured Projects â€“ Masonry-like Grid
   ============================================= */
.featured-projects-section {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 60, 40, 0.05) 100%);
}

.projects-masonry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 1.5rem;
}

/* Wide card spans 2 columns */
.project-card.project-wide {
    grid-column: span 2;
}

.project-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 340px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 55px rgba(0, 0, 0, 0.45);
}

.project-img-wrap {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.project-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.project-card:hover .project-img-wrap img {
    transform: scale(1.12);
}

/* Overlay (hidden by default, revealed on hover) */
.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 30, 20, 0.98) 0%,
            rgba(0, 60, 40, 0.8) 55%,
            rgba(0, 99, 65, 0.2) 100%);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
    transform: translateY(0);
}

.project-overlay-inner {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.project-tag {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.8rem;
    border-radius: 50px;
    width: fit-content;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.project-overlay-inner h3 {
    font-size: 1.4rem;
    color: #ffffff !important;
    font-weight: 800;
    line-height: 1.3;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.85);
    /* Fixed text shadow to dark for contrast */
}

.project-overlay-inner p,
.project-overlay-inner span,
.project-meta-item strong {
    color: #ffffff !important;
    /* Force white text over global green */
}

.project-overlay-inner p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.95) !important;
    line-height: 1.5;
    margin: 0.5rem 0;
}

.project-meta-item {
    font-size: 0.9rem;
    color: #ffffff !important;
}

.project-meta-item strong {
    color: var(--accent);
}

/* Ensure accent is brighter in dark overlays */
.project-overlay .project-meta-item strong {
    color: #00ff8c;
}

.project-cta {
    display: inline-block;
    margin-top: 0.75rem;
    color: #00ff8c;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s;
}

.project-cta:hover {
    color: #fff;
    letter-spacing: 0.5px;
}

/* =============================================
   Testimonials â€“ Upgraded
   ============================================= */
.testimonials-section {
    background: linear-gradient(135deg, rgba(0, 99, 65, 0.04), transparent);
}

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

.testimonial-card {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding: 2.5rem;
}

.testimonial-stars {
    color: #f2c94c;
    font-size: 1.1rem;
    letter-spacing: 3px;
}

.testimonial-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    font-style: italic;
    flex: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 1.2rem;
    margin-top: auto;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #00a868);
    color: #fff;
    font-size: 1.3rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 99, 65, 0.3);
}

.testimonial-author h4 {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 700;
    margin: 0;
}

.testimonial-author span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* =============================================
   Quick Contact Bar
   ============================================= */
.quick-contact-bar {
    background: #ffffff;
    padding: 2.5rem 0;
    position: relative;
    z-index: 10;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    border-top: 1px solid rgba(0, 99, 65, 0.1);
    border-bottom: 4px solid var(--primary);
    /* Professional Green Border */
}

.quick-contact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.quick-contact-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    color: var(--primary);
    /* Green Text */
    text-decoration: none;
    padding: 1.2rem;
    border-radius: 16px;
    background: var(--bg-secondary);
    border: 1px solid rgba(0, 99, 65, 0.05);
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.quick-contact-item:hover {
    background: #fff;
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 99, 65, 0.1);
    border-color: var(--accent);
}

.qc-icon {
    font-size: 2rem;
    color: var(--accent);
    /* Gold Icons */
    background: #fdfdfd;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.qc-label {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.2rem;
    font-weight: 500;
}

.qc-value {
    display: block;
    font-weight: 700;
    font-size: 1rem;
    color: var(--primary);
    /* Green Value */
}

/* =============================================
   Contact Page Layout
   ============================================= */
.contact-layout {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

/* =============================================
   Quote Form Card
   ============================================= */
.quote-form-card {
    padding: 3rem;
}

.form-header {
    margin-bottom: 2.5rem;
}

.form-header-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(0, 99, 65, 0.1);
    border: 1px solid rgba(0, 99, 65, 0.2);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.fh-icon {
    font-size: 1.2rem;
}

.fh-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
}

.form-header-desc {
    color: #999;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* =============================================
   Professional Form Fields
   ============================================= */
.pro-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    position: relative;
}

.form-field label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
    outline: none;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #888;
    font-size: 0.85rem;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0, 99, 65, 0.12);
    background: rgba(255, 255, 255, 0.08);
}

.form-field select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M6 8L1 3h10z' fill='%23888'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 1rem center;
}

.form-field textarea {
    resize: vertical;
    min-height: 120px;
}

/* Light mode form fields */
.form-field input,
.form-field select,
.form-field textarea {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 99, 65, 0.15);
    color: #1a1a2e;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    background: #fff;
    border-color: var(--primary);
}

/* Error state */
.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
    border-color: #e74c3c;
    box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.12);
}

.field-error {
    display: none;
    font-size: 0.78rem;
    color: #e74c3c;
    font-weight: 500;
}

.form-field.has-error .field-error {
    display: block;
}

/* =============================================
   Submit Button â€“ Premium
   ============================================= */
.btn-submit-text {
    color: #ffffff !important;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    width: 100%;
    padding: 1.1rem 2rem;
    background: linear-gradient(135deg, var(--primary), #00a868);
    color: #ffffff !important;
    /* Force white text */
    border: none;
    border-radius: 14px;
    font-family: 'Tajawal', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 0 6px 20px rgba(0, 99, 65, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transition: left 0.6s ease;
}

.btn-submit:hover::before {
    left: 100%;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 99, 65, 0.45);
}

.btn-submit:active {
    transform: translateY(-1px);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-submit .btn-arrow {
    transition: transform 0.3s ease;
}

[dir="rtl"] .btn-submit .btn-arrow {
    transform: rotate(180deg);
}

.btn-submit:hover .btn-arrow {
    transform: translateX(-4px);
}

[dir="rtl"] .btn-submit:hover .btn-arrow {
    transform: rotate(180deg) translateX(-4px);
}

.btn-submit.shake {
    animation: shake 0.4s ease;
}

.form-note {
    text-align: center;
    font-size: 0.8rem;
    color: #999;
    margin-top: 0.5rem;
}

/* =============================================
   Form Success Message
   ============================================= */
.form-success-msg {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1.5rem;
    padding: 4rem 2rem;
    animation: fadeIn 0.5s ease;
}

.form-success-msg .success-icon {
    font-size: 4rem;
}

.form-success-msg h3 {
    color: var(--accent);
    font-size: 1.6rem;
}

.form-success-msg p {
    color: var(--text-secondary);
    max-width: 400px;
    line-height: 1.7;
}

/* =============================================
   Contact Sidebar
   ============================================= */
.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    position: sticky;
    top: 120px;
}

.sidebar-card {
    padding: 2rem;
}

.sidebar-card h3 {
    font-size: 1.2rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid rgba(0, 99, 65, 0.15);
}

.sidebar-benefits {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.sidebar-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.sidebar-benefit-dot {
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 0.5rem;
}

.sidebar-benefits li strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0.1rem;
}

.sidebar-benefits li span {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

/* Sidebar CTA Card */
.sidebar-cta-card {
    background: linear-gradient(135deg, rgba(0, 99, 65, 0.15), rgba(0, 60, 40, 0.25)) !important;
    border-color: rgba(0, 99, 65, 0.3) !important;
}

.sidebar-cta-card h3 {
    border-bottom-color: rgba(0, 99, 65, 0.3);
}

.sidebar-cta-card p {
    color: #ffffff !important;
    /* Force white for visibility */
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* WhatsApp Button - Unified with Primary */
.btn-whatsapp {
    padding: 1rem 2.8rem;
    border-radius: 50px;
    font-family: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    font-size: 1.05rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    color: #ffffff !important;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 99, 65, 0.45);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}
}

/* Full width utility */
.full-width {
    width: 100%;
    text-align: center;
}

/* =============================================
   Map Glass Wrapper
   ============================================= */
.map-glass-wrap {
    padding: 0.5rem;
    overflow: hidden;
}

/* =============================================
   Enhanced CTA Section
   ============================================= */
.cta-section {
    position: relative;
}

.cta-box {
    text-align: center;
    padding: 5rem 3rem;
    background: linear-gradient(135deg, rgba(0, 99, 65, 0.2), rgba(0, 60, 40, 0.3)) !important;
    border-color: rgba(0, 99, 65, 0.3) !important;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 99, 65, 0.08) 0%, transparent 60%);
    animation: ctaPulse 6s ease-in-out infinite;
}

@keyframes ctaPulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

.cta-box h2 {
    position: relative;
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.cta-box p {
    position: relative;
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-box .btn-primary {
    position: relative;
    padding: 1rem 3rem;
    font-size: 1.1rem;
}

.cta-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
}

/* =============================================
   Contact/Form Responsive
   ============================================= */
@media (max-width: 1024px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .quote-form-card {
        padding: 2rem 1.5rem;
    }

    .contact-sidebar {
        grid-template-columns: 1fr;
    }

    .cta-box {
        padding: 3rem 1.5rem;
    }

    .cta-box h2 {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .quick-contact-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   Certifications Section
   ============================================= */
.certifications-section {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.05), rgba(0, 0, 0, 0.2));
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem;
}

.cert-item {
    text-align: center;
    padding: 1.5rem 1rem;
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.cert-item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 20px 50px rgba(255, 255, 255, 0.85);
    border-color: var(--accent);
}

.cert-img {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1rem;
    aspect-ratio: 3 / 4;
    background: rgba(255, 255, 255, 0.05);
}

.cert-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cert-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 99, 65, 0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cert-overlay span {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    padding: 0.6rem 1.2rem;
    border: 2px solid #fff;
    border-radius: 50px;
    letter-spacing: 0.5px;
}

.cert-item:hover .cert-overlay {
    opacity: 1;
}

.cert-item h4 {
    color: var(--accent);
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
}

.cert-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Certificate Modal - New UI */
.cert-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(5px);
}

.cert-modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.cert-modal {
    width: auto;
    max-width: 95vw;
    height: auto;
    max-height: 95vh;
    background: transparent;
    border: none;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    position: relative;
    align-items: center;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.35s ease;
}

.cert-modal-backdrop.active .cert-modal {
    transform: scale(1) translateY(0);
}

.cert-modal-close {
    position: absolute;
    top: -40px;
    right: -10px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: none;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
    line-height: 1;
}

.cert-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.cert-modal-body {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
    padding: 0;
}

.cert-modal-body img {
    max-width: 100vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.85);
    background: #fff;
    /* In case the PNG has transparent parts */
}

.cert-pdf-btn {
    margin-top: 20px;
    background: var(--primary);
    color: white;
    padding: 10px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 99, 65, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.cert-pdf-btn:hover {
    background: var(--primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 99, 65, 0.4);
}

/* Light mode modal exceptions */
.cert-modal-backdrop {
    background: rgba(255, 255, 255, 0.9);
}

.cert-modal-close {
    color: #333;
    background: rgba(0, 0, 0, 0.1);
}

.cert-modal-close:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* =============================================
   About Full (about.html)
   ============================================= */
.about-full-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}

.about-image-large {
    position: relative;
    border-radius: 20px;
}

.about-image-large img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 20px;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-block {
    background: rgba(0, 60, 40, 0.2);
    padding: 2rem;
    border-radius: 15px;
    border-left: 5px solid var(--primary);
}

/* =============================================
   Products Grid
   ============================================= */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 2rem 0;
}

.product-card {
    background: rgba(0, 60, 40, 0.15);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: 1px solid rgba(0, 99, 65, 0.2);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 99, 65, 0.25);
    border-color: rgba(0, 99, 65, 0.4);
}

.product-card-image {
    position: relative;
    width: 100%;
    height: 240px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.1);
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

.product-card-body {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-grow: 1;
}

.product-card h3 {
    font-size: 1.4rem;
    color: #fff;
    font-weight: 800;
    line-height: 1.3;
    margin: 0;
}

.product-card-desc {
    font-size: 0.95rem;
    color: #fff;
    line-height: 1.6;
    flex-grow: 1;
}

.product-card .specs {
    padding: 1.2rem;
    background: rgba(0, 99, 65, 0.1);
    border-radius: 10px;
    border-left: 3px solid var(--primary);
    margin: 0.5rem 0;
}

.product-card .specs ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin: 0;
    padding: 0;
}

.product-card .specs li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.product-card .specs li::before {
    content: '\2713';
    color: var(--primary);
    font-weight: 800;
    font-size: 1rem;
    flex-shrink: 0;
}

.product-card .category-badge {
    display: inline-block;
    background: rgba(0, 99, 65, 0.2);
    color: var(--primary);
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid rgba(0, 99, 65, 0.3);
    width: fit-content;
    text-transform: capitalize;
    letter-spacing: 0.3px;
}

.product-card .btn-primary {
    padding: 0.8rem 1.8rem;
    font-size: 0.95rem;
    width: fit-content;
    margin-top: 0.5rem;
}

/* Light mode adjustments */
.product-card {
    background: rgba(0, 99, 65, 0.08);
    border-color: rgba(0, 99, 65, 0.15);
}

.product-card:hover {
    box-shadow: 0 20px 50px rgba(0, 99, 65, 0.15);
}

.product-card .specs {
    background: rgba(0, 99, 65, 0.05);
    border-left-color: rgba(0, 99, 65, 0.3);
}

.product-card h3 {
    color: #000;
}

.product-card-desc {
    color: #000;
}

.product-card .specs li {
    color: #000;
}

/* Responsive */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }

    .product-card-body {
        padding: 1.5rem;
    }

    .product-card h3 {
        font-size: 1.2rem;
    }

    .product-card-desc {
        font-size: 0.9rem;
    }

    .about-full-grid {
        grid-template-columns: 1fr;
    }
}

.pill {
    display: inline-block;
    background: var(--primary);
    color: var(--text-light);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.about-block p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

/* Vision Mission Goals */
.vm-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    align-items: stretch;
}

.vm-card {
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 3rem 2rem;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.vm-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.vm-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(197, 160, 33, 0.1);
    color: var(--accent);
    border-radius: 50%;
    transition: all 0.4s ease;
}

.vm-card:hover .vm-icon {
    background: var(--accent);
    color: #fff;
    transform: scale(1.1);
}

.vm-icon svg {
    width: 32px;
    height: 32px;
}

.vm-card h3 {
    color: var(--primary);
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    font-weight: 800;
}

.vm-card p,
.vm-card ul {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
    flex-grow: 1;
}

.goals-list {
    list-style: none;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.goals-list li {
    position: relative;
    padding-right: 2rem;
}

.goals-list li::before {
    content: '\2713';
    position: absolute;
    right: 0;
    color: var(--primary);
    font-weight: 900;
}

/* Timeline */
.timeline-container {
    padding: 3rem;
}

.timeline {
    position: relative;
    border-right: 3px solid var(--primary);
    padding-right: 2rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
}

.timeline {
    position: relative;
    padding: 2rem 0;
    margin-right: 2rem;
    border-right: 2px solid rgba(0, 99, 65, 0.2);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-right: 3rem;
    transition: all 0.4s ease;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    right: -0.7rem;
    top: 5px;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    border: 4px solid var(--bg-primary);
    box-shadow: 0 0 0 4px rgba(0, 99, 65, 0.1);
    z-index: 1;
    transition: all 0.3s ease;
}

.timeline-item:hover::before {
    background: var(--accent);
    box-shadow: 0 0 0 6px rgba(10, 255, 140, 0.2);
    transform: scale(1.2);
}

.timeline-item .year {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary);
    opacity: 0.8;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.timeline-item .desc h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.timeline-item .desc p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1.05rem;
}

.timeline-item .year {
    color: var(--primary-dark);
}

/* Values */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    justify-items: center;
}

.value-card {
    text-align: center;
    padding: 2rem;
    font-size: 1.1rem;
    color: var(--text-secondary);
    width: 100%;
}

/* =============================================
   Testimonials
   ============================================= */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    padding: 2.5rem;
}

.testimonial-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author h4 {
    color: var(--accent);
    margin-bottom: 0.3rem;
}

.testimonial-author span {
    color: #888;
    font-size: 0.9rem;
}

/* =============================================
   Contact
   ============================================= */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 0;
    padding: 0;
    overflow: hidden;
}

.contact-info-panel {
    background: rgba(240, 245, 242, 0.9);
    padding: 3rem;
}

.contact-info-panel h2 {
    color: var(--accent);
    margin-bottom: 1rem;
}

.contact-list {
    margin-top: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: flex-start;
}

.contact-icon {
    font-size: 1.8rem;
    min-width: 40px;
}

.contact-item h4 {
    color: var(--accent);
    margin-bottom: 0.3rem;
}

.contact-item p,
.contact-item a {
    color: var(--text-secondary);
    text-decoration: none;
}

.contact-item a:hover {
    color: var(--accent);
}

.map-container {
    margin-top: 2rem;
}

.contact-form-panel {
    padding: 3rem;
}

.contact-form-panel h2 {
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.contact-form-panel>p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.modern-form .form-group {
    margin-bottom: 1.5rem;
}

.modern-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.modern-form input,
.modern-form textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s;
}

.modern-form input:focus,
.modern-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.full-width {
    width: 100%;
}

/* =============================================
   CTA Section
   ============================================= */
.cta-section {
    padding: 4rem 5%;
}

.cta-box {
    text-align: center;
    padding: 4rem;
    background: linear-gradient(135deg, rgba(0, 107, 70, 0.05), rgba(0, 107, 70, 0.1));
    border-radius: 20px;
    border: 1px solid var(--glass-border);
}

.cta-box h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.cta-box p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* =============================================
   Footer
   ============================================= */
.glass-footer {
    border-top: 1px solid var(--glass-border);
    background: var(--footer-bg);
    padding: 4rem 5% 0;
    margin-top: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: var(--primary);
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 1rem;
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.7rem;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

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

.social-links {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.social-icon svg {
    width: 20px;
    height: 20px;
    z-index: 2;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(197, 160, 33, 0.1);
    box-shadow: 0 5px 15px rgba(197, 160, 33, 0.2);
}

.social-icon:hover svg {
    transform: scale(1.1);
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding: 1.5rem 0;
    margin-top: 2rem;
    width: 100%;
}

.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright-text p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
}

.developer-credit {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.developer-credit a {
    color: var(--primary-dark);
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.developer-credit a:hover {
    color: var(--primary);
}

@media (max-width: 768px) {
    .footer-bottom .container {
        flex-direction: column;
        text-align: center;
    }
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 992px) {

    .about-preview-grid,
    .about-full-grid,
    .service-detail-card,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .service-detail-card.reverse {
        direction: rtl;
    }

    h1 {
        font-size: 2.8rem;
    }

    .page-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .glass-nav {
        padding: 1rem 4%;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1.5rem;
        gap: 0;
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        padding: 1rem 0;
        border-bottom: 1px solid var(--glass-border);
    }

    .nav-links a,
    .nav-links a {
        color: #ffffff !important;
    }

    .nav-links a:hover,
    .nav-links a.active {
        color: var(--accent) !important;
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .hero-section {
        padding-top: 120px;
    }

    .content-glass {
        padding: 2rem;
    }

    h1 {
        font-size: 2.2rem;
    }

    .cta-group {
        flex-direction: column;
    }

    .section {
        padding: 3rem 4%;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .glass-container {
        padding: 1.5rem;
    }

    .timeline {
        padding-right: 1.5rem;
    }

    .timeline-item::before {
        right: -2.1rem;
    }

    .contact-info-panel,
    .contact-form-panel {
        padding: 2rem;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =============================================
   Light Mode Overrides
   ============================================= */

/* Navigation */
.glass-nav {
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--card-border);
}

.nav-links a {
    color: var(--text-primary);
}

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

.nav-links a::after {
    background: var(--primary);
}

.btn-sm {
    color: var(--text-primary);
    border-color: var(--primary);
}

.btn-sm:hover {
    color: white;
    background: var(--primary);
}

.hamburger span {
    background: var(--text-primary);
}

/* Glass Containers */
.glass-container,
.glass-card {
    background: var(--card-bg);
    border-color: var(--card-border);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 99, 65, 0.08);
}

/* Section Headers */
.section-header h2 {
    color: var(--primary);
}

.section-header p {
    color: var(--text-secondary);
}

/* Hero Section */
.hero-content h1 {
    color: white !important;
    /* Force White */
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8), 0 2px 5px rgba(0, 0, 0, 0.5) !important;
}

.hero-content p {
    color: white !important;
    /* Force White */
    /* Extreme dark shadow for maximum contrast against white building parts */
    text-shadow: 0 5px 20px rgba(0, 0, 0, 1), 0 0 25px rgba(0, 0, 0, 0.9), 0 0 10px rgba(0, 0, 0, 1) !important;
}

.hero-content .accent {
    color: white !important;
    /* Force White */
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.btn-secondary {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: white;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
}

/* Cards and Content */
.service-card h3,
.about-text h3 {
    color: var(--primary);
}

.service-card p,
.about-text p {
    color: var(--text-secondary);
}

/* Stats */
.stat-number,
.stat-suffix {
    color: var(--primary);
}

.stat-label {
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background: var(--footer-bg);
    border-top: 1px solid var(--card-border);
}

.footer h4 {
    color: var(--primary);
}

.footer p,
.footer a {
    color: var(--text-secondary);
}

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

/* Products Grid */
.product-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
}

.product-item span {
    color: var(--text-primary);
}

/* Certifications */
.cert-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
}

/* Client Logos */
.client-logo {
    background: white;
    border: 1px solid var(--card-border);
}

/* Contact Page */
.contact-info-panel,
.contact-form-panel {
    background: var(--card-bg);
}

.contact-form-panel input,
.contact-form-panel textarea {
    background: white;
    border-color: var(--card-border);
    color: var(--text-primary);
}

/* Text Colors */
h1,
h2,
h3,
h4 {
    color: var(--text-primary);
}

p,
span,
li {
    color: #60a70d;
}

/* Pills and Badges */
.pill {
    background: var(--primary);
    color: white;
}

/* Badge styles moved to main section */



/* =============================================
   Back to Top Button
   ============================================= */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 99, 65, 0.4);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 99, 65, 0.6);
}

.back-to-top svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* =============================================
   Improved Preloader with Progress Bar
   ============================================= */
#preloader {
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.preloader-progress {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.preloader-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    border-radius: 2px;
    transition: width 0.3s ease;
    animation: progressAnimation 1.5s ease-in-out forwards;
}

@keyframes progressAnimation {
    0% {
        width: 0%;
    }

    50% {
        width: 70%;
    }

    100% {
        width: 100%;
    }
}

.preloader-text {
    color: var(--accent);
    font-size: 0.9rem;
    opacity: 0.8;
}

/* =============================================
   Professional FAQ Accordion (Premium)
   ============================================= */
.faq-section {
    padding: 8rem 5% 5rem;
    background: radial-gradient(circle at top right, rgba(0, 99, 65, 0.05) 0%, transparent 40%);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    margin-bottom: 1.25rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-item:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(0, 99, 65, 0.15);
}

.faq-item.active {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.faq-item.active {
    background: rgba(0, 99, 65, 0.02);
}

.faq-question {
    width: 100%;
    padding: 1.8rem 2.5rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1.15rem;
    font-weight: 700;
    text-align: inherit;
    /* Respects [dir] */
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.faq-icon {
    width: 32px;
    height: 32px;
    background: rgba(0, 99, 65, 0.1);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 400;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    background: var(--primary);
    color: #fff;
    transform: rotate(135deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 600px;
    /* Large enough for any content */
    opacity: 1;
}

.faq-answer-content {
    padding: 0 2.5rem 2rem;
    color: var(--text-secondary);
    line-height: 1.9;
    font-size: 1.05rem;
}

@media (max-width: 768px) {
    .faq-question {
        padding: 1.5rem;
        font-size: 1.05rem;
    }

    .faq-answer-content {
        padding: 0 1.5rem 1.5rem;
    }
}


/* =============================================
   Professional Testimonials
   ============================================= */
.testimonials-section {
    background: radial-gradient(circle at center, rgba(0, 99, 65, 0.03) 0%, transparent 70%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.testimonial-item {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.4s ease;
    min-height: 100%;
}

.testimonial-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 15px 45px rgba(0, 99, 65, 0.1);
}

.quote-icon {
    font-size: 5rem;
    color: var(--primary);
    opacity: 0.15;
    position: absolute;
    top: 10px;
    right: 20px;
    line-height: 1;
    font-family: serif;
}

.testimonial-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    margin-top: auto;
    border-top: 1px solid var(--glass-border);
    padding-top: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-info h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.2rem;
}

.verified-partner {
    font-size: 0.85rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .testimonial-item {
        padding: 2.5rem 1.8rem;
    }
}

/* =============================================
   Gallery / Lightbox
   ============================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(255, 255, 255, 0.85) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay span {
    color: white;
    font-weight: 600;
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(255, 255, 255, 0.85);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.lightbox-close:hover {
    opacity: 1;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-prev {
    left: -70px;
}

.lightbox-next {
    right: -70px;
}

/* =============================================
   Form Validation Styles
   ============================================= */
.form-group {
    position: relative;
}

.form-group input.error,
.form-group textarea.error {
    border-color: #e74c3c !important;
    animation: shake 0.5s ease;
}

.form-group input.success,
.form-group textarea.success {
    border-color: var(--primary) !important;
}

.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 0.3rem;
    display: none;
}

.error-message.visible {
    display: block;
    animation: fadeIn 0.3s ease;
}

.success-message {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    text-align: center;
    margin-top: 1rem;
    display: none;
}

.success-message.visible {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================
   Team/Management Section
   ============================================= */
.team-section {
    background: linear-gradient(180deg, rgba(0, 99, 65, 0.03) 0%, transparent 100%);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.team-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 2rem;
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.team-card:hover {
    transform: translateY(-8px);
}

.team-member-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 4px solid rgba(0, 99, 65, 0.15);
    box-shadow: 0 8px 25px rgba(0, 99, 65, 0.1);
    transition: all 0.4s ease;
}

.team-card:hover .team-member-img {
    border-color: var(--accent);
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(0, 99, 65, 0.2);
}

.team-member-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.team-member-role {
    font-size: 1rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-member-bio {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* =============================================
   Mobile Responsive Improvements
   ============================================= */
@media (max-width: 576px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .faq-question {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }

    .faq-answer-content {
        padding: 0 1.5rem 1rem;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}

/* Certifications Responsive */
@media (max-width: 1024px) {
    .certifications-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .certifications-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .cert-item {
        padding: 1rem 0.5rem;
    }

    .cert-overlay span {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Projects Masonry Responsive */
@media (max-width: 1024px) {
    .projects-masonry {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-card.project-wide {
        grid-column: span 2;
    }
}

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

    .project-card.project-wide {
        grid-column: span 1;
    }

    .project-card {
        height: 280px;
    }

    /* Always show overlay on mobile (no hover on touch) */
    .project-overlay {
        opacity: 1;
        transform: translateY(0);
        background: linear-gradient(to top,
                rgba(0, 30, 20, 0.95) 0%,
                rgba(0, 60, 40, 0.5) 60%,
                transparent 100%);
    }

    .clients-showcase-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
        padding: 1rem;
    }

    .client-tile {
        padding: 1.2rem 0.8rem;
        min-height: 80px;
    }
}