:root {
  --bg: #050816;
  --bg-alt: #0b1020;
  --card-bg: #0f172a;
  --card-bg-alt: #111827;
  --border-subtle: rgba(148, 163, 184, 0.25);
  --text: #e5e7eb;
  --text-muted: #9ca3af;
  --accent: #38bdf8;
  --accent-strong: #a855f7;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.8);
  --nav-height: 68px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  background: radial-gradient(
      circle at 0% 0%,
      rgba(56, 189, 248, 0.12),
      transparent 55%
    ),
    radial-gradient(
      circle at 100% 100%,
      rgba(168, 85, 247, 0.12),
      transparent 55%
    ),
    var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to bottom,
    rgba(5, 8, 22, 0.9),
    rgba(5, 8, 22, 0.7)
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.navbar {
  max-width: 1120px;
  margin: 0 auto;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1.25rem;
}

.nav-links {
  display: flex;
  gap: 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  transition: 0.2s;
}

.nav-link:hover {
  color: var(--text);
  background: rgba(15, 23, 42, 0.7);
  transform: translateY(-1px);
}

.nav-link.active {
  color: #0b1020;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.4);
}

.hero-section {
  position: relative;
  padding: 3.5rem 1.25rem 4.5rem;
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
}

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 2.5rem;
  align-items: flex-start;
  position: relative;
}

.hero-particles {
  position: absolute;
  inset: 0;
  opacity: 0.7;
  z-index: 0;
}

/* ====== YG BRAND LOGO ====== */

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #38bdf8, #a855f7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.05rem;
  color: #0b1020;
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.55);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brand-mark:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.85);
}

/* Text */
.brand-text {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #e4e4e7;
}

.brand-text span {
  color: var(--accent);
}

/* Main intro box */
.hero-main {
  padding: 1.8rem 1.9rem;
  background: linear-gradient(
    to bottom,
    rgba(15, 23, 42, 0.95),
    rgba(15, 23, 42, 0.9)
  );
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.hero-equal {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 2.5rem;
  align-items: stretch;
}

.hero-main,
.hero-contact-card {
  height: 100%;
}

.hero-contact-card .contact-online-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-online-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-grid-equalize {
  display: grid;
  grid-template-columns: 3fr 2fr;
  align-items: stretch;
}

.hero-eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--accent);
  letter-spacing: 0.18em;
  margin-bottom: 0.9rem;
}

.hero-title {
  font-size: clamp(2.2rem, 3.2vw, 2.8rem);
  margin: 0 0 0.8rem;
}

.hero-title .accent {
  background: linear-gradient(120deg, var(--accent), var(--accent-strong));
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.hero-actions {
  margin-top: 1.6rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.2rem;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 500;
  font-size: 0.95rem;
  transition: 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #020617;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.55);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: var(--text);
}

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

.hero-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.contact-online-card {
  background: linear-gradient(
    to bottom right,
    rgba(15, 23, 42, 0.96),
    rgba(15, 23, 42, 0.94)
  );
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 22px;
  padding: 1.8rem;
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.25);
  backdrop-filter: blur(16px);
  min-height: 360px;
}

/* Title */
.contact-title {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* List */
.contact-online-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.3rem;
  display: grid;
  gap: 0.7rem;
}

.contact-online-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.15rem;
}

.contact-online-list i {
  font-size: 1.5rem;
}

[class^="devicon-"],
[class*=" devicon-"] {
  color: inherit !important;
}

.cta-buttons {
  display: grid;
  gap: 0.8rem;
}

.section {
  padding-inline: 1.25rem;
}

.section-padded {
  padding-block: 4rem;
}

.section-header {
  max-width: 1120px;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.section-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.45rem;
}

.section-title {
  font-size: 2.2rem;
  margin: 0 0 0.5rem;
}

.section-subtitle {
  max-width: 700px;
  margin: 0.3rem auto 0;
  color: var(--text-muted);
  font-size: 1rem;
}

.skills-section {
  padding: 100px 1.25rem;
  text-align: center;
  color: #fff;
}

/* Heading */
.skills-heading {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 40px;
  color: #1dcd9f;
}

.main-skills-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 35px;
  justify-items: center;
  padding: 30px;
}

.main-skill {
  background: #111;
  border: 1px solid #1dcd9f;
  padding: 25px;
  border-radius: 14px;
  width: 170px;
  text-align: center;
  transition: 0.3s ease;
  box-shadow: 0 0 20px rgba(29, 205, 159, 0.25);
}

.main-skill:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 32px rgba(29, 205, 159, 0.55);
}

.main-skill i {
  font-size: 70px !important;
  margin-bottom: 10px;
}

.main-skill span {
  font-size: 20px;
  font-weight: 600;
}

.skills-detailed-grid {
  max-width: 1120px;
  margin: 3rem auto 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.skill-detailed-card {
  position: relative;
  padding: 1.6rem;
  border-radius: 16px;
  background: linear-gradient(to bottom right, #0f172a, #0b1020);
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
  transition: 0.3s ease;
}

.skill-detailed-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 32px rgba(56, 189, 248, 0.45);
}

.skill-detailed-card h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--accent);
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.skill-detailed-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  line-height: 1.65;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.skill-bar {
  position: absolute;
  left: 0;
  top: 0;
  width: 6px;
  height: 100%;
  border-radius: 6px 0 0 6px;
}

.skill-bar-blue {
  background: linear-gradient(to bottom, #60a5fa, #3b82f6);
}
.skill-bar-purple {
  background: linear-gradient(to bottom, #a855f7, #7e22ce);
}
.skill-bar-green {
  background: linear-gradient(to bottom, #34d399, #059669);
}

.experience-section {
  padding: 4rem 1.25rem;
  background: radial-gradient(
      circle at 0 0,
      rgba(56, 189, 248, 0.06),
      transparent 60%
    ),
    var(--bg-alt);
}

.timeline {
  max-width: 1120px;
  margin: 0 auto;
  position: relative;
  padding-left: 1rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-strong));
  opacity: 0.4;
}

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
}

.timeline-badge {
  position: absolute;
  left: -1px;
  top: 0.7rem;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.7);
}

.timeline-card {
  margin-left: 2.5rem;
  padding: 1.25rem 1.3rem;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
}

.timeline-card header h3 {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
}

.timeline-meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.timeline-card ul {
  margin: 0.7rem 0;
  padding-left: 1.15rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}

.timeline-card li {
  margin-bottom: 0.35rem;
}

.tech-line {
  margin: 0;
  font-size: 0.86rem;
  color: #cbd5f5;
}

.cards-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.project-card,
.blog-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 1.3rem;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-soft);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  overflow: hidden;
}

.project-card::before,
.blog-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  opacity: 0;
  background: radial-gradient(
    circle at 0 0,
    rgba(56, 189, 248, 0.28),
    transparent 55%
  );
  transition: 0.3s ease;
}

.project-card:hover::before,
.blog-card:hover::before {
  opacity: 1;
}

.card-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--accent);
}

.project-card h3,
.blog-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.card-meta {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.project-card p,
.blog-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.proprietary-note {
  font-size: 0.78rem;
  margin-top: 0.2rem;
  color: #fbbf24;
}

.proprietary-note i {
  margin-right: 0.25rem;
}

.card-link {
  margin-top: 0.3rem;
  font-size: 0.86rem;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.card-link:hover {
  text-decoration: underline;
}

.contact-section {
  padding: 4rem 1.25rem;
}

.contact-layout {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  padding-top: 2rem;
}

.contact-form {
  width: 100%;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 20px;
  padding: 2rem 2rem 2.3rem;
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.15);
  backdrop-filter: blur(8px);
}

/* Form heading */
.contact-form h3 {
  font-size: 1.35rem;
  margin: 0 0 1.2rem;
  text-align: center;
  color: var(--accent);
  letter-spacing: 0.03em;
}

/* Two-column row */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

/* Single field styling */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

/* Labels */
.form-field label {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Inputs + textareas */
.form-field input,
.form-field textarea {
  background: rgba(30, 41, 59, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font-size: 1rem;
  color: var(--text);
  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.35);
}

/* Textarea spacing */
textarea {
  min-height: 140px;
  resize: vertical;
}

/* Button spacing fixed */
.contact-form button {
  margin-top: 1.2rem;
  padding: 0.85rem 1rem;
  font-size: 1rem;
}

/* Hint text */
.form-hint {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 1.6rem 1.3rem 2rem;
  }
}

.contact-online-card {
  background: radial-gradient(
      circle at 0 0,
      rgba(56, 189, 248, 0.18),
      transparent 60%
    ),
    linear-gradient(
      to bottom right,
      rgba(15, 23, 42, 0.96),
      rgba(15, 23, 42, 0.94)
    );
  border-radius: 20px;
  padding: 2rem 1.6rem;
  border: 1px solid rgba(56, 189, 248, 0.55);
  box-shadow: 0 0 35px rgba(56, 189, 248, 0.35);
  backdrop-filter: blur(16px);
  min-height: 350px;
}

.contact-title {
  margin: 0 0 1.2rem;
  font-size: 1.25rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  text-align: center;
}

.contact-online-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.4rem;
  display: grid;
  gap: 0.65rem;
}

.contact-online-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: 4px;
}

.contact-online-list i {
  width: 22px;
  text-align: center;
  font-size: 1.35rem; /* bigger icons */
}

.contact-online-list a {
  text-decoration: none;
  color: var(--text);
}

.contact-online-list a:hover {
  color: var(--accent);
}

/* Buttons */
.cta-buttons {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.cta-buttons .btn-full {
  width: 100%;
}

.site-footer {
  margin-top: 4rem;
  padding: 1.5rem 1rem 2rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.blog-thumb {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.back-to-top {
  position: fixed;
  right: 1.3rem;
  bottom: 1.4rem;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: radial-gradient(circle at 0 0, rgba(56, 189, 248, 0.3), #020617);
  border: 1px solid rgba(148, 163, 184, 0.45);
  color: var(--text);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(15, 23, 42, 0.9);
  opacity: 0;
  visibility: hidden;
  transition: 0.2s ease;
  z-index: 40;
}
.ping-icon {
  position: relative;
  font-size: 1.4rem !important;
  color: #ff3b3b !important;
  text-shadow: 0 0 10px rgba(255, 50, 50, 0.9), 0 0 20px rgba(255, 50, 50, 0.7);
}

.ping-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  transform: translate(-50%, -50%) scale(1);
  border-radius: 50%;
  border: 3px solid rgba(255, 60, 60, 0.9);
  animation: pingNeon 1.4s infinite ease-out;
  opacity: 0.9;
}

@keyframes pingNeon {
  0% {
    transform: translate(-50%, -50%) scale(0.4);
    opacity: 1;
  }
  70% {
    transform: translate(-50%, -50%) scale(2.2);
    opacity: 0;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.4);
    opacity: 0;
  }
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .main-skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero-sidebar {
    order: -1;
  }

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

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .main-skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-online-card {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: absolute;
    right: 1.25rem;
    top: var(--nav-height);
    background: rgba(15, 23, 42, 0.97);
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
    padding: 0.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    align-items: flex-start;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.96);
    transform-origin: top right;
    transition: 0.18s ease;
  }

  .nav-links.show {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .main-skills-grid {
    grid-template-columns: 1fr;
  }

  .timeline-card {
    margin-left: 1.7rem;
  }
}
