/* Base Styles & Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, sans-serif;
}

:root {
    --bg-white: #ffffff;
    --bg-light-grey: #f8f8f8;
    --text-black: #111111;
    --text-grey: #555555;
    --border-color: #eaeaea;
}

body {
    background-color: var(--bg-white);
    color: var(--text-black);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-padding {
    padding: 120px 5%;
}

.bg-light {
    background-color: var(--bg-light-grey);
}

.bg-black {
    background-color: var(--text-black);
    color: var(--bg-white);
}

/* Typography */
h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

h2.section-title {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

p {
    font-size: 1.125rem;
    color: var(--text-grey);
    max-width: 700px;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 5%;
    background-color: var(--bg-white);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid transparent;
    transition: border-bottom 0.3s ease;
}

.logo {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.nav-contact {
    color: var(--text-black);
    text-decoration: none;
    font-weight: 400;
    border-bottom: 1px solid var(--text-black);
    padding-bottom: 2px;
    transition: opacity 0.3s ease;
}

.nav-contact:hover {
    opacity: 0.5;
}

/* Section 1: Intro */
.intro-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

/* Section 2: Video Grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.video-item {
    width: 100%;
    aspect-ratio: 9/16;
    background-color: #000;
    overflow: hidden;
    cursor: pointer;
    border-radius: 8px;
}

.video-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
    transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-item:hover video {
    opacity: 1;
    transform: scale(1.03);
}

/* Section 3: Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 60px;
}

.stat-card {
    display: flex;
    flex-direction: column;
}

.image-wrapper {
    width: 100%;
    background-color: var(--bg-light-grey);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.zoomable-image {
    width: 100%;
    height: auto; 
    display: block;
    object-fit: contain; 
    cursor: zoom-in; /* Changes mouse to magnifying glass to indicate it can be clicked */
    transition: transform 0.3s ease;
}

.zoomable-image:hover {
    transform: scale(1.02);
}

.stat-description {
    margin-top: 24px;
}

.stat-description h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-black);
    line-height: 1.3;
}

.stat-description p {
    font-size: 1.05rem;
    color: var(--text-grey);
    line-height: 1.5;
}

/* Footer */
.footer-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.footer-container h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.footer-container p {
    color: #a0a0a0;
    margin: 0 auto 40px auto;
}

.primary-btn {
    display: inline-block;
    padding: 16px 40px;
    background-color: var(--bg-white);
    color: var(--text-black);
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.footer-bottom {
    margin-top: 80px;
    font-size: 0.875rem;
    color: #666666;
}

/* Fade In Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Modal Base Styles (Used by both Video and Image) --- */
.modal {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); 
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
    opacity: 1;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--text-grey);
}

/* Video Modal Specifics */
.modal-content {
    position: relative;
    width: 90%;
    max-width: 450px; 
    max-height: 90vh;
}

.modal-content video {
    width: 100%;
    height: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    outline: none;
    background: #000;
}

/* Image Modal Specifics */
.image-modal-content {
    max-width: 90vw; /* Allows image to be wider than the video */
    display: flex;
    justify-content: center;
}

.image-modal-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain; /* Keeps original proportions perfectly intact */
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-padding { padding: 80px 5%; }
    .stats-grid { grid-template-columns: 1fr; }
    h1 { font-size: 2.5rem; }
}
