/* Import Open Sans font */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400&display=swap');

/* Base styles */
:root {
    --primary-color: #676760;
    --text-color: #F9F9F8;
    --link-color: #888888;
    --link-hover-color: #FFFFFF;
    --info-link-color: #88CCCC;
    --max-width: 850px;
    --spacing-unit: 1rem;
    
    /* Breakpoints */
    --breakpoint-desktop: 1024px;
    --breakpoint-tablet: 768px;
    --breakpoint-mobile: 480px;
    
    /* Video aspect ratios */
    --video-aspect-ratio: 56.25%; /* 16:9 */
    --video-aspect-ratio-mobile: 75%; /* 4:3 */
    
    /* Font sizes */
    --font-size-base: 14px;
    --font-size-small: 0.75em;
    --font-size-medium: 0.8em;
    --font-size-large: 1.8rem;
    --font-size-emphasis: 1.1em;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--primary-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: var(--max-width);
    margin: 2rem auto 0.25rem;
    padding: 0.5rem 2rem;
    box-sizing: border-box;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    margin-bottom: var(--spacing-unit);
}

p {
    font-size: var(--font-size-small);
    margin: 0 0 1.5rem 0;
    line-height: 1.5;
}

.description-column p {
    font-size: var(--font-size-medium);
}

/* Project Header */
.project-header {
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.project-title {
    font-size: var(--font-size-large);
    font-weight: normal;
}

.emphasis {
    color: var(--text-color);
    font-size: var(--font-size-emphasis);
}

/* Project Description */
.project-description {
    display: flex;
    gap: 3rem;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.description-column {
    flex: 1;
}

/* Video Section */
.project-video {
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.video-container {
    position: relative;
    width: 100%;
    padding-top: 1.5rem;
    padding-bottom: 3rem;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.video-container iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
}

.video-caption {
    position: absolute;
    bottom: 1rem;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: var(--font-size-small);
    color: var(--text-color);
    margin: 0;
}

.video-details {
    margin-top: 2rem;
}

.video-details p {
    font-size: var(--font-size-small);
    margin-bottom: 1.5rem;
}

.video-details p:last-child {
    margin-bottom: 0;
}

/* Visualizations Grid */
.project-visualizations {
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.vis-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.vis-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Project Info */
.project-info {
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.info-content img {
    width: 100%;
    height: auto;
    margin-bottom: var(--spacing-unit);
}

/* Links */
a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--link-hover-color);
    text-decoration: underline;
}

a.info {
    color: var(--info-link-color);
}

a.info:hover {
    color: var(--link-hover-color);
}

/* Footer */
.project-footer {
    margin-top: calc(var(--spacing-unit) * 2);
    padding-top: var(--spacing-unit);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    font-size: var(--font-size-small);
    color: var(--link-color);
}

/* Media Queries */
@media (max-width: var(--breakpoint-desktop)) {
    .container {
        padding: calc(var(--spacing-unit) * 0.75);
    }
}

@media (max-width: var(--breakpoint-tablet)) {
    .project-description {
        flex-direction: column;
        gap: 2rem;
    }

    .vis-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: var(--breakpoint-mobile)) {
    .container {
        padding: calc(var(--spacing-unit) * 0.5);
    }

    .project-title {
        font-size: 1.8rem;
    }

    .vis-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .video-container {
        padding-bottom: var(--video-aspect-ratio-mobile);
    }
}