/*-----------------------------------
  🌿 Design Tokens & Base Reset
-----------------------------------*/
:root {
  --primary: #009688;
  --accent: #4DD0E1;
  --highlight: #26A69A;
  --bg-light: #E0F7FA;
  --text-dark: #18443d;
  --white: #fff;
}

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

body {
  font-family: 'Open Sans', Arial, sans-serif;
  color: var(--text-dark);
  background: var(--bg-light);
  line-height: 1.6;
}

/*-----------------------------------
  🔰 Layout Containers
-----------------------------------*/
.container {
  max-width: 1000px;
  margin: 0 auto;
}

.section {
  padding: 4rem 1rem;
}

.bg-light {
  background: var(--bg-light);
}

/*-----------------------------------
  🧭 Header & Navigation
-----------------------------------*/
.site-header {
  background: var(--primary);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  position: relative;
}

/* === Hamburger container button === */
.nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
}

/* === The hamburger bars === */
.hamburger {
  position: relative;
  width: 30px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: background 0.3s ease;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 30px;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, top 0.3s ease, bottom 0.3s ease;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  bottom: -8px;
}

/* === Transform into an X when nav is open === */
.nav.open .hamburger {
  background: transparent;
}

.nav.open .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}

.nav.open .hamburger::after {
  transform: rotate(-45deg);
  bottom: 0;
}

.nav-menu {
  display: none;
  flex-direction: column;
  width: 100%;
  background: var(--primary);
  animation: slideDown 0.3s ease-out forwards;
}

.nav.open .nav-menu {
  display: flex;
}

.nav-menu li {
  list-style: none;
  text-align: center;
  padding: 1em;
}

.nav-menu a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/*-----------------------------------
  🌇 Hero Section
-----------------------------------*/
.hero {
  background: linear-gradient(120deg, var(--primary) 70%, var(--accent));
  color: var(--white);
  padding: 4rem 1rem 6rem;
  text-align: center;
  margin-top: 0;
}

.hero-content h1 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2.8rem;
  margin-bottom: 0.5em;
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 2em;
}

/*-----------------------------------
  💎 Accent Button
-----------------------------------*/
.btn-accent {
  background: var(--highlight);
  color: var(--white);
  border: none;
  padding: 0.8em 2em;
  font-size: 1.1rem;
  border-radius: 2em;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(38, 166, 154, 0.10);
  transition: background 0.2s;
  text-decoration: none;
}

.btn-accent:hover {
  background: var(--accent);
  color: var(--primary);
}

/*-----------------------------------
  🧑‍🔬 About Section
-----------------------------------*/
h2 {
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--primary);
  text-align: center;
}

.about-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.profile-img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent);
  box-shadow: 0 2px 8px rgba(0, 150, 136, 0.08);
}

/*-----------------------------------
  🧰 Services / Projects Grid
-----------------------------------*/
.services-grid,
.projects-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.service-card,
.project-card {
  background: var(--white);
  border-radius: 1em;
  box-shadow: 0 2px 10px rgba(0, 150, 136, 0.06);
  max-width: 320px;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}

.service-card {
  padding: 2em 1.5em;
  border-bottom: 4px solid var(--highlight);
}

.service-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 8px 24px rgba(0, 150, 136, 0.12);
}

.service-icon {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 0.7em;
}

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.project-info {
  padding: 1em 1.2em;
}

.project-card:hover {
  box-shadow: 0 8px 24px rgba(0, 150, 136, 0.15);
}

/*-----------------------------------
  📞 Contact Info
-----------------------------------*/
.contact-info {
  text-align: center;
  color: var(--primary);
  font-weight: 600;
}

.contact-info a {
  color: var(--highlight);
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

/*-----------------------------------
  🦶 Footer & Social
-----------------------------------*/
footer {
  background: var(--primary);
  color: var(--white);
  padding: 1.2rem 0;
  margin-top: 2rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.social-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  color: var(--primary);
}

.social-row span {
  font-weight: 600;
}

.social-icon-link {
  display: flex;
  align-items: center;
}

.social-icon-img {
  width: 48px;
  height: 48px;
  filter: grayscale(30%) brightness(1.2);
  transition: filter 0.2s, transform 0.2s;
}

.social-icon-link:hover .social-icon-img {
  filter: none;
  transform: scale(1.1);
}

/*-----------------------------------
  🧠 Media Queries
-----------------------------------*/
@media (max-width: 767px) {
  .about-content,
  .services-grid,
  .projects-grid,
  .footer-content {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .profile-img {
    width: 110px;
    height: 110px;
  }

  .service-card,
  .project-card {
    width: 100%;
    max-width: 100%;
  }

  .project-card img {
    height: 130px;
  }
}

@media (min-width: 768px) {
  .nav {
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
  }

  .nav-menu {
    display: flex !important;
    flex-direction: row;
    justify-content: flex-end;
    width: auto;
    background: none;
    animation: none;
    padding: 0;
  }

  .nav-menu li {
    padding: 0;
    margin-left: 2rem;
    text-align: right;
  }

  .nav-toggle {
    display: none;
  }
}
