:root {
  --primary-color: #8e7c68;
  --secondary-color: #fdfbf7;
  --text-color: #333;
  --accent-color: #d4c5b0;
  --hover-color: #6d5f4f;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  padding: 0;
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

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

/* HEADER */

header {
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  opacity: 0.95;

  display: flex;
  margin: 0 auto;
  padding: 1rem 50px;
  justify-content: space-between;
  align-items: center;

  position: sticky;
  top: 0;
  background-color: whitesmoke;
  z-index: 1000;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
}

nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: var(--primary-color);
  font-weight: bold;
}

nav a:hover {
  color: yellowgreen;
}

/* HERO */

.hero {
  height: 90vh;

  background:
    linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.3)),
    url("https://images.unsplash.com/photo-1599901860904-17e6ed7083a0?auto=format&fit=crop&w=1500&q=80");

  background-size: cover;
  background-position: center;

  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: whitesmoke;
}

.hero-content {
  background: rgba(0,0,0,0.2);
  padding: 5rem;
  border-radius: 10px;
  backdrop-filter: blur(2px);
  max-width: 900px;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
  font-weight: 300;
}

.hero p {
  font-size: 1.5rem;
}

.cta-button {
  background-color: var(--primary-color);
  color: whitesmoke;
  padding: 12px 30px;
  font-size: 1.25rem;
  border-radius: 5px;
  margin-top: 20px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
}

.cta-button:hover {
  background-color: var(--hover-color);
  color: yellowgreen;
}

.cta-button:active {
  transform: scale(0.95);
}

/* CONTAINER */

.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  max-width: 1000px;
  margin: 150px auto;
  padding: 4rem 20px;
  text-align: center;
}

/* ABOUT */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 2rem;
}

.profile-img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 10px 10px 0 var(--accent-color);
  object-fit: cover;
  height: 400px;
}

.about-text {
  font-size: 1.2rem;
  line-height: 1.6;
  text-align: left;
}

/* COURSES */

.bg-light {
  background-color: var(--secondary-color);
  padding: 4rem 0;
}

.bg-light-container {
  padding: 0 20px;
}

.course-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 2rem;
}

.card {
  background: whitesmoke;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
  transition: transform 0.3s;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card:hover {
  transform: translateY(-5px);
}

.card h3 {
  color: var(--primary-color);
  margin-top: 0;
}

.card-time {
  font-weight: bold;
  color: var(--primary-color);
  margin-top: 1rem;
}

/* CONTACT */

.contact-form {
  width: 100%;
  max-width: 900px;
  margin: 2rem auto 0;

  display: flex;
  flex-direction: column;
  gap: 15px;
}

input,
textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}

button[type="submit"] {
  background-color: var(--primary-color);
  color: whitesmoke;
  border: none;
  padding: 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  transition: background-color 0.3s;
}

button[type="submit"]:hover {
  background-color: var(--hover-color);
}

button[type="submit"]:active {
  transform: scale(0.95);
  color: yellowgreen;
}

/* FOOTER */

footer {
  background-color: #333;
  color: whitesmoke;
  text-align: center;
  padding: 2rem;
  margin-top: 2rem;
}

/* TABLET */

@media (max-width: 900px) {

  header {
    padding: 1rem 30px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero-content {
    padding: 3rem;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-text {
    text-align: center;
  }

}

/* MOBILE */

@media (max-width: 768px) {

  header {
    flex-direction: column;
    gap: 10px;
    padding: 1rem;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .hero {
    height: 70vh;
    padding: 20px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .hero-content {
    padding: 2rem;
  }

}

/* SMALL MOBILE */

@media (max-width: 480px) {

  .hero h1 {
    font-size: 1.7rem;
  }

  .hero p {
    font-size: 1rem;
  }

  footer {
    font-size: 0.9rem;
    padding: 1.5rem;
  }

}