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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
}

/* Navigation */
#navbar {
    background: transparent;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.nav-link {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: #334155;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #2563eb;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #2563eb;
    transition: width 0.3s ease;
}

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

.nav-link-mobile {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    color: #334155;
    transition: color 0.3s ease;
}

.nav-link-mobile:hover {
    color: #2563eb;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 12px 32px;
    background: #2563eb;
    color: white;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
}

.btn-hero {
    display: inline-block;
    padding: 16px 48px;
    background: #f97316;
    color: white;
    font-weight: 700;
    font-size: 1.125rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-top: 2rem;
}

.btn-hero:hover {
    background: #ea580c;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(249, 115, 22, 0.4);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.85) 0%, rgba(51, 65, 85, 0.75) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    width: 100%;
}

.hero-headline {
    font-family: 'Sora', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-subheadline {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 400;
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .hero-headline {
        font-size: 2rem;
    }
    
    .hero-subheadline {
        font-size: 1rem;
    }
}

/* Section Styles */
.section-padding {
    padding: 100px 0;
}

.section-title {
    font-family: 'Sora', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
}

/* About Section */
.about-text {
    /* GSAP will handle animation */
}

.about-stats {
    /* GSAP will handle animation */
}

#o-nas {
    overflow-x: hidden;
}

.stat-card {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    color: white;
    box-shadow: 0 8px 30px rgba(37, 99, 235, 0.2);
    transition: transform 0.3s ease;
}

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

.stat-number {
    font-family: 'Sora', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.125rem;
    opacity: 0.95;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: #e0f2fe;
    transform: translateX(5px);
}

/* Services Section */
#sluzby {
    overflow-x: hidden;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(37, 99, 235, 0.15);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
}

.service-title {
    font-family: 'Sora', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 1rem;
}

.service-description {
    color: #64748b;
    line-height: 1.7;
}

/* Gallery Section */
#galeria {
    overflow-x: hidden;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    aspect-ratio: 4/3;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.8) 0%, rgba(249, 115, 22, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Contact Section */
#kontakt {
    overflow-x: hidden;
}

.contact-info-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 25px rgba(37, 99, 235, 0.15);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.contact-form-container {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

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

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Animations - GSAP will handle these */
.animate-left {
    opacity: 0;
    transform: translateX(-60px);
}

.animate-right {
    opacity: 0;
    transform: translateX(60px);
}

.animate-up {
    opacity: 0;
    transform: translateY(40px);
}

/* Reduced Motion Support */
@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;
    }
}

/* Responsive Breakpoints */

/* Small phones ≤ 480px */
@media (max-width: 480px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-headline {
        font-size: 2.25rem;
    }
    
    .hero-subheadline {
        font-size: 0.95rem;
    }
    
    .btn-hero {
        padding: 14px 32px;
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .service-title {
        font-size: 1.25rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-form-container {
        padding: 1.5rem;
    }
    
    .contact-info-card {
        padding: 1rem;
    }
}

/* Very small screens < 350px */
@media (max-width: 350px) {
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    /* Navigation */
    #navbar .container {
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }
    
    #nav-logo {
        font-size: 1.25rem;
    }
    
    .btn-primary {
        padding: 10px 20px;
        font-size: 0.875rem;
    }
    
    /* Hero */
    .hero-headline {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-subheadline {
        font-size: 0.875rem;
    }
    
    .btn-hero {
        padding: 12px 24px;
        font-size: 0.95rem;
        width: 100%;
        text-align: center;
    }
    
    /* Sections */
    .section-padding {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }
    
    .section-subtitle {
        font-size: 0.9rem;
    }
    
    /* About Stats - Single Column */
    #about-stats {
        grid-template-columns: 1fr !important;
    }
    
    .stat-card {
        padding: 1.25rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
    
    /* Services */
    .service-card {
        padding: 1.25rem;
    }
    
    .service-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 1rem;
    }
    
    .service-icon i {
        width: 24px !important;
        height: 24px !important;
    }
    
    .service-title {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
    }
    
    .service-description {
        font-size: 0.9rem;
    }
    
    /* Gallery */
    .gallery-grid {
        gap: 0.75rem;
    }
    
    /* Contact */
    #kontakt .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .contact-form-container {
        padding: 1.25rem;
    }
    
    .contact-form-container h3 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }
    
    .contact-info-card {
        padding: 0.875rem;
        flex-wrap: wrap;
    }
    
    .contact-icon {
        width: 40px;
        height: 40px;
    }
    
    .contact-info-card .text-lg {
        font-size: 0.95rem;
        word-break: break-all;
    }
    
    .form-input {
        padding: 12px 14px;
        font-size: 0.95rem;
    }
    
    /* Footer */
    footer {
        padding: 2rem 0;
    }
    
    footer h3 {
        font-size: 1.25rem;
    }
    
    footer h4 {
        font-size: 1rem;
    }
    
    footer p,
    footer a {
        font-size: 0.875rem;
    }
}

/* Tablet adjustments */
@media (min-width: 481px) and (max-width: 768px) {
    .hero-headline {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Prevent horizontal scroll from GSAP animations */
section {
    position: relative;
}

section > .container {
    position: relative;
    overflow-x: hidden;
}
