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

:root {
    --black: #000000;
    --dark-grey: #121212;
    --grey: #222222;
    --light-grey: #999999;
    --gold-gradient: linear-gradient(135deg, #FFD700, #E6BE8A, #D4AF37);
    --gold: #D4AF37;
    --white: #ffffff;
    --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

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

body {
    background-color: var(--black);
    color: var(--white);
    font-family: 'Inter', 'Outfit', sans-serif;
    font-weight: 300;
    /* Slim vibe */
    letter-spacing: -0.02em;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Variable Font Support placeholder - since I can't load the specific internal Google Sans Flex, I'll use Outfit as a premium fallback and simulate the vibes */

h1,
h2,
h3 {
    text-transform: uppercase;
    letter-spacing: 2px;
}

.gold-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 300;
}

/* Navigation */
header {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.4);
    /* More translucent */
    backdrop-filter: blur(15px);
    /* Increased blur */
    -webkit-backdrop-filter: blur(15px);
    /* Safari support */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    /* Subtle glass edge */
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    /* For the new anchor wrapper */
}

.logo-container img {
    height: 40px;
    border: 1px solid var(--gold);
    border-radius: 8px;
    padding: 3px;
    background: rgba(255, 255, 255, 0.03);
    /* Subtle backdrop for icon */
}

.app-title {
    font-size: 1.25rem;
    font-weight: 600;
    /* Bold font */
    display: flex;
    gap: 0;
}

.app-title span:first-child {
    color: var(--white);
}

.app-title span:last-child {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hamburger {
    cursor: pointer;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hamburger div {
    width: 18px;
    /* Reduced width for a more delicate look */
    height: 1px;
    /* Very thin */
    background: var(--gold);
    transition: var(--transition);
}

.nav-dropdown {
    position: absolute;
    top: 70px;
    right: 20px;
    background: rgba(18, 18, 18, 0.95);
    border: 1px solid var(--grey);
    border-radius: 12px;
    padding: 20px;
    display: none;
    flex-direction: column;
    gap: 15px;
    backdrop-filter: blur(20px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-dropdown.active {
    display: flex;
}

.nav-dropdown a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 300;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.nav-dropdown a:hover {
    color: var(--gold);
}

/* Hero Section */
.hero {
    height: 60vh;
    /* Reduced height to further minimize image zoom */
    max-height: 600px;
    min-height: 450px;
    /* Ensure enough space for content */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: visible;
    /* Allow content from next sections to overlap if needed */
    z-index: 1;
}

.hero-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    /* Send background to back */
}

.hero-image-container picture,
.hero-image-container img {
    width: 100%;
    height: 100%;
    display: block;
}

.hero-image-container img {
    object-fit: cover;
    object-position: top center;
    /* Strictly prioritize the top of the image to keep heads visible */
    filter: brightness(0.5);
    /* Dim for text contrast */
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    padding-top: 80px;
    /* Increased to push content safely below fixed header */
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Restore vertical centering */
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.2rem, 7vw, 4.5rem);
    font-weight: 300;
    margin-bottom: 20px;
    line-height: 1.1;
}

.vip-float {
    /* Removed absolute positioning for Safari compatibility */
    margin-top: 60px;
    /* Space from stickers */
    font-size: 1.2rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    z-index: 3;
    transition: var(--transition);
}

.hero-stickers {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

.hero-stickers .sticker {
    height: 35px;
    /* Smaller, premium size */
    opacity: 0.9;
    transition: var(--transition);
}

.hero-stickers .sticker:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* VIP Section */
.vip-section {
    padding: 20px 20px 40px;
    text-align: center;
    margin-top: 0;
    /* No overlap on desktop to prevent mockup clash */
    background: transparent;
    /* See hero underneath */
    position: relative;
    z-index: 10;
    /* Definitely above hero */
}

.vip-section h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    text-align: center;
    /* Ensure header is centered */
}

.download-stickers {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
}

.sticker {
    height: 50px;
    cursor: pointer;
}

/* Screenshot Carousel with multiple iPhone Mockups */
.screenshot-carousel {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    display: flex;
    justify-content: flex-start;
    /* Ensure start/end are reachable */
    -webkit-overflow-scrolling: touch;
    overflow-y: visible;
}

.screenshot-carousel::-webkit-scrollbar {
    display: none;
}

.carousel-track {
    display: flex;
    gap: 30px;
    padding: 0 20px;
    width: max-content;
    /* Ensure track fits content for centering */
    margin: 0 auto;
    /* Center track on desktop if space allows */
}

.iphone-frame {
    width: 260px;
    /* Fixed width to prevent distortion */
    height: 520px;
    /* Fixed height to mantain aspect ratio */
    border: 10px solid #222;
    border-radius: 35px;
    position: relative;
    background: #000;
    box-shadow: 0 0 40px rgba(212, 175, 55, 0.15);
    overflow: hidden;
    flex-shrink: 0;
    scroll-snap-align: center;
    /* Removed bounce animation */
}

.iphone-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: #222;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    z-index: 10;
}

.carousel-slide {
    width: 100%;
    height: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Success Stories Card Refinement */
.success-stories {
    padding: 20px 20px 80px;
    /* Greatly reduced top padding */
    background: var(--black);
}

.success-carousel {
    display: flex;
    overflow-x: auto;
    gap: 30px;
    padding: 40px 0;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    justify-content: flex-start;
    /* Ensure start/end are reachable */
    -webkit-overflow-scrolling: touch;
}

.success-carousel::after,
.success-carousel::before {
    content: '';
    flex: 0 0 20px;
    /* Padding for mobile centering */
}


@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-15px);
    }

    60% {
        transform: translateY(-7px);
    }
}

.success-card {
    min-width: 300px;
    height: 480px;
    /* Taller for vertical impact */
    background: var(--dark-grey);
    border-radius: 24px;
    text-align: center;
    scroll-snap-align: center;
    animation: bounce 4s infinite;
    position: relative;
    overflow: hidden;
    padding: 0;
    /* Clear padding for image fill */
}

.success-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.success-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 30px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 50%, transparent 100%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    transition: var(--transition);
}

.success-card:hover .success-card-content {
    background: linear-gradient(to top, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.7) 60%, rgba(0, 0, 0, 0.2) 100%);
}

.success-card:active {
    transform: scale(0.98);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: transform 0.1s ease;
}

.iphone-frame:active {
    transform: scale(0.97);
    box-shadow: 0 0 60px rgba(212, 175, 55, 0.3);
    transition: transform 0.1s ease;
}

.success-card p {
    font-size: 0.95rem;
    line-height: 1.4;
    margin-bottom: 12px;
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.success-card h4 {
    letter-spacing: 1px;
    font-size: 0.9rem;
}

/* Footer & Social Icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.social-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.05);
    /* Translucent fill */
    backdrop-filter: blur(5px);
    /* Soft glass blur */
    -webkit-backdrop-filter: blur(5px);
    /* Safari support */
    border: 1px solid rgba(212, 175, 55, 0.3);
    /* Subtle gold glass edge */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.15);
    /* Brighten on hover */
    border-color: var(--gold);
    transform: translateY(-3px) scale(1.1);
    /* Slight lift and scale */
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.2);
}

/* Footer Section */
footer {
    padding: 60px 20px;
    border-top: 1px solid var(--grey);
    background: var(--black);
    color: var(--gold);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

.footer-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.footer-logo-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    margin-bottom: 25px;
}

/* Main logo styles - targeted more specifically to avoid affecting the second logo */
.footer-logo-row img:first-of-type {
    height: 35px;
    width: 35px;
    object-fit: contain;
    border: 1px solid var(--gold);
    border-radius: 6px;
    padding: 3px;
}

.footer-logo-row .app-title {
    display: flex;
    flex-direction: row;
    gap: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.footer-separator {
    color: var(--gold);
    opacity: 0.5;
    font-size: 1.2rem;
    font-weight: 300;
    margin: 0 5px;
}

.second-logo {
    height: 20px;
    /* Reduced to match the RaceDating text height */
    width: auto;
    object-fit: contain;
    opacity: 1;
    border: none !important;
    /* Force no border */
    padding: 0;
}

.footer-left .social-icons {
    justify-content: flex-start;
    margin-bottom: 20px;
}

.footer-link {
    color: var(--gold);
    text-decoration: none;
    font-size: 1rem;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--white);
    opacity: 0.8;
}

.copyright {
    margin-top: 20px;
    color: var(--gold);
    opacity: 0.6;
    font-size: 0.8rem;
}

.footer-right {
    text-align: right;
}

.footer-quick-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-quick-links a {
    color: var(--gold);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 300;
    transition: var(--transition);
}

.footer-quick-links a:hover {
    color: var(--white);
    transform: translateX(-5px);
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-left {
        align-items: center;
        text-align: center;
    }

    .footer-right {
        text-align: center;
    }

    .footer-quick-links a:hover {
        transform: none;
    }
}

/* Secondary Pages Styling */
.secondary-page {
    background: #000;
}

/* Specific background for contact page - Fixed for iOS compatibility */
.contact-page {
    position: relative;
    background: #000;
    /* Fallback */
}

.contact-page::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('couple1.JPG') no-repeat center center;
    background-size: cover;
    z-index: -2;
}

.contact-page::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    /* Dark overlay */
    z-index: -1;
}

/* Secondary pages now use the global fixed glass header */

.content-container {
    max-width: 800px;
    margin: 120px auto 100px;
    /* Space for sticky header */
    padding: 20px;
    font-weight: 300;
}

.content-container section,
.guide-step {
    margin-bottom: 40px;
}

.content-container p {
    color: var(--light-grey);
    line-height: 1.8;
}

.content-container ul {
    margin: 20px 0;
    list-style: none;
    padding-left: 0;
}

.content-container li {
    margin-bottom: 10px;
    color: var(--light-grey);
}

.content-container li strong {
    color: var(--gold);
}

.last-updated {
    font-size: 0.8rem;
    color: var(--gold);
    margin-bottom: 50px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Contact Page Specific Styles */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
    margin-top: 40px;
}

.contact-method {
    margin-top: 30px;
}

.contact-method .subtitle {
    display: block;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.contact-link {
    color: var(--white);
    text-decoration: none;
    font-size: 1.2rem;
    transition: var(--transition);
}

.contact-link:hover {
    color: var(--gold);
}

.premium-form,
.desktop-support-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 20px;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.desktop-support-card h3 {
    margin-top: 0;
}

.support-email {
    font-size: 1.5rem;
    color: var(--gold);
    font-weight: 400;
    margin: 15px 0;
    display: block;
    word-break: break-all;
}

/* Responsive Utilities */
.mobile-only {
    display: none !important;
}

.desktop-only {
    display: block !important;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.8rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 12px;
    color: var(--white);
    font-family: inherit;
    font-size: 16px;
    /* Prevents auto-zoom on mobile browsers */
    font-weight: 300;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    background: rgba(255, 255, 255, 0.08);
}

.gold-button {
    background: var(--gold-gradient);
    border: none;
    border-radius: 8px;
    padding: 15px;
    color: #000;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
}

.gold-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .carousel-track,
    .success-carousel {
        justify-content: flex-start;
        /* Keep scrolling flow on mobile */
    }

    .hero {
        height: 80vh;
    }

    .hero-content {
        padding-top: 100px;
        /* Moved significantly lower on mobile too */
    }

    .vip-float {
        margin-top: 40px;
        /* Tighter on mobile */
        font-size: 1rem;
    }

    .vip-section {
        margin-top: -150px;
        /* Adjust overlap for the new flow position */
    }

    .carousel-slide {
        min-width: 80%;
    }

    .iphone-frame {
        transform: scale(0.85);
    }

    .mobile-only {
        display: block !important;
    }

    .desktop-only {
        display: none !important;
    }
}