/* 
    Academic Luminary Design System
    Senior Software Engineer Implementation
    Framework: Bootstrap 5 + Custom Modern Aesthetics
*/

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700;800&family=Public+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

:root {
    /* Design Tokens */
    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    --primary: #4f46e5;
    --primary-container: #6366f1;
    --on-primary: #ffffff;
    
    --secondary: #006a6a;
    --secondary-container: #90efef;
    --on-secondary-container: #006e6e;
    
    --tertiary: #F27121;
    --tertiary-fixed: #ffdbcb;
    --on-tertiary-fixed: #341100;

    --surface: #faf9fe;
    --surface-container-low: #f4f3f8;
    --surface-container-high: #e8e7ed;
    --surface-container-highest: #e2e2e7;
    --surface-container-lowest: #ffffff;
    
    --on-surface: #1a1c1f;
    --on-surface-variant: #43474f;
    
    --outline-variant: rgba(195, 198, 209, 0.2);
    
    --font-headlines: 'Manrope', sans-serif;
    --font-body: 'Public Sans', sans-serif;
    
    --radius-md: 0.375rem;
    --radius-lg: 0.75rem;
    --radius-full: 100rem;
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Styles */
body {
    font-family: var(--font-body);
    background-color: var(--surface);
    color: var(--on-surface);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headlines);
    font-weight: 700;
    color: var(--primary);
}

/* Typography Scale */
.display-lg {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.text-label-md {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--on-surface-variant);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Glassmorphism */
.glass-nav {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--outline-variant);
    transition: var(--transition-smooth);
}

.glass-nav-active {
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Components Customization */
.btn-primary-gradient {
    background: var(--primary-gradient);
    color: var(--on-primary);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
    font-weight: 600;
}

.btn-primary-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 43, 89, 0.2);
    color: var(--on-primary);
}

.btn-secondary-custom {
    background-color: var(--secondary-container);
    color: var(--on-secondary-container);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
    font-weight: 600;
}

.btn-secondary-custom:hover {
    background-color: #76d6d5;
    color: var(--on-secondary-container);
}

.btn-light-custom {
    background: #ffffff;
    color: var(--primary);
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition-smooth);
}

.btn-light-custom:hover {
    background: var(--surface-container-high);
}

/* Card Styling - The Tonal Architecture */
.premium-card {
    background-color: var(--surface-container-lowest);
    border: none;
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: var(--primary-gradient);
    transition: var(--transition-smooth);
}

.premium-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(26, 28, 31, 0.06);
}

.premium-card:hover::before {
    height: 100%;
}

/* Academic Chips */
.academic-chip {
    background-color: var(--tertiary-fixed);
    color: var(--on-tertiary-fixed);
    padding: 0.25rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-block;
}

/* Hero Section / Banner Slider */
.hero-slider {
    position: relative;
    padding: 100px 0;
    background-color: var(--surface-container-low);
}

.hero-content {
    z-index: 2;
}

.parallax-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 0 0 0 100px;
    opacity: 0.05;
}

/* Slider Section */
.banner-slider-container {
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin: 0 5px;
}

.carousel-item-custom {
    height: 450px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.carousel-caption-custom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    width: 100%;
    text-align: left;
}

/* Blog Section Specifics */
.blog-card-large {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    height: 100%;
}

.blog-card-small {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
}

.btn-ment-teal {
    background-color: #90efef !important;
    color: #006e6e !important;
    border: none;
    font-weight: 700;
}

/* Micro-animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    animation: fadeInUp 0.8s ease forwards;
}

/* Footer Section */
.footer {
    background-color: var(--primary);
    color: rgba(255, 255, 255, 0.8);
    padding: 80px 0 40px;
}

.footer h5 {
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-smooth);
    display: block;
    margin-bottom: 0.5rem;
}

.footer-link:hover {
    color: var(--secondary-container);
    padding-left: 8px;
}

.fw-black {
    font-weight: 900;
}

.scale-75 {
    transform: scale(0.75);
}

/* New Clean Code Classes */
.navbar-brand-text {
    font-family: var(--font-headlines);
    font-weight: 800;
    color: var(--primary);
    font-size: 1.4rem;
}

.btn-login-small {
    font-size: 0.8rem;
}

.nav-profile-card {
    border-radius: 10px;
}

.nav-profile-img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
}

.nav-profile-name {
    line-height: 1;
}

.nav-profile-role {
    font-size: 0.6rem;
}

.footer-brand-icon {
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.newsletter-input {
    background: rgba(255, 255, 255, 0.1) !important;
    border: none !important;
    color: white !important;
}

.footer-hr {
    border-color: rgba(255, 255, 255, 0.1);
}

/* Hero & Section Specifics */
.hero-badge {
    background: #ffdbcb;
    color: #341100;
    font-size: 0.7rem;
    padding: 0.1rem 0.6rem;
}

.hero-title-large {
    font-size: 4rem;
}

.hero-desc-lead {
    font-size: 1.1rem;
    opacity: 0.7;
}

.btn-hero-explore {
    background: var(--primary) !important;
}

.btn-hero-faculty {
    background: #90efef !important;
    color: #006e6e !important;
}

.hero-img-bg-shape {
    background: #f4f3f8;
    width: 80%;
    height: 90%;
    top: 10%;
    left: 10%;
    border-radius: 20px;
    z-index: -1;
}

.hero-img-premium {
    border-radius: 20px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.1);
    width: 85%;
}

.slider-desc-limited {
    max-width: 600px;
}

.py-100 {
    padding: 100px 0;
}

.blog-img-fixed {
    object-fit: cover;
    min-height: 350px;
}

.blog-title-line-height {
    line-height: 1.3;
}

.author-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    margin-right: 12px;
}

.contact-section-wrapper {
    background: var(--surface-container-low);
    border-radius: 32px;
    padding: 100px 60px;
}

.contact-desc-limited {
    max-width: 700px;
}

.contact-form-card {
    padding: 3rem;
    background: white;
    border-radius: 20px;
}

.form-input-clean {
    border-bottom: 2px solid #eee !important;
    border-top: none !important;
    border-left: none !important;
    border-right: none !important;
    padding: 12px 0 !important;
    border-radius: 0 !important;
}

.form-textarea-clean {
    border: 2px solid #eee !important;
    padding: 12px !important;
    border-radius: 12px !important;
}

.blog-img-small {
    height: 180px;
    object-fit: cover;
}

.blog-chip-ethics {
    background: #d1f2f2 !important;
    color: #006e6e !important;
    font-size: 0.6rem;
}

.blog-chip-cognition {
    background: #e0e0ff !important;
    color: #000080 !important;
    font-size: 0.6rem;
}

.text-blog-title {
    font-weight: 700;
}

/* Blog Show Page Specifics */
.blog-show-column {
    max-width: 720px;
    margin: 0 auto;
}

.blog-show-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--primary);
}

.blog-content-body {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--on-surface-variant);
    font-family: var(--font-body);
}

.blog-hero-image {
    width: 100%;
    height: 60vh;
    object-fit: cover;
    border-radius: 40px;
    margin-bottom: 3rem;
    box-shadow: 0 40px 100px rgba(0,0,0,0.08);
}

.blog-meta-avatar {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: 50%;
}

.drop-cap::first-letter {
    float: left;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    margin-right: 0.5rem;
    color: var(--primary);
    font-family: var(--font-headlines);
}

.blockquote-custom {
    font-size: 1.8rem;
    font-weight: 300;
    font-style: italic;
    border-left: 5px solid var(--secondary);
    padding-left: 2rem;
    margin: 4rem 0;
    color: var(--primary);
}

/* Super Minimal Listing Specifics */
.blog-card-minimal {
    border: none;
    background: transparent;
    transition: transform 0.3s ease;
}

.blog-card-minimal:hover {
    transform: translateY(-8px);
}

.blog-card-minimal .card-img-top {
    border-radius: 20px;
    height: 240px;
    object-fit: cover;
    margin-bottom: 1.5rem;
}

.blog-card-minimal .card-title {
    font-family: var(--font-headlines);
    font-weight: 800;
    line-height: 1.25;
    font-size: 1.4rem;
    color: var(--primary);
}

.blog-card-minimal .card-meta {
    font-size: 0.75rem;
    color: var(--on-surface-variant);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    display: block;
}

/* Auth Premium Layouts */
.auth-split-container {
    min-height: 100vh;
    display: flex;
}

.auth-library-side {
    flex: 1;
    background: linear-gradient(rgba(79, 70, 229, 0.85), rgba(79, 70, 229, 0.85)), url('https://images.unsplash.com/photo-1507842217343-583bb7270b66?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    padding: 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
}

.auth-form-side {
    width: 600px;
    background: white;
    padding: 80px 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-input-group {
    background: #f1f0f5;
    border-radius: 12px;
    padding: 16px 24px;
    margin-bottom: 0px; /* Control via layout */
    border: 2px solid transparent;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    height: auto;
}

.auth-input-group:focus-within {
    background: white;
    border-color: var(--primary);
    box-shadow: 0 12px 24px rgba(0,43,89,0.06);
    transform: translateY(-2px);
}

.auth-input-group label {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--on-surface-variant);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
    opacity: 0.6;
}

.auth-input-group input {
    background: transparent;
    border: none;
    width: 100%;
    font-weight: 600;
    color: var(--primary);
    outline: none;
    font-size: 1rem;
    padding: 0;
}

/* Specific fix for inputs and spacing in register */
.group-spacing {
    margin-bottom: 24px;
}

.auth-btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 18px;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: 100%;
}

.auth-btn-outline {
    border: 1px solid #e2e2e7;
    background: white;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

@media (max-width: 1200px) {
    .auth-library-side { display: none; }
    .auth-form-side { width: 100%; padding: 40px; }
}
