/* ===== COLOR PALETTE ===== */

:root {
  --bg: #1E1E1E;
  --section: #2A2A2A;
  --card: #383838;
  --accent: #d6680e;
  --text: #EFEFEF;
  --muted: #B5B5B5;
}

/* ===== GLOBAL ===== */
* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif ;
  background: var(--bg);
  color: var(--text);
}

h1, h2, h3 {
  font-family: 'Oswald', sans-serif;
  letter-spacing: 1px;
  text-align: center;
}

section {
  padding: 100px 8%;
}

/* ===== NAVBAR ===== */
nav {
  position: sticky;
  top: 0;
  background: rgba(30,30,30,0.95);
  backdrop-filter: blur(6px);
  padding: 18px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  height: 10vh;
}

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

nav a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: 0.3s;
}

nav a:hover {
  color: var(--accent);
}

.nav-img {
  width: 300px;
}

/* ===== HERO ===== */
.hero {
  height: 90vh;
  background: url(assets/landing-background.jpg) center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.70);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero h1 {
  font-size: 60px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 18px;
  color: var(--muted);
}

.btn {
  display: inline-block;
  margin-top: 25px;
  padding: 14px 34px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 600;
  transition: 0.3s;
}

.btn:hover {
  opacity: 0.85;
}

/* ===== CARDS ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.card {
  background: var(--card);
  padding: 35px;
  border-radius: 12px;
  transition: 0.3s;
  text-align: center;
}

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

/* ===== ABOUT ===== */
.about {
  background: var(--section);
  border-radius: 20px;
}

.about-text { 
  text-align: center;
  text-wrap: wrap;
  margin: 0 10%;
}

/* ===== CONTACT FORM ===== */
form {
  display: grid;
  gap: 20px;
  max-width: 600px;
  margin: auto;
}

input, textarea {
  padding: 14px;
  border: none;
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  font-family: inherit;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

input:focus, textarea:focus {
  outline: 2px solid var(--accent);
}

button {
  padding: 14px;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font-weight: 600;
  cursor: pointer;
}

button:hover {
  opacity: 0.9;
}

/* ===== Success page ===== */
.success { 
  margin: 0;
  display: flex;
  flex-direction: column;  /* Stack items vertically if there are multiple */
  justify-content: center; /* Centers vertically */
  align-items: center;     /* Centers horizontally */
  min-height: 100vh;
  background: 
        linear-gradient(rgba(0, 0, 0, 0.8)), 
        url(assets/christopher-burns-8KfCR12oeUM-unsplash.jpg) center/cover no-repeat;
}

/* ===== FOOTER ===== */
footer {
  background: var(--section);
  text-align: center;
  padding: 40px 8%;
  color: var(--muted);
  font-size:14px ;
}

/* ========================= */
/* ===== MOBILE STYLES ===== */
/* ========================= */

@media (max-width: 992px) {

  /* Reduce section padding */
  section {
    padding: 80px 6%;
  }

  /* Hero text scaling */
  .hero h1 {
    font-size: 42px;
  }

  .hero p {
    font-size: 16px;
  }

  /* About text full width */
  .about-text {
    margin: 5%;
  }

  /* Reduce nav spacing */
@media (max-width: 768px) {
  nav ul {
    display: none;
  }

  nav.active ul {
    display: flex;
  }
}
}

@media (max-width: 768px) {

  /* Stack nav items vertically */
  nav {
    flex-direction: column;
    gap: 15px;
  }

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

  /* Smaller hero */
  .hero {
    height: 80vh;
  }

  .hero h1 {
    font-size: 34px;
  }

  .hero p {
    font-size: 15px;
  }

  /* Cards full width */
  .cards {
    grid-template-columns: 1fr;
  }

  /* Contact form tighter */
  form {
    width: 100%;
  }
}

@media (max-width: 480px) {

  
  section {
    padding: 60px 5%;
  }

  .hero h1 {
    font-size: 28px;
  }

  .btn {
    padding: 12px 24px;
  }

  h2 {
    font-size: 24px;
  }

  nav {
    height: 15vh;
  }

  .card p {
    margin: 20px;
  }
}