/* =========================================
   1. CORE VARIABLES & THEME
   ========================================= */
:root {
    /* Brand Identity */
     color-scheme: light;
    --primary: #6F2DBD;
    --primary-dark: #4a1d80;
    --secondary: #A663CC;
    --accent: #d8b4fe;

    --gradient-main: linear-gradient(135deg, #6F2DBD 0%, #A663CC 100%);

    /* Light Theme Colors */
    --bg-body: #F8F9FD;
    --bg-glass: rgba(255, 255, 255, 0.7);
    --bg-card: #FFFFFF;
    --text-main: #171123;
    --text-muted: #64748b;
    --border: rgba(111, 45, 189, 0.15);
    --shadow: 0 10px 40px rgba(111, 45, 189, 0.08);
    --nav-bg: rgba(255, 255, 255, 0.95);
    --hover-bg: rgba(111, 45, 189, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    overflow-x: hidden;
    position: relative;
}

html {
    scroll-behavior: smooth;
}

/* Touch targets enhancement for mobile */
a,
button {
    touch-action: manipulation;
}

/* =========================================
   2. BACKGROUND ANIMATION
   ========================================= */
.ambient-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.3;
    animation: floatOrb 20s infinite alternate;
}

/*
.orb-1 { top: -10%; left: -10%; width: 50vw; height: 50vw; background: var(--primary); }
.orb-2 { bottom: -10%; right: -10%; width: 40vw; height: 40vw; background: var(--secondary); animation-delay: -5s; }
*/
.orb-1 {
    top: 0%;
    left: 5%;
    width: 45vw;
    height: 45vw;
    background: var(--primary);
}

.orb-2 {
    /* Changed from 'bottom' to 'top' to pull it up behind the image */
    top: 15%;
    right: 5%;
    width: 40vw;
    height: 40vw;
    background: var(--secondary);
    animation-delay: -5s;
}

@keyframes floatOrb {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(40px, 60px);
    }
}

/* =========================================
   3. NAVBAR
   ========================================= */
.navbar {
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.4rem;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}

.nav-link {
    font-weight: 700;
    color: var(--text-muted) !important;
    margin: 0 12px;
    font-size: 0.95rem;
    padding: 10px 0;
}

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

.btn-primary-custom {
    background: var(--gradient-main);
    color: white;
    border: none;
    padding: 11px 28px;
    border-radius: 20px;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(111, 45, 189, 0.3);
    text-decoration: none;
    white-space: nowrap;
    display: inline-block;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(111, 45, 189, 0.4);
    color: white;
}

.btn-outline-custom {
    border: 2px solid var(--primary);
    background: transparent;
    color: var(--text-main);
    padding: 11px 28px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.btn-outline-custom:hover {
    background: var(--primary);
    color: white;
}

/* =========================================
   4. LAYOUT & TYPOGRAPHY SCALING
   ========================================= */
.section-padding {
    padding: 80px 0;
}

.section-title {
    font-weight: 800;
    font-size: 2.4rem;
    letter-spacing: -1px;
}

#academic-hub,
#programs {
    scroll-margin-top: 65px;
}

/* =========================================
   5. HERO SECTION
   ========================================= */
.hero h1 {
    font-size: 3.0rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--text-main) 30%, var(--primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.6;
    max-width: 550px;
}

.hero-img-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-img {
    width: 100%;
    max-width: 350px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(111, 45, 189, 0.3));
    animation: floatImage 6s ease-in-out infinite;
}

@keyframes floatImage {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0);
    }
}

.badge-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    background: rgba(111, 45, 189, 0.1);
    color: var(--primary);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 20px;
    border: 1px solid rgba(111, 45, 189, 0.2);
}

/* =========================================
   6. CARDS & UTILITIES
   ========================================= */
.glass-card {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 32px;
    padding: 40px 32px;
    height: 100%;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.glass-card:hover {
    transform: translateY(-12px) scale(1.02);
    background: rgba(255, 255, 255, 0.85);
    border-color: rgba(111, 45, 189, 0.3);
    box-shadow: 0 30px 60px -12px rgba(111, 45, 189, 0.15);
}

.card-icon {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: white;
    margin: 0 auto 24px auto;
    box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s ease;
}

.glass-card:hover .card-icon {
    transform: scale(1.1) rotate(-5deg);
}

.glass-card h4 {
    font-weight: 800;
    font-size: 1.35rem;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    text-align: center;
}

.glass-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 30px;
    flex-grow: 1;
    text-align: center;
}

.card-action {
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    width: 100%;
}

.card-action i {
    transition: transform 0.3s ease;
}

.glass-card:hover .card-action i {
    transform: translateX(6px);
}

/* Colors */
.text-bba {
    color: #EC4899;
}

.bg-bba {
    background: linear-gradient(135deg, #EC4899, #DB2777);
    color: white;
}

.text-mit {
    color: #8B5CF6;
}

.bg-mit {
    background: linear-gradient(135deg, #8B5CF6, #6D28D9);
    color: white;
}

.text-bcom {
    color: #F59E0B;
}

.bg-bcom {
    background: linear-gradient(135deg, #F59E0B, #D97706);
}

/* =========================================
   7. FOOTER
   ========================================= */
footer {
    margin-top: auto;
    padding: 20px 0;
    /* Reduced from 40px */
    border-top: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.footer-link {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.94rem;
}

.developer-name {
    color: #a133e1;
    font-weight: 700;
}


/* =========================================
   8. MOBILE RESPONSIVENESS
   ========================================= */

/* Tablets & Small Laptops (Max 991px) */
@media (max-width: 991px) {
    .section-padding {
        padding: 60px 0;
    }

    .hero h1 {
        font-size: 2.4rem;
    }

    .hero p {
        font-size: 1rem;
        margin: 0 auto 25px auto;
    }

    .navbar-collapse {
        background: var(--bg-card);
        padding: 20px;
        border-radius: 16px;
        margin-top: 10px;
        box-shadow: var(--shadow);
        border: 1px solid var(--border);
    }
}

/* Mobile Phones (Max 768px) */
@media (max-width: 768px) {
    .section-padding {
        padding: 45px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-img {
        max-width: 260px;
        margin-top: 20px;
    }

    /* Buttons full width on small screens */
    .btn-primary-custom,
    .btn-outline-custom {
        width: 100%;
        padding: 12px 20px;
    }

    .glass-card {
        padding: 24px 20px;
        border-radius: 24px;
    }

    .card-icon {
        width: 55px;
        height: 55px;
        font-size: 1.4rem;
    }

    .mobile-roadmap-card .card-body {
        padding: 1.25rem !important;
    }

    .mobile-roadmap-card h4 {
        font-size: 1.2rem !important;
    }

    .mobile-roadmap-card h5 {
        font-size: 1.1rem !important;
    }

    /* Responsive Table Fixes */
    .table-wrapper {
        border-radius: 12px;
        overflow: hidden;
        border: 1px solid var(--border);
    }

    .table th,
    .table td {
        font-size: 0.9rem;
        padding: 12px 10px !important;
        white-space: nowrap;
    }

    .table th:first-child,
    .table td:first-child {
        padding-left: 15px !important;
    }
}

/* Extra Small Phones (Max 400px) */
@media (max-width: 400px) {
    .section-title {
        font-size: 1.75rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    /* Stack the roadmap status metrics perfectly */
    .mobile-roadmap-card .row.g-2>div {
        margin-bottom: 8px;
    }

    .table th,
    .table td {
        font-size: 0.85rem;
        padding: 10px 8px !important;
    }
}

/* =========================================
   MODERN DISCLAIMER CARD STYLES
   ========================================= */
.disclaimer-card {
    padding: 20px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    /* Removes the hover animation from this specific card so it stays static */
    transform: none !important;
    cursor: default !important;
}

.disclaimer-card:hover {
    transform: none !important;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05) !important;
}

/* Orange Warning Top Line */
.disclaimer-accent {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

/* Icon Container */
.disclaimer-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background-color: rgba(245, 158, 11, 0.15);
    color: #d97706;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

/* List Styling */
.disclaimer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.disclaimer-list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.disclaimer-list p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    text-align: justify;
    /* Overrides the center alignment from earlier cards */
}

/* Number Badges */
.list-badge {
    min-width: 32px;
    height: 32px;
    border-radius: 8px;
    background-color: rgba(111, 45, 189, 0.08);
    color: var(--primary);
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(111, 45, 189, 0.1);
}

/* Official Resource Box */
.official-resource-box {
    background-color: rgba(255, 255, 255, 0.5);
    border: 1px dashed rgba(111, 45, 189, 0.3);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.official-resource-box:hover {
    background-color: rgba(255, 255, 255, 0.8);
    border-color: var(--primary);
}

.resource-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--gradient-main);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.resource-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.resource-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Mobile Adjustments for Disclaimer */
@media (max-width: 768px) {
    .official-resource-box {
        padding: 16px;
    }

    .disclaimer-list p {
        font-size: 0.9rem;
    }

    .disclaimer-card {
        padding: 10px;
    }
}

/* =========================================
   9. ACADEMIC STANDARDS SPECIFIC STYLES
   ========================================= */

/* Adjusting the glass-card flex properties to support left-aligned text */
.glass-card h4.text-start {
    text-align: left !important;
}

.glass-card p.text-start {
    text-align: left !important;
}

/* Custom Table Adjustments for the Grading Card */
.custom-grading-table th {
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    font-weight: 600;
}

.custom-grading-table td {
    padding: 8px 10px;
    font-size: 0.98rem;
    font-weight: bold;
}

/* Style the badges to look slightly more rectangular like the image */
.grade-badge {
    min-width: 45px;
    padding: 6px 10px !important;
    border-radius: 6px !important;
}

/* Formula Box */
.formula-box {
    background-color: #f0f7ff;
    /* Light blue background */
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.formula-box .border-primary {
    border-color: #3b82f6 !important;
}

.formula-box .text-primary {
    color: #3b82f6 !important;
}

/* Note on Auxiliary Courses */
.gpa-info-note {
    background-color: #f8fafc;
    /* Very light gray */
    border-left: 4px solid #3b82f6;
    /* Blue left border */
}

/* =========================================
   MOBILE ADJUSTMENTS FOR ACADEMIC STANDARDS
   ========================================= */
@media (max-width: 768px) {

    /* 1. Scale down the table text so it fits perfectly without scrolling */
    .custom-grading-table td {
        font-size: 0.85rem;
        padding: 8px 5px;
    }

    .custom-grading-table th {
        font-size: 0.8rem;
        padding: 8px 5px;
    }

    .grade-badge {
        min-width: 38px;
        padding: 4px 8px !important;
        font-size: 0.75rem;
    }

    /* 2. Make the formula box and text smaller so the math equation doesn't break */
    .formula-box {
        padding: 15px 10px !important;
    }

    .formula-box .d-inline-flex {
        font-size: 0.9rem;
    }

    .formula-box .text-primary {
        font-size: 1rem !important;
        /* Shrink the overall formula size */
    }

    /* 3. Adjust the note box padding for narrow screens */
    .gpa-info-note {
        padding: 15px !important;
    }

    .gpa-info-note .text-muted {
        font-size: 0.8rem !important;
        /* Slightly smaller text */
    }
}

/* Extra small phones specifically */
@media (max-width: 400px) {
    .formula-box .d-inline-flex span:first-child {
        font-size: 0.75rem;
        /* Prevents "Credit x Grade Point" from wrapping */
    }
}

/* Add hover popup animation to the Degree Completion Roadmap cards */
.mobile-roadmap-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    cursor: pointer;
}

.mobile-roadmap-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 30px 60px -12px rgba(111, 45, 189, 0.15) !important;
}