/* Music for Media Page Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Screen reader only class */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #fff;
    color: #333;
    line-height: 1.6;
    padding-top: 120px; /* account for fixed header */
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

.wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

/* Header Styles */
#header {
    background: #fff;
    padding: 20px 40px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

#logo {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.logo-text a {
    font-size: 2rem;
    font-weight: 700;
    text-decoration: none;
    color: #000;
    letter-spacing: 0.1em;
    white-space: nowrap;
}

.logo-subtitle {
    font-size: 0.9rem;
    font-weight: 400;
    color: #666;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links a {
    text-decoration: none;
    color: #000;
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    transition: color 0.3s;
    white-space: nowrap;
    position: relative;
    padding-bottom: 2px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: #000;
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a:hover {
    color: #000;
}

/* Language Toggle Button */
.language-toggle {
    background: transparent;
    border: 1px solid #000;
    color: #000;
    padding: 8px 16px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    border-radius: 2px;
}

.language-toggle:hover {
    background: #000;
    color: #fff;
}

.social-links {
    display: flex;
    gap: 25px;
    margin-left: 40px;
    align-items: center;
    justify-content: flex-end;
    margin-right: -40px;
}

.social-links a {
    color: #000;
    font-size: 1.8rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-bottom: 2px;
}

.social-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: #000;
    transition: width 0.3s ease;
}

.social-links a:hover::after {
    width: 80%;
}

.social-links a:hover {
    color: #666;
    transform: translateY(-1px);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 2px;
    background-color: #000;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero-section {
    padding: 60px 0 40px;
    text-align: center;
    background: #fff;
}

.hero-section h1 {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 20px;
    color: #000;
}

.hero-section p {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Projects Section */
.projects-section {
    padding: 30px 0 40px;
    background: #fff;
}

/* Orchestral Mock-up Section */
.mockup-section {
    padding: 40px 0 60px;
    background: #f8f8f8;
}

.mockup-section h2 {
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 30px;
    color: #000;
    outline: none !important;
}

.mockup-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.mockup-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 8px;
}

.mockup-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* Projects Grid View */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
    margin-bottom: 40px;
}

.project-grid-item {
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    aspect-ratio: 3 / 4;
}

.project-grid-item.hidden {
    display: none;
}

.project-grid-item:hover {
    transform: scale(1.02);
}

.project-grid-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
    position: relative;
}

.project-grid-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease, opacity 0.3s;
}

.project-grid-item:hover .project-grid-image img {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Play Button Overlay for Videos - Removed */

/* Project Detail View */
.project-detail-view {
    width: 100%;
}

.back-to-grid-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #000;
    color: #fff;
    border: 1px solid #000;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 30px;
    font-family: 'Montserrat', sans-serif;
}

.back-to-grid-btn:hover {
    background: #fff;
    color: #000;
}

.back-to-grid-btn i {
    font-size: 16px;
}

/* Project Card (Detail View) */
.project-card {
    background: #fff;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.project-image {
    overflow: hidden;
    background: #f8f8f8;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

.project-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s, box-shadow 0.3s;
    max-height: 500px;
}

.project-image:hover img {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.project-content {
    padding: 25px 30px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-self: start;
}

.project-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    color: #000;
}

.project-type {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.project-description {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
    margin: 5px 0;
}

.project-credits {
    margin: 8px 0;
}

.project-credits p {
    font-size: 14px;
    color: #666;
    margin: 5px 0;
}

.project-credits strong {
    color: #000;
}

.project-awards {
    background: #f8f8f8;
    border-left: 3px solid #f5c518;
    padding: 12px 15px;
    margin: 12px 0;
    border-radius: 2px;
}

.project-awards h4 {
    font-size: 14px;
    font-weight: 600;
    color: #000;
    margin: 0 0 8px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-awards h4 i {
    color: #f5c518;
    font-size: 16px;
}

.project-awards p {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
    margin: 0;
}

.project-media {
    margin: 12px 0;
}

.project-media iframe {
    border-radius: 12px;
}

.project-video {
    margin: 12px 0;
}

.video-player {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.soundcloud-player iframe {
    width: 100%;
}

.project-links {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #000;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    border-radius: 0;
    transition: all 0.3s;
    border: 1px solid #000;
}

.btn-link:hover {
    background: #fff;
    color: #000;
}

.btn-link.btn-imdb {
    background: #f5c518;
    color: #000;
    border-color: #f5c518;
}

.btn-link.btn-imdb:hover {
    background: #000;
    color: #f5c518;
    border-color: #f5c518;
}

.btn-link i {
    font-size: 16px;
}

/* Footer */
footer {
    padding: 40px 0;
    background-color: #333;
    color: #fff;
    text-align: center;
    position: relative;
}

footer p {
    margin: 5px 0;
}

.back-to-welcome {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid rgba(255,255,255,0.3);
    color: #fff;
    text-decoration: none;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
    position: absolute;
    right: 40px;
    bottom: 40px;
}

.back-to-welcome:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-1px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    body {
        padding-top: 80px;
    }

    #header {
        padding: 15px 20px;
    }

    .wrapper {
        padding: 0 20px;
    }

    .logo-text a {
        font-size: 1.5rem;
    }

    .logo-subtitle {
        font-size: 0.7rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-right {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 30px;
        transition: right 0.3s ease;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        z-index: 999;
    }

    .nav-right.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }

    .nav-links a {
        font-size: 1rem;
        display: block;
        padding: 10px 0;
    }

    .social-links {
        margin-left: 0;
        margin-right: 0;
        justify-content: center;
        gap: 20px;
        padding-top: 20px;
        border-top: 1px solid #eee;
        width: 100%;
    }

    .social-links a {
        font-size: 1.5rem;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 15px;
    }

    .project-card {
        grid-template-columns: 1fr;
    }

    .project-image {
        max-height: 400px;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 80px;
    }

    #header {
        padding: 15px 20px;
    }

    .wrapper {
        padding: 0 20px;
    }

    .logo-text a {
        font-size: 1.5rem;
    }

    .logo-subtitle {
        font-size: 0.7rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-right {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 30px;
        transition: right 0.3s ease;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        z-index: 999;
    }

    .nav-right.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        gap: 20px;
        width: 100%;
    }

    .nav-links a {
        font-size: 1rem;
        display: block;
        padding: 10px 0;
    }

    .social-links {
        margin-left: 0;
        margin-right: 0;
        justify-content: center;
        gap: 20px;
        padding-top: 20px;
        border-top: 1px solid #eee;
        width: 100%;
    }

    .social-links a {
        font-size: 1.5rem;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }

    .project-grid-item[data-has-video="true"] .project-grid-image::after {
        width: 50px;
        height: 50px;
    }

    .project-grid-item[data-has-video="true"] .project-grid-image::before {
        border-left: 16px solid #000;
        border-top: 10px solid transparent;
        border-bottom: 10px solid transparent;
    }

    .hero-section {
        padding: 40px 0 30px;
    }

    .hero-section h1 {
        font-size: 32px;
    }

    .hero-section p {
        font-size: 15px;
    }

    .projects-section {
        padding: 40px 0 60px;
    }

    .project-content {
        padding: 30px 20px;
    }

    .project-title {
        font-size: 24px;
    }

    .mockup-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .mockup-section h2 {
        font-size: 24px;
    }

    .video-container {
        margin: 20px 0;
    }

    .video-container iframe {
        width: 100%;
        height: 200px;
    }

    .back-to-welcome {
        position: static;
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .logo-text a {
        font-size: 1.1rem;
    }

    .logo-subtitle {
        font-size: 0.6rem;
    }
}

/* Image Lightbox */
.image-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    cursor: pointer;
    animation: fadeIn 0.3s ease;
}

.image-lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: scaleIn 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close:hover {
    color: #ccc;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { 
        opacity: 0;
        transform: scale(0.9);
    }
    to { 
        opacity: 1;
        transform: scale(1);
    }
}
