/* Custom CSS for Edarah Website */

/* Root Variables */
:root {
    --primary-color: #0e7a76;
    --primary-dark: #0b5d5a;
    --secondary-color: #128b86;
    --dark-color: #083c3a;
    --accent-color: #7fa5a3;
    --light-color: #f8fafc;
    --text-color: #344e41;
    --text-light: #6b8e7a;
    --border-color: #d4d7d5;
    --shadow-light: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-large: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    --gradient-hero: linear-gradient(135deg, var(--dark-color) 0%, var(--primary-color) 50%, var(--secondary-color) 100%);
    --orange-color: #ff7b00;
    --orange-dark: #e56d00;
}

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

body {
    font-family: 'Changa', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-color);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Navigation Styles */
.custom-navbar {
    background: white !important; /* Changed from semi-transparent green to white */
    backdrop-filter: none;
    box-shadow: var(--shadow-medium);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.custom-navbar.scrolled {
    background: white !important;
    padding: 0.5rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    color: var(--primary-color) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link:hover {
    color: var(--orange-color) !important;
    background: rgba(255, 123, 0, 0.1);
    transform: translateY(-2px);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--orange-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .dropdown-item:hover {
    color: var(--orange-color) !important;
    background: rgba(255, 123, 0, 0.1);
}
.navbar-nav .nav-link.dropdown-toggle::after {
    border-top-color: var(--orange-color) !important;
    transition: all 0.3s ease;
}
.navbar-nav .nav-link.active {
    color: var(--orange-color) !important;
}

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

.social-links .social-link {
    color: var(--text-light);
    font-size: 1.2rem;
    margin: 0 0.5rem;
    transition: all 0.3s ease;
}

.social-links .social-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    background: var(--secondary-color);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-size: 120% auto;
    background-repeat: no-repeat;
    background-position: 0% center;
    animation: heroBackgroundMove 30s ease-in-out infinite alternate;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(18, 139, 134, 0.7), rgba(18, 139, 134, 0.7));
    z-index: 1;
    pointer-events: none;
}

@keyframes heroBackgroundMove {
    0% {
        background-position: 0% center;
    }
    100% {
        background-position: 20% center;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    padding-top: 130px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-buttons {
    animation: fadeInUp 1s ease-out 0.4s both;
}

.btn-primary {
    background: var(--primary-color);
    border: none;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: var(--shadow-large);
}

.btn-outline-light {
    border: 2px solid white;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-color) !important;
    transform: translateY(-3px);
    box-shadow: var(--shadow-large);
}

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

.scroll-link {
    color: white;
    font-size: 2rem;
    animation: bounce 2s infinite;
    text-decoration: none;
}

/* Services Section */
.services-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

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

.service-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 0;
}

.service-card:hover::before {
    left: 0;
    opacity: 0.05;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-large);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card h4 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.service-link:hover {
    color: var(--primary-dark);
}

/* Featured Content Section */
.featured-content {
    padding: 5rem 0;
}

.content-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
    height: 100%;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
}

.card-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.content-card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 1.5rem;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.date {
    color: var(--text-light);
}

.category {
    background: var(--gradient-primary);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.card-text {
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.read-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: var(--primary-dark);
}

/* Video Cards */
.video-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: all 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-large);
}

.video-thumbnail {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.video-placeholder {
    color: white;
    font-size: 3rem;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.video-card:hover .play-button {
    background: white;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-content {
    padding: 1rem;
}

.video-title {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.video-description {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Professor Section */
.professor-section {
    padding: 5rem 0;
    background: white;
}

.professor-image img {
    border-radius: 20px;
    box-shadow: var(--shadow-large);
    transition: all 0.3s ease;
}

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

.professor-content h2 {
    color: var(--dark-color);
    font-weight: 700;
}

.professor-stats {
    background: var(--light-color);
    padding: 2rem;
    border-radius: 15px;
    margin-top: 2rem;
}

.professor-stats h4 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* CTA Section */
.cta-section {
    background: var(--gradient-primary);
    color: white;
    text-align: center;
}

.cta-section .btn-light {
    background: white;
    color: var(--primary-color);
    border: none;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.cta-section .btn-light:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-large);
}

/* Footer */
.footer {
    background: var(--dark-color) !important;
}

.footer .social-link {
    color: var(--text-light);
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.footer .social-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

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

    .service-card {
        margin-bottom: 2rem;
    }

    .professor-section .row {
        flex-direction: column-reverse;
    }

    .professor-content {
        text-align: center;
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }
}

/* Loading Animation */
.loading {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Hover Effects */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

/* Custom Utilities */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-gradient-secondary {
    background: var(--gradient-secondary);
}

.hero-secondary-header {
    background: rgba(0, 0, 0, 0.3); /* Semi-transparent dark overlay */
    color: white;
    position: absolute;
    top: 70px; /* Adjust based on navbar height */
    left: 0;
    right: 0;
    z-index: 3; /* Above hero background but below hero content */
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-secondary-header a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.3rem 0.5rem;
}

.hero-secondary-header a:hover {
    color: var(--orange-color) !important;
}

.secondary-links li:not(:last-child) {
    margin-left: 1.5rem; /* Adjust spacing between links (RTL) */
}

.social-links a {
    margin-right: 1rem; /* Space between social icons */
    font-size: 1.1rem;
}

.social-links a:last-child {
    margin-right: 0;
}
/* About Page Styles */
.about-academy {
    padding: 5rem 0;
    background: white;
}

.about-image img {
    transition: all 0.3s ease;
    border: 5px solid white;
    box-shadow: var(--shadow-large);
}

.about-image:hover img {
    transform: scale(1.03);
}

.about-content h2 {
    color: var(--dark-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.about-content p {
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.feature-box {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 15px;
    height: 100%;
    transition: all 0.3s ease;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.feature-box i {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.feature-box h5 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-box p {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Mission Vision Section */
.mission-vision .card {
    transition: all 0.3s ease;
    border-radius: 15px;
}

.mission-vision .card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-large);
}

.mission-vision .icon-box {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin: 0 auto;
}

.mission-vision h3 {
    color: var(--dark-color);
    font-weight: 700;
}

/* Values Section */
.values-section {
    background: white;
}

.value-card {
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    height: 100%;
}

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

.value-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.value-card h4 {
    color: var(--dark-color);
    font-weight: 600;
    margin: 1rem 0;
}

.value-card p {
    color: var(--text-light);
    font-size: 0.9rem;
}

