/* Landing Page Styles - Neumorphism Design */

/* ============================================
   CSS VARIABLES - NEUMORPHISM
   ============================================ */
:root {
    --neu-bg: #e8eef3;
    --neu-shadow-dark: rgba(163, 177, 198, 0.6);
    --neu-shadow-light: rgba(255, 255, 255, 0.8);
    --neu-text-primary: #2d3748;
    --neu-text-secondary: #4a5568;
    --neu-text-muted: #718096;
    --neu-accent: #6366f1;
    --neu-accent-light: #818cf8;
    --neu-accent-soft: rgba(99, 102, 241, 0.15);
    --neu-success: #10b981;
    --neu-cyan: #00ffff;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    overflow-x: hidden;
    position: relative;
}

.hidden {
    display: none !important;
}

/* ============================================
   SPLASH SCREEN - KEEP ANIMATIONS AS IS
   ============================================ */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1000;
    overflow: hidden;
}

.splash-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    opacity: 0;
    animation: fadeIn 0.8s ease-in forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Hero Image Background */
.hero-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0;
    transform: scale(0.8);
    animation: heroEntrance 1s ease-out 0.2s forwards;
}

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

.splash-screen .hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(102, 126, 234, 0.7);
}

/* Floating Particles */
.particles-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.particle {
    position: absolute;
    font-size: 16px;
    opacity: 0;
    color: rgba(255, 255, 255, 0.6);
    animation: floatUp 3s ease-out forwards;
}

@keyframes floatUp {
    0% {
        opacity: 0;
        transform: translateY(100vh) translateX(0) scale(0);
    }
    10% {
        opacity: 1;
        transform: translateY(90vh) translateX(0) scale(1);
    }
    100% {
        opacity: 0.6;
        transform: translateY(-30vh) translateX(var(--particle-x, 0)) scale(1);
    }
}

/* Shimmer Effect */
.shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100px;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: skewX(-15deg);
    z-index: 3;
    animation: shimmerMove 2s infinite;
}

@keyframes shimmerMove {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Splash Content */
.splash-content {
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 40px;
}

/* Logo Container */
.splash-screen .logo-container {
    margin-bottom: 40px;
    opacity: 0;
    animation: logoEntrance 0.6s ease-out 0.4s forwards;
}

@keyframes logoEntrance {
    to {
        opacity: 1;
    }
}

.logo-wrapper {
    width: 180px;
    height: 180px;
    border-radius: 90px;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.logo {
    width: 140px;
    height: 140px;
    border-radius: 70px;
    animation: logoRotate 1.2s ease-out 0.4s;
}

@keyframes logoRotate {
    from {
        transform: rotate(0deg) scale(0);
    }
    to {
        transform: rotate(360deg) scale(1);
    }
}

/* Text Container */
.text-container {
    text-align: center;
    opacity: 0;
    transform: translateY(50px);
    animation: textEntrance 0.8s ease-out 0.8s forwards;
}

@keyframes textEntrance {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.app-name {
    font-size: 36px;
    font-weight: bold;
    color: #ffffff;
    text-align: center;
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.tagline {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    margin-bottom: 30px;
    font-weight: 300;
}

/* Progress Container */
.progress-container {
    position: absolute;
    bottom: 80px;
    left: 40px;
    right: 40px;
    z-index: 10;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    padding: 20px;
    opacity: 0;
    animation: fadeIn 0.8s ease-in 1s forwards;
}

.progress-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.progress-logo {
    width: 40px;
    height: 40px;
    border-radius: 20px;
    margin-right: 12px;
}

.progress-text-container {
    flex: 1;
}

.progress-app-name {
    color: #ffffff;
    font-size: 18px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.progress-subtitle {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
}

.progress-bar-background {
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar-fill {
    height: 100%;
    background: #ffffff;
    border-radius: 3px;
    width: 0%;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
    transition: width 0.1s linear;
}

.progress-text {
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Bottom Decoration */
.bottom-decoration {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 40px;
    z-index: 5;
    opacity: 0;
    animation: fadeIn 0.8s ease-in 1.2s forwards;
}

.bottom-decoration .icon {
    font-size: 24px;
    opacity: 0.3;
}

/* ============================================
   LANDING PAGE - NEUMORPHISM DESIGN
   ============================================ */
.landing-page {
    min-height: 100vh;
    background: var(--neu-bg);
    position: relative;
}

/* Hide background gradient */
.background-gradient {
    display: none;
}

.landing-scroll-view {
    position: relative;
    z-index: 1;
    padding-bottom: 50px;
}

/* Language Switcher on Landing Page */
.language-switcher-landing {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.language-button-landing {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--neu-bg);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        4px 4px 8px var(--neu-shadow-dark),
        -4px -4px 8px var(--neu-shadow-light);
    font-size: 14px;
    font-weight: 600;
    color: var(--neu-text-primary);
}

.language-button-landing:hover {
    transform: translateY(-2px);
    box-shadow: 
        6px 6px 12px var(--neu-shadow-dark),
        -6px -6px 12px var(--neu-shadow-light);
}

.language-button-landing:active {
    transform: translateY(0);
    box-shadow: 
        2px 2px 4px var(--neu-shadow-dark),
        -2px -2px 4px var(--neu-shadow-light);
}

.language-button-landing i {
    font-size: 16px;
    color: var(--neu-accent);
}

.language-text-landing {
    font-weight: 700;
    color: var(--neu-accent);
}

/* Header Section */
.header-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 50px;
    padding-bottom: 30px;
    opacity: 0;
    transform: translateY(50px);
    animation: fadeInUp 1s ease-out forwards;
    position: relative;
}

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

.logo-container-landing {
    margin-bottom: 24px;
}

.logo-rotation-wrapper {
    width: 100px;
    height: 100px;
    border-radius: 28px;
    background: var(--neu-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        10px 10px 20px var(--neu-shadow-dark),
        -10px -10px 20px var(--neu-shadow-light);
    animation: logoRotateContinuous 8s linear infinite;
}

@keyframes logoRotateContinuous {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.app-logo {
    width: 70px;
    height: 70px;
    border-radius: 20px;
}

.app-title {
    font-size: 34px;
    font-weight: 800;
    color: var(--neu-text-primary);
    margin-bottom: 8px;
    text-align: center;
}

.app-subtitle {
    font-size: 16px;
    color: var(--neu-text-secondary);
    text-align: center;
}

/* Hero Section */
.hero-section {
    margin-bottom: 40px;
    padding: 0 20px;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.3s forwards;
}

.hero-image-container {
    width: 100%;
    max-width: 500px;
    height: 200px;
    margin: 0 auto 15px;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    user-select: none;
    background: var(--neu-bg);
    box-shadow: 
        8px 8px 16px var(--neu-shadow-dark),
        -8px -8px 16px var(--neu-shadow-light);
}

.hero-image-landing {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hero-image-container:hover .hero-image-landing {
    transform: scale(1.05);
}

.hero-overlay-landing {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 20px;
}

.hero-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.hero-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
}

.hero-indicator {
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background: var(--neu-bg);
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        2px 2px 4px var(--neu-shadow-dark),
        -2px -2px 4px var(--neu-shadow-light);
}

.hero-indicator.active {
    background: var(--neu-accent);
    box-shadow: 
        inset 2px 2px 4px rgba(0, 0, 0, 0.1),
        0 0 10px rgba(99, 102, 241, 0.4);
}

/* About Section */
.about-section {
    padding: 0 20px;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.5s forwards;
}

.about-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--neu-text-primary);
    text-align: center;
    margin-bottom: 20px;
}

.about-description {
    font-size: 15px;
    color: var(--neu-text-secondary);
    text-align: center;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
    padding: 24px;
    border-radius: 20px;
    background: var(--neu-bg);
    box-shadow: 
        inset 4px 4px 8px var(--neu-shadow-dark),
        inset -4px -4px 8px var(--neu-shadow-light);
}

/* Features Section */
.features-section {
    padding: 0 20px;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.6s forwards;
}

.features-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--neu-text-primary);
    text-align: center;
    margin-bottom: 24px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.feature-card {
    background: var(--neu-bg);
    border-radius: 20px;
    padding: 24px 18px;
    text-align: center;
    border: none;
    box-shadow: 
        6px 6px 12px var(--neu-shadow-dark),
        -6px -6px 12px var(--neu-shadow-light);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        10px 10px 20px var(--neu-shadow-dark),
        -10px -10px 20px var(--neu-shadow-light);
}

.feature-card:active {
    box-shadow: 
        inset 4px 4px 8px var(--neu-shadow-dark),
        inset -4px -4px 8px var(--neu-shadow-light);
}

.feature-icon {
    font-size: 36px;
    display: block;
    margin-bottom: 12px;
}

.feature-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--neu-accent);
    margin-top: 10px;
    margin-bottom: 6px;
}

.feature-description {
    font-size: 12px;
    color: var(--neu-text-muted);
    text-align: center;
    line-height: 1.5;
}

/* Action Section */
.action-section {
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    opacity: 0;
    animation: fadeIn 1s ease-out 0.9s forwards;
    max-width: 420px;
    margin: 0 auto;
}

.primary-button {
    background: linear-gradient(135deg, var(--neu-accent), var(--neu-accent-light));
    color: #ffffff;
    padding: 18px 40px;
    border-radius: 20px;
    border: none;
    width: 100%;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-shadow: 
        6px 6px 12px var(--neu-shadow-dark),
        -6px -6px 12px var(--neu-shadow-light),
        0 4px 20px rgba(99, 102, 241, 0.3);
    transition: all 0.3s ease;
}

.primary-button:hover {
    transform: translateY(-3px);
    box-shadow: 
        8px 8px 16px var(--neu-shadow-dark),
        -8px -8px 16px var(--neu-shadow-light),
        0 8px 30px rgba(99, 102, 241, 0.4);
}

.primary-button:active {
    transform: translateY(0);
}

.secondary-button {
    background: var(--neu-bg);
    color: var(--neu-accent);
    padding: 18px 40px;
    border-radius: 20px;
    border: none;
    width: 100%;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-shadow: 
        6px 6px 12px var(--neu-shadow-dark),
        -6px -6px 12px var(--neu-shadow-light);
    transition: all 0.3s ease;
}

.secondary-button:hover {
    transform: translateY(-3px);
    box-shadow: 
        8px 8px 16px var(--neu-shadow-dark),
        -8px -8px 16px var(--neu-shadow-light);
    color: var(--neu-accent-light);
}

.secondary-button:active {
    transform: translateY(0);
    box-shadow: 
        inset 4px 4px 8px var(--neu-shadow-dark),
        inset -4px -4px 8px var(--neu-shadow-light);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .app-name {
        font-size: 28px;
    }
    
    .app-title {
        font-size: 28px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-image-container {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .logo-wrapper {
        width: 140px;
        height: 140px;
    }
    
    .logo {
        width: 110px;
        height: 110px;
    }
    
    .progress-container {
        left: 20px;
        right: 20px;
        bottom: 60px;
        padding: 15px;
    }
    
    .logo-rotation-wrapper {
        width: 90px;
        height: 90px;
    }
    
    .app-logo {
        width: 60px;
        height: 60px;
    }
    
    .header-section {
        padding-top: 40px;
    }
    
    .feature-card {
        padding: 20px 14px;
    }
}
