/* === Reset + Base === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: "Segoe UI", sans-serif;
  color: #1a1a1a;
  background-color: #f8f9fa;
  line-height: 1.6;
}
img {
  max-width: 100%;
  display: block;
}

/* === Utility === */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}
.btn-primary {
  background-color: #00a7ff;
  color: #fff;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s ease;
  width: 150px;
  z-index: 100;
  position: relative;
}
.btn-primary:hover {
  filter: brightness(1.05);
  z-index: 100 !important;
}
.highlight {
  color: #00a7ff;
}

/* Sticky Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #33dd7a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.navbar a {
  text-decoration: none;
  color: #103565;
  margin-left: 1rem;
  font-weight: 500;
}

.navbar a:hover {
  color: #000;
  font-size: large;
}

.logo img {
  width: 120px;
}

.logo img:hover {
  scale: 1.1;
}

@media (max-width: 768px) {
  .navbar {
    display: flex;
    padding: 15px 2.5px;
    align-items: center;
    justify-content: center;
  }

  .logo img {
    width: 175px;
    margin-left: 20px;
  }

  .nav-links {
    margin-left: 35px;
  }

  .navbar a {
    font-size: larger;
    margin-left: 10px;
  }
}

/* === Hero Section === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center; /* Vertically center both columns */
  gap: 3rem;
}
.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%; /* Full height of parent to allow centering */
}
.hero-text h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #103565;
}
.hero-text p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}
.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 5px;
  margin-top: -80px;
}

.hero-image video {
  border-radius: 5px;
}

.front-end {
  display: inline-block;
  background-color: #103565;
  min-width: 20px !important;
  border-radius: 5px;
  padding-left: 10px;
  padding-right: 10px;
}

@media (max-width: 768px) {
  .hero-inner {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
  }

  .hero-image video {
    width: 100%;
    height: auto;
    max-width: 300px;
    border-radius: 5px;
    margin-top: -50px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 20px 10px;
    gap: 0rem;
  }
  .hero-image {
    margin-top: 20px;
  }
  .btn-primary {
    margin: 0 auto;
  }
  .hero {
    min-height: auto !important;
  }
  .hero-text {
    margin-top: 30px;
  }
  .hero-text h1 {
    font-size: 2rem;
  }
  .hero-text p {
    padding: 5px;
  }
}

/* === About Section === */
.about {
  background-color: #82deff;
  padding: 4rem 2rem;
}
.about-inner {
  max-width: 1000px;
  min-height: 400px;
  margin: 0 auto;
  display: flex;
  padding: 40px 0px;
  gap: 40px;
  /* flex-direction: row; */
    margin: 0 auto;
}

.about-inner * {
  align-items: center;
  justify-content: center;
}

.about-text {
  margin-right: 50px;
}

.about h2 {
  font-size: 2.2rem;
  color: #00a7ff;
  margin-bottom: 1rem;
}
.about p {
  font-size: 1.1rem;
  color: #333;
  line-height: 1.8;
  max-width: 700px;
}

.about-gif {
  margin: auto auto;
  /* padding-left: 5%; */
}

.about-gif img {
  width: 100%;
  min-width: 300px;
  padding-top: 20px;
}

.about-text {
  margin-top: auto;
  margin-bottom: auto;
  /* padding-right: 5%; */
}

section#about {
  scroll-margin-top: 160px; /* fallback if no JS */
}

.margin {
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .about-inner {
    text-align: center;
    flex-direction: column;
    text-align: center;
  }
  section#about {
    scroll-margin-top: 0px; /* fallback if no JS */
    /* padding: 16px 32px !important; */
  }

  .about-text {
    margin-right: auto;
  }
}

/* === Services Section === */
.services {
  padding: 4rem 2rem;
  background-color: #ffffff;
}
section#services {
  scroll-margin-top: 120px; /* fallback if no JS */
}
.services-inner {
  text-align: center;
}
.services h2 {
  font-size: 2.2rem;
  color: #00a7ff;
  margin-bottom: 2.5rem;
}
.services-grid {
  display: grid;
  gap: 4rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.service-card {
  background-color: #f7f9fc;
  padding: 2rem;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}
.service-card h3 {
  color: #00a7ff;
  margin-bottom: 1rem;
}
.service-card p {
  color: #555;
}
.service-gif {
  margin-left: auto;
  margin-right: auto;
  max-height: 140px;
  border-radius: 8px;
  margin-bottom: 15px;
}

@media (max-width: 768px) {
  section#services {
    scroll-margin-top: 0px; /* fallback if no JS */
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 16px;
  }
}

/* === Projects Section === */
.projects {
  padding: 4rem 2rem;
  background: linear-gradient(to bottom, #82deff 0%, #f7f9fc 100%);
  position: relative;
}
.projects-inner {
  text-align: center;
  padding: 2rem 4rem;
}
.projects h2 {
  font-size: 2.2rem;
  color: #00a7ff;
  margin-bottom: 2.5rem;
}

.project-card h3 {
  color: #00a7ff;
  margin-bottom: 1rem;
}
.project-card p {
  color: #555;
}

.projects::before {
  content: "";
  position: absolute;
  top: -20px;
  left: 0;
  width: 100%;
  height: 40px;
  background: radial-gradient(circle, #00a7ff33 10%, transparent 70%);
  opacity: 0.5;
}

.project-card {
  background-color: #ffffff;
  padding: 2.5rem 2rem;
  border: 1px solid #d0e9f6;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  position: relative;
  margin-bottom: 40px;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.1);
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  height: 5px;
  width: 100%;
  /* background: #33dd7a; */
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.project-card a {
  display: block;
  width: 62%;
  margin: 0 auto;
}

.project-img {
  width: 100%;
  min-height: 250px;
  max-height: 50vh;
  object-fit: contain;
  border-radius: 5px;
  margin-bottom: 1rem;
  border: 1px solid #e0e0e0;
}

.project-card:hover .project-img {
  transform: scale(1.03);
  transition: transform 0.3s ease;
}

.project-card div h3 {
  display: inline-flex;
  text-wrap: nowrap;
  gap: 5px;
  /* margin: auto auto; */
  flex-direction: row;
  position: relative;
}

.external-link {
  text-decoration: none;
  font-size: 1em;
  color: #00a7ff;
  z-index: 100;
  margin-right: auto;
  padding: 5px 10px;
}

.external-link:hover,
.project-card:hover,
.service-card:hover {
  z-index: 100;
}

@media (max-width: 768px) {
  .projects-inner {
    padding: 0px;
  }
  .project-card a {
    width: auto;
  }

  .project-img {
    border: 0px;
    margin-bottom: 0px;
    border-radius: 5px;
    flex-grow: 1;
    width: auto;
    max-width: 100%;
    margin-right: auto !important;
    margin: 0px 0px 0px 0px !important;
  }
}

/* Modal backdrop */
.modal {
  display: none; /* hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

/* Show modal */
.modal.show {
  display: flex;
}

/* Modal content box */
.modal-content {
  background: white;
  max-width: 500px;
  width: 100%;
  max-height: 70vh;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  overflow-y: auto;
  padding: 1.5rem 2rem;
  position: relative;
}

/* Close button */
.close-btn {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: #666;
  transition: color 0.2s ease;
}
.close-btn:hover {
  color: #103565;
}

/* Project list */
.modal-content h2 {
  text-align: center;
  color: #103565;
  margin-bottom: 10px;
}

.project-list {
  list-style: none;
  padding: 0;
  margin: 0;
  text-align: center;
}
.project-list li + li {
  margin-top: 0.75rem;
}
.project-list a {
  color: #00a7ff;
  font-weight: 600;
  text-decoration: none;
}
.project-list a:hover {
  text-decoration: underline;
}

/* === Contact Section === */
.contact {
  background-color: #00a7ff;
  color: #fff;
  text-align: center;
  padding: 4rem 2rem;
  z-index: 100;
}
.contact h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.contact p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

#contact-button {
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  /* transition: background-color 0.3s ease; */
  width: 150px;
  background-color: black;
  position: relative;
}

#contact-button:hover {
  background-color: #103565;
  z-index: 100;
}

@media (max-width: 768px) {
  .contact-inner {
    padding: 2px 2px;
  }
}

.social-media-div {
  display: flex;
  flex-direction: row;
  gap: 20px;
  z-index: 100;
}

.social-media-div a:hover {
  z-index: 100;
  scale: 105%;
}

.social-media-div a:first-child {
  margin-left: auto;
  background-color: #00a7ff;
  width: 32px;
}

.social-media-div a:nth-child(2) {
  margin-right: auto;
  background-color: #00a7ff;
  width: 32px;
}

/* === Footer === */
.footer {
  background-color: #272c2d;
  color: #fff;
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.9rem;
}

.social-icons {
  margin-bottom: 1rem;
}

.social-icons a {
  display: inline-block;
  margin: 0 0.6rem;
  transition: opacity 0.3s ease;
}

.social-icons a img {
  position: relative;
  background-color: #272c2d;
  border-radius: 5px;
}

.social-icons a:hover {
  position: relative;
  z-index: 100;
}

.social-icons a img:hover {
  scale: 125%;
}

.cursor-trail-dot {
  position: fixed;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.7;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
  transform: translate(-50%, -50%);
  transition: background-color 0.3s ease;
  z-index: 0; /* or even -1 */
}
