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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #000;
    background-color: #fff;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: #000;
    transition: transform 0.3s ease, gap 0.3s ease;
}

.logo-icon {
    width: 60px;
    height: auto;
    max-height: 60px;
    display: block;
    transition: width 0.3s ease, max-height 0.3s ease, opacity 0.2s ease;
    object-fit: contain;
}

.logo-link:hover .logo-icon {
    opacity: 0.8;
}

.logo-text {
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: font-size 0.3s ease, opacity 0.2s ease;
}

.logo-link:hover .logo-text {
    opacity: 0.7;
}

/* Scrolled state - smaller logo */
.navbar.scrolled .logo-icon {
    width: 40px;
    max-height: 40px;
}

.navbar.scrolled .logo-text {
    font-size: 14px;
}

.navbar.scrolled .logo-link {
    gap: 10px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    color: #000;
    text-decoration: none;
    font-weight: 400;
    font-size: 16px;
    transition: opacity 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-link:hover {
    opacity: 0.6;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 1px;
    background-color: #000;
    transition: all 0.3s ease;
}

/* Hero Section with Background Video */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background-color: #000;
}

.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    height: 56.25vw; /* 16:9 aspect ratio */
    min-height: 100vh;
    min-width: 177.77vh; /* 16:9 aspect ratio */
    transform: translate(-50%, -50%);
    border: none;
}

/* Ensure video covers entire viewport on all screen sizes */
@media (min-aspect-ratio: 16/9) {
    .hero-video {
        width: 100vw;
        height: 56.25vw;
    }
}

@media (max-aspect-ratio: 16/9) {
    .hero-video {
        width: 177.77vh;
        height: 100vh;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-title {
    font-size: 48px;
    font-weight: 400;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
    animation: fadeInOut 2s ease-in-out infinite;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 1px solid #fff;
    border-bottom: 1px solid #fff;
    transform: rotate(45deg);
    animation: bounce 2s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0.8;
    }
    50% {
        opacity: 0.4;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: rotate(45deg) translateY(0);
    }
    50% {
        transform: rotate(45deg) translateY(10px);
    }
}

/* Intro Message Section */
.intro-message-section {
    padding: 80px 0;
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.intro-message {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.intro-line-1,
.intro-line-2 {
    font-size: 20px;
    line-height: 1.8;
    color: #000;
    font-weight: 400;
    font-style: italic;
    margin: 0;
}

.intro-line-1 {
    margin-bottom: 20px;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 40px 80px;
}

/* Section Headings */
.section-heading {
    font-size: 24px;
    font-weight: 400;
    color: #000;
    margin-bottom: 60px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Work Section */
.work-section {
    margin-bottom: 120px;
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.project-item {
    padding: 30px 0;
    border-bottom: 1px solid #e0e0e0;
    transition: transform 0.6s ease;
    opacity: 1;
    transform: scale(1);
}

.project-item.in-view {
    transform: scale(1.15);
}

/* Reduce scale on mobile to prevent cutoff */
@media (max-width: 768px) {
    .project-item.in-view {
        transform: scale(1.05);
    }
}

@media (max-width: 480px) {
    .project-item.in-view {
        transform: scale(1.02);
    }
}

.project-item:last-child {
    border-bottom: none;
}

.project-video {
    width: 100%;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background-color: #000;
    transition: transform 0.6s ease, opacity 0.6s ease;
    cursor: pointer;
}

.vimeo-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
    opacity: 0.9;
    transition: opacity 0.3s ease, transform 0.3s ease;
    padding: 0;
}

.play-button:hover {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.1);
}

.play-button.hidden {
    display: none !important;
    opacity: 0;
    pointer-events: none;
}

.project-title {
    font-size: 28px;
    font-weight: 400;
    color: #000;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
    line-height: 1.3;
}

.project-meta {
    font-size: 14px;
    color: #666;
    line-height: 1.8;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.meta-label {
    font-weight: 500;
    color: #000;
}

.meta-separator {
    color: #999;
}

.meta-value {
    color: #666;
}

/* About Section */
.about-section {
    margin-bottom: 120px;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text-wrapper {
    max-width: 600px;
}

.about-text {
    font-size: 16px;
    line-height: 1.8;
    color: #000;
    font-weight: 400;
}

.about-text strong {
    font-weight: 500;
}

.about-image-wrapper {
    width: 100%;
    position: relative;
}

.about-image {
    width: 60%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* Contact Section */
.contact-section {
    margin-top: 120px;
    padding-top: 60px;
    border-top: 1px solid #e0e0e0;
}

.email {
    font-size: 16px;
    color: #000;
    text-decoration: none;
    font-weight: 400;
    transition: opacity 0.2s ease;
}

.email:hover {
    opacity: 0.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        height: 100vh;
    }

    .hero-title {
        font-size: 32px;
    }

    .scroll-indicator {
        bottom: 30px;
        font-size: 11px;
    }
    .nav-container {
        padding: 20px 24px;
    }

    .logo-icon {
        width: 40px;
        height: auto;
        max-height: 40px;
    }

    .navbar.scrolled .logo-icon {
        width: 32px;
        max-height: 32px;
    }

    .navbar.scrolled .logo-text {
        font-size: 12px;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 60px;
        flex-direction: column;
        background-color: #fff;
        width: 100%;
        padding: 40px 24px;
        border-bottom: 1px solid #e0e0e0;
        transition: left 0.3s ease;
        gap: 24px;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .intro-message-section {
        padding: 60px 0;
    }

    .intro-line-1,
    .intro-line-2 {
        font-size: 18px;
        padding: 0 20px;
    }

    .container {
        padding: 100px 20px 60px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .section-heading {
        font-size: 18px;
        margin-bottom: 40px;
    }

    .project-item {
        padding: 24px 0;
        width: 100%;
        box-sizing: border-box;
    }

    .project-video {
        margin-bottom: 16px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .project-title {
        font-size: 20px;
        line-height: 1.3;
        word-wrap: break-word;
    }

    .project-meta {
        font-size: 12px;
        line-height: 1.6;
        word-wrap: break-word;
    }

    .about-section,
    .contact-section {
        margin-bottom: 80px;
        margin-top: 80px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .about-text {
        font-size: 15px;
    }

    .about-image-wrapper {
        order: -1; /* Image appears first on mobile */
    }
}

@media (max-width: 480px) {
    .hero-section {
        height: 100vh;
    }

    .hero-title {
        font-size: 24px;
    }
    
    .intro-message-section {
        padding: 40px 0;
    }

    .intro-line-1,
    .intro-line-2 {
        font-size: 16px;
        padding: 0 16px;
        line-height: 1.7;
    }

    .container {
        padding: 90px 16px 40px;
        max-width: 100%;
        box-sizing: border-box;
    }

    .nav-container {
        padding: 20px 16px;
    }

    .section-heading {
        font-size: 16px;
        margin-bottom: 32px;
    }

    .project-item {
        padding: 20px 0;
        width: 100%;
        box-sizing: border-box;
    }

    .project-video {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin-bottom: 16px;
    }

    .project-title {
        font-size: 18px;
        line-height: 1.3;
        word-wrap: break-word;
    }

    .project-meta {
        font-size: 11px;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        line-height: 1.6;
        word-wrap: break-word;
    }

    .about-content {
        gap: 30px;
    }

    .about-text {
        font-size: 14px;
        line-height: 1.7;
    }

    .section-heading {
        font-size: 18px;
        margin-bottom: 32px;
    }
}
