/* ========================================
   The Best Key For Contracting Co
   Premium Corporate Landing Page
   ======================================== */

/* --- CSS Variables --- */
:root {
    --primary: #6BBF3A;
    --primary-dark: #5AAD2E;
    --primary-light: rgba(107, 191, 58, 0.1);
    --primary-lighter: rgba(107, 191, 58, 0.05);
    --white: #FFFFFF;
    --light-gray: #F4F6F7;
    --dark: #2F3A44;
    --dark-light: #4A5568;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.1);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Cairo', sans-serif;
    color: var(--dark);
    background: var(--white);
    line-height: 1.8;
    direction: rtl;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* --- Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-sm);
    padding: 10px 0;
}

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

.nav-logo img {
    height: 52px;
    width: auto;
    transition: var(--transition);
}

.navbar.scrolled .nav-logo img {
    height: 44px;
}

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

.nav-links a {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
    position: relative;
    padding: 4px 0;
}

.navbar.scrolled .nav-links a {
    color: var(--dark);
}

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

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

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 26px;
    height: 2.5px;
    background: var(--white);
    border-radius: 4px;
    transition: var(--transition);
}

.navbar.scrolled .nav-toggle span {
    background: var(--dark);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    white-space: nowrap;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(107, 191, 58, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: #25D366;
    color: var(--white);
    border-color: #25D366;
}

.btn-whatsapp:hover {
    background: #1EBE5A;
    border-color: #1EBE5A;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}

.btn-social {
    color: var(--dark);
    border-color: #e2e8f0;
}

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

.btn-full {
    width: 100%;
    justify-content: center;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(47, 58, 68, 0.85) 0%, rgba(107, 191, 58, 0.25) 100%);
    z-index: 1;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    z-index: 2;
    pointer-events: none;
}

.hero-shape-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(107, 191, 58, 0.12) 0%, transparent 70%);
    top: -150px;
    left: -100px;
}

.hero-shape-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(107, 191, 58, 0.08) 0%, transparent 70%);
    bottom: -100px;
    right: -100px;
}

.hero-key-icon {
    position: absolute;
    z-index: 2;
    opacity: 0.3;
    top: 50%;
    left: 10%;
    transform: translateY(-50%) rotate(-15deg);
    width: 300px;
    height: 300px;
    pointer-events: none;
}

.hero-key-icon svg {
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 120px 0 80px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    font-weight: 400;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid rgba(255, 255, 255, 0.6);
    border-bottom: 2px solid rgba(255, 255, 255, 0.6);
    transform: rotate(45deg);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.6; }
    50% { transform: rotate(45deg) translateY(10px); opacity: 1; }
}

/* --- Section Shared --- */
.section {
    padding: 100px 0;
    position: relative;
}

.section-shape-top {
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 80px;
    background: var(--white);
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
    z-index: 1;
    pointer-events: none;
}

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

.section-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 20px;
    border-radius: 50px;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
    line-height: 1.3;
}

.section-line {
    width: 60px;
    height: 4px;
    background: var(--primary);
    margin: 0 auto;
    border-radius: 4px;
}

/* --- About Section --- */
.about {
    background: var(--light-gray);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.about-lead {
    font-size: 1.1rem;
    line-height: 2;
    color: var(--dark-light);
    margin-bottom: 30px;
}

.about-lead strong {
    color: var(--dark);
}

.highlight {
    color: var(--primary);
    font-weight: 700;
}

.about-specialties {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.specialty-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.specialty-item:hover {
    transform: translateX(-4px);
    box-shadow: var(--shadow-md);
}

.specialty-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
}

.specialty-item span {
    font-weight: 600;
    font-size: 0.95rem;
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.value-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    border-radius: 0 4px 4px 0;
    transform: scaleY(0);
    transition: var(--transition);
}

.value-card:hover::before {
    transform: scaleY(1);
}

.value-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.value-number {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary-light);
    color: rgba(107, 191, 58, 0.15);
    line-height: 1;
    margin-bottom: 4px;
}

.value-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--dark);
}

.value-card p {
    font-size: 0.9rem;
    color: var(--dark-light);
    line-height: 1.7;
}

.vision-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--white);
    padding: 16px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 2px solid var(--primary-light);
    border-color: rgba(107, 191, 58, 0.2);
}

.vision-badge span {
    font-size: 0.9rem;
    color: var(--dark-light);
}

.vision-badge strong {
    font-size: 1.1rem;
    color: var(--primary);
}

/* --- Services Section --- */
.services {
    background: var(--white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--white);
    border: 1px solid #eef1f3;
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.service-card:hover::after {
    transform: scaleX(1);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--primary-light);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary);
    transform: scale(1.05);
}

.service-card:hover .service-icon svg {
    stroke: var(--white);
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--dark);
}

.service-card p {
    font-size: 0.9rem;
    color: var(--dark-light);
    line-height: 1.8;
}

/* --- Projects Section --- */
.projects {
    background: var(--light-gray);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

.project-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.project-image {
    height: 260px;
    overflow: hidden;
    position: relative;
}

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

.project-card:hover .project-image img {
    transform: scale(1.08);
}

.project-info {
    padding: 24px;
}

.project-info h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark);
}

.project-info p {
    font-size: 0.9rem;
    color: var(--dark-light);
    line-height: 1.7;
}

/* --- Partners Section --- */
.partners {
    background: var(--white);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.partner-item {
    background: var(--light-gray);
    border-radius: var(--radius);
    padding: 32px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    border: 2px solid transparent;
    min-height: 100px;
}

.partner-item:hover {
    border-color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.partner-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-light);
    text-align: center;
    letter-spacing: 0.03em;
    transition: var(--transition);
}

.partner-item:hover .partner-name {
    color: var(--primary);
}

/* --- Certifications Section --- */
.certifications {
    background: var(--light-gray);
}

.certs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.cert-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px 28px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 2px solid #eef1f3;
    position: relative;
}

.cert-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.cert-logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 16px;
    letter-spacing: 0.05em;
}

.cert-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--dark);
}

.cert-card p {
    font-size: 0.88rem;
    color: var(--dark-light);
    line-height: 1.7;
    margin-bottom: 16px;
}

.cert-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 18px;
    border-radius: 50px;
}

/* --- Contact Section --- */
.contact {
    background: var(--white);
}

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

.contact-item {
    display: flex;
    gap: 16px;
    margin-bottom: 28px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary);
}

.contact-item h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--dark);
}

.contact-item p {
    font-size: 0.9rem;
    color: var(--dark-light);
    line-height: 1.7;
}

.contact-item a {
    color: var(--dark-light);
}

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

.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 10px;
}

.contact-buttons .btn {
    padding: 12px 24px;
    font-size: 0.9rem;
}

/* --- Contact Form --- */
.contact-form-wrapper {
    background: var(--light-gray);
    border-radius: var(--radius);
    padding: 36px;
}

.contact-form h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--dark);
}

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-sm);
    font-family: 'Cairo', sans-serif;
    font-size: 0.95rem;
    color: var(--dark);
    background: var(--white);
    transition: var(--transition);
    direction: rtl;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(107, 191, 58, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232F3A44' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 16px center;
    padding-left: 40px;
}

/* --- Footer --- */
.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 50px 0 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    height: 50px;
    width: auto;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-links {
    display: flex;
    gap: 28px;
}

.footer-links a {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

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

.footer-bottom {
    text-align: center;
    padding: 20px 0;
    font-size: 0.85rem;
}

/* --- WhatsApp Float --- */
.whatsapp-float {
    position: fixed;
    bottom: 28px;
    left: 28px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: var(--transition);
    animation: whatsappPulse 2s ease-in-out infinite;
}

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

@keyframes whatsappPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
    50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.6); }
}

/* --- Reveal Animation --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Design --- */

/* Tablet */
@media (max-width: 1024px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 280px;
        background: var(--white);
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 0;
        box-shadow: var(--shadow-lg);
        z-index: 1001;
    }

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

    .nav-links a {
        color: var(--dark) !important;
        padding: 14px 0;
        font-size: 1rem;
        border-bottom: 1px solid #eef1f3;
        display: block;
        width: 100%;
    }

    .nav-toggle {
        display: flex;
        z-index: 1002;
    }

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

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

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

    .nav-toggle.active span {
        background: var(--dark) !important;
    }

    .hero-content {
        padding: 100px 0 60px;
    }

    .hero-key-icon {
        display: none;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }

    .section {
        padding: 70px 0;
    }

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

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

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

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

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .contact-buttons {
        flex-direction: column;
    }

    .contact-buttons .btn {
        justify-content: center;
    }
}

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

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .contact-form-wrapper {
        padding: 24px 20px;
    }

    .partners-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .partner-item {
        padding: 20px 12px;
    }
}

/* Mobile Nav Overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.nav-overlay.open {
    display: block;
}

/* ========================================
   Multi-Page Styles
   ======================================== */

/* --- Inner Page Navbar --- */
.navbar-inner {
    background: var(--dark);
}

.navbar-inner .nav-links a {
    color: rgba(255, 255, 255, 0.85);
}

.navbar-inner .nav-toggle span {
    background: var(--white);
}

.navbar-inner.scrolled {
    background: rgba(255, 255, 255, 0.97);
}

.navbar-inner.scrolled .nav-links a {
    color: var(--dark);
}

.navbar-inner.scrolled .nav-toggle span {
    background: var(--dark);
}

/* --- Page Header --- */
.page-header {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.page-header-bg {
    position: absolute;
    inset: 0;
}

.page-header-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-header-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(47, 58, 68, 0.88) 0%, rgba(107, 191, 58, 0.2) 100%);
}

.page-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding-top: 80px;
}

.page-header-content h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 900;
    color: var(--white);
    margin-bottom: 12px;
}

.page-header-content p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 16px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
}

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

.breadcrumb span {
    color: rgba(255, 255, 255, 0.5);
}

.breadcrumb span:last-child {
    color: var(--primary);
}

/* --- Stats Grid (Homepage) --- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.stat-item {
    text-align: center;
    padding: 28px 16px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 2px solid transparent;
}

.stat-item:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--primary);
    line-height: 1.2;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--dark-light);
    font-weight: 600;
}

.stats-section {
    background: var(--light-gray);
    padding: 60px 0;
}

/* --- CTA Section --- */
.cta-section {
    background: var(--light-gray);
    padding: 80px 0;
}

.cta-box {
    background: linear-gradient(135deg, var(--dark) 0%, #3d4f5c 100%);
    border-radius: var(--radius);
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(107, 191, 58, 0.15) 0%, transparent 70%);
    top: -100px;
    left: -50px;
    border-radius: 50%;
}

.cta-box::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(107, 191, 58, 0.1) 0%, transparent 70%);
    bottom: -50px;
    right: -30px;
    border-radius: 50%;
}

.cta-box h2 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.cta-box p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* --- Service Detail (Services Page) --- */
.service-detail {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    padding: 40px;
    background: var(--white);
    border: 1px solid #eef1f3;
    border-radius: var(--radius);
    margin-bottom: 28px;
    transition: var(--transition);
}

.service-detail:hover {
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.service-detail.reverse {
    flex-direction: row-reverse;
}

.service-detail-icon {
    width: 100px;
    height: 100px;
    background: var(--primary-light);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.service-detail-content h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
}

.service-detail-content p {
    font-size: 0.95rem;
    color: var(--dark-light);
    line-height: 1.9;
    margin-bottom: 16px;
}

.service-features {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.service-features li {
    font-size: 0.9rem;
    color: var(--dark);
    font-weight: 600;
    padding-right: 20px;
    position: relative;
}

.service-features li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

/* --- Project Showcase (Projects Page) --- */
.project-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 36px;
}

.project-showcase.reverse {
    direction: ltr;
}

.project-showcase.reverse .project-showcase-info {
    direction: rtl;
}

.project-showcase-image {
    height: 100%;
    min-height: 380px;
    overflow: hidden;
}

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

.project-showcase:hover .project-showcase-image img {
    transform: scale(1.05);
}

.project-showcase-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 50px;
    margin-bottom: 12px;
    width: fit-content;
}

.project-tag-sm {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 50px;
    margin-bottom: 8px;
}

.project-showcase-info h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 12px;
}

.project-showcase-info p {
    font-size: 0.95rem;
    color: var(--dark-light);
    line-height: 1.9;
    margin-bottom: 20px;
}

.project-details-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.project-detail-item {
    display: flex;
    gap: 12px;
    font-size: 0.9rem;
}

.project-detail-item strong {
    color: var(--dark);
    min-width: 100px;
}

.project-detail-item span {
    color: var(--dark-light);
}

.project-meta {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}

.project-meta span {
    font-size: 0.8rem;
    color: var(--dark-light);
    background: var(--light-gray);
    padding: 4px 12px;
    border-radius: 50px;
}

/* --- Partners Page Styles --- */
.partners-category {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-light);
}

.partners-grid-large {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 50px;
}

.partner-card {
    background: var(--white);
    border: 2px solid #eef1f3;
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
}

.partner-card:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.partner-card-logo {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.partner-card h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.partner-card p {
    font-size: 0.85rem;
    color: var(--dark-light);
    line-height: 1.7;
    margin-bottom: 12px;
}

.partner-type {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-light);
    padding: 4px 14px;
    border-radius: 50px;
}

/* --- Certifications Page --- */
.certifications-page {
    background: var(--light-gray);
}

.certs-grid-large {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.cert-card-large {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px 28px;
    box-shadow: var(--shadow-sm);
    border: 2px solid #eef1f3;
    transition: var(--transition);
}

.cert-card-large:hover {
    border-color: var(--primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.cert-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.cert-logo-large {
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: 0.05em;
}

.cert-card-large h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
}

.cert-card-large p {
    font-size: 0.9rem;
    color: var(--dark-light);
    line-height: 1.7;
    margin-bottom: 16px;
}

.cert-details {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cert-details li {
    font-size: 0.85rem;
    color: var(--dark);
    font-weight: 600;
    padding-right: 20px;
    position: relative;
}

.cert-details li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

/* --- Form Row --- */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* --- Map Section --- */
.map-section {
    background: var(--white);
    padding-top: 0;
}

.map-wrapper {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* --- Footer Social --- */
.footer-social {
    display: flex;
    gap: 12px;
}

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

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

.footer-social a svg {
    fill: currentColor;
}

/* ========================================
   Multi-Page Responsive
   ======================================== */

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

    .project-showcase {
        grid-template-columns: 1fr;
    }

    .project-showcase-image {
        min-height: 260px;
    }

    .project-showcase.reverse {
        direction: rtl;
    }

    .service-detail,
    .service-detail.reverse {
        flex-direction: column;
    }

    .service-features {
        grid-template-columns: 1fr;
    }

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

    .certs-grid-large {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .page-header {
        min-height: 300px;
    }

    .page-header-content h1 {
        font-size: 1.8rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .stat-item {
        padding: 20px 12px;
    }

    .stat-number {
        font-size: 1.6rem;
    }

    .cta-box {
        padding: 40px 24px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .service-detail {
        padding: 24px;
    }

    .project-showcase-info {
        padding: 24px;
    }

    .partners-grid-large {
        grid-template-columns: 1fr;
    }

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

    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 24px;
    }

    .footer-social {
        justify-content: center;
    }
}
