@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");

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

:root {
  --bg: #f6f6f6;
  --card-bg: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --border: rgba(0, 0, 0, 0.08);
  --accent: #04080f;
  --focus: #94a3b8;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.12);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
}

/* ─── Navbar ─── */
.site-header {
  position: fixed;
  top: 1rem;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: auto;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border);
}

.navbar {
  display: flex;
  justify-content: center;
}

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

.nav-list a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.8rem;
  padding: 0.35rem 0.7rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-list a:hover,
.nav-list a:focus-visible {
  background: var(--accent);
  color: #fff;
  outline: none;
}

.nav-list a.active {
  background: var(--accent);
  color: #fff;
}

/* ─── Sections ─── */
.section {
  padding: 4rem 1.25rem;
  max-width: 800px;
  margin: 0 auto;
}

.section-heading {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.section-info {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.divider {
  border: 0;
  height: 1px;
  background: var(--border);
  max-width: 800px;
  margin: 0 auto;
}

/* ─── Hero ─── */
.hero {
  margin-top: 4rem;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5rem 1rem 2rem;
  /* background-color: red; */
}

.hero-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  max-width: 100%;
  min-height: 400px;
  width: 100%;
  border: 2px solid var(--border);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-md);
}

.hero-pattern {
  width: 125%;
  height: 125%;
  object-fit: cover;
  object-position: center;
  position: absolute;
  bottom: 170px;
  z-index: 0;
  pointer-events: none;
  /* opacity: 0.08; */
}

.hero-wrapper {
  padding: 2rem 1.25rem;
  position: relative;
  z-index: 3;
}

.hero-header {
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  color: var(--text-primary);
  z-index: 3;
  position: relative;
}

.hero-body {
  display: flex;
  flex-direction: column;

  gap: 1.25rem;
  flex: 1;
  min-width: 0;
}

.hero-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  /* background-color:red ; */
  gap: 0.4rem;
}

.hero-avatar-wrap {
  margin: 0;
}

.hero-avatar {
  width: 150px;
  height: 150px;
  padding: 0.4rem;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg);
}

.hero-name {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--bg);
  display: inline-flex;
  align-items: center;
  gap: 0.05em;
  height: calc(1.75rem * 1.6);
}

.hero-name-text {
  display: inline-block;
  white-space: nowrap;
}

.hero-name-cursor {
  display: inline-block;
  font-weight: 300;
  color: var(--bg);
  animation: cursorBlink 0.75s step-end infinite;
  margin-left: 1px;
  font-size: 1.1em;
  line-height: 1;
  user-select: none;
}

@keyframes cursorBlink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

.hero-role {
  font-size: 1rem;
  color: var(--text-muted);
}

.hero-bio {
  color: var(--bg);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ─── Hero Card Content ─── */
.card-socials {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
  flex-wrap: wrap;
}

.card-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-secondary);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-social-link:hover,
.card-social-link:focus-visible {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
  outline: none;
}

.card-social-link .social-icon {
  width: 16px;
  height: 16px;
  color: inherit;
  transition: none;
}

.card-divider {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: 1.5rem 0;
  width: 100%;
}

.card-about {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.card-about-bio {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

.card-facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  width: 100%;
}

.card-fact {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.card-fact:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.card-fact-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.card-fact-text {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

/* ─── Buttons ─── */
.hero-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.875rem;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid var(--border);
  cursor: pointer;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--bg);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: #101318;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--card-bg);
  color: var(--text-primary);
  border: 1px solid #1f2937;
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.btn-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ─── Social Links (hero) ─── */
.hero-socials {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  list-style: none;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: var(--text-secondary);
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card-bg);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.social-link:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.social-link:hover .social-icon {
  color: #fff;
}

.social-icon {
  width: 16px;
  height: 16px;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.social-text {
  line-height: 1;
}

/* ─── Projects ─── */
#projects {
}

.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.project-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
  z-index: 10;
}

.project-card:hover::before {
  transform: scaleX(1);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent);
}

.project-card:hover .project-arrow {
  transform: translate(4px, -4px);
  color: var(--accent);
}

.project-image-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.2s;
  overflow: hidden;
}

.project-card:hover .project-image-wrapper {
  grid-template-rows: 1fr;
}

.project-image {
  min-height: 0;
  overflow: hidden;
  border-top: 1px solid transparent;
  transition: border-color 0.4s ease;
}

.project-card:hover .project-image {
  border-top-color: var(--border);
}

.project-image img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.5s ease;
}

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

.project-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.project-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0;
}

.project-arrow {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.project-card:hover .project-arrow {
  color: var(--text-primary);
  transform: translate(2px, -2px);
}

.project-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
  margin-bottom: 1rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.project-tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  background: #efefef;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  font-weight: 500;
}

/* Pagination Controls */
.carousel-dots {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  margin-top: 2rem;
  width: 100%;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  justify-content: space-between;
  align-items: center;
}

.page-counter {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.3px;
  text-align: right;
}

.dots-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 50px;
  box-shadow: var(--shadow-sm);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.dot.active {
  background: var(--accent);
  transform: scale(1.2);
}

/* ─── Tech Stack ─── */
.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
}

.tech-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  cursor: default;
}

.tech-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.tech-list li:hover {
  border-color: var(--accent);
  /* background: var(--accent); */
  /* color: #fff; */
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

/* ─── Footer ─── */
.site-footer {
  text-align: center;
  padding: 3rem 1.5rem;
  border-top: 1px solid var(--border);
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  list-style: none;
  margin-bottom: 1.5rem;
}

.footer-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ─── Scroll Animations (handled by GSAP ScrollTrigger) ───*/

/* ─── Responsive & Media Queries ─── */

/* Desktop / Tablet screens */
@media (min-width: 640px) {
  .section {
    padding: 4rem 1.5rem;
  }

  .site-header {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: auto;
  }

  .nav-list {
    gap: 0.25rem;
  }

  .nav-list a {
    font-size: 0.875rem;
    padding: 0.4rem 0.9rem;
  }

  .hero {
    padding: 5rem 1.5rem 3rem;
  }

  .hero-wrapper {
    padding: 3rem 2.5rem;
  }

  .hero-card {
    max-width: 752px;
  }

  .hero-info {
    align-items: start;
  }
  .hero-pattern {
    bottom: 240px;
    scale: 1.5;
  }

  .hero-avatar {
    width: 230px;
    height: 230px;
  }

  .hero-name {
    font-size: 2.5rem;
    height: calc(2.5rem * 1.6);
  }

  .hero-header {
    flex-direction: row;
    text-align: left;
    align-items: center;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .card-socials {
    justify-content: flex-end;
  }

  .card-facts {
    grid-template-columns: repeat(2, 1fr);
  }
}
