/* ============================================
   FLOWREC - PREMIUM WINDOWS SCREEN RECORDER
   Ultra-Modern Product Page Styles
   ============================================ */

/* ============================================
   CSS VARIABLES - RED/ORANGE + DARK THEME
   ============================================ */
:root {
    --red-primary: #ef4444;
    --orange-primary: #f97316;
    --dark-red: #dc2626;
    --amber-accent: #fb923c;

    --gradient-primary: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
    --gradient-secondary: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    --gradient-accent: linear-gradient(135deg, #ef4444 0%, #fb923c 100%);

    --bg-dark: #0f0a14;
    --bg-darker: #0a0610;
    --bg-card: rgba(239, 68, 68, 0.05);
    --bg-card-hover: rgba(239, 68, 68, 0.1);

    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;

    --shadow-sm: 0 2px 10px rgba(239, 68, 68, 0.1);
    --shadow-md: 0 10px 30px rgba(239, 68, 68, 0.2);
    --shadow-lg: 0 20px 60px rgba(239, 68, 68, 0.3);
    --shadow-glow: 0 0 40px rgba(239, 68, 68, 0.4);

    --border-radius: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   GLOBAL STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================
   SCROLL PROGRESS INDICATOR
   ============================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--gradient-accent);
    z-index: 10000;
    width: 0;
    transition: width 0.1s ease;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.6);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 10, 20, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(239, 68, 68, 0.1);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--red-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ============================================
   BACKGROUND ELEMENTS
   ============================================ */
.rec-icon {
    position: fixed;
    font-size: 4rem;
    opacity: 0.03;
    pointer-events: none;
    z-index: 1;
    animation: float 8s ease-in-out infinite;
}

.video-wave {
    position: fixed;
    width: 100%;
    height: 400px;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    animation: wave 15s ease-in-out infinite;
}

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

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

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 10;
    padding: 8rem 0 4rem;
}

.logo-wrapper {
    margin-bottom: 2rem;
}

.hero-logo {
    width: 180px;
    height: 180px;
    object-fit: contain;
    border-radius: 30px;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transition: var(--transition);
    animation: logoFloat 6s ease-in-out infinite;
    border: 3px solid rgba(239, 68, 68, 0.2);
}

.hero-logo:hover {
    transform: scale(1.05) rotateY(5deg);
    box-shadow: 0 30px 80px rgba(239, 68, 68, 0.4), var(--shadow-glow);
}

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

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.gradient-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 5s ease infinite;
    background-size: 200% 200%;
}

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

.tagline {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.description {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

/* ============================================
   BUTTONS
   ============================================ */
.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: rgba(239, 68, 68, 0.1);
    color: var(--red-primary);
    border: 2px solid var(--red-primary);
}

.btn-secondary:hover {
    background: rgba(239, 68, 68, 0.2);
    transform: translateY(-3px);
}

.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: scale(0);
    pointer-events: none;
}

.btn-ripple.rippling {
    animation: ripple 0.6s ease-out;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* ============================================
   BADGES
   ============================================ */
.badges {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.badge {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
    animation: badgePulse 2s ease-in-out infinite;
}

.badge:hover {
    background: rgba(239, 68, 68, 0.2);
    border-color: var(--red-primary);
    transform: translateY(-3px);
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    50% { box-shadow: 0 0 20px 5px rgba(239, 68, 68, 0.2); }
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].animated {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   SECTION STYLES
   ============================================ */
section {
    padding: 6rem 0;
    position: relative;
    z-index: 10;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid rgba(239, 68, 68, 0.1);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    text-align: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--red-primary);
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

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

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}

/* ============================================
   DOWNLOAD SECTION
   ============================================ */
.download-section {
    background: var(--bg-darker);
}

.download-content {
    max-width: 800px;
    margin: 0 auto;
}

.download-main {
    background: var(--bg-card);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: var(--border-radius);
    padding: 3rem;
    text-align: center;
}

.download-icon-large {
    font-size: 5rem;
    margin-bottom: 1.5rem;
}

.download-main h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.download-requirement {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.download-options {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.download-btn {
    font-size: 1.1rem;
    padding: 1.2rem 2.5rem;
}

/* ============================================
   SUPPORT DEVELOPMENT SECTION
   ============================================ */
.support-section {
    background: linear-gradient(180deg, var(--bg-darker) 0%, var(--bg-dark) 100%);
    padding: 6rem 0;
}

.support-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.support-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.support-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.8;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(249, 115, 22, 0.1) 100%);
    padding: 6rem 0;
}

.cta-box {
    background: var(--bg-card);
    border: 2px solid rgba(239, 68, 68, 0.2);
    border-radius: 24px;
    padding: 4rem 3rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: var(--shadow-lg);
}

.cta-box h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-box p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--bg-darker);
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(239, 68, 68, 0.1);
}

.footer p {
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.footer a {
    color: var(--red-primary);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--orange-primary);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .tagline {
        font-size: 1.2rem;
    }

    .description {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        gap: 1rem;
    }

    .cta-buttons,
    .download-options {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-logo {
        width: 140px;
        height: 140px;
    }
}

/* ============================================
   KEYBOARD NAVIGATION
   ============================================ */
body.keyboard-nav *:focus {
    outline: 3px solid var(--red-primary);
    outline-offset: 3px;
}

/* ============================================
   PREMIUM LANGUAGE PANEL
   ============================================ */
.language-switcher {
    position: relative;
    display: inline-block;
}

.language-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 10px 20px;
    font-size: 0.95em;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.language-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.language-btn:active {
    transform: translateY(0);
}

.globe-icon {
    font-size: 1.2em;
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,250,252,0.9) 100%); backdrop-filter: blur(20px); border: 1px solid rgba(148,163,184,0.2);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 20px;
    min-width: 400px;
    max-height: 500px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.language-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-dropdown-header {
    font-size: 1.1em;
    font-weight: 700;
    color: #334155 !important; text-shadow: 0 1px 2px rgba(0,0,0,0.1) !important;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f0f0f0;
}

.language-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.language-option {
    padding: 12px 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(248,250,252,0.8) 100%) !important; backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(148,163,184,0.3) !important; box-shadow: 0 4px 20px rgba(99,102,241,0.1), inset 0 1px 0 rgba(255,255,255,0.6) !important;
    text-decoration: none;
    color: #334155 !important; text-shadow: 0 1px 2px rgba(0,0,0,0.1) !important;
    font-weight: 600;
    font-size: 0.95em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.language-option:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateX(5px);
    border-color: transparent;
}

.language-option.current {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border: 2px solid #667eea !important;
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.4), 0 0 20px rgba(102, 126, 234, 0.3), inset 0 1px 0 rgba(255,255,255,0.3) !important;
    transform: scale(1.02) !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3) !important;
    font-weight: 700 !important;
}

.language-flag {
    font-size: 1.3em;
}

/* Custom scrollbar for language dropdown */
.language-dropdown::-webkit-scrollbar {
    width: 8px;
}

.language-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.language-dropdown::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
}

.language-dropdown::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

/* Mobile Responsive for Language Panel */
@media (max-width: 768px) {
    .language-dropdown {
        min-width: 320px;
        max-width: 90vw;
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(-10px);
    }

    .language-dropdown.active {
        transform: translateX(-50%) translateY(0);
    }

    .language-grid {
        grid-template-columns: 1fr;
    }
}
