html, body {
    height: 100%;
    margin: 0;
    position: relative;
    background-color: white;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
}

body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/img/logo-large-black-on-white.png') no-repeat center center;
    background-size: contain;
    z-index: 0; /* was -1 */
}

body.has-opacity::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('/img/logo-large-black-on-white.png') no-repeat center center;
    background-size: contain;
    opacity: 0.1;
    z-index: 0;
}

h1, h2, h3 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.5em;
}

@media (max-width: 600px) {
  body {
    font-size: 0.95rem;
  }
  h1 {
    font-size: 1.8rem;
  }
}

h1 {
  text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
}

h1 {
  border-bottom: 2px solid #ff5252;
  display: inline-block;
  padding-bottom: 0.2em;
}

p {
  margin-bottom: 1.2em;
  font-weight: 400;
}

a {
  color: #ff5252;
  text-decoration: none;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: black;
    color: white;
    display: flex;
    justify-content: space-between; /* spread logo left, menu right */
    align-items: center;
    padding: 0 20px;
    z-index: 1000;
}

header .logo {
    margin-right: auto;
    height: 50px;
    width: auto;
    display: flex;
    align-items: center;
}
header .logo img {
    height: 100%;
    width: auto;
}

/* Keep menu toggle + menu aligned right */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 25px;
    height: 18px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 4px;
    background: white;
    margin-bottom: 4px;
    border-radius: 2px;
}
.menu-toggle span:last-child {
    margin-bottom: 0;
}

/* Desktop layout */
@media (min-width: 768px) {
    header {
        justify-content: flex-start; /* items line up left */
    }
    header .logo {
        margin-right: auto; /* push menu to far right */
    }
    nav {
        display: flex;
        flex-direction: row;
        background: none;
        position: static;
    }
}

/* Navigation menu */
nav {
    display: none;
    flex-direction: column;
    background: black;
    position: absolute;
    top: 60px;
    right: 20px;
    border-radius: 5px;
    overflow: hidden;
}
nav a {
    color: white;
    text-decoration: none;
    padding: 10px 20px;
    border-bottom: 1px solid #333;
    transition: background 0.3s;
}
nav a:hover {
    background: #222;
}
nav a:last-child {
    border-bottom: none;
}

/* Show menu when active */
nav.active {
    display: flex;
}

/* Large screen (desktop): horizontal menu */
@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }
    nav {
        display: flex !important;
        position: static;
        flex-direction: row;
        background: none;
    }
    nav a {
        border: none;
        padding: 0 15px;
    }
    nav a:hover {
        background: none;
        text-decoration: underline;
    }
    img {
        max-height: 90%;   /* 90% height */
        width: auto;       /* maintain aspect ratio */
    }
}

.container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Align content to the top */
  min-height: 100vh; /* Full viewport height */
  padding-top: calc(10vh + 60px); /* 25% buffer + header height */
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .container {
    padding-top: calc(1vh + 30px); /* smaller buffer on tablets/phones */
  }
}

@media (max-width: 480px) {
  .container {
    padding-top: calc(1vh + 20px); /* even smaller on small phones */
  }
}


img {
    max-width: 100%;
    height: auto;
}

/* sections */
@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.about {
    max-width: 800px;
    margin: 80px auto;
    padding: 0 20px;
    font-size: 1.1em;
    line-height: 1.6;
    color: #333;
}
.about h1 {
    font-size: 2em;
    margin-bottom: 20px;
    color: black;
}

.about h1 {
    font-size: 2em;
    margin-bottom: 20px;
    color: black;
    animation: fadeUp 1s ease-out;
}

.about p {
    animation: fadeUp 1s ease-out;
    animation-delay: 0.3s;
    animation-fill-mode: both;
}

@keyframes logoPulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.95;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes logoFlicker {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.85;
  }
}

.logo img {
  animation: logoPulse 10s ease-in-out infinite, logoFlicker 0.8s ease-in-out infinite;
  transform-origin: center;
}

@keyframes logoShake {
  0%, 100% {
    transform: translate(0, 0) scale(1.05);
  }
  10% {
    transform: translate(-2px, 2px) scale(1.05);
  }
  20% {
    transform: translate(2px, -2px) scale(1.05);
  }
  30% {
    transform: translate(-2px, 2px) scale(1.05);
  }
  40% {
    transform: translate(2px, -2px) scale(1.05);
  }
  50% {
    transform: translate(-2px, 2px) scale(1.05);
  }
  60% {
    transform: translate(2px, -2px) scale(1.05);
  }
  70% {
    transform: translate(-2px, 2px) scale(1.05);
  }
  80% {
    transform: translate(2px, -2px) scale(1.05);
  }
  90% {
    transform: translate(-2px, 2px) scale(1.05);
  }
}

.logo.shake img {
  animation: logoShake 0.8s linear;
}

/* contact form */
/* Contact Section */
.contact-section {
  background-color: #000;
  padding: 4rem 1rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.contact-section h1 {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  color: #fff;
  font-weight: 600;
}

/* Contact Form Container */
.contact-form {
  max-width: 500px;
  margin: 2rem auto;
  padding: 1.5rem;
  background-color: #111;
  color: #eee;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  border: 1px solid #333;
}

/* Form Elements */
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  background-color: #222;
  color: #fff;
  border: 1px solid #444;
  border-radius: 4px;
  transition: border-color 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #aaa;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #e60000;
  outline: none;
}

/* Submit Button */
.contact-form button {
  width: 100%;
  padding: 0.75rem;
  font-size: 1rem;
  background-color: #e60000;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.contact-form button:hover {
  background-color: #cc0000;
  transform: scale(1.02);
}

/* Success Message */
.contact-form .success-message {
  margin-top: 1rem;
  padding: 0.75rem;
  background-color: #1f3d1f;
  color: #b2e2b2;
  border: 1px solid #2d7a2d;
  border-radius: 4px;
  font-size: 0.9rem;
  display: none; /* Toggle with JS */
}

/* Responsive Tweaks */
@media (max-width: 600px) {
  .contact-form {
    padding: 1rem;
    margin: 1.5rem auto;
  }

  .contact-section h1 {
    font-size: 1.5rem;
  }

  .contact-form button {
    font-size: 0.95rem;
  }
}

.contact-form *,
.contact-form *::before,
.contact-form *::after {
  box-sizing: border-box;
}

.contact-form input,
.contact-form textarea {
  max-width: 100%;
  width: 100%;
  display: block;
}

.contact-form {
  position: relative;
  z-index: 10;
  padding: 1.5rem 1.25rem;
}

.contact-form .error-message {
  margin-top: 1rem;
  padding: 0.75rem;
  background-color: #330000;
  color: #ff6666;
  border: 1px solid #990000;
  border-radius: 4px;
  font-size: 0.9rem;
  display: none;
}

