/* Загальні стилі */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Анімації */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.fade-in.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Затримки для різних елементів */
section:nth-child(1) { transition-delay: 0.1s; }
section:nth-child(2) { transition-delay: 0.2s; }
section:nth-child(3) { transition-delay: 0.3s; }
section:nth-child(4) { transition-delay: 0.4s; }

.gallery-item:nth-child(1) { transition-delay: 0.1s; }
.gallery-item:nth-child(2) { transition-delay: 0.2s; }
.gallery-item:nth-child(3) { transition-delay: 0.3s; }
.gallery-item:nth-child(4) { transition-delay: 0.4s; }
.gallery-item:nth-child(5) { transition-delay: 0.5s; }
.gallery-item:nth-child(6) { transition-delay: 0.6s; }

/* Навігація */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    padding: 1rem 0;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #ffd700;
}

/* Головний банер */
.hero-section {
    height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
}

/* Кнопки */
.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: #ffd700;
    color: #333;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s ease;
}

.cta-button:hover {
    background: #ffed4a;
}

/* Фотогалерея */
.gallery-section {
    padding: 5rem 2rem;
    background: #f9f9f9;
}

.gallery-section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.view-more-button {
    display: block;
    text-align: center;
    margin-top: 2rem;
    padding: 1rem 2rem;
    background: #333;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.view-more-button:hover {
    background: #555;
}

/* Про вчителя */
.about-section {
    padding: 5rem 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.about-section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content h3 {
    margin-bottom: 1rem;
    font-size: 2rem;
}

/* Контакти */
.contacts-section {
    padding: 5rem 2rem;
    background: #f9f9f9;
}

.contacts-section h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.contacts-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contacts-content p {
    margin-bottom: 1rem;
}

/* Рекламний блок */
.ad-section {
    padding: 2rem;
    text-align: center;
    background: #f9f9f9;
}

/* Адаптивний дизайн */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    section {
        padding: 3rem 1rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
} 

.photo-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: top;
    border-radius: 4px;
} 