/* ---------- 1. Global Reset & Base ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #fff;
  color: #222;
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

/* ---------- 2. Sticky Header ---------- */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  background: #f9f9f9;
  padding: 0.6rem 0.8rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  flex: 1;
  text-align: center;
}

.logo img {
  height: 90px;
  width: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2.2rem;
  cursor: pointer;
  color: #000;
  font-weight: bold;
}

nav {
  flex: 1 1 100%;
  text-align: center;
  width: 100%;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  justify-content: center;
}

nav a {
  text-decoration: none;
  color: #222;
  padding: 0.6rem 1rem;
  font-weight: 500;
}

nav a:hover, 
nav a.active {
  color: #b22222;
}

/* ---------- 3. Hero & Content ---------- */
.hero {
  position: relative;
  text-align: center;
  color: #fff;
}

.hero-image {
  width: 100%;
  height: 65vh;
  object-fit: cover;
  filter: brightness(65%);
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-shadow: 0 4px 14px rgba(0,0,0,0.7);
}

.about.readable {
  max-width: 900px;
  margin: 4rem auto;
  padding: 2.5rem 3rem;
  text-align: center;
  background: #fcfcfc;
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.06);
}

/* ---------- 4. Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  padding: 1rem;
}

.gallery-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
}

.gallery h2 {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 20px;
}

/* ---------- 5. Footer ---------- */
.footer-info {
  text-align: center;
  background: #fff;
  padding: 2.5rem 1rem;
  line-height: 1.8;
}

.footer-info p {
  margin: 4px 0;
}

footer {
  text-align: center;
  background: #444;
  padding: 2rem 1.5rem;
  font-size: 0.95rem;
  color: #fff;
}

footer a {
  color: #fff;
  text-decoration: none;
  margin: 0 0.8rem;
}

footer a:hover {
  text-decoration: underline;
}

.back-top {
  display: inline-block;
  color: #fff;
  font-weight: bold;
  margin-bottom: 1rem;
  text-decoration: none;
}


.blink-text {
  animation: fade-pulse 1.5s ease-in-out infinite;
  display: inline-block;
}

@keyframes fade-pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3; /* This provides the subtle pulse you requested */
  }
}

/* This forces the headers to have zero bottom space */
.brands h3 {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* This forces the link container to move up */
.brands div[style*="display: flex"] {
  margin-top: 0 !important;
}


/* ---------- 6. Mobile Optimization ---------- */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  nav ul {
    flex-direction: column;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.3s ease;
  }
  nav ul.open {
    max-height: 320px;
    opacity: 1;
    padding: 1rem;
    border-top: 1px solid #ddd;
  }
}