:root {
  --bg: #fbf9ff;
  --text: #14131a;
  --muted: #4f4c5f;
  --muted-2: #858194;
  --line: rgba(103, 76, 164, 0.14);
  --card: rgba(255, 255, 255, 0.68);
  --card-strong: rgba(255, 255, 255, 0.88);
  --violet: #7c3aed;
  --violet-dark: #5b21b6;
  --pink: #f472b6;
  --shadow-soft: 0 18px 55px rgba(91, 33, 182, 0.09);
  --shadow-hover: 0 24px 70px rgba(91, 33, 182, 0.16);
  --radius-lg: 32px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(124, 58, 237, 0.18), transparent 35%),
    radial-gradient(circle at 85% 15%, rgba(96, 165, 250, 0.18), transparent 35%),
    radial-gradient(circle at 60% 80%, rgba(244, 114, 182, 0.14), transparent 40%),
    linear-gradient(180deg, #fbf9ff 0%, #f4efff 60%, #f0eaff 100%);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.container {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
}

.hidden {
  display: none;
}

.section {
  padding: 84px 0;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 16px;
  color: var(--violet-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-title {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.055em;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-heading p,
.hero p,
.about-text p,
.project-page p {
  color: var(--muted);
  line-height: 1.8;
}

/* Buttons */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 14px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: 0.24s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: white;
  background: linear-gradient(135deg, #181223, var(--violet-dark));
  box-shadow: 0 16px 35px rgba(91, 33, 182, 0.22);
}

.btn-secondary {
  color: #241b35;
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(91, 33, 182, 0.2);
  box-shadow: 0 10px 25px rgba(91, 33, 182, 0.08);
}

.cv-button {
  margin-top: 28px;
}

/* Header */

.site-header {
  position: sticky;
  top: 14px;
  z-index: 20;
  width: min(100% - 40px, var(--container));
  margin: 14px auto 0;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(91, 33, 182, 0.18);
  box-shadow: 0 12px 40px rgba(91, 33, 182, 0.12);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.logo-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: white;
  background: linear-gradient(135deg, var(--violet), var(--pink));
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.94rem;
  transition: 0.24s ease;
}

.nav-links a:hover {
  color: var(--violet-dark);
  background: rgba(124, 58, 237, 0.08);
}

/* Hero */

.hero {
  padding: 96px 0 80px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: 54px;
  align-items: center;
}

.hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.075em;
}

.hero p {
  max-width: 720px;
  margin: 26px 0 0;
  font-size: 1.12rem;
}

/* Hero Visual */

.hero-panel {
  position: relative;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 42px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.78), rgba(255,255,255,0.38)),
    radial-gradient(circle at 30% 20%, rgba(244, 114, 182, 0.2), transparent 15rem),
    radial-gradient(circle at 80% 80%, rgba(96, 165, 250, 0.22), transparent 17rem);
  box-shadow: var(--shadow-soft);
}

.orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(8px);
}

.orb-one {
  width: 210px;
  height: 210px;
  top: 58px;
  right: 54px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.32), rgba(244, 114, 182, 0.32));
}

.orb-two {
  width: 160px;
  height: 160px;
  left: 44px;
  bottom: 70px;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.35), rgba(124, 58, 237, 0.22));
}

.floating-card {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 5px;
  padding: 16px 18px;
  border-radius: 20px;
  backdrop-filter: blur(16px);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(91, 33, 182, 0.18);
  box-shadow: 0 16px 45px rgba(91, 33, 182, 0.16);
}
.floating-card strong {
  color: var(--text);
}

.floating-card span {
  color: #4f3f75;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;

}

.card-one {
  top: 70px;
  left: 42px;
}

.card-two {
  right: 34px;
  bottom: 66px;
}

.device-mockup {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: min(68%, 320px);
  min-height: 390px;
  transform: translate(-50%, -50%) rotate(-4deg);
  padding: 24px;
  border-radius: 36px;
  background: rgba(255,255,255,0.82);
  box-shadow: 0 30px 70px rgba(91, 33, 182, 0.18);
}

.mockup-bar {
  width: 64px;
  height: 7px;
  margin: 0 auto 34px;
  border-radius: 999px;
  background: #ddd6fe;
}

.mockup-line {
  height: 14px;
  width: 62%;
  margin-bottom: 14px;
  border-radius: 999px;
  background: #ebe4ff;
}

.mockup-line.wide {
  width: 88%;
  height: 24px;
  background: linear-gradient(135deg, #ddd6fe, #fce7f3);
}

.mockup-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 30px;
}

.mockup-grid span {
  min-height: 92px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(96, 165, 250, 0.12));
}

/* Projects */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  min-height: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
  transition: 0.28s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  background: var(--card-strong);
  box-shadow: var(--shadow-hover);
}

.project-preview {
  width: 100%;
  height: 220px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  /* border-radius: 22px; */
  /* background: rgba(255, 255, 255, 0.65); */
  /* border: 1px solid var(--line); */
}

.project-preview img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
}

.project-card h3 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.18;
}

.project-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

/* Skills */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 40px;
}

.skill-item {
  text-align: center;
}

.skill-item img {
  width: 100%;
  max-width: 180px;
  height: 150px;
  object-fit: contain;
  margin: 0 auto 20px;
  display: block;
}

.skill-item h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
}

.skill-item p {
  margin: 0 auto;
  max-width: 260px;
  color: var(--muted);
  line-height: 1.7;
}
.skill-card p {
  color: var(--muted);}
/* About */

.about-section {
  padding-bottom: 110px;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: start;
  padding-top: 44px;
  border-top: 1px solid var(--line);
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.about-tags span {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 0.9rem;
  color: #33284a;
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(91, 33, 182, 0.18);
}

/* Project Pages */

.project-page {
  display: none;
  min-height: 70vh;
  padding-top: 80px;
}

.project-page.active {
  display: block;
}

.project-page h1 {
  margin: 0 0 18px;
  max-width: 850px;
  font-size: clamp(2.7rem, 6vw, 5rem);
  line-height: 1;
  letter-spacing: -0.07em;
}

.project-page p {
  max-width: 700px;
  margin-bottom: 28px;
  font-size: 1.1rem;
}

.back-link {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--muted);
  font-weight: 700;
}

.project-detail-layout {
  display: grid;
  grid-template-columns: minmax(280px, 480px) 1fr;
  gap: 28px;
  align-items: stretch;
  margin: 34px 0;
}

.carousel {
  position: relative;
  padding: 22px;
  border-radius: 34px;

  background: rgba(255, 255, 255, 0.94); /* stronger */
  border: 1px solid rgba(91, 33, 182, 0.18);
  box-shadow: 0 20px 50px rgba(91, 33, 182, 0.12);
}

.carousel-track {
  height: 420px;
  display: grid;
  place-items: center;
}

.carousel-image {
  display: none;
  max-width: 75%;
  object-fit: contain;
  border-radius: 24px;
}

.carousel-image.active {
  display: block;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 44px;
  height: 44px;
  border-radius: 50%;

  border: none;
  cursor: pointer;

  background: #1c1726; /* dark solid */
  color: white;

  font-size: 1.6rem;

  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.carousel-btn:hover {
  background: var(--violet-dark);
}
.carousel-btn.prev {
  left: 18px;
}

.carousel-btn.next {
  right: 18px;
}

.case-overview {
   margin: 0;
  padding: 32px;
  border-radius: 34px;

  background: rgba(255, 255, 255, 0.96); /* stronger */
  border: 1px solid rgba(91, 33, 182, 0.18);
  box-shadow: 0 20px 50px rgba(91, 33, 182, 0.12);
}

.case-overview h2 {
  margin-top: 0;
   color: #16141f;;
}

.case-overview p {
  margin-bottom: 0;
   color: #16141f;
   line-height: 1.8;
}

/* Footer */

.footer {
  padding: 28px 0 44px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted-2);
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

/* Responsive */

@media (max-width: 980px) {
  .hero-grid,
  .about-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: 440px;
  }
}

@media (max-width: 850px) {
  .project-detail-layout {
    grid-template-columns: 1fr;
  }

  .carousel-track {
    height: 340px;
  }
}

@media (max-width: 760px) {
  .container,
  .site-header {
    width: min(100% - 28px, var(--container));
  }

  .site-header {
    top: 10px;
    border-radius: 26px;
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    padding: 72px 0 52px;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 14vw, 4.2rem);
  }

  .hero-panel {
    min-height: 360px;
  }

  .floating-card {
    display: none;
  }

  .section {
    padding: 62px 0;
  }

  .projects-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}
.project-preview {
  min-height: 180px;
}

.project-preview img {
  display: block;
}
body.dark {
  --text: #f5f5f7;
  --muted: #b6b6c9;
  --muted-2: #8e8ea0;
  --line: rgba(255, 255, 255, 0.08);
  --card: rgba(30, 30, 40, 0.6);
  --card-strong: rgba(30, 30, 40, 0.85);

  background:
    radial-gradient(circle at 20% 10%, rgba(124, 58, 237, 0.25), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(96, 165, 250, 0.2), transparent 40%),
    radial-gradient(circle at 70% 80%, rgba(244, 114, 182, 0.15), transparent 45%),
    linear-gradient(180deg, #0e0e13 0%, #12121a 100%);
}
body.dark .site-header,
body.dark .floating-card,
body.dark .btn-secondary,
body.dark .about-tags span {
  background: rgba(25, 25, 35, 0.88);
  border-color: rgba(255, 255, 255, 0.12);
}

body.dark .btn-secondary,
body.dark .about-tags span,
body.dark .floating-card strong {
  color: var(--text);
}

body.dark .floating-card span {
  color: var(--muted);
}
body.dark .carousel,
body.dark .case-overview {
  background: rgba(28, 28, 40, 0.9);
  border-color: rgba(255, 255, 255, 0.12);
}

body.dark .case-overview h2 {
  color: #ffffff;
}

body.dark .case-overview p {
  color: #b6b6c9;
}

body.dark .carousel-btn {
  background: white;
  color: black;
}

body.dark .carousel-btn:hover {
  background: var(--violet);
  color: white;
}

/* Optional: smoother transition */
body {
  transition: background 0.3s ease, color 0.3s ease;
}

.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);

  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);

  display: grid;
  place-items: center;

  cursor: pointer;
  transition: 0.3s ease;
  position: relative;
}

.theme-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(91, 33, 182, 0.15);
}

/* Icons */

.theme-toggle .icon {
  position: absolute;
  width: 18px;
  height: 18px;
  transition: 0.3s ease;
}

/* Sun */
.sun {
  background: radial-gradient(circle, #facc15 60%, transparent 61%);
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.6);
  border-radius: 50%;
}

/* Moon */
.moon {
  background: #cbd5f5;
  border-radius: 50%;
  transform: translateX(6px);
  opacity: 0;
}

/* Dark mode state */
body.dark .sun {
  opacity: 0;
  transform: rotate(90deg);
}

body.dark .moon {
  opacity: 1;
  transform: translateX(0);
}

/* Dark mode button */
body.dark .theme-toggle {
  background: rgba(30, 30, 40, 0.85);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;

  color: var(--muted-2);
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a {
  color: var(--muted);
  font-weight: 600;
  transition: 0.2s ease;
}

.footer-links a:hover {
  color: var(--violet-dark);
}

.back-to-top {
  font-weight: 600;
}

@media (max-width: 760px) {
  .site-header .logo a.logo span {
    display: none;
  }

  .site-header {
    flex-direction: row;
    align-items: center;
  }

  .back-to-top {
    display: none;
  }

  .footer-inner {
    justify-content: center;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
    flex-wrap: wrap;
  }
}
