* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  background: #0a0c10;
  color: white;
  overflow-x: hidden;
}

img {
  width: 100%;
  display: block;
}

/* NAVBAR */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  backdrop-filter: blur(0px);
  background: rgba(0, 0, 0, 0);
}

.navbar.scrolled {
  padding: 14px 5%;
  background: rgba(5, 8, 15, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(228, 59, 252, 0.2);
}

.logo {
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: white;
  font-weight: 700;
}

.logo-img {
  height: 50px;
  width: auto;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: #eef5ff;
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: 0.2s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: #e43bfc;
  transition: 0.3s;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: #dba6ff;
}

.menu-btn {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: white;
}

/* HERO */

.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 8%;

  background:
    linear-gradient(rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.82)),
    url("/images/hero_bg.webp") center/cover no-repeat;
}
.hero-content {
  max-width: 950px;
}

.hero h1 {
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 1;
  font-weight: 800;
  margin-bottom: 24px;
}

.gradient {
  background: linear-gradient(90deg, #e43bfc, #8b5dff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  color: #c9d5e4;
  line-height: 1.9;
  max-width: 760px;
  margin: auto;
  font-size: 1.1rem;
}

/* PROJECTS SECTION */

.projects-section {
  padding: 110px 8%;
}

.section-title {
  text-align: center;
  margin-bottom: 70px;
}

.section-title h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  margin-bottom: 18px;
}

.section-title p {
  color: #aebcd0;
  max-width: 700px;
  margin: auto;
  line-height: 1.8;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 35px;
  max-width: 1400px;
  margin: auto;
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #121722;
  transition: 0.4s ease;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
}

.project-image {
  position: relative;
  overflow: hidden;
  height: 280px;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s ease;
}

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

.project-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(228, 59, 252, 0.1),
    rgba(0, 0, 0, 0.5)
  );
}

.project-content {
  padding: 10px;
}

.project-tag {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 50px;
  background: rgba(228, 59, 252, 0.12);
  color: #f2bcff;
  font-size: 0.85rem;
  margin-bottom: 18px;
  border: 1px solid rgba(228, 59, 252, 0.2);
}

.project-content h3 {
  font-size: 1.7rem;
  margin-bottom: 16px;
}

.project-content p {
  color: #b7c4d6;
  line-height: 1.8;
  margin-bottom: 24px;
  text-align: center;
}

.project-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.project-features div {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #dde8f5;
}

.project-features i {
  color: #e43bfc;
}

/* CTA */

.cta-section {
  padding: 100px 8%;
}

.cta-box {
  max-width: 1200px;
  margin: auto;
  padding: 70px 50px;
  border-radius: 35px;
  text-align: center;

  background:
    linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
    url("/images/kerret e punes.jpeg") center/cover;

  border: 1px solid rgba(228, 59, 252, 0.15);
}

.cta-box h2 {
  font-size: clamp(2rem, 5vw, 4rem);
  margin-bottom: 20px;
}

.cta-box p {
  color: #cfd9e7;
  max-width: 700px;
  margin: auto;
  line-height: 1.8;
  margin-bottom: 35px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: white;
  padding: 16px 32px;
  border-radius: 50px;
  background: linear-gradient(90deg, #e43bfc, #b72bd4);
  transition: 0.3s;
  font-weight: 600;
}

.cta-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 25px rgba(228, 59, 252, 0.35);
}

/* FOOTER */

.footer {
  background: #03060c;
  padding: 40px 5% 20px;
  border-top: 1px solid rgba(228, 59, 252, 0.15);
  text-align: center;
}

.footer-credit {
  margin-top: 10px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-credit a {
  color: #b8c7ff;
  text-decoration: none;
  font-size: 0.85rem;

  transition:
    color 0.3s ease,
    text-shadow 0.3s ease,
    transform 0.3s ease;

  display: inline-block;
}

.footer-credit a:hover {
  color: #e43bfc;

  text-shadow:
    0 0 8px rgba(228, 59, 252, 0.8),
    0 0 18px rgba(228, 59, 252, 0.5);

  transform: translateY(-2px);
}

.social-icons {
  margin-top: 18px;
}

.social-icons a {
  color: #bbd9ff;
  font-size: 1.4rem;
  margin: 0 12px;
  transition: 0.2s;
  text-decoration: none;
}

.social-icons a:hover {
  color: #e43bfc;
  transform: translateY(-3px);
}

/* RESPONSIVE */
@media (max-width: 820px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: rgba(3, 8, 18, 0.98);
    backdrop-filter: blur(18px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: 0.4s;
    gap: 2.5rem;
    z-index: 999;
    border-left: 1px solid #2c9aff;
  }
  .nav-links.active {
    right: 0;
  }
  .menu-btn {
    display: block;
    z-index: 1001;
  }
  .navbar.scrolled .menu-btn {
    color: white;
  }
  .hero h1 {
    font-size: 3rem;
  }
  .section-title {
    font-size: 2.2rem;
  }
}

@media (max-width: 600px) {
  .hero {
    min-height: 70vh;
  }

  .project-content {
    padding: 24px;
  }

  .cta-box {
    padding: 50px 25px;
  }
}
