/* ==========================================================================
   AkustykaEdu - Nowoczesny System Stylów
   ========================================================================== */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* Reset i podstawowe style */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Kolory główne - nie-AI wygląd */
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #dbeafe;
    --secondary-color: #64748b;
    --accent-color: #ffffff;

    /* Kolory tła */
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-dark: #0f172a;

    /* Kolory tekstu */
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --text-inverse: #ffffff;

    /* Gradients dla bardziej organicznego wyglądu */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #ffffff 0%, #f9f9ff 50%, #f0f4ff 100%);
    --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);

    /* Cienie */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

    /* Spacings */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Typography */
    --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;

    /* Border radius dla organicznych kształtów */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 50px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
}

/* Base styles */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

p {
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
}

.accent {
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Buttons - bardziej naturalne */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--font-size-base);
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    font-family: inherit;
}

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

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

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

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

.btn--secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid #e2e8f0;
}

.btn--secondary:hover {
    background: var(--bg-tertiary);
    transform: translateY(-1px);
}

.btn--outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn--outline:hover {
    background: var(--primary-color);
    color: white;
}

.btn--large {
    padding: var(--space-md) var(--space-2xl);
    font-size: var(--font-size-lg);
    border-radius: var(--radius-2xl);
}

.btn--small {
    padding: var(--space-xs) var(--space-md);
    font-size: var(--font-size-sm);
}

.btn--full-width {
    width: 100%;
    justify-content: center;
}

/* Header - bardziej organiczny */
.main-header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    z-index: 1000;
    transition: all var(--transition-base);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    transition: transform var(--transition-base);
}

.logo:hover {
    transform: scale(1.05);
}

.logo svg {
    color: var(--primary-color);
}

.main-nav {
    display: flex;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: var(--space-lg);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all var(--transition-base);
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--primary-color);
    background: var(--primary-light);
}

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

/* Hero Section - więcej organiczności */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: var(--space-3xl) 0;
    position: relative;
    overflow: hidden;
    color: white;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 300"><defs><linearGradient id="grad" x1="0%" y1="0%" x2="100%" y2="0%"><stop offset="0%" style="stop-color:rgba(255,255,255,0.1);stop-opacity:1" /><stop offset="100%" style="stop-color:rgba(255,255,255,0.05);stop-opacity:1" /></linearGradient></defs><path fill="url(%23grad)" d="M0,100 C150,200 350,0 500,100 C650,200 850,0 1000,100 L1000,300 L0,300 Z"/></svg>') no-repeat bottom center;
    background-size: 100% 200px;
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero__title {
    font-size: var(--font-size-5xl);
    font-weight: 800;
    margin-bottom: var(--space-lg);
    line-height: 1.1;
}

.hero__subtitle {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-2xl);
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero__actions {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    margin-bottom: var(--space-3xl);
    flex-wrap: wrap;
}

.hero__stats {
    display: flex;
    justify-content: center;
    gap: var(--space-2xl);
    margin-top: var(--space-3xl);
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat__number {
    display: block;
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

.stat__label {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.8);
}

/* Visual Effects */
.hero__visual {
    position: absolute;
    right: -10%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.1;
}

.sound-wave {
    display: flex;
    align-items: end;
    gap: 4px;
    height: 100px;
}

.wave {
    width: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    animation: wave 1.5s ease-in-out infinite alternate;
}

.wave--1 { height: 20px; animation-delay: 0s; }
.wave--2 { height: 40px; animation-delay: 0.1s; }
.wave--3 { height: 60px; animation-delay: 0.2s; }
.wave--4 { height: 80px; animation-delay: 0.3s; }
.wave--5 { height: 50px; animation-delay: 0.4s; }

@keyframes wave {
    0% { transform: scaleY(1); }
    100% { transform: scaleY(0.5); opacity: 0.7; }
}

/* Sections */
.subjects, .for-teachers, .for-students {
    padding: var(--space-3xl) 0;
}

.subjects {
    background: var(--bg-secondary);
}

.for-teachers {
    background: var(--bg-primary);
}

.for-students {
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Subject Cards - bardziej organiczne */
.subjects__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-2xl);
    margin-top: var(--space-3xl);
}

.subject-card {
    background: white;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid rgba(226, 232, 240, 0.5);
}

.subject-card:hover {
    transform: translateY(-8px) rotate(1deg);
    box-shadow: var(--shadow-2xl);
}

.subject-card__header {
    padding: var(--space-2xl);
    background: var(--gradient-primary);
    color: white;
    text-align: center;
}

.subject-card__icon {
    margin-bottom: var(--space-lg);
}

.subject-card__icon svg {
    width: 48px;
    height: 48px;
}

.subject-card__title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin: 0;
	color: #ffffff;
}

.nagłówek {
	color: #FFD6C1	;
}

.subject-card__content {
    padding: var(--space-2xl);
}

.subject-card__topics {
    list-style: none;
    margin-bottom: var(--space-xl);
}

.subject-card__topics li {
    padding: var(--space-xs) 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: var(--space-lg);
}

.subject-card__topics li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

.subject-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-md);
    border-top: 1px solid #f1f5f9;
}

.level {
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
    text-transform: uppercase;
}

.level--beginner { background: #dcfce7; color: #166534; }
.level--intermediate { background: #fef3c7; color: #92400e; }
.level--advanced { background: #fecaca; color: #991b1b; }

.duration {
    color: var(--text-light);
    font-size: var(--font-size-sm);
}

/* Feature sections */
.teacher-features, .learning-path {
    margin-top: var(--space-3xl);
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
    margin-bottom: var(--space-3xl);
}

.feature-row--reverse {
    direction: rtl;
}

.feature-row--reverse > * {
    direction: ltr;
}

.feature-content h3 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-md);
}

.feature-content p {
    font-size: var(--font-size-lg);
    margin-bottom: var(--space-lg);
}

.feature-content ul {
    list-style: none;
    padding: 0;
}

.feature-content li {
    padding: var(--space-xs) 0;
    position: relative;
    padding-left: var(--space-lg);
    color: var(--text-secondary);
}

.feature-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.feature-visual {
    height: 300px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-2xl);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.mockup {
    width: 80%;
    height: 80%;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    position: relative;
}

.mockup::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    height: 40%;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    opacity: 0.7;
}

.mockup::after {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    height: 35%;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
}

/* Learning Path */
.learning-path {
    position: relative;
    padding: var(--space-3xl) 0;
}

.learning-path::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--gradient-primary);
    transform: translateX(-50%);
}

.path-step {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-3xl);
    position: relative;
}

.path-step:nth-child(even) {
    flex-direction: row-reverse;
}

.path-step__number {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--font-size-lg);
    position: relative;
    z-index: 2;
    margin: 0 var(--space-2xl);
}

.path-step__content {
    flex: 1;
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    max-width: 400px;
}

.path-step__content h3 {
    margin-bottom: var(--space-sm);
}

/* Student Tools */
.student-tools {
    margin-top: var(--space-3xl);
    text-align: center;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.tool-card {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    text-align: center;
}

.tool-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.tool-card__icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
    display: block;
}

.tool-card h4 {
    margin-bottom: var(--space-sm);
    font-size: var(--font-size-lg);
}

.tool-card p {
    color: var(--text-secondary);
    margin: 0;
}

/* Footer */
.main-footer {
    background: var(--bg-dark);
    color: var(--text-inverse);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.footer-description {
    color: #94a3b8;
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: var(--space-md);
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all var(--transition-base);
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.footer-section h3 {
    color: white;
    margin-bottom: var(--space-lg);
    font-size: var(--font-size-lg);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--space-sm);
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color var(--transition-base);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-xl);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #64748b;
}

.footer-badges {
    display: flex;
    gap: var(--space-md);
}

.badge {
    padding: var(--space-xs) var(--space-sm);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .feature-row {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-md);
    }

    .main-nav {
        display: none;
    }

    .hero__title {
        font-size: var(--font-size-3xl);
    }

    .hero__actions {
        flex-direction: column;
        align-items: center;
    }

    .hero__stats {
        gap: var(--space-lg);
    }

    .subjects__grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .path-step {
        flex-direction: column !important;
        text-align: center;
    }

    .path-step__number {
        margin: 0 0 var(--space-lg) 0;
    }

    .learning-path::before {
        display: none;
    }

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero__actions {
        width: 100%;
    }

    .btn--large {
        width: 100%;
        padding: var(--space-lg);
    }

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

    .footer-badges {
        flex-direction: column;
    }
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    padding: var(--space-sm);
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-base);
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
}

/* Loading states i mikrointerakcje */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    100% {
        left: 100%;
    }
}

/* Scroll indicators */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--gradient-primary);
    z-index: 9999;
    transition: width 0.1s ease;
}