/* =====================
   GLOBAL RESET
===================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background: #0f172a;
  color: #e5e7eb;
}

/* =====================
   CONTAINER
===================== */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

/* =====================
   HEADER
===================== */
header {
  position: fixed;
  width: 100%;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  z-index: 1000;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  font-size: 22px;
  font-weight: 700;
  color: #38bdf8;
  text-decoration: none;
}

.logo span {
  color: #fff;
}

.nav-links {
  display: flex;
  gap: 30px;
  list-style: none;
}

.nav-links a {
  color: #e5e7eb;
  text-decoration: none;
  font-weight: 500;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  color: white;
}

/* =====================
   HERO
===================== */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, #020617, #0f172a);
}

.hero-content h1 {
  font-size: 48px;
  font-family: "Montserrat", sans-serif;
}

.hero-content p {
  max-width: 700px;
  margin: 20px auto;
  opacity: 0.9;
}

.cta-button {
  display: inline-block;
  margin-top: 25px;
  padding: 14px 32px;
  background: #38bdf8;
  color: #020617;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-3px);
}

/* =====================
   PROJECTS
===================== */
.projects {
  padding: 10px 20px;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 36px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

/* PROJECT CARD */
.project-card {
  background: #020617;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(56, 189, 248, 0.2);
}

.project-info {
  padding: 20px;
}

.project-info h3 {
  margin-bottom: 10px;
}

.project-info a {
  display: inline-block;
  margin-top: 10px;
  color: #38bdf8;
  text-decoration: none;
  font-weight: 600;
}

/* =====================
   STATS
===================== */
.stats {
  background: #020617;
  padding: 80px 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 30px;
  text-align: center;
}

.stat-number {
  font-size: 42px;
  font-weight: 800;
  color: #38bdf8;
}

/* =====================
   CONTACT
===================== */
.contact {
  padding: 100px 20px;
  text-align: center;
}

.contact-button {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 30px;
  background: #38bdf8;
  color: #020617;
  border-radius: 30px;
  text-decoration: none;
}

/* =====================
   FOOTER
===================== */
footer {
  background: #020617;
  padding: 50px 20px;
  text-align: center;
}

.social-links a {
  margin: 0 10px;
  font-size: 20px;
  color: #38bdf8;
}

/* =====================
   MODAL
===================== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  background: #020617;
  max-width: 900px;
  width: 100%;
  border-radius: 20px;
  padding: 30px;
}

.modal-image img {
  width: 100%;
  border-radius: 12px;
}




/* GRID */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

/* CARD */
.project-card {
  background: linear-gradient(180deg, #020617, #020617);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-card:hover {
  transform: translateY(-12px);
  box-shadow: 0 40px 100px rgba(56, 189, 248, 0.25);
}

/* IMAGE */
.project-image {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05) saturate(1.1);
  transition: transform 0.6s ease;
}

.project-card:hover img {
  transform: scale(1.08);
}

/* DARK OVERLAY */
.project-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(2, 6, 23, 0.1),
    rgba(2, 6, 23, 0.95)
  );
}

/* CONTENT */
.project-content {
  padding: 28px;
}

.project-content h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.project-content p {
  font-size: 15px;
  opacity: 0.8;
  margin-bottom: 22px;
}

/* BUTTON */
.project-btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6366f1, #38bdf8);
  color: #020617;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(56, 189, 248, 0.4);
}






.project-card {
  background: #020617;
  border-radius: 18px;
  overflow: hidden;
  transition: all 0.4s ease;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}


/* =====================
   RESPONSIVE
===================== */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 32px;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    background: #020617;
    flex-direction: column;
    width: 220px;
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }
}

@media (max-width: 480px) {
  .hero {
    height: auto;
    padding: 120px 0 80px;
  }
}


@media (max-width: 768px) {
  .project-image {
    height: 200px;
  }

  .project-content h3 {
    font-size: 20px;
  }
}
