:root {
    --primary-color: #3b1c5a; /* Deep SCU Purple */
    --primary-light: #5a2e88;
    --secondary-color: #f8fafc;
    --accent-color: #f2eefa;
    --bg-color: #ffffff;
    --bg-surface: #f8fafc;
    --text-color: #475569;
    --heading-color: #0f172a;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(59, 28, 90, 0.15);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 30px -10px rgba(59, 28, 90, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-surface);
    /* Subtle dot pattern to remove emptiness */
    background-image: radial-gradient(rgba(59, 28, 90, 0.07) 1px, transparent 1px);
    background-size: 24px 24px;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--heading-color);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 10px;
    border: none;
}

.btn-primary {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 15px rgba(59, 28, 90, 0.2);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    color: #fff;
    box-shadow: 0 8px 20px rgba(59, 28, 90, 0.3);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--primary-color);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: var(--accent-color);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: #fff;
}

/* Premium 3D Cards */
.glass-card {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03), 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px -12px rgba(59, 28, 90, 0.15), 0 0 20px rgba(59, 28, 90, 0.05);
    border-color: rgba(59, 28, 90, 0.2);
    z-index: 2;
}

/* Add a subtle shine effect on hover */
.glass-card::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0) 100%);
    transform: skewX(-20deg);
    transition: all 0.7s ease;
    z-index: 1;
    pointer-events: none;
}
.glass-card:hover::after {
    left: 200%;
}

.premium-card {
    text-align: center;
}

.card-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 0 auto 25px;
    transition: all 0.4s ease;
}

.premium-card:hover .card-icon-wrapper {
    background: var(--primary-color);
    color: #fff;
    transform: rotateY(180deg);
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin-top: 15px;
    transition: gap 0.3s ease;
}
.premium-card:hover .card-link {
    gap: 15px;
}

/* Navigation */

.nav-container {
    width: 100%;
    max-width: 100%;
    padding: 0 15px;
    margin: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    box-sizing: border-box;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 900;
    font-family: 'Outfit', sans-serif;
    color: var(--heading-color);
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

.brand .highlight {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: clamp(8px, 1vw, 15px);
    align-items: center;
    margin: 0;
    padding: 0;
    flex-shrink: 1;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-links a {
    color: var(--text-color);
    font-weight: 600;
    position: relative;
    white-space: nowrap;
    font-size: clamp(0.82rem, 0.88vw, 0.92rem);
    padding: 6px 3px;
    transition: color 0.2s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background: var(--primary-color);
    transition: width 0.3s ease;
}
.nav-links a:hover {
    color: var(--primary-color);
}
.nav-links a:hover::after {
    width: 100%;
}
.nav-links a.nav-cta-btn::after {
    display: none;
}

.nav-cta-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: #fff !important;
    padding: 9px 18px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 0.86rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(90, 46, 136, 0.3);
    transition: all 0.3s ease !important;
    white-space: nowrap;
    flex-shrink: 0;
}
.nav-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(90, 46, 136, 0.4);
    color: #fff !important;
}

/* Dynamic compact mode when space is tight */
.nav-tight .nav-links {
    gap: clamp(4px, 0.8vw, 10px);
}
.nav-tight .nav-links a {
    font-size: 0.8rem;
    padding: 4px 2px;
}
.nav-tight .nav-cta-btn {
    padding: 7px 14px;
    font-size: 0.8rem;
}

.nav-links.nav-force-mobile {
    display: flex !important;
}
.nav-links.nav-force-mobile.show {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    margin-top: 15px;
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

/* Navbar Scrolled State */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: transparent;
    border-bottom: 1px solid transparent;
    box-shadow: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    padding: 15px 0;
}

/* Hero Section */
.hero-section {
    padding: 180px 0 120px;
    background: linear-gradient(135deg, rgba(243, 232, 255, 0.7) 0%, rgba(255, 255, 255, 0) 100%);
    position: relative;
    overflow: hidden;
}

/* Soft ambient organic blobs in background */
.hero-section::before, .hero-section::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    animation: slowFloat 15s ease-in-out infinite alternate;
}
.hero-section::before {
    width: 400px; height: 400px;
    background: rgba(90, 46, 136, 0.15);
    top: -100px; left: -100px;
}
.hero-section::after {
    width: 500px; height: 500px;
    background: rgba(59, 28, 90, 0.1);
    bottom: -150px; right: -100px;
    animation-delay: -5s;
    animation-direction: alternate-reverse;
}

@keyframes slowFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 30px) scale(1.1); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.badge-premium {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: #fff;
    color: var(--primary-color);
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(59, 28, 90, 0.1);
    border: 1px solid var(--accent-color);
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.05;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.7;
    margin-bottom: 40px;
    color: #475569;
}

.hero-stats {
    display: flex;
    gap: 50px;
    margin-top: 50px;
    padding-top: 35px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.hero-visual {
    background: #fff;
    border-radius: 24px;
    padding: 15px;
    box-shadow: 0 20px 40px rgba(59, 28, 90, 0.1);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    z-index: 5;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    border: 1px solid var(--glass-border);
    animation: floatCard 4s ease-in-out infinite alternate;
    z-index: 10;
}

@keyframes floatCard {
    from { transform: translateY(0px); }
    to { transform: translateY(-15px); }
}

/* Grid */
.section-title {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 50px;
    letter-spacing: -1px;
}

.grid {
    display: grid;
    gap: 40px;
}

.features-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Footer */
footer {
    background: #ffffff;
    padding: 80px 0 0px;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-bottom {
    text-align: center;
    padding: 25px 0;
    border-top: 1px solid rgba(0,0,0,0.05);
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Admin Styles */
.admin-wrapper {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 280px;
    background: #ffffff;
    border-right: 1px solid rgba(0,0,0,0.05);
    box-shadow: 4px 0 24px rgba(0,0,0,0.02);
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    z-index: 100;
}

.sidebar-brand {
    padding: 30px 24px;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--heading-color);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-menu {
    list-style: none;
    padding: 24px 16px;
    overflow-y: auto;
}

.sidebar-menu .menu-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #94a3b8;
    font-weight: 800;
    margin: 24px 0 12px 12px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    color: #64748b;
    border-radius: 12px;
    margin-bottom: 4px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-menu a i {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
    color: #cbd5e1;
    transition: all 0.3s ease;
}

.sidebar-menu a:hover {
    background: var(--accent-color);
    color: var(--primary-color);
    transform: translateX(6px);
}

.sidebar-menu a:hover i {
    color: var(--primary-color);
}

.admin-main {
    flex: 1;
    margin-left: 280px;
    background: transparent;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.admin-topbar {
    height: 75px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    position: sticky;
    top: 0;
    z-index: 99;
}

@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.admin-content-inner {
    padding: 40px;
    animation: fadeSlideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Staggered animation for grid items */
.grid > div:nth-child(1) { animation-delay: 0.1s; }
.grid > div:nth-child(2) { animation-delay: 0.2s; }
.grid > div:nth-child(3) { animation-delay: 0.3s; }
.grid > div:nth-child(4) { animation-delay: 0.4s; }

/* Mobile / Tablet Responsiveness */
@media (max-width: 1199px) {
    .nav-container {
        flex-wrap: wrap;
    }
    .mobile-menu-toggle {
        display: block !important;
    }
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        margin-top: 15px;
        gap: 15px;
        padding-top: 15px;
        border-top: 1px solid rgba(0,0,0,0.05);
    }
    .nav-links.show {
        display: flex;
    }
    .nav-links > li {
        width: 100%;
    }
    .nav-item-dropdown .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 5px 0 5px 15px;
        opacity: 1;
        visibility: visible;
        display: none;
    }
    .nav-item-dropdown.active .dropdown-menu {
        display: block;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    .hero-title {
        font-size: 2.8rem;
        letter-spacing: -1px;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
        gap: 30px;
        flex-wrap: wrap;
    }
    .badge-premium {
        margin: 0 auto 25px;
    }
    
    .hero-visual {
        margin-top: 20px;
    }
    .floating-card {
        padding: 10px 15px;
    }
    .floating-card h4 {
        font-size: 0.9rem;
    }
    .floating-card span {
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 130px 0 70px;
    }
    .hero-title {
        font-size: 2.2rem;
        letter-spacing: -0.5px;
    }
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    .stat-item h3 {
        font-size: 2rem;
    }
    
    /* Cap all headings and text in content blocks to prevent overflow */
    .content-col h1, .content-col h1 span { font-size: 2rem !important; line-height: 1.3 !important; }
    .content-col h2, .content-col h2 span { font-size: 1.7rem !important; line-height: 1.3 !important; }
    .content-col h3, .content-col h3 span { font-size: 1.4rem !important; line-height: 1.4 !important; }
    .content-col h4, .content-col h4 span { font-size: 1.2rem !important; line-height: 1.4 !important; }
    .content-col p, .content-col p span { font-size: 1rem !important; line-height: 1.6 !important; }
    .content-col { padding: 40px 20px !important; }
    
    .grid {
        grid-template-columns: 1fr;
    }
    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    .admin-main {
        margin-left: 0;
    }
    .admin-sidebar {
        transform: translateX(-100%);
    }
    .admin-topbar {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    .hero-section {
        padding: 110px 0 50px;
    }
    .content-col h1, .content-col h1 span { font-size: 1.6rem !important; }
    .content-col h2, .content-col h2 span { font-size: 1.4rem !important; }
    .content-col h3, .content-col h3 span { font-size: 1.2rem !important; }
    .content-col { padding: 30px 15px !important; }
}

/* Navbar Home Adjustments */
.navbar-home:not(.scrolled) .nav-links > li > a {
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
}

.navbar-home:not(.scrolled) .nav-links .dropdown-menu a {
    color: var(--text-color) !important;
    text-shadow: none !important;
}
.navbar-home:not(.scrolled) .nav-links a:hover {
    color: #f1f5f9;
}
.navbar-home:not(.scrolled) .nav-links a::after {
    background: #fff;
}
.navbar-home:not(.scrolled) .mobile-menu-toggle {
    color: #fff !important;
}



.navbar-home:not(.scrolled) .nav-links .dropdown-menu a:hover {
    color: var(--primary-color) !important;
}

/* Override text colors when menu is opened in mobile (white background is applied) */
.navbar-home.menu-open .nav-links > li > a {
    color: var(--text-color) !important;
    text-shadow: none !important;
}
.navbar-home.menu-open .nav-links > li > a:hover {
    color: var(--primary-color) !important;
}
.navbar-home.menu-open .mobile-menu-toggle {
    color: var(--heading-color) !important;
}
 . f l o a t - l e f t - i m g   {   f l o a t :   l e f t ;   m a r g i n :   1 0 p x   2 0 p x   1 0 p x   0 ;   m a x - w i d t h :   5 0 % ;   h e i g h t :   a u t o ;   b o r d e r - r a d i u s :   8 p x ;   b o x - s h a d o w :   0   4 p x   6 p x   r g b a ( 0 , 0 , 0 , 0 . 1 ) ;   } 
 . f l o a t - r i g h t - i m g   {   f l o a t :   r i g h t ;   m a r g i n :   1 0 p x   0   1 0 p x   2 0 p x ;   m a x - w i d t h :   5 0 % ;   h e i g h t :   a u t o ;   b o r d e r - r a d i u s :   8 p x ;   b o x - s h a d o w :   0   4 p x   6 p x   r g b a ( 0 , 0 , 0 , 0 . 1 ) ;   } 
 
 
.float-left-img {
    float: left;
    margin: 10px 20px 10px 0;
    max-width: 50%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.float-right-img {
    float: right;
    margin: 10px 0 10px 20px;
    max-width: 50%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
