/* === Global Styles === */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background-color: #111;
  color: #fff;
  line-height: 1.6;
}

a {
  text-decoration: none;
}

/* === Header === */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #111;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.logo {
  font-size: 1.3rem;
  font-weight: bold;
  letter-spacing: 1px;
  color: #6a0dad;
}

nav a {
  color: white;
  margin-left: 1rem;
  font-weight: 500;
  transition: color 0.3s ease, border-bottom 0.3s ease;
  padding-bottom: 4px;
}

nav a:hover {
  color: #6a0dad;
}

/* Active link color (when clicked or currently selected) */
nav a.active {
  color: #6a0dad;
  border-bottom: 2px solid #6a0dad;
}


/* === Hero Section === */
.hero {
  background-image: 
    linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
    url("https://raw.githubusercontent.com/beirutbroker/beirut/main/background.jpg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 0 1rem;
}

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

.hero h1 span {
  color: #6a0dad; /* solid purple */
  font-weight: 700;
}



/* === CTA Button === */
.cta {
  display: inline-block;
  background-color: #6a0dad;
  color: #fff;
  text-shadow: 0 0 10px #fff;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: 110px;               /* lowered further down */
  margin-bottom: 50px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta:hover {
  background-color: #9b30ff;
  transform: scale(1.05);
}

/* === Main Content === */
main {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.about, .contact {
  background-color: #111;
  color: #fff;
  margin: 1.5rem 0;
  padding: 4rem 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.about a, .contact a {
  color: #6a0dad;
  font-weight: bold;
}

.about a:hover, .contact a:hover {
  color: #4b0082;
  text-decoration: underline;
}

/* === Footer === */
footer {
  background-color: #111;
  color: #ccc;
  text-align: center;
  padding: 1rem 0;
  font-size: 0.9rem;
  margin-top: 2rem;
}

/* === Popup === */
.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-content {
  background: #fff;
  color: #111;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  text-align: center;
  max-width: 300px;
  width: 80%;
  position: relative;
  animation: popIn 0.3s ease;
}

.popup-content a {
  color: #6a0dad;
  font-weight: bold;
}

.popup-content a:hover {
  color: #4b0082;
}

.close {
  position: absolute;
  top: 8px;
  right: 12px;
  font-size: 1.2rem;
  cursor: pointer;
}

@keyframes popIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* === Mobile Adjustments === */
@media (max-width: 600px) {
  /* Header layout */
  header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
  }

  .logo {
    font-size: 1.1rem;
  }

  nav {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
  }

  nav a {
    font-size: 0.85rem;
    margin-left: 0.7rem;
    white-space: nowrap;
  }

  /* Hero adjustments */
  .hero {
    height: 50vh;
    background-size: cover;
    background-position: top center;
  }

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

  .cta {
    font-size: 0.9rem;
    padding: 10px 20px;
    margin-top: 1.5rem;
  }

  /* Main and sections */
  main {
    margin: 1rem auto;
    padding: 0 0.5rem;
  }

  .about, .contact {
    padding: 3rem 1.5rem;
  }

  footer {
    font-size: 0.8rem;
    padding: 0.8rem 0;
  }
}
/* === Services Page === */
.services {
  max-width: 900px;
  margin: 3rem auto;
  padding: 2rem;
  background: #111;
  color: #eee;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  text-align: center;
}

.services h1 {
  font-size: 2rem;
  color: #b19cd9; /* light purple accent */
  margin-bottom: 1rem;
}

.service-list {
  margin-top: 2rem;
}

.service {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #1c1c1c;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

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

.service h2 {
  color: #b19cd9;
}
