body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #0f172a; /* clean dark navy */
  color: #e5e7eb;
  color: #e2e8e5;
  overflow-x: hidden;
  cursor: none;
}

body::before {
  content: "";
  position: fixed;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 20%, rgba(34,197,94,0.08), transparent);
  pointer-events: none;
  z-index: 0;
}

.cursor {
  width: 20px;
  height: 20px;
  border: 2px solid #38bdf8;
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 15px #38bdf8;
  transition: transform 0.15s ease, left 0.1s, top 0.1s;
}

.cursor.active {
  transform: scale(1.5);
}

a, button, span {
  cursor: none;
}

.topbar {
  display: flex;
  justify-content: space-between;
  padding: 20px 40px;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.logo {
  color: #38bdf8;
  font-family: 'Orbitron';
  text-shadow: 0 0 10px #38bdf8;
}

nav span {
  margin-left: 20px;
}

nav span:hover {
  color: #38bdf8;
}


.hero-box {
  text-align: center;
  padding: 80px 20px 40px; 
}

.hero-box h1 {
  font-size: 60px;
  color: #38bdf8;
  text-shadow: 0 0 20px #38bdf8;
}


.project-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 25px;
  border: 1px solid #38bdf8;
  border-radius: 30px;
  color: #38bdf8;
  transition: 0.3s;
}

.project-btn:hover {
  background: #38bdf8;
  color: black;
  box-shadow: 0 0 20px #38bdf8;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 25px;
}


.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  height: 200px;
  background: rgba(20,35,30,0.5);
  border: 1px solid rgba(34,197,94,0.15);
}


.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.4s;
}


.overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,25,22,0.75);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: 0.4s;
}


.overlay h3 {
  color: #38bdf8;
}


.overlay p {
  color: #ccc;
}



.project-card:hover img {
  transform: scale(1.1);
}

.project-card:hover .overlay {
  opacity: 1;
}

.project-card:hover {
  box-shadow: 0 0 25px #38bdf8;
}


.project-image {
  width: 100%;
  max-width: 800px;
  border-radius: 15px;
  margin: 20px auto;
  display: block;
  transition: 0.3s;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6);
}


.project-image:hover {
  transform: scale(1.02);
  box-shadow: 0 0 25px #38bdf8;
}


.box {
  max-width: 800px;
  margin: 0 auto;
  padding: 30px;
  background: rgba(20,35,30,0.5);
  border-radius: 20px;
  border: 1px solid rgba(34,197,94,0.15);
}


.box h3 {
  color: #38bdf8;
  margin-top: 20px;
}

.box ul {
  text-align: left;
}

.box li {
  margin-bottom: 5px;
}


.skills-grid {
  grid-template-columns: repeat(3,1fr);
  display: grid;
  gap: 30px;
  margin-top: 40px;
}


.skill-box {
  height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(20,35,30,0.6);
  border-radius: 15px;
  border: 1px solid rgba(34,197,94,0.15);
  transition: 0.3s;
}


.skill-box:hover {
  box-shadow: 0 0 20px #38bdf8;
}

.skill-box img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 10px;
}

.contact-wrapper {
  max-width: 600px;
  margin: 0 auto;
  margin-top: 30px;
  padding: 30px;
  border-radius: 20px;
  background: rgba(20,35,30,0.5);
  border: 1px solid rgba(34,197,94,0.2);
  backdrop-filter: blur(15px);
}

.contact-form {
  display: flex;
  flex-direction: column;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px;
  margin-bottom: 15px;
  border-radius: 12px;
  border: 1px solid rgba(34,197,94,0.3);
  background: rgba(0,0,0,0.3);
  color: white;
}


.contact-form textarea {
  min-height: 120px;
}

.contact-form button {
  padding: 14px;
  border-radius: 30px;
  border: 1px solid #38bdf8;
  background: transparent;
  color: #38bdf8;
  transition: 0.3s;
}


.contact-form button:hover {
  background: #38bdf8;
  color: black;
  box-shadow: 0 0 20px #38bdf8;
}


.footer {
  text-align: center;
  padding: 40px;
}


@keyframes moveBg {
  0% {
    background-position: 20% 30%, 80% 70%;
  }
  100% {
    background-position: 40% 60%, 60% 40%;
  }
}



.project-card,
.skill-box,
.contact-wrapper,
.box {
  backdrop-filter: blur(20px);
  background: linear-gradient(
    145deg,
    rgba(20,35,30,0.6),
    rgba(10,20,15,0.4)
  );
  border: 1px solid rgba(34,197,94,0.15);
}



.project-card::before,
.skill-box::before {
  content: "";
  position: absolute;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(34,197,94,0.15),
    transparent
  );

  transform: rotate(25deg);
  top: -100%;
  left: -100%;
  transition: 0.6s;
}

.project-card:hover::before,
.skill-box:hover::before {
  top: 100%;
  left: 100%;
}


.hero-box h1 {
  font-size: 60px;
  color: #38bdf8;
  text-shadow: 
    0 0 10px #38bdf8,
    0 0 20px #38bdf8,
    0 0 40px rgba(34,197,94,0.6);
}


.project-btn {
  position: relative;
  overflow: hidden;
}

.project-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(34,197,94,0.4), transparent);
  opacity: 0;
  transition: 0.4s;
}

.project-btn:hover::after {
  opacity: 1;
}


* {
  scroll-behavior: smooth;
}

.hero-box h1 {
  font-size: 58px;
  color: #38bdf8;


  text-shadow: 
    0 0 8px rgba(34,197,94,0.8),
    0 0 15px rgba(34,197,94,0.4);

  letter-spacing: 1px;
}

.hero-text {
  max-width: 600px;
  margin: 20px auto;
  line-height: 1.6;
  font-size: 16px;
  color: #cbd5d1;
}

#projectsPage {
  margin-top: 20px;
}

.hero-box::after {
  content: "";
  display: block;
  width: 80px;
  height: 2px;
  background: #38bdf8;
  margin: 30px auto 0;
  opacity: 0.5;
}


.project-btn {
  margin-top: 25px;
}


nav a {
  margin-left: 25px;
  text-decoration: none;
  color: #cbd5d1;
  font-weight: 500;
  position: relative;
  transition: 0.3s;
}


nav a:hover {
  color: #38bdf8;
}


nav a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  background: #38bdf8;
  left: 0;
  bottom: -5px;
  transition: 0.3s;
}

nav a:hover::after {
  width: 100%;
}

.logo {
  color: #38bdf8;
  font-family: 'Orbitron';
  text-shadow: 0 0 10px #38bdf8;
  text-decoration: none;
  cursor: none;
}

.project-btn {
  display: block;
  width: fit-content;
  margin: 20px auto; 
}

.skill-box img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-bottom: 10px;
  padding: 5px;
}

.skill-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero-box h1 {
  font-size: 56px;
  color: white;
  font-weight: 700;
}

.project-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 25px;
  border-radius: 30px;
  background: #38bdf8;
  color: #0f172a;
  font-weight: 600;
  transition: 0.3s;
}

.project-btn:hover {
  background: #0ea5e9;
}

.project-card,
.skill-box,
.contact-wrapper,
.box {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
}

.project-card:hover {
  transform: translateY(-5px);
}

nav a:hover {
  color: #38bdf8;
}

main {
  position: relative;
  z-index: 1;
}

body::before {
  pointer-events: none;
}

.project-card {
  position: relative;
  z-index: 2;
}
.overlay {
  pointer-events: none;
}

@media (max-width: 768px) {

  .topbar {
    flex-direction: column;
    align-items: center;
    padding: 15px;
  }

  nav {
    margin-top: 10px;
  }

  nav a {
    margin: 0 10px;
    font-size: 14px;
  }

  .hero-box h1 {
    font-size: 32px;
  }

  .hero-text {
    font-size: 14px;
    padding: 0 10px;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 10px;
  }

  .project-card {
    height: 150px;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .box {
    padding: 20px;
    margin: 10px;
  }

  .contact-wrapper {
    margin: 10px;
    padding: 20px;
  }

  .project-btn {
    font-size: 14px;
    padding: 10px 20px;
  }

}

#formMessage {
  animation: fadeIn 0.5s ease;
}

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