/* ==============
   RESET & BASE
   ============== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-color: #f7f7f7;
  --bg-elevated: #ffffff;
  --text-color: #222222;
  --muted-text: #666666;
  --accent: #5DD1D5;
  --accent-soft: #B9DFDB;
  --accent-contrast: #57DBCD;
  --border-color: #e0e0e0;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.07);
}

body.dark-theme {
  --bg-color: #050816;
  --bg-elevated: #0f172a;
  --text-color: #e5e7eb;
  --muted-text: #9ca3af;
  --accent: #B9DFDB;
  --accent-soft: #5DD1D5;
  --accent-contrast: #57DBCD;
  --border-color: #1f2937;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.6);
}

body {
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* Smooth scroll */
html {
  scroll-behavior: smooth;
}

/* ==============
   HEADER / NAVBAR
   ============== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg-color) 85%, transparent);
  border-bottom: 1px solid var(--border-color);
}

.navbar {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--muted-text);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: var(--accent);
  transition: width 0.2s ease;
}

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Icon button (theme toggle) */
.icon-btn {
  border: none;
  background: var(--bg-elevated);
  border-radius: 999px;
  padding: 0.4rem 0.6rem;
  font-size: 0.95rem;
  color:var(--text-color);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0.25rem;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-color);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ==============
   HERO
   ============== */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--accent-soft),
              var(--accent)
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--accent-soft),
              var(--accent);
  mix-blend-mode: multiply;
  pointer-events: none;
}

body.dark-theme .hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(15, 23, 42, 0.85),
    rgba(15, 23, 42, 0.85)
  );
}

.hero-content {
  position: relative;
  max-width: 900px;
  padding: 3rem 1.5rem 4rem;
  text-align: left;
  color: #f9fafb;
}

.hero-subtitle {
  font-size: 0.9rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.3rem);
  margin-bottom: 0.6rem;
  font-weight: 700;
  color: var(--text-color);
}

.highlight {
  color: var(--accent-contrast);
}

.hero-text {
  max-width: 550px;
  color: var(--text-color);
  font-size: 0.98rem;
}

.hero-buttons {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  border: none;
  background: var(--accent-contrast);
  color: var(--text-color);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.45);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.3);
}

.btn.btn-outline {
  background: transparent;
  color: var(--text-color);
  border: 1px solid var(--text-color);
  box-shadow: none;
}

/* ==============
   SECTIONS
   ============== */
.section {
  padding: 80px 1.5rem;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  background: var(--bg-elevated);
  border-radius: 18px;
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-color);
}

.section-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.section-text {
  color: var(--muted-text);
  font-size: 0.98rem;
}

/* ==============
   SKILLS
   ============== */
.skills-container {
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.skill-card {
  padding: 0.9rem 1rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #111827;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
}

/* ==============
   PROJECTS
   ============== */
.projects-grid {
  margin-top: 1.8rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--bg-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
}

.project-image-wrapper {
  position: relative;
  overflow: hidden;
}

.project-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 0.5s ease;
}

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

.project-content {
  padding: 1.1rem 1.1rem 1.2rem;
}

.project-content h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.project-content p {
  font-size: 0.9rem;
  color: var(--muted-text);
  margin-bottom: 0.7rem;
}

.project-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}

.project-link2 {
  color: var(--text-color);
  text-decoration: none;
}

/* ==============
   CONTACT
   ============== */
.contact-form {
  margin-top: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.85rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-color);
  color: var(--text-color);
  font-size: 0.95rem;
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

/* ==============
   FOOTER
   ============== */
.footer {
  text-align: center;
  padding: 1.5rem 1rem 2rem;
  color: var(--muted-text);
  font-size: 0.85rem;
}

/* ==============
   GSAP ANIM CLASSES
   ============== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
}

/* ==============
   RESPONSIVE
   ============== */
@media (max-width: 900px) {
  .hero-content {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .navbar {
    padding-inline: 1rem;
  }

  .nav-links {
    position: absolute;
    top: 56px;
    right: 0;
    flex-direction: column;
    background: var(--bg-elevated);
    padding: 0.75rem 1.1rem 1rem;
    gap: 0.75rem;
    border-radius: 12px;
    margin-right: 1rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-soft);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .hamburger {
    display: flex;
  }

  .hero {
    align-items: flex-start;
  }

  .hero-content {
    padding-top: 5rem;
  }

  .section-inner {
    padding-inline: 1.3rem;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
  }

  .section {
    padding-inline: 1rem;
  }
}
