/* Essential reset - gets rid of browser defaults */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f5f0; /* Slight off-white to reduce eye strain */
}

/* Basic typography - simple but elegant */
h1, h2, h3, h4 {
    margin-bottom: 1rem;
    font-weight: 700;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.5rem; color: #6B0F1A; } /* Deep red for accents to match curtains */

p { margin-bottom: 1rem; }

.container {
    max-width: 1200px; /* Stops the content from stretching too wide on larger screens */
    margin: 0 auto;
    padding: 0 1rem;
}

#hero > .container {
    width: 100%;
}

/* Header and Navigation */
.main-header {
    background-color: #141414;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
}

/* Theatre curtain container */
.curtain-container {
    display: flex;
    justify-content: space-between;
    height: 236px;
}

.curtain {
    height: 100%;
    width: 94px;
    overflow: hidden;
}

.curtain img {
    height: 100%;
    width: 100%;
    object-fit: contain;
    display: block;
}

.site-title {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.site-title h1 {
    margin: 0;
    color: #f0f0f0;
    /* Double text-shadow for more depth */
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.6),
                 0 0 20px rgba(107, 15, 26, 0.4);
    letter-spacing: 3px;
    font-size: 3.2rem;
    text-align: center;
    font-weight: 900;
    text-transform: uppercase;
    line-height: 1.1;
}

.site-title h1 span {
    display: block;
    font-size: 3.8rem;
    color: #c19a30; /* Gold color for "Digital" */
}

/* Mobile adjustments for the header */
@media (max-width: 768px) {
    .site-title h1 {
        font-size: 2.4rem;
        letter-spacing: 2px;
    }
    
    .site-title h1 span {
        font-size: 2.8rem;
    }
}

/* Navigation styles */
.main-nav {
    background-color: #6B0F1A;
    padding: 0.75rem 0;
    transition: all 0.3s ease;
    position: relative; /* Makes sure the mobile menu button positions correctly */
}

/* This class gets added by JS when scrolling down */
.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Created by JS to prevent content jumping when nav becomes fixed */
.nav-placeholder {
    display: none;
    height: 0;
}

.nav-links {
    display: flex;
    list-style: none;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-links li {
    flex: 1;
    text-align: center;
}

.nav-links a {
    display: block;
    text-decoration: none;
    color: #f0f0f0;
    font-weight: 500;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Invisible by default, shows on mobile only */
.mobile-menu-btn {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: #f0f0f0;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.5rem;
}

/* Hero Section - where the video is */
#hero {
    min-height: calc(100vh - 50px); /* 50px is approximate nav height */
    background-color: #141414;
    color: #f0f0f0;
    padding: 50px 0;
    text-align: center;
    background-image: radial-gradient(circle at center, #2a2a2a 0%, #141414 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.video-container {
    max-width: 800px;
    margin: 2rem auto;
    border: 12px solid #6B0F1A;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
}
    

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

/* Tech used section */
.technologies-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.tech-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 200px;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(193, 154, 48, 0.3); /* Subtle gold border */
}

.tech-tile img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.tech-tile h3 {
    color: #f0f0f0;
    font-size: 1.2rem;
    text-align: center;
}

.cta-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: #6B0F1A;
    color: #f0f0f0;
    text-decoration: none;
    border: 2px solid #c19a30;
    font-weight: bold;
    margin-top: 1.5rem;
}

/* Process Section */
#process {
    background-color: #f8f5f0;
}

.process-block {
    margin-bottom: 3rem;
    padding: 1.5rem;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Image grid for the process section - 3 columns by default */
.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.image-grid img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border: 4px solid #141414;
}

.animation-container {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}

.animation-container img {
    width: 50%;
    border: 4px solid #141414;
}

.animation-container div {
    width: 50%;
}

/* About Section */
#about {
    background-color: #f0f0f0;
}

.about-content {
    background-color: #fff;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.about-bio {
    overflow: hidden; /* For the floated image */
    margin-bottom: 2rem;
}

.profile-photo {
    float: right;
    width: 250px;
    height: 300px;
    object-fit: cover;
    margin: 0 0 1rem 1.5rem;
    border: 4px solid #141414;
}

.contact-details {
    background-color: #141414;
    color: #f0f0f0;
    padding: 1.5rem;
}

.contact-details h4 {
    color: #c19a30;
    margin-bottom: 1rem;
}

.contact-details ul {
    list-style: none;
}

.contact-details li {
    margin-bottom: 0.5rem;
}

.contact-details i {
    color: #c19a30;
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
}

/* Footer */
footer {
    background-color: #141414;
    color: #f0f0f0;
    padding: 1.5rem 0;
    text-align: center;
    border-top: 4px solid #6B0F1A;
}

.social-links {
    margin: 1rem 0;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #6B0F1A;
    color: #f0f0f0;
    border-radius: 50%;
    line-height: 40px;
    margin: 0 0.5rem;
    border: 1px solid #c19a30;
}

/* Responsive Design for mobile */
@media (max-width: 768px) {
    .curtain-container {
        height: 180px;
    }
    
    .curtain {
        width: 72px;
    }
    
    .site-title h1 {
        font-size: 2rem;
    }
    
    .main-nav {
        padding: 1rem 0;
    }
    
    /* Hide desktop nav links on mobile */
    .main-nav .nav-links {
        display: none;
    }
    
    /* Show nav links when mobile menu is active */
    .main-nav.mobile-active .nav-links {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #6B0F1A;
        z-index: 100;
    }
    
    .main-nav.mobile-active .nav-links li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .main-nav.mobile-active .nav-links a {
        padding: 1.2rem;
        font-size: 1.1rem;
    }
    
    /* Show mobile menu button */
    .mobile-menu-btn {
        display: block;
    }
    
    /* Stack tech tiles on mobile */
    .technologies-grid {
        flex-direction: column;
        align-items: center;
    }
    
    /* Single column for images on mobile */
    .image-grid {
        grid-template-columns: 1fr;
    }
    
    /* Stack animation container on mobile */
    .animation-container {
        flex-direction: column;
    }
    
    .animation-container img,
    .animation-container div {
        width: 100%;
    }
    
    /* Profile photo full width on mobile */
    .profile-photo {
        float: none;
        width: 100%;
        height: auto;
        margin: 0 0 1rem 0;
    }
    
    .contact-details ul {
        padding-left: 0;
    }
}

/* Images that can be clicked to show in lightbox */
.image-grid img {
    cursor: pointer;
    transition: opacity 0.3s;
}

.image-grid img:hover {
    opacity: 0.8;
}

.animation-container img {
    cursor: pointer;
    transition: opacity 0.3s;
}

.animation-container img:hover {
    opacity: 0.8;
}

/* Lightbox container */
.lightbox {
    display: none; 
    position: fixed;
    z-index: 1000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

/* Lightbox content */
.lightbox-content {
    display: block;
    margin: auto;
    max-width: 90%;
    max-height: 80vh;
    object-fit: contain;
}

/* Caption text */
#lightbox-caption {
    color: white;
    text-align: center;
    padding: 10px 0;
    width: 100%;
}

/* Close button */
.lightbox-close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #f1f1f1;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

.lightbox-close:hover {
    color: #bbb;
}

/* Animation for lightbox */
.fade-in {
    animation: fadeIn 0.3s;
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

/* More mobile adjustments for lightbox */
@media (max-width: 768px) {
    .lightbox {
        padding-top: 20px;
    }
    
    .lightbox-content {
        max-width: 95%;
        max-height: 75vh;
    }
    
    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }
}