/**
 * ItEnAi Computer Literacy Course Landing Page Styles
 * Modern, responsive design with gradient themes
 */

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    gap: 8px;
}

.btn-primary {
    background: linear-gradient(135deg, #01b7ff 0%, #e3f300 100%);
    color: black;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #01b7ff 0%, #e3f300 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.btn-outline {
    background: transparent;
    color: #374151;
    border: 2px solid #d1d5db;
}

.btn-outline:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.btn-white {
    color: black !important;
    border-color: white !important;
}

.btn-white:hover {
    background: white !important;
    color: #01b7ff !important;
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

.icon {
    width: 20px;
    height: 20px;
}

/* Badge */
.badge {
    display: inline-block;
    background: linear-gradient(135deg, #01b7ff 0%, #e3f300 100%);
    color: black;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 18px;
    font-weight: 600;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #01b7ff 0%, #e3f300 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Header */
.header {
    background: linear-gradient(135deg, #01b7ff 0%, #e3f300 100%);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #e3f300 0%, #01b7ff 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    font-weight: 700;
    font-size: 18px;
}

.logo-text {
    font-size: 32px;
    font-weight: 700;
    color: #1f2937;
}

/* Hero Section */
.hero {
    background: url('https://mediacom.com.ua/wp-content/uploads/8721164.jpg') center/cover;
    padding: 80px 0;
    text-align: center;
}

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

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    color: #fdfdfd;
    margin: 24px 0;
    line-height: 1.1;
}

.hero-description {
    font-size: 20px;
    color: #f8f8f8;
    margin: 32px 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 48px 0;
    align-items: center;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-top: 80px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

.stat-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.stat-icon svg {
    width: 32px;
    height: 32px;
}

.stat-icon-blue {
    background: #dbeafe;
    color: #2563eb;
}

.stat-icon-purple {
    background: #e9d5ff;
    color: #7c3aed;
}

.stat-icon-green {
    background: #d1fae5;
    color: #059669;
}

.stat-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
}

.stat-item p {
    color: #c3c9d6;
    margin: 0;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 20px;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto;
}

/* Modules Section */
.modules {
    padding: 80px 0;
    background: white;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

.module-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
}

.module-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.module-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.module-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #01b7ff 0%, #e3f300 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
}

.module-icon svg {
    width: 24px;
    height: 24px;
}

.module-badge {
    background: #f3f4f6;
    color: #6b7280;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
}

.module-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.module-card p {
    color: #6b7280;
    margin: 0;
    font-size: 16px;
}

/* Benefits Section */
.benefits {
    padding: 80px 0;
    background: linear-gradient(135deg, #dbeafe 0%, #e9d5ff 100%);
}

.benefits-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.benefits-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 24px;
}

.benefits-description {
    font-size: 18px;
    color: #6b7280;
    margin-bottom: 32px;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.check-icon {
    width: 24px;
    height: 24px;
    color: #059669;
    flex-shrink: 0;
}

.benefit-item span {
    color: #374151;
    font-size: 18px;
}

.benefits-image {
    position: relative;
}

.benefits-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.stats-card {
    position: absolute;
    bottom: -24px;
    left: -24px;
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.stats-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.stats-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #01b7ff 0%, #e3f300 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: black;
    font-weight: 700;
    font-size: 18px;
}

.stats-title {
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.stats-subtitle {
    color: #6b7280;
    font-size: 14px;
    margin: 0;
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background: white;
}

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

.testimonial-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.stars {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
}

.star {
    width: 20px;
    height: 20px;
    color: #fbbf24;
}

.testimonial-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
}

.testimonial-card p {
    color: #6b7280;
    font-style: italic;
    margin: 0;
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #e3f300 0%, #01b7ff 100%);
    color: black;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.cta-content p {
    font-size: 20px;
    color: #000000;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

/* Contact Section */
.contact {
    padding: 64px 0;
    background: #f9fafb;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    text-align: center;
}

.contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.contact-icon svg {
    width: 32px;
    height: 32px;
}

.contact-icon-blue {
    background: #dbeafe;
    color: #2563eb;
}

.contact-icon-purple {
    background: #e9d5ff;
    color: #7c3aed;
}

.contact-icon-green {
    background: #d1fae5;
    color: #059669;
}

.contact-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.contact-item p {
    color: #6b7280;
    margin: 0;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 0;
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6b7280;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.modal-close:hover {
    color: #374151;
}

.registration-form {
    padding: 32px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #1f2937;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Footer */
.footer {
    padding: 32px 0;
    background: #1f2937;
    color: white;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.footer .logo-text {
    color: white;
    font-size: 20px;
}

.footer p {
    color: #9ca3af;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn-large {
        width: 100%;
        max-width: 300px;
    }
    
    .benefits-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .benefits-image {
        order: -1;
    }
    
    .stats-card {
        position: static;
        margin-top: 16px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .modules-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .benefits-text h2 {
        font-size: 2rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }
}

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

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

/* Smooth scrolling enhancement */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}