:root {
  --bg-color: #191f36;
  --snd-bg-color: #262b40;
  --text-color: #fff;
  --main-color: #56B2F4;
}
* {
  margin: 0; padding: 0; box-sizing: border-box;
  text-decoration: none;
  border: none; outline: none;
  scroll-behavior: smooth;
  font-family: "Nunito", sans-serif;
}
html, body {
  min-height: 100%;
  font-size: 62.5%;
  background: var(--bg-color);
  color: var(--text-color);
  overflow-x: hidden;
  display: flex; flex-direction: column;
}
body { flex: 1; }
main { flex: 1; }


/* HEADER */
.header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  padding: 2rem 9%;
  background: var(--bg-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  transition: box-shadow 0.3s;
}
.header.sticky {
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.logo {
  font-size: 2.5rem;
  color: var(--text-color);
  font-weight: 700;
  cursor: default;
}
.navbar a {
  font-size: 1.5rem;
  color: var(--text-color);
  margin-left: 4rem;
  font-weight: 700;
  transition: 0.3s;
}
.navbar a:hover,
.navbar a.active { color: var(--main-color); }
#menu-icon {
  font-size: 3.6rem;
  color: var(--text-color);
  display: none;
  cursor: pointer;
  z-index: 1100;
}
section {
  min-height: 100vh;
  padding: 5rem 9% 2rem;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}


/* HOME */
.home { background: var(--bg-color);}
.home-content { flex: 1 1 50rem; padding-right: 2rem;}
.home-content h3 { font-size: 3.2rem; font-weight: 700; }
.home-content h3:nth-of-type(2) { margin-bottom: 2rem; }
.home-content h1 { font-size: 5.6rem; font-weight: 700; line-height: 1.3; }
.home-content p {
  font-size: 1.6rem; margin: 2rem 0 3rem; color: #ccc;
}
span { color: var(--main-color);}
.home-img { flex: 1 1 40rem; text-align: center;}
.home-img img {
  width: 25vw; height: auto;
  border-radius: 50%;
  object-fit: cover;
  animation: floatImage 4s ease-in-out infinite;
  box-shadow: 0 0 1rem var(--main-color);
}
@keyframes floatImage {
  0% { transform: translateY(0);}
  50% { transform: translateY(-2.4rem);}
  100%{transform: translateY(0);}
}


/* SOCIAL MEDIA */
.social-media {
  display: flex; flex-wrap: wrap; gap: 1.5rem;
  margin: 3rem 0;
}
.social-media a {
  display: inline-flex;
  justify-content: center; align-items: center;
  width: 4rem; height: 4rem;
  background: transparent;
  border: 0.2rem solid var(--main-color);
  border-radius: 50%;
  font-size: 2rem; color: var(--main-color);
  transition: 0.3s ease;
}
.social-media a:hover {
  background: var(--main-color);
  color: var(--snd-bg-color);
  box-shadow: 0 0 1rem var(--main-color);
}


/* BUTTON */
.btn {
  display: inline-block;
  padding: 1rem 2.8rem;
  background: var(--main-color);
  border-radius: 4rem;
  font-size: 1.6rem;
  color: var(--bg-color);
  letter-spacing: 0.1rem;
  font-weight: 600;
  transition: 0.3s ease;
  margin-top: 2rem;
}
.btn:hover { box-shadow: 0 0 1rem var(--main-color); }


/* ABOUT */
.about {
  background: var(--snd-bg-color);
  flex-direction: row;
  gap: 10rem;
}
.about-img img {
  width: 24vw;
  border-radius: 2rem;
  box-shadow: 0 0 2rem var(--main-color);
}
.about-content { flex: 1 1 40rem; text-align: left;}
.about-content h2 { font-size: 4.5rem; margin-bottom: 1rem;}
.about-content p {
  font-size: 1.6rem;
  margin: 2rem 0 3rem;
  color: #ccc;
}
.heading { text-align: left; font-size: 4.5rem; margin-bottom: 3rem; }


/* PROJECTS (SERVICES) */
.services {
  background: var(--bg-color);
  flex-direction: column;
  align-items: center;
  padding-top: 10rem;
}
.services h2 {
  font-size: 4.5rem; margin-bottom: 6rem;
  text-align: center; width: 100%;
}
.services-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem; width: 100%;
}
.services-container .services-box {
  flex: 1 1 30rem;
  max-width: 35rem;
  background: var(--snd-bg-color);
  padding: 3rem 2.5rem;
  border-radius: 2rem;
  text-align: center;
  border: 0.2rem solid var(--bg-color);
  transition: 0.4s ease;
  box-shadow: 0 0 1rem rgba(0,0,0,0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}
.services-container .services-box:hover {
  border-color: var(--main-color);
  transform: translateY(-5px);
}
.services-box i {
  font-size: 6rem; color: var(--main-color); margin-bottom: 1.5rem;
}
.services-box h3 {
  font-size: 2.6rem; margin-bottom: 1rem; color: var(--text-color);
}
.services-box p {
  font-size: 1.6rem; color: #ccc; line-height: 1.6;
}


/* CONTACT */
.contact {
  background: var(--snd-bg-color); flex-direction: column;
}
.contact h2 {
  font-size: 4.5rem; margin-bottom: 3rem; color: var(--text-color);
}
.contact form { max-width: 70rem; margin: 0 auto; text-align: center;}
.contact form .input-box {
  display: flex; gap: 2rem; flex-wrap: wrap; margin-bottom: 1.5rem;
}
.contact form .input-box input {
  flex: 1 1 48%; padding: 1.5rem;
  font-size: 1.6rem;
  color: var(--text-color); background: var(--bg-color);
  border-radius: 0.8rem; border: 0.1rem solid var(--main-color);
}
.contact form textarea {
  width: 100%; min-height: 18rem; padding: 1.5rem;
  font-size: 1.6rem;
  color: var(--text-color); background: var(--bg-color);
  border-radius: 0.8rem; border: 0.1rem solid var(--main-color);
  resize: vertical; margin-bottom: 2rem;
}
.contact form .btn {
  padding: 1rem 3rem;
  background: var(--main-color);
  color: var(--bg-color);
  border-radius: 4rem;
  font-size: 1.6rem;
  font-weight: 600;
  transition: 0.3s ease;
}
.contact form .btn:hover {
  box-shadow: 0 0 1rem var(--main-color);
}


/* FOOTER */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 2rem 9%;
  background: var(--snd-bg-color);
  color: var(--text-color);
  margin-top: auto;
}
.footer-text p { font-size: 1.4rem;}
.footer-iconTop a {
  display: inline-flex;
  justify-content: center; align-items: center;
  padding: 0.8rem;
  background: var(--main-color);
  border-radius: 0.8rem;
  transition: 0.3s ease;
  color: var(--bg-color);
  font-size: 2rem;
}
.footer-iconTop a:hover { box-shadow: 0 0 1rem var(--main-color); }


/* ----------- RESPONSIVE BREAKPOINTS ----------- */
@media (max-width: 1200px){
  html { font-size: 55%; }
}
@media (max-width:991px){
  .header { padding: 2rem 3%; }
  section { padding: 10rem 3% }
  .services { padding: 7rem 3%; }
  .footer { padding: 2rem 3%; }
}
@media (max-width:768px){
  #menu-icon {
    display: block;
    position: fixed;
    top: 2rem;
    right: 2rem;   /* <-- changed from left: 2rem */
    left: auto;    /* <-- just in case */
    z-index: 1100;
  }
  .navbar {
    display: none;
    position: fixed;
    top: 0;
    left: 0; /* nav drawer slides from the left */
    width: 220px;
    height: 100vh;
    padding: 7rem 0 0 0;
    background: var(--bg-color);
    flex-direction: column;
    text-align: left;
    z-index: 1001;
    border-top: none;
    box-shadow: 2px 0 10px rgba(0,0,0,0.13);
    transition: left 0.3s;
  }
  .navbar.active {
    display: flex;
  }
  .navbar a {
    margin: 1.8rem 0 1.8rem 2.5rem;
    font-size: 2rem;
    text-align: left;
    display: block;
  }
  .home { flex-direction: column; }
  .home-content h3 { font-size: 2.6rem; }
  .home-content h1 { font-size: 5rem;}
  .home-img img { width: 70vw; margin-top: 4rem; }
  .about { flex-direction: column; }
  .about-img img { width: 90vw; margin-top: 4rem; }
}

@media (max-width:450px){
  html { font-size: 50%; }
  .contact form .input-box input { width: 100%; }
}
