/**
 * Prayashee: The Academic Hub for Student Management
 * Premium Design System & Modern Color Palette
 */

:root {
    /* Brand Palette: Academic Prestige + Modern High-Tech SaaS */
    --prayashee-navy: #090e17;
    --prayashee-navy-card: #0f172a;
    --prayashee-navy-light: #1e293b;
    --prayashee-primary: #1d4ed8;       /* Sovereign Royal Blue */
    --prayashee-primary-hover: #1e40af;
    --prayashee-primary-light: #eff6ff;
    --prayashee-cyan: #0284c7;          /* Tech Cyan Accent */
    --prayashee-cyan-light: #f0f9ff;
    --prayashee-amber: #d97706;         /* Radiant Gold / Amber */
    --prayashee-amber-light: #fffbeb;
    --prayashee-emerald: #059669;       /* Verified / Success Green */
    --prayashee-emerald-light: #ecfdf5;
    --prayashee-rose: #e11d48;
    --prayashee-rose-light: #fff1f2;
    --prayashee-purple: #7c3aed;
    --prayashee-purple-light: #faf5ff;
    
    /* Neutral Surface Tokens */
    --prayashee-body: #334155;
    --prayashee-muted: #64748b;
    --prayashee-border: #e2e8f0;
    --prayashee-border-subtle: #f1f5f9;
    --prayashee-bg-surface: #ffffff;
    --prayashee-bg-alt: #f8fafc;
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--prayashee-body);
    background-color: var(--prayashee-bg-surface);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--prayashee-navy);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.25;
}

/* Headings in Dark, Colored, or Inverted Backgrounds */
.text-white h1, .text-white h2, .text-white h3, .text-white h4, .text-white h5, .text-white h6,
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-dark h5, .bg-dark h6,
.bg-primary h1, .bg-primary h2, .bg-primary h3, .bg-primary h4, .bg-primary h5, .bg-primary h6,
.page-header-banner h1, .page-header-banner h2, .page-header-banner h3, .page-header-banner h4, .page-header-banner h5, .page-header-banner h6,
.roi-card-header h1, .roi-card-header h2, .roi-card-header h3, .roi-card-header h4, .roi-card-header h5, .roi-card-header h6,
.modal-header.bg-primary h1, .modal-header.bg-primary h2, .modal-header.bg-primary h3, .modal-header.bg-primary h4, .modal-header.bg-primary h5, .modal-header.bg-primary h6,
.modal-header.bg-slate-900 h1, .modal-header.bg-slate-900 h2, .modal-header.bg-slate-900 h3, .modal-header.bg-slate-900 h4, .modal-header.bg-slate-900 h5, .modal-header.bg-slate-900 h6,
.dark-showcase-section h1, .dark-showcase-section h2, .dark-showcase-section h3, .dark-showcase-section h4, .dark-showcase-section h5, .dark-showcase-section h6,
.dark-glass-card h1, .dark-glass-card h2, .dark-glass-card h3, .dark-glass-card h4, .dark-glass-card h5, .dark-glass-card h6,
.footer-modern h1, .footer-modern h2, .footer-modern h3, .footer-modern h4, .footer-modern h5, .footer-modern h6,
.cta-gradient-section h1, .cta-gradient-section h2, .cta-gradient-section h3, .cta-gradient-section h4, .cta-gradient-section h5, .cta-gradient-section h6 {
    color: #ffffff !important;
}

/* High Contrast Subtitles on Dark / Colored Surfaces */
.text-white-50,
.page-header-banner p,
.cta-gradient-section p,
.roi-card-header p {
    color: #e2e8f0 !important; /* High contrast Slate-200 */
    opacity: 1 !important;
}

.text-white-muted {
    color: #cbd5e1 !important; /* Slate-300 */
}

.fw-extrabold {
    font-weight: 800;
}

.text-gradient {
    background: linear-gradient(135deg, #1d4ed8 0%, #0284c7 50%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-amber {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.max-w-700 {
    max-width: 720px;
}

/* Top Utility Bar */
.top-bar {
    background-color: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.825rem;
}

.top-phone {
    color: var(--prayashee-navy) !important;
    transition: color 0.2s ease;
}

.top-phone:hover {
    color: var(--prayashee-primary) !important;
}

/* Main Navbar with Frosted Glass */
.main-navbar {
    background: rgba(255, 255, 255, 0.94) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.85);
    transition: all 0.3s ease;
}

.brand-logo {
    height: 44px;
    width: auto;
    object-fit: contain;
    border-radius: 10px;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.08));
    transition: transform 0.25s ease;
}

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

.brand-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--prayashee-navy);
    line-height: 1.15;
}

.brand-tagline {
    font-size: 0.72rem;
    color: var(--prayashee-muted);
    letter-spacing: 0.02em;
}

.nav-link {
    font-weight: 600;
    font-size: 0.925rem;
    color: #475569 !important;
    padding: 0.5rem 0.85rem !important;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--prayashee-primary) !important;
    background-color: var(--prayashee-primary-light);
}

.nav-link.active {
    color: var(--prayashee-primary) !important;
    background-color: var(--prayashee-primary-light);
}

.portal-btn {
    background: linear-gradient(135deg, #1d4ed8 0%, #0284c7 100%) !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(29, 78, 216, 0.35);
    transition: all 0.25s ease;
}

.portal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29, 78, 216, 0.45);
}

/* Hero Section with Ambient Glow */
.hero-section {
    position: relative;
    background-color: #ffffff;
    background-image: 
        radial-gradient(at 15% 15%, rgba(29, 78, 216, 0.07) 0px, transparent 55%),
        radial-gradient(at 85% 20%, rgba(2, 132, 199, 0.06) 0px, transparent 50%),
        radial-gradient(at 50% 90%, rgba(245, 158, 11, 0.04) 0px, transparent 40%);
}

.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-size: 32px 32px;
    background-image: radial-gradient(circle, #cbd5e1 0.8px, transparent 0.8px);
    opacity: 0.4;
    pointer-events: none;
}

.badge-glow {
    display: inline-flex;
    align-items: center;
    background: var(--prayashee-primary-light);
    color: var(--prayashee-primary);
    border: 1px solid rgba(29, 78, 216, 0.2);
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(29, 78, 216, 0.08);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse-animation 2s infinite;
}

.pulse-dot-sm {
    width: 6px;
    height: 6px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Background Utility */
.bg-slate-900 {
    background-color: #0f172a !important;
}

/* Browser Window Mockup & Showcase */
.browser-mockup {
    background: #ffffff;
    border: 1px solid rgba(203, 213, 225, 0.85);
    border-radius: 16px;
    box-shadow: 0 20px 45px -12px rgba(15, 23, 42, 0.16), 0 1px 3px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    position: relative;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.browser-mockup:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 65px -15px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(29, 78, 216, 0.2);
}

/* Dark Theme Variant for Showcase Cards */
.browser-mockup.dark-theme {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.browser-mockup.dark-theme .browser-mockup-header {
    background: #1e293b;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.browser-mockup.dark-theme .browser-address-bar {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
}

.browser-mockup-header {
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.browser-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.browser-dot-red { background-color: #ff5f56; }
.browser-dot-yellow { background-color: #ffbd2e; }
.browser-dot-green { background-color: #27c93f; }

.browser-address-bar {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 3px 12px;
    font-size: 0.75rem;
    color: #64748b;
    margin-left: 12px;
    flex-grow: 1;
    max-width: 340px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Screenshot Frame & Interactive Hover Cue */
.screenshot-frame {
    position: relative;
    display: block;
    overflow: hidden;
    cursor: pointer;
    background: #090d16;
}

.screenshot-frame .screenshot-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 0 0 16px 16px;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.screenshot-frame:hover .screenshot-img {
    transform: scale(1.02);
    filter: brightness(0.96);
}

.screenshot-hover-cue {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.85);
    background: rgba(15, 23, 42, 0.88);
    color: #ffffff;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 9px 20px;
    border-radius: 50px;
    font-size: 0.825rem;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
}

.screenshot-frame:hover .screenshot-hover-cue {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Module Cards Preview Box (Uniform Height & Clean Gradient) */
.module-preview-box {
    position: relative;
    height: 175px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #0f172a;
    cursor: pointer;
    margin-top: auto;
}

.module-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.module-preview-box:hover img {
    transform: scale(1.05);
    filter: brightness(0.92);
}

.module-preview-box .module-preview-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 12px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.3) 70%, transparent 100%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
}

.module-preview-box:hover .module-preview-overlay {
    background: linear-gradient(to top, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.5) 100%);
}

/* Hero Preview Wrapper & Ambient Lighting */
.hero-preview-wrapper {
    position: relative;
    z-index: 2;
}

.hero-ambient-glow {
    position: absolute;
    width: 120%;
    height: 120%;
    top: -10%;
    left: -10%;
    background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.22) 0%, rgba(2, 132, 199, 0.12) 45%, transparent 70%);
    filter: blur(45px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.85;
    border-radius: 50%;
}

.screenshot-card-img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    object-position: top;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screenshot-card-img:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.floating-chip {
    position: absolute;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    animation: float 4s ease-in-out infinite;
}

.floating-chip-1 {
    top: -16px;
    right: 20px;
}

.floating-chip-2 {
    bottom: -16px;
    left: 20px;
    animation-delay: 2s;
}

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

/* 5-in-1 Role Switcher */
.role-pills {
    background: #f1f5f9;
    padding: 6px;
    border-radius: 50px;
    border: 1px solid #e2e8f0;
}

.role-pills .nav-link {
    background-color: transparent;
    color: #475569 !important;
    font-weight: 700;
    font-size: 0.875rem;
    padding: 8px 18px !important;
    border-radius: 50px;
    border: none;
    transition: all 0.2s ease;
}

.role-pills .nav-link:hover {
    color: var(--prayashee-primary) !important;
}

.role-pills .nav-link.active {
    background: linear-gradient(135deg, #1d4ed8 0%, #0284c7 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(29, 78, 216, 0.3);
}

.role-card-display {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.05);
}

/* Dark Showcase Section (Deep Midnight Navy) */
.dark-showcase-section {
    background: linear-gradient(180deg, #090e17 0%, #0b1424 100%);
    position: relative;
    overflow: hidden;
}

.dark-showcase-section::before {
    content: "";
    position: absolute;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(29, 78, 216, 0.18) 0%, transparent 70%);
    pointer-events: none;
}

.dark-glass-card {
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.dark-glass-card:hover {
    border-color: rgba(59, 130, 246, 0.35);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.4);
}

/* ROI Calculator Card */
.roi-card {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.roi-card-header {
    background: linear-gradient(135deg, #1d4ed8 0%, #0284c7 100%);
    padding: 32px;
}

.roi-result-box {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1px solid #bbf7d0;
    border-radius: 18px;
    padding: 24px;
}

.roi-amount {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--prayashee-emerald);
    line-height: 1;
}

/* Form Sliders */
.form-range::-webkit-slider-thumb {
    background-color: var(--prayashee-primary);
    box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.2);
}

.form-range::-webkit-slider-thumb:active {
    background-color: var(--prayashee-primary-hover);
    box-shadow: 0 0 0 6px rgba(29, 78, 216, 0.3);
}

/* 12 Core Modules Card */
.module-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    transition: all 0.25s ease;
    height: 100%;
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px -4px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}

.module-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 16px;
}

/* Floating WhatsApp Pill */
.floating-whatsapp {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #ffffff;
    border-radius: 50px;
    padding: 11px 20px;
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 700;
    font-size: 0.925rem;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
    z-index: 1040;
    text-decoration: none;
    transition: all 0.25s ease;
}

.floating-whatsapp:hover {
    color: #ffffff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45);
}

.floating-whatsapp i {
    font-size: 1.4rem;
}

@media (max-width: 576px) {
    .floating-text {
        display: none;
    }
    .floating-whatsapp {
        padding: 13px;
        border-radius: 50%;
    }
}

/* Modern Footer with High Contrast Colors */
.footer-modern {
    background: #090e17;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-modern .text-primary {
    color: #38bdf8 !important; /* Sky Blue 400 for high visibility on dark */
}

.footer-modern h5, .footer-modern h6 {
    color: #ffffff !important;
}

.footer-modern h6.text-primary {
    color: #38bdf8 !important;
}

.footer-modern p,
.footer-modern span,
.footer-modern li {
    color: #cbd5e1 !important; /* Slate 300 */
}

.footer-link {
    color: #94a3b8 !important;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.footer-link:hover {
    color: #38bdf8 !important;
    transform: translateX(3px);
}

/* Premium Page Header Banner across all inner pages */
.page-header-banner {
    background: linear-gradient(135deg, #090e17 0%, #0f172a 60%, #1e293b 100%) !important;
    position: relative;
    overflow: hidden;
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #ffffff !important;
}

.page-header-banner::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 200%;
    background: radial-gradient(circle at 50% 30%, rgba(29, 78, 216, 0.2) 0%, transparent 60%);
    pointer-events: none;
}

.page-header-banner h1 {
    color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-header-banner p {
    color: #e2e8f0 !important;
}

/* CTA Gradient Section */
.cta-gradient-section {
    background: linear-gradient(135deg, #1d4ed8 0%, #0284c7 100%) !important;
    color: #ffffff !important;
}

.cta-gradient-section h2 {
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.cta-gradient-section p {
    color: #f1f5f9 !important;
}

/* Complete Subtle Color Tokens & Contrasting Text */
.bg-primary-subtle { background-color: #eff6ff !important; }
.text-primary { color: #1d4ed8 !important; }

.bg-success-subtle { background-color: #ecfdf5 !important; }
.text-success { color: #059669 !important; }

.bg-warning-subtle { background-color: #fffbeb !important; }
.text-warning { color: #b45309 !important; }

.bg-danger-subtle { background-color: #fff1f2 !important; }
.text-danger { color: #e11d48 !important; }

.bg-info-subtle { background-color: #f0f9ff !important; }
.text-info { color: #0284c7 !important; }

.bg-purple-subtle { background-color: #faf5ff !important; }
.text-purple { color: #7c3aed !important; }

.bg-teal-subtle { background-color: #f0fdfa !important; }
.text-teal { color: #0f766e !important; }

.bg-secondary-subtle { background-color: #f1f5f9 !important; }
.text-secondary { color: #475569 !important; }

/* Accessible Badge Contrast Rules */
.badge.bg-info {
    background-color: #0284c7 !important; /* Deep Cyan Blue */
    color: #ffffff !important;
}

.badge.bg-info.text-dark {
    background-color: #e0f2fe !important;
    color: #0369a1 !important;
    border: 1px solid #bae6fd;
}

.badge.bg-warning {
    background-color: #f59e0b !important;
    color: #451a03 !important; /* High-contrast brown-amber text on yellow */
}

.badge.bg-warning.text-white {
    background-color: #d97706 !important;
    color: #ffffff !important;
}

.badge.bg-light {
    background-color: #f8fafc !important;
    color: #1e293b !important;
    border: 1px solid #e2e8f0;
}
