:root {
    --color-navy: #0B1220;
    --color-blue: #2563EB;
    --color-blue-hover: #1D4ED8;
    --color-teal: #14B8A6;
    --color-amber: #F59E0B;
    --color-bg: #F8FAFC;
    --color-border: rgba(226, 232, 240, 0.8);
    --color-text-slate: #475569;
    --color-text-dark: #0F172A;
    --color-white: #FFFFFF;
    
    /* Richer, softer shadows for premium feel */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --shadow-lg: 0 10px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.04);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.05);
    
    --radius-md: 0.75rem;
    --radius-lg: 1.5rem;
    --radius-full: 9999px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Brand Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-blue) 0%, #3B82F6 100%);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text-slate);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--color-text-dark);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

h1 { font-size: 3.5rem; letter-spacing: -0.04em; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.5rem; letter-spacing: -0.02em; }

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.875rem; }
}

a {
    color: var(--color-blue);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-blue-hover);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (max-width: 640px) {
    .container {
        padding: 0 1.25rem;
    }
}

/* Typography utilities */
.text-center { text-align: center; }
.text-slate { color: var(--color-text-slate); }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-16 { margin-top: 4rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    line-height: 1.5;
    letter-spacing: -0.01em;
    gap: 0.5rem; /* Gap for icons */
}

.btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.3);
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-white);
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.39);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
    transform: translateY(-2px);
    color: var(--color-white);
}

.btn-secondary {
    background-color: var(--color-white);
    color: var(--color-text-dark);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background-color: var(--color-bg);
    border-color: #CBD5E1;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Header & Glassmorphism */
.site-header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5rem;
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--color-navy);
    letter-spacing: -0.04em;
}

.logo-white {
    color: var(--color-white);
}

.main-nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--color-text-slate);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--color-text-dark);
}

.header-ctas {
    display: flex;
    gap: 1rem;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 100;
    position: relative;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--color-navy) !important;
    border-radius: 4px;
    transition: var(--transition);
    transform-origin: center;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Hero Section */
.hero {
    padding: 8rem 0 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle background glowing orb */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37,99,235,0.08) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: -1;
    pointer-events: none;
}

.hero h1 {
    margin-bottom: 1.5rem;
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 1.25rem;
    color: var(--color-text-slate);
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
}

.hero-ctas {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    padding: 3rem 2.5rem;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px) scale(1.01);
    border-color: var(--color-blue);
}

.card-icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 2rem;
    transition: var(--transition);
}

.card:hover .card-icon-wrapper {
    transform: scale(1.05);
}

.bg-blue { background: var(--color-blue); color: white; box-shadow: 0 4px 14px rgba(37, 99, 235, 0.2); }
.bg-teal { background: var(--color-teal); color: white; box-shadow: 0 4px 14px rgba(20, 184, 166, 0.2); }
.bg-amber { background: var(--color-amber); color: white; box-shadow: 0 4px 14px rgba(245, 158, 11, 0.2); }

/* Testimonials / Mentors Section */
.mentors-section {
    padding: 6rem 0;
    background-color: var(--color-white);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.mentor-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.mentor-img-wrapper {
    width: 120px;
    height: 120px;
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-lg);
    border: 4px solid var(--color-white);
}

.mentor-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.mentor-card:hover .mentor-img {
    transform: scale(1.05);
}

.mentor-quote {
    font-style: italic;
    color: var(--color-text-slate);
    margin-bottom: 1.5rem;
}

.mentor-name {
    font-weight: 700;
    color: var(--color-text-dark);
}

.mentor-role {
    font-size: 0.875rem;
    color: var(--color-blue);
    font-weight: 500;
}

/* Forms */
.form-container {
    max-width: 600px;
    margin: 4rem auto;
    background: var(--color-white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--color-text-dark);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 1px solid #CBD5E1;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    background-color: #F8FAFC;
    color: var(--color-text-dark);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-blue);
    background-color: var(--color-white);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 1rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 3rem;
}

/* Footer */
.site-footer {
    background-color: var(--color-navy);
    color: rgba(255,255,255,0.7);
    padding: 4rem 0 3rem;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    margin-top: 1.5rem;
    max-width: 300px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.footer-links h4 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    letter-spacing: 0;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 1rem; }

.footer-links a {
    color: rgba(255,255,255,0.7);
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--color-white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
}

/* Admin Dashboard Specific */
.site-main {
    display: block;
    width: 100%;
    overflow: auto; /* Prevent margin collapse */
}

.site-main:not(.admin-main) {
    padding-bottom: 4rem !important;
}

.admin-main { padding: 0 !important; }
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.table-wrapper {
    background: var(--color-white);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    overflow-x: auto;
    box-shadow: var(--shadow-sm);
    -webkit-overflow-scrolling: touch;
}

.table-wrapper table {
    min-width: 600px; /* Ensure table doesn't get too cramped on tiny screens */
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 1.25rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

th {
    background-color: #F8FAFC;
    font-weight: 600;
    color: var(--color-text-dark);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

tr:last-child td { border-bottom: none; }

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-blue { background-color: #DBEAFE; color: #1E40AF; }
.badge-green { background-color: #D1FAE5; color: #065F46; }
.badge-yellow { background-color: #FEF3C7; color: #92400E; }
.badge-gray { background-color: #F1F5F9; color: #475569; }

/* Animations */
.animate-fade-up {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }

/* Responsive */
@media (max-width: 1024px) {
    .admin-layout {
        flex-direction: column;
    }
    .admin-sidebar {
        width: 100% !important;
        padding: 1.5rem !important;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    .admin-sidebar nav ul {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .admin-sidebar nav ul li a {
        padding: 0.5rem 1rem !important;
        border-left: none !important;
        border-bottom: 3px solid transparent;
        border-radius: 4px;
        font-size: 0.875rem;
    }
    .admin-sidebar nav ul li a[style*="border-left"] {
        border-bottom-color: var(--color-teal) !important;
        background-color: rgba(255,255,255,0.05) !important;
    }
}

@media (max-width: 768px) {
    .header-ctas { display: none; }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--color-white);
        padding: 2rem 1.5rem;
        gap: 1.5rem;
        box-shadow: var(--shadow-lg);
        border-bottom: 1px solid var(--color-border);
        z-index: 40;
    }
    
    .nav-links.active {
        display: flex;
        animation: fadeDown 0.3s ease-out;
    }

    .hero {
        padding: 5rem 0 3rem;
    }
    
    .hero h1 { 
        font-size: 2.25rem; 
    }
    
    .hero-ctas { 
        flex-direction: column; 
    }
    
    .hero-ctas .btn {
        width: 100%;
    }

    .footer-container { 
        grid-template-columns: 1fr; 
        gap: 3rem; 
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .form-container { 
        padding: 2rem 1.25rem; 
        margin: 2rem 1rem; 
    }
    
    .grid-2, .grid-3 { 
        grid-template-columns: 1fr !important; /* Force stack */
        gap: 2rem !important;
    }
    
    .card {
        padding: 2rem 1.5rem;
    }
    
    .pricing-card-premium {
        transform: none !important;
        margin: 1rem 0;
    }
}

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Admin Specific Utility Classes */
.admin-layout {
    display: flex;
    min-height: 100vh;
    background-color: var(--color-bg);
}

.admin-sidebar {
    width: 250px;
    background-color: var(--color-navy);
    color: white;
    padding: 2rem 0;
    flex-shrink: 0;
    position: relative;
}

.admin-content {
    flex-grow: 1;
    padding: 2rem;
    overflow-y: auto;
}

@media (max-width: 768px) {
    .admin-content {
        padding: 1.25rem;
    }
}

/* Premium Layout Utilities */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.img-fluid {
    max-width: 100%;
    height: auto;
    display: block;
}

.rounded-xl {
    border-radius: 1.5rem;
    overflow: hidden;
}

.shadow-xl {
    box-shadow: var(--shadow-xl);
}

.shadow-premium {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.feature-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    color: var(--color-text-slate);
    line-height: 1.5;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.25rem;
    width: 1.25rem;
    height: 1.25rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2314B8A6' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'%3E%3C/path%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.pricing-card-premium {
    background: var(--color-navy);
    color: var(--color-white);
    border: none;
    transform: scale(1.05);
    z-index: 10;
}

.pricing-card-premium h3, .pricing-card-premium p, .pricing-card-premium .feature-list li {
    color: var(--color-white);
}

.pricing-card-premium .feature-list li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23FFFFFF' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'%3E%3C/path%3E%3C/svg%3E");
}

.text-navy {
    color: var(--color-navy);
}

/* Role Chips */
.role-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-dark);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.chip:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--color-blue);
    background-color: var(--color-white);
}

/* Sticky Bottom CTA */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--color-border);
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    box-shadow: 0 -4px 6px -1px rgb(0 0 0 / 0.05);
}

@media (min-width: 769px) {
    .sticky-cta {
        display: none; /* Only show on mobile */
    }
}
