body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #fff5f5;
    color: #4a4a4a;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header {
    background-color: #ff4b6e;
    color: white;
    width: 100%;
    text-align: center;
    padding: 20px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
}

nav a:hover {
    text-decoration: underline;
}

.container {
    max-width: 900px;
    width: 90%;
    margin: 40px auto;
    text-align: center;
}

.btn {
    display: inline-block;
    background-color: #ff4b6e;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 25px;
    font-weight: bold;
    transition: background 0.3s;
    margin-top: 20px;
}

.btn:hover {
    background-color: #e03e5f;
}

.profile-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin: 20px 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    border: 1px solid #ffe3e3;
    display: flex;
    flex-direction: row;
    gap: 40px;
    text-align: left;
}

.profile-image-container {
    position: relative;
    flex: 0 0 45%; 
    height: 350px;
    border-radius: 15px;
    overflow: hidden;
    border: 3px solid #ff4b6e;
}

.profile-img {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.profile-img.active {
    display: block;
}

.profile-img:hover {
    transform: scale(1.02);
}

.carousel-btn {
    position: absolute;
    top: 0;
    bottom: 0;
    height: 100%;
    width: 15%;
    color: white;
    border: none;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    user-select: none;
    transition: background 0.3s ease;
    z-index: 10; 
    display: flex;
    align-items: center; 
    justify-content: center;
}

.prev-btn { 
    left: 0; 
    background: linear-gradient(to right, rgba(0,0,0,0.4), transparent);
}

.next-btn { 
    right: 0; 
    background: linear-gradient(to left, rgba(0,0,0,0.4), transparent);
}

.profile-info-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.profile-name {
    margin: 0 0 15px 0;
    font-size: 2.2rem;
    color: #1a1a1a;
}

.section-title {
    font-size: 0.85rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 15px 0 8px 0;
    font-weight: 600;
}

.profile-bio {
    font-size: 1rem;
    line-height: 1.6;
    color: #4a4a4a;
    margin: 0 0 20px 0;
}

.divider {
    border: 0;
    border-top: 1px solid #eaeaea;
    margin: 10px 0;
}

.interests-section {
    margin-top: 15px;
}

.interest-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.interest-badge {
    background-color: #ffe3e3;
    color: #ff4b6e;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #ffd1d1;
    transition: background 0.2s, color 0.2s;
}

.interest-badge:hover {
    background-color: #ff4b6e;
    color: white;
}

.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    font-size: 36px;
    padding: 20px 15px;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s, transform 0.2s;
    z-index: 1010;
    border-radius: 5px;
}

.lightbox-arrow:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.05);
}

.lightbox-prev { left: 30px; }
.lightbox-next { right: 30px; }

@media (max-width: 768px) {
    .profile-card {
        flex-direction: column;
        padding: 20px;
        gap: 25px;
        text-align: center;
    }

    .profile-image-container {
        width: 100%;
        height: 350px;
        flex: none;
    }
    
    .interest-container {
        justify-content: center; 
    }
}

@media (max-width: 600px) {
    .lightbox-prev { left: 10px; }
    .lightbox-next { right: 10px; }
    .lightbox-arrow { font-size: 28px; padding: 15px 10px; }
}

.beta-tag {
    display: inline-block;
    background-color: white;
    color: #ff4b6e;
    font-size: 0.9rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
    vertical-align: middle;
    margin-left: 10px;
    margin-bottom: 5px;
    letter-spacing: 1px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.fine-print {
    display: block;
    font-size: 0.75rem;
    color: #a0a0a0;
    font-style: italic;
    margin-top: 10px;
}

.interest-badge {
    position: relative; 
}

.interest-badge.has-tooltip {
    cursor: help;
    border-bottom: 2px dotted #ff4b6e;
}

.interest-badge[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 10px;
    background-color: #2a2a2a;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: bold;
    white-space: nowrap;
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    pointer-events: none;
}

.interest-badge[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 4px;
    border-width: 6px;
    border-style: solid;
    border-color: #2a2a2a transparent transparent transparent;
    z-index: 100;
    pointer-events: none;
}

.interest-badge[data-tooltip]:hover::after,
.interest-badge[data-tooltip]:focus::after {
    content: attr(data-tooltip); 
    position: absolute;
    bottom: 100%; 
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 10px;
    background-color: #2a2a2a;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: bold;
    white-space: nowrap; 
    z-index: 100;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    pointer-events: none; 
}

.interest-badge[data-tooltip]:hover::before,
.interest-badge[data-tooltip]:focus::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 4px;
    border-width: 6px;
    border-style: solid;
    border-color: #2a2a2a transparent transparent transparent;
    z-index: 100;
    pointer-events: none;
}

/* ==========================================
   LANDING PAGE COLLAGE & HERO CARD STYLES
   ========================================== */

.landing-wrapper {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 70px);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Background Container - Full Coverage */
.collage-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    z-index: 1;
    opacity: 0;
    animation: fadeInCollage 1.5s ease-in forwards;
}

@keyframes fadeInCollage {
    0% { opacity: 0; }
    100% { opacity: 0.60; }
}

/* Marquee Tracks */
.marquee-track {
    display: flex;
    gap: 15px;
    width: max-content;
}

.marquee-track img {
    height: 200px;
    width: 270px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

/* Slower Infinite Scroll (80 seconds) */
.scroll-left {
    animation: scrollLeft 120s linear infinite;
}

.scroll-right {
    animation: scrollRight 120s linear infinite;
}

@keyframes scrollLeft {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scrollRight {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* Background Overlay - Softened gradient */
.collage-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 245, 245, 0.2) 0%, rgba(255, 245, 245, 0.75) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Glassmorphism Hero Card */
.hero-card {
    position: relative;
    z-index: 3;
    max-width: 560px;
    width: 88%;
    padding: 40px 30px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    text-align: center;
}

.hero-card h1 {
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 10px;
}

.hero-card .sub-headline {
    display: block;
    font-size: 1.15rem;
    color: #ff4b6e;
    font-weight: 600;
    margin-top: 6px;
}

.hero-card p {
    font-size: 1.05rem;
    line-height: 1.5;
    color: #555;
    margin-bottom: 25px;
}

.hero-btn {
    display: inline-block;
    font-size: 1.1rem;
    padding: 14px 32px;
    box-shadow: 0 4px 15px rgba(255, 75, 110, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 75, 110, 0.4);
}

.logout-link {
    position: absolute;
    right: 20px;
    top: 20px;
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
}

.logout-link:hover {
    opacity: 1;
    text-decoration: underline;
}

/* ==========================================
   MOBILE RESPONSIVE ADJUSTMENTS
   ========================================== */
@media (max-width: 768px) {
    .marquee-track img {
        height: 110px;
        width: 150px;
    }

    .hero-card {
        padding: 25px 20px;
        width: 85%;
    }

    .hero-card h1 {
        font-size: 1.5rem;
    }

    .hero-card .sub-headline {
        font-size: 0.95rem;
    }

    .hero-card p {
        font-size: 0.9rem;
        margin-bottom: 18px;
    }

    .hero-btn {
        font-size: 0.95rem;
        padding: 10px 22px;
    }
}