/* Import fonts for the luxury theme - Montserrat for timeless premium feel */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&display=swap');

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #0b0b0b;
    color: #e5e5e5;
    line-height: 1.7;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s ease;
}

/* --- Header --- */
.main-header {
    position: absolute; /* Changed from relative to overlay hero */
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background-color: transparent; /* Changed to transparent */
}

/* Scrolled state */
.main-header.scrolled {
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(11, 11, 11, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    animation: slideDown 0.3s ease forwards;
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    color: #d4af37; /* Gold */
    font-weight: 700;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    z-index: 1001; /* Above mobile menu */
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #d4af37;
}

/* Hamburger Menu (Hidden on Desktop) */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 1001; /* Above mobile menu overlay */
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    background-color: #e5e5e5;
    transition: all 0.3s ease-in-out;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    width: 100%;
    height: 100vh; /* Fixed viewport height */
    min-height: 600px; /* Ensure it doesn't get too short */
    overflow: hidden;
    background: #0b0b0b;
    display: flex; /* Flexbox for robust centering */
    align-items: center;
    justify-content: center;
}

#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
    transform: translate(-50%, -50%);
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.25);
    z-index: 1;
}

.hero-content {
    position: relative; /* Relative to participate in Flexbox flow */
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    text-align: center;
    padding: 80px 20px; /* Add vertical padding to prevent edge touching */
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 4.5rem;
    font-weight: 300; /* Light and clean */
    color: #d4af37;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s forwards 0.5s;
}

.hero p {
    font-size: 1.25rem;
    font-weight: 300;
    max-width: 600px;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1s forwards 0.8s;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    opacity: 0;
    animation: fadeUp 1s forwards 1.1s;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-primary {
    padding: 14px 34px;
    border: 1px solid #d4af37;
    color: #d4af37;
    background: transparent;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px; /* Ensure buttons have consistent width */
}

.btn-primary:hover {
    background: #d4af37;
    color: #0b0b0b;
}

#btn-work {
    padding-left: 55px;
    padding-right: 55px;
}

/* --- Showreel Section --- */
.showreel-section {
    position: relative;
    width: 100%;
    min-height: 100vh; /* Full viewport height */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
}

.showreel-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4; /* Dim the background video */
}

.bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 20%, #0b0b0b 90%);
    z-index: 1;
}

.showreel-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.showreel-content .section-title {
    margin-bottom: 1rem;
    text-shadow: 0 4px 10px rgba(0,0,0,0.8); /* Enhance readability */
}

.vertical-video-wrapper {
    width: 100%;
    max-width: 400px; /* Approximate width for a phone-sized video */
    aspect-ratio: 9 / 16;
    margin: 0 auto;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    overflow: hidden;
    position: relative;
}

.showreel-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.showreel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.control-btn {
    background: transparent;
    border: 1px solid #333;
    color: #e5e5e5;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.control-btn:hover {
    border-color: #d4af37;
    color: #d4af37;
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-2px);
}

.youtube-btn {
    width: auto;
    padding: 0 20px;
    border-radius: 25px;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.youtube-btn i {
    font-size: 1.1rem;
}

/* Ensure icons are centered */
.control-btn i {
    pointer-events: none;
}


/* --- Projects Section --- */
.projects-section {
    padding: 4rem 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    font-weight: 300;
    color: #d4af37;
    text-align: center;
    margin-bottom: 4rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.project-card {
    background: #141414;
    border-radius: 0; /* Sharper edges for simplicity */
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #222;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.8);
    border-color: #d4af37;
}

.card-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: 2.5rem;
    text-align: left; /* Cleaner alignment */
}

.card-content h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #e5e5e5;
}

.card-content p {
    font-size: 0.95rem;
    color: #aaa;
    margin-bottom: 2rem;
    font-weight: 300;
}

.btn-secondary {
    display: inline-block;
    padding: 12px 28px; /* Increased padding */
    background: transparent; /* Default transparent */
    color: #d4af37; /* Gold text */
    border: 1px solid #d4af37; /* Gold border */
    border-radius: 4px; /* Subtle curve */
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem; /* Slightly larger text */
    letter-spacing: 1px;
    transition: all 0.3s ease; /* Smooth transition for all properties */
}

.btn-secondary:hover {
    background: #d4af37; /* Fill with gold on hover */
    color: #0b0b0b; /* Dark text on gold */
    border-color: #d4af37; /* Maintain gold border */
}

/* --- Services Section --- */
.services-section {
    padding: 6rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #0e0e0e; /* Slightly lighter than body for separation */
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: #141414;
    padding: 3rem 2rem;
    text-align: center;
    border: 1px solid #222;
    transition: all 0.3s ease;
}

.service-card:hover {
    border-color: #d4af37;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.service-icon {
    font-size: 2.5rem;
    color: #d4af37;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #e5e5e5;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-card p {
    font-size: 0.95rem;
    color: #aaa;
    font-weight: 300;
    line-height: 1.6;
}

/* --- Contact Section --- */
.contact-section {
    padding: 6rem 5%;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.contact-intro {
    max-width: 600px;
    margin: 0 auto 3rem auto;
    color: #888;
    font-size: 1.1rem;
    font-weight: 300;
}

.contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

/* Contact Details */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    width: 100%;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.info-item h4 {
    font-family: 'Montserrat', sans-serif;
    color: #666;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.info-item a, .info-item p {
    font-size: 1.4rem;
    color: #e5e5e5;
    text-decoration: none;
    transition: color 0.3s;
    font-weight: 300;
}

.info-item a:hover {
    color: #d4af37;
}

/* Social Links - Row of Icons */
.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1rem;
}

.social-link {
    font-size: 1.8rem; /* Larger icons */
    color: #aaa;
    padding: 10px;
    border: none;
    transition: all 0.3s;
}

.social-link:hover {
    color: #d4af37;
    transform: translateY(-3px);
}

/* --- Project Modal --- */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85); /* Dark semi-transparent background */
    backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.project-modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-content {
    width: 90%;
    height: 90%;
    max-width: 1600px; /* Max width for large screens */
    background: #0b0b0b;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.project-modal.active .modal-content {
    transform: scale(1);
}

#project-frame {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background: #0b0b0b; /* Prevents white flash */
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: #fff;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10000;
    line-height: 1;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #d4af37;
}

/* Mobile Responsive */
@media (max-width: 600px) {
    .info-item a, .info-item p {
        font-size: 1.1rem;
    }
    
    .modal-content {
        width: 100%;
        height: 100%;
        border-radius: 0; /* Full screen on mobile */
    }
    
    .modal-close {
        top: 15px;
        right: 15px;
        color: #d4af37; /* Gold by default on mobile for visibility */
        background: rgba(0,0,0,0.5); /* Background for visibility over content */
        border-radius: 50%;
        width: 40px;
        height: 40px;
        font-size: 2rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
    border-top: 1px solid #222;
    color: #666;
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .hero-content {
        padding: 40px 20px;
    }

    .hero h1 {
        font-size: 2.5rem; /* Reduced from 4.5rem */
        margin-bottom: 0.5rem;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-buttons {
        gap: 15px;
        flex-direction: column; /* Stack buttons on mobile */
        width: 100%;
        align-items: center;
    }

    .btn-primary {
        width: 100%; /* Full width buttons for easier tapping */
        max-width: 280px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    /* Mobile Navigation */
    .hamburger {
        display: block;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

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

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%; /* Hidden off-screen to the left */
        top: 0;
        gap: 0;
        flex-direction: column;
        background-color: rgba(11, 11, 11, 0.95); /* High opacity dark */
        backdrop-filter: blur(10px);
        width: 100%;
        height: 100vh; /* Full viewport height */
        text-align: center;
        transition: 0.3s;
        display: flex; /* Flex to center items */
        justify-content: center;
        align-items: center;
        z-index: 999; 
    }

    .nav-menu.active {
        left: 0; /* Slide in from left */
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 3rem; /* Revert to larger gap for full screen */
    }
    
    .nav-menu a {
        font-size: 1.5rem; /* Larger text for full screen */
    }
}