/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #d4af37;
    --secondary-color: #f5f5dc;
    --text-color: #2c3e50;
    --light-bg: #faf9f6;
    --white: #ffffff;
    --fog-color: rgba(255, 255, 255, 0.3);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: linear-gradient(135deg, #f5f0e8 0%, #e8e0d3 50%, #f0e8d8 100%);
    background-attachment: fixed;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Cookie Popup */
.cookie-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    max-width: 500px;
    width: 90%;
    display: none;
}

.cookie-popup.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

.cookie-content p {
    margin-bottom: 20px;
    color: var(--text-color);
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-accept, .btn-later {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-accept {
    background: var(--primary-color);
    color: var(--white);
}

.btn-later {
    background: #e0e0e0;
    color: var(--text-color);
}

.btn-accept:hover, .btn-later:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-items: center;
}

.site-domain {
    color: #FF6B35;
    font-size: 0.85rem;
    font-weight: 400;
    margin-top: 0.2rem;
    opacity: 0.9;
    display: block;
    line-height: 1;
}

.logo-link {
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
}

.logo-link:hover {
    opacity: 0.8;
}

.logo-text {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.burger-menu span {
    width: 25px;
    height: 3px;
    background: var(--text-color);
    transition: all 0.3s ease;
}

.burger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Page Title */
.page-title {
    font-size: 3rem;
    text-align: center;
    margin: 60px 0 40px;
    color: var(--text-color);
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin: 60px 0 40px;
    color: var(--text-color);
}

.fog-reveal {
    opacity: 0;
    animation: fogReveal 1.5s ease forwards;
}

@keyframes fogReveal {
    0% {
        opacity: 0;
        filter: blur(10px);
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

/* History Sections */
.old-dubai, .modern-dubai, .evolution-timeline, .frame-symbolism {
    padding: 60px 0;
}

.old-dubai {
    background: rgba(255, 255, 255, 0.3);
}

.modern-dubai {
    background: rgba(255, 255, 255, 0.2);
}

.evolution-timeline {
    background: rgba(255, 255, 255, 0.3);
}

.frame-symbolism {
    background: rgba(255, 255, 255, 0.2);
}

.history-text {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: var(--text-color);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.history-image-wrapper {
    margin-top: 40px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.history-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.history-image:hover {
    transform: scale(1.05);
}

/* Timeline */
.timeline-content {
    max-width: 900px;
    margin: 0 auto;
}

.timeline-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-item:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.timeline-year {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.timeline-text {
    color: #666;
    line-height: 1.6;
}

.timeline-image-wrapper {
    margin-top: 40px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.timeline-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.timeline-image:hover {
    transform: scale(1.05);
}

/* Footer */
.footer {
    background: rgba(44, 62, 80, 0.9);
    color: var(--white);
    padding: 40px 0;
    text-align: center;
}

.footer-text {
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-color);
}

/* Design Competition Section */
.design-competition {
    padding: 60px 0;
    background: rgba(255, 255, 255, 0.3);
}

.competition-content {
    max-width: 900px;
    margin: 0 auto;
}

.competition-content .history-text {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Construction Challenges Section */
.construction-challenges {
    padding: 60px 0;
    background: rgba(255, 255, 255, 0.2);
}

.challenges-content {
    max-width: 1000px;
    margin: 0 auto;
}

.challenges-content .history-text {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.challenges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.challenge-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.challenge-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: center;
}

.challenge-item p {
    color: #666;
    line-height: 1.6;
}

/* Opening Ceremony Section */
.opening-ceremony {
    padding: 60px 0;
    background: rgba(255, 255, 255, 0.3);
}

.ceremony-content {
    max-width: 900px;
    margin: 0 auto;
}

.ceremony-content .history-text {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Visitor Statistics Section */
.visitor-statistics {
    padding: 60px 0;
    background: rgba(255, 255, 255, 0.2);
}

.statistics-content {
    max-width: 1000px;
    margin: 0 auto;
}

.statistics-content .history-text {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-label {
    color: #666;
    font-size: 1rem;
}

/* Awards & Recognition Section */
.awards-recognition {
    padding: 60px 0;
    background: rgba(255, 255, 255, 0.3);
}

.awards-content {
    max-width: 1000px;
    margin: 0 auto;
}

.awards-content .history-text {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.awards-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.award-item {
    background: rgba(255, 255, 255, 0.9);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.award-title {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 15px;
    text-align: center;
}

.award-item p {
    color: #666;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .burger-menu {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
        transition: left 0.3s ease;
        z-index: 999;
    }

    .nav-menu.active {
        left: 0;
    }

    .page-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

