/* Main Content Area */
.main-content {
    padding-top: 80px;
    min-height: calc(100vh - 80px);
}

/* Hero Sections */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(47, 62, 70, 0.6), rgba(47, 62, 70, 0.8)), url('images/hero1-modern-office-technology_orig.jpg') center/cover;
    background-attachment: fixed;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: var(--space-xl);
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    margin-bottom: var(--space-lg);
    background: linear-gradient(135deg, white, #CAD2C5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    margin-bottom: var(--space-xl);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.hero-cta {
    display: flex;
    gap: var(--space-lg);
    justify-content: center;
    flex-wrap: wrap;
}

/* Map Hero Specific */
.map-hero {
    background: linear-gradient(rgba(47, 62, 70, 0.7), rgba(47, 62, 70, 0.9)), url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="topo" x="0" y="0" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M0 20 Q20 0 40 20 M0 0 Q20 20 40 0" stroke="%23CAD2C5" stroke-width="0.5" fill="none" opacity="0.3"/></pattern></defs><rect width="1200" height="600" fill="%232F3E46"/><rect width="1200" height="600" fill="url(%23topo)"/></svg>') center/cover;
}

.heritage-sites {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.site-marker {
    position: absolute;
    width: 12px;
    height: 12px;
    background: var(--highlight);
    border: 2px solid white;
    border-radius: 50%;
    animation: pulse 3s infinite;
}

.site-marker:nth-child(1) { top: 25%; left: 20%; animation-delay: 0s; }
.site-marker:nth-child(2) { top: 35%; left: 15%; animation-delay: 0.5s; }
.site-marker:nth-child(3) { top: 40%; left: 85%; animation-delay: 1s; }
.site-marker:nth-child(4) { top: 20%; left: 75%; animation-delay: 1.5s; }
.site-marker:nth-child(5) { top: 60%; left: 30%; animation-delay: 2s; }

/* Section Layouts */
.content-section {
    padding: var(--space-2xl) 0;
    overflow: hidden;
}

.content-section:nth-child(even) {
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: var(--space-md);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--highlight));
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.feature-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: var(--space-xl);
    box-shadow: 0 8px 32px rgba(47, 62, 70, 0.1);
    transition: all var(--transition-base);
    border: 1px solid var(--border-color);
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(40px);
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }

.feature-card:hover {
    transform: translateY(-8px) perspective(1000px) rotateY(2deg);
    box-shadow: 0 20px 60px rgba(47, 62, 70, 0.2);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin-bottom: var(--space-lg);
    background: linear-gradient(135deg, var(--accent), var(--highlight));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
    fill: white;
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Timeline Component */
.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: var(--space-2xl) auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--accent), var(--highlight));
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-2xl);
    animation: slideInRight 0.8s ease-out forwards;
    opacity: 0;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
    animation-name: slideInLeft;
}

.timeline-item:nth-child(1) { animation-delay: 0.2s; }
.timeline-item:nth-child(2) { animation-delay: 0.4s; }
.timeline-item:nth-child(3) { animation-delay: 0.6s; }

.timeline-content {
    flex: 1;
    background: var(--bg-card);
    padding: var(--space-xl);
    border-radius: 12px;
    margin: 0 var(--space-lg);
    box-shadow: 0 8px 32px rgba(47, 62, 70, 0.1);
    border: 1px solid var(--border-color);
}

.timeline-marker {
    width: 20px;
    height: 20px;
    background: var(--accent);
    border: 4px solid var(--bg-primary);
    border-radius: 50%;
    position: relative;
    z-index: 2;
}

.timeline-date {
    font-size: 0.9rem;
    color: var(--highlight);
    font-weight: 600;
    margin-bottom: var(--space-xs);
}

.timeline-title {
    font-size: 1.25rem;
    margin-bottom: var(--space-sm);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}

.gallery-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(47, 62, 70, 0.1);
    transition: all var(--transition-base);
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(47, 62, 70, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

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

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(47, 62, 70, 0.9));
    color: white;
    padding: var(--space-lg);
    transform: translateY(100%);
    transition: transform var(--transition-base);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* Stats Section */
.stats-section {
    background: var(--primary);
    color: white;
    padding: var(--space-2xl) 0;
    position: relative;
    overflow: hidden;
}

.stats-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(53, 79, 82, 0.9), rgba(47, 62, 70, 0.9)), url('images/section3-data-center-server_orig.jpg') center/cover;
    background-attachment: fixed;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    position: relative;
    z-index: 2;
}

.stat-card {
    text-align: center;
    padding: var(--space-lg);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--highlight);
    display: block;
    margin-bottom: var(--space-sm);
}

.stat-label {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Interactive Elements */
.artefact-viewer {
    position: relative;
    max-width: 500px;
    margin: var(--space-2xl) auto;
    text-align: center;
}

.artefact-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(47, 62, 70, 0.2);
    cursor: grab;
    transition: transform var(--transition-base);
}

.artefact-image:active {
    cursor: grabbing;
}

.rotation-controls {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-lg);
}

.rotation-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: var(--space-sm) var(--space-md);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-base);
    min-height: 44px;
    min-width: 44px;
}

.rotation-btn:hover,
.rotation-btn:focus {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

/* Decorative Elements */
.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(132, 169, 140, 0.1), rgba(202, 210, 197, 0.1));
    filter: blur(1px);
    animation: float 20s infinite linear;
}

.floating-shape:nth-child(1) {
    width: 200px;
    height: 200px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-shape:nth-child(2) {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 15%;
    animation-delay: 5s;
}

.floating-shape:nth-child(3) {
    width: 100px;
    height: 100px;
    top: 80%;
    left: 60%;
    animation-delay: 10s;
}

/* Glossary Tooltip */
.glossary-term {
    position: relative;
    cursor: help;
    border-bottom: 1px dotted var(--accent);
}

.glossary-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: var(--space-sm) var(--space-md);
    border-radius: 8px;
    font-size: 0.9rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    z-index: 100;
    max-width: 300px;
    white-space: normal;
}

.glossary-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--primary);
}

.glossary-term:hover .glossary-tooltip,
.glossary-term:focus .glossary-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 8px);
}

/* Contact Section Specific */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: start;
}

.contact-info {
    background: var(--bg-card);
    padding: var(--space-2xl);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(47, 62, 70, 0.1);
    border: 1px solid var(--border-color);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.contact-item:last-child {
    margin-bottom: 0;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    fill: white;
}

.contact-details h4 {
    margin-bottom: var(--space-xs);
    font-size: 1.125rem;
}

.contact-details p {
    color: var(--text-secondary);
    margin: 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

@keyframes float {
    from {
        transform: translateY(100vh) rotate(0deg);
    }
    to {
        transform: translateY(-100px) rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        padding: var(--space-lg);
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .timeline-line {
        left: 20px;
    }
    
    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: row;
    }
    
    .timeline-content {
        margin-left: var(--space-xl);
        margin-right: 0;
    }
    
    .timeline-marker {
        margin-left: 11px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }
    
    .floating-shapes {
        display: none;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .site-marker {
        width: 8px;
        height: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-background,
    .stats-bg {
        background-attachment: scroll;
    }
    
    .floating-shapes,
    .site-marker {
        display: none;
    }
    
    .feature-card,
    .timeline-item {
        animation: none;
        opacity: 1;
        transform: none;
    }
}