:root {
    --primary-color: #0d47a1; /* Deep Blue / Modern Islamic */
    --primary-dark: #002171;
    --primary-light: #5472d3;
    --secondary-color: #fbc02d; /* Gold accent */
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --white: #ffffff;
    --bg-light: #f3f4f6;
    --bg-dark: #111827;
    
    --font-heading: 'Amiri', serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s ease-in-out;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--primary-dark);
    line-height: 1.2;
}

.arabic {
    font-family: 'Amiri', serif;
    font-size: 2.5rem;
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 100px 0;
}

.section-title {
    margin-bottom: 50px;
}

.section-title.center {
    text-align: center;
}

.section-title .sub-heading {
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 10px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary-dark);
}

.dark-bg {
    background-color: var(--white);
}

.dark-bg .section-title h2 {
    color: var(--text-dark);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: var(--primary-dark);
    box-shadow: 0 4px 15px rgba(251, 192, 45, 0.4);
}

.btn-primary:hover {
    background-color: transparent;
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.btn-outline {
    background-color: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background-color: var(--white);
    color: var(--primary-dark);
    transform: translateY(-3px);
}

/* Glassmorphism utility */
.glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(13, 71, 161, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo img {
    height: 40px;
    border-radius: 50%;
}

.logo span {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
}

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/image10.jpeg');
    background-size: cover;
    background-position: center;
    z-index: -1;
    animation: zoomIn 20s infinite alternate;
}

@keyframes zoomIn {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.8) 0%, rgba(0, 33, 113, 0.9) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    color: var(--white);
    max-width: 800px;
}

.hero .subtitle {
    color: var(--secondary-color);
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 1rem;
    margin-bottom: 10px;
}

.hero .title {
    font-size: 4rem;
    color: var(--white);
    margin-bottom: 5px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.hero .arabic {
    color: var(--secondary-color);
    margin-bottom: 20px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.hero .description {
    font-size: 1.1rem;
    font-weight: 300;
    margin-bottom: 40px;
}

.cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Motto Section */
.motto-section {
    margin-top: -60px;
    position: relative;
    z-index: 10;
}

.motto-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.motto-card {
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
}

.motto-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.motto-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.motto-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

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

/* About Section */
.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image .image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.about-image img {
    width: 100%;
    display: block;
    transition: var(--transition);
}

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

.experience-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--primary-color);
    color: var(--white);
    padding: 20px;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: 5px solid var(--bg-light);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.experience-badge .year {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.8rem;
    text-transform: uppercase;
}

.about-text p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.about-list {
    list-style: none;
    margin-top: 30px;
}

.about-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
}

.about-list i {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

/* Vision Mission Section */
.vm-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 30px;
}

.vision-card {
    background: var(--primary-color);
    color: var(--white);
    padding: 40px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.vision-card h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 2rem;
}

.vision-card p {
    font-size: 1.1rem;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.vision-card .icon-box {
    position: absolute;
    top: -20px;
    right: -20px;
    font-size: 10rem;
    color: rgba(255,255,255,0.05);
    z-index: 0;
}

.mission-card {
    padding: 40px;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.mission-card h3 {
    margin-bottom: 20px;
    font-size: 2rem;
}

.mission-list {
    list-style: none;
}

.mission-list li {
    padding: 15px 0;
    border-bottom: 1px solid var(--bg-light);
    position: relative;
    padding-left: 30px;
}

.mission-list li:last-child {
    border-bottom: none;
}

.mission-list li::before {
    content: '\f0da';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 15px;
    color: var(--primary-color);
}

/* Program Section */
.program-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.tab-btn {
    padding: 10px 30px;
    border: none;
    background: var(--white);
    font-family: var(--font-body);
    font-weight: 600;
    color: var(--text-light);
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.tab-btn.active, .tab-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

.program-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.program-item {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.program-item:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--secondary-color);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.program-item i {
    font-size: 3rem;
    color: var(--primary-light);
    margin-bottom: 20px;
}

.program-item h4 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

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

/* Gallery Section */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
}

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

/* Footer */
.footer {
    background-color: var(--primary-dark);
    color: var(--white);
    padding: 80px 0 0 0;
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 40px;
    border-radius: 50%;
}

.footer-logo span {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-about p {
    color: #a0aec0;
    margin-bottom: 20px;
}

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

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: var(--white);
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-links h3, .footer-contact h3 {
    font-family: var(--font-body);
    color: var(--white);
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h3::after, .footer-contact h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--secondary-color);
}

.footer-links ul, .footer-contact ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 10px;
}

.footer-links ul li a {
    color: #a0aec0;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.footer-contact ul li {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    color: #a0aec0;
}

.footer-contact ul li i {
    color: var(--secondary-color);
    margin-top: 5px;
}

.footer-bottom {
    background-color: rgba(0,0,0,0.2);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    color: #a0aec0;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

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

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }
.delay-4 { animation-delay: 0.8s; }

.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 991px) {
    .about-container {
        grid-template-columns: 1fr;
    }
    
    .vm-grid {
        grid-template-columns: 1fr;
    }

    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary-dark);
        flex-direction: column;
        align-items: center;
        padding: 30px 0;
        clip-path: circle(0% at top right);
        transition: clip-path 0.5s ease-in-out;
    }
    
    .nav-links.active {
        clip-path: circle(150% at top right);
    }
    
    .hamburger {
        display: block;
    }

    .hero .title {
        font-size: 2.5rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
    }
}
