:root {
  --bg-main: #080b12;
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.14);

  --brand-blue: #1877f2;
  --brand-blue-light: #4fa3ff;
  --brand-blue-soft: rgba(24, 119, 242, 0.28);

  --text-main: #ffffff;
  --text-muted: #d8e1f0;
  --text-soft: #aab8d6;

  --radius-lg: 30px;
  --radius-md: 22px;
  --transition: 0.35s ease;
}

html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Roboto, sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at top left, rgba(24, 119, 242, 0.35) 0%, transparent 35%),
    radial-gradient(circle at bottom right, rgba(79, 163, 255, 0.22) 0%, transparent 32%),
    linear-gradient(135deg, #05070d 0%, #0b1322 48%, #12081a 100%);
  line-height: 1.65;
  overflow-x: hidden;
}

/* Background Orbs */
.bg-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.6;
}

.orb-1 {
  width: 420px;
  height: 420px;
  top: -80px;
  left: -90px;
  background: rgba(24, 119, 242, 0.42);
  animation: floatOrb 16s ease-in-out infinite;
}

.orb-2 {
  width: 420px;
  height: 420px;
  top: 30%;
  right: -120px;
  background: rgba(79, 163, 255, 0.24);
  animation: floatOrb 18s ease-in-out infinite reverse;
}

.orb-3 {
  width: 360px;
  height: 360px;
  bottom: -100px;
  left: 25%;
  background: rgba(24, 119, 242, 0.18);
  animation: floatOrb 14s ease-in-out infinite;
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -25px) scale(1.08); }
}

/* Navigation */
.site-nav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1100px, calc(100% - 30px));
  z-index: 1000;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 24px;
  background: rgba(10, 17, 30, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 999px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
}

.brand {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 2px;
}

.menu-toggle {
  display: none;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--brand-blue-light);
  text-shadow: 0 0 10px rgba(79, 163, 255, 0.45);
}

/* Hero */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 20px 70px;
}

.hero-content {
  width: min(1100px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-kicker {
  color: #d9e8ff;
  font-size: 1rem;
  letter-spacing: 1px;
  margin-bottom: 18px;
  text-shadow: 0 0 10px rgba(24, 119, 242, 0.18);
}

.hero-text h1 {
  font-size: clamp(3.1rem, 8vw, 6.2rem);
  line-height: 0.95;
  letter-spacing: 12px;
  font-weight: 900;
  margin-bottom: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #d6e6ff 50%, #90bfff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 28px rgba(24, 119, 242, 0.22);
}

.subtitle {
  min-height: 1.6em;
  margin-bottom: 18px;
  color: var(--brand-blue-light);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(24, 119, 242, 0.55);
}

.hero-description {
  max-width: 620px;
  color: #f3f8ff;
  font-size: 1.05rem;
  margin-bottom: 28px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-light));
  color: white;
  box-shadow: 0 0 22px rgba(24, 119, 242, 0.42);
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 34px rgba(24, 119, 242, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
  color: #fff;
}

.btn-secondary:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 163, 255, 0.5);
  box-shadow: 0 12px 30px rgba(79, 163, 255, 0.16);
}

.hero-profile {
  display: flex;
  justify-content: center;
}

.profile-frame {
  width: min(360px, 100%);
  aspect-ratio: 1 / 1;
  padding: 10px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(79, 163, 255, 0.32);
  backdrop-filter: blur(16px);
  box-shadow: 0 0 28px rgba(24, 119, 242, 0.22);
}

.profile-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 20px;
}

/* Social Bar */
.social-glass-bar {
  width: 100%;
}

.glass-line {
  width: 280px;
  max-width: 70%;
  height: 2px;
  margin: 0 0 24px;
  border-radius: 999px;
  background: linear-gradient(to right, transparent, rgba(79, 163, 255, 0.95), transparent);
  box-shadow: 0 0 18px rgba(24, 119, 242, 0.42);
}

.pulse-line {
  animation: pulseGlow 2.2s infinite ease-in-out;
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.65;
    transform: scaleX(1);
    box-shadow: 0 0 10px rgba(24, 119, 242, 0.28);
  }
  50% {
    opacity: 1;
    transform: scaleX(1.05);
    box-shadow: 0 0 24px rgba(24, 119, 242, 0.62);
  }
}

.social-icons {
  display: flex;
  gap: 18px;
  align-items: center;
}

.social-icons a {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(79, 163, 255, 0.22);
  backdrop-filter: blur(12px);
  transition: var(--transition);
}

.social-icons a i {
  font-size: 20px;
}

.social-icons a:hover {
  transform: translateY(-6px) scale(1.08);
  background: rgba(24, 119, 242, 0.2);
  border-color: rgba(79, 163, 255, 0.62);
  box-shadow: 0 10px 24px rgba(24, 119, 242, 0.32);
}

.stagger-icons a {
  opacity: 0;
  transform: translateY(22px) scale(0.92);
}

.stagger-icons.show a {
  animation: staggerReveal 0.6s ease forwards;
}

.stagger-icons.show a:nth-child(1) { animation-delay: 0.08s; }
.stagger-icons.show a:nth-child(2) { animation-delay: 0.18s; }
.stagger-icons.show a:nth-child(3) { animation-delay: 0.28s; }
.stagger-icons.show a:nth-child(4) { animation-delay: 0.38s; }

@keyframes staggerReveal {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.ripple-btn .ripple {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  background: rgba(255, 255, 255, 0.45);
  animation: rippleEffect 0.65s linear;
  pointer-events: none;
}

@keyframes rippleEffect {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Main */
.main-content {
  position: relative;
  z-index: 1;
  padding-bottom: 100px;
}

.container {
  width: min(1100px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  margin-top: 74px;
}

.section h2 {
  margin-bottom: 28px;
  padding-left: 18px;
  border-left: 6px solid var(--brand-blue);
  color: var(--brand-blue-light);
  font-size: clamp(1.9rem, 4vw, 2.4rem);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sub-heading {
  margin: 12px 0 18px;
  color: #d8e4ff;
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 1.5px;
}

/* Glass Card */
.glass-card {
  padding: 34px;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.24);
}

.glass-card p {
  color: var(--text-muted);
}

.glass-card p + p {
  margin-top: 18px;
}

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.timeline-item {
  position: relative;
  padding-left: 28px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 8px;
  left: -6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand-blue-light);
  box-shadow: 0 0 14px rgba(79, 163, 255, 0.65);
}

.timeline-item strong {
  display: block;
  margin-bottom: 4px;
  color: white;
}

.timeline-item span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Projects */
.project-list {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.project-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 30px;
  align-items: center;
  padding: 22px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(79, 163, 255, 0.18);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.22);
  overflow: hidden;
}

a.project-card {
  text-decoration: none;
  transition: var(--transition);
}

a.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(79, 163, 255, 0.55);
  box-shadow: 0 18px 44px rgba(24, 119, 242, 0.14);
}

.project-image-wrap {
  position: relative;
  width: 100%;
}

.project-image-wrap img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 20px;
}

.project-label {
  display: inline-block;
  margin-bottom: 12px;
  color: #9fc2ff;
  font-weight: 800;
  font-size: 0.92rem;
}

.project-info h3 {
  margin-bottom: 12px;
  color: white;
  font-size: clamp(1.35rem, 2.8vw, 2.3rem);
  line-height: 1.18;
}

.project-en {
  color: #f1f6ff;
  margin-bottom: 10px;
}

.project-mm {
  color: #c4d4ef;
}

.demo-note {
  margin-top: 12px;
  color: #7fc1ff;
  font-size: 0.93rem;
}

.coming-soon-card .project-image-wrap img {
  filter: brightness(0.72) blur(0.5px);
}

.coming-soon-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 10px 18px;
  border-radius: 999px;
  color: white;
  font-size: 0.88rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.skill-box {
  padding: 30px 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(79, 163, 255, 0.14);
  text-align: center;
  backdrop-filter: blur(14px);
  transition: var(--transition);
}

.skill-box:hover {
  transform: translateY(-8px);
  border-color: rgba(79, 163, 255, 0.48);
  box-shadow: 0 14px 34px rgba(24, 119, 242, 0.12);
}

.skill-box i {
  font-size: 2.8rem;
  color: var(--brand-blue-light);
  margin-bottom: 16px;
}

.skill-box h3 {
  margin-bottom: 10px;
  color: white;
}

.skill-box p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Portfolio */
.portfolio-grid {
  display: grid;
  gap: 20px;
  margin-bottom: 42px;
}

.grid-sq {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid-flyer {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.gallery-item {
  width: 100%;
  display: block;
  border-radius: 20px;
  border: 1px solid rgba(79, 163, 255, 0.16);
  cursor: pointer;
  filter: grayscale(28%);
  transition: 0.45s ease;
}

.gallery-item:hover {
  transform: scale(1.04);
  filter: grayscale(0%);
  border-color: rgba(79, 163, 255, 0.48);
  box-shadow: 0 16px 40px rgba(24, 119, 242, 0.1);
}

.img-sq {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.img-flyer {
  aspect-ratio: 1 / 1.414;
  object-fit: cover;
}

/* Contact */
.contact-section {
  padding: 56px 24px;
  border-radius: 36px;
  text-align: center;
  background: linear-gradient(135deg, rgba(24, 119, 242, 0.08), rgba(79, 163, 255, 0.06));
  border: 1px solid rgba(79, 163, 255, 0.16);
  backdrop-filter: blur(16px);
}

.contact-copy {
  max-width: 720px;
  margin: 0 auto 28px;
  color: var(--text-muted);
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-light));
  color: white;
  transition: var(--transition);
  box-shadow: 0 10px 24px rgba(24, 119, 242, 0.22);
}

.contact-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(24, 119, 242, 0.28);
}

/* Lightbox */
.lightbox-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.88);
  z-index: 2000;
}

.lightbox-modal.active {
  display: flex;
}

#lightbox-img {
  max-width: min(1000px, 95vw);
  max-height: 88vh;
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.55);
}

.close-btn {
  position: absolute;
  top: 22px;
  right: 24px;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
}

/* Footer */
.site-footer {
  padding: 28px 20px 36px;
  text-align: center;
  color: #a9a9a9;
  font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 34px;
    text-align: center;
  }

  .hero-text {
    align-items: center;
  }

  .glass-line {
    margin-left: auto;
    margin-right: auto;
  }

  .social-icons {
    justify-content: center;
  }

  .project-card {
    grid-template-columns: 1fr;
  }

  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .site-nav {
    top: 14px;
  }

  .nav-inner {
    padding: 14px 16px;
    border-radius: 26px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(8, 11, 18, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
  }

  .nav-links.open {
    display: flex;
  }

  .hero-section {
    padding-top: 120px;
  }

  .hero-text h1 {
    letter-spacing: 6px;
  }

  .subtitle {
    letter-spacing: 2px;
    font-size: 1rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .contact-btn {
    width: 100%;
    justify-content: center;
  }
}
