:root {
    --bg-primary: #f8fafc;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.05);
    --glass-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
}

* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, sans-serif;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
}

.glass-card {
    background: var(--white);
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    padding: 2rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

h1,
h2,
h3 {
    margin-bottom: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.3);
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 0.75rem;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.input-group select option {
    background: white;
    color: var(--text-primary);
}

/* Navbar & Header - Premium Redesign */
.main-header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.main-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
    padding: 2px 0;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Design */
.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.site-logo:hover {
    transform: scale(1.02);
}

.logo-icon {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -0.03em;
}

.logo-text span {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Nav Link Refinements */
.nav-links {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-left: auto;
}

.nav-links>a,
.dropdown-trigger {
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.25s ease;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    background: transparent;
    cursor: pointer;
    white-space: nowrap;
}

.nav-links>a:hover,
.dropdown-trigger:hover {
    color: var(--accent);
    background: #f1f5f9;
}

.nav-links a.active-link,
.dropdown-trigger.active-link {
    color: var(--accent);
    background: rgba(37, 99, 235, 0.08);
}

.nav-links>a svg,
.dropdown-trigger svg:not(.chevron) {
    opacity: 0.7;
    transition: opacity 0.2s;
}

.nav-links>a:hover svg,
.dropdown-trigger:hover svg:not(.chevron) {
    opacity: 1;
}

/* Mega Dropdown Design */
.nav-dropdown {
    position: relative;
}

.dropdown-trigger .chevron {
    transition: transform 0.3s ease;
    opacity: 0.5;
}

.nav-dropdown.active .dropdown-trigger .chevron {
    transform: rotate(180deg);
}

.dropdown-content {
    position: absolute;
    top: 120%;
    left: 50%;
    transform: translateX(-50%) translateY(15px);
    background: white;
    min-width: 480px;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-dropdown.active .dropdown-content {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    justify-items: center;
}

.dropdown-grid a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    padding: 1.25rem 1rem;
    text-decoration: none;
    border-radius: 16px;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}


.drop-icon {
    width: 38px;
    height: 38px;
    background: #f1f5f9;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.2s ease;
}


.drop-text {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.drop-title {
    font-weight: 700;
    color: #1e293b;
    font-size: 0.9rem;
}

.drop-desc {
    font-size: 0.75rem;
    color: #94a3b8;
}

.dropdown-grid a.active-link {
    background: rgba(37, 99, 235, 0.05);
    border-color: rgba(37, 99, 235, 0.1);
}

.dropdown-grid a.active-link .drop-title {
    color: var(--accent);
}

.mobile-only-link {
    display: none;
}

/* Action Buttons */
.nav-actions {
    margin-left: 1rem;
    padding-left: 1.5rem;
    border-left: 1px solid #e2e8f0;
}

.shadow-btn {
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
}

.shadow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.35);
}

.mobile-header-btn {
    display: none;
}

.mobile-header-actions {
    display: none;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

/* Hamburger bars */
.menu-toggle .bar {
    display: block;
    width: 100%;
    height: 2px;
    background: #1e293b;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.menu-toggle .bar+.bar {
    margin-top: 4px;
}

.menu-toggle.active .bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Responsiveness - Redefined */
@media (max-width: 1150px) {
    .dropdown-content {
        min-width: 380px;
    }
}

@media (max-width: 1024px) {
    .menu-toggle {
        display: flex;
        z-index: 1205;
    }

    .nav-actions {
        display: none;
    }

    .header-container {
        padding: 0.75rem 1rem;
    }

    .nav-links {
        position: fixed;
        right: -100%;
        top: 0;
        flex-direction: column;
        background: white;
        width: 100%;
        max-width: 300px;
        height: 100dvh;
        padding: 5rem 1rem 2rem;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        align-items: stretch;
        overflow-y: auto;
        gap: 0.5rem;
        z-index: 1200;
        display: flex !important;
        /* Ensure it stays flex */
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-header-actions {
        display: flex;
        align-items: center;
        margin-left: auto;
        z-index: 1210;
        gap: 0.5rem;
    }

    .mobile-header-btn {
        display: flex !important;
        z-index: 1210;
        padding: 0.5rem 0.85rem !important;
    }

    .mobile-only-link {
        display: flex !important;
        width: 100%;
        padding: 1rem;
        background: rgba(37, 99, 235, 0.05) !important;
        border: 1px solid rgba(37, 99, 235, 0.1) !important;
        border-radius: 12px;
        margin-top: 1rem;
        text-decoration: none;
        align-items: center;
        gap: 0.5rem;
        color: var(--accent);
        font-weight: 600;
    }

    .nav-dropdown {
        width: 100%;
        display: block;
        margin-bottom: 0.25rem;
    }

    .nav-links>a,
    .dropdown-trigger {
        width: 100%;
        font-size: 0.95rem;
        padding: 1rem;
        justify-content: center;
        background: #f8fafc;
        border: 1px solid #f1f5f9;
        border-radius: 12px;
        display: flex;
        align-items: center;
        color: #1e293b;
        text-align: center;
    }

    .dropdown-trigger .chevron {
        margin-left: 0.5rem;
    }

    .dropdown-content {
        position: static;
        width: 100%;
        min-width: 100%;
        transform: none;
        box-shadow: none;
        border: none;
        opacity: 1;
        visibility: visible;
        padding: 0;
        display: none;
        background: transparent;
        border-radius: 0;
        margin-top: 0;
        overflow: visible;
        max-height: none;
    }

    .nav-dropdown.mobile-active .dropdown-content {
        display: block;
    }

    .nav-dropdown.mobile-active {
        background: #f1f5f9;
        border-radius: 12px;
        padding-bottom: 0.5rem;
    }

    .nav-dropdown.mobile-active .dropdown-trigger {
        background: transparent;
        border-color: transparent;
        border-bottom: 1px solid #e2e8f0;
        border-radius: 12px 12px 0 0;
    }

    .dropdown-grid {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0.5rem 0;
    }

    .dropdown-grid a {
        padding: 0.75rem 1rem;
        gap: 0.75rem;
        background: transparent !important;
        border: none !important;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .drop-icon {
        width: 32px;
        height: 32px;
        background: white;
    }

    .drop-title {
        font-size: 0.9rem;
    }

    .drop-desc {
        display: none;
    }

    .nav-dropdown.mobile-active .chevron {
        transform: rotate(180deg);
    }
}

/* Profile Images - Circular with Full Face Visibility */
.profile-image,
.aspirant-card img,
.photo-wrapper img,
.profile-photo img {
    object-fit: cover;
    object-position: center;
    border-radius: 50%;
    width: 100%;
    height: 100%;
}

/* Ensure containers support circular images */
.photo-wrapper,
.profile-photo,
.aspirant-card .photo {
    border-radius: 50%;
    overflow: hidden;
    position: relative;
}

/* Alternative: Keep rectangular containers but make images circular */
.aspirant-card .photo img,
.photo-wrapper img {
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    /* Slightly favor top positioning for headshots */
}

/* For profile pages - larger circular images */
.profile-photo {
    border-radius: 50%;
    aspect-ratio: 1 / 1;
    /* Ensures perfect circle */
}

.profile-photo img {
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
}

/* Card photos - smaller circular thumbnails */
.aspirant-card .photo {
    aspect-ratio: 1 / 1;
    border-radius: 50%;
}

/* Ensure badges don't get clipped by circular borders */
.photo-wrapper .badge,
.aspirant-card .photo .badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 2;
}

@media (max-width: 768px) {
    .nav-links a {
        font-size: 1rem;
        width: 100%;
        padding: 0.5rem 0;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.4rem;
    }

    .stat-grid {
        grid-template-columns: 1fr;
    }

    .aspirant-grid {
        grid-template-columns: 1fr;
    }

    .glass-card {
        padding: 1.25rem;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

/* Hide scrollbars but keep functionality */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Showcase Slider */
.showcase-slider {
    width: 100%;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    height: 220px;
}

.slider-track {
    display: flex;
    width: 400%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-slide {
    width: 25%;
    height: 100%;
    flex-shrink: 0;
}

/* AI Premium Background */
.showcase-section.bg-ai-premium {
    background: linear-gradient(135deg, #4f46e5 0%, #1e1b4b 100%);
}

.showcase-section.bg-ai-premium::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(168, 85, 247, 0.15) 0%, transparent 50%);
}

/* AI Orb Animation */
.ai-orb {
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 15%;
    transform: translate(-50%, -50%);
    filter: blur(20px);
    animation: orbPulse 4s infinite ease-in-out;
}

@keyframes orbPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 0.8; }
}

/* AI Scan Line */
.ai-scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(99, 102, 241, 0.5), transparent);
    z-index: 2;
    animation: scanMove 3s infinite linear;
}

@keyframes scanMove {
    0% { top: 0; }
    100% { top: 100%; }
}

/* Multimedia Background */
.showcase-section.bg-multimedia {
    background: linear-gradient(135deg, #db2777 0%, #4c0519 100%);
}

/* Audio Waves Animation */
.wave-bar {
    position: absolute;
    bottom: 20%;
    width: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    animation: waveHeight 1.5s infinite ease-in-out;
}

.wave-bar:nth-child(1) { left: 10%; height: 30px; animation-delay: 0.1s; }
.wave-bar:nth-child(2) { left: 12%; height: 50px; animation-delay: 0.3s; }
.wave-bar:nth-child(3) { left: 14%; height: 40px; animation-delay: 0.2s; }
.wave-bar:nth-child(4) { left: 16%; height: 60px; animation-delay: 0.4s; }

@keyframes waveHeight {
    0%, 100% { height: 20px; }
    50% { height: 60px; }
}

/* Showcase Section */
.showcase-section {
    height: 100%;
    overflow: hidden;
    position: relative;
    background: #0f172a;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Background Graphic 1: Geometric Mesh */
.showcase-section.bg-mesh {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.showcase-section.bg-mesh::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.25;
    background-image: radial-gradient(#2563eb 0.5px, transparent 0.5px);
    background-size: 24px 24px;
    mask-image: linear-gradient(to bottom, black, transparent);
    -webkit-mask-image: linear-gradient(to bottom, black, transparent);
}

/* Background Graphic 2: Waves */
.showcase-section.bg-waves {
    background: linear-gradient(135deg, #064e3b 0%, #022c22 100%);
}

.showcase-section.bg-waves::after {
    content: '';
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 60%;
    height: 120%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.3) 0%, transparent 70%);
    filter: blur(40px);
    border-radius: 50%;
}

.showcase-graphic {
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.graphic-circle {
    position: absolute;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    top: -100px;
    left: -50px;
}

.graphic-circle.alt {
    top: auto;
    bottom: -150px;
    right: -100px;
    left: auto;
    width: 400px;
    height: 400px;
}

.showcase-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.showcase-section.alt-bg::before {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
}

.showcase-section:hover {
    transform: translateY(-8px);
    box-shadow: 0 40px 60px -15px rgba(0, 0, 0, 0.3);
    border-color: rgba(37, 99, 235, 0.4);
}

.showcase-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    color: white;
}

.showcase-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    font-size: 0.7rem;
    padding: 0.4rem 1rem;
    border-radius: 40px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 800;
}

.showcase-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
    color: white;
    text-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.showcase-subtitle {
    font-size: 1.1rem;
    color: #94a3b8;
    margin-bottom: 1.5rem;
    max-width: 600px;
    line-height: 1.4;
}

.showcase-btn {
    display: inline-block;
    background: white;
    color: #0f172a;
    padding: 0.7rem 1.8rem;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

.showcase-section:hover .showcase-btn {
    background: var(--accent);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4);
}

.slider-dots {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 15;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: white;
    width: 24px;
    border-radius: 4px;
}

@media (max-width: 768px) {
    .showcase-slider {
        height: 250px;
    }

    .showcase-section {
        margin-bottom: 2rem;
        border-radius: 20px;
    }

    .showcase-title {
        font-size: 1.5rem;
    }

    .showcase-subtitle {
        font-size: 0.9rem;
    }
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    background: white;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--accent);
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 2000;
    animation: slideIn 0.3s ease-out;
}

.notification.error {
    border-left-color: #ef4444;
}

.notification.success {
    border-left-color: #22c55e;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}