/*
Theme Name: Programista v2
Theme URI: https://programista.pl
Description: Custom child theme for Programista v2 landing page - a high-tech health program for software developers. Dark, immersive design optimized for Elementor.
Author: Programista Team
Author URI: https://programista.pl
Template: hello-elementor
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: programista-v2
*/

/* ==========================================================================
   DESIGN SYSTEM - Programista v2
   ========================================================================== */

:root {
    /* Colors */
    --color-bg-primary: #000000;
    --color-bg-secondary: #0a0a0a;
    --color-bg-tertiary: #141414;
    --color-text-primary: #E5E5E5;
    --color-text-secondary: #B8B8B8;
    --color-text-muted: #6B6B6B;
    --color-accent-primary: #00BFFF;
    --color-accent-glow: rgba(0, 191, 255, 0.3);
    --color-accent-dim: rgba(0, 191, 255, 0.1);
    
    /* Typography */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Spacing */
    --section-min-height: 100vh;
    --section-padding: 120px 40px;
    --container-max-width: 1400px;
    
    /* Effects */
    --shadow-glow: 0 0 40px var(--color-accent-glow);
    --shadow-card: 0 10px 60px rgba(0, 0, 0, 0.5);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   BASE STYLES
   ========================================================================== */

body {
    background-color: var(--color-bg-primary) !important;
    color: var(--color-text-primary) !important;
    font-family: var(--font-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Remove default margins/padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    background: linear-gradient(135deg, var(--color-text-primary) 0%, var(--color-accent-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    position: relative;
    padding-bottom: 30px;
    display: inline-block;
}

/* Exclude hero h1 from getting underline */
.hero-headline-wrapper h1::before,
.hero-headline-wrapper h1::after {
    display: none !important;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    overflow: hidden;
}

h2::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--color-accent-primary) 30%, 
        var(--color-accent-primary) 70%,
        transparent 100%);
    box-shadow: 0 0 15px rgba(0, 191, 255, 0.6);
    animation: flashLineH2 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes flashLineH2 {
    0% {
        left: -100%;
        opacity: 0;
    }
    5% {
        opacity: 1;
    }
    45% {
        left: 100%;
        opacity: 1;
    }
    50% {
        left: 100%;
        opacity: 0;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--color-text-primary);
}

h4 {
    font-size: clamp(1.25rem, 2vw, 1.75rem);
}

p {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    color: var(--color-text-secondary);
    margin-bottom: 1.5rem;
    max-width: 70ch;
}

a {
    color: var(--color-accent-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--color-text-primary);
    text-shadow: var(--shadow-glow);
}

/* ==========================================================================
   ELEMENTOR SECTIONS
   ========================================================================== */

/* Override Elementor default backgrounds */
.elementor-section {
    background-color: transparent !important;
}

/* Full viewport sections */
.elementor-section.section-fullheight {
    min-height: var(--section-min-height);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Triple height sections for content-heavy areas */
.elementor-section.section-triple-height {
    min-height: calc(var(--section-min-height) * 3);
    padding: var(--section-padding);
}

/* Floating content containers */
.floating-container {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.6) 0%, rgba(10, 10, 10, 0.4) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 191, 255, 0.1);
    border-radius: 20px;
    padding: 60px 40px;
    box-shadow: var(--shadow-card);
    transition: var(--transition-smooth);
}

.floating-container:hover {
    border-color: rgba(0, 191, 255, 0.3);
    box-shadow: 0 20px 80px rgba(0, 191, 255, 0.2);
    transform: translateY(-5px);
}

/* ==========================================================================
   BUTTONS & CTAs
   ========================================================================== */

.btn-primary,
.elementor-button.btn-primary {
    background: linear-gradient(135deg, var(--color-accent-primary) 0%, #0099CC 100%);
    color: #000;
    font-weight: 700;
    font-size: 1.125rem;
    padding: 20px 60px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-glow);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 60px var(--color-accent-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--color-accent-primary);
    border: 2px solid var(--color-accent-primary);
    padding: 18px 50px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    background: var(--color-accent-primary);
    color: #000;
    box-shadow: var(--shadow-glow);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 50% 50%, rgba(0, 191, 255, 0.05) 0%, transparent 70%);
}

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

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--color-accent-primary);
    border-radius: 50%;
    opacity: 0.4;
    box-shadow: 0 0 10px rgba(0, 191, 255, 0.5);
}

.particle:nth-child(1) { left: 10%; top: 20%; animation: float 15s ease-in-out infinite; }
.particle:nth-child(2) { left: 25%; top: 60%; animation: float 18s ease-in-out infinite 2s; }
.particle:nth-child(3) { left: 40%; top: 80%; animation: float 20s ease-in-out infinite 4s; }
.particle:nth-child(4) { left: 60%; top: 30%; animation: float 22s ease-in-out infinite 6s; }
.particle:nth-child(5) { left: 75%; top: 70%; animation: float 17s ease-in-out infinite 8s; }
.particle:nth-child(6) { left: 85%; top: 40%; animation: float 19s ease-in-out infinite 10s; }
.particle:nth-child(7) { left: 15%; top: 90%; animation: float 21s ease-in-out infinite 3s; }
.particle:nth-child(8) { left: 50%; top: 10%; animation: float 16s ease-in-out infinite 5s; }
.particle:nth-child(9) { left: 90%; top: 85%; animation: float 23s ease-in-out infinite 7s; }
.particle:nth-child(10) { left: 30%; top: 50%; animation: float 18s ease-in-out infinite 9s; }
.particle:nth-child(11) { left: 5%; top: 45%; animation: float 19s ease-in-out infinite 1s; }
.particle:nth-child(12) { left: 35%; top: 15%; animation: float 21s ease-in-out infinite 3s; }
.particle:nth-child(13) { left: 55%; top: 65%; animation: float 17s ease-in-out infinite 5s; }
.particle:nth-child(14) { left: 70%; top: 25%; animation: float 20s ease-in-out infinite 7s; }
.particle:nth-child(15) { left: 80%; top: 75%; animation: float 16s ease-in-out infinite 9s; }
.particle:nth-child(16) { left: 20%; top: 35%; animation: float 22s ease-in-out infinite 2s; }
.particle:nth-child(17) { left: 45%; top: 55%; animation: float 18s ease-in-out infinite 4s; }
.particle:nth-child(18) { left: 65%; top: 90%; animation: float 19s ease-in-out infinite 6s; }
.particle:nth-child(19) { left: 95%; top: 50%; animation: float 21s ease-in-out infinite 8s; }
.particle:nth-child(20) { left: 12%; top: 70%; animation: float 17s ease-in-out infinite 10s; }

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.4;
    }
    25% {
        transform: translate(30px, -30px) scale(1.2);
        opacity: 0.6;
    }
    50% {
        transform: translate(-20px, 20px) scale(0.8);
        opacity: 0.3;
    }
    75% {
        transform: translate(40px, 10px) scale(1.1);
        opacity: 0.5;
    }
}

/* Tech Flashes */
.tech-flashes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 2;
}

.tech-flash {
    position: absolute;
    width: 2px;
    height: 100px;
    background: linear-gradient(180deg, transparent, var(--color-accent-primary), transparent);
    opacity: 0;
    animation: techFlash 8s ease-in-out infinite;
}

.tech-flash:nth-child(1) {
    left: 20%;
    animation-delay: 0s;
}

.tech-flash:nth-child(2) {
    left: 50%;
    animation-delay: 3s;
}

.tech-flash:nth-child(3) {
    left: 80%;
    animation-delay: 6s;
}

@keyframes techFlash {
    0%, 100% {
        transform: translateY(-100%);
        opacity: 0;
    }
    10% {
        opacity: 0.7;
    }
    50% {
        transform: translateY(calc(100vh + 100px));
        opacity: 0.3;
    }
    100% {
        transform: translateY(calc(100vh + 200px));
        opacity: 0;
    }
}

.hero-content {
    text-align: center;
    z-index: 10;
    max-width: 900px;
    padding: 40px;
    position: relative;
}

.hero-subtitle {
    color: var(--color-accent-primary);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 20px;
}

.hero-title {
    margin-bottom: 30px;
}

.hero-headline-wrapper {
    position: relative;
    display: inline-block;
    margin-bottom: 30px;
}

.hero-headline-wrapper h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--color-text-primary);
    margin: 0;
    padding-bottom: 0.3em;
}

/* Animated Underline */
.animated-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    overflow: hidden;
}

.animated-underline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0; /* important: no -100% */
    width: 200%; /* wider for seamless travel */
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--color-accent-primary) 45%,
        var(--color-accent-primary) 55%,
        transparent 100%
    );
    box-shadow: 0 0 20px rgba(0, 191, 255, 0.8);

    transform: translateX(-50%);
    animation: flashLine 3.5s linear infinite;
}

@keyframes flashLine {
    from {
        transform: translateX(-50%);
    }
    to {
        transform: translateX(0%);
    }
}

.hero-description {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    color: var(--color-text-secondary);
    margin-bottom: 50px;
    max-width: 100%;
}

/* ==========================================================================
   CONTENT SECTIONS
   ========================================================================== */

/* Problem Section */
.problem-section {
    background: linear-gradient(180deg, transparent 0%, rgba(139, 0, 0, 0.03) 50%, transparent 100%);
}

/* Solution Section */
.solution-section {
    background: linear-gradient(180deg, transparent 0%, rgba(0, 191, 255, 0.03) 50%, transparent 100%);
}

/* Module Cards */
.module-card {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.8) 0%, rgba(10, 10, 10, 0.6) 100%);
    border: 1px solid rgba(0, 191, 255, 0.2);
    border-radius: 16px;
    padding: 40px 30px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent-primary), transparent);
    opacity: 0;
    transition: var(--transition-smooth);
}

.module-card:hover::before {
    opacity: 1;
}

.module-card:hover {
    border-color: var(--color-accent-primary);
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 191, 255, 0.2);
}

.module-icon {
    font-size: 3rem;
    color: var(--color-accent-primary);
    margin-bottom: 20px;
}

/* ==========================================================================
   PRICING SECTION
   ========================================================================== */

.pricing-card {
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.1) 0%, rgba(20, 20, 20, 0.8) 100%);
    border: 2px solid var(--color-accent-primary);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    box-shadow: var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 191, 255, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

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

.price {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 700;
    color: var(--color-accent-primary);
    text-shadow: var(--shadow-glow);
    margin: 30px 0;
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */

.faq-item {
    background: rgba(20, 20, 20, 0.5);
    border: 1px solid rgba(0, 191, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 20px;
    transition: var(--transition-smooth);
}

.faq-item:hover {
    border-color: var(--color-accent-primary);
    background: rgba(20, 20, 20, 0.8);
}

.faq-question {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: 15px;
}

.faq-answer {
    color: var(--color-text-secondary);
    line-height: 1.8;
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */

.testimonial-card {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.6) 0%, rgba(10, 10, 10, 0.4) 100%);
    border-left: 3px solid var(--color-accent-primary);
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 30px;
    position: relative;
}

.testimonial-text {
    font-style: italic;
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
}

.testimonial-author {
    font-weight: 600;
    color: var(--color-accent-primary);
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */

.text-center {
    text-align: center;
}

.text-accent {
    color: var(--color-accent-primary);
}

.text-glow {
    text-shadow: var(--shadow-glow);
}

.mb-small { margin-bottom: 20px; }
.mb-medium { margin-bottom: 40px; }
.mb-large { margin-bottom: 80px; }

.mt-small { margin-top: 20px; }
.mt-medium { margin-top: 40px; }
.mt-large { margin-top: 80px; }

/* Grid System for Elementor compatibility */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
    :root {
        --section-padding: 80px 20px;
    }
    
    .floating-container {
        padding: 40px 20px;
    }
    
    .hero-content {
        padding: 20px;
    }
    
    .btn-primary {
        padding: 16px 40px;
        font-size: 1rem;
    }
    
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

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

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Scroll reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

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

/* ==========================================================================
   CUSTOM SCROLLBAR
   ========================================================================== */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--color-accent-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-primary);
}
