/* ==========================================================================
   BSM Campus - Site-Wide Modern Shapes, Glassmorphism & Visual Effects
   ========================================================================== */

@keyframes bsmFloatOrb {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(18px, -22px, 0) scale(1.06);
    }
}

@keyframes bsmFloatOrbReverse {
    0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
    }
    50% {
        transform: translate3d(-20px, 18px, 0) scale(0.95);
    }
}

@keyframes bsmBlobMorph {
    0%, 100% {
        border-radius: 38% 62% 55% 45% / 44% 38% 62% 56%;
    }
    50% {
        border-radius: 56% 44% 38% 62% / 55% 60% 40% 45%;
    }
}

@keyframes bsmOrbitSlow {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Smooth modern typography & button micro-shimmer */
.site-header .main-nav {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(11, 28, 44, 0.06);
}

.site-header .main-nav .nav-menu ul li a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.site-header .main-nav .nav-menu ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2.5px;
    border-radius: 999px;
    background: linear-gradient(90deg, #166088, #3b82f6);
    transform: none;
    transition: width 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-header .main-nav .nav-menu ul li a:hover::after,
.site-header .main-nav .nav-menu ul li a.active::after {
    width: 100%;
}

.btn-header-login,
.hero-buttons .btn,
.cta-section .btn,
.btn-verify-action {
    position: relative;
    overflow: hidden;
}

.btn-header-login::before,
.hero-buttons .btn::before,
.cta-section .btn::before,
.btn-verify-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: -120%;
    width: 65%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.32), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
    pointer-events: none;
}

.btn-header-login:hover::before,
.hero-buttons .btn:hover::before,
.cta-section .btn:hover::before,
.btn-verify-action:hover::before {
    left: 140%;
}

/* ==========================================================================
   Hero & Page Headers — Floating Geometric Orbs & Architectural Rings
   ========================================================================== */
.hero-section {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 12% 18%, rgba(59, 130, 246, 0.25) 0%, transparent 45%),
                radial-gradient(circle at 88% 82%, rgba(245, 166, 35, 0.16) 0%, transparent 42%),
                linear-gradient(135deg, #071422 0%, #0b1c2c 48%, #166088 100%) !important;
}

.hero-section::after {
    content: '';
    position: absolute;
    width: 460px;
    height: 460px;
    top: -140px;
    right: -110px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.28) 0%, rgba(22, 96, 136, 0.08) 55%, transparent 72%);
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, 0.14);
    animation: bsmFloatOrb 11s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.hero-section .hero-content {
    position: relative;
    z-index: 2;
}

.hero-section .hero-banner {
    position: relative;
    z-index: 2;
}

.hero-section .hero-banner::before {
    content: '';
    position: absolute;
    inset: -16px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.35), rgba(245, 166, 35, 0.28));
    filter: blur(24px);
    opacity: 0.55;
    z-index: -1;
    pointer-events: none;
}

.hero-section .hero-stats .stat-item {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    padding: 16px 24px;
    min-width: 145px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.hero-section .hero-stats .stat-item:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(245, 166, 35, 0.45);
}

.hero-section .hero-stats .stat-item p {
    margin-bottom: 0;
}

.page-header,
.course-detail-hero,
.verify-hero {
    position: relative;
    overflow: hidden;
}

.page-header::before,
.course-detail-hero::before,
.verify-hero::before {
    content: '';
    position: absolute;
    width: 340px;
    height: 340px;
    top: -120px;
    left: -90px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.22) 0%, transparent 70%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: bsmFloatOrb 13s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.page-header::after,
.course-detail-hero::after,
.verify-hero::after {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    bottom: -95px;
    right: -60px;
    border-radius: 38% 62% 55% 45% / 44% 38% 62% 56%;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.16) 0%, transparent 70%);
    border: 1px dashed rgba(255, 255, 255, 0.14);
    animation: bsmFloatOrbReverse 14s ease-in-out infinite, bsmBlobMorph 10s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.page-header .container,
.verify-hero .container {
    position: relative;
    z-index: 2;
}

/* ==========================================================================
   Section Titles — Modern Accent Pill Underlines
   ========================================================================== */
.section-title h2 {
    letter-spacing: -0.02em;
}

.section-title h2::after {
    width: 84px !important;
    height: 4px !important;
    border-radius: 999px !important;
    background: linear-gradient(90deg, #166088, #3b82f6, #F5A623) !important;
}

/* ==========================================================================
   Faculties Section — Dot Grid Backdrop & Corner Geometric Shapes
   ========================================================================== */
.faculties-section {
    position: relative;
    overflow: hidden;
    background-image: radial-gradient(rgba(22, 96, 136, 0.08) 1.25px, transparent 1.25px);
    background-size: 26px 26px;
}

.faculties-section::before {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    top: -140px;
    right: -120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.09) 0%, transparent 70%);
    pointer-events: none;
}

.faculties-section .container {
    position: relative;
    z-index: 1;
}

.faculties-grid .faculty-card {
    border-radius: 22px !important;
    border: 1px solid rgba(11, 28, 44, 0.06);
    border-top: 4px solid #166088 !important;
    box-shadow: 0 14px 36px -14px rgba(11, 28, 44, 0.14) !important;
    position: relative;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease !important;
}

.faculties-grid .faculty-card::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    bottom: -55px;
    right: -55px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.09) 0%, transparent 70%);
    transition: transform 0.45s ease, opacity 0.45s ease;
    pointer-events: none;
}

.faculties-grid .faculty-card:hover {
    transform: translateY(-10px) !important;
    border-top-color: #F5A623 !important;
    box-shadow: 0 24px 48px -12px rgba(11, 28, 44, 0.22) !important;
}

.faculties-grid .faculty-card:hover::after {
    transform: scale(1.35);
}

.faculties-grid .faculty-card .icon {
    border-radius: 26% 74% 64% 36% / 41% 36% 64% 59% !important;
    box-shadow: 0 12px 24px -6px rgba(22, 96, 136, 0.4);
    transition: transform 0.4s ease, border-radius 0.4s ease;
}

.faculties-grid .faculty-card:hover .icon {
    transform: rotate(-6deg) scale(1.08);
    border-radius: 50% !important;
}

/* ==========================================================================
   Awards Section — Modern Ambient Mesh & Subtle Dot Architecture
   ========================================================================== */
.awards-accreditation-section {
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(135deg, #040915 0%, #00193c 50%, #06112c 100%) !important;
    background-size: 28px 28px, 100% 100%;
}

.awards-accreditation-section::after {
    content: '';
    position: absolute;
    width: 380px;
    height: 380px;
    bottom: -150px;
    left: -100px;
    border-radius: 50%;
    border: 1px dashed rgba(245, 166, 35, 0.18);
    background: radial-gradient(circle, rgba(245, 166, 35, 0.1) 0%, transparent 70%);
    animation: bsmOrbitSlow 48s linear infinite;
    pointer-events: none;
}

/* ==========================================================================
   Why Choose Us Feature Boxes — Floating Organic Blob Icons & Soft Cards
   ========================================================================== */
.feature-box {
    background: #ffffff;
    border-radius: 22px;
    padding: 36px 26px !important;
    border: 1px solid rgba(11, 28, 44, 0.07);
    box-shadow: 0 12px 32px -14px rgba(11, 28, 44, 0.12);
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease !important;
}

.feature-box::after {
    content: '';
    position: absolute;
    width: 110px;
    height: 110px;
    top: -40px;
    right: -40px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(22, 96, 136, 0.08) 0%, transparent 72%);
    transition: transform 0.4s ease;
    pointer-events: none;
}

.feature-box:hover {
    transform: translateY(-8px) !important;
    border-color: rgba(59, 130, 246, 0.25);
    box-shadow: 0 22px 44px -14px rgba(22, 96, 136, 0.22);
}

.feature-box:hover::after {
    transform: scale(1.4);
}

.feature-box .feature-icon {
    border-radius: 34% 66% 62% 38% / 42% 38% 62% 58% !important;
    box-shadow: 0 12px 24px -6px rgba(0, 36, 83, 0.35);
    transition: transform 0.35s ease, border-radius 0.45s ease;
}

.feature-box:hover .feature-icon {
    border-radius: 50% !important;
    transform: scale(1.08) rotate(5deg);
}

/* ==========================================================================
   Courses, Services, About & Details Cards — Modern Radius & Lift Effects
   ========================================================================== */
.courses-section .course-card,
.service-card,
.mission-card,
.vision-card,
.accreditation-card,
.course-info-card,
.contact-form-card {
    border-radius: 22px !important;
    border: 1px solid rgba(11, 28, 44, 0.07);
    box-shadow: 0 14px 36px -14px rgba(11, 28, 44, 0.13) !important;
    position: relative;
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.35s ease !important;
}

.courses-section .course-card:hover,
.service-card:hover,
.mission-card:hover,
.vision-card:hover,
.accreditation-card:hover {
    transform: translateY(-8px) !important;
    border-color: rgba(22, 96, 136, 0.22);
    box-shadow: 0 24px 50px -14px rgba(11, 28, 44, 0.2) !important;
}

.courses-section .course-card .course-image {
    overflow: hidden;
}

.courses-section .course-card .course-image img {
    transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.courses-section .course-card:hover .course-image img {
    transform: scale(1.08);
}

.courses-section .course-card .course-image .course-badge {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.service-card::after,
.accreditation-card::after {
    content: '';
    position: absolute;
    width: 130px;
    height: 130px;
    bottom: -45px;
    right: -45px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.08) 0%, transparent 72%);
    pointer-events: none;
    transition: transform 0.4s ease;
}

.service-card:hover::after,
.accreditation-card:hover::after {
    transform: scale(1.3);
}

.mission-card .icon-circle,
.vision-card .icon-circle,
.service-card .service-icon {
    border-radius: 32% 68% 60% 40% / 44% 38% 62% 56% !important;
    transition: border-radius 0.4s ease, transform 0.35s ease;
}

.mission-card:hover .icon-circle,
.vision-card:hover .icon-circle,
.service-card:hover .service-icon {
    border-radius: 50% !important;
    transform: scale(1.08);
}

/* ==========================================================================
   Contact Info Card & Verification Card — Floating Ambient Shapes
   ========================================================================== */
.contact-info-card {
    border-radius: 22px !important;
    position: relative;
    overflow: hidden;
    box-shadow: 0 18px 42px -12px rgba(11, 28, 44, 0.28) !important;
}

.contact-info-card::after {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    bottom: -70px;
    right: -70px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.22) 0%, transparent 70%);
    pointer-events: none;
}

.home-verify-card {
    border-radius: 24px !important;
}

.home-verify-card::before {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    top: -110px;
    left: -90px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.22) 0%, transparent 72%);
    pointer-events: none;
}

/* ==========================================================================
   Auth Pages (Login / Register / Forgot Password) — Floating Mesh Shapes
   ========================================================================== */
.auth-page {
    position: relative;
    overflow: hidden;
}

.auth-page::before {
    content: '';
    position: absolute;
    width: 440px;
    height: 440px;
    top: -140px;
    left: -120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.28) 0%, transparent 70%);
    animation: bsmFloatOrb 12s ease-in-out infinite;
    pointer-events: none;
}

.auth-page::after {
    content: '';
    position: absolute;
    width: 380px;
    height: 380px;
    bottom: -130px;
    right: -100px;
    border-radius: 38% 62% 55% 45% / 44% 38% 62% 56%;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.2) 0%, transparent 72%);
    animation: bsmFloatOrbReverse 14s ease-in-out infinite, bsmBlobMorph 11s ease-in-out infinite;
    pointer-events: none;
}

.auth-page .auth-card {
    position: relative;
    z-index: 2;
    border-radius: 24px !important;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

/* ==========================================================================
   Bottom CTA & Footer — Modern Depth & Layered Geometry
   ========================================================================== */
.cta-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0b1c2c 0%, #166088 55%, #1d4ed8 100%) !important;
}

.cta-section::before {
    content: '';
    position: absolute;
    width: 340px;
    height: 340px;
    top: -120px;
    left: -80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.14) 0%, transparent 70%);
    border: 1px dashed rgba(255, 255, 255, 0.18);
    animation: bsmFloatOrb 12s ease-in-out infinite;
    pointer-events: none;
}

.cta-section::after {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    bottom: -110px;
    right: -60px;
    border-radius: 38% 62% 55% 45% / 44% 38% 62% 56%;
    background: radial-gradient(circle, rgba(245, 166, 35, 0.22) 0%, transparent 70%);
    animation: bsmFloatOrbReverse 13s ease-in-out infinite;
    pointer-events: none;
}

.cta-section .container {
    position: relative;
    z-index: 2;
}

.site-footer {
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 85% 15%, rgba(59, 130, 246, 0.14) 0%, transparent 45%),
                linear-gradient(180deg, #0b1c2c 0%, #07121e 100%) !important;
    border-top: 3px solid rgba(245, 166, 35, 0.65);
}

.site-footer .footer-section h3 {
    position: relative;
    padding-bottom: 10px;
}

.site-footer .footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 36px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, #F5A623, #3b82f6);
}

/* ==========================================================================
   Accessibility — Respect Reduced Motion Preferences
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .hero-section::after,
    .page-header::before,
    .page-header::after,
    .course-detail-hero::before,
    .course-detail-hero::after,
    .verify-hero::before,
    .verify-hero::after,
    .awards-accreditation-section::after,
    .auth-page::before,
    .auth-page::after,
    .cta-section::before,
    .cta-section::after {
        animation: none !important;
    }
}
