/* Main Styles for OzPath Website - New Design */

:root {
    --primary-blue: #1E90FF;
    --secondary-blue: #0066CC;
    --dark-bg: #000000;
    --darker-bg: #000000;
    --white: #FFFFFF;
    --light-gray: #f5f5f5;
    --text-gray: #cccccc;
    --accent-blue: #4A9EFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    scroll-behavior: smooth;
}

body {
    background: var(--dark-bg);
    color: var(--white);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* City skyline background - only for hero section */
.city-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: url('../images/background.jpg') center center/cover no-repeat;
    filter: grayscale(100%) brightness(0.4) contrast(1.15);
    z-index: -2;
}

.city-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.5) 70%,
        rgba(0, 0, 0, 1) 100%
    );
    z-index: 1;
}

.main-content {
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 60px 20px;
    position: relative;
    background: transparent;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.8) 50%,
        #000000 100%
    );
    z-index: -1;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.section-content {
    max-width: 1400px;
    width: 95%;
    margin: 0 auto;
    padding: 0 40px;
}

.logo-container {
    margin-bottom: 40px;
}

.main-logo {
    height: 120px;
    max-width: 100%;
    filter: drop-shadow(0 4px 20px rgba(30, 144, 255, 0.3));
    transition: all 0.3s ease;
}

.main-logo:hover {
    filter: drop-shadow(0 6px 25px rgba(30, 144, 255, 0.5));
    transform: scale(1.05);
}

.main-tagline {
    font-size: clamp(40px, 8vw, 64px);
    font-weight: 300;
    color: var(--white);
    margin-bottom: 40px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.hero-description {
    font-size: clamp(20px, 4vw, 28px);
    color: var(--text-gray);
    margin-bottom: 60px;
    line-height: 1.6;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.discover-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    background: linear-gradient(
        135deg,
        rgba(13, 36, 73, 0.9) 0%,
        rgba(25, 64, 132, 0.85) 30%,
        rgba(59, 130, 246, 0.1) 70%,
        rgba(13, 36, 73, 0.9) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    cursor: pointer;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 2px 8px rgba(59, 130, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.discover-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.05) 50%,
        transparent 70%
    );
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.discover-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(
        circle,
        rgba(59, 130, 246, 0.3) 0%,
        transparent 70%
    );
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.discover-button:hover {
    transform: translateY(-2px) scale(1.05);
    background: linear-gradient(
        135deg,
        rgba(59, 130, 246, 0.2) 0%,
        rgba(37, 99, 235, 0.25) 30%,
        rgba(59, 130, 246, 0.15) 70%,
        rgba(37, 99, 235, 0.2) 100%
    );
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 
        0 12px 48px rgba(0, 0, 0, 0.3),
        0 4px 16px rgba(59, 130, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.discover-button:hover::before {
    transform: translateX(100%);
}

.discover-button:hover::after {
    width: 100px;
    height: 100px;
}

/* Features Section */
.features-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 60px 20px 40px 20px;
    background: #000000;
    position: relative;
    z-index: 1;
    margin-bottom: 80px;
}

/* Gradient transition at the bottom of features section */
.features-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 300px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 0, 0, 0.3) 30%,
        rgba(0, 0, 0, 0.7) 70%,
        rgba(0, 0, 0, 0.95) 100%
    );
    z-index: 2;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.features-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
}

.features-text {
    width: 100%;
}

.features-title {
    font-size: clamp(32px, 5vw, 44px);
    font-weight: 600;
    color: var(--white);
    margin-bottom: 25px;
    line-height: 1.2;
}

.features-description {
    font-size: clamp(18px, 2.5vw, 20px);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 40px;
}

/* Features List */
.features-list {
    margin: 30px auto 20px auto;
    max-width: 900px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    justify-content: center;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 20px 15px;
    background: rgba(30, 144, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(30, 144, 255, 0.1);
    transition: all 0.3s ease;
    min-height: 200px;
}

.feature-item:hover {
    background: rgba(30, 144, 255, 0.1);
    border-color: rgba(30, 144, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(30, 144, 255, 0.15);
}

.feature-visual {
    min-width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(30, 144, 255, 0.1), rgba(74, 158, 255, 0.1));
    border-radius: 12px;
    border: 1px solid rgba(30, 144, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.feature-canvas {
    width: 120px;
    height: 120px;
    display: block;
}

.feature-content h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.feature-content p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin: 0;
}

.features-highlight {
    font-size: clamp(16px, 2.2vw, 18px);
    color: rgba(74, 158, 255, 0.9);
    line-height: 1.6;
    font-weight: 500;
    margin-top: 40px;
}

/* Waitlist Container within Features Section */
.waitlist-container {
    margin-top: 200px;
    text-align: center;
    width: 100%;
}



.waitlist-title {
    font-size: clamp(36px, 6vw, 48px);
    font-weight: 600;
    color: var(--white);
    margin-bottom: 60px;
    line-height: 1.2;
}

.email-form {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

.email-input {
    flex: 1;
    padding: 12px 28px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    background: transparent;
    color: var(--white);
    font-size: 18px;
    transition: all 0.3s ease;
    backdrop-filter: none;
}

.email-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.email-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 20px rgba(30, 144, 255, 0.3);
}

.join-waitlist-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    background: linear-gradient(
        135deg,
        rgba(13, 36, 73, 0.9) 0%,
        rgba(25, 64, 132, 0.85) 30%,
        rgba(59, 130, 246, 0.1) 70%,
        rgba(13, 36, 73, 0.9) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: none;
    outline: none !important;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    cursor: pointer;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 2px 8px rgba(59, 130, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

.join-waitlist-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.05) 50%,
        transparent 70%
    );
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.join-waitlist-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(
        circle,
        rgba(59, 130, 246, 0.3) 0%,
        transparent 70%
    );
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.join-waitlist-button:hover {
    transform: translateY(-2px) scale(1.05);
    background: linear-gradient(
        135deg,
        rgba(59, 130, 246, 0.2) 0%,
        rgba(37, 99, 235, 0.25) 30%,
        rgba(59, 130, 246, 0.15) 70%,
        rgba(37, 99, 235, 0.2) 100%
    );
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 
        0 12px 48px rgba(0, 0, 0, 0.3),
        0 4px 16px rgba(59, 130, 246, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.join-waitlist-button:hover::before {
    transform: translateX(100%);
}

.join-waitlist-button:hover::after {
    width: 100px;
    height: 100px;
}

.join-waitlist-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    outline: none !important;
    border: none;
    background: linear-gradient(
        135deg,
        rgba(13, 36, 73, 0.5) 0%,
        rgba(25, 64, 132, 0.4) 30%,
        rgba(59, 130, 246, 0.05) 70%,
        rgba(13, 36, 73, 0.5) 100%
    );
}

.join-waitlist-button:disabled:hover {
    transform: none;
    outline: none !important;
    border: none;
    background: linear-gradient(
        135deg,
        rgba(13, 36, 73, 0.5) 0%,
        rgba(25, 64, 132, 0.4) 30%,
        rgba(59, 130, 246, 0.05) 70%,
        rgba(13, 36, 73, 0.5) 100%
    );
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 2px 8px rgba(59, 130, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.join-waitlist-button:focus,
.join-waitlist-button:focus-visible,
.join-waitlist-button:active {
    outline: none !important;
    border: none !important;
}
/*
.fade-in {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-30px);
    animation: fadeInLeft 1s ease forwards;
}

.fade-in-right {
    opacity: 0;
    transform: translateX(30px);
    animation: fadeInRight 1s ease forwards;
}

.fade-in-scale {
    opacity: 0;
    transform: scale(0.9);
    animation: fadeInScale 1s ease forwards;
}
*/

/* Main page section spacing - override minimal spacing from pages.css */
#mission-section,
#story-section,
#values-section {
    padding: var(--space-3xl) 20px !important;
    margin-bottom: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#story-section {
    margin-top: 0;
}

/* 3D Globe for Mission Section */
/* Globe Container */
.globe-container {
    position: relative;
    width: 600px;
    height: 600px;
    margin: 0 auto;
    perspective: 1000px;
    perspective-origin: center center;
}

/* Three.js Canvas */
.threejs-canvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    cursor: grab;
    transition: transform 0.1s ease;
}

.threejs-canvas:active {
    cursor: grabbing;
}

/* Responsive globe sizing */
@media (max-width: 768px) {
    .globe-container {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 480px) {
    .globe-container {
        width: 250px;
        height: 250px;
    }
}

.globe-inner.globe-active .globe-sphere {
    box-shadow: 
        inset -30px -30px 60px rgba(0, 0, 0, 0.7),
        inset 30px 30px 60px rgba(59, 130, 246, 0.2),
        0 0 80px rgba(59, 130, 246, 0.5),
        0 0 150px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.8);
    transform: scale(1.02);
}

.globe-inner.globe-active .longitude-line,
.globe-inner.globe-active .latitude-line {
    opacity: 1.2;
}

/* Enhanced glow during interaction */
.globe-inner.globe-active + .globe-glow {
    opacity: 1;
    transform: scale(1.1);
    animation: interactionGlow 0.5s ease-out;
}

@keyframes interactionGlow {
    0% {
        box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    }
    50% {
        box-shadow: 0 0 60px rgba(59, 130, 246, 0.6);
    }
    100% {
        box-shadow: 0 0 40px rgba(59, 130, 246, 0.4);
    }
}

/* Mobile responsive globe */
@media (max-width: 768px) {
    .globe-container {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 480px) {
    .globe-container {
        width: 200px;
        height: 200px;
    }
}

/* Vertical Timeline Story Design */
.story-timeline {
    position: relative;
    max-width: 1000px;
    margin: 60px auto 0;
    padding: 40px 0;
}

/* Central Timeline Line */
.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    transform: translateX(-50%);
    background: linear-gradient(
        180deg,
        rgba(59, 130, 246, 0.2) 0%,
        rgba(30, 144, 255, 0.15) 100%
    );
    border-radius: 2px;
    backdrop-filter: blur(1px);
    border: 1px solid rgba(59, 130, 246, 0.1);
}

/* Animated Progress Fill */
.timeline-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(
        180deg,
        rgba(30, 144, 255, 0.9) 0%,
        rgba(59, 130, 246, 1) 50%,
        rgba(74, 158, 255, 0.8) 100%
    );
    border-radius: 2px;
    transition: height 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        0 0 20px rgba(59, 130, 246, 0.4),
        0 0 40px rgba(59, 130, 246, 0.2);
}

/* Timeline progress glow effect */
.timeline-progress::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: rgba(59, 130, 246, 1);
    border-radius: 50%;
    box-shadow: 
        0 0 15px rgba(59, 130, 246, 0.8),
        0 0 25px rgba(59, 130, 246, 0.4);
    animation: progressPulse 2s ease-in-out infinite;
}

@keyframes progressPulse {
    0%, 100% { 
        transform: translateX(-50%) scale(1);
        opacity: 1; 
    }
    50% { 
        transform: translateX(-50%) scale(1.3);
        opacity: 0.8; 
    }
}

/* Story Step Container */
.story-step {
    position: relative;
    margin: 80px 0;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.story-step.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Story Cards */
.story-card {
    position: relative;
    width: 45%;
    max-width: 400px;
}

.story-card.left {
    margin-right: auto;
    text-align: right;
}

.story-card.right {
    margin-left: auto;
    margin-left: 55%;
    text-align: left;
}

/* Card Content with Glass Morphism */
.card-content {
    background: linear-gradient(
        135deg,
        rgba(13, 36, 73, 0.95) 0%,
        rgba(25, 64, 132, 0.9) 30%,
        rgba(59, 130, 246, 0.08) 70%,
        rgba(13, 36, 73, 0.95) 100%
    );
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 16px;
    padding: 32px;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 16px 64px rgba(59, 130, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.card-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(59, 130, 246, 0.03) 0%,
        transparent 50%,
        rgba(30, 144, 255, 0.02) 100%
    );
    pointer-events: none;
}

.story-card:hover .card-content {
    transform: none;
    box-shadow: none;
    border-color: inherit;
}

/* Step Titles */
.step-title {
    font-size: 24px;
    font-weight: 700;
    color: rgba(59, 130, 246, 1);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.step-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    width: 40px;
    height: 2px;
    background: linear-gradient(
        90deg,
        rgba(59, 130, 246, 1) 0%,
        rgba(30, 144, 255, 0.6) 100%
    );
}

.story-card.left .step-title::after {
    right: 0;
}

.story-card.right .step-title::after {
    left: 0;
}

/* Step Descriptions */
.step-description {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* Connector Lines from Cards to Timeline */
.story-card::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 2px;
    background: linear-gradient(
        90deg,
        rgba(59, 130, 246, 0.6) 0%,
        rgba(59, 130, 246, 0.2) 100%
    );
    z-index: 5;
    transition: all 0.4s ease;
}

.story-card.left::after {
    right: -30px;
}

.story-card.right::after {
    left: -30px;
    background: linear-gradient(
        90deg,
        rgba(59, 130, 246, 0.2) 0%,
        rgba(59, 130, 246, 0.6) 100%
    );
}

.story-step.animate-in .story-card::after {
    background: linear-gradient(
        90deg,
        rgba(59, 130, 246, 1) 0%,
        rgba(59, 130, 246, 0.4) 100%
    );
}

.story-step.animate-in .story-card.right::after {
    background: linear-gradient(
        90deg,
        rgba(59, 130, 246, 0.4) 0%,
        rgba(59, 130, 246, 1) 100%
    );
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .story-timeline {
        max-width: 100%;
        padding: 20px 15px;
    }
    
    .timeline-line {
        left: 30px;
    }
    
    .story-card {
        width: calc(100% - 80px);
        margin-left: 80px !important;
        text-align: left !important;
    }
    
    .story-card::after {
        left: -50px !important;
        width: 40px;
        background: linear-gradient(
            90deg,
            rgba(59, 130, 246, 0.2) 0%,
            rgba(59, 130, 246, 0.6) 100%
        ) !important;
    }
    
    .step-title::after {
        left: 0 !important;
    }
    
    .card-content {
        padding: 24px;
    }
    
    .step-title {
        font-size: 20px;
    }
    
    .step-description {
        font-size: 14px;
    }
}

/* Ensure proper spacing between sections on index page only */
body:not(.terms-page):not(.disclaimer-page) .content-section {
    padding: 100px 20px !important;
}

body:not(.terms-page):not(.disclaimer-page) .content-section + .content-section {
    margin-top: 80px;
}

/* Section Transition Effects */
.scroll-section {
    position: relative;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Background overlay for smooth transitions */
.scroll-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.95) 0%,
        rgba(13, 36, 73, 0.85) 30%,
        rgba(30, 144, 255, 0.1) 70%,
        rgba(0, 0, 0, 0.95) 100%
    );
    opacity: 0;
    z-index: -1;
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

/* Section states */
.scroll-section[data-animation-state="initial"] {
    opacity: 0.3;
    transform: translateY(20px) scale(0.98);
}

.scroll-section[data-animation-state="entering"] {
    opacity: 0.7;
    transform: translateY(10px) scale(0.99);
}

.scroll-section[data-animation-state="entering"]::before {
    opacity: 0.3;
}

.scroll-section[data-animation-state="visible"] {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.scroll-section[data-animation-state="visible"]::before {
    opacity: 0.6;
}

.scroll-section[data-animation-state="exiting"] {
    opacity: 0.7;
    transform: translateY(-10px) scale(0.99);
}

.scroll-section[data-animation-state="exiting"]::before {
    opacity: 0.3;
}

.scroll-section[data-animation-state="exited"] {
    opacity: 0.3;
    transform: translateY(-20px) scale(0.98);
}

.scroll-section[data-animation-state="exited"]::before {
    opacity: 0;
}

/* Enhanced gradient connections between sections */
.scroll-section + .scroll-section::after {
    content: '';
    position: absolute;
    top: -100px;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(30, 144, 255, 0.05) 25%,
        rgba(59, 130, 246, 0.1) 50%,
        rgba(74, 158, 255, 0.05) 75%,
        transparent 100%
    );
    z-index: -1;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

/* Remove top gradient line from features section */
.hero-section.scroll-section + .features-section.scroll-section::after {
    display: none;
}

.scroll-section[data-animation-state="visible"] + .scroll-section::after,
.scroll-section[data-animation-state="entering"] + .scroll-section::after {
    opacity: 1;
}

/* Child element animation states */
.child-animate-in {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.child-animate-out {
    opacity: 0.3;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Smooth content transitions */
.scroll-section .section-title,
.scroll-section .section-subtitle,
.scroll-section .features-title,
.scroll-section .main-tagline,
.scroll-section .hero-description,
.scroll-section .content-text {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Fade animation keyframes for smoother effects */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0.3;
        transform: translateY(-20px) scale(0.98);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInScale {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Message styles for waitlist feedback */
.message {
    margin-top: 20px;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    animation: slideIn 0.3s ease;
}

.message.success {
    background: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.message.error {
    background: rgba(244, 67, 54, 0.2);
    color: #F44336;
    border: 1px solid rgba(244, 67, 54, 0.3);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .main-logo {
        height: 80px;
    }
    
    .features-container {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .features-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        max-width: 100%;
    }
    
    .feature-item {
        min-height: 200px;
        padding: 20px 15px;
    }
    
    .feature-content h3 {
        font-size: 16px;
    }
    
    .feature-content p {
        font-size: 14px;
    }
    
    /* Mobile responsive feature visualizations */
    .feature-visual {
        min-width: 90px;
        height: 90px;
    }
    
    .feature-canvas {
        width: 90px;
        height: 90px;
    }
    
    /* Mobile globe canvas */
    #globe-canvas {
        max-width: 100%;
        height: auto;
    }

}

@media (max-width: 480px) {
    /* Single column layout for mobile phones */
    .features-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .feature-item {
        min-height: 180px;
        padding: 18px 15px;
    }
    
    /* Smaller feature visuals for very small screens */
    .feature-visual {
        min-width: 80px;
        height: 80px;
    }
    
    .feature-canvas {
        width: 80px;
        height: 80px;
    }
    
    .email-form {
        flex-direction: column;
        gap: 20px;
    }
    
    .email-input {
        width: 100%;
    }
    
    .join-waitlist-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-section,
    .features-section,
    .waitlist-section {
        padding: 3rem 15px !important;
    }
    
    .main-logo {
        height: 60px;
    }
    
    .hexagon-logo {
        width: 120px;
        height: 120px;
    }
}