/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: #222831;
  color: #DFD0B8;
  line-height: 1.6;
}

/* Navbar */
header.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
  width: 100%;
  padding: 20px 60px;
  background: #222831;
  position: relative;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo span {
  font-size: 1.3rem;
  font-weight: 700;
  color: #DFD0B8;
}
.logo img {
  height: 70px;
  width: auto;
}

/* Nav Links */
nav#nav-menu ul {
  list-style: none;
  display: flex;
  gap: 40px;
  align-items: center;
}

nav#nav-menu ul li a {
  text-decoration: none;
  color: #DFD0B8;
  font-weight: 500;
  position: relative;
  transition: 0.3s;
}

nav#nav-menu ul li a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  background: #948979;
  left: 0;
  bottom: -5px;
  transition: 0.3s;
}

nav#nav-menu ul li a:hover,
nav#nav-menu ul li a.active {
  color: #948979;
}

nav#nav-menu ul li a:hover::after,
nav#nav-menu ul li a.active::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: #DFD0B8;
}

/* About Sections */
.about-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 80px 10%;
  gap: 50px;
  background: #222831;
}

.about-section.alt {
  background: #393E46;
}

.about-section .content {
  flex: 1;
}

.about-section .content h2 {
  font-size: 2.2rem;
  margin-bottom: 20px;
  color: #DFD0B8;
}

.about-section .content p {
  text-align: justify;
  font-size: 1.05rem;
  color: #948979;
  max-width: 600px;
}

.about-section .image {
  flex: 1;
  text-align: center;
}

.about-section .image img {
  max-width: 80%;
  border-radius: 12px;
}

/* Tagline Section */
.tagline {
  text-align: center;
  padding: 100px 20px;
  background: #222831;
  border-top: 1px solid #393E46;
}

.tagline h1 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #DFD0B8;
}

.tagline p {
  font-size: 1.2rem;
  color: #948979;
  max-width: 700px;
  margin: 0 auto;
}

/* Footer */
.footer {
  background-color: #252323;
  color: #FFFFFF;
  padding: 40px 20px;
  font-family: 'Montserrat', sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.footer-section {
  flex: 1;
  min-width: 200px;
}

.footer-logo-img {
  height: 60px;
  width: auto;
  margin-bottom: 10px;
}

.footer-section h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.footer-section p,
.footer-section li a {
  color: #CBD5E1;
  line-height: 1.8;
  text-decoration: none;
}

.footer-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 5px;
  font-size: 20px;
}

.social-icons a {
  color: #CBD5E1;
  transition: 0.3s;
}

.social-icons a:hover {
  color: #00ADB5;
}

hr {
  border-color: #393E46;
  margin: 30px 0;
}

.footer-copy {
  text-align: center;
  color: #AAAAAA;
  font-size: 14px;
}

/* Media Queries */

/* 1200px and below - Desktop to Tablet */
@media (max-width: 1200px) {
  header.navbar {
    padding: 20px 40px;
  }
  .about-section {
    padding: 60px 8%;
    gap: 40px;
  }
  .about-section .content h2 {
    font-size: 2rem;
  }
  .about-section .content p {
    font-size: 1rem;
    max-width: 500px;
  }
  .about-section .image img {
    max-width: 90%;
  }
  .tagline h1 {
    font-size: 2.2rem;
  }
  .tagline p {
    font-size: 1.1rem;
    max-width: 600px;
  }
}

/* 900px and below - Tablet / Mobile */
@media (max-width: 900px) {
  header.navbar {
    padding: 20px 30px;
  }
  nav#nav-menu ul {
    display: none; /* hide nav links */
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    background: #222831;
    padding: 20px;
    border-radius: 8px;
    gap: 20px;
  }
  nav#nav-menu ul.active {
    display: flex;
  }
  .hamburger {
    display: block;
  }

  .about-section {
    flex-direction: column;
    text-align: center;
    padding: 50px 5%;
  }

  .about-section.alt {
    flex-direction: column-reverse;
  }

  .about-section .content h2 {
    font-size: 1.8rem;
  }

  .about-section .content p {
    font-size: 0.95rem;
    max-width: 100%;
  }

  .about-section .image img {
    max-width: 100%;
  }

  .tagline h1 {
    font-size: 2rem;
  }

  .tagline p {
    font-size: 1rem;
    max-width: 90%;
  }
}

/* 600px and below - Mobile portrait */
@media (max-width: 600px) {
  header.navbar {
    flex-direction: row;
    justify-content: space-between;
    padding: 15px 20px;
  }

  .logo img {
    height: 60px;
  }

  nav#nav-menu ul {
    width: 180px;
    top: 60px;
  }

  .about-section {
    padding: 40px 5%;
    gap: 30px;
  }

  .about-section .content h2 {
    font-size: 1.6rem;
  }

  .about-section .content p {
    font-size: 0.9rem;
  }

  .tagline h1 {
    font-size: 1.8rem;
  }

  .tagline p {
    font-size: 0.95rem;
  }

  .footer-section {
    min-width: 100%;
    margin-bottom: 20px;
  }
}

/* 400px and below - Small phones */
@media (max-width: 400px) {
  .logo img {
    height: 50px;
  }

  .about-section .content h2 {
    font-size: 1.4rem;
  }

  .about-section .content p {
    font-size: 0.85rem;
  }

  .tagline h1 {
    font-size: 1.5rem;
  }

  .tagline p {
    font-size: 0.85rem;
  }

  nav#nav-menu ul {
    width: 150px;
    padding: 15px;
    gap: 15px;
  }
}


/* Force illustrations visible on mobile */
@media (max-width: 900px) {
  .about-section .image {
    display: block !important;
    width: 100%;
    flex: auto;
    margin: 20px 0;
  }

  .about-section .image img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
  }
}

@media (max-width: 400px) {
  .about-section .image img {
    max-width: 85%;
  }
}

/* Large screens (default) */
.about-section .image img {
  max-width: 80%; /* current size */
}

/* Tablets - 900px to 601px */
@media (max-width: 900px) {
  .about-section .image img {
    max-width: 60%; /* smaller */
  }
}

/* Mobile portrait - 600px to 401px */
@media (max-width: 600px) {
  .about-section .image img {
    max-width: 50%; /* smaller for mobile */
  }
}

/* Small phones - 400px and below */
@media (max-width: 400px) {
  .about-section .image img {
    max-width: 45%; /* tiny phones */
  }
}




/* Animations */
.about-section, .tagline {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.about-section.visible, .tagline.visible {
  opacity: 1;
  transform: translateY(0);
}

.about-section .image img {
  transition: transform 0.5s ease;
}

.about-section .image img:hover {
  transform: scale(1.05);
}
