/* Variables & Reset */
:root {
    --primary-color: #0a192f;
    --secondary-color: #112240;
    --accent-color: #d4af37;
    --accent-glow: rgba(212, 175, 55, 0.5);
    --text-light: #e6f1ff;
    --text-dim: #8892b0;
    --white: #ffffff;
    --glass-bg: rgba(16, 33, 65, 0.7);
    --glass-border: rgba(212, 175, 55, 0.15);
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--primary-color);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    padding: 12px 0;
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.8rem;
    /* Slightly larger logo */
    font-weight: 800;
    color: var(--accent-color);
    letter-spacing: -0.5px;
}

.logo i {
    font-size: 2rem;
}

.nav-list {
    display: flex;
    gap: 40px;
    /* Increased and unified spacing */
}

.nav-link {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    position: relative;
    padding: 8px 12px;
    border-radius: 6px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent-color);
    background: rgba(212, 175, 55, 0.05);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    /* Lowered for better aesthetics */
    right: 12px;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: calc(100% - 24px);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('hero-bg.png') no-repeat center center/cover;
    margin-top: 0;
    padding-top: 180px;
    overflow: visible;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(10, 25, 47, 0.98) 0%, rgba(10, 25, 47, 0.8) 100%);
    /* Darker overlay for better contrast */
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 950;
    margin-bottom: 30px;
    color: var(--white);
    line-height: 1.1;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.title-top {
    font-size: 0.65em;
    color: var(--text-light);
    opacity: 0.9;
}

.title-bottom {
    font-size: 1em;
}

.hero-subtitle {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 40px;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
    letter-spacing: 1px;
}

.dean-badge {
    display: inline-block;
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid var(--accent-color);
    padding: 20px 45px;
    /* Increased padding for visual comfort */
    border-radius: 60px;
    margin-bottom: 50px;
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.dean-badge span {
    display: block;
    font-size: 1.1rem;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 5px;
}

.dean-emphasis {
    display: block;
    font-size: 1.8rem;
    color: var(--accent-color);
    font-weight: 800;
}

.hero-cta {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    padding: 14px 35px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--primary-color);
    border: 2px solid var(--accent-color);
    box-shadow: 0 10px 15px -3px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    background: var(--white);
    border-color: var(--white);
    color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(212, 175, 55, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-light);
    border: 2px solid rgba(230, 241, 255, 0.3);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-light);
    transform: translateY(-5px);
}

/* Sections General */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    margin: 10px auto 0;
}

.section-desc {
    color: var(--text-dim);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about {
    background: var(--secondary-color);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.about-card {
    background: var(--primary-color);
    padding: 40px;
    border-radius: 10px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.about-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: var(--shadow);
}

.icon-box {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.about-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--white);
}

.about-card p {
    color: var(--text-dim);
}

/* Dean Section */
.dean-section {
    background: var(--primary-color);
}

.dean-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.dean-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
}

.dean-img {
    width: 350px;
    height: 350px;
    object-fit: cover;
    border-radius: 50%;
    /* Make it circular */
    border: 3px solid var(--accent-color);
    box-shadow: var(--shadow);
}

.dean-content {
    flex: 1;
}

.dean-title {
    font-size: 1.2rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.dean-name {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 30px;
}

.dean-text {
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-bottom: 30px;
    font-style: italic;
    line-height: 1.8;
}

.signature {
    font-family: 'Dancing Script', cursive;
    font-size: 1.5rem;
    color: var(--accent-color);
}

/* Stats Section */
.stats-section {
    background: var(--accent-color);
    padding: 60px 0;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 3rem;
    font-weight: 900;
    color: var(--primary-color);
}

.stat-label {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Contact Section */
.contact {
    background: var(--secondary-color);
}

.contact-wrapper {
    display: flex;
    gap: 50px;
    flex-wrap: wrap;
}

.contact-form {
    flex: 2;
    background: var(--primary-color);
    padding: 40px;
    border-radius: 10px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    background: var(--secondary-color);
    border: 1px solid #233554;
    border-radius: 5px;
    color: var(--text-light);
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.btn-block {
    width: 100%;
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--accent-color);
    margin-top: 5px;
}

.info-item h4 {
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 5px;
}

.info-item p {
    color: var(--text-dim);
}

/* Footer */
.footer {
    background: var(--primary-color);
    padding: 60px 0 20px;
    border-top: 1px solid #233554;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a {
    color: var(--text-dim);
}

.footer-col ul li a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-color);
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #233554;
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-gold {
    0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(212, 175, 55, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

/* Smart Search Component Styles */
.search-section {
    padding: 40px 0;
    background: var(--primary-color);
    position: relative;
    z-index: 10;
}

.search-container {
    max-width: 800px;
    margin: -60px auto 0;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    padding: 8px;
    border-radius: 15px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    display: flex;
    gap: 10px;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-input-wrapper i {
    position: absolute;
    right: 20px;
    color: var(--accent-color);
    font-size: 1.2rem;
}

.search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    padding: 18px 50px 18px 20px;
    border-radius: 10px;
    color: var(--text-light);
    font-family: inherit;
    font-size: 1.1rem;
    outline: none;
    transition: var(--transition);
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.1);
}

.search-btn {
    padding: 0 30px;
    border-radius: 10px;
}

.search-results-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.95);
    z-index: 9999;
    padding: 100px 20px 40px;
    display: none;
    overflow-y: auto;
}

.search-results-overlay.active {
    display: block;
}

.search-results-container {
    max-width: 1000px;
    margin: 0 auto;
}

.search-result-card {
    background: var(--secondary-color);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    animation: fadeInUp 0.5s ease backwards;
}

.search-result-card:hover {
    transform: translateX(-10px);
    border-color: var(--accent-color);
}

.search-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent-color);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 10px;
}

/* Programs Section */
.programs-section {
    background: var(--secondary-color);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.program-card {
    background: var(--primary-color);
    padding: 40px;
    border-radius: 10px;
    transition: var(--transition);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

.program-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-color);
    box-shadow: var(--shadow);
}

.program-icon {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.program-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--white);
}

.program-card p {
    color: var(--text-dim);
    margin-bottom: 25px;
}

.program-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent-color);
    font-weight: 600;
    transition: var(--transition);
}

.program-link:hover {
    gap: 15px;
}

/* Modal System */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--primary-color);
    padding: 40px;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    position: relative;
    border: 1px solid var(--accent-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    max-height: 90vh;
    overflow-y: auto;
}

.close-modal {
    position: absolute;
    left: 20px;
    top: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-dim);
    transition: var(--transition);
}

.close-modal:hover {
    color: var(--accent-color);
}

/* Registration Styles */
.reg-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    background: var(--secondary-color);
    padding: 5px;
    border-radius: 8px;
}

.reg-tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    color: var(--text-dim);
    font-weight: 700;
    cursor: pointer;
    border-radius: 6px;
    transition: var(--transition);
}

.reg-tab-btn.active {
    background: var(--accent-color);
    color: var(--primary-color);
}

.reg-modal-content {
    max-width: 600px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

@media (max-width: 600px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.reg-item {
    background: var(--secondary-color);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-right: 4px solid var(--accent-color);
    font-size: 0.9rem;
    color: var(--text-light);
}

.reg-item strong {
    color: var(--accent-color);
}

.reg-item span {
    display: block;
    color: var(--text-dim);
    margin-top: 5px;
}

/* Responsive */
@media (max-width: 768px) {
    .header-container {
        padding: 0 15px;
    }

    .nav {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 70%;
        height: 100vh;
        background: var(--secondary-color);
        padding: 40px;
        transition: var(--transition);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: 20px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-title {
        font-size: 2.8rem;
        padding: 0 10px;
    }

    .hero-subtitle {
        font-size: 1.8rem;
    }

    .dean-badge {
        padding: 15px 25px;
        width: 90%;
        margin: 0 auto 30px;
    }

    .dean-emphasis {
        font-size: 1.4rem;
    }

    .hero-cta {
        flex-direction: column;
        gap: 15px;
        padding: 0 20px;
    }

    .btn {
        width: 100%;
    }

    .dean-container {
        flex-direction: column;
        text-align: center;
    }

    .contact-wrapper {
        flex-direction: column;
    }
}