/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Playfair Display', 'Georgia', serif;
    line-height: 1.6;
    color: #333333;
    background-color: #f8f5f0;
    overflow-x: hidden;
}

/* 容器样式 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* 头部样式 */
header {
    background-color: rgba(139, 69, 19, 0.95);
    backdrop-filter: blur(10px);
    color: #ffffff;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(210, 180, 140, 0.5);
    box-shadow: 0 0 20px rgba(139, 69, 19, 0.3);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    font-size: 2.2rem;
    margin-bottom: 5px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(139, 69, 19, 0.8);
}

.logo p {
    font-size: 1rem;
    opacity: 0.8;
    font-style: italic;
    color: #d2b48c;
    text-shadow: 0 0 5px rgba(139, 69, 19, 0.5);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    font-size: 1rem;
    position: relative;
    overflow: hidden;
}

nav ul li a:hover {
    border: 1px solid #d2b48c;
    box-shadow: 0 0 10px rgba(210, 180, 140, 0.5);
}

nav ul li a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(210, 180, 140, 0.2), transparent);
    transition: left 0.5s ease;
}

nav ul li a:hover::before {
    left: 100%;
}

/* 英雄区域样式 */
.hero {
    position: relative;
    padding: 150px 0;
    text-align: center;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero h2 {
    font-size: 4rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: bold;
    color: #8b4513;
    text-shadow: 0 0 20px rgba(210, 180, 140, 0.8);
    animation: glow 2s ease-in-out infinite alternate;
}

.hero p {
    font-size: 1.5rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    color: #8b4513;
    text-shadow: 0 0 10px rgba(210, 180, 140, 0.5);
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: transparent;
    color: #8b4513;
    text-decoration: none;
    border: 1px solid #8b4513;
    font-weight: bold;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(139, 69, 19, 0.3);
}

.btn:hover {
    background-color: rgba(139, 69, 19, 0.2);
    box-shadow: 0 0 20px rgba(139, 69, 19, 0.8);
    transform: translateY(-2px);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 69, 19, 0.4), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(248, 245, 240, 0.8), rgba(248, 245, 240, 0.8)), url('https://trae-api-cn.mchost.guru/api/ide/v1/text_to_image?prompt=AC%20Milan%20cultural%20heritage%2C%20artistic%20football%2C%20vintage%20style%2C%20warm%20lighting%2C%20professional%20photography%2C%20high%20quality&image_size=landscape_16_9');
    background-size: cover;
    background-position: center;
    z-index: 1;
    animation: pulse-bg 3s ease-in-out infinite alternate;
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, rgba(139, 69, 19, 0.2) 100%);
    animation: scan 8s linear infinite;
}

@keyframes glow {
    from {
        text-shadow: 0 0 20px rgba(210, 180, 140, 0.8);
    }
    to {
        text-shadow: 0 0 30px rgba(210, 180, 140, 1), 0 0 40px rgba(210, 180, 140, 0.8);
    }
}

@keyframes pulse-bg {
    from {
        transform: scale(1);
        opacity: 0.8;
    }
    to {
        transform: scale(1.02);
        opacity: 1;
    }
}

@keyframes scan {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* 历史传承区域样式 */
.history-section {
    padding: 80px 0;
    background-color: rgba(248, 245, 240, 0.9);
    position: relative;
}

.history-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(139, 69, 19, 0.1), transparent, rgba(139, 69, 19, 0.1));
    z-index: 0;
}

.history-section h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 60px;
    color: #8b4513;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(210, 180, 140, 0.8);
}

.history-section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #8b4513, transparent);
    box-shadow: 0 0 10px rgba(139, 69, 19, 0.8);
}

.history-timeline {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 1;
}

.history-timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: #d2b48c;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
    border-radius: 10px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    transform: scale(1.02);
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -12px;
    background-color: #f8f5f0;
    border: 4px solid #8b4513;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
    transition: all 0.3s ease;
}

.timeline-item:hover::after {
    transform: scale(1.2);
    box-shadow: 0 0 20px rgba(139, 69, 19, 0.8);
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item:nth-child(even)::after {
    left: -12px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: rgba(255, 255, 255, 0.8);
    position: relative;
    border-radius: 10px;
    border: 1px solid rgba(139, 69, 19, 0.3);
    box-shadow: 0 0 15px rgba(139, 69, 19, 0.2);
    backdrop-filter: blur(10px);
}

.timeline-date {
    font-size: 1.2rem;
    font-weight: bold;
    color: #8b4513;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(210, 180, 140, 0.5);
}

.timeline-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #8b4513;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(210, 180, 140, 0.5);
}

.timeline-content p {
    font-size: 1rem;
    color: #333333;
    line-height: 1.6;
}

/* 艺术足球区域样式 */
.art-section {
    padding: 80px 0;
    background-color: rgba(255, 255, 255, 0.9);
    position: relative;
}

.art-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(139, 69, 19, 0.1), transparent);
    z-index: 0;
}

.art-section h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 60px;
    color: #8b4513;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(210, 180, 140, 0.8);
    z-index: 1;
}

.art-section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #8b4513, transparent);
    box-shadow: 0 0 10px rgba(139, 69, 19, 0.8);
}

.art-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 1;
}

.art-item {
    background-color: rgba(248, 245, 240, 0.8);
    border: 1px solid rgba(139, 69, 19, 0.3);
    border-radius: 10px;
    padding: 40px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 15px rgba(139, 69, 19, 0.2);
}

.art-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 30px rgba(139, 69, 19, 0.5);
    border-color: #8b4513;
}

.art-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #8b4513, transparent, #8b4513);
    animation: gradient-move 3s linear infinite;
}

.art-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.art-item:hover .art-icon {
    transform: scale(1.1);
}

.art-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #8b4513;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(210, 180, 140, 0.5);
}

.art-item p {
    color: #333333;
    line-height: 1.6;
}

@keyframes gradient-move {
    0% {
        background-position: -100% 0;
    }
    100% {
        background-position: 100% 0;
    }
}

/* 球迷文化区域样式 */
.community-section {
    padding: 80px 0;
    background-color: rgba(248, 245, 240, 0.9);
    position: relative;
}

.community-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(139, 69, 19, 0.1), transparent, rgba(139, 69, 19, 0.1));
    z-index: 0;
}

.community-section h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 60px;
    color: #8b4513;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(210, 180, 140, 0.8);
    z-index: 1;
}

.community-section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #8b4513, transparent);
    box-shadow: 0 0 10px rgba(139, 69, 19, 0.8);
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 1;
}

.community-item {
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(139, 69, 19, 0.3);
    border-radius: 10px;
    padding: 40px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 15px rgba(139, 69, 19, 0.2);
}

.community-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 30px rgba(139, 69, 19, 0.5);
    border-color: #8b4513;
}

.community-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #8b4513, transparent, #8b4513);
    animation: gradient-move 3s linear infinite;
}

.community-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #8b4513;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(210, 180, 140, 0.5);
}

.community-item p {
    color: #333333;
    line-height: 1.6;
}

/* 米兰生活区域样式 */
.lifestyle-section {
    padding: 80px 0;
    background-color: rgba(255, 255, 255, 0.9);
    position: relative;
}

.lifestyle-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(139, 69, 19, 0.1), transparent);
    z-index: 0;
}

.lifestyle-section h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 60px;
    color: #8b4513;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(210, 180, 140, 0.8);
    z-index: 1;
}

.lifestyle-section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #8b4513, transparent);
    box-shadow: 0 0 10px rgba(139, 69, 19, 0.8);
}

.lifestyle-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    position: relative;
    z-index: 1;
}

.lifestyle-item {
    background-color: rgba(248, 245, 240, 0.8);
    border: 1px solid rgba(139, 69, 19, 0.3);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 15px rgba(139, 69, 19, 0.2);
}

.lifestyle-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 0 30px rgba(139, 69, 19, 0.5);
    border-color: #8b4513;
}

.lifestyle-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #8b4513, transparent, #8b4513);
    animation: gradient-move 3s linear infinite;
}

.lifestyle-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.3s ease;
    filter: brightness(0.8);
}

.lifestyle-item:hover .lifestyle-img {
    transform: scale(1.05);
    filter: brightness(1);
}

.lifestyle-item h3 {
    padding: 20px;
    padding-bottom: 10px;
    font-size: 1.3rem;
    color: #8b4513;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(210, 180, 140, 0.5);
}

.lifestyle-item p {
    padding: 0 20px;
    padding-bottom: 20px;
    color: #333333;
    line-height: 1.6;
}

/* 联系我们区域样式 */
.contact-section {
    padding: 80px 0;
    background-color: rgba(248, 245, 240, 0.9);
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(139, 69, 19, 0.1), transparent, rgba(139, 69, 19, 0.1));
    z-index: 0;
}

.contact-section h2 {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 40px;
    color: #8b4513;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 15px rgba(210, 180, 140, 0.8);
    z-index: 1;
}

.contact-section h2::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #8b4513, transparent);
    box-shadow: 0 0 10px rgba(139, 69, 19, 0.8);
}

.contact-info {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 50px;
    border: 1px solid rgba(139, 69, 19, 0.3);
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(139, 69, 19, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 1;
}

.contact-info p {
    margin-bottom: 20px;
    font-size: 1.2rem;
    color: #333333;
    line-height: 1.6;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.1rem;
    color: #8b4513;
    text-shadow: 0 0 5px rgba(210, 180, 140, 0.5);
}

.contact-icon {
    font-size: 1.5rem;
}

/* 页脚样式 */
footer {
    background-color: rgba(139, 69, 19, 0.95);
    color: #ffffff;
    padding: 60px 0 30px;
    position: relative;
    border-top: 1px solid rgba(210, 180, 140, 0.3);
    box-shadow: 0 -5px 20px rgba(139, 69, 19, 0.2);
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d2b48c, transparent);
    box-shadow: 0 0 10px rgba(210, 180, 140, 0.8);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

.footer-logo h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(210, 180, 140, 0.8);
}

.footer-logo p {
    font-size: 1rem;
    opacity: 0.8;
    color: #d2b48c;
    text-shadow: 0 0 5px rgba(210, 180, 140, 0.5);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 15px;
}

.footer-links ul li a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    position: relative;
    padding-left: 15px;
}

.footer-links ul li a:hover {
    color: #d2b48c;
    text-shadow: 0 0 5px rgba(210, 180, 140, 0.8);
}

.footer-links ul li a::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #d2b48c;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-links ul li a:hover::before {
    opacity: 1;
    left: 5px;
}

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-link {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1rem;
    position: relative;
    padding-left: 15px;
}

.social-link:hover {
    color: #d2b48c;
    text-shadow: 0 0 5px rgba(210, 180, 140, 0.8);
    transform: translateX(5px);
}

.social-link::before {
    content: '→';
    position: absolute;
    left: 0;
    color: #d2b48c;
    opacity: 0;
    transition: all 0.3s ease;
}

.social-link:hover::before {
    opacity: 1;
    left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(210, 180, 140, 0.2);
    font-size: 1rem;
    opacity: 0.8;
    color: #d2b48c;
    position: relative;
    z-index: 1;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: rgba(248, 245, 240, 0.95);
    margin: 5% auto;
    padding: 40px;
    border: 1px solid rgba(139, 69, 19, 0.5);
    border-radius: 10px;
    width: 80%;
    max-width: 800px;
    position: relative;
    animation: slideIn 0.3s ease;
    backdrop-filter: blur(15px);
    box-shadow: 0 0 50px rgba(139, 69, 19, 0.5);
}

.close {
    color: #8b4513;
    float: right;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
    text-shadow: 0 0 10px rgba(210, 180, 140, 0.8);
}

.close:hover {
    color: #333333;
    text-shadow: 0 0 15px rgba(139, 69, 19, 1);
}

#modal-title {
    margin-bottom: 30px;
    color: #8b4513;
    font-size: 2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(210, 180, 140, 0.8);
}

#modal-body {
    line-height: 1.7;
    color: #333333;
}

.detail-img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 0 20px rgba(139, 69, 19, 0.5);
    transition: transform 0.3s ease;
}

.detail-img:hover {
    transform: scale(1.02);
}

.history-detail p,
.art-detail p,
.community-detail p,
.lifestyle-detail p {
    margin-bottom: 20px;
    text-align: justify;
}

.history-detail p:last-child,
.art-detail p:last-child,
.community-detail p:last-child,
.lifestyle-detail p:last-child {
    margin-bottom: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
        box-shadow: 0 0 0 rgba(139, 69, 19, 0);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        box-shadow: 0 0 50px rgba(139, 69, 19, 0.5);
    }
}

/* 图片优化样式 */
.optimized-img {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.optimized-img.loaded {
    opacity: 1;
}

.optimized-img.error {
    background-color: rgba(248, 245, 240, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8b4513;
    font-size: 0.9rem;
    text-shadow: 0 0 5px rgba(210, 180, 140, 0.5);
}

/* 响应式设计 */
@media screen and (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    nav ul {
        flex-wrap: wrap;
        gap: 15px;
    }

    .hero h2 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.2rem;
    }

    .btn {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .history-section h2,
    .art-section h2,
    .community-section h2,
    .lifestyle-section h2,
    .contact-section h2 {
        font-size: 2.2rem;
    }

    .history-timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::after {
        left: 18px;
    }

    .timeline-item:nth-child(even) {
        left: 0%;
    }

    .contact-details {
        flex-direction: column;
        align-items: center;
    }

    .modal-content {
        width: 90%;
        margin: 10% auto;
        padding: 30px;
    }

    #modal-title {
        font-size: 1.6rem;
    }
}

@media screen and (max-width: 480px) {
    .hero h2 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .btn {
        padding: 10px 25px;
        font-size: 0.9rem;
    }

    .history-section h2,
    .art-section h2,
    .community-section h2,
    .lifestyle-section h2,
    .contact-section h2 {
        font-size: 1.8rem;
    }

    .timeline-content h3,
    .art-item h3,
    .community-item h3,
    .lifestyle-item h3 {
        font-size: 1.1rem;
    }

    .modal-content {
        width: 95%;
        margin: 15% auto;
        padding: 20px;
    }

    #modal-title {
        font-size: 1.4rem;
    }
}