/* ===================================
   Global Styles & Variables
   =================================== */
:root {
    --primary-color: #2d5f3f;
    --secondary-color: #c9a961;
    --dark-color: #1a3829;
    --light-color: #f8f9fa;
    --text-dark: #2c3e50;
    --text-light: #6c757d;
    --white: #ffffff;
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Cairo', sans-serif;
    color: var(--text-dark);
    overflow-x: hidden;
    background-color: var(--light-color);
}

html {
    scroll-behavior: smooth;
}

/* ===================================
   Typography
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
}

p {
    line-height: 1.8;
}

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

/* ===================================
   Navbar Styles
   =================================== */
.navbar {
    padding: 1rem 0;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
}

.navbar-brand .logo-img {
    height: 45px;
    width: auto;
    transition: var(--transition);
}

.navbar.scrolled .navbar-brand .logo-img {
    height: 40px;
}

.brand-text {
    font-weight: 800;
    color: var(--primary-color);
}

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 500;
    padding: 0.5rem 1.2rem !important;
    margin: 0 0.2rem;
    border-radius: 5px;
    transition: var(--transition);
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    background: rgba(45, 95, 63, 0.08);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
    transform: translateX(50%);
}

.navbar-nav .nav-link:hover::after {
    width: 80%;
}

.navbar-toggler {
    border: 2px solid var(--primary-color);
    padding: 0.5rem 0.7rem;
}

.navbar-toggler:focus {
    box-shadow: none;
    border-color: var(--primary-color);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(45, 95, 63, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

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

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(45, 95, 63, 0.3) 0%,
        rgba(26, 56, 41, 0.35) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-text {
    animation: fadeInUp 1s ease;
}

.hero-logo {
    width: 150px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
    animation: float 3s ease-in-out infinite;
}

.hero-text h1 {
    font-size: 4rem;
    font-weight: 800;
    text-shadow: 2px 4px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: 2px;
}

.hero-text h2 {
    color: var(--secondary-color);
    font-weight: 600;
    text-shadow: 1px 2px 5px rgba(0, 0, 0, 0.3);
}

.hero-text .lead {
    font-size: 1.3rem;
    text-shadow: 1px 2px 5px rgba(0, 0, 0, 0.3);
}

.btn-primary {
    background: var(--secondary-color);
    border: none;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(201, 169, 97, 0.3);
}

.btn-primary:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(45, 95, 63, 0.4);
}

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

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.wheel {
    width: 4px;
    height: 10px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(20px);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

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

/* ===================================
   About Section
   =================================== */
.about-section {
    background: var(--white);
    position: relative;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 2px;
    position: relative;
}

.title-underline::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -15px;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: var(--secondary-color);
    border-radius: 50%;
}

.about-intro {
    padding: 2rem;
    background: linear-gradient(135deg, rgba(45, 95, 63, 0.03) 0%, rgba(201, 169, 97, 0.05) 100%);
    border-radius: 15px;
    border-right: 5px solid var(--secondary-color);
}

.about-intro .lead {
    font-size: 1.2rem;
    line-height: 2;
}

/* Service Cards */
.service-card {
    padding: 2rem;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border-top: 3px solid transparent;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transition: var(--transition);
}

.service-card:hover::before {
    width: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(45, 95, 63, 0.15);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #3d7a52 100%);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #d4b571 100%);
    transform: rotate(10deg) scale(1.1);
}

.service-icon i {
    font-size: 2rem;
    color: var(--white);
}

.service-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.service-desc {
    color: var(--text-light);
    line-height: 1.8;
    margin: 0;
}

/* Partnership Box */
.partnership-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(45, 95, 63, 0.2);
}

.partnership-box h5 {
    color: var(--secondary-color);
    font-weight: 700;
}

.partnership-box p {
    color: rgba(255, 255, 255, 0.9);
}

.partnership-box i {
    color: var(--secondary-color);
}

/* ===================================
   Gallery Section
   =================================== */
.gallery-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(45, 95, 63, 0.2);
}

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

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(45, 95, 63, 0.8) 0%, rgba(201, 169, 97, 0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.gallery-overlay i {
    font-size: 3rem;
    color: var(--white);
    transform: scale(0);
    transition: var(--transition);
}

.gallery-item:hover .gallery-overlay i {
    transform: scale(1);
}

/* ===================================
   Footer Section
   =================================== */
.footer-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 4rem 0 2rem;
    color: var(--text-dark);
    position: relative;
    border-top: 3px solid var(--primary-color);
}

.footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.footer-logo {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.1));
}

.footer-widget h4,
.footer-widget h5 {
    color: var(--primary-color);
    font-weight: 700;
    position: relative;
    padding-bottom: 10px;
}

.footer-widget h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-light);
    font-weight: 400;
    transition: var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-right: 5px;
}

.contact-info {
    list-style: none;
    padding: 0;
}

.contact-info li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.contact-info i {
    color: var(--primary-color);
    font-size: 1.2rem;
    width: 25px;
}

.contact-info a {
    color: var(--text-light);
    transition: var(--transition);
}

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

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

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

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

.copyright {
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    box-shadow: 0 5px 20px rgba(201, 169, 97, 0.4);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

.back-to-top i {
    font-size: 1.2rem;
}

/* ===================================
   Responsive Styles
   =================================== */
@media (max-width: 991px) {
    .navbar-nav {
        text-align: center;
        padding: 1rem 0;
    }
    
    .navbar-nav .nav-link {
        margin: 0.3rem 0;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-logo {
        width: 100px;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .hero-section {
        height: 100vh;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text .lead {
        font-size: 1rem;
    }
    
    .btn-lg {
        padding: 0.8rem 2rem !important;
        font-size: 1rem !important;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .gallery-item img {
        height: 250px;
    }
    
    .back-to-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        left: 20px;
    }
}

@media (max-width: 575px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }
    
    .about-intro {
        padding: 1.5rem;
    }
    
    .partnership-box {
        padding: 1.5rem;
    }
}

/* ===================================
   Smooth Scrolling Enhancement
   =================================== */
.smooth-scroll {
    scroll-behavior: smooth;
}

/* ===================================
   Loading Animation (Optional)
   =================================== */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ===================================
   Print Styles
   =================================== */
@media print {
    .navbar,
    .back-to-top,
    .scroll-indicator {
        display: none !important;
    }
}