/* ========================================
   Global Styles & Variables
======================================== */
:root {
    --primary-color: #2c5f2d;
    --secondary-color: #2e4f43;
    --accent-color: #dc2626;
    --dark-color: #1f2937;
    --light-color: #f3f4f6;
    --white: #ffffff;
    --text-dark: #374151;
    --text-light: #6b7280;
    --border-color: #e5e7eb;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    color: var(--text-dark);
    line-height: 1.8;
    overflow-x: hidden;
    background-color: var(--white);
}

html {
    scroll-behavior: smooth;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.section-padding {
    padding: 100px 0;
}

/* ========================================
   Section Titles
======================================== */
.section-title h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
}

.title-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    margin: 20px auto;
    border-radius: 2px;
}

/* ========================================
   Header & Navbar
======================================== */
#header {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--dark-color) !important;
}

.navbar-brand .logo {
    height: 90px;
    width: auto;
}

.navbar-brand .company-name {
    display: none;
}

@media (min-width: 768px) {
    .navbar-brand .company-name {
        display: inline-block;
    }
}

.nav-link {
    color: var(--primary-color) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    margin: 0 0.2rem;
    position: relative;
    transition: all 0.3s ease;
    font-size: 1.125rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color) !important;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    width: 0;
    height: 2px;
    background: var(--secondary-color);
    transition: all 0.3s ease;
}

.nav-link:hover::before {
    width: 100%;
    right: 0;
}

/* ========================================
   Hero Section
======================================== */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: url('photos/Screenshot 2025-11-18 110924.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.05" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,106.7C1248,96,1344,96,1392,96L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.hero-background-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.2;
    z-index: 1;
    width: 50vw;
    filter: brightness(0) invert(1);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.hero-content h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--secondary-color);
}

.hero-content .lead {
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 0.95;
}

.hero-buttons .btn {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--secondary-color);
    border: none;
}

.btn-primary:hover {
    background: #b45309;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(217, 119, 6, 0.3);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-indicator a {
    color: var(--white);
    font-size: 2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ========================================
   About Section
======================================== */
.about-section {
    background: var(--white);
}

.about-image img {
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.02);
}

.about-content h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.expertise-list {
    margin-top: 2rem;
}

.expertise-item {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    padding: 10px 0;
}

.expertise-item i {
    font-size: 1.3rem;
    margin-left: 10px;
}

.info-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
}

.info-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.icon-wrapper i {
    font-size: 2rem;
    color: var(--white);
}

.info-card h5 {
    color: var(--dark-color);
}

.info-card a {
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.info-card a:hover {
    color: var(--primary-color);
}

/* ========================================
   Projects Section
======================================== */
.current-projects-section {
    background: var(--light-color);
}

.project-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
}

.project-overlay .badge {
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.project-details {
    padding: 30px;
    flex: 1;
}

.project-title {
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.project-info {
    margin-top: 20px;
}

.info-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item i {
    color: var(--primary-color);
    margin-left: 8px;
}

.info-item strong {
    color: var(--dark-color);
    margin-left: 5px;
}

.total-value-card {
    background: linear-gradient(135deg, var(--primary-color), #1f4722);
    padding: 50px;
    border-radius: 20px;
    color: var(--white);
    box-shadow: var(--shadow-lg);
}

.total-value-card h3 {
    font-weight: 600;
    opacity: 0.9;
}

.total-value-card .text-primary {
    color: #f8f8f8 (--secondary-color) !important;
}

/* ========================================
   Completed Projects Section
======================================== */
.completed-projects-section {
    background: var(--white);
}

.completed-project-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
}

.completed-project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.completed-project-card .project-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}

.completed-project-card .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.completed-project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-badge {
    position: absolute;
    top: 15px;
    right: 15px;
}

.project-badge .badge {
    padding: 8px 16px;
    font-size: 0.85rem;
}

.project-content {
    padding: 25px;
}

.project-content .project-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
    min-height: 60px;
}

.project-location {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.project-location i {
    color: var(--secondary-color);
}

.project-description {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ========================================
   Gallery Section
======================================== */
.gallery-section {
    background: var(--light-color);
}

.gallery-item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 95, 45, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay i {
    font-size: 3rem;
    color: var(--white);
}

/* ========================================
   Contact Section
======================================== */
.contact-section {
    background: var(--white);
}

.contact-info-wrapper,
.contact-form-wrapper {
    background: var(--light-color);
    padding: 40px;
    border-radius: 15px;
    box-shadow: var(--shadow);
    height: 100%;
}

.contact-info-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.contact-info-item .icon-box {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-item .icon-box i {
    font-size: 1.5rem;
    color: var(--white);
}

.info-content h5 {
    color: var(--dark-color);
    margin-bottom: 10px;
}

.info-content p {
    color: var(--text-light);
    margin: 0;
}

.info-content a {
    color: var(--text-dark);
    transition: color 0.3s ease;
}

.info-content a:hover {
    color: var(--primary-color);
}

.contact-form .form-control {
    padding: 15px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    transition: all 0.3s ease;
    background: var(--white);
}

.contact-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(44, 95, 45, 0.15);
}

.contact-form .form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.map-wrapper {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.map-wrapper iframe {
    display: block;
}

/* ========================================
   Footer
======================================== */
.footer-section {
    background: linear-gradient(135deg, #1c2f1c 0%, #2c5f2d 100%);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-logo {
    height: 60px;
    width: auto;
}

.footer-about h5,
.footer-links h5,
.footer-contact h5 {
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.footer-about p {
    color: rgba(255, 255, 255, 0.8);
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links ul li a:hover {
    color: var(--secondary-color);
    padding-right: 10px;
}

.footer-contact ul li {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.footer-contact ul li i {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* ========================================
   Scroll To Top Button
======================================== */
.scroll-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary-color);
    color: var(--white);
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
}

/* ========================================
   Responsive Design
======================================== */
@media (max-width: 991px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .section-padding {
        padding: 60px 0;
    }

    .section-title h2 {
        font-size: 2rem;
    }
}

@media (max-width: 767px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content h2 {
        font-size: 1.3rem;
    }

    .hero-content .lead {
        font-size: 1rem;
    }

    .hero-buttons .btn {
        padding: 12px 30px;
        font-size: 1rem;
        margin: 5px !important;
    }

    .section-padding {
        padding: 50px 0;
    }

    .project-image {
        height: 250px !important;
    }

    .completed-project-card .project-image {
        height: 200px !important;
    }

    .gallery-item img {
        height: 250px;
    }
}

/* ========================================
   Loading Animation
======================================== */
.loading {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ========================================
   Utility Classes
======================================== */
.bg-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
