/* assets/css/style.css */
:root {
    --primary: #1a5276;
    --primary-dark: #0e3450;
    --primary-light: #2980b9;
    --secondary: #f39c12;
    --success: #27ae60;
    --danger: #e74c3c;
    --warning: #f1c40f;
    --info: #3498db;
    --light: #f8f9fa;
    --dark: #2c3e50;
    --gray: #95a5a6;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-hover: 0 15px 40px rgba(0,0,0,0.2);
    --radius: 15px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    color: var(--dark);
    overflow-x: hidden;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s;
}

#preloader.hide {
    opacity: 0;
    pointer-events: none;
}

.loader .spinner-border {
    width: 60px;
    height: 60px;
}

/* Top Bar */
.top-bar {
    background: var(--primary-dark);
    color: var(--white);
    padding: 8px 0;
    font-size: 14px;
}

.top-bar-left span {
    margin-right: 20px;
}

.top-bar-left i {
    margin-right: 8px;
    color: var(--secondary);
}

.top-bar-right {
    text-align: right;
}

.top-bar-right .lang-switcher {
    color: var(--white);
    text-decoration: none;
    margin-right: 20px;
    transition: var(--transition);
}

.top-bar-right .lang-switcher:hover {
    color: var(--secondary);
}

/* Navigation */
.navbar {
    padding: 15px 0;
    background: var(--white) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.navbar-brand .brand-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-right: 10px;
}

.nav-link {
    font-weight: 600;
    color: var(--dark) !important;
    margin: 0 10px;
    padding: 8px 0 !important;
    position: relative;
    transition: var(--transition);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link i {
    margin-right: 8px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    padding: 100px 0 0;
    position: relative;
    overflow: hidden;
    min-height: 80vh;
}

.hero-section .hero-image {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.hero-shape {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
}

.hero-shape svg {
    display: block;
    width: 100%;
}

.hero-buttons .btn {
    border-radius: 50px;
    padding: 12px 30px;
    font-weight: 600;
}

/* Statistics Section */
.statistics-section {
    position: relative;
    margin-top: -50px;
    z-index: 2;
}

.stat-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.stat-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--white);
}

.stat-card h3 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
}

.stat-card p {
    color: var(--gray);
    font-weight: 600;
}

/* Section Headers */
.section-header h2 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 15px;
}

.section-header p {
    color: var(--gray);
    font-size: 1.1rem;
}

/* Project Cards */
.project-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: var(--white);
}

.project-badge.completed {
    background: var(--success);
}

.project-badge.ongoing {
    background: var(--warning);
    color: var(--dark);
}

.project-badge.planned {
    background: var(--info);
}

.project-body {
    padding: 20px;
}

.project-body h5 {
    font-weight: 700;
    margin-bottom: 10px;
}

.project-body p {
    color: var(--gray);
    font-size: 14px;
}

.project-body .progress {
    height: 8px;
    border-radius: 50px;
}

.project-body .progress-bar {
    background: linear-gradient(to right, var(--primary), var(--secondary));
    font-size: 10px;
    line-height: 8px;
}

/* Gallery Cards */
.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    cursor: pointer;
    height: 250px;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-card:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: var(--white);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.gallery-card:hover .gallery-overlay {
    bottom: 0;
}

.gallery-overlay h5 {
    font-weight: 600;
    margin-bottom: 10px;
}

/* News Cards */
.news-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.news-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-date {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: var(--primary);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 12px;
}

.news-body {
    padding: 20px;
}

.news-body h5 {
    font-weight: 700;
    margin-bottom: 10px;
}

.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.read-more:hover {
    color: var(--secondary);
}

/* Story Cards */
.story-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

.story-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.story-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-icon {
    position: absolute;
    bottom: -20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 20px;
    border: 3px solid var(--white);
}

.story-body {
    padding: 20px;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
}

.cta-section h2 {
    font-weight: 900;
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 60px 0 0;
}

.footer-widget h4 {
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--secondary);
}

.footer-widget p {
    opacity: 0.8;
    line-height: 1.8;
}

.footer-widget ul {
    list-style: none;
    padding: 0;
}

.footer-widget ul li {
    margin-bottom: 12px;
}

.footer-widget ul li a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-widget ul li a:hover {
    opacity: 1;
    color: var(--secondary);
}

.footer-widget ul li a i {
    margin-right: 10px;
    font-size: 12px;
}

.social-icons {
    margin-top: 20px;
}

.social-icons a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    color: var(--white);
    transition: var(--transition);
    margin-right: 10px;
}

.social-icons a:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

.contact-info li {
    margin-bottom: 15px;
}

.contact-info li i {
    width: 30px;
    color: var(--secondary);
}

.newsletter-form .input-group {
    margin-top: 15px;
}

.newsletter-form .form-control {
    border-radius: 50px 0 0 50px;
    border: none;
}

.newsletter-form .btn {
    border-radius: 0 50px 50px 0;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    margin-top: 40px;
}

/* Back to Top */
#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    border: none;
    box-shadow: var(--shadow);
    display: none;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 999;
}

#backToTop:hover {
    background: var(--secondary);
    transform: translateY(-5px);
}

/* Responsive */
@media (max-width: 991px) {
    .hero-section {
        min-height: auto;
        padding: 60px 0 0;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .stat-card h3 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .top-bar {
        font-size: 12px;
        text-align: center;
    }
    
    .top-bar-left span {
        margin-right: 10px;
    }
    
    .top-bar-right {
        text-align: center;
        margin-top: 5px;
    }
    
    .navbar-brand .brand-text {
        font-size: 1rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-card h3 {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 10px 0 !important;
    }
    
    .gallery-card {
        height: 200px;
    }
}

/* Animations */
[data-aos] {
    opacity: 0;
    transition: all 0.8s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}