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

:root {
  --bg: #0d0d0d;
  --bg-soft: #161616;
  --text: #f5f5f5;
  --muted: #b3b3b3;
  --accent: #ff0055;
  --card-bg: #161616;
  --border: #2a2a2a;
  --bg-color-alt: var(--bg-soft);
  --accent-color: var(--accent);
  --border-color: var(--border);
  --color-text-soft: var(--muted);
  --color-accent: var(--accent);
}
[data-theme="light"] {
  --bg: #ffffff;
  --bg-soft: #f7f7f7;
  --text: #0d0d0d;
  --muted: #4d4d4d;
  --accent: #ff0055;
  --card-bg: #ffffff;
  --border: #e7e7e7;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  overflow-x: clip;
}
body {
  font-family: "Poppins", "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  transition:
    background 0.3s ease,
    color 0.3s ease;
}
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
.accent {
  color: var(--accent);
}
.eyebrow {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.85rem;
  margin-bottom: 8px;
}
.center {
  text-align: center;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(13, 13, 13, 0.75);
  border-bottom: 1px solid var(--border);
}
[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.8);
}
[data-theme="light"] .logo img {
  filter: invert(1);
}
.container.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 24px;
  position: relative;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.2rem;
  min-width: 0;
}
.logo svg,
.logo img {
  width: 50px;
  height: 25px;
  overflow: visible;
  object-fit: contain;
  flex-shrink: 0;
}
.logo span {
  white-space: nowrap;
}
.main-nav {
  display: flex;
  gap: 28px;
}
.main-nav a {
  font-weight: 500;
  position: relative;
  transition: color 0.2s;
}
.main-nav a:hover {
  color: var(--accent);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
#themeToggle,
#navBurger {
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  cursor: pointer;
  font-size: 1rem;
  transition:
    transform 0.3s,
    border-color 0.3s;
}
#themeToggle:hover {
  transform: rotate(20deg);
  border-color: var(--accent);
}
#navBurger {
  display: none;
  border-radius: 8px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 8px;
  font-weight: 600;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(255, 0, 85, 0.35);
}
.btn-outline {
  border: 2px solid var(--accent);
  color: var(--text);
}
.btn-outline:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-3px);
}
.btn-medium {
  padding: 10px 22px;
  font-size: 0.95rem;
}

/* Hero */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-height: 88vh;
  padding-top: 60px;
  flex-wrap: wrap;
}
.hero-text {
  flex: 1 1 420px;
}
.hero-text h1 {
  font-size: 2.6rem;
  line-height: 1.2;
  margin: 14px 0 18px;
}
.lead {
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 26px;
}
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-image {
  flex: 1 1 280px;
  display: flex;
  justify-content: center;
  max-width: 100%;
}
.hero-image img {
  width: min(100%, 420px);
  height: auto;
  aspect-ratio: 1 / 1;
  max-height: 420px;
  object-fit: cover;
  border-radius: 50% 50% 45% 45%/55% 55% 45% 45%;
  border: 3px solid var(--accent);
  animation: float 5s ease-in-out infinite;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

/* Fade animations */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* About */
.about {
  display: flex;
  gap: 50px;
  padding: 100px 24px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.about-image {
  flex: 0 0 340px;
}
.about-image img {
  border-radius: 14px;
  border: 2px solid var(--border);
  object-fit: cover;
  height: 420px;
  width: 100%;
}
.about-content {
  flex: 1 1 480px;
}
.about-content h2 {
  font-size: 2rem;
  margin-bottom: 24px;
}
.tab-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.tab-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 10px 18px;
  border-radius: 24px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.25s;
}
.tab-btn.active,
.tab-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.tab-panel {
  display: none;
}
.tab-panel.active {
  display: block;
  animation: fadeIn 0.4s ease;
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.timeline {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.timeline li {
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  display: flex;
  flex-direction: column;
}
.timeline li span {
  color: var(--muted);
  font-size: 0.9rem;
}
.timeline .role {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.timeline li .current-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 24px;
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
}
.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.skill-grid span {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.skill-grid span:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

/* Services */
.services {
  padding: 100px 24px;
}
.services h2 {
  margin-bottom: 50px;
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 26px;
}
.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  transition:
    transform 0.3s,
    border-color 0.3s;
}
.service-card img {
  border-radius: 10px;
  height: 150px;
  object-fit: cover;
  margin-bottom: 16px;
  width: 100%;
}
.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
}
.service-card h3 {
  margin-bottom: 8px;
}
.service-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

/* Portfolio */

.portfolio-section {
  padding: 80px 24px;
  background-color: var(--bg-color-alt);
}

.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  background: none;
  border: 1px solid var(--accent);
  color: var(--text);
  padding: 8px 20px;
  border-radius: 20px;
  cursor: pointer;
  font: inherit;
  transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn:focus-visible {
  background-color: var(--accent);
  color: #fff;
  border-color: var(--accent);
  outline: none;
}

.filter-btn.active {
  background-color: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  justify-items: center;
  max-width: 1180px;
  margin: 0 auto;
}

.portfolio-card.is-filtered-out,
.portfolio-card[hidden] {
  display: none !important;
}

.filter-empty {
  text-align: center;
  color: var(--muted);
  margin: 12px 0 0;
}

.filter-empty[hidden] {
  display: none;
}

.portfolio-card {
  position: relative;
  width: 100%;
  max-width: 320px;
  height: auto;
  aspect-ratio: 9 / 16;
  border-radius: 14px;
  overflow: hidden;
  display: block;
  border: 2px solid var(--border);
  transition:
    transform 0.35s ease,
    border-color 0.35s ease;
}

.portfolio-card:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: #ff0055;
}

.portfolio-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.portfolio-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.9), transparent);
  color: #fff;
  padding: 25px 15px 15px 15px;
  transform: translateY(100%);
  transition: transform 0.35s ease;
}

.portfolio-card:hover .portfolio-overlay {
  transform: translateY(0);
}

.portfolio-overlay h3 {
  color: #ff0055;
  margin-bottom: 6px;
  font-size: 1.1rem;
}

.see-all-wrap {
  margin-top: 50px;
  justify-content: center;
  display: flex;
}

/* .portfolio {
  padding: 100px 24px;
}
.portfolio h2 {
  margin-bottom: 30px;
}
.filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.filter-btn {
  background: none;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 9px 20px;
  border-radius: 24px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.25s;
}
.filter-btn.active,
.filter-btn:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}
.project-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 9/16;
  cursor: pointer;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  transition:
    transform 0.35s ease,
    box-shadow 0.35s ease;
}
.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 30px rgba(255, 0, 85, 0.25);
}
.project-card:hover img {
  transform: scale(1.08);
}
.project-card .overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
  color: #fff;
}
.project-card .overlay h4 {
  font-size: 1rem;
}
.project-card .overlay span {
  font-size: 0.8rem;
  color: var(--accent);
}
.see-all {
  margin-top: 10px;
} */

/* Contact */
.contact {
  display: flex;
  gap: 50px;
  padding: 100px 24px;
  flex-wrap: wrap;
}
.contact-text {
  flex: 1 1 340px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.contact-text > .btn-medium {
  position: absolute;
  right: 0;
  bottom: calc(1.2 * 0.92rem + 44px);
}
.contact-text h2 {
  font-size: 2rem;
  margin: 14px 0;
}
.contact-text > .eyebrow {
  text-align: center;
  margin-bottom: 0;
}
.contact-text > h2:first-of-type {
  text-align: center;
  margin-top: 0;
  line-height: 1.15;
}
.contact-info {
  list-style: none;
  margin-top: 20px;
  color: var(--muted);
}
.contact-info li {
  margin-bottom: 12px;
}
.contact-form {
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}
.contact-form .honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-form button:disabled {
  opacity: 0.7;
  cursor: wait;
}
.form-status {
  min-height: 1.2em;
  font-size: 0.92rem;
}
.form-status.is-success {
  color: #3ddc84;
}
.form-status.is-error {
  color: var(--accent);
}
.contact-form input,
.contact-form textarea {
  padding: 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  font-family: inherit;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--accent);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  text-align: center;
  color: var(--muted);
}

/* ============================
   BUTTONS
   ============================ */
/* .btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  border: 2px solid var(--accent-color);
}

.btn-primary {
  background-color: var(--accent-color);
  color: #ffffff;
}

.btn-outline {
  background-color: transparent;
  color: var(--accent-color);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 0, 85, 0.4);
} */

/* Project detail page */
.project-detail {
  padding: 60px 24px 100px;
}
.back-link {
  color: var(--accent);
  font-weight: 600;
  display: inline-block;
  margin-bottom: 20px;
}
.project-detail h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}
.tags {
  color: var(--muted);
  margin-bottom: 36px;
}
.detail-section {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.collapse-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 0;
}
.collapse-btn span {
  color: var(--accent);
  font-size: 1.4rem;
}
.collapse-content {
  max-height: 1000px;
  overflow: hidden;
  transition:
    max-height 0.4s ease,
    opacity 0.4s ease;
  opacity: 1;
  margin-top: 14px;
}
.collapse-content.collapsed {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
}
.collapse-content p {
  color: var(--muted);
  line-height: 1.7;
  max-width: 760px;
}
.visual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.visual-grid img {
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.detail-actions {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.current-badge {
  background-color: #ff0055;
  color: #ffffff;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: 12px;

  margin-right: auto;
}

@media (max-width: 900px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  .container.nav-wrap {
    padding: 12px 16px;
  }
  .logo {
    font-size: 1rem;
    gap: 8px;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 4px;
    background: var(--bg-soft);
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    z-index: 200;
  }
  .main-nav.open {
    display: flex;
  }
  .main-nav a {
    padding: 12px 14px;
    border-radius: 8px;
  }
  .main-nav a:hover {
    background: var(--bg);
  }
  #navBurger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .hero,
  .about,
  .contact {
    flex-direction: column;
  }
  .hero {
    min-height: auto;
    padding: 28px 0 48px;
    gap: 28px;
    text-align: center;
  }
  .hero-text {
    flex: 1 1 auto;
  }
  .hero-text h1 {
    font-size: clamp(1.7rem, 7vw, 2.4rem);
  }
  .lead {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta {
    justify-content: center;
  }
  .hero-image,
  .about-image {
    flex: 1 1 auto;
    width: 100%;
    max-width: 100%;
  }
  .about-image,
  .about-image img {
    height: auto;
  }
  .about,
  .services,
  .contact {
    padding: 56px 16px;
  }
  .about-content h2,
  .contact-text h2 {
    font-size: 1.6rem;
  }
  .skill-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .portfolio-section {
    padding: 56px 16px;
  }
  .portfolio-filters {
    gap: 8px;
  }
  .filter-btn {
    padding: 8px 14px;
  }
  .portfolio-overlay {
    transform: none;
    padding: 18px 14px 12px;
  }
  .contact-form,
  .contact-text {
    flex: 1 1 auto;
    width: 100%;
  }
  .contact-text > .btn-medium {
    position: static;
    margin-top: 16px;
    align-self: flex-end;
  }
  .site-footer {
    padding: 24px 16px;
  }
}

@media (max-width: 520px) {
  .portfolio-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .portfolio-card {
    max-width: 100%;
    aspect-ratio: 3 / 4;
  }
  .skill-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-cta .btn,
  .contact-form .btn {
    width: 100%;
    text-align: center;
  }
}

@media (hover: none) {
  .portfolio-overlay {
    transform: none;
  }
}

/* ============================
   ANIMATIONS
   ============================ */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-1 {
  animation: fadeUp 0.8s ease both;
}
.fade-in-2 {
  animation: fadeUp 0.8s ease 0.15s both;
}
.fade-in-3 {
  animation: fadeUp 0.8s ease 0.3s both;
}
