/* ============================================
   PulseWave AI VZW - Complete Stylesheet
   ============================================ */

/* ============================================
   CSS Variables (Colors & Spacing)
   ============================================ */
:root {
    /* Brand Colors */
    --primary-color: #0066CC;
    --secondary-color: #00A651;
    --accent-color: #E63946;
    --purple-accent: #7C4DFF;
    
    /* Text Colors */
    --text-color: #333333;
    --text-light: #666666;
    --text-lighter: #999999;
    
    /* Background Colors */
    --bg-color: #FFFFFF;
    --bg-light: #F8F9FA;
    --bg-dark: #2C3E50;
    --border-color: #E0E0E0;
    
    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-cta: linear-gradient(135deg, #0066CC 0%, #004C99 100%);
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 3rem;
    --spacing-xl: 4rem;
    --spacing-xxl: 6rem;
    
    /* Layout */
    --max-width: 1200px;
    --header-height: 70px;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 
                 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--text-color);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.1rem;
}

h6 {
    font-size: 1rem;
}

p {
    margin-bottom: var(--spacing-sm);
    line-height: 1.7;
}

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

a:hover {
    color: #004C99;
}

ul, ol {
    margin-left: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
}

strong, b {
    font-weight: 600;
}

.lead {
    font-size: 1.25rem;
    color: var(--text-light);
    line-height: 1.8;
}

.small-text {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* ============================================
   Layout Containers
   ============================================ */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

main {
    min-height: calc(100vh - var(--header-height));
}

section {
    padding: var(--spacing-xl) 0;
}

/* ============================================
   Header & Navigation
   ============================================ */
.site-header {
    background: white;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

.logo:hover {
    opacity: 0.8;
    color: var(--primary-color);
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: var(--spacing-md);
    margin: 0;
}

.main-nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
}

.main-nav a:hover {
    color: var(--primary-color);
    background: var(--bg-light);
}

.main-nav a.active {
    color: var(--primary-color);
    background: var(--bg-light);
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: var(--spacing-xs);
    margin-left: var(--spacing-md);
}

.lang-switcher a {
    padding: 0.4rem 0.8rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    color: var(--text-light);
    border: 2px solid var(--border-color);
    transition: all var(--transition-fast);
}

.lang-switcher a:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.lang-switcher a.active {
    color: white;
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* Mobile Menu Toggle (Hidden on desktop, shown on mobile) */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--text-color);
    transition: var(--transition-fast);
    border-radius: 2px;
}

/* ============================================
   Hero Section
   ============================================ */
.hero-section {
    background: var(--gradient-hero);
    color: white;
    padding: var(--spacing-xxl) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><path d="M0 50 Q 25 30, 50 50 T 100 50" stroke="white" stroke-width="0.5" fill="none" opacity="0.1"/></svg>');
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.hero-section h1 {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtext {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   Buttons
   ============================================ */
.button {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
}

.button.primary {
    background: white;
    color: var(--primary-color);
}

.button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.button.secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.button.secondary:hover {
    background: white;
    color: var(--primary-color);
}

/* CTA Section buttons (inverted colors) */
.cta-section .button.primary {
    background: white;
    color: var(--primary-color);
}

.cta-section .button.secondary {
    background: transparent;
    color: white;
    border-color: white;
}

/* ============================================
   Impact/Stats Section
   ============================================ */
.impact-section {
    padding: var(--spacing-xl) 0;
    background: var(--bg-light);
    text-align: center;
}

.impact-section h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-lg);
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.stat {
    padding: var(--spacing-md);
    transition: transform var(--transition-normal);
}

.stat:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-xs);
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.4;
}

/* ============================================
   Features Section
   ============================================ */
.features-section {
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.features-section h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-lg);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.feature {
    padding: var(--spacing-md);
    border-radius: var(--border-radius-lg);
    background: white;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    border: 1px solid var(--border-color);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    line-height: 1;
}

.feature h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    color: var(--primary-color);
}

.feature p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 0;
}

/* ============================================
   Mission Section
   ============================================ */
.mission-section {
    padding: var(--spacing-xl) 0;
    background: var(--bg-light);
    text-align: center;
}

.mission-section h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.mission-section .lead {
    max-width: 800px;
    margin: 0 auto var(--spacing-md);
    font-size: 1.25rem;
    color: var(--text-light);
    line-height: 1.8;
}

.mission-section .button {
    margin-top: var(--spacing-md);
}

/* ============================================
   Partners Section
   ============================================ */
.partners-section {
    padding: var(--spacing-xl) 0;
    text-align: center;
}

.partners-section h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-lg);
}

.partners {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.partner {
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--bg-light);
    border-radius: var(--border-radius);
    font-weight: 600;
    color: var(--text-color);
    border: 2px solid var(--border-color);
    transition: all var(--transition-fast);
}

.partner:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    padding: var(--spacing-xl) 0;
    background: var(--primary-color);
    color: white;
    text-align: center;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-sm);
    color: white;
}

.cta-section p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.9);
    padding: var(--spacing-xl) 0 var(--spacing-md);
    margin-top: var(--spacing-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-section h3 {
    color: white;
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
}

.footer-section p {
    opacity: 0.8;
    line-height: 1.8;
    font-size: 0.9rem;
}

.footer-section ul {
    list-style: none;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--transition-fast);
    font-size: 0.9rem;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
    opacity: 0.7;
}

/* ============================================
   Forms
   ============================================ */
.form-group {
    margin-bottom: var(--spacing-md);
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 600;
    color: var(--text-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ============================================
   Alerts & Messages
   ============================================ */
.alert {
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius);
    margin-bottom: var(--spacing-md);
}

.alert.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

.alert.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* ============================================
   Utility Classes
   ============================================ */
.text-center {
    text-align: center;
}

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

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

.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-md); }
.mt-3 { margin-top: var(--spacing-lg); }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-md); }
.mb-3 { margin-bottom: var(--spacing-lg); }

.d-none { display: none; }
.d-block { display: block; }
.d-inline-block { display: inline-block; }

/* ============================================
   Responsive Design
   ============================================ */

/* Tablet */
@media (max-width: 968px) {
    :root {
        --spacing-xl: 3rem;
        --spacing-xxl: 4rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    :root {
        --spacing-md: 1.5rem;
        --spacing-lg: 2rem;
        --spacing-xl: 2.5rem;
        --spacing-xxl: 3rem;
    }
    
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    /* Header */
    .header-content {
        flex-wrap: wrap;
    }
    
    .main-nav {
        display: none;
        width: 100%;
        order: 3;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: var(--spacing-xs);
        padding: var(--spacing-sm) 0;
    }
    
    .main-nav a {
        display: block;
        padding: var(--spacing-sm);
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .lang-switcher {
        margin-left: auto;
        order: 2;
    }
    
    /* Hero */
    .hero-section {
        padding: var(--spacing-xl) 0;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-subtext {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .button {
        width: 100%;
        max-width: 300px;
    }
    
    /* Stats */
    .stats {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    /* Features */
    .features {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
    
    /* Sections */
    section {
        padding: var(--spacing-lg) 0;
    }
    
    .impact-section h2,
    .features-section h2,
    .mission-section h2,
    .partners-section h2,
    .cta-section h2 {
        font-size: 1.75rem;
    }
    
    .lead {
        font-size: 1.1rem;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .stats {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .partners {
        flex-direction: column;
        align-items: stretch;
    }
    
    .partner {
        text-align: center;
    }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    .site-header,
    .site-footer,
    .hero-buttons,
    .cta-buttons,
    .lang-switcher {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
    }
    
    a {
        text-decoration: underline;
        color: #000;
    }
    
    section {
        page-break-inside: avoid;
    }
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.6s ease-out;
}

/* Smooth scroll offset for sticky header */
html {
    scroll-padding-top: calc(var(--header-height) + 20px);
}

/* ============================================
   Accessibility
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Focus styles */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}