/**
 * SocializeTogether Landing Page - Fullpage Scroll Design
 * GPU-accelerated, smooth section transitions
 */

/* --------------------------------------------------------
   Root Variables
   -------------------------------------------------------- */
:root {
    --primary-color: #667eea;
    --secondary-color: #764ba2;
    --dark-color: #2d3748;
    --white: #ffffff;
}

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

html {
    height: 100%;
    overflow: hidden;
}

body {
    height: 100%;
    width: 100%;
    overflow: hidden;
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    color: var(--white);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* --------------------------------------------------------
   Navigation Bar
   -------------------------------------------------------- */
/* Only override visual styling, not spacing/alignment */
.navbar {
    background: rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
}

/* Remove custom spacing - let style.css handle alignment */
.navbar-brand {
    color: white !important;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
}

.navbar-nav .nav-link:hover {
    color: white !important;
}

.navbar-nav .btn-light {
    background: white !important;
    color: var(--primary-color) !important;
    border: none;
    border-radius: 50px;
    font-weight: 600;
}

.navbar-nav .btn-light:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* --------------------------------------------------------
   Side Navigation Dots
   -------------------------------------------------------- */
.side-navigation {
    position: fixed;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9998;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.nav-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: block;
    text-decoration: none;
}

.nav-dot:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.2);
}

.nav-dot.active {
    background: white;
    transform: scale(1.3);
}

.nav-dot::after {
    content: attr(title);
    position: absolute;
    right: 25px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.nav-dot:hover::after {
    opacity: 1;
}

/* --------------------------------------------------------
   Fullpage Scrolling Container
   -------------------------------------------------------- */
.fullpage-container {
    width: 100%;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

.fullpage-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* --------------------------------------------------------
   Section Background & Images
   -------------------------------------------------------- */
.section-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.section-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.05);
}

.section-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Gradient progression: Blue at top → Purple at bottom */
.fullpage-section[data-section="0"] .section-overlay {
    background: rgba(102, 126, 234, 0.85); /* Most blue */
}

.fullpage-section[data-section="1"] .section-overlay {
    background: rgba(106, 118, 228, 0.85); /* Slightly less blue */
}

.fullpage-section[data-section="2"] .section-overlay {
    background: rgba(110, 110, 220, 0.85); /* Balanced */
}

.fullpage-section[data-section="3"] .section-overlay {
    background: rgba(114, 100, 210, 0.85); /* Slightly more purple */
}

.fullpage-section[data-section="4"] .section-overlay {
    background: rgba(116, 90, 195, 0.85); /* More purple */
}

.fullpage-section[data-section="5"] .section-overlay {
    background: rgba(118, 80, 178, 0.85); /* Even more purple */
}

.fullpage-section[data-section="6"] .section-overlay {
    background: rgba(118, 75, 162, 0.85); /* Most purple */
}

.dark-overlay {
    opacity: 1;
}

/* --------------------------------------------------------
   Section Content
   -------------------------------------------------------- */
.section-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 2rem;
}

.section-headline {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.highlight-text {
    background: linear-gradient(90deg, #fff 0%, #f0f0ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-lead {
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

/* --------------------------------------------------------
   Feature Content Boxes
   -------------------------------------------------------- */
.feature-content-box {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 4rem 5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10;
    max-width: 1170px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.feature-content-box:hover {
    background: rgba(0, 0, 0, 0.25);
    transform: translateY(-5px);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
}

.feature-number {
    display: none;
}

.feature-headline {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.feature-description {
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: clamp(0.75rem, 1.2vw, 0.875rem);
    font-weight: 600;
    color: white;
}

/* Use Case Sections */
.use-case {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.use-case strong {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(0.75rem, 1.2vw, 0.9rem);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.use-case p {
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    line-height: 1.6;
}

/* --------------------------------------------------------
   Buttons
   -------------------------------------------------------- */
.btn-hero {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    border-radius: 50px;
    border: none;
    transition: all 0.3s ease;
}

.btn-hero.btn-light {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.btn-hero.btn-light:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
    background: #f8f9fa;
}

.btn-hero.btn-outline-light {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.btn-hero.btn-outline-light:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* --------------------------------------------------------
   Scroll Hint
   -------------------------------------------------------- */
.scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    text-align: center;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-left: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(-45deg);
    margin: 0 auto 10px;
    animation: bounce 2s infinite;
}

.scroll-hint span {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    letter-spacing: 2px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: rotate(-45deg) translateY(0);
    }
    40% {
        transform: rotate(-45deg) translateY(-10px);
    }
    60% {
        transform: rotate(-45deg) translateY(-5px);
    }
}

/* --------------------------------------------------------
   CTA Section Styles
   -------------------------------------------------------- */
.cta-headline {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.cta-description {
    font-size: clamp(1.5rem, 3vw, 1.875rem);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.community-types {
    max-width: 800px;
    margin: 0 auto;
}

.community-badge {
    background: rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.community-badge:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: translateY(-5px);
}

.badge-icon {
    font-size: clamp(2rem, 3vw, 2.5rem);
    display: block;
    margin-bottom: 0.75rem;
}

.badge-label {
    font-size: clamp(0.75rem, 1.2vw, 0.875rem);
    font-weight: 600;
    color: white;
}

/* --------------------------------------------------------
   Responsive Design
   -------------------------------------------------------- */
@media (max-width: 991.98px) {
    .side-navigation {
        right: 15px;
        gap: 10px;
    }

    .nav-dot {
        width: 12px;
        height: 12px;
    }

    .feature-content-box {
        padding: 2rem;
    }

    .section-headline {
        font-size: clamp(2rem, 7vw, 3.5rem);
    }
}

@media (max-width: 767.98px) {
    /* Prevent overscroll bounce */
    html, body {
        overscroll-behavior: none;
    }

    .fullpage-container {
        overscroll-behavior: none;
    }

    /* Hide side navigation on mobile */
    .side-navigation {
        display: none;
    }

    /* Sections with mobile padding - balanced */
    .fullpage-section {
        height: 100vh;
        height: 100dvh;
        padding: 70px 0 40px;
    }

    /* Hero section - extra top for navbar */
    #hero.fullpage-section {
        padding-top: 80px;
        padding-bottom: 30px;
    }

    .section-content {
        padding: 0 0.75rem;
    }

    /* Auto-scale hero headline */
    .section-headline {
        font-size: clamp(1.5rem, 6vw, 2.2rem);
        line-height: 1.15;
        margin-bottom: 1rem;
    }

    /* Auto-scale hero lead text */
    .section-lead {
        font-size: clamp(1.15rem, 4.5vw, 1.4rem);
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }

    /* Feature content boxes - no frame on mobile */
    .feature-content-box {
        background: transparent;
        border: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: none;
        padding: 0 1rem;
        margin: 0;
        border-radius: 0;
    }

    .feature-content-box:hover {
        transform: none;
        background: transparent;
        box-shadow: none;
    }

    .feature-number {
        display: none;
    }

    .feature-headline {
        font-size: clamp(1.1rem, 4vw, 1.5rem);
        margin-bottom: 0.5rem;
        line-height: 1.1;
    }

    .feature-description {
        font-size: clamp(1rem, 3.8vw, 1.3rem);
        line-height: 1.4;
        margin-bottom: 0.75rem;
    }

    /* Use case styling for mobile */
    .use-case {
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        border-top-color: rgba(255, 255, 255, 0.3);
    }

    .use-case strong {
        font-size: clamp(0.85rem, 3vw, 1.1rem);
    }

    .use-case p {
        font-size: clamp(0.95rem, 3.5vw, 1.2rem);
        line-height: 1.4;
        margin-top: 0.4rem;
    }

    /* Tags */
    .feature-tags {
        gap: 0.4rem;
        margin-top: 0.75rem;
    }

    .tag {
        font-size: 0.7rem;
        padding: 0.35rem 0.65rem;
    }

    /* CTA section */
    .cta-headline {
        font-size: clamp(1.15rem, 4.5vw, 1.6rem);
        margin-bottom: 1rem;
    }

    .cta-description {
        font-size: clamp(1.1rem, 4.2vw, 1.4rem);
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        margin-bottom: 2rem;
    }

    /* Community badges */
    .community-types {
        margin-top: 1rem !important;
    }

    .community-types .row {
        --bs-gutter-x: 0.5rem;
        --bs-gutter-y: 0.5rem;
    }

    .community-badge {
        padding: 0.5rem 0.4rem;
        border-radius: 10px;
    }

    .community-badge:hover {
        transform: none;
    }

    .badge-icon {
        font-size: 1.25rem;
        margin-bottom: 0.3rem;
    }

    .badge-label {
        font-size: 0.7rem;
    }

    /* Navigation */
    .navbar-brand {
        font-size: 1.25rem;
    }

    .navbar-nav {
        padding: 1rem 0;
        text-align: center;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem !important;
    }

    .navbar-nav .btn-light {
        margin: 0.5rem auto;
        display: inline-block;
    }

    /* Buttons */
    .btn-hero {
        padding: 0.75rem 1.5rem;
        font-size: 0.9375rem;
        width: 100%;
        max-width: 280px;
    }

    .btn-hero.btn-lg {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }

    /* Scroll hint */
    .scroll-hint {
        bottom: 20px;
    }

    .scroll-arrow {
        width: 20px;
        height: 20px;
    }

    .scroll-hint span {
        font-size: 0.75rem;
    }

    /* Section buttons container */
    .section-buttons {
        text-align: center;
    }
}

/* Medium height mobile devices (700px - 899px) */
@media (max-width: 767.98px) and (min-height: 700px) and (max-height: 899px) {
    .feature-headline {
        font-size: clamp(1.21rem, 4.4vw, 1.65rem);
        margin-bottom: 0.55rem;
    }

    .feature-description {
        font-size: clamp(1.1rem, 4.18vw, 1.43rem);
        line-height: 1.42;
        margin-bottom: 0.78rem;
    }

    .use-case strong {
        font-size: clamp(0.94rem, 3.3vw, 1.21rem);
    }

    .use-case p {
        font-size: clamp(1.05rem, 3.85vw, 1.32rem);
        line-height: 1.42;
    }

    .tag {
        font-size: 0.77rem;
        padding: 0.38rem 0.72rem;
    }

    .section-headline {
        font-size: clamp(1.65rem, 6.6vw, 2.42rem);
    }

    .cta-headline {
        font-size: clamp(1.21rem, 4.4vw, 1.65rem);
    }
}

/* Taller mobile devices (more vertical space for larger fonts) */
@media (max-width: 767.98px) and (min-height: 900px) {
    .feature-headline {
        font-size: clamp(1.43rem, 5.3vw, 1.92rem);
        margin-bottom: 0.7rem;
    }

    .feature-description {
        font-size: clamp(1.27rem, 4.6vw, 1.65rem);
        line-height: 1.48;
        margin-bottom: 0.9rem;
    }

    .use-case strong {
        font-size: clamp(1.05rem, 3.6vw, 1.32rem);
    }

    .use-case p {
        font-size: clamp(1.16rem, 4.2vw, 1.48rem);
        line-height: 1.48;
    }

    .tag {
        font-size: 0.82rem;
        padding: 0.42rem 0.75rem;
    }

    .section-headline {
        font-size: clamp(1.82rem, 7.2vw, 2.53rem);
    }

    .cta-headline {
        font-size: clamp(1.43rem, 5.3vw, 1.92rem);
    }
}

/* Extra small devices (phones in portrait) */
@media (max-width: 374px) {
    .section-headline {
        font-size: 1.5rem;
    }

    .section-lead {
        font-size: 0.9375rem;
    }

    .feature-headline {
        font-size: 1.125rem;
    }

    .feature-description {
        font-size: 0.875rem;
    }

    .feature-content-box {
        padding: 1rem;
    }

    .cta-headline {
        font-size: 1.35rem;
    }

    .badge-label {
        font-size: 0.6875rem;
    }
}
