* {
  margin: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
}

:root {
  --bg-color: #1f242d;
  --second-bg-color: #323946;
  --main-color: #7cf03d;
  --white-color: #fff;
  --disabled-color: #fff3;
}

html {
  font-size: 62.5%;
}

body {
  color: var(--white-color);
  background-color: var(--second-bg-color);
}

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;
  header {

  top: 0;
  transition: transform 0.3s ease;
}

header.hide {
  transform: translateY(-100%);
}
}

.logo {
  font-size: 3rem;
  color: var(--white-color);
  font-weight: 700;
}

nav a {
  font-size: 2rem;
  color: var(--white-color);
  font-weight: 500;
  margin-left: 3.5rem;
  transition: 0.5s;
   
}

nav a:hover,
nav a.active {
  color: var(--main-color);
}

#menu-icon {
  font-size: 4rem;
  display: none;
  
}

.home {
  display: flex;
  justify-content: left;
  gap: 5rem;
  margin-top: 4rem;
}
.home-details h1 {
  margin-top: 12rem;
  font-size: clamp(3.5rem, 10vw, 5.5rem);
  margin-left: 4rem;
}

.home-details h2 {
  display: inline-block;
  font-size: 3.2rem;
  margin-left: 4rem;
}

.animated-text {
  font-size: 2.2rem;
  font-weight: 600;
}



@keyframes rotateWords {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  10% {
    opacity: 1;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(0);
  }
  40% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 0;
  }
}

.home-details p {
  font-size: 1.9rem;
  margin: 1rem 0 2.5rem;
  margin-left: 4rem;
}

.home-details .btn-sci {
  display: flex;
  align-items: center;
  margin-left: 20rem;
  margin-top: 10rem;
}

.home-details h2 {
  font-size: 3.2rem;
  margin-top: -1rem;
}

.home-details h2 span {
  position: relative;
  display: inline-block;
  color: var(--main-color);
  -webkit-text-stroke: 0.07rem var(--main-color);
  animation: display-text 16s linear infinite;
  animation-delay: calc(-4s * var(--i));
  font-size:2.3rem;
}

@keyframes display-text {
  25%,
  100% {
    display: none;
  }
}

.home-details h2 span::before {
  content: attr(data-text);
  position: absolute;
  width: 0;
  border-right: 0.2rem solid var(--main-color);
  color: var(--main-color);
  white-space: nowrap;
  overflow: hidden;
  animation: fill-text 4s linear infinite;
}

@keyframes fill-text {
  10%,
  100% {
    width: 0;
  }
  70%,
  90% {
    width: 100%;
  }
}



.btn {
  display: inline-block;
  padding: 1rem 3rem;
  background: var(--main-color);
  border: 0.2rem solid var(--main-color);
  border-radius: 4rem;
  box-shadow: 0 0 1rem var(--main-color);
  font-size: 1.6rem;
  color: black;
  font-weight: 800;
  transition: 0.5s;
  margin-left: -14rem;
  
}

.btn:hover {
  background: transparent;
  color: var(--main-color);
  box-shadow: none;
}

.btn2:hover {
  background: transparent;
  color: var(--main-color);
  box-shadow: none;
}

.btn2 {
  display: inline-block;
  padding: 1rem 3rem;
  background: var(--main-color);
  border: 0.2rem solid var(--main-color);
  border-radius: 4rem;
  box-shadow: 0 0 1rem var(--main-color);
  font-size: 1.9rem;
  color: black;
  font-weight: 800;
  transition: 0.5s;
  margin-left: 3rem;
  
  
}

.home-details .btn-sci .sci {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: nowrap;  
  margin-left: 3rem;   /* prevents wrapping */
}

.home-details .btn-sci .sci a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;           /* fixed circle size */
  height: 40px;          /* fixed circle size */
  border: 2px solid var(--main-color);
  border-radius: 50%;
  font-size: 18px;       /* smaller icon */
  color: var(--main-color);
  transition: 0.3s ease;
}


.home-details .btn-sci .sci a:hover {
  background: var(--main-color);
  color: var(--bg-color);
  box-shadow: 0 0 1rem var(--main-color);
}

.home-img .img-box {
  position: relative;
  width: 27vw;
  height: 27vw;
  border-radius: 50%;
  padding: 0.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  margin-top: 4rem;
}

.home-img .img-box::before,
.home-img .img-box::after {
  content: "";
  position: absolute;
  width: 39rem;
  height: 39rem;
  background: conic-gradient(
    transparent,
    transparent,
    transparent,
    var(--main-color)
  );
  transform: rotate(0deg);
  animation: rotate-border 10s linear infinite;
}

.home-img .img-box::after {
  animation-delay: -5s;
}

@keyframes rotate-border {
  100% {
    transform: rotate(360deg);
  }
}

.home-img .img-box .img-item {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--second-bg-color);
  border-radius: 50%;
  border: 0.01rem solid var(--second-bg-color);
  display: flex;
  justify-content: center;
  z-index: 1;
  overflow: hidden;
}

.home-img .img-box .img-item img {
  position: absolute;
  top: 3rem;
  display: block;
  width: 85%;
  object-fit: cover;
  mix-blend-mode: lighten;
  margin-right: 3rem;
}

#what-i-do {
  padding: 4rem 8%;
}

.section-title {
  text-align: center;
  color: var(--main-color);
  font-size: 2.9rem;
  margin-bottom: 2.5rem;
}

.what-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(24rem, 1fr));
  gap: 1.8rem;
  min-width: 90rem;
  margin: 0 auto;
}

.what-card {
  display: block;
  background: var(--bg-color);
  padding: 1.8rem 2rem;
  border-radius: 1.2rem;
  text-decoration: none;
  color: var(--white-color);
  border: 0.1rem solid var(--main-color);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
    margin-right: 3rem;
}

.what-card h3 {
  color: var(--main-color);
  font-size: 2.6rem;
  margin-bottom: 0.8rem;
  text-align: center;
  font-weight: 800;
}

.what-card p {
  font-size: 2.1rem;
  line-height: 1.5;
  font-weight: 600;
}

.what-card h3:hover {
  color: var(--main-color);
  transform: scale(1.1);
}

.what-card p:hover {
  color: var(--main-color);
}

.what-card:hover {
  transform: translateY(-0.4rem);
  box-shadow: 0 0 1.8rem var(--main-color);
}

/*testimonials section*/
#testimonials {
  padding: 4rem 8%;
}

#testimonials .section-title {
  text-align: center;
  color: var(--main-color);
  font-size: 2.9rem;
  margin-bottom: 2.5rem;
}

#testimonials .card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(26rem, 1fr));
  gap: 1.8rem;
  max-width: 90rem;
  margin: 0 auto;
}

#testimonials .card {
  background: var(--bg-color);
  padding: 2rem;
  border-radius: 1.2rem;
  border: 0.1rem solid var(--main-color);
  color: var(--white-color);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

#testimonials .card:hover {
  transform: translateY(-0.6rem);
  box-shadow: 0 1rem 3rem var(--main-color);
}

#testimonials .card p {
  font-size: 1.9rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
  font-style: italic;
  text-align: center;
  font-weight: 700;
}

#testimonials .card p:hover {
  color: var(--main-color);
  transform: scale(1.1);
  cursor: pointer;
}

#testimonials .author {
  font-size: 1.9rem;
  color: var(--white-color);
  font-weight: 500;
  text-align: center;
}

#testimonials .author:hover {
  color: var(--main-color);
  transform: scale(1.1);
  cursor: pointer;
}

footer .container {
  background-color: var(--bg-color);
  margin-top: 10rem;
}

footer .row {
  display: flex;
  justify-content: space-between;
  padding: 4rem 10rem;
  gap: 3rem;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li{
  font-size: 1.6rem;
}

.footer-col h4 {
  color: var(--white-color);
  font-size: 3rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer-col h4:hover{
  color: var(--main-color);
}

.footer-col h4::before {
  content: "";
  width: 7rem;
  height: 0.2rem;
  position: absolute;
  background: var(--main-color);
  bottom: -1rem;
}

.footer-col ul li {
  padding: 1rem 0;
}

.footer-col ul li a {
  color: var(--white-color);
  text-decoration: none;
  font-size: 2rem;
  opacity: 0.7;
  transition: 0.5s;
}

.footer-col ul li a:hover {
  color: var(--main-color);
  opacity: 1.5;
}

.footer-col input {
  border: none;
  width: 25rem;
  height: 4.5rem;
  display: block;
  padding-left: 2rem;
  margin: 1.4rem 0;
  font-size: 2rem;
}

.footer-col .inputsubmit {
  padding: 0 2rem;
  background-color: var(--main-color);
  border: none;
  color: black;
  font-size: 2rem;
}

.col p {
  color: var(--white-color);
  font-size: 1.6rem;
  
}

.footer .col a {
  color: var(--white-color);
}

.row hr {
  color: var(--white-color);
}

.row .social-icons {
  border-radius: 50%;
  margin-top: -1.4rem;
  display: flex;
  justify-content: flex-start;
  text-align: left;
}

.row .social-icons i {
  display: inline-flex;
  padding: 0.8rem;
  border: 0.2rem solid var(--main-color);
  border-radius: 50%;
  font-size: 1.7rem;
  color: var(--main-color);
  margin: 0 0.8rem;
  transition: 0.5s;
  left: 7rem;
}

.row .social-icons i:hover {
  background: var(--main-color);
  color: var(--bg-color);
  box-shadow: 0 0 1rem var(--main-color);
}

.footer-line {
  border: none;
  border-top: 0.1rem solid var(--white-color);
  margin: 3rem 0;
}

.row .col p a {
  color: var(--white-color);
  margin-left: 3.9rem;
  font-size: 1.7rem;
  margin-right: 2rem;
}

.row .col p a:hover {
  color: var(--main-color);
}

.row .col {
  display: flex;
  gap: 3rem;
}


.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  overflow-y: auto;
}

.modal-content {
  background: #fff;
  margin: 5rem auto;
  padding: 3rem;
  border-radius: 1rem;
  width: 90%;
  max-width: 600px;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
}/* ================= CONTACT FORM ================= */

.contact-form {
  width: 100%;
  flex: 1;
}

.contact-form h3 {
  margin-bottom: 2rem;
  color: #000;
  font-size: 2.9rem;
  font-weight: 700;
  text-align: center;
}

/* Inputs & textarea */
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 1.2rem;
  margin-bottom: 1.5rem;
  border-radius: 0.6rem;
  border: 0.1rem solid #480707;
  font-size: 1.6rem;
  outline: none;
  background: #fff;
  color: #000;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #666;
}

/* Focus state */
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: #00d9c0;
  box-shadow: 0 0 0 2px rgba(0, 217, 192, 0.2);
}

/* Two inputs in one row */
.form-row {
  display: flex;
  gap: 1.5rem;
}

.form-row input {
  flex: 1;
}

/* Textarea */
.contact-form textarea {
  resize: none;
  height: 12rem;
}

/* Buttons */
.btn-send {
  width: 100%;
  background: #00d9c0;
  border: none;
  padding: 1.2rem;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 600;
  border-radius: 0.6rem;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-send:hover {
  background: #00b3a0;
  transform: translateY(-1px);
}

.btn-reset {
  width: 100%;
  background: #f44336;
  border: none;
  padding: 1.2rem;
  color: #fff;
  font-size: 1.6rem;
  font-weight: 600;
  border-radius: 0.6rem;
  cursor: pointer;
  margin-top: 1rem;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-reset:hover {
  background: #d32f2f;
  transform: translateY(-1px);
}

/* ================= MODAL SUPPORT ================= */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  overflow-y: auto;
}

.modal-content {
  background: #fff;
  margin: 6rem auto;
  padding: 3rem;
  border-radius: 1rem;
  width: 90%;
  max-width: 600px;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  cursor: pointer;
  color: #000;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
  }

  .contact-form h3 {
    font-size: 2.4rem;
  }

  .contact-form input,
  .contact-form textarea,
  .contact-form select {
    font-size: 1.5rem;
  }
}

/* ================= RESPONSIVE GLOBAL ================= */

@media (max-width: 1024px) {
  html {
    font-size: 58%;
  }
}

/* ================= MOBILE NAVBAR & HEADER ================= */

@media (max-width: 900px) {

  /* Header scrolls with page */
  header {
    position: relative;
    padding: 2rem 5%;
  }

  /* Menu icon visible */
  #menu-icon {
    display: block;
    cursor: pointer;
    color: var(--white-color);
  }

  /* Navbar vertical and hidden by default */
  nav {
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    background: var(--bg-color);
    display: flex;
    flex-direction: column; /* vertical menu */
    text-align: center;
    gap: 1rem;
    padding: 2rem 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    z-index: 100;
  }

  /* Show menu when active */
  nav.active {
    max-height: 500px; /* enough for all links */
  }

  /* Navbar links styling */
  nav a {
    margin: 0;
    font-size: 2.2rem;
    padding: 1rem 0;
    border-top: 0.1rem solid var(--main-color);
    transition: 0.3s;
  }

  nav a:first-child {
    border-top: none;
  }

  nav a:hover,
  nav a.active {
    color: var(--main-color);
  }

  /* HOME SECTION RESPONSIVE */
  .home {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 5%;
    margin-top: 0;
  }

  /* IMAGE MOVES TO TOP */
  .home-img {
    order: -1;
    margin-top: 5rem;
  }

  .home-img .img-box {
    width: 65vw;
    height: 65vw;
  }

  .home-details h1 {
    margin-top: 4rem;
  }

  .home-details p {
    font-size: 1.8rem;
    font-size: 3rem;
  }
  .home-details .animated-text span{
    font-size: 4rem;
  }

  /* Buttons & Social Icons centered */
  .btn-sci {
    justify-content: center;
    margin-left: 0;
    margin-top: 2rem;
    flex-wrap: wrap;
    font-size: 5rem;
  }
  .btn{
    font-size: 2rem;
    font-weight: 800;
  }

  .btn2{
    font-size: 2rem;
    font-weight: 800;
  }

  .home-details .btn-sci .sci {
    justify-content: center;
    flex-wrap: wrap;
    margin-left: -4rem;
    margin-top: 3rem;
    font-size: 3rem;
  }


.home-details .btn-sci .sci a{
  font-size: 2rem;
  m
}
  /* WHAT I DO SECTION */
  .what-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 0 2rem;
    min-width: unset; /* remove desktop min-width */
  }

  #what-i-do .section-title {
    font-size: 4rem;
  }

  #what-i-do h3 {
    font-size: 3.8rem;
  }

  #what-i-do p{
    font-size: 3rem;
  }

  /* TESTIMONIALS */
  .card-grid {
    grid-template-columns: 1fr;
    padding: 0 2rem;
  }

  #testimonials .section-title {
    font-size: 4rem;
  }
  #testimonials .card p {
    font-size: 2.4rem;
  }


  #testimonials .card span{
    font-size: 2.3rem;
  }

  /* FOOTER */
  footer .row {
    flex-direction: column;
    padding: 3rem 2rem;
    gap: 4rem;
  }

  .footer-col h4{
    font-size: 4rem;
  }

  .footer-col ul li {
    font-size: 3rem;
  }

  .footer-col ul li a {
    font-size: 3rem;
  }

  .footer-col input {
    width: 80%;
    font-size: 3rem;
  }
  .row .col {
    justify-content: center;
    text-align: center;
  }

  .row .col p {
    justify-content: center;
    text-align: center;
    font-size: 3rem;
  }

  .row .col p a {
    font-size: 3rem;
    margin-left: 0;
    margin-top: 1rem;
    display: inline-block;
  }

  .social-icons {
    justify-content: center;
  }

  .social-icons i {
    font-size: 3rem;
    margin: 0 1rem;
  }
}

/* ================= SMALL SCREENS (PHONES) ================= */

@media (max-width: 600px) {
  .form-row {
    flex-direction: column;
  }

  .contact-form h3 {
    font-size: 2.4rem;
  }

  .contact-form input,
  .contact-form textarea,
  .contact-form select {
    font-size: 1.5rem;
  }

  .modal-content {
    width: 95%;
    margin: 4rem auto;
  }
}
@media (max-width: 900px) {
  .home-img .img-box::before,
  .home-img .img-box::after {
    width: 70vw;   /* slightly bigger than image */
    height: 70vw;  /* maintain circle */
  }

  .home-img .img-box .img-item img {
    top: 4rem;      /* adjust vertical position if needed */
    width: 85%;     /* keep inside the border */
  }
}
/* Language select styling */
.lang-select {
  appearance: none;          /* remove default arrow */
  -webkit-appearance: none;  /* Safari/Chrome */
  -moz-appearance: none;     /* Firefox */
  background-color: var(--bg-color);
  color: var(--white-color);
  font-size: 2.5rem;
  padding: 0.8rem 2.5rem 0.8rem 1rem; /* extra right space for arrow */
  border: 0.2rem solid var(--main-color);
  border-radius: 0.6rem;
  cursor: pointer;
  outline: none;
  position: relative;
  transition: all 0.3s ease;
}

/* Hover & focus effects */
.lang-select:hover,
.lang-select:focus {
  background-color: var(--second-bg-color);
  border-color: var(--main-color);
  color: var(--main-color);
}

/* Custom arrow using pseudo-element */
.lang-select-wrapper {
  position: relative;
  display: inline-block;
}

.lang-select-wrapper::after {
  content: "\25BC"; /* downward arrow */
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  pointer-events: none;
  color: var(--main-color);
  font-size: 2.5rem;
}

/* Optional: small screens adjustment */
@media (max-width: 900px) {
  .lang-select {
    font-size: 1.6rem;
    padding: 0.6rem 2rem 0.6rem 0.8rem;
  }
}