:root {
    --primary-color: #2d5a27;
    /* Royal Green */
    --secondary-color: #d4af37;
    /* Gold */
    --text-color: #333;
    --text-light: #666;
    --bg-color: #f9f9f9;
    --white: #ffffff;
    --black: #000000;
    --border-radius: 16px;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    --hover-shadow: 0 15px 40px rgba(45, 90, 39, 0.15);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --font-main: 'Tajawal', sans-serif;
}

/* General Reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    outline: none;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.8;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* Header & Nav */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background: transparent;
}

.main-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(10px);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 70px;
    transition: var(--transition);
}

.main-header.scrolled .logo img {
    height: 60px;
}

.main-nav ul {
    display: flex;
    gap: 40px;
}

.main-nav a {
    font-weight: 500;
    font-size: 1.1rem;
    color: var(--white);
    /* White on Hero */
    position: relative;
    padding-bottom: 5px;
}

.main-header.scrolled .main-nav a {
    color: var(--primary-color);
}

.main-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    right: 0;
    background: var(--secondary-color);
    transition: var(--transition);
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(45, 90, 39, 0.3);
}

.btn-primary:hover {
    background: #1e3f1b;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(45, 90, 39, 0.4);
}

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

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

/* Accessibility Widget */
.a11y-widget {
    position: fixed;
    bottom: 40px;
    left: 40px;
    z-index: 9999;
}

.a11y-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--secondary-color);
    color: var(--primary-color);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.a11y-toggle:hover {
    transform: scale(1.1) rotate(10deg);
}

.a11y-toggle svg {
    width: 30px;
    height: 30px;
}

.a11y-menu {
    position: absolute;
    bottom: 80px;
    left: 0;
    background: var(--white);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    width: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
}

.a11y-widget:not(.collapsed) .a11y-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.a11y-menu h4 {
    margin-bottom: 15px;
    color: var(--primary-color);
    text-align: center;
    font-size: 1.1rem;
}

.a11y-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.a11y-btn {
    padding: 10px;
    border: 1px solid #eee;
    background: #f5f5f5;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-color);
    transition: var(--transition);
}

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

.a11y-btn.full-width {
    grid-column: span 2;
}

/* Hero Section */
.hero-section {
    height: 100vh;
    min-height: 700px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    padding: 0 20px;
    overflow: hidden;
    /* Ensure video doesn't overflow */
}

/* Hero Video */
.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: -2;
}

/* Fallback for bg still needed just in case */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -2;
    transform: scale(1);
    animation: zoomEffect 20s infinite alternate;
    display: none;
    /* Hide when video is active */
}

@keyframes zoomEffect {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 90, 39, 0.9), rgba(45, 90, 39, 0.4));
    /* Green Gradient */
    z-index: -1;
}

.hero-content {
    max-width: 900px;
    z-index: 1;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.4rem;
    margin-bottom: 40px;
    opacity: 0.95;
    font-weight: 300;
}

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

/* Stats Section */
.stats-section {
    background: var(--white);
    padding: 60px 0;
    margin-top: -60px;
    position: relative;
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    width: 90%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    font-weight: 800;
    margin-bottom: 5px;
}

.stat-item p {
    color: var(--text-light);
    font-weight: 600;
}

/* Services Section */
.section-padding {
    padding: 100px 0;
}

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

.section-tag {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(212, 175, 55, 0.15);
    color: var(--primary-color);
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.section-header h2 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

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

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--hover-shadow);
    border-bottom-color: var(--secondary-color);
}

.service-card .icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
    color: var(--secondary-color);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.service-card p {
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 25px;
}

.read-more {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more:hover {
    gap: 10px;
}

/* About Section */
.about-section {
    background: var(--white);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    position: relative;
    height: 500px;
    border-radius: var(--border-radius);
    overflow: hidden;
}

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

.about-content h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.about-content p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.features-list {
    margin: 30px 0;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-weight: 600;
    color: var(--text-color);
}

.features-list li span {
    width: 25px;
    height: 25px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.8rem;
}

/* CTA Section */
.cta-section {
    background: var(--primary-color);
    text-align: center;
    color: var(--white);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern.png');
    /* Add pattern later if needed */
    opacity: 0.1;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* Footer (to be added) */
footer {
    background: #1a3317;
    color: #ccc;
    padding: 60px 0 20px;
}

/* Responsive */
@media (max-width: 992px) {
    .container {
        padding: 0 20px;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .main-nav {
        display: none;
        /* Implement mobile menu later */
    }

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

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 30px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}

.main-header.scrolled .mobile-menu-btn span {
    background: var(--primary-color);
}

@media (max-width: 992px) {
    .mobile-menu-btn {
        display: flex;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: var(--white);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: var(--transition);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }

    .main-nav.active {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        text-align: center;
    }

    .main-nav a {
        color: var(--text-color) !important;
        font-size: 1.5rem;
    }
}

/* Utils - Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}