/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'YoungSerif';
    src: url('../fonts/YoungSerif-Regular.woff2') format('woff2');
    font-weight: 400; 
    font-style: normal;
}

@font-face {
    font-family: 'FanwoodText';
    src: url('../fonts/FanwoodText.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

body {
    font-family: 'FanwoodText', serif;
    color: #000;
    background: #fff;
    line-height: 1.6;
}

/* Sidebar Navigation */
.sidebar {
    font-family: 'YoungSerif', serif;
    position: fixed;
    left: 0;
    top: 0;
    width: 200px;
    height: 100vh;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
}

h1, h2, h3 {
    font-family: 'YoungSerif', serif;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #000;
    text-decoration: none;
    margin-bottom: 40px;
    display: block;
}

.logo img {
    max-width: 100%;
    height: auto;
    display: block;
}

.nav-links {
    list-style: none;
}

.nav-links li {
    margin-bottom: 5px;
}

.nav-links a {
    color: #000;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: opacity 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 0.5;
}

/* Main Content Area */
.content {
    margin-left: 200px;
    padding: 60px 80px;
    max-width: 1400px;
}

/* Page Load Animation */
body {
    animation: pageLoad 0.3s ease;
}

@keyframes pageLoad {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Hero Section */
.hero {
    margin-bottom: 60px;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Intro Section */
.intro {
    max-width: 800px;
    margin-bottom: 40px;
}

.intro h1 {
    font-size: 42px;
    font-weight: 300;
    margin-bottom: 5px;
    line-height: 1.2;
}

.intro p {
    font-size: 18px;
    color: #666;
}

/* Video Grid (Home Page) */
.video-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    margin-bottom: 80px;
}

.video-item {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    cursor: pointer;
    background: #000;
}

.video-poster,
.video-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-poster {
    z-index: 2;
    transition: opacity 0.6s ease;
}

.video-preview {
    z-index: 1;
    opacity: 1;
}

.video-item.playing .video-poster {
    opacity: 0;
}

.video-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0) 100%);
    z-index: 3;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-item:hover .video-overlay,
.video-item.playing .video-overlay {
    opacity: 1;
}

.video-overlay h3 {
    color: #fff;
    font-size: 18px;
    font-weight: 300;
    margin: 0;
}

/* Video Section */
.video-section h1 {
    font-size: 42px;
    font-weight: 300;
    margin-bottom: 40px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin-bottom: 40px;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* About Section */
.about-section {
    max-width: 1000px;
}

.about-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin-bottom: 40px;
}

.about-text h1 {
    font-size: 42px;
    font-weight: 300;
    margin-bottom: 30px;
}

.about-text p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #333;
    max-width: 700px;
}

/* Contact Section */
.contact-section h1 {
    font-size: 42px;
    font-weight: 300;
    margin-bottom: 40px;
}

.contact-info {
    margin-bottom: 40px;
}

.contact-info p {
    font-size: 18px;
    margin-bottom: 15px;
}

.contact-info a {
    color: #000;
    text-decoration: none;
    border-bottom: 1px solid #000;
    transition: opacity 0.3s;
}

.contact-info a:hover {
    opacity: 0.5;
}

.social-links {
    display: flex;
    gap: 30px;
}

.social-links a {
    color: #000;
    text-decoration: none;
    font-size: 16px;
    transition: opacity 0.3s;
}

.social-links a:hover {
    opacity: 0.5;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding: 20px;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .logo {
        margin-bottom: 0;
    }

    .logo img {
        max-width: 100%;
        height: auto;
        display: block;
    }

    .nav-links {
        display: flex;
        gap: 20px;
    }

    .nav-links li {
        margin-bottom: 0;
    }

    .content {
        margin-left: 0;
        padding: 40px 20px;
    }

    .intro h1,
    .video-section h1,
    .about-text h1,
    .contact-section h1 {
        font-size: 32px;
    }

    .video-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .video-overlay h3 {
        font-size: 16px;
    }
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin-top: 40px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    font-family: 'FanwoodText', serif;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #000;
}

.contact-form button {
    padding: 12px 40px;
    background: #000;
    color: #fff;
    border: none;
    font-family: 'YoungSerif', serif;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: opacity 0.3s;
}

.contact-form button:hover {
    opacity: 0.8;
}

/* Project Page Layout */
.project-page {
    max-width: 1200px;
}

.project-page h1 {
    margin-bottom: 40px;
    font-size: 48px;
}

.project-description {
    margin: 60px 0;
}

.project-description h2 {
    margin-bottom: 20px;
    font-size: 24px;
}

.project-description p {
    line-height: 1.8;
    margin-bottom: 20px;
}

.project-gallery {
    margin-top: 60px;
}

.project-gallery h2 {
    margin-bottom: 30px;
    font-size: 24px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}