/*
 * Premium University-Style CSS Framework
 * Inspired by Harvard, Oxford, MIT, Stanford
 * Modern, elegant, professional design system
 */

/* ========================================
   1. CSS CUSTOM PROPERTIES (VARIABLES)
   ======================================== */

:root {
    /* Primary Colors - Deep Royal Blue */
    --primary-dark: #001a38;
    --primary: #002147;
    --primary-light: #003d82;
    --primary-lighter: #0052a3;

    /* Accent Colors - Refined Gold */
    --gold: #d4af37;
    --gold-light: #f4d03f;
    --gold-dark: #b8941e;

    /* Neutral Colors */
    --white: #ffffff;
    --cream: #faf8f5;
    --light-gray: #f5f7fa;
    --gray: #6c757d;
    --dark-gray: #343a40;
    --dark: #1a1a2e;
    --black: #000000;

    /* Semantic Colors */
    --success: #28a745;
    --info: #17a2b8;
    --warning: #ffc107;
    --danger: #dc3545;

    /* Typography */
    --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-accent: 'Merriweather', Georgia, serif;

    /* Font Sizes */
    --text-xs: 0.75rem;
    /* 12px */
    --text-sm: 0.875rem;
    /* 14px */
    --text-base: 1rem;
    /* 16px */
    --text-lg: 1.125rem;
    /* 18px */
    --text-xl: 1.25rem;
    /* 20px */
    --text-2xl: 1.5rem;
    /* 24px */
    --text-3xl: 1.875rem;
    /* 30px */
    --text-4xl: 2.25rem;
    /* 36px */
    --text-5xl: 3rem;
    /* 48px */
    --text-6xl: 3.75rem;
    /* 60px */

    /* Font Weights */
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;

    /* Spacing Scale */
    --space-1: 0.25rem;
    /* 4px */
    --space-2: 0.5rem;
    /* 8px */
    --space-3: 0.75rem;
    /* 12px */
    --space-4: 1rem;
    /* 16px */
    --space-5: 1.25rem;
    /* 20px */
    --space-6: 1.5rem;
    /* 24px */
    --space-8: 2rem;
    /* 32px */
    --space-10: 2.5rem;
    /* 40px */
    --space-12: 3rem;
    /* 48px */
    --space-16: 4rem;
    /* 64px */
    --space-20: 5rem;
    /* 80px */
    --space-24: 6rem;
    /* 96px */

    /* Border Radius */
    --radius-sm: 0.375rem;
    /* 6px */
    --radius-md: 0.5rem;
    /* 8px */
    --radius-lg: 0.75rem;
    /* 12px */
    --radius-xl: 1rem;
    /* 16px */
    --radius-2xl: 1.25rem;
    /* 20px */
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Z-Index Scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* ========================================
   2. RESET & BASE STYLES
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: var(--font-normal);
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    /* Slightly wider for usability */
    height: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 33, 71, 0.4);
    /* Slightly visible thumb */
    border-radius: 10px;
    border: 2px solid transparent;
    /* Creates padding around thumb */
    background-clip: content-box;
    /* Only color the content, excluding border */
    transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 33, 71, 0.8);
}

/* ========================================
   3. TYPOGRAPHY SYSTEM
   ======================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: var(--font-semibold);
    line-height: 1.2;
    color: var(--primary-dark);
    margin-bottom: var(--space-4);
    letter-spacing: -0.02em;
}

h1 {
    font-size: var(--text-5xl);
    font-weight: var(--font-bold);
}

h2 {
    font-size: var(--text-4xl);
}

h3 {
    font-size: var(--text-3xl);
}

h4 {
    font-size: var(--text-2xl);
}

h5 {
    font-size: var(--text-xl);
}

h6 {
    font-size: var(--text-lg);
}

p {
    margin-bottom: var(--space-4);
    line-height: 1.7;
}

.lead {
    font-size: var(--text-lg);
    font-weight: var(--font-normal);
    line-height: 1.8;
    color: var(--gray);
}

.text-accent {
    font-family: var(--font-accent);
    font-style: italic;
}

/* Responsive Typography */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    h1 {
        font-size: var(--text-4xl);
    }

    h2 {
        font-size: var(--text-3xl);
    }

    h3 {
        font-size: var(--text-2xl);
    }
}

/* ========================================
   4. PREMIUM NAVBAR
   ======================================== */

.navbar-premium {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all var(--transition-base);
    height: 70px;
}

.navbar-premium.scrolled {
    box-shadow: var(--shadow-md);
    height: 65px;
}

.navbar-premium .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.navbar-brand-premium {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    text-decoration: none;
    transition: transform var(--transition-base);
}

.navbar-brand-premium:hover {
    transform: translateY(-2px);
}

.navbar-logo {
    height: 45px;
    width: auto;
}

.navbar-college-name {
    display: flex;
    flex-direction: column;
}

.navbar-college-name h1 {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--primary);
    margin: 0;
    line-height: 1.2;
}

.navbar-college-name small {
    font-size: var(--text-sm);
    color: var(--gold);
    font-weight: var(--font-medium);
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    list-style: none;
    margin: 0;
}

.navbar-menu li {
    margin: 0;
}

.navbar-link {
    position: relative;
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    color: var(--dark-gray);
    text-decoration: none;
    padding: var(--space-2) 0;
    transition: color var(--transition-base);
}

.navbar-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width var(--transition-base);
}

.navbar-link:hover {
    color: var(--primary);
}

.navbar-link:hover::after {
    width: 100%;
}

.navbar-link.active {
    color: var(--primary);
}

.navbar-link.active::after {
    width: 100%;
}

.btn-login-nav {
    padding: var(--space-3) var(--space-6);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    font-weight: var(--font-semibold);
    text-decoration: none;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}

.btn-login-nav:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--white);
}

/* Mobile Menu Toggle */
.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
}

.navbar-toggle span {
    width: 25px;
    height: 2px;
    background: var(--primary);
    transition: all var(--transition-base);
}

@media (max-width: 992px) {
    .navbar-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        padding: var(--space-8);
        gap: var(--space-6);
        transform: translateX(-100%);
        transition: transform var(--transition-base);
    }

    .navbar-menu.active {
        transform: translateX(0);
    }

    .navbar-toggle {
        display: flex;
    }

    .navbar-link {
        font-size: var(--text-lg);
    }
}

/* ========================================
   5. HERO SECTION
   ======================================== */

.hero-premium {
    position: relative;
    min-height: 85vh;
    /* Mobile default */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-20) var(--space-6);
    margin-top: 70px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

@media (min-width: 992px) {
    .hero-premium {
        min-height: 500px;
        /* Force smaller height on desktop */
        padding: var(--space-12) 0;
    }

    .hero-content-premium h1 {
        font-size: var(--text-5xl);
        /* Slightly smaller heading */
    }
}

.hero-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(0, 33, 71, 0.88) 0%,
            rgba(0, 61, 130, 0.78) 100%);
    z-index: 1;
}

.hero-content-premium {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
}

.hero-content-premium h1 {
    font-size: var(--text-6xl);
    font-weight: var(--font-bold);
    color: var(--white);
    margin-bottom: var(--space-6);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero-content-premium .tagline {
    font-size: var(--text-2xl);
    color: var(--gold-light);
    margin-bottom: var(--space-10);
    font-weight: var(--font-medium);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    letter-spacing: 0.02em;
}

.hero-buttons {
    display: flex;
    gap: var(--space-6);
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero-primary,
.btn-hero-secondary {
    padding: var(--space-5) var(--space-10);
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all var(--transition-base);
    border: 2px solid transparent;
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

.btn-hero-primary {
    background: var(--gold);
    color: var(--primary-dark);
    box-shadow: 0 10px 30px rgba(212, 175, 55, 0.4);
}

.btn-hero-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.5);
    color: var(--primary-dark);
}

.btn-hero-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-hero-secondary:hover {
    background: var(--white);
    color: var(--primary);
    transform: translateY(-3px) scale(1.02);
}

@media (max-width: 768px) {
    .hero-premium {
        min-height: 70vh;
        padding: var(--space-16) var(--space-4);
    }

    .hero-content-premium h1 {
        font-size: var(--text-4xl);
    }

    .hero-content-premium .tagline {
        font-size: var(--text-lg);
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   6. AFFILIATION STRIP
   ======================================== */

.affiliation-strip-premium {
    background: linear-gradient(135deg, var(--cream) 0%, #f9f6f0 100%);
    padding: var(--space-10) var(--space-6);
    text-align: center;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.affiliation-quote {
    font-family: var(--font-accent);
    font-size: var(--text-2xl);
    font-style: italic;
    color: var(--primary-dark);
    margin-bottom: var(--space-4);
    position: relative;
    display: inline-block;
}

.affiliation-quote::after {
    content: '';
    position: absolute;
    bottom: -var(--space-3);
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gold);
    border-radius: var(--radius-full);
}

.affiliation-details {
    font-size: var(--text-lg);
    color: var(--gray);
    margin-top: var(--space-6);
    font-weight: var(--font-medium);
}

/* ========================================
   7. PREMIUM CARDS
   ======================================== */

.card-premium {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: var(--space-10) var(--space-8);
    box-shadow: var(--shadow-lg);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: 100%;
}

.card-premium:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.card-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto var(--space-6);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xl);
    font-size: var(--text-4xl);
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.card-premium h4 {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
    color: var(--primary-dark);
    margin-bottom: var(--space-4);
    text-align: center;
}

.card-premium p {
    color: var(--gray);
    line-height: 1.7;
    text-align: center;
    margin-bottom: var(--space-6);
}

.card-premium .btn-card {
    display: inline-block;
    padding: var(--space-3) var(--space-6);
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: var(--font-semibold);
    transition: all var(--transition-base);
}

.card-premium .btn-card:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

/* ========================================
   8. SECTION STYLES
   ======================================== */

.section-premium {
    padding: var(--space-20) var(--space-6);
}

.section-title {
    text-align: center;
    margin-bottom: var(--space-16);
}

.section-title h2 {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    color: var(--primary-dark);
    margin-bottom: var(--space-4);
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -var(--space-3);
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gold);
    border-radius: var(--radius-full);
}

.section-title p {
    font-size: var(--text-lg);
    color: var(--gray);
    max-width: 700px;
    margin: var(--space-6) auto 0;
}

/* ========================================
   9. FOOTER PREMIUM
   ======================================== */

.footer-premium {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--space-20) var(--space-6) var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

.footer-column h4 {
    color: var(--white);
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-6);
    border-left: 3px solid var(--gold);
    padding-left: var(--space-4);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-3);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all var(--transition-base);
    display: inline-block;
    position: relative;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width var(--transition-base);
}

.footer-links a:hover {
    color: var(--gold);
    transform: translateX(5px);
}

.footer-links a:hover::after {
    width: 100%;
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.footer-contact-item i {
    color: var(--gold);
    font-size: var(--text-lg);
    margin-top: 2px;
}

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding-top: var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--text-sm);
}

/* ========================================
   10. ANIMATIONS
   ======================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

/* Scroll Animation Classes */
.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.scroll-animate.active {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   11. UTILITY CLASSES
   ======================================== */

.container-premium {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary);
}

.text-gold {
    color: var(--gold);
}

.bg-light {
    background-color: var(--light-gray);
}

.bg-cream {
    background-color: var(--cream);
}

.mt-0 {
    margin-top: 0;
}

.mt-4 {
    margin-top: var(--space-4);
}

.mt-8 {
    margin-top: var(--space-8);
}

.mt-12 {
    margin-top: var(--space-12);
}

.mt-16 {
    margin-top: var(--space-16);
}

.mt-20 {
    margin-top: var(--space-20);
}

.mb-0 {
    margin-bottom: 0;
}

.mb-4 {
    margin-bottom: var(--space-4);
}

.mb-8 {
    margin-bottom: var(--space-8);
}

.mb-12 {
    margin-bottom: var(--space-12);
}

.mb-16 {
    margin-bottom: var(--space-16);
}

.mb-20 {
    margin-bottom: var(--space-20);
}

.py-20 {
    padding-top: var(--space-20);
    padding-bottom: var(--space-20);
}

/* ========================================
   12. RESPONSIVE UTILITIES
   ======================================== */

@media (max-width: 768px) {
    .section-premium {
        padding: var(--space-16) var(--space-4);
    }

    .section-title h2 {
        font-size: var(--text-3xl);
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
}

/* ========================================
   13. ACCESSIBILITY
   ======================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Visible */
*:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* Skip to Content Link */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: var(--white);
    padding: var(--space-2) var(--space-4);
    text-decoration: none;
    z-index: 100;
}

.skip-to-content:focus {
    top: 0;
}