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

body {
    font-family: din-2014, sans-serif;
    font-weight: 400;
    font-style: normal;
    background-color: white;
    line-height: 48px;
    height: 35px;
}

/* Container for all page content */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
}

/* Header Styles */
header {
    display: flex;
    justify-content: space-between;
    padding: 40px;
    background-color: white;
    color: black;
    position: relative;
    text-transform: uppercase;
}

/* Header Left */
.header-left h1 {
    font-size: 4rem;
    color: rgba(220,220,220,1.00);
    position: relative;
    cursor: pointer;
}
.header-left .short-name {
    display: none;
}

/* Hamburger Icon */
.header-right .hamburger {
    font-size: 30px;
    cursor: pointer;
    color: black;
    display: block;
    width: 50px;
    height: 50px;
}

/* Carousel Styles */
.carousel {
    position: relative;
    width: 100%;
    height: auto;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 0px;
    padding: 40px;
}

.carousel-frame {
    position: relative;
    aspect-ratio: 10 / 7;
}

.carousel-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

/* Active image to show */
.carousel-img.active {
    opacity: 1;
}

/* --- WORK PAGE --- */
.work-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr)); /* 2x2 on desktop, responsive */
  gap: 20px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px;
}

.work-item {
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 10 / 7; /* same ratio as carousel */
}

.work-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.work-item:hover img {
  transform: scale(1.05);
}

/* --- Responsive for mobile --- */
@media (max-width: 512px) {
  .work-gallery {
    grid-template-columns: 1fr; /* stack vertically */
    padding: 20px 10px 10px; /* match homepage carousel spacing */
    max-width: 100%; /* prevent overflow */
  }
}



/* Video Holder */
.video-holder {
    position: relative;
    width: 100%;
    height: auto;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 0px;
    padding: 40px;
}

.video-frame {
    position: relative;
    aspect-ratio: 10 / 5;
}

.video-knife {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Footer */
.footer p {
    font-weight: 300;
    font-size: 11pt;
    padding-left: 40px;
    color: #C2C2C2;
}

/* Overlay Menu */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s, opacity 0s;
}

.overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.menu-btn {
    background-color: transparent;
    color: rgba(150,150,150,1.00);
    padding: 20px 30px;
    font-family: din-2014, sans-serif;
    font-weight: 300;
    font-size: 25px;
    margin: 10px;
    width: 150px;
    cursor: pointer;
    border: none;
    display: block;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.menu-btn:hover {
    color: grey;
}

/* Close Button */
.close-btn {
    background: none;
    border: none;
    cursor: pointer;
    position: absolute;
    top: 60px;
    right: 60px;
    visibility: hidden;
    z-index: 10;
}

.close-btn img {
    width: 50px;
    height: 50px;
}

/* Show close button when overlay is active */
.overlay.active + .close-btn {
    visibility: visible;
}

/* Contact Form */
.contact-form {
    padding: 0px;
    background-color: #fff;
    margin: 20px auto;
    width: 80%;
    max-width: 600px;
    border-radius: 0;
}

.contact-form h2 {
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.8rem;
}

/* Name Fields */
.name-fields {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.name-fields input {
    width: 48%;
    padding: 10px;
    border: 1px solid #ccc;
    margin-right: 2%;
    border-radius: 0;
    font-family: din-2014, sans-serif;
    font-size: 11pt;
    font-weight: 300;
}

.name-fields input:last-child {
    margin-right: 0;
}

/* Email Input */
.contact-form input[type="email"] {
    width: 100%;
    padding: 10px;
    margin-bottom: 25px;
    border: 1px solid #ccc;
    border-radius: 0;
    font-family: din-2014, sans-serif;
    font-size: 11pt;
    font-weight: 300;
}

/* Message Textarea */
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 0;
    resize: vertical;
    min-height: 150px;
    max-height: 250px;
    font-family: din-2014, sans-serif;
    font-size: 11pt;
    font-weight: 300;
}

/* Submit Button */
.contact-form button {
    padding: 10px 20px;
    background-color: rgba(150,150,150,1.00);
    color: white;
    border: none;
    border-radius: 0px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s ease;
    font-family: din-2014, sans-serif;
    font-size: 11pt;
    font-weight: 300;
}

.contact-form button:hover {
    background-color: #6E6E6E;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 10px;
    border: 1px solid #c3e6cb;
    margin-top: 10px;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border: 1px solid #f5c6cb;
    margin-top: 10px;
}

.centered-text {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #333;
}

.centered-text p {
    font-size: 1.2rem;
    font-family: din-2014, sans-serif;
    font-weight: 400;
    margin: 0;
}

/* Responsive adjustments for header/footer */
@media (max-width: 768px) {
    .header-left .full-name {
        display: none;
    }
    .header-left .short-name {
        display: inline;
    }
}

@media (max-width: 512px) {
    header {
        padding: 10px;
        position: relative;
    }
    .carousel {
        padding: 20px 10px 10px;
    }
    .footer p {
        padding: 0 0 0 10px;
        font-size: 10pt;
    }
    .close-btn {
        top: 30px;
        right: 30px;
    }
    .contact-form {
        padding: 10px;
        width: 100%;
        position: inherit;
    }
}
