/* Base styles */

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: #0a0a1a;
  color: #f0f0f0;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  padding: 0;
}

a {
  color: #0ff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* Navbar */
.navbar {
  position: relative;
  background: #121230;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  border-bottom: 2px solid #0ff;
  z-index: 999;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 60px;
  margin-right: 10px;
}

nav {
  /* Desktop styles */
}

nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

nav li {
  margin: 0;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 40px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1000;
}

.menu-toggle .bar {
  height: 4px;
  width: 100%;
  background-color: #0ff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Toggle "X" animation */
.menu-toggle.open .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.menu-toggle.open .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* Mobile Menu */
#navbar-menu {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
}

#navbar-menu.open {
  /* On mobile only */
}

@media (max-width: 768px) {

  nav ul {
    flex-direction: column;
    gap: 2rem;
  }

  #navbar-menu {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 100%;
    background-color: #121230;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transform: translateY(-100%);
    transition: transform 0.5s ease;
  }

  #navbar-menu.open {
    transform: translateX(0);
  }

  .menu-toggle {
    display: flex;
  }

  nav ul {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
    font-size: 1.5rem;
  }
}

/* Hero */
.hero {
  text-align: center;
  padding: 6rem 2rem;
  background: linear-gradient(to right, #0ff, #09c);
  color: #0a0a1a;
  border-bottom: 2px solid #0ff2;
  box-shadow: 0 4px 12px rgba(0, 255, 255, 0.15);
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  font-weight: 500;
}

/* Services */
.services {
  padding: 3rem 2rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.service-card {
  background: #1a1a2e;
  padding: 2rem 1.5rem;
  border-radius: 8px;
  border: 1px solid #0ff2;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  font-size: 1.1rem;
  color: #ddd;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: #0ff;
  box-shadow: 0 8px 16px rgba(0, 255, 255, 0.2);
}

.service-card::before {
  content: "🛠️";
  display: block;
  font-size: 2rem;
  margin-bottom: 1rem;
}

/**
.service-card {
  background: #1a1a2e;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #0ff2;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.service-card:hover {
  transform: translateY(-8px) scale(1.03);
  border-color: #0ff;
  box-shadow: 0 8px 16px rgba(0, 255, 255, 0.15);
}
**/
/* About + Contact */
.about {
  padding: 4rem 2rem;
  background: #101020;
  border-top: 1px solid #0ff3;
  line-height: 1.8;
  font-size: 1.1rem;
  color: #ccc;
}

.about h3 {
  font-size: 2rem;
  color: #0ff;
  margin-bottom: 1rem;
}

.about p {
  margin-bottom: 1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.about p:hover {
  opacity: 1;
}

.contact {
  padding: 4rem 2rem;
  background: #101020;
  border-top: 1px solid #0ff3;
  text-align: center;
}

.contact h3 {
  font-size: 2rem;
  color: #0ff;
  margin-bottom: 1rem;
}

.contact p {
  font-size: 1.1rem;
  color: #ccc;
  margin-bottom: 2rem;
}

.contact form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.contact input,
.contact textarea,
.contact button {
  padding: 0.75rem 1rem;
  border: 1px solid #0ff3;
  border-radius: 5px;
  background: #0a0a1a;
  color: #f0f0f0;
  font-size: 1rem;
}

.contact input:focus,
.contact textarea:focus {
  border-color: #0ff;
  outline: none;
}

.contact button {
  background: #0ff;
  color: #0a0a1a;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
}

.contact button:hover {
  background: #09c;
  color: #fff;
}

/* Footer */
footer {
  text-align: center;
  padding: 1.5rem;
  background: #080818;
  font-size: 0.9rem;
  color: #999;
  border-top: 2px solid #0ff2;
  letter-spacing: 0.05em;
}

footer p {
  margin: 0;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

footer p:hover {
  opacity: 1;
}

/* Contact Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-form label {
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem;
  border: 1px solid #0ff3;
  border-radius: 6px;
  background-color: #1a1a2e;
  color: #f0f0f0;
  font-size: 1rem;
}

.contact-form button {
  padding: 0.75rem;
  background-color: #0ff;
  color: #0a0a1a;
  border: none;
  font-size: 1.1rem;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-form button:hover {
  background-color: #09f;
  transform: scale(1.05);
  box-shadow: 0 0 12px #0ff6;
  text-decoration: none;
}

.cta-button {
  display: inline-block;
  background-color: #0ff;
  color: #0a0a1a;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
  background-color: #09f;
  transform: scale(1.05);
  box-shadow: 0 0 12px #0ff6;
  text-decoration: none;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: filter 0.3s ease, transform 0.3s ease;
}

.logo:hover {
  filter: brightness(1.3);
  transform: scale(1.02);
  text-decoration: none; /* just to be safe */
}

nav a {
  color: #0ff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease, filter 0.3s ease, transform 0.3s ease;
  display: inline-block; /* smoother transform on mobile */
}

nav a:hover {
  color: #09f; /* subtle shift from #0ff to slightly deeper blue */
  filter: brightness(1.2);
  transform: scale(1.05);
  text-decoration: none; /* force no underline */
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
}

.fade-in-up.delay-1 {
  animation-delay: 0.2s;
}

.fade-in-up.delay-2 {
  animation-delay: 0.4s;
}

.fade-in-up.delay-3 {
  animation-delay: 0.6s;
}

.projects {
  padding: 3rem 2rem;
  background: #101020;
  border-top: 1px solid #0ff3;
  text-align: center;
}

.projects h3 {
  font-size: 2rem;
  color: #0ff;
  margin-bottom: 2rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: #1a1a2e;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #0ff2;
  text-align: left;
  transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: #0ff;
  box-shadow: 0 8px 16px rgba(0, 255, 255, 0.2);
}

.project-card h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: #0ff;
}

.project-card p {
  margin: 0;
  color: #ccc;
  font-size: 0.95rem;
}

.popup.success {
  background: #0f08;
  color: #0f0;
  border: 1px solid #0f0;
  padding: 1rem;
  margin: 1rem auto;
  max-width: 500px;
  border-radius: 8px;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 0 12px #0f08;
  animation: fadeIn 0.5s ease-in-out;
}

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

.social-links {
  margin-top: 1rem;
}

.social-links a {
  margin: 0 0.5rem;
  color: #0ff;
  font-size: 1.4rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
  color: #09f;
  transform: scale(1.2);
}