/* ============================================
   SeconfVPN Landing Page Styles
   ============================================ */

/* === Base Styles === */
:root {
    color-scheme: dark;
}

html { 
    scroll-snap-type: y mandatory; 
    scroll-behavior: smooth; 
    height: 100%; 
    font-size: 16px; 
}

/* Responsive font sizes */
@media (max-width: 480px) {
    html { font-size: 14px; }
}
@media (max-width: 350px) {
    html { font-size: 12px; }
}

body { 
    background-color: #0a0a0a; 
    color: #f3f4f6; 
    margin: 0; 
    overflow: hidden; 
    touch-action: none; 
    font-family: 'Inter', sans-serif; 
    height: 100%; 
    width: 100%; 
}

/* === Section Layout === */
section { 
    height: 100vh; 
    height: calc(var(--vh, 1vh) * 100); 
    scroll-snap-align: start; 
    scroll-snap-stop: always; 
    display: flex; 
    flex-direction: column; 
    justify-content: center; 
    align-items: center; 
    position: relative; 
    padding: 0 1.25rem; 
    width: 100%;
    overflow: hidden;
}

/* Responsive adjustments for small screens */
@media (max-height: 720px) {
    h2 { font-size: 2.75rem !important; line-height: 1 !important; margin-bottom: 1rem !important; }
    h3 { font-size: 2.25rem !important; }
    .mb-10, .mb-8, .mb-16 { margin-bottom: 1rem !important; }
    .py-20 { padding-top: 2rem !important; padding-bottom: 2rem !important; }
    .grid { gap: 0.75rem !important; }
    .glass-card { padding: 1rem !important; }
    header { top: 1rem !important; }
}

/* === Glass Morphism Effect === */
.glass-card { 
    background: rgba(23, 23, 23, 0.7); 
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px); 
    border: 1px solid rgba(255, 255, 255, 0.08); 
    transition: all 0.3s ease;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.glass-card:hover {
    transform: translateY(-2px);
    border-color: rgba(16, 185, 129, 0.2);
}

/* === Animated Text Effects === */
.shine-text { 
    background: linear-gradient(90deg, #10b981 0%, #10b981 45%, rgba(255, 255, 255, 0.9) 50%, #10b981 55%, #10b981 100%); 
    background-size: 400% auto; 
    color: transparent; 
    -webkit-background-clip: text; 
    background-clip: text; 
    animation: shine 5s ease-in-out infinite; 
}

@keyframes shine { 
    0% { background-position: 150% 0; } 
    30%, 100% { background-position: -50% 0; } 
}

/* === Reveal Animation === */
.reveal { 
    opacity: 0; 
    transform: translateY(30px); 
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1); 
}

.active .reveal { 
    opacity: 1; 
    transform: translateY(0); 
}

/* Stagger animation for multiple reveals */
.active .reveal:nth-child(1) { transition-delay: 0.1s; }
.active .reveal:nth-child(2) { transition-delay: 0.2s; }
.active .reveal:nth-child(3) { transition-delay: 0.3s; }
.active .reveal:nth-child(4) { transition-delay: 0.4s; }

/* === Background Glow Effects === */
.glow { 
    position: absolute; 
    border-radius: 50%; 
    filter: blur(80px); 
    pointer-events: none; 
    z-index: -1; 
    will-change: transform, opacity;
    transition: transform 0.3s ease-out;
}

/* === Navigation Buttons === */
.nav-container { 
    position: absolute; 
    left: 0; 
    right: 0; 
    display: flex; 
    justify-content: center; 
    pointer-events: none; 
    z-index: 50; 
    opacity: 0; 
    transition: opacity 0.2s ease; 
}

.active .nav-container { 
    opacity: 1; 
    transition: opacity 0.5s ease 0.4s; 
}

.nav-container-up { top: 1.5rem; }
.nav-container-down { bottom: 1.5rem; }

.nav-btn { 
    pointer-events: auto; 
    background: rgba(255, 255, 255, 0.03); 
    border: 1px solid rgba(255, 255, 255, 0.05); 
    width: 44px; 
    height: 44px; 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    transition: all 0.3s ease; 
    color: rgba(255, 255, 255, 0.4); 
    cursor: pointer; 
}

.nav-btn:hover {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: #10b981;
    transform: scale(1.1);
}

/* === S-Pen Support === */
.s-pen-hover { 
    transform: scale(1.05) !important; 
    border-color: rgba(16, 185, 129, 0.5) !important; 
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.2); 
}

.nav-btn.s-pen-hover { 
    background: rgba(16, 185, 129, 0.1) !important; 
    color: #10b981 !important; 
    transform: scale(1.15) !important; 
}

/* === 3D Card Hover Effect === */
.card-3d {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-3d:hover {
    transform: perspective(1000px) rotateX(2deg) rotateY(2deg) translateZ(10px);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.1);
}

/* === Floating Animation === */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* === Counter Animation === */
.counter {
    display: inline-block;
    transition: all 0.3s ease;
}

/* === Particle Background === */
.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.3);
    pointer-events: none;
    animation: particle-float 15s infinite ease-in-out;
}

@keyframes particle-float {
    0%, 100% { 
        transform: translate(0, 0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    50% { 
        transform: translate(var(--tx), var(--ty)) scale(1.5);
        opacity: 0.3;
    }
    90% {
        opacity: 0.5;
    }
}

/* === Progress Indicator === */
.progress-indicator {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

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

.progress-dot.active {
    background: #10b981;
    transform: scale(1.5);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.progress-dot:hover {
    background: rgba(16, 185, 129, 0.6);
    transform: scale(1.3);
}

@media (max-width: 768px) {
    .progress-indicator {
        right: 1rem;
    }
}

/* === Smooth Transitions === */
* {
    -webkit-tap-highlight-color: transparent;
}

a, button {
    transition: all 0.3s ease;
}

/* === Loading Animation === */
@keyframes pulse-slow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-pulse-slow {
    animation: pulse-slow 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
