/* ==================== */
/* Basic Reset */
/* ==================== */
html {
    scroll-behavior: smooth;
}

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

video {
  width: 100%; /* Responsive width */
  height: auto; /* Maintain aspect ratio */
  display: block; /* Remove inline spacing */
    margin-top: 0.4rem;
    border: solid 0.5px #182622;
    border-radius: 5px;
}


/* Lightbox Styles */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(24, 38, 34, 0.9); /* Your slate color with transparency */
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  padding: 2rem;
  box-sizing: border-box;
}

.lightbox-content {
  background: #fff7de; /* Your paper color */
  max-width: 1000px;
  max-height: 90vh;
  width: 100%;
  border-radius: 8px;
  padding: 4rem 5vw;
  position: relative;
  overflow-y: auto;
  color: #182622; /* Your slate color */
}

.lightbox-text {
  line-height: 1.6;
}

.lightbox-text p {
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
    line-height: 120%;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #fc7338; /* Your orange color */
}

.lightbox-trigger {
  background: #fc7338; /* Your orange */
  color: #fff7de; /* Your paper color */
  border: none;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  font-family: "Muoto", sans-serif;
  font-weight: 500; /* Medium */
    font-size: 1.1em;
  margin: 1rem 0;
  transition: all 0.3s ease;
}

.lightbox-trigger:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* Show lightbox when active */
.lightbox-overlay.active {
  display: flex;
}

/* ==================== */
/* Burger Menu Styles */
/* ==================== */
.burger-menu {
    display: none; /* Hidden by default */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    margin-right: auto; /* Push other items to the right */
}

.burger-menu span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: #fff7de;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Active state for burger menu */
.burger-menu.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.burger-menu.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.download-btn {
    border: 1px solid #fff7de;
    color: #fff7de;
    padding: 0.25em 0.5em;
    border-radius: 5px;
}

/* Mobile styles */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 60px; /* Below the nav bar */
        left: 0;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: #fc7338;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 1000;
        padding: 1rem;
        font-size: 3em;
        line-height: 100%;
        letter-spacing: -1.5%;
            display: flex;
    flex-direction: column;
    gap: 1.3rem; /* Space between links */
    align-items: flex-start; /* Align links to the left */
    overflow-y: auto; /* Allow scrolling if many links */
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .burger-menu {
        display: block; /* Show burger menu on mobile */
    }

    /* Hide regular nav links on mobile */
    nav > .nav-links:not(.active) {
        display: none;
    }

    /* Adjust nav layout for mobile */
    nav {
        justify-content: space-between;
        padding: 2rem;
    }
}

/* Desktop styles */
@media (min-width: 769px) {
    .burger-menu {
        display: hidden !important; /* Force hide on desktop */
    }
    
    .nav-links {
        display: flex;
        margin-right: auto;
    }
}


/* ==================== */
/* Body and Typography */
/* ==================== */
body {
    font-family:
        "Muoto",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        sans-serif;
    line-height: 1.6;
    color: #182622;
    background-color: #fc7338;
    overflow-x: hidden;
    position: relative;
    opacity: 0;
    animation: fadeIn 0.3s ease-in 0.3s forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Moderat Regular */
@font-face {
    font-family: "Muoto";
    src: url("fonts/205TF-Muoto-Regular.woff2") format("woff"), 
        url("fonts/205TF-Muoto-Regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Muoto";
    src: url("fonts/205TF-Muoto-Medium.woff2") format("woff2"), 
        url("fonts/205TF-Muoto-Medium.woff") format("woff");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: "Muoto";
    src:url("fonts/205TF-Muoto-Bold.woff2") format("woff2"), 
        url("fonts/205TF-Muoto-Bold.woff") format("woff");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ==================== */
/* Heading Styles */
/* ==================== */
h1,
h2,
h3 {
    letter-spacing: -4%;
}

h1 {
        font-weight: 700;
    font-size: 12.5vw;
    margin: 1vw 0 10rem 0;
    line-height: 85%;
        letter-spacing: -7%;
}

h2 {
        font-weight: 700;
    font-size: 4rem;
    margin-bottom: 2rem;
    line-height: 85%;
}

h3 {
            font-weight: 500;

    margin: 0.5rem 0 1rem 0;
    font-size: 2rem;
    line-height: 115%;
}

/* ==================== */
/* Paragraph Styles */
/* ==================== */
p {
    font-size: 1.2rem;
    line-height: 115%;
}

.work-item p {
    padding-right: 8%;
    padding-bottom: 1.2rem;
    padding-top: 0;
    max-width:650px;
}

/* ==================== */
/* Link Styles */
/* ==================== */
a {
    color: #fc7338;
    text-decoration: none;
    border-bottom: 1px solid #182622;
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7;
}

nav a {
    margin: 0 0.5rem;
    font-size: 1em;
    border-bottom: none;
    color: #182622;
}

#case a {
    color: #fc7338;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

/* ==================== */
/* Layout and Containers */
/* ==================== */
.container {
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==================== */
/* Navigation */
/* ==================== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fc7338;
    padding: 0.5rem 1rem;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    vertical-align: middle;
}

/* ==================== */
/* Work Section */
/* ==================== */
.colours-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.6vw;
    margin-top: 2rem;
    margin-bottom: 0;
}

.dot {
    height: 21.8vw;
    width: 21.8vw;
    background-color: #bbb;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2em;
    line-height: 120%;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin-bottom: 0;
}

.work-item {
    text-align: left;
    margin: 5px 0 0 0;
    padding: 0 0 0 0; 
    min-height: unset; /* Remove fixed height */
    display: flex;
    flex-direction: column;
}

.work-item img {
    width: 100%;
    height: inherit;
    object-fit: cover;
    border-radius: 7px;
    transition: transform 0.3s ease;
    margin: 0;
    padding: 0;
}

.work-item-wide img {
    width: 100%;
    border-radius: 7px;
    object-fit: cover;
    margin-top: 0.8em;

}

.divider {
    height: 60px;
    border-bottom: solid 0.5px #182622;
    margin: 0 0 0.5em 0;
}

/* ==================== */
/* Case Section */
/* ==================== */
#case {
    background-color: #fff7de;
    color: #182622 !important;
    padding-top: 5em;
}

/* ==================== */
/* Responsive Design */
/* ==================== */
@media (max-width: 768px) {
    h1 {
        font-size: 5rem;
        font-weight: 700;
    }

    h2 {
        font-size: 3rem;
    }

    .container {
        padding: 1rem;
    }

    .colours-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2vw;
        margin-top: 2vw;
    }

    .dot {
        height: 40vw;
        width: 40vw;
        margin-top: 2vw;
    }

    .work-grid {
        grid-template-columns: repeat(1, 1fr);
    }

}