/* =====================
   RESET & GLOBAL STYLES
===================== */

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

body {
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    min-height: 100vh;
    line-height: 1.5;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

section {
    padding: 4rem 0;
}

/* =====================
   UTILITIES
===================== */
button {
  background-color: #4f46e5;
  color: #F9FAF8;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: 0.2s ease;
}

button:hover {
  background-color: #4338ca;
  transform: translateY(-2px);
}

/* =====================
   HEADER / NAVBAR
===================== */

.header-container, .hero, .footer-container {
    background-color: #1F2937;
    color: #F9FAF8;
}

.header-container {
    display: flex;
    justify-content: space-between;
    padding: 3rem 18rem;
}

nav a, .hero-secondary-text {
    font-size: 1.125em;
    color: #E5E7EB;
}

.hero-logo {
    font-size: 1.5em;
    color: #F9FAF8;
    font-weight: 900;
}

header .nav-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1em;
    list-style-type: none;
}

nav a:hover {
    cursor: pointer;
    color: purple;
    opacity: 0.8;
    transform: scale(1.05);
    transition: 0.2s ease-in-out;
}

/* =====================
   HERO SECTION
===================== */

.hero-container {
    padding: 8em 18em;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}

.hero-text {
    flex: 1;
}

.hero-main-text {
    font-size: 3em;
}

.hero-image {
    background-color: grey;
    flex: 1;
}

/* =====================
   INFORMATION
===================== */

.information h2 {
    text-align: center;
    font-size: 2.25em;
    font-weight: 900;
    color: #1F2937;
    padding: 1em;
}

.information-items-container {
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 1em;
    padding: 3em 20em 3em;
}

.information-item {
    display: flex;
    flex-direction: column;
    text-align: center;
    max-width: 20%;
    gap: 0.3em;
} 

/* =====================
   BLOCKQUOTE
===================== */

.blockquote-container {
    background-color: #E5E7EB;
    color: #1F2937;
    font-size: 2.25em;
    font-weight: 300;
    padding: 3em 7em;
    font-style: italic;
}

.blockquote-container cite {
    text-align: right;
    font-size: 0.6em;
    font-weight: 900;
    font-style: normal;
}

/* =====================
   GALLERY (CSS GRID)
===================== */

.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1em;
    padding: 8em 18em;
}

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

.stretch {
    grid-row: 1 / span 2;
}

/* =====================
   CALL-TO-ACTION
===================== */

.cta-container {
    margin: 1em 18em;
    background-color: #3882F6;
    padding: 3em 5em;
    border-radius: 0.5em;
    display: flex;
    justify-content: space-between;
    gap: 0.8em;
}

.cta-container h3 {
    font-size: 2vw;
    color: #F9FAF8;
}

.cta-container p {
    font-size: 1vw;
    color: #E5E7EB;
}

.cta-container button {
    background-color: #3882F6;
    border: 2px solid #F9FAF8;
    border-radius: 0.5em;
    padding: 0.6em 2em;
    font-size: 1em;
    color: #F9FAF8;
    font-weight: 900;
    width: 150px;
}

.cta-container button:hover {
    color: violet;
    border: 2px solid violet;
    opacity: 0.8;
  transform: scale(1.05);
  transition: 0.2s ease-in-out;
}

/* =====================
   FOOTER
===================== */

.footer-container {
    text-align: center;
    color: #E5E7EB;
    padding: 3em;
}

/* Media queries for tablets */
@media (max-width: 900px) {
  .hero-container {
    flex-direction: column;
    text-align: center;
    gap: 2em; 
  }
}

@media (max-width: 600px) {
  .nav-links {
    flex-direction: column;
    justify-content: center;
    gap: 0.5em;
  }

  .hero-main-text {
    font-size: 2rem; 
  }

  .information-items-container {
    flex-direction: column;
  }

  .cta-container {
    flex-direction: column;
    text-align: center;
    padding: 2em 5em; /* Reduce padding */
  }

  .cta-container h3, .cta-container p {
    font-size: 1em; /* Adjust font size for mobile */
  }

  .footer-container {
    padding: 2em;
    font-size: 0.9em; /* Reduce font size */
  }
}

@media (max-width: 480px) {
  .nav-links {
    flex-direction: column;
    gap: 0.5rem;
  }

  .hero-container {
    text-align: center;
  }
}