/* ===================== RESET ===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===================== HEADER ===================== */
.header-container {
  background: transparent;
  height: auto;
}

.navItems a {
  position: absolute;
  left: 1.3em;
  top: 0.8em;
  
  z-index: 3;
  font-size: 2em;
  text-decoration: none;
  color: #ffffff;
}

/* ===================== NEON TITLES ===================== */
.section-title {
  text-align: center;
  font-size: 2.6rem;
  margin: 3rem 0 0.6rem;
  color: #00ffff;
  letter-spacing: 1px;
  text-shadow:
    0 0 5px rgba(0, 255, 255, 0.6),
    0 0 15px rgba(0, 255, 255, 0.4),
    0 0 30px rgba(0, 255, 255, 0.2);
  animation: neon-flicker 2.5s infinite;
}

.intro {
  font-size: 1.3rem;
  max-width: 900px;
  margin: 1.5em ;
  text-align: center;
  line-height: 1.7;
  color: #f5f5f5;
  opacity: 0.9;
  padding: 0 12px;
}

/* ===================== NEON FLICKER ===================== */
@keyframes neon-flicker {
  0%,
  18%,
  22%,
  25%,
  53%,
  57%,
  100% {
    opacity: 1;
  }
  20%,
  24%,
  55% {
    opacity: 0.5;
  }
}

/* ===================== TYPE CARDS GRID ===================== */
.type-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 2.5rem;
}

/* ===================== TYPE CARD ===================== */
.type-card {
  cursor: pointer;
  position: relative;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 20px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  padding: 20px;
  color: #ffffff;
  transition:
    transform 0.4s ease,
    box-shadow 0.4s ease,
    background 0.4s ease;
  transform-style: preserve-3d;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.25);
  will-change: transform;
}

.type-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0.25) 0%,
    rgba(255, 255, 255, 0.05) 40%,
    rgba(255, 255, 255, 0) 60%
  );
  opacity: 0.25;
  pointer-events: none;
}

/* Hover 3D Neon Effect */
.type-card:hover {
  transform: rotateX(6deg) rotateY(-6deg) scale(1.04);
  background: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 12px 40px rgba(0, 255, 255, 0.25),
    0 20px 60px rgba(0, 0, 139, 0.35);
}

/* Card Content */
.type-card h2 {
  font-size: 1.45rem;
  margin-bottom: 0.6rem;
  color: #00ffff;
}

.type-card ul {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 1.2rem;
  margin-bottom: 1.7rem;
}

.type-card ul li {
  color: #ffffff;
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.95;
}
.price {
  font-size: 1.25rem;
  font-weight: bold;
  color: #f5f5f5;
}

/* ===================== SAMPLE PROJECTS ===================== */
.project-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* Sample Card */
.sample-card {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  cursor: pointer;
  transform: translateY(50px);
  opacity: 0;
  border: 1px solid rgba(0, 255, 255, 0.3);
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
  transition:
    transform 0.5s ease,
    box-shadow 0.5s ease;
  will-change: transform;
}

.sample-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  transition:
    transform 0.5s ease,
    filter 0.5s ease;
}

.sample-card:hover img {
  transform: scale(1.1);
  filter: brightness(1.3) saturate(1.6);
}

/* Glitch Neon Overlay */
.sample-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    0 0 10px #0ff,
    0 0 20px #0ff,
    0 0 30px #f0f;
  opacity: 0;
  transition: opacity 0.3s;
}

.sample-card:hover::after {
  opacity: 1;
  animation: glitch-overlay 0.4s infinite;
}

@keyframes glitch-overlay {
  0% {
    transform: translate(0);
  }
  20% {
    transform: translate(-3px, 2px);
  }
  40% {
    transform: translate(2px, -2px);
  }
  60% {
    transform: translate(-1px, 1px);
  }
  80% {
    transform: translate(1px, -1px);
  }
  100% {
    transform: translate(0);
  }
}

/* ===================== PARTICLES ===================== */
#particles-js {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: #0a0a0a;
}

/* ===================== ACCESSIBILITY ===================== */
a:focus,
.type-card:focus-within {
  outline: 2px solid #00ffff;
  outline-offset: 4px;
}

/* ===================== RESPONSIVE ===================== */

/* Large Tablets */
@media (max-width: 1100px) {
  .type-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablets */
@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }

  .intro {
    font-size: 1.1rem;
  }

  .type-cards {
    gap: 18px;
  }

  .project-grid {
    gap: 15px;
  }
}

/* Mobile */
@media (max-width: 540px) {
  .type-cards,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .type-card {
    padding: 16px;
    border-radius: 15px;
  }

  .type-card h2 {
    font-size: 1.15rem;
  }
}

/* Extra Small */
@media (max-width: 400px) {
  .section-title {
    font-size: 1.6rem;
  }

  .type-card {
    padding: 14px;
  }
}

/* ===================== PROJECTS SECTION ===================== */
.projects-section {
  max-width: 1200px;
  margin: auto;
}

.section-title {
  text-align: center;
  font-size: 2.6rem;
  margin-top: 3em;
  color: #00ffff;
  margin-bottom: 0.5rem;
  text-shadow: 0 0 15px rgba(0,255,255,0.6);
}

.intro {
  text-align: center;
  max-width: 800px;
  margin: auto;
  font-size: 1.1rem;
  opacity: 0.9;
}

/* ================= GRID ================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-top: 3rem;
}

/* ================= CARD ================= */
.project-card {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(18px);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.25);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.project-card:hover {
  transform: translateY(-12px) scale(1.04);
  box-shadow:
    0 15px 45px rgba(0,255,255,0.25),
    0 25px 70px rgba(0,0,139,0.4);
}

/* ================= IMAGE ================= */
.project-image {
  position: relative;
  height: 200px;
  cursor: pointer;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.6s ease;
}

.project-image:hover img {
  transform: scale(1.12);
  filter: brightness(1.25) saturate(1.4);
}

/* Overlay */
.image-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.project-image:hover .image-overlay {
  opacity: 1;
}

.image-overlay span {
  color: #00ffff;
  padding: 12px 26px;
  border: 1.5px solid rgba(0,255,255,0.6);
  border-radius: 30px;
  text-shadow: 0 0 10px rgba(0,255,255,0.8);
}

/* ================= CONTENT ================= */
.project-content {
  padding: 20px;
}

.project-content h3 {
  color: #00ffff;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.project-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 1rem;
}

.project-link {
  color: #00ffff;
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

.project-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #00ffff;
  transition: width 0.3s;
}

.project-link:hover::after {
  width: 100%;
}

/* ================= LIGHTBOX ================= */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 9999;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 18px;
  box-shadow:
    0 0 30px rgba(0,255,255,0.4),
    0 0 60px rgba(0,0,139,0.4);
  animation: zoomIn 0.4s ease;
}

/* Close */
.close-btn {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  cursor: pointer;
  color: #00ffff;
}

/* Navigation */
.nav {
  position: absolute;
  font-size: 3rem;
  color: #00ffff;
  cursor: pointer;
  user-select: none;
}

.prev { left: 30px; }
.next { right: 30px; }

/* Animation */
@keyframes zoomIn {
  from { transform: scale(0.7); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1000px) {
  .projects-grid { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 600px) {
  .projects-grid { grid-template-columns: 1fr; }
}