* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--bg-dark);
  color: var(--text-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

:root {
  --bg-dark: linear-gradient(180deg, #0f1720 0%, #0b1220 100%);
  --bg-light: linear-gradient(180deg, #f7f9fc 0%, #eaf2fb 100%);
  --text-dark: #e6eef6;
  --text-light: #071722;
  --muted-dark: rgba(230, 238, 246, 0.88);
  --muted-light: rgba(10, 20, 30, 0.64);
  --panel-bg-dark: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  --panel-bg-light: #ffffff;
  --panel-shadow-dark: 0 10px 30px rgba(2, 6, 12, 0.45);
  --panel-shadow-light: 0 8px 22px rgba(10, 20, 40, 0.06);
  --brand-border-dark: rgba(255, 255, 255, 0.08);
  --brand-border-light: rgba(10, 20, 30, 0.06);
  --border-dark: rgba(255, 255, 255, 0.06);
  --border-light: rgba(10, 20, 30, 0.08);
  --primary: #1f6fd4;
  --accent: #0f66b3;
  --bg: var(--bg-dark);
  --text: var(--text-dark);
  --muted: var(--muted-dark);
  --panel-bg: var(--panel-bg-dark);
  --panel-shadow: var(--panel-shadow-dark);
  --brand-border: var(--brand-border-dark);
  --border: var(--border-dark);
}

.theme-light {
  --bg: var(--bg-light);
  --text: var(--text-light);
  --muted: var(--muted-light);
  --panel-bg: var(--panel-bg-light);
  --panel-shadow: var(--panel-shadow-light);
  --brand-border: var(--brand-border-light);
  --border: var(--border-light);
  --primary: #10507a;
  --accent: #0f66b3;
  --text-dark: var(--text-light);
  --muted-dark: var(--muted-light);
  --panel-bg-dark: var(--panel-bg-light);
  --panel-shadow-dark: var(--panel-shadow-light);
  --brand-border-dark: var(--brand-border-light);
  --border-dark: var(--border-light);
}

.theme-light h1,
.theme-light h2,
.theme-light h3,
.theme-light h4,
.theme-light h5,
.theme-light .section-title,
.theme-light .hero-title,
.theme-light .project-body h3,
.theme-light .contact-info h4,
.theme-light .skill-tags li {
  color: var(--text-light) !important;
}

.theme-light .section-title {
  color: var(--text-light) !important;
}

.theme-light .hero-sub {
  color: rgba(10, 20, 30, 0.64) !important;
}

body.theme-dark {
  background: var(--bg-dark);
  color: var(--text-dark);
}

body.theme-light {
  background: var(--bg-light);
  color: var(--text-light);
}

.brand {
  color: inherit;
  border: 2px solid var(--brand-border-dark);
}

.theme-light .brand {
  border-color: var(--brand-border-light);
}

.nav-list .nav-item a {
  color: var(--muted-dark);
  text-decoration: none;
}

.theme-light .nav-list .nav-item a {
  color: var(--muted-light);
}

.nav-list .nav-item a:hover,
.nav-list .nav-item.active a {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.panel {
  background: var(--panel-bg-dark);
  box-shadow: var(--panel-shadow-dark);
  color: var(--text-dark);
}

.theme-light .panel {
  background: var(--panel-bg-light);
  box-shadow: var(--panel-shadow-light);
  color: var(--text-light);
}

.theme-toggle {
  margin-left: 8px;
  background: transparent;
  border: 2px solid var(--border-dark);
  color: inherit;
  font-size: 1rem;
  padding: 8px 10px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.theme-light .theme-toggle {
  border-color: var(--border-light);
}

.theme-toggle .fa {
  transition: transform .18s ease, opacity .18s ease;
}

.theme-toggle.active .fa {
  transform: rotate(18deg);
}


#site {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 20px;
}

#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  transition: background-color .35s ease, box-shadow .35s ease, transform .25s ease;
  pointer-events: auto;
}

.header-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 20px;
}

.brand {
  font-family: "Source Sans Pro", sans-serif;
  font-weight: 900;
  font-size: 1.05rem;
  color: inherit;
  padding: 8px 14px;
  border-radius: 8px;
  border: 2px solid var(--brand-border-dark);
}

.nav {
  margin-left: auto;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 20px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-list .nav-item a {
  color: var(--muted-dark);
  font-weight: 700;
  text-transform: uppercase;
  font-family: "Source Sans Pro", sans-serif;
  font-size: 0.85rem;
  padding: 8px 6px;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}

.nav-list .nav-item a:hover,
.nav-list .nav-item.active a {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.header--transparent {
  background: linear-gradient(180deg, rgba(3, 7, 12, 0.12), rgba(3, 7, 12, 0.06));
  box-shadow: none;
}

.header--solid {
  background: rgba(3, 7, 12, 0.95);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: var(--text-dark);
  font-size: 1.15rem;
  padding: 8px;
  margin-left: 10px;
}

.hero {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(circle at 20% 20%, #142030, #0b1220 85%);
  overflow: hidden;
}

body.scrolled .hero {
  opacity: 0.5;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: .6;
  pointer-events: none;
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  z-index: 2;
}

.hero-title {
  font-family: "Source Sans Pro", sans-serif;
  font-weight: 900;
  font-size: 3.6rem;
  margin: 0 0 12px;
  color: var(--text-dark);
  letter-spacing: 0.01em;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.6);
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--muted-dark);
  margin: 0 0 28px;
}

.hero-cta {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 10px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  color: var(--text-dark);
  font-weight: 700;
  text-decoration: none;
  background: transparent;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.hero-cta:hover {
  transform: translateY(-4px);
  background: rgba(124, 192, 255, 0.08);
  box-shadow: 0 6px 28px rgba(7, 10, 15, 0.4);
}

.scroll-hint {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 20px;
  color: var(--muted-dark);
  font-size: 1.05rem;
  background: transparent;
  padding: 10px;
  border-radius: 50%;
  transition: transform .25s ease, opacity .25s ease;
}

.scroll-hint:hover {
  transform: translateX(-50%) translateY(-6px);
}

main#main {
  transform: translateY(100vh);
  transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

.panel {
  background: var(--panel-bg-dark);
  border-radius: 12px;
  padding: 36px;
  margin: 28px 0;
  box-shadow: var(--panel-shadow-dark);
  color: var(--text-dark);
  width: calc(100% + 40px);
  margin-left: -20px;
}

.panel--wide {
  width: calc(100% + 40px);
  margin-left: -20px;
  border-radius: 0;
  padding: 40px;
}

.section-title {
  font-family: "Source Sans Pro", sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #d8e8ff;
  text-align: center;
  margin: 0 0 18px;
  font-size: .95rem;
}

.about-inner {
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.profile img {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.about-content {
  max-width: 680px;
}

.skill-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.skill-tags li {
  background: rgba(255, 255, 255, 0.03);
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 700;
  color: var(--text-dark);
}

.skill-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.skill-tags li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.skill-tags .icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  position: relative;
}

.skill-tags .icon-wrap img.inline-icon,
.skill-tags .icon-wrap i {
  width: 22px;
  height: 22px;
  display: block;
}

.skill-tags .icon-wrap img.inline-icon {
  filter: invert(1) brightness(2) saturate(0.8);
}

.skill-tags .icon-wrap::after {
  content: attr(data-title);
  position: absolute;
  bottom: -36px;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: rgba(7, 20, 40, 0.98);
  color: #d8e8ff;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 0.78rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s ease, transform .12s ease;
}

.skill-tags .icon-wrap:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.theme-light .skill-tags .icon-wrap::after {
  background: rgba(255, 255, 255, 0.98);
  color: var(--text-light);
  box-shadow: 0 6px 18px rgba(10, 20, 30, 0.06);
}

.theme-light .skill-tags .icon-wrap img.inline-icon {
  filter: none;
}

.tech-item::after {
  background: rgba(7, 20, 40, 0.98);
  color: #d8e8ff;
}

.theme-light .tech-item::after {
  background: rgba(255, 255, 255, 0.98);
  color: var(--text-light);
  box-shadow: 0 6px 18px rgba(10, 20, 30, 0.06);
}

.theme-light .skill-tags li {
  background: rgba(10, 20, 30, 0.04);
  color: var(--text-light);
  border: 1px solid rgba(10, 20, 30, 0.06);
}

.theme-light .skill-tags .icon-wrap {
  background: rgba(10, 20, 30, 0.03);
}

.theme-light .skill-tags .icon-wrap::after {
  background: rgba(255, 255, 255, 0.98);
  color: var(--text-light);
  box-shadow: 0 6px 18px rgba(10, 20, 30, 0.06);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 12px;
  margin-top: 16px;
  justify-items: center;
  align-items: center;
}

.tech-item {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: #cfe6ff;
  position: relative;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease;
}

.tech-item i,
.tech-item .tech-svg {
  font-size: 2rem;
  width: 40px;
  height: 40px;
}

.tech-item img.tech-svg {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}

.tech-item:hover {
  transform: translateY(-6px);
  background: linear-gradient(180deg, rgba(124, 192, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.tech-item::after {
  content: attr(data-title);
  position: absolute;
  bottom: -34px;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: rgba(7, 20, 40, 0.98);
  color: #d8e8ff;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 0.78rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s ease, transform .12s ease;
}

.tech-item:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width:480px) {
  .tech-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .tech-item {
    width: 60px;
    height: 60px;
  }

  .tech-item i,
  .tech-item .tech-svg {
    font-size: 1.5rem;
  }
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.project-card {
  transform: translateY(0);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  position: relative;
}

.project-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 25px 60px rgba(31, 111, 212, 0.25);
}

.project-card img {
  transition: transform 0.4s ease;
}

.project-card:hover img {
  transform: scale(1.06);
}


.project-media {
  background: #000;
  display: block;
  width: 100%;
  height: 320px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-media img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.project-body {
  padding: 18px;
}

.meta {
  color: #9fb7d8;
  font-size: .82rem;
  display: block;
  margin-bottom: 6px;
}

.project-body h3 {
  margin: .25rem 0 8px;
  color: var(--text-dark);
}

.project-body p {
  color: var(--muted-dark);
  margin: 0 0 12px;
}

.theme-light .project-media {
  background: #f6f8fb;
}

.theme-light .project-body h3 {
  color: #0b1220;
  font-weight: 800;
}

.theme-light .meta {
  color: rgba(10, 20, 30, 0.6);
}

.theme-light .project-card:hover {
  box-shadow: 0 18px 40px rgba(10, 20, 30, 0.08);
  transform: translateY(-8px) scale(1.01);
}

.social-list li .social {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-dark);
}

.theme-light .social-list li .social {
  background: rgba(10, 20, 30, 0.04);
  color: var(--text-light);
}

.social-list li .social:hover {
  transform: translateY(-4px);
  background: linear-gradient(180deg, rgba(15, 102, 179, 0.12), rgba(15, 102, 179, 0.08));
  color: #fff;
}

.theme-light .social-list li .social:hover {
  background: rgba(15, 102, 179, 0.12);
  color: #0b1220;
}

.button {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.button.primary {
  background: linear-gradient(to bottom, #1f6fd4 0%, #0f1720 100%);
  color: #fff;
  border: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.button.primary:hover {
  background: linear-gradient(to bottom, #4da3ff 0%, #003a80 100%);
  box-shadow: 0 0 16px rgba(31, 111, 212, 0.4);
  transform: translateY(-3px);
}



.button.outline {
  background: transparent;
  border: 2px solid var(--border-dark);
  color: var(--text-dark);
}

.theme-light .button.outline {
  border-color: var(--border-light);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 20px;
  align-items: start;
}

.contact-info .contact-item {
  margin-bottom: 24px;
}

.contact-info h4 {
  margin: 0 0 6px;
  color: var(--text-dark);
  font-family: "Source Sans Pro", sans-serif;
  font-size: 1.1rem;
}

.contact-info p {
  margin: 0;
  color: var(--muted-dark);
}

.contact-info a {
  color: var(--accent);
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.social-list {
  list-style: none;
  display: flex;
  gap: 12px;
  padding: 0;
  margin: 20px 0 0;
}

.social-list li .social {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dark);
  font-size: 1.1rem;
  transition: transform .18s ease, background .18s ease;
}

.social-list li .social:hover {
  transform: translateY(-4px);
  background: #234f7a;
}

.contact-form-container h3 {
  margin-top: 0;
  color: var(--text-dark);
  margin-bottom: 24px;
  font-family: "Source Sans Pro", sans-serif;
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  color: #cfe6ff;
}


.form-control {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-dark);
  border-radius: 8px;
  color: var(--text-dark);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.form-control:focus {
  outline: none;
  border-color: #1f6fd4;
  background: rgba(255, 255, 255, 0.08);
}

.form-control::placeholder {
  color: rgba(230, 238, 246, 0.28);
}

.theme-light .form-control {
  background: #ffffff;
  border-color: rgba(10, 20, 30, 0.10);
  color: var(--text-light);
}

.theme-light .form-control::placeholder {
  color: rgba(10, 20, 30, 0.38);
}

.theme-light .form-control:focus {
  box-shadow: 0 6px 18px rgba(16, 24, 32, 0.06);
}

.theme-light .contact-form-container {
  background: transparent;
}

.theme-light .contact-form-container h3 {
  color: var(--text-light) !important;
}

.theme-light .form-label {
  color: rgba(10, 20, 30, 0.88) !important;
}

.theme-light .contact-form-container button[type="submit"],
.theme-light .contact-form-container .button.primary {
  background: linear-gradient(90deg, var(--primary), #083a56);
  color: #fff;
  border: 1px solid rgba(10, 20, 30, 0.06);
}

.theme-light .contact-form-container button[type="submit"]:hover {
  box-shadow: 0 6px 20px rgba(10, 20, 30, 0.08);
}

.theme-light .hero {
  background: radial-gradient(circle at 20% 20%, #f3f7fb, #ffffff 90%);
}

.theme-light .hero::after {
  background: linear-gradient(130deg, rgba(31, 111, 212, 0.06), rgba(0, 0, 0, 0.02));
}

.theme-light .header--solid {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 20px rgba(10, 20, 30, 0.06);
}

.theme-light .button.primary {
  background: linear-gradient(to bottom, var(--primary) 0%, #0f4a80 100%);
  color: #fff;
}


.contact-form-container button[type="submit"] {
  width: 100%;
  margin-top: 10px;
  padding: 14px;
  font-size: 1rem;
  background: linear-gradient(90deg, #1f6fd4, #0f1720);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-form-container button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(31, 111, 212, 0.3);
}

#site-footer {
  text-align: center;
  padding: 28px 0;
  color: var(--muted-dark);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width:980px) {
  .hero-title {
    font-size: 2.6rem;
  }

  .hero-sub {
    font-size: 1rem;
  }

  .nav-list {
    gap: 12px;
  }

  .header-inner {
    padding: 12px 16px;
  }
}

@media (max-width:768px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-form-container {
    margin-top: 20px;
  }

  .contact-info h4 {
    margin: 0 0 6px;
    color: var(--text-dark);
    font-family: "Source Sans Pro", sans-serif;
    font-size: 1.1rem;
  }

  .contact-info p {
    margin: 0;
    color: var(--muted-dark);
  }

  .contact-info a {
    color: var(--accent);
    text-decoration: none;
  }

  position: absolute;
  right: 14px;
  top: 64px;
  flex-direction: column;
  background: rgba(2, 6, 12, 0.95);
  padding: 12px;
  border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.6);
}

.nav-list.open {
  display: flex;
}

.hero {
  padding: 120px 14px 56px;
}

.project-media {
  height: 220px;
}

.profile img {
  width: 160px;
  height: 160px;
}

.panel--wide {
  width: calc(100% + 28px);
  margin-left: -14px;
  padding: 18px;
  border-radius: 10px;
}

.panel {
  width: calc(100% + 28px);
  margin-left: -14px;
  padding: 18px;
  border-radius: 10px;
}
}




.hero {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px 60px;
  position: relative;
  background: radial-gradient(circle at 20% 20%, #142030, #0b1220 90%);
  overflow: hidden;
}



.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(31, 111, 212, 0.15), rgba(0, 255, 204, 0.05));
  animation: gradientMove 10s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes gradientMove {
  0% {
    transform: translate(0%, 0%);
    opacity: 0.6;
  }

  50% {
    transform: translate(4%, -4%);
    opacity: 0.9;
  }

  100% {
    transform: translate(-4%, 4%);
    opacity: 0.7;
  }
}

.hero-title {
  font-family: "Source Sans Pro", sans-serif;
  font-size: 4rem;
  font-weight: 900;
  color: var(--text-dark);
  letter-spacing: 1px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeSlideIn 1s ease-out forwards;
}

@keyframes fadeSlideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-sub {
  font-size: 1.3rem;
  color: var(--muted-dark);
  margin: 16px 0 32px;
  opacity: 0;
  animation: fadeIn 1.2s ease-out 0.5s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.hero-cta {
  border-radius: 12px;
  font-weight: 700;
  background: linear-gradient(to bottom, #1f6fd4 0%, #0f1720 100%);
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.hero-cta:hover {
  background: linear-gradient(to bottom, #4da3ff 0%, #003a80 100%);
  box-shadow: 0 0 25px rgba(31, 111, 212, 0.45);
  transform: translateY(-5px);
}


@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 80px 80px;
  animation: moveParticles 20s linear infinite;
  z-index: 0;
}

@keyframes moveParticles {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 80px 80px;
  }
}

.hero-inner {
  position: relative;
  z-index: 2;
}

html {
  scroll-behavior: smooth;
}

body {
  opacity: 0;
  animation: fadeInPage 1s ease forwards;
}

@keyframes fadeInPage {
  to {
    opacity: 1;
  }
}

.panel.reveal {
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: all 0.8s cubic-bezier(0.17, 0.67, 0.83, 0.67);
}

.panel.reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.panel:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  transform: translateY(-4px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.section-title {
  position: relative;
  color: #b6d9ff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #1f6fd4, #00ffcc);
}

/* ===============================
   PROFESSIONAL PROJECT SHOWCASE
   =============================== */

.projects-list {
  display: flex;
  flex-direction: column;
  gap: 90px;
}

.project-row {
  display: grid;
  grid-template-columns: minmax(260px, 420px) 1fr;
  gap: 56px;
  align-items: center;
}

.project-row.reverse {
  grid-template-columns: 1fr minmax(260px, 420px);
}

.project-row.reverse .project-visual {
  order: 2;
}

/* Screenshot container */
.project-visual {
  display: flex;
  justify-content: center;
}

/* REDUCED HEIGHT */
.project-visual img {
  max-height: 350px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
  transition: transform .35s ease, box-shadow .35s ease;
}

.project-row:hover .project-visual img {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 45px 90px rgba(31, 111, 212, 0.35);
}

.project-content h3 {
  font-size: 1.6rem;
  margin-bottom: 10px;
}

/* Mobile */
@media (max-width: 900px) {

  .project-row,
  .project-row.reverse {
    grid-template-columns: 1fr;
  }

  .project-row.reverse .project-visual {
    order: 0;
  }

  .project-visual img {
    max-height: 300px;
  }
}

/* ===============================
   EXPERIENCE TIMELINE — FINAL
   =============================== */

.experience-timeline {
  position: relative;
  max-width: 900px;
  margin: 60px auto 0;
  display: flex;
  flex-direction: column;
  gap: 70px;
}

/* FULL vertical line — CENTERED */
.experience-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 18px;
  /* EXACT center */
  width: 3px;
  background: linear-gradient(180deg,
      #1f6fd4,
      rgba(31, 111, 212, 0.15));
  border-radius: 2px;
}

/* Each row */
.experience-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  /* marker + card */
  align-items: flex-start;
  position: relative;
}

/* Marker column */
.experience-marker {
  display: flex;
  justify-content: center;
  position: relative;
}

/* DOT — LOCKED ON THE LINE */
.experience-dot {
  width: 16px;
  height: 16px;
  margin-top: 6px;
  background: #1f6fd4;
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(31, 111, 212, 0.18);
  position: relative;
  z-index: 2;
}

/* Card */
.experience-content {
  background: rgba(255, 255, 255, 0.03);
  padding: 26px 28px;
  border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  transition: transform .3s ease, box-shadow .3s ease;
}

.experience-content:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(31, 111, 212, 0.25);
}

/* Header */
.experience-header {
  margin-bottom: 14px;
}

.experience-duration {
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: #9fb7d8;
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}

.experience-company {
  display: block;
  font-weight: 700;
  color: #b6d9ff;
  margin-bottom: 12px;
}

/* List */
.experience-content ul {
  margin: 14px 0 0;
  padding-left: 18px;
}

.experience-content ul li {
  margin-bottom: 8px;
  color: rgba(230, 238, 246, 0.9);
}

/* CTA */
.experience-cta {
  text-align: center;
  margin-top: 50px;
}

/* ===============================
   MOBILE
   =============================== */
@media (max-width: 768px) {
  .experience-item {
    grid-template-columns: 28px 1fr;
  }

  .experience-timeline::before {
    left: 14px;
  }

  .experience-dot {
    margin-top: 4px;
  }
}
/* =====================================
   EXPERIENCE TIMELINE — LIGHT THEME
   ===================================== */

.theme-light .experience-timeline::before {
  background: linear-gradient(
    180deg,
    #1f6fd4,
    rgba(31, 111, 212, 0.12)
  );
}

/* Timeline dot */
.theme-light .experience-dot {
  background: #1f6fd4;
  box-shadow: 0 0 0 6px rgba(31, 111, 212, 0.15);
}

/* Experience card */
.theme-light .experience-content {
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(10, 20, 30, 0.12);
  color: var(--text-light);
}

.theme-light .experience-content:hover {
  box-shadow: 0 22px 50px rgba(31, 111, 212, 0.22);
  transform: translateY(-4px);
}

/* Header text */
.theme-light .experience-duration {
  color: rgba(10, 20, 30, 0.55);
}

.theme-light .experience-company {
  color: #0f3d75;
  font-weight: 700;
}

/* Bullet points */
.theme-light .experience-content ul li {
  color: rgba(10, 20, 30, 0.85);
}
