/* ===================================
   Global Styles & Variables
   الألوان مستخرجة من شعار كِداء
   =================================== */
:root {
    --primary-color: #1a7a6d;
    --secondary-color: #b8860b;
    --dark-color: #0a0a0a;
    --darker-color: #050505;
    --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: transparent;
}

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

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--white) !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: rgba(255, 255, 255, 0.9) !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(26, 122, 109, 0.1);
}

.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 rgba(26, 122, 109, 0.5);
    padding: 0.5rem 0.7rem;
}

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

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(26, 122, 109, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(184, 134, 11, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, var(--dark-color) 0%, var(--darker-color) 100%);
    animation: bgPulse 8s ease-in-out infinite;
}

@keyframes bgPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231a7a6d' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

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

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

.hero-logo {
    width: 180px;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(26, 122, 109, 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.5);
    letter-spacing: 2px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #2dd4bf 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

.hero-text .sub-lead {
    font-size: 1.1rem;
    opacity: 0.8;
}

.text-white-75 {
    color: rgba(255, 255, 255, 0.75) !important;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2dd4bf 100%);
    border: none;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    box-shadow: 0 5px 20px rgba(26, 122, 109, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #d4a856 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(184, 134, 11, 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 var(--primary-color);
    border-radius: 15px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.wheel {
    width: 4px;
    height: 10px;
    background: var(--primary-color);
    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(26, 122, 109, 0.03) 0%, rgba(184, 134, 11, 0.05) 100%);
    border-radius: 15px;
    border-right: 5px solid var(--primary-color);
}

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

/* Vision Box */
.vision-box {
    background: linear-gradient(135deg, var(--dark-color) 0%, #1a1a1a 100%);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-right: 5px solid var(--secondary-color);
}

.vision-box h5 {
    color: var(--primary-color);
    font-weight: 700;
}

.vision-box p {
    color: rgba(255, 255, 255, 0.85);
}

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

/* 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(26, 122, 109, 0.15);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #2dd4bf 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%, #d4a856 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, rgba(26, 122, 109, 0.05) 0%, rgba(184, 134, 11, 0.05) 100%);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(26, 122, 109, 0.2);
}

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

.partnership-box p {
    color: var(--text-light);
}

/* ===================================
   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(26, 122, 109, 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(26, 122, 109, 0.85) 0%, rgba(184, 134, 11, 0.85) 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, var(--darker-color) 0%, var(--dark-color) 100%);
    padding: 4rem 0 2rem;
    color: var(--white);
    position: relative;
}

.footer-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%);
}

.footer-logo {
    height: 80px;
    width: auto;
    filter: drop-shadow(0 5px 15px rgba(26, 122, 109, 0.3));
}

.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(--secondary-color);
    border-radius: 2px;
}

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

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

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    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,
.contact-info span {
    color: rgba(255, 255, 255, 0.8);
    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: rgba(26, 122, 109, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: var(--transition);
}

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

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

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #2dd4bf 100%);
    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(26, 122, 109, 0.4);
}

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

.back-to-top:hover {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #d4a856 100%);
    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;
        background: rgba(10, 10, 10, 0.95);
        border-radius: 10px;
        margin-top: 10px;
    }

    .navbar-nav .nav-link {
        margin: 0.3rem 0;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-logo {
        width: 120px;
    }

    .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;
    }

    .hero-text .sub-lead {
        font-size: 0.9rem;
    }

    .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,
    .vision-box {
        padding: 1.5rem;
    }
}

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

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

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