/* Font Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&family=Vazirmatn:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #0F172A;
    /* Deeper Navy */
    --accent-color: #C5A021;
    /* More sophisticated Gold */
    --text-main: #334155;
    --bg-light: #F8FAFC;
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.bg-navy,
.bg-primary-custom {
    background-color: var(--primary-color) !important;
    color: white !important;
}

.bg-navy h1,
.bg-navy h2,
.bg-navy h3,
.bg-navy h4,
.bg-navy h5,
.bg-navy h6,
.bg-navy p,
.bg-navy small,
.bg-primary-custom h1,
.bg-primary-custom h2,
.bg-primary-custom h3,
.bg-primary-custom h4,
.bg-primary-custom h5,
.bg-primary-custom h6,
.bg-primary-custom p {
    color: white !important;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: #ffffff;
    overflow-x: hidden;
}

/* RTL Support */
[dir="rtl"] body {
    font-family: 'Vazirmatn', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand,
.hero-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] h5,
[dir="rtl"] h6,
[dir="rtl"] .navbar-brand,
[dir="rtl"] .hero-title {
    font-family: 'Vazirmatn', sans-serif;
}

/* Premium Navbar */
.navbar {
    background: rgba(15, 23, 42, 0.98) !important;
    backdrop-filter: blur(15px);
    transition: var(--transition-smooth);
    padding: 0.8rem 0;
    animation: fadeInDown 0.6s ease-out;
}

@keyframes fadeInDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.navbar-dark .navbar-nav .nav-link {
    font-weight: 500;
    letter-spacing: 0.3px;
    padding: 0.5rem 1rem;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: var(--accent-color) !important;
}

.navbar-dark .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 1.5px;
    background: var(--accent-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.navbar-dark .navbar-nav .nav-link:hover::after,
.navbar-dark .navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

/* Dropdown & Language Switcher Redesign */
.dropdown-menu {
    border: none;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
    padding: 0.5rem;
    margin-top: 15px;
    border-top: 3px solid var(--accent-color);
}

.dropdown-item {
    border-radius: 8px;
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-item:hover {
    background: rgba(197, 160, 33, 0.1);
    color: var(--primary-color);
    transform: translateX(5px);
}

/* Language Switcher Specifics */
.lang-switcher button {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-switcher button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    border-color: var(--accent-color);
}

.lang-switcher button::after {
    display: none;
    /* Remove default triangle */
}

/* Fix for mobile navbar visibility */
@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--primary-color);
        margin-top: 1rem;
        padding: 1.5rem;
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }

    .lang-switcher {
        width: fit-content;
    }
}

/* Nav Item Entrance */
@keyframes navItemFade {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-item {
    animation: navItemFade 0.5s ease-out both;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.75)), url('../img/hero-new.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 90vh;
    display: flex;
    align-items: center;
    color: white;
    padding: 100px 0;
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 70vh;
        background-attachment: scroll;
        padding: 60px 0;
    }
}

.hero-title {
    font-size: clamp(2.2rem, 10vw, 4.2rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: clamp(1rem, 4vw, 1.4rem);
    opacity: 0.85;
    margin-bottom: 2.5rem;
    max-width: 700px;
}

/* Glassmorphism Components */
.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    padding: clamp(1.5rem, 5vw, 3rem);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

/* Mobile Helpers */
@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--primary-color);
        margin-top: 1rem;
        padding: 1rem;
        border-radius: 12px;
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .lang-switcher {
        display: inline-block;
        width: 100%;
    }

    .lang-switcher .dropdown-menu {
        position: static !important;
        float: none;
        background: transparent;
        border: none;
        box-shadow: none;
    }

    .lang-switcher .dropdown-item {
        color: rgba(255, 255, 255, 0.8);
    }
}

/* Animations */
[data-aos] {
    transition-duration: 1000ms !important;
}

/* Footer Improvements */
footer {
    background: var(--primary-color);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-color), transparent);
}

.whatsapp-float {
    z-index: 1050;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 10px 20px rgba(37, 211, 102, 0.4);
    transition: var(--transition-smooth);
    border: none;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(15deg);
    color: white;
}

/* Admissions Steps - Modern Timeline */
.steps-container {
    position: relative;
    padding: 2rem 0;
}

.steps-container::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    z-index: 1;
}

@media (max-width: 991px) {
    .steps-container::before {
        display: none;
    }
}

.step-item {
    position: relative;
    z-index: 2;
    transition: var(--transition-smooth);
}

.step-card {
    background: white;
    padding: 2.5rem 1.5rem;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.03);
    height: 100%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.step-icon-wrapper {
    width: 70px;
    height: 70px;
    background: var(--bg-light);
    color: var(--accent-color);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.8rem;
    font-weight: 800;
    transition: all 0.3s ease;
}

.step-card:hover .step-icon-wrapper {
    background: var(--accent-color);
    color: white;
    transform: rotate(10deg);
}

.step-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.step-text {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
}

/* Service & Step Premium Cards */
.service-premium-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 30px;
    text-align: center;
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.service-premium-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.service-icon-box {
    width: 80px;
    height: 80px;
    background: var(--bg-light);
    color: var(--accent-color);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin-bottom: 2rem;
    transition: var(--transition-smooth);
    font-weight: 800;
}

.service-premium-card:hover .service-icon-box {
    background: var(--accent-color);
    color: white;
    transform: scale(1.1) rotate(5deg);
}