/* Core Variables - Premium Aesthetic */
:root {
    --primary: #0f172a; /* Slate 900 */
    --primary-light: #3b82f6; /* Blue 500 */
    --primary-dark: #020617; /* Slate 950 */
    --accent: #f59e0b; /* Amber/Gold */
    --accent-dark: #b45309; /* High-contrast Amber for text */
    --accent-glow: rgba(245, 158, 11, 0.4);
    --secondary: #8b5cf6; /* Violet */
    --cyan: #06b6d4;
    --bg-light: #f8fafc;
    --text-main: #1e293b; /* Slightly darker slate for primary text */
    --text-muted: #475569; /* Darker slate for better visibility */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* Global Aesthetics */
body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-light);
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
    position: relative;
    overflow-x: hidden;
}

/* Base glowing background orbs */
body::before, body::after {
    content: '';
    position: fixed;
    width: 60vw;
    height: 60vw;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
    opacity: 0.15;
    animation: floatOrb 20s infinite alternate;
}
body::before {
    top: -10vw;
    left: -20vw;
    background: radial-gradient(circle, var(--primary-light), var(--secondary));
}
body::after {
    bottom: -15vw;
    right: -15vw;
    background: radial-gradient(circle, var(--cyan), var(--primary-light));
    animation-direction: alternate-reverse;
    animation-duration: 25s;
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(50px, 100px) scale(1.1); }
    100% { transform: translate(-50px, -50px) scale(0.9); }
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: var(--font-heading);
}

/* Gradient Text Utilities */
.text-gradient {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.text-gradient-accent {
    background: linear-gradient(135deg, var(--accent), #fcd34d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.text-gradient-blue {
    background: linear-gradient(135deg, var(--cyan), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-bg {
    background-color: transparent;
}

.text-primary { color: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }
.text-accent-dark { color: var(--accent-dark) !important; }
.bg-primary { background-color: var(--primary) !important; }
.bg-accent { background-color: var(--accent) !important; }

/* Buttons Premium */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.5);
    color: white;
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent), #fbbf24);
    border: none;
    color: var(--primary-dark);
    box-shadow: 0 4px 15px var(--accent-glow);
}
.btn-accent:hover {
    background: linear-gradient(135deg, #d97706, var(--accent));
    box-shadow: 0 8px 25px var(--accent-glow);
    color: white;
}

.btn-outline-primary {
    color: var(--primary);
    border: 2px solid var(--primary-light);
    background: transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.btn-outline-primary::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}
.btn-outline-primary:hover::before { opacity: 1; }
.btn-outline-primary:hover { color: white !important; border-color: transparent; }

.btn-outline-light {
    color: white;
    border: 2px solid rgba(255,255,255,0.8);
    background: transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
    backdrop-filter: blur(5px);
}
.btn-outline-light::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: white;
    z-index: -1;
    transition: opacity 0.3s ease;
    opacity: 0;
}
.btn-outline-light:hover::before { opacity: 1; }
.btn-outline-light:hover { color: var(--primary) !important; }

/* Glassmorphism Classes */
.glass-navbar {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.4s ease;
}

.glass-navbar .navbar-toggler {
    border: none;
    padding: 0;
}

.glass-navbar .navbar-toggler i,
.navbar-toggler i {
    color: #ffffff !important;
}

.navbar.shadow-sm .navbar-toggler i {
    color: #0f172a !important;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 8px 32px rgba(0,0,0,0.05);
}

.glass-btn {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
}
.glass-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    border-color: rgba(255, 255, 255, 0.6);
}

/* Utility Animations & States */
.transition { transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); }

.hover-scale { transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s cubic-bezier(0.165, 0.84, 0.44, 1); }
.hover-scale:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(0,0,0,0.15) !important; }

/* Navbar Specifics */
.navbar-nav .nav-link {
    color: var(--text-main);
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
    transition: color 0.3s;
}
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
    color: var(--primary-light);
}
.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--cyan), var(--primary-light));
    border-radius: 3px;
    transition: width 0.3s ease;
}
.navbar-nav .nav-link:hover::after, .navbar-nav .nav-link.active::after {
    width: 80%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background-image: url('images/hero_bg_1774541030054.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    padding-top: 80px;
    position: relative;
}
.hero-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(59, 130, 246, 0.5) 100%);
}
.text-shadow { text-shadow: 0 4px 15px rgba(0,0,0,0.4); }

/* Icons & Badges */
.icon-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
}

.icon-circle.bg-accent {
    background: var(--accent) !important;
}
.icon-circle.bg-accent i {
    color: #ffffff !important;
}
.experience-badge {
    bottom: -20px;
    right: -20px;
    animation: floating-slight 4s ease-in-out infinite;
    background: rgba(255,255,255,0.85);
    border: 1px solid rgba(255,255,255,0.9);
}
@keyframes floating-slight {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
.transform-rotate {
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.transform-rotate:hover { transform: perspective(1000px) rotateY(0) rotateX(0); }

/* Program Cards (Academics) */
.program-card {
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.7);
}
.program-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0,0,0,0.12) !important;
}
.card-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 250px;
}
.card-img-top {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.program-card:hover .card-img-top {
    transform: scale(1.15);
}
.card-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.8), rgba(59, 130, 246, 0.4));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.program-card:hover .card-overlay {
    opacity: 1;
}
.program-icon-wrapper {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, white, #f8fafc);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -32px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.program-card:hover .program-icon-wrapper {
    transform: translateX(-50%) translateY(-5px) scale(1.15);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.3);
}

/* Gallery Grid (Campus Life) */
.campus-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 220px 220px;
    gap: 1.5rem;
}
.item-main { grid-row: 1 / 3; }
.gallery-item { cursor: pointer; border-radius: 1rem; overflow: hidden; }
.gallery-item img {
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.gallery-item:hover img {
    transform: scale(1.08);
}
.gallery-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0; top: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 60%);
    transition: background 0.4s ease;
}
.gallery-item:hover .gallery-overlay {
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(59, 130, 246, 0.2) 80%);
}

@media (max-width: 768px) {
    .campus-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    .item-main { height: 350px; grid-row: auto; }
    .gallery-item { height: 280px; }
}

/* Modal Enhancements */
.modal-content {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
}
.form-control, .form-select, .input-group-text {
    background: rgba(248, 250, 252, 0.8) !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    transition: all 0.3s ease;
}
.form-control:focus, .form-select:focus {
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15) !important;
    border-color: var(--primary-light) !important;
    background: white !important;
}

/* Animations */
.animate-fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

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

.fade-in-section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.165, 0.84, 0.44, 1), transform 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Footer Premium */
footer {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    position: relative;
    overflow: hidden;
}
footer::before {
    content: '';
    position: absolute;
    top: -50%; left: -10%;
    width: 60%; height: 200%;
    background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, transparent 60%);
    pointer-events: none;
}

/* New Utility Classes for Multi-Page */
.max-w-700 { max-width: 700px; margin-left: auto; margin-right: auto; }
.max-w-800 { max-width: 800px; margin-left: auto; margin-right: auto; }

.page-header {
    background-size: cover !important;
    background-position: center !important;
}

.stat-item {
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}
.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
}

.process-steps .badge {
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.deadline-item {
    transition: all 0.2s ease;
}
.deadline-item:hover {
    padding-left: 5px;
    color: var(--primary-light);
}
