* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1c2e1a 0%, #163e17 50%, #0f601f 100%);
    color: #e0e0e0;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.logo a {
    color: #ffd700;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.logo a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    transition: left 0.5s ease;
}

.logo a:hover {
    color: #fff;
    transform: translateY(-2px);
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.logo a:hover::before {
    left: 100%;
}

.logo a:active {
    transform: translateY(0);
}

/* Анимация для эмодзи */
.logo a:hover::after {
    content: ' ☕';
    opacity: 0;
    animation: teaSteam 1s ease-in-out;
}

@keyframes teaSteam {
    0% {
        opacity: 0;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-5px);
    }
    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

nav a:hover {
    color: #ffd700;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    text-align: center;
    background: linear-gradient(135deg, rgba(28, 46, 26, 0.9) 0%, rgba(22, 62, 23, 0.8) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(28, 46, 26, 0.8);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(45deg, #ffd700, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem;
    color: #b0b0b0;
}

.hero img {
    max-width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 215, 0, 0.3);
    transition: transform 0.3s ease;
}

.hero img:hover {
    transform: scale(1.02);
}

/* Main Content с фоновым изображением */
.main-content {
    padding: 80px 0;
    background-image: url('../images/tea-background-2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

/* Затемнение фона для лучшей читаемости текста */
.main-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 46, 0.55);
    z-index: 0;
}

.main-content .container {
    position: relative;
    z-index: 2;
}

/* Timeline Section */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, #ffd700, transparent);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    margin-bottom: 4rem;
    position: relative;
}

.timeline-item:nth-child(odd) {
    flex-direction: row;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-content {
    background: #2a3a2a;
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    width: 45%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.timeline-marker {
    position: absolute;
    left: 50%;
    top: 20px;
    width: 20px;
    height: 20px;
    background: #ffd700;
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 1;
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.2);
}

.timeline-year {
    font-size: 1.5rem;
    color: #ffd700;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.timeline-title {
    font-size: 1.3rem;
    color: #ffd700;
    margin-bottom: 1rem;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    padding-bottom: 0.5rem;
}

.timeline-text {
    color: #e0e0e0;
    line-height: 1.7;
}

/* Стили для изображений в timeline */
.timeline-text img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin: 1rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 215, 0, 0.2);
    transition: transform 0.3s ease;
}

.timeline-text img:hover {
    transform: scale(1.05);
}

/* Culture Section */
.culture-section {
    margin-top: 5rem;
}

.culture-section h2 {
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    color: #ffd700;
    border-left: 4px solid #ff6b6b;
    padding-left: 1rem;
}

.culture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.culture-card {
    background: #2d3b2d;
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.culture-card:hover {
    background: #354535;
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 215, 0, 0.4);
}

/* Стили для изображений в culture cards */
.culture-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    border: 2px solid rgba(255, 215, 0, 0.2);
    transition: transform 0.3s ease;
}

.culture-card:hover img {
    transform: scale(1.05);
}

.culture-card h3 {
    color: #ffd700;
    margin-bottom: 1rem;
    font-size: 1.4rem;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
    padding-bottom: 0.7rem;
}

.culture-card p {
    color: #e0e0e0;
    line-height: 1.7;
    flex-grow: 1;
}

/* Culture Links Section */
.culture-links {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.culture-links h3 {
    color: #ffd700;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.culture-links p {
    color: #e0e0e0;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.culture-links a {
    color: #ffd700;
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.culture-links a:hover {
    color: #fff;
    text-decoration: underline;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.4);
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Анимации для плавного появления */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.timeline-item, .culture-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Задержки для анимации */
.timeline-item:nth-child(1) { animation-delay: 0.1s; }
.timeline-item:nth-child(2) { animation-delay: 0.2s; }
.timeline-item:nth-child(3) { animation-delay: 0.3s; }
.timeline-item:nth-child(4) { animation-delay: 0.4s; }
.timeline-item:nth-child(5) { animation-delay: 0.5s; }
.timeline-item:nth-child(6) { animation-delay: 0.6s; }

.culture-card:nth-child(1) { animation-delay: 0.7s; }
.culture-card:nth-child(2) { animation-delay: 0.8s; }
.culture-card:nth-child(3) { animation-delay: 0.9s; }

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero img {
        height: 200px;
    }
    
    .timeline::before {
        left: 30px;
    }
    
    .timeline-item {
        flex-direction: row !important;
    }
    
    .timeline-content {
        width: calc(100% - 80px);
        margin-left: 80px;
    }
    
    .timeline-marker {
        left: 30px;
    }
    
    .timeline-text img {
        height: 180px;
    }
    
    .culture-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .culture-card img {
        height: 180px;
    }
    
    .main-content {
        background-attachment: scroll;
    }
    
    .logo a {
        font-size: 1.3rem;
        padding: 0.3rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero img {
        height: 150px;
    }
    
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .timeline-content {
        padding: 1.5rem;
        width: calc(100% - 60px);
        margin-left: 60px;
    }
    
    .timeline-text img {
        height: 150px;
    }
    
    .culture-card {
        padding: 1.5rem;
    }
    
    .culture-card img {
        height: 150px;
    }
    
    .logo a {
        font-size: 1.1rem;
        gap: 0.3rem;
    }
}