/**
 * 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, body {
    height: 100%;
    width: 100%;
    overflow: hidden;
    position: fixed;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    color: var(--white);
}

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

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white !important;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
}

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

.navbar-nav .btn-light {
    background: white;
    color: var(--primary-color);
    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;
}

.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 Container - Absolute Positioning
   -------------------------------------------------------- */
.fullpage-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    will-change: transform;
    transform: translate3d(0, 0, 0);
    transition: transform 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

/* Position each section using top instead of transform to avoid stacking issues */
.fullpage-section[data-section="0"] { top: 0vh; }
.fullpage-section[data-section="1"] { top: 100vh; }
.fullpage-section[data-section="2"] { top: 200vh; }
.fullpage-section[data-section="3"] { top: 300vh; }
.fullpage-section[data-section="4"] { top: 400vh; }
.fullpage-section[data-section="5"] { top: 500vh; }
.fullpage-section[data-section="6"] { top: 600vh; }
.fullpage-section[data-section="7"] { top: 700vh; }

/* --------------------------------------------------------
   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%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.85) 0%, rgba(118, 75, 162, 0.85) 100%);
}

.dark-overlay {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.92) 0%, rgba(118, 75, 162, 0.92) 100%);
}

/* --------------------------------------------------------
   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;
}

.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.125rem, 2.5vw, 1.5rem);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

/* --------------------------------------------------------
   Feature Content Boxes
   -------------------------------------------------------- */
.feature-content-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.feature-number {
    font-size: 1.25rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.75rem;
    letter-spacing: 2px;
}

.feature-headline {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: white;
}

.feature-description {
    font-size: clamp(1rem, 2vw, 1.125rem);
    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(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
}

/* --------------------------------------------------------
   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;
}

.cta-description {
    font-size: clamp(1.125rem, 2.5vw, 1.375rem);
    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(255, 255, 255, 0.1);
    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(255, 255, 255, 0.15);
    transform: translateY(-5px);
}

.badge-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.75rem;
}

.badge-label {
    font-size: 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) {
    .side-navigation {
        right: 10px;
        gap: 8px;
    }

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

    .nav-dot::after {
        display: none;
    }

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

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

    .feature-headline {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .tag {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    .community-badge {
        padding: 1rem 0.5rem;
    }

    .badge-icon {
        font-size: 2rem;
    }

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

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