/* ====== Base ====== */
:root {
  /* Light theme (used when [data-theme="light"]) */
  --bg: #0b0b10;
  --text: #f2f3f5;
  --muted: #b1b6c6;
  --brand: #5b6cff;
  --card: #14151c;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --radius: 18px;
}

[data-theme="light"] {
  --bg: #ffffff;
  --text: #1a1a1a;
  --muted: #6b7280;
  --brand: #5b6cff;
  --card: #f6f7fb;
  --shadow: 0 10px 30px rgba(10, 10, 10, .07);
}

* {
  box-sizing: border-box
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

img {
  max-width: 100%;
  display: block
}

/* ====== Layout ====== */
.container {
  max-width: 1600px;
  margin-inline: auto;
  padding: 0 20px
}

h1 {
  font-size: clamp(32px, 5vw, 56px);
  margin: 10px 0 16px
}

h2 {
  font-size: clamp(24px, 3.6vw, 36px);
  margin: 0 0 20px
}

h4 {
  margin: 6px 0 12px;
  font-size: 18px
}

p {
  line-height: 1.6;
  color: var(--muted)
}

.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  box-shadow: var(--shadow);
}

.btn.ghost {
  background: transparent;
  color: var(--brand);
  border: 2px solid var(--brand)
}

.site-header {
  position: sticky;
  top: 0;
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  backdrop-filter: saturate(120%) blur(8px);
  z-index: 10;
  border-bottom: 1px solid rgba(127,127,127,.18);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px
}

.logo {
  font-weight: 800;
  text-decoration: none;
  color: #fff;
  letter-spacing: .5px
}

.logo span {
  background: #000;
  color: #fff;
  padding: 2px 6px;
  border-radius: 8px;
  margin-right: 6px
}

[data-theme="light"] .logo {
  color: #000;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  margin-left: 18px
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 24px
}

/* ====== Hero ====== */
.hero {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 24px;
  align-items: center;
  min-height: 68vh
}

.hero .eyebrow {
  letter-spacing: 2px;
  font-weight: 700;
  color: #9aa0ad
}

.hero .subtitle {
  max-width: 38ch
}

.hero .cta-row {
  margin-top: 16px;
  display: flex;
  gap: 12px
}

.hero-visual {
  position: relative;
  isolation: isolate
}

.hero-visual .shape {
  position: absolute;
  inset: auto 0 0 0;
  height: 78%;
  background: #2a2d3a;
  border-radius: 24px 24px 0 0;
  transform: skewY(-6deg);
  z-index: -1;
  box-shadow: var(--shadow);
}

.hero-visual img {
  width: min(420px, 90%);
  margin-left: auto;
  border-radius: 16px;
  box-shadow: var(--shadow)
}

/* ====== About ====== */
.about {
  padding: 60px 0
}

.timeline {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 14px;
  margin-top: 28px
}

.titem {
  background: var(--card);
  padding: 12px;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow)
}

.tdate {
  display: block;
  font-weight: 700
}

.tlabel {
  font-size: 14px;
  color: var(--muted)
}

/* ====== Projects ====== */
.projects {
  padding: 40px 0
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px
}

.card-link {
  text-decoration: none;
  color: inherit
}

.card-icon {
  width: 84px;
  height: auto
}

.card .meta {
  font-weight: 700;
  color: #111
}

.card .desc {
  margin: .35rem 0 .25rem
}

.card .tag {
  font-weight: 700
}

/* Button-style project titles */
.card h3 {
  display: inline-block;
  background: var(--brand);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px 0;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(91, 108, 255, 0.3);
}

.card h3:hover {
  background: #4a5bff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(91, 108, 255, 0.4);
}

/* ====== Skills ====== */
.skills {
  padding: 40px 0
}

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

.skill-columns ul {
  list-style: none;
  margin: 0;
  padding: 0
}

.skill-columns li {
  background: var(--card);
  border-radius: 12px;
  box-shadow: var(--shadow);
  margin: 8px 0;
  padding: 10px 12px
}

/* ====== Contact ====== */
.contact {
  padding: 40px 0 70px;
  text-align: center
}

.socials {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 16px
}

.socials a {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow)
}

/* ====== Footer ====== */
.site-footer {
  border-top: 1px solid rgba(127,127,127,.18);
  padding: 20px 0;
  color: var(--muted)
}

/* ====== Theme toggle button ====== */
.theme-toggle {
  border: 0;
  background: #000;
  color: #fff;
  height: 28px;
  padding: 0 8px;
  border-radius: 8px;
  display: inline-grid;
  place-items: center;
  margin-left: 12px;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.theme-toggle:hover {
  filter: brightness(1.05);
}

[data-theme="light"] .theme-toggle {
  background: #000;
  color: #fff;
}

.site-footer p {
  margin: 0
}

/* ====== Responsive ====== */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  body {
    margin: 12px;
  }

  .timeline {
    grid-template-columns: repeat(2, 1fr)
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 24px
  }

  .skill-columns {
    grid-template-columns: 1fr
  }

  .nav-toggle {
    display: block
  }

  .nav-links {
    position: absolute;
    right: 20px;
    top: 62px;
    background: var(--bg);
    border: 1px solid rgba(127,127,127,.18);
    border-radius: 12px;
    padding: 10px 12px;
    display: none;
    flex-direction: column;
    gap: 8px;
    box-shadow: var(--shadow)
  }

  .nav-links a {
    margin: 0
  }

  .nav-links.open {
    display: flex
  }

  /* Mobile screenshot layout - stack text below image */
  .screenshot-item {
    flex-direction: column;
    gap: 16px;
  }

  .screenshot-item img {
    width: 100%;
    max-width: 100%;
  }
}


/* Extra styling for social icons */
.socials {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
}

.socials a {
  color: #333;
  transition: color 0.3s ease;
  font-size: 2rem;
  text-decoration: none;
}

.socials a:hover {
  color: #0077b5;
  /* default hover blue */
}

.socials a[aria-label="Instagram"]:hover {
  color: #E1306C;
}

.socials a[aria-label="Telegram"]:hover {
  color: #0088cc;
}

.socials a[aria-label="WhatsApp"]:hover {
  color: #25D366;
}

.socials a[aria-label="GitHub"]:hover {
  color: #333;
}

.socials a[aria-label="LinkedIn"]:hover {
  color: #0077b5;
}

.socials a[aria-label="Email"]:hover {
  color: #EA4335;
}

/* ====== Fix: Remove underline from cards ====== */
.card,
.card:link,
.card:visited {
  text-decoration: none;
  color: inherit;
}
/* ====== Screenshots layout ====== */



.screenshot-grid figure {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin: 0;
  background: var(--card);
  padding: 12px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}



.screenshot-grid figcaption {
  font-size: .95rem;
  line-height: 1.5;
  color: var(--muted);
}
.screenshot-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 24px;
}

.screenshot-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--card);
  padding: 16px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.screenshot-item img {
  width: 640px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}

.screenshot-desc {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
}
.btn svg {
  margin-right: 6px;
}


