/* 
   Nexus University Custom Styles 
   Built on top of Bootstrap 5
*/

:root {
    --primary-color: #4f46e5;
    --primary-color-rgb: 79, 70, 229;
    --primary-dark: #3730a3;
    --secondary-color: #0ea5e9;
    --dark-bg: #0f172a;
    --text-primary: #1e293b;
    --text-muted: #64748b;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    overflow-x: hidden;
    background-color: #f8fafc;
}

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

.text-primary {
    color: var(--primary-color) !important;
}

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

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover, .btn-primary:focus {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.2);
}

/* Utilities */
.transition-all {
    transition: all 0.3s ease-in-out;
}

.transition-transform {
    transition: transform 0.3s ease;
}

.transition-colors {
    transition: color 0.3s ease, background-color 0.3s ease;
}

.py-6 {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bg-gradient-custom {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.max-w-md {
    max-width: 600px;
}

.tracking-wide {
    letter-spacing: 0.1em;
}

.icon-box-sm {
    width: 40px;
    height: 40px;
}

.icon-box {
    width: 80px;
    height: 80px;
}

.hover-scale:hover {
    transform: scale(1.05);
}

.hover-white:hover {
    color: #ffffff !important;
    opacity: 1 !important;
}

.negative-margin-top {
    margin-top: -60px;
}

/* Glassmorphism */
.glass-nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.glass-nav.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.glass-panel {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

/* Navbar */
.navbar-nav .nav-link {
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active {
    color: var(--primary-color);
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background-color: var(--primary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    transform-origin: center;
}

.navbar-nav .nav-link:hover::after, .navbar-nav .nav-link.active::after {
    transform: scaleX(1);
}

/* Hero Section */
.hero-section {
    padding-top: 80px; /* Offset for fixed navbar */
    background-color: #f8fafc;
}

.hero-title {
    line-height: 1.1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
}

.shape-1 {
    top: -100px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: rgba(79, 70, 229, 0.3);
}

.shape-2 {
    bottom: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: rgba(14, 165, 233, 0.2);
}

.btn-glow {
    box-shadow: 0 0 20px rgba(79, 70, 229, 0.4);
}

.main-hero-img {
    height: 500px;
}

/* Animations */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes float-slow {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.animation-float {
    animation: float 4s ease-in-out infinite;
}

.animation-float-slow {
    animation: float-slow 6s ease-in-out infinite;
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    visibility: hidden;
}

.reveal.active {
    opacity: 1;
    visibility: visible;
}

.fade-up {
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out, visibility 0.8s;
}

.fade-up.active {
    transform: translateY(0);
}

.fade-left {
    transform: translateX(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out, visibility 0.8s;
}

.fade-left.active {
    transform: translateX(0);
}

.fade-right {
    transform: translateX(-40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out, visibility 0.8s;
}

.fade-right.active {
    transform: translateX(0);
}

/* About Section */
.transform-rotate {
    transform: rotate(-3deg);
    transition: transform 0.5s ease;
}

.about-image:hover .transform-rotate {
    transform: rotate(0deg);
}

.hover-btn-primary:hover {
    background-color: var(--primary-color);
    color: white !important;
    border-color: var(--primary-color);
}

/* Programs Cards */
.program-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
}

.program-card img {
    transition: transform 0.6s ease;
}

.program-card:hover img {
    transform: scale(1.1);
}

.program-card .learn-more-link i {
    transform: translateX(0);
}

.program-card:hover .learn-more-link i {
    transform: translateX(5px);
}

/* Gallery / Campus Life */
.gallery-item {
    cursor: pointer;
}

.gallery-item img {
    filter: brightness(0.9);
}

.gallery-item:hover img {
    transform: scale(1.05);
    filter: brightness(0.7);
}

.gallery-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    opacity: 0;
    transform: translateY(20px);
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

/* Footer Focus state */
.newsletter-input:focus-within {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

/* Responsive Overrides */
@media (max-width: 991.98px) {
    .glass-nav {
        background: rgba(255, 255, 255, 0.98);
    }
    .navbar-collapse {
        padding: 1rem 0;
        background: white;
        border-radius: 1rem;
        margin-top: 1rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        padding: 1.5rem;
    }
    .hero-title {
        font-size: 3rem;
    }
}
