/* ================= RESET ================= */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ================= VARIABLES ================= */
:root {
  --primary: #0f172a;
  --accent: #4f46e5;
  --bg-light: #f8fafc;
  --text-main: #020617;
  --text-muted: #64748b;
  --radius: 16px;
  --transition: all 0.25s ease;
}

/* ================= BASE ================= */
body {
  font-family: 'Inter', sans-serif;
  color: var(--text-main);
  line-height: 1.7;
  background: #ffffff;
}

.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* ================= NAV ================= */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #e5e7eb;
}

.navbar > .logo,
.nav-links {
  padding: 1.25rem 1.5rem;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 22px;
  font-weight: bold;
  color: #0ABAB5;
}

.logo span {
  color: #8A2BE2;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--accent);
}

.btn-sm {
  background: var(--primary);
  color: #fff !important;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  font-size: 0.9rem;
}

/* ================= HERO ================= */
.hero {
  padding: clamp(5rem, 10vw, 8rem) 0;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  max-width: 920px;
  letter-spacing: -0.03em;
}

.hero h1 span {
  color: var(--accent);
}

.subtitle {
  font-size: clamp(1.05rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
  margin-top: 1.75rem;
  max-width: 720px;
}

.hero-btns {
  margin-top: 2.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ================= BUTTONS ================= */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--accent);
}

.btn-secondary {
  border: 2px solid var(--primary);
  color: var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
}

/* ================= PROJECTS ================= */
.projects {
  background: var(--bg-light);
  padding: clamp(4rem, 8vw, 6rem) 0;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 3rem;
  letter-spacing: -0.02em;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
}

.project-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

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

.project-image {
  height: 240px;
}

.project-info {
  padding: 2rem;
}

.project-info h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.project-info p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.tags span {
  display: inline-block;
  margin-top: 1rem;
  margin-right: 0.5rem;
  background: #f1f5f9;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* ================= PROCESS ================= */
.process {
  padding: clamp(4rem, 8vw, 6rem) 0;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.step {
  padding: 2rem;
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.05);
}

.step-num {
  font-size: 2.8rem;
  font-weight: 800;
  color: #e5e7eb;
  margin-bottom: 0.75rem;
}

/* ================= FOOTER ================= */
footer {
  background: var(--primary);
  color: white;
  text-align: center;
  padding: clamp(4rem, 8vw, 5rem) 0 3rem;
}

footer h2 {
  font-size: clamp(1.8rem, 4vw, 2.3rem);
}

footer p {
  color: #cbd5f5;
  margin-top: 1rem;
}

.email-link {
  display: block;
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  font-weight: 700;
  color: white;
  text-decoration: none;
  margin: 2.5rem 0;
}

.socials {
  margin-bottom: 2rem;
}

.socials a {
  margin: 0 0.75rem;
  color: #c7d2fe;
  text-decoration: none;
  font-weight: 500;
}

.socials a:hover {
  color: white;
}

/* ================= HAMBURGER ================= */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 1rem;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

/* ================= MOBILE NAV & LAYOUT ================= */
@media (max-width: 768px) {

  /* Show hamburger */
  .hamburger {
    display: flex;
  }

  /* Mobile nav menu */
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;

    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem 0;

    border-bottom: 1px solid #e5e7eb;

    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: var(--transition);
  }

  .nav-links.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  /* Hero spacing */
  .hero {
    padding-top: 4.5rem;
  }

  .hero-btns {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Project image height */
  .project-image {
    height: 200px;
  }
}
