/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e1e1e 0%, #2d2d2d 100%);
    color: white;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Canvas Container */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
}

#three-canvas {
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* Content Sections */
.content {
    position: relative;
    z-index: 2;
    padding: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 100px 0;
    position: relative;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100px;
    background: linear-gradient(to bottom, transparent, #4ecdc4, transparent);
    opacity: 0.5;
}

.section:first-child::before {
    display: none;
}

/* Typography */
.section h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 30px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 20px;
    color: #4ecdc4;
    font-weight: 600;
    position: relative;
}

.section h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
    border-radius: 2px;
}

.section p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto 30px;
    opacity: 0.9;
    font-weight: 300;
}

/* Animations */
@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

/* CTA Button */
.cta-button {
    display: inline-block;
    padding: 18px 36px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(78, 205, 196, 0.3);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(78, 205, 196, 0.4);
}

.cta-button:hover::before {
    left: 100%;
}

/* Progress Indicator */
.progress-indicator {
    position: fixed;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.progress-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
    position: relative;
    cursor: pointer;
}

.progress-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: transparent;
    transition: all 0.3s ease;
}

.progress-dot.active {
    background: #4ecdc4;
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(78, 205, 196, 0.6);
}

.progress-dot.active::before {
    background: white;
}

.progress-dot:hover {
    transform: scale(1.1);
    background: rgba(78, 205, 196, 0.6);
}

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e1e1e 0%, #2d2d2d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 1000;
    transition: opacity 0.5s ease;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(78, 205, 196, 0.2);
    border-top: 4px solid #4ecdc4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 30px;
}

.loading-screen p {
    font-size: 1.2rem;
    opacity: 0.8;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Mobile Controls */
.mobile-controls {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: none;
    gap: 10px;
}

.control-button {
    background: rgba(78, 205, 196, 0.9);
    border: none;
    color: white;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.control-button:hover {
    background: #4ecdc4;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(78, 205, 196, 0.4);
}

.control-button:active {
    transform: translateY(-1px);
}

/* Scroll Indicator */
.scroll-indicator {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    animation: float 2s ease-in-out infinite;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-right: 2px solid #4ecdc4;
    border-bottom: 2px solid #4ecdc4;
    transform: rotate(45deg);
    opacity: 0.7;
}

/* Feature Cards */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
    max-width: 800px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 20px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content {
        padding: 30px;
    }
    
    .progress-indicator {
        right: 20px;
    }
}

@media (max-width: 768px) {
    .content {
        padding: 20px;
    }
    
    .section {
        padding: 80px 0;
    }
    
    .mobile-controls {
        display: flex;
    }
    
    .progress-indicator {
        right: 15px;
        gap: 12px;
    }
    
    .progress-dot {
        width: 12px;
        height: 12px;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .cta-button {
        padding: 15px 30px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 60px 0;
    }
    
    .content {
        padding: 15px;
    }
    
    .mobile-controls {
        bottom: 20px;
        flex-wrap: wrap;
        max-width: 90vw;
    }
    
    .control-button {
        padding: 10px 20px;
        font-size: 0.8rem;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .progress-dot {
        border: 0.5px solid rgba(255, 255, 255, 0.1);
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .scroll-indicator {
        animation: none;
    }
}

/* Print Styles */
@media print {
    #canvas-container,
    .progress-indicator,
    .mobile-controls,
    .loading-screen {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .section {
        page-break-inside: avoid;
        min-height: auto;
    }
}