/* ===========================================
   SPIST Website - Modern CSS with Light/Dark Mode
   Built from scratch - No override issues!
   =========================================== */

/* CSS Variables for Light/Dark Mode */
:root {
    /* Light Mode Colors - Elegant Academic Green & Gold */
    --color-primary: #2e7d32;
    --color-primary-light: #4caf50;
    --color-primary-dark: #1b5e20;
    --color-secondary: #66bb6a;
    --color-accent: #f9a825;
    --color-accent-dark: #f57f17;
    
    /* Extended Green Palette */
    --green-50: #e8f5e9;
    --green-100: #c8e6c9;
    --green-200: #a5d6a7;
    --green-300: #81c784;
    --green-400: #66bb6a;
    --green-500: #4caf50;
    --green-600: #43a047;
    --green-700: #388e3c;
    --green-800: #2e7d32;
    --green-900: #1b5e20;
    --green-deep: #0d3b12;
    --green-emerald: #1a6b3c;
    --green-sage: #87ae73;
    --green-mint: #b2dfdb;
    
    /* Extended Gold Palette */
    --gold-50: #fff8e1;
    --gold-100: #ffecb3;
    --gold-200: #ffe082;
    --gold-300: #ffd54f;
    --gold-400: #ffca28;
    --gold-500: #ffc107;
    --gold-600: #ffb300;
    --gold-700: #ffa000;
    --gold-800: #ff8f00;
    --gold-900: #ff6f00;
    --gold-foil: linear-gradient(135deg, #ffd700, #ffb300, #ffd700);
    --gold-shimmer: linear-gradient(90deg, #d4a017, #ffd700, #d4a017, #ffd700);
    --gold-champagne: #f5e6c8;
    --gold-honey: #eb9e1a;
    
    /* Academic Gradients */
    --gradient-hero: linear-gradient(135deg, rgba(13, 59, 18, 0.85), rgba(27, 94, 32, 0.7), rgba(46, 125, 50, 0.6));
    --gradient-primary: linear-gradient(135deg, #1b5e20, #2e7d32, #43a047);
    --gradient-gold: linear-gradient(135deg, #f57f17, #f9a825, #ffc107);
    --gradient-card-hover: linear-gradient(135deg, rgba(46, 125, 50, 0.03), rgba(249, 168, 37, 0.03));
    --gradient-section-green: linear-gradient(180deg, #f1f8e9 0%, #e8f5e9 50%, #f1f8e9 100%);
    --gradient-section-gold: linear-gradient(180deg, #fffde7 0%, #fff8e1 50%, #fffde7 100%);
    --gradient-footer: linear-gradient(180deg, #1b5e20, #0d3b12);
    
    --bg-primary: #ffffff;
    --bg-secondary: #f5f7fa;
    --bg-tertiary: #e8ecf1;
    --bg-card: #ffffff;
    
    --text-primary: #1a1f36;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --text-light: #a0aec0;
    
    --border-color: #e2e8f0;
    --shadow: rgba(0, 0, 0, 0.08);
    --shadow-lg: rgba(0, 0, 0, 0.12);
    --shadow-green: rgba(46, 125, 50, 0.15);
    --shadow-gold: rgba(249, 168, 37, 0.2);
    --shadow-elevated: 0 20px 60px rgba(0, 0, 0, 0.1), 0 8px 20px rgba(0, 0, 0, 0.06);
    
    --overlay: rgba(255, 255, 255, 0.95);
    --hero-overlay: rgba(27, 94, 32, 0.6);
    
    /* Texture patterns (CSS-only) */
    --pattern-dots: radial-gradient(circle, rgba(46, 125, 50, 0.04) 1px, transparent 1px);
    --pattern-dots-size: 20px 20px;
    --pattern-diagonal: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(46, 125, 50, 0.02) 10px, rgba(46, 125, 50, 0.02) 11px);
}

/* Dark Mode Colors - Elegant Academic Dark */
body.dark-mode {
    /* Deep rich backgrounds */
    --bg-primary: #0f1214;
    --bg-secondary: #161a1d;
    --bg-tertiary: #1e2328;
    --bg-card: #1a1e22;
    
    /* Brighter greens for contrast on dark */
    --color-primary: #4caf50;
    --color-primary-light: #66bb6a;
    --color-primary-dark: #388e3c;
    --color-secondary: #81c784;
    
    /* Vivid gold accents on dark */
    --color-accent: #ffd54f;
    --color-accent-dark: #ffb300;
    
    /* Extended palette adjustments for dark */
    --green-50: rgba(76, 175, 80, 0.08);
    --green-100: rgba(76, 175, 80, 0.12);
    --gold-50: rgba(255, 193, 7, 0.06);
    --gold-100: rgba(255, 193, 7, 0.1);
    --gold-champagne: #3d3422;
    
    /* Dark mode gradients */
    --gradient-hero: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(13, 59, 18, 0.8), rgba(15, 18, 20, 0.85));
    --gradient-primary: linear-gradient(135deg, #2e7d32, #388e3c, #43a047);
    --gradient-gold: linear-gradient(135deg, #ff8f00, #ffa000, #ffb300);
    --gradient-card-hover: linear-gradient(135deg, rgba(76, 175, 80, 0.06), rgba(255, 193, 7, 0.04));
    --gradient-section-green: linear-gradient(180deg, #111613 0%, #131a15 50%, #111613 100%);
    --gradient-section-gold: linear-gradient(180deg, #161411 0%, #1a1710 50%, #161411 100%);
    --gradient-footer: linear-gradient(180deg, #0d1a10, #080e09);
    
    /* Clean white/gray text */
    --text-primary: #e4e6eb;
    --text-secondary: #b0b3b8;
    --text-muted: #8a8d91;
    --text-light: #65686c;
    
    --border-color: #2a2e33;
    --shadow: rgba(0, 0, 0, 0.5);
    --shadow-lg: rgba(0, 0, 0, 0.7);
    --shadow-green: rgba(76, 175, 80, 0.2);
    --shadow-gold: rgba(255, 193, 7, 0.15);
    --shadow-elevated: 0 20px 60px rgba(0, 0, 0, 0.4), 0 8px 20px rgba(0, 0, 0, 0.3);
    
    --overlay: rgba(15, 18, 20, 0.95);
    --hero-overlay: rgba(15, 18, 20, 0.7);
    
    /* Dark mode textures */
    --pattern-dots: radial-gradient(circle, rgba(76, 175, 80, 0.06) 1px, transparent 1px);
    --pattern-diagonal: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(76, 175, 80, 0.03) 10px, rgba(76, 175, 80, 0.03) 11px);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
    -webkit-tap-highlight-color: transparent;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Mobile-friendly touch targets */
a, button, .btn, input, select, textarea {
    -webkit-tap-highlight-color: rgba(46, 125, 50, 0.2);
    touch-action: manipulation;
}

button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Ensure minimum touch target size (44x44px) */
button,
.btn,
.nav-menu a,
.search-btn,
.theme-toggle,
.mobile-toggle {
    min-width: 44px;
    min-height: 44px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-primary);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
    position: relative;
    display: inline-block;
}

/* Gold foil underline accent on section titles */
.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gold-foil);
    border-radius: 2px;
}

.text-center .section-title::after,
.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.text-center {
    text-align: center;
}

.lead {
    font-size: 1.1rem;
    font-weight: 500;
}

/* ===== Decorative Elements ===== */

/* Section divider shapes */
.section-divider {
    position: relative;
    overflow: hidden;
    line-height: 0;
}

.section-divider svg {
    display: block;
    width: 100%;
    height: auto;
}

/* Gold accent line (reusable) */
.gold-accent {
    width: 80px;
    height: 4px;
    background: var(--gold-foil);
    border-radius: 2px;
    margin: 0 auto 1.5rem;
}

/* Decorative dot pattern overlay */
.has-pattern {
    position: relative;
}

.has-pattern::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--pattern-dots);
    background-size: var(--pattern-dots-size);
    pointer-events: none;
    z-index: 0;
}

.has-pattern > * {
    position: relative;
    z-index: 1;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #ffffff;
    box-shadow: 0 4px 15px var(--shadow-green);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--shadow-green), 0 0 0 4px rgba(46, 125, 50, 0.1);
}

.btn-gold {
    background: var(--gradient-gold);
    color: #1b5e20;
    font-weight: 700;
    box-shadow: 0 4px 15px var(--shadow-gold);
}

.btn-gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--shadow-gold), 0 0 0 4px rgba(249, 168, 37, 0.15);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--color-primary);
}

.btn-outline:hover {
    background: var(--color-primary);
    color: #ffffff;
}

.btn-light {
    background: #ffffff;
    color: var(--color-primary);
}

.btn-light:hover {
    background: var(--gold-50);
    color: var(--color-primary-dark);
}

/* Header & Navigation */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-primary);
    box-shadow: 0 2px 20px var(--shadow);
}

.navbar {
    background: var(--bg-primary);
    padding: 1rem 0;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-primary)) 1;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2rem; /* Add padding directly here for edge-to-edge effect */
    max-width: 100%; /* Remove max-width constraint for full width */
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo i {
    font-size: 2rem;
}

/* Official SPIST seal logo image */
.logo-img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.1);
}

/* Footer logo image (slightly larger) */
.footer-logo .logo-img {
    width: 50px;
    height: 50px;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--gradient-gold);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--color-primary);
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-btn,
.theme-toggle {
    background: var(--bg-tertiary);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-primary);
    transition: all 0.3s ease;
}

.search-btn:hover,
.theme-toggle:hover {
    background: var(--color-primary);
    color: #ffffff;
    transform: scale(1.1);
}

/* Campus Bar */
.campus-bar {
    background: var(--green-50);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--green-100);
}

.campus-bar .container {
    padding: 0 2rem; /* Match navbar padding for edge-to-edge alignment */
    max-width: 100%; /* Remove max-width constraint for full width */
}

.campus-links {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-start;
}

.campus-link {
    color: var(--color-primary-dark);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    border: 1px solid transparent;
}

.campus-link:hover {
    background: var(--gradient-primary);
    color: #ffffff;
    box-shadow: 0 2px 10px var(--shadow-green);
}

.campus-link i {
    margin-right: 0.5rem;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(var(--hero-overlay), var(--hero-overlay)),
                url('../pictures/layout.jpg') center/cover;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
}

/* Subtle animated gradient shimmer overlay */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
    z-index: 1;
}

/* Decorative gold corner accent */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: var(--gold-shimmer);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
    z-index: 3;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: var(--hero-overlay);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease;
    color: #ffffff !important;
    text-shadow: 3px 5px 10px rgba(0, 0, 0, 0.9), 
                 0 0 30px rgba(0, 0, 0, 0.7),
                 2px 2px 4px rgba(0, 0, 0, 1);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    opacity: 1;
    animation: fadeInUp 1s ease 0.2s backwards;
    color: var(--gold-300) !important;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.9), 
                 0 0 20px rgba(0, 0, 0, 0.7),
                 1px 1px 3px rgba(0, 0, 0, 1);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 1.1rem;
}

.hero-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 1;
    animation: fadeInUp 1s ease 0.4s backwards;
    color: #ffffff !important;
    text-shadow: 2px 3px 6px rgba(0, 0, 0, 0.9), 
                 0 0 20px rgba(0, 0, 0, 0.7),
                 1px 1px 3px rgba(0, 0, 0, 1);
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease 0.6s backwards;
}

/* Hero button - gold CTA */
.hero .btn-primary {
    background: var(--gradient-gold);
    color: #1b5e20;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(249, 168, 37, 0.4);
    border: none;
}

.hero .btn-primary:hover {
    box-shadow: 0 8px 35px rgba(249, 168, 37, 0.6);
    transform: translateY(-3px);
}

/* Hero button text override for readability */
.hero .btn-outline {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.6);
    text-shadow: 1px 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 600;
    backdrop-filter: blur(4px);
    background: rgba(255, 255, 255, 0.08);
}

.hero .btn-outline:hover {
    background: #ffffff;
    color: var(--color-primary) !important;
    text-shadow: none;
    border-color: #ffffff;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    animation: bounce 2s infinite;
    z-index: 3;
    color: var(--gold-300);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Hero Badge */
.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gold-200) !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-badge i {
    margin-right: 0.5rem;
    color: var(--gold-300);
}

/* Widgets Section */
.widgets-section {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.widgets-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 968px) {
    .widgets-grid {
        grid-template-columns: 1fr;
    }
}

/* About Section */
.about {
    padding: 6rem 0;
    background: var(--gradient-section-green);
    position: relative;
    overflow: hidden;
}

/* Subtle dot pattern texture */
.about::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--pattern-dots);
    background-size: var(--pattern-dots-size);
    pointer-events: none;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: var(--shadow-elevated);
    border: 3px solid var(--green-100);
}

.about-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.about-content h2 {
    margin-bottom: 1.5rem;
}

.about-content p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.about-features {
    list-style: none;
    margin-top: 2rem;
}

.about-features li {
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.about-features li:hover {
    background: var(--green-50);
    border-left-color: var(--color-accent);
}

.about-features i {
    color: var(--color-accent);
    margin-right: 1rem;
    font-size: 1.2rem;
}

/* Campuses Section */
.campuses {
    padding: 6rem 0;
    background: var(--bg-primary);
    position: relative;
}

.campus-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.campus-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    position: relative;
}

.campus-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gold-shimmer);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.campus-card:hover::before {
    opacity: 1;
}

.campus-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px var(--shadow-lg), 0 0 0 1px var(--green-200);
}

.campus-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.campus-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.campus-card:hover .campus-image img {
    transform: scale(1.1);
}

.campus-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.campus-card:hover .campus-overlay {
    opacity: 1;
}

.campus-info {
    padding: 2rem;
}

.campus-info h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.campus-info p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.campus-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.badge {
    background: var(--green-50);
    color: var(--color-primary-dark);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid var(--green-100);
    transition: all 0.3s ease;
}

.badge:hover {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
}

.badge i {
    margin-right: 0.5rem;
    color: var(--color-accent);
}

.link-arrow {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.link-arrow:hover {
    gap: 1rem;
    color: var(--color-accent-dark);
    border-bottom-color: var(--color-accent);
}

/* Quick Actions Section */
.quick-actions {
    padding: 6rem 0;
    background: var(--gradient-section-gold);
    position: relative;
    overflow: hidden;
}

/* Diagonal line texture */
.quick-actions::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--pattern-diagonal);
    pointer-events: none;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.action-card {
    background: var(--bg-card);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 8px 30px var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.action-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.action-card:hover::after {
    transform: scaleX(1);
}

.action-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-elevated);
}

.action-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--green-50);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    font-size: 2rem;
    transition: all 0.4s ease;
    border: 2px solid var(--green-100);
}

.action-card:hover .action-icon {
    background: var(--gradient-primary);
    color: #ffffff;
    border-color: var(--color-primary);
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 8px 25px var(--shadow-green);
}

.action-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.action-card p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    background: var(--gradient-footer);
    padding: 4rem 0 1rem;
    border-top: 4px solid transparent;
    border-image: var(--gold-shimmer) 1;
    border-image-slice: 1;
    color: #e8f5e9;
    position: relative;
    overflow: hidden;
}

/* Subtle texture */
.footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--pattern-dots);
    background-size: var(--pattern-dots-size);
    opacity: 0.3;
    pointer-events: none;
}

.footer .container {
    position: relative;
    z-index: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gold-300);
    margin-bottom: 1rem;
}

.footer-logo i {
    font-size: 2rem;
}

.footer-column p {
    color: var(--green-200);
    margin-bottom: 1.5rem;
}

.footer-column h4 {
    margin-bottom: 1rem;
    color: var(--gold-300);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gold-foil);
    border-radius: 2px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.75rem;
}

.footer-column ul li a {
    color: var(--green-200);
    text-decoration: none;
    transition: all 0.3s ease;
    padding-left: 0;
    border-left: 2px solid transparent;
}

.footer-column ul li a:hover {
    color: var(--gold-300);
    padding-left: 0.5rem;
    border-left-color: var(--gold-400);
}

.contact-info li {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    color: var(--green-200);
}

.contact-info i {
    color: var(--gold-400);
    margin-top: 0.25rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--gold-300);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links a:hover {
    background: var(--gradient-gold);
    color: #1b5e20;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px var(--shadow-gold);
    border-color: transparent;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--green-300);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px var(--shadow-green);
    transition: all 0.3s ease;
    z-index: 999;
}

.back-to-top.show {
    display: flex;
}

.back-to-top:hover {
    background: var(--gradient-gold);
    color: #1b5e20;
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--shadow-gold);
}

.back-to-top:active {
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 968px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 280px;
        height: calc(100vh - 70px);
        background: var(--bg-primary);
        flex-direction: column;
        padding: 2rem;
        box-shadow: -5px 0 20px var(--shadow-lg);
        transition: right 0.3s ease;
        overflow-y: auto;
        align-items: flex-start;
        gap: 1.5rem;
        border-left: 3px solid var(--color-primary);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        display: block;
        padding: 0.75rem 0;
        font-size: 1.1rem;
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-menu a::after {
        bottom: 0;
    }
    
    .mobile-toggle {
        display: flex;
        z-index: 1001;
    }
    
    .mobile-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .mobile-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    /* Nav Actions in mobile */
    .nav-actions {
        display: flex;
        gap: 1rem;
    }
    
    .search-btn,
    .theme-toggle {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        background: var(--bg-tertiary);
        border: none;
        color: var(--color-primary);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
        transition: all 0.3s ease;
    }
    
    .search-btn:hover,
    .theme-toggle:hover {
        background: var(--color-primary);
        color: #ffffff;
        transform: scale(1.1);
    }
    
    .campus-grid,
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .actions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    /* Campus cards mobile */
    .campus-info {
        padding: 1.5rem;
    }
    
    .campus-features {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .badge {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
}

@media (max-width: 576px) {
    .actions-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    .campus-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .campus-link {
        justify-content: center;
        padding: 0.75rem 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-text {
        font-size: 0.95rem;
    }
    
    .hero {
        padding: 80px 0 40px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .btn {
        padding: 10px 24px;
        font-size: 0.95rem;
    }
    
    .nav-menu {
        width: 100%;
        right: -100%;
        padding: 1.5rem;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    /* Make campus images full width on very small screens */
    .campus-image {
        height: 200px;
    }
    
    /* Better touch targets */
    .logo {
        font-size: 1.3rem;
    }
    
    .logo i {
        font-size: 1.5rem;
    }
    
    .section {
        padding: 40px 0;
    }
}

/* ===========================================
   Search Overlay
   =========================================== */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 100px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
}

.search-overlay-content {
    width: 100%;
    max-width: 700px;
    padding: 0 20px;
    transform: translateY(-30px);
    transition: transform 0.3s ease;
}

.search-overlay.active .search-overlay-content {
    transform: translateY(0);
}

.search-overlay-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.search-overlay-input-wrapper {
    position: relative;
    flex: 1;
}

.search-overlay-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-primary);
    font-size: 1.5rem;
    pointer-events: none;
}

.search-overlay-input {
    width: 100%;
    padding: 20px 20px 20px 60px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 50px;
    font-size: 1.2rem;
    color: var(--text-primary);
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.search-overlay-input:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.1);
}

.search-overlay-input::placeholder {
    color: var(--text-muted);
}

.search-overlay-close {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.search-overlay-close:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    transform: rotate(90deg);
}

.search-overlay-hints {
    padding: 0 20px;
    color: var(--text-light);
    font-size: 0.9rem;
}

.search-overlay-hints p {
    margin-bottom: 10px;
}

.search-quick-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.search-quick-link {
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.search-quick-link:hover {
    background: var(--gradient-primary);
    color: white;
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--shadow-green);
}

@media (max-width: 768px) {
    .search-overlay {
        padding-top: 60px;
    }
    
    .search-overlay-input {
        font-size: 1rem;
        padding: 16px 16px 16px 50px;
    }
    
    .search-overlay-icon {
        font-size: 1.2rem;
        left: 16px;
    }
    
    .search-overlay-close {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
    
    .search-quick-links {
        gap: 8px;
    }
    
    .search-quick-link {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
}

/* ===========================================
   SCROLL REVEAL ANIMATIONS
   =========================================== */

/* Base reveal state (hidden, ready to animate in) */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Directional variants */
.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left.revealed,
.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* Scale variant */
.reveal-scale {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays for child items */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* ===========================================
   GOLD PULSE GLOW ON HERO CTA
   =========================================== */

.hero .btn-primary {
    animation: goldPulse 2.5s ease-in-out infinite;
}

@keyframes goldPulse {
    0%, 100% {
        box-shadow: 0 4px 20px rgba(249, 168, 37, 0.4);
    }
    50% {
        box-shadow: 0 4px 35px rgba(249, 168, 37, 0.7), 0 0 60px rgba(255, 193, 7, 0.3);
    }
}

/* ===========================================
   HERO FLOATING PARTICLES (gold dots)
   =========================================== */

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.hero-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--gold-300);
    border-radius: 50%;
    opacity: 0;
    animation: floatParticle linear infinite;
}

@keyframes floatParticle {
    0% {
        opacity: 0;
        transform: translateY(100%) scale(0);
    }
    10% {
        opacity: 0.6;
    }
    90% {
        opacity: 0.6;
    }
    100% {
        opacity: 0;
        transform: translateY(-100vh) scale(1);
    }
}

/* ===========================================
   ENHANCED CARD INTERACTIONS
   =========================================== */

/* Card tilt shine effect */
.campus-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255, 215, 0, 0.03) 45%,
        rgba(255, 215, 0, 0.05) 50%,
        rgba(255, 215, 0, 0.03) 55%,
        transparent 60%
    );
    transform: rotate(0deg);
    transition: transform 0.6s ease;
    pointer-events: none;
    z-index: 1;
}

.campus-card:hover::after {
    transform: rotate(15deg) translateX(10%);
}

/* Action card icon bounce on hover */
.action-card:hover .action-icon i {
    animation: iconBounce 0.5s ease;
}

@keyframes iconBounce {
    0% { transform: scale(1); }
    30% { transform: scale(1.3); }
    50% { transform: scale(0.9); }
    70% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* ===========================================
   SECTION TITLE SHIMMER ANIMATION
   =========================================== */

.section-title::after {
    background: var(--gold-shimmer);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

/* ===========================================
   PARALLAX HERO (controlled via JS)
   =========================================== */

.hero {
    background-attachment: fixed;
    will-change: background-position;
}

/* Disable parallax on mobile (performance) */
@media (max-width: 768px) {
    .hero {
        background-attachment: scroll;
    }
    
    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
        /* Simpler animations on mobile */
        transition-duration: 0.5s;
    }
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
        transition: none;
        opacity: 1;
        transform: none;
    }
    
    .hero .btn-primary {
        animation: none;
    }
    
    .hero-particle {
        display: none;
    }
    
    .section-title::after,
    .hero::after,
    .campus-card::before {
        animation: none;
    }
}
