* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'Meadow';
    src: url('project_media/fonts/MeadowFreeRegular-3lqmz.otf') format('opentype'),
         url('project_media/fonts/MeadowFreeRegular-xRJjR.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Novox';
    src: url('project_media/fonts/Novox-MAmqv.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Lato';
    src: url('project_media/fonts/Lato-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

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

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

body {
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #293241;
    background-color: #fff;
    font-weight: 300;
    letter-spacing: 0.3px;
}

/* Typography - Consolidated */
a {
    font-family: 'Lato', serif;
}

h1 {
    font-family: 'Milker', serif;
    font-weight: normal;
    font-size: 48px;
    margin-bottom: 20px;
    text-align: center;
    color: #3d5a80

}

h2 {
    font-family: 'Milker', serif;
    font-weight: normal;
    font-size: 32px;
    margin-bottom: 20px;
    text-align: center;
    color: #98c1d9;

}

h3 {
    font-family: 'Lato', sans-serif;
    font-weight: normal;
    font-size: 20px;
    margin-bottom: 15px;
    text-align: center;
    color: #293241;
}

h4 {
    font-family: 'Lato', sans-serif;
    font-weight: normal;
    color: #293241;
}

h5, h6 {
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    
}

/* Header and Navigation */
header {
    padding: 20px 5px;
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

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

.logo a {
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.3s;
    font-family: 'Milker', serif;
    background: #3d5a80;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #3d5a80;
    display: inline-block;
}

.logo a:hover {
    opacity: 0.8;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

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

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: all 0.3s;
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.nav-links a {
    color: #333;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s;
    position: relative;
    font-weight: 300;
    font-family: 'Lato', serif;
}

.nav-links a:hover,
.nav-links a.active {
    color: #000;
    font-weight: 700;
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #000;
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.spacer {
    height: 100px;
}

.section {
    margin-left: -20px;
    margin-right: -20px;
    width: calc(100% + 40px);
}

.section {
    margin: 0 -20px 0px -20px;
    position: relative;
    width: calc(100% + 40px);
    text-align: center;
}

.content {
    text-align: center;
    margin-bottom: 0px;
}

.name {
    font-family: 'Milker', serif;
    font-size: 80px;
    margin: 0;
    letter-spacing: 1px;
    line-height: 1.2;
    background: #3d5a80;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
}


/* Image/Video Container - Consolidated */
.image-container,
.youtube-container,
.project-image-container {
    margin: 20px auto;
    max-width: 800px;
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
}

.youtube-container {
    height: 0;
    padding-bottom: 50%; /* Slightly wider/shorter aspect ratio */
    background-color: #000;
}

.youtube-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.youtube-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.youtube-placeholder {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.youtube-placeholder:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.play-button {
    font-size: 80px;
    color: #fff;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.youtube-placeholder:hover .play-button {
    opacity: 1;
}

.youtube-placeholder p {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 18px;
    font-weight: 300;
}

.section-link {
    display: block;
    margin-top: 25px;
    color: #293241;
    text-decoration: none;
    font-size: 20px;
    transition: color 0.3s;
    font-weight: 300;
    text-align: center;
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.section-link:hover {
    color: #000;
    text-decoration: underline;
}

/* Work Preview Sections */
.work-preview {
    margin-bottom: 20px;
    min-height: 50px;
    max-height: 130px;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.work-preview:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.work-section-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 50%;
}

.work-section-content {
    padding: 10px 10px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: #98c1d9;;
    transition: background 0.3s;
}

.work-preview:hover .work-section-content {
    background: #baccd6;
}

.films-preview .work-section-content {
    background: #c5d3db
}

.films-preview:hover .work-section-content {
    background: #baccd6;
}

.work-3d-preview .work-section-content {
    background: #c5d3db;
}

.work-3d-preview:hover .work-section-content {
    background: #baccd6;
}

.tools-preview .work-section-content {
    background: #c5d3db;
}

.tools-preview:hover .work-section-content {
    background: #baccd6
}

.about-preview .work-section-content {
    background: #c5d3db;
}

.about-preview:hover .work-section-content {
    background: #baccd6;
}

.work-section-content h2 {
    font-size: 36px;
    margin-bottom: 12px;
    color: #3d5a80
}

.work-section-content p {
    font-size: 16px;
    color: #293241;
    margin-bottom: 12px;
    max-width: 600px;
    font-weight: 300;
}

.view-more {
    font-size: 16px;
    font-weight: 300;
    color: #293241;
    margin-top: 8px;
    transition: color 0.3s;
}

.work-section-link:hover .view-more {
    color: #000;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid #e0e0e0;
    margin-top: 80px;
    color: #666;
}



/* Grid layouts for work pages */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.work-item {
    background-color: #f5f5f5;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.work-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.work-item:hover .work-item-content h3 {
    color: #000;
}

.work-item-image {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background-color: #ddd;
    position: relative;
    overflow: hidden;
    display: block;
    flex-shrink: 0;
    border-radius: 8px;
}

.work-item-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    margin: 0;
    padding: 0;
    border: none;
    pointer-events: none;
    image-rendering: auto;
}

.work-item-content {
    padding: 20px;
}

.work-item-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.work-item-content p {
    font-size: 16px;
    color: #293241;;
    line-height: 1.6;
    font-weight: 300;
}

/* Responsive Design */
@media (max-width: 768px) {
    .section {
        padding: 80px 20px 60px;
    }

    .name {
        font-size: 64px;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 250px;
        height: calc(100vh - 70px);
        background-color: #fff;
        flex-direction: column;
        align-items: flex-start;
        padding: 30px 20px;
        gap: 20px;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 99;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        width: 100%;
        padding: 10px 0;
        font-size: 16px;
    }

    .nav-links a.active::after {
        display: none;
    }

    .work-section-content h2 {
        font-size: 36px;
        color: #3d5a80;
    }

    .work-section-content p {
        font-size: 18px;
    }

    .work-grid {
        grid-template-columns: 1fr;
    }

    header {
        padding: 15px 20px;
    }

    main {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 60px 15px 40px;
    }

    .name {
        font-size: 48px;
        letter-spacing: 0.5px;
    }

    .nav-links {
        top: 60px;
        height: calc(100vh - 60px);
    }

    .work-section-content {
        padding: 40px 20px;
    }
}

/* Reel Selector */
.reel-selector {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 0 auto 60px auto;
    padding: 5px 5px;
    position: relative;
    z-index: 10;
    max-width: 1200px;
}

.reel-btn {
    padding: 12px 30px;
    font-size: 16px;
    font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-weight: 300;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    color: #293241;
    background: transparent;
}

.reel-btn:hover {
    border-color: #ccc;
    color: #000;
}

.reel-btn.active {
    background: #baccd6;
    border-color: transparent;
    color: #fff;
}

.reel-btn.active:hover {
    opacity: 0.9;
}


.reel-content {
    display: none;
}

.reel-content.active {
    display: block;
    margin-top: 10px;
}

.content-section li {
    font-size: 20px;
    line-height: 1.8;
}



/* Project Image */
.project-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: block;
}

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

.image-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.image-column .project-image-container {
    width: 100%;
    margin: 20px 0;
}

/* Slideshow Styles */
.slideshow-container {
    position: relative;
    max-width: 800px;
    margin: 40px auto;
    min-height: 450px;
}

.slideshow-slide {
    display: none;
}

.slideshow-slide.active {
    display: block;
}

.slideshow-slide .project-image-container {
    height: 450px;
    overflow: hidden;
    position: relative;
}

.slideshow-slide .project-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.slideshow-btn {
    position: absolute;
    background-color: rgba(255, 255, 255, 0.9);
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 32px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    color: #333;
    padding: 0;
    line-height: 1;
    top: 450px;
}

.slideshow-btn:hover {
    background-color: #fff;
    border-color: #ccc;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.slideshow-prev {
    left: 20px;
}

.slideshow-next {
    right: 20px;
}

.slideshow-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.slideshow-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #ccc;
    background-color: transparent;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
}

.slideshow-dot.active {
    background-color: #ffa875;
    border-color: #ffa875;
}

.slideshow-dot:hover {
    border-color: #ffa875;
}

.slideshow-text-container {
    margin-top: 30px;
    height: 300px;
    position: relative;
    overflow: hidden;
}

.slideshow-text {
    display: none;
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 400px;
    overflow-y: auto;
}

.slideshow-text.active {
    display: block;
    height: 600px;
}

.slideshow-text h3 {
    margin-bottom: 15px;
    color: #293241;
}

.slideshow-text p {
    font-size: 16px;
    line-height: 1.6;
    color: #293241;
    max-width: 700px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .slideshow-btn {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .slideshow-prev {
        left: 10px;
    }
    
    .slideshow-next {
        right: 10px;
    }
}

/* About page specific responsive */
@media (max-width: 768px) {
    .content-section > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }

    .reel-selector {
        flex-direction: column;
        align-items: center;
    }

    .reel-btn {
        width: 100%;
        max-width: 300px;
    }
}

