@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;500;600;700;800&display=swap');

:root {
    /* Color Palette - Updated based on Style Guide */
    --primary: #2E5A97;
    /* Blue */
    --secondary: #283963;
    /* Dark Blue */
    --accent: #FFD300;
    /* Yellow */
    --pink: #E070E0;
    /* Pink */
    --bg-light: #F3F4F6;
    --bg-white: #FFFFFF;
    --text-main: #1F2937;
    --text-muted: #6B7280;
    --border: #E5E7EB;
    --success: #10B981;
    --warning: #F59E0B;
    --danger: #EF4444;

    /* Sidebar Specific */
    --sidebar-bg: #283963;
    --sidebar-text: #FFFFFF;
    --sidebar-hover: rgba(255, 255, 255, 0.1);
    --sidebar-active: rgba(255, 255, 255, 0.2);

    /* Typography */
    --font-main: 'Barlow', sans-serif;

    /* Landing nav height (hero extends behind it when transparent) */
    --landing-nav-height: 72px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-main);
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.layout {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Sidebar */
/* Sidebar */
/* Sidebar */
.sidebar {
    width: 260px;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--border);
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    /* Ensure positioning context */
    color: var(--sidebar-text);
}

.brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--sidebar-text);
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    /* Prevent brand from shrinking */
}

.brand span {
    color: var(--accent);
}

.brand .brand-logo {
    height: 32px;
    width: auto;
    display: block;
}

.brand .brand-logo.brand-logo-lg {
    height: 40px;
}
/* Logo footer più grande per leggibilità (specificità maggiore di .brand-logo-lg) */
footer .brand .brand-logo.brand-logo-lg,
footer .brand .brand-logo {
    height: 56px !important;
    width: auto;
}

.nav-menu {
    list-style: none;
    flex: 1;
    overflow-y: auto;
    /* Allow menu to scroll if too long */
    min-height: 0;
    /* Fix for flex item overflow */
    margin-bottom: 20px;
    /* Add space before logout */
}

.nav-item {
    margin-bottom: 8px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    border-radius: 8px;
    transition: all 0.2s;
    font-weight: 500;
}

.nav-link:hover {
    background: var(--sidebar-hover);
    color: var(--sidebar-text);
}

.nav-link.active {
    background: var(--sidebar-active);
    color: var(--sidebar-text);
    font-weight: 600;
}

.nav-link i {
    width: 24px;
    margin-right: 12px;
    text-align: center;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 30px;
    height: 100%;
    overflow-y: auto;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.page-title {
    font-size: 1.8rem;
    font-weight: 700;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 40px;
    height: 40px;
    background-color: var(--secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

/* Cards */
.card {
    background: var(--bg-white);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--pink), var(--accent), var(--pink));
    background-size: 200% auto;
    color: #1a1a1a;
    transition: 0.5s;
    border: none;
    box-shadow: 0 4px 15px rgba(224, 112, 224, 0.2);
}

.btn-primary:hover {
    background-position: right center;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(224, 112, 224, 0.4);
    color: #000;
}

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

.btn-outline:hover {
    background-color: var(--bg-light);
    border-color: var(--text-muted);
}

/* Landing nav: hover trasparente, bordo sotto solo per Home e Program */
.landing-nav .nav-links a.btn-outline:hover,
.landing-nav .nav-links .landing-nav-login-btn:hover {
    background-color: transparent;
}
.landing-nav .nav-links .landing-nav-login-btn::after {
    display: none;
}
.landing-nav .container > .btn-primary:hover {
    border-bottom: none;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
}

/* Status Badges */
.badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-success {
    background: #D1FAE5;
    color: #065F46;
}

.badge-warning {
    background: #FEF3C7;
    color: #92400E;
}

.badge-info {
    background: #DBEAFE;
    color: #1E40AF;
}

.badge-secondary {
    background: #E5E7EB;
    color: #4B5563;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-main);
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 75, 43, 0.1);
}

/* Landing Page Specifics: navbar in flow (relative), then fixed on scroll */
.landing-nav {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    background: transparent !important; /* always transparent when not .scrolled */
    border-bottom: none;
    padding: calc(16px + env(safe-area-inset-top, 0px)) 0 20px 0;
    z-index: 1000;
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.landing-nav.scrolled {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: white !important;
    padding: calc(12px + env(safe-area-inset-top, 0px)) 0 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Placeholder when nav is fixed so layout doesn't jump */
.landing-nav-placeholder {
    height: var(--landing-nav-height, 72px);
    display: none;
}

#landing-nav-root:has(.landing-nav.scrolled) .landing-nav-placeholder {
    display: block;
}

.landing-nav .brand {
    color: white;
    margin-bottom: 0;
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.landing-nav .brand i {
    font-size: 1.2em;
    opacity: 0.95;
}

/* Logo visible when nav has light/transparent over light page (apply, legal, etc.) or when scrolled */
.landing-nav.scrolled .brand,
.landing-nav.nav-light .brand {
    color: var(--text-main, #1a1a1a);
}

.landing-nav.scrolled .brand span,
.landing-nav.nav-light .brand span {
    color: var(--primary);
}

.landing-nav.scrolled .brand i,
.landing-nav.nav-light .brand i {
    color: var(--primary);
}

/* Logo in landing nav: 52px per leggibilità */
.landing-nav .brand .brand-logo {
    height: 52px;
    width: auto;
}
.landing-nav .brand-logo-white { display: block; }
.landing-nav .brand-logo-blue { display: none !important; }
.landing-nav.scrolled .brand-logo-white,
.landing-nav.nav-light .brand-logo-white { display: none !important; }
.landing-nav.scrolled .brand-logo-blue,
.landing-nav.nav-light .brand-logo-blue { display: block !important; }

/* All pages: nav transparent when integrated (no bar). nav-light = dark logo on light page. */
.landing-nav.nav-light {
    background: transparent;
    padding-top: calc(16px + env(safe-area-inset-top, 0px));
}

/* When scrolled: distinct bar (background + shadow) on all pages - see .landing-nav.scrolled above */

/* Content below nav (nav is in flow, so normal spacing) */
.landing-page.legal-page main {
    padding-top: 40px;
}

.landing-nav.nav-light .mobile-menu-btn {
    color: var(--secondary);
}

.landing-nav.nav-light .nav-links a.btn-outline {
    color: var(--text-main);
    border-color: var(--border);
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.landing-nav.scrolled .mobile-menu-btn {
    color: var(--secondary);
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: white;
    padding: 80px 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

.nav-links.active {
    right: 0;
}

@media (min-width: 768px) {
    .nav-links {
        position: static;
        width: auto;
        height: auto;
        background: transparent;
        padding: 0;
        flex-direction: row;
        box-shadow: none;
    }
}

.nav-links a.btn-outline {
    color: var(--text-main);
    border-color: var(--border);
    justify-content: flex-start;
}

@media (min-width: 768px) {
    .nav-links a.btn-outline {
        color: white;
        border-color: rgba(255, 255, 255, 0.3);
        justify-content: center;
    }

    .landing-nav.scrolled .nav-links a.btn-outline {
        color: var(--text-main);
        border-color: var(--border);
    }
}

/* Login dropdown (tendina) in landing nav */
.landing-nav-login-wrap {
    position: relative;
}

.landing-nav-login-btn {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-family: inherit;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    background: transparent;
}

.landing-nav.scrolled .landing-nav-login-btn,
.landing-nav.nav-light .landing-nav-login-btn {
    color: var(--text-main);
    border-color: var(--border);
}

.landing-nav-login-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    min-width: 180px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--border, #e5e7eb);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 1100;
}

.landing-nav-login-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.landing-nav-login-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    color: var(--text-main, #1a1a1a);
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.15s, color 0.15s;
}

.landing-nav-login-dropdown a:hover {
    background: var(--bg-light, #f8fafc);
    color: var(--primary);
}

.landing-nav-login-dropdown a i {
    width: 18px;
    text-align: center;
    color: var(--text-muted);
}

.landing-nav-login-dropdown a:hover i {
    color: var(--primary);
}

/* Mobile: dropdown below button in column layout */
@media (max-width: 767px) {
    .landing-nav-login-wrap {
        width: 100%;
    }
    .landing-nav-login-btn {
        width: 100%;
        justify-content: flex-start;
    }
    .landing-nav-login-dropdown {
        position: static;
        margin-top: 8px;
        margin-left: 0;
        min-width: 100%;
        transform: none;
        max-height: 0;
        overflow: hidden;
        padding: 0;
        box-shadow: none;
        border: none;
    }
    .landing-nav-login-dropdown.open {
        max-height: 220px;
        padding: 8px 0;
        border: 1px solid var(--border);
        border-radius: 8px;
    }
}

.landing-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Allineamento testo e altezza uniforme per Login e Apply Now */
.landing-nav .container .btn,
.landing-nav .container .landing-nav-login-btn {
    min-height: 44px;
    line-height: 1.2;
    padding: 10px 20px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hero {
    padding: 80px 0;
    text-align: center;
    background: linear-gradient(180deg, #FFF5F5 0%, #FFFFFF 100%);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: var(--text-main);
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.table th {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

/* Utilities */
.text-right {
    text-align: right;
}

.mt-4 {
    margin-top: 1rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gap-2 {
    gap: 0.5rem;
}

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

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: flex-start;
    justify-content: flex-end;
    z-index: 1000;
    backdrop-filter: blur(2px);
}

.modal-overlay.active {
    display: flex;
}

.modal {
    background: white;
    padding: 30px;
    width: 100%;
    max-width: 500px;
    height: 100vh;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    overflow-y: auto;
    animation: slideInRight 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

/* Floating Chat Button */
.floating-chat-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    color: white;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    z-index: 1000;
}

.floating-chat-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(99, 102, 241, 0.5);
}

.floating-chat-btn .badge-dot {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 12px;
    height: 12px;
    background: #EF4444;
    border-radius: 50%;
    border: 2px solid white;
}

/* Chat Panel */
.chat-panel {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    max-height: 500px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    z-index: 999;
    overflow: hidden;
}

.chat-panel.open {
    display: flex;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-header {
    background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h4 {
    margin: 0;
    font-weight: 600;
}

.chat-header .close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0.8;
}

.chat-header .close-chat:hover {
    opacity: 1;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: var(--bg-light);
    max-height: 300px;
}

.chat-message {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
}

.chat-message.incoming {
    flex-direction: row;
}

.chat-message.outgoing {
    flex-direction: row-reverse;
}

.chat-message .avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.chat-message .bubble {
    padding: 10px 15px;
    border-radius: 12px;
    max-width: 70%;
    font-size: 0.9rem;
}

.chat-message.incoming .bubble {
    background: white;
    color: var(--text-main);
}

.chat-message.outgoing .bubble {
    background: var(--primary);
    color: white;
}

.chat-input {
    padding: 15px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.9rem;
}

.chat-input input:focus {
    outline: none;
    border-color: var(--primary);
}

.chat-input button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
}

/* Landing Page High-Fidelity Styles: sfondo trasparente in alto così si vede l'hero sotto la navbar */
.landing-page {
    background: transparent;
}
/* Sezioni sotto l'hero hanno sfondo proprio */
.landing-page .section-padding {
    background: #fbfbfb;
}

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

/* Hero si estende dietro la navbar (incluso padding-top nav) così lo sfondo è visibile e niente striscia grigia */
.landing-page .hero-v2 {
    margin-top: calc(-1 * (var(--landing-nav-height, 72px) + 16px + env(safe-area-inset-top, 0px)));
    padding-top: calc(var(--landing-nav-height, 72px) + 16px + env(safe-area-inset-top, 0px));
}
#landing-nav-root {
    background: transparent;
}

.hero-v2 {
    height: 100vh;
    min-height: 700px;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: white;
}

.hero-v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.6));
}

.hero-v2 .container {
    position: relative;
    z-index: 10;
}

.hero-v2 h1 {
    font-size: 2.25rem;
    max-width: 800px;
    line-height: 1.2;
    margin-bottom: 20px;
}

@media (min-width: 768px) {
    .hero-v2 h1 {
        font-size: 4rem;
        line-height: 1.1;
    }
}

.hero-v2 p {
    font-size: 1.1rem;
    max-width: 600px;
    margin-bottom: 30px;
    opacity: 0.9;
}

@media (min-width: 768px) {
    .hero-v2 p {
        font-size: 1.25rem;
    }
}

.row-alt {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

@media (min-width: 768px) {
    .row-alt {
        flex-direction: row;
        align-items: center;
        gap: 80px;
    }
}

.row-alt.reverse {
    flex-direction: column;
}

@media (min-width: 768px) {
    .row-alt.reverse {
        flex-direction: row-reverse;
    }
}

.row-alt>div {
    flex: 1;
}

.placeholder-img {
    background: #e5e7eb;
    border-radius: 12px;
    aspect-ratio: 16/10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af;
    position: relative;
    overflow: hidden;
}

.placeholder-img i {
    font-size: 4rem;
}

.highlight-section {
    background: #3b5998;
    /* Deeper blue from image */
    color: white;
    text-align: center;
    padding: 120px 20px;
}

.highlight-section h2 {
    font-size: 1.75rem;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.4;
}

@media (min-width: 768px) {
    .highlight-section h2 {
        font-size: 2.5rem;
        line-height: 1.3;
    }
}

.highlight-section h2 span {
    color: #ff9d00;
    /* Vibrant orange highlight */
}

.program-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 50px;
}

@media (min-width: 640px) {
    .program-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .program-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

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

.program-card .icon-box {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: #f3f4f6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #4b5563;
}

.who-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 50px;
}

@media (min-width: 768px) {
    .who-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.who-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 480px;
    cursor: pointer;
    transition: transform 0.3s;
}

.who-card:hover {
    transform: translateY(-10px);
}

.who-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.who-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.who-content {
    position: absolute;
    bottom: 30px;
    left: 20px;
    right: 20px;
    z-index: 10;
    color: white;
}

.who-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.faq-accordion {
    max-width: 800px;
    margin: 50px auto 0;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-trigger {
    width: 100%;
    padding: 20px 0;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-align: left;
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    color: var(--text-muted);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.nav-links a {
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--pink);
    transition: width 0.3s;
}

.nav-links a:hover::after {
    width: 100%;
}

.who-card:hover img {
    transform: scale(1.05);
    transition: transform 0.5s;
}