/* ---------- ROOT VARIABLES ---------- */
* {
  user-select: none;
  -webkit-user-drag: none;
}

:root {
  --bg: #070707;
  --card-bg: rgba(255, 255, 255, 0.03);
  --muted: #bfcfe0;
  --cyan: #4dc3ff;
  --purple: #8b6bff;
  --accent-grad: linear-gradient(90deg, var(--cyan), var(--purple));
  --glass-border: rgba(77, 195, 255, 0.12);
  --glass-border-strong: rgba(77, 195, 255, 0.45);
  --hover-glow: rgba(77, 195, 255, 0.3);
  --font-size: 16px;

  /* Admin-controlled hover variables */
  --skill-hover-bg: rgba(77, 195, 255, 0.03);
  --skill-hover-icon-bg: rgba(77, 195, 255, 0.12);
  --skill-hover-icon-color: #fff;
  --project-hover-bg: rgba(77, 195, 255, 0.03);
  --project-hover-shadow: rgba(77, 195, 255, 0.3);
  --green-dot-color: #00ff80;
}

/* ---------- GLOBAL ---------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg);
  color: #e8f4ff;
  font-size: var(--font-size);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

/* ---------- HOME ---------- */

.home-section {
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* GLOW CIRCLE (subtle like your cards) */
.bg-glow {
  position: absolute;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, var(--accent-soft), transparent 65%);
  right: 8%;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

/* HERO LAYOUT */
.hero {
  width: 100%;
  padding: 0 8%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

/* TEXT */
.hero-text {
  max-width: 520px;
}

.hero-text h1 {
  font-size: 52px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 22px;
}

.hero-text p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 34px;
}

.hero-image {
  position: relative;
  width: 420px;
  height: 420px;
  flex-shrink: 0;
  margin-left: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-circle {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle,
      rgba(77, 195, 255, 0.30),
      rgba(77, 195, 255, 0.05) 65%);
  z-index: 1;
}


/* IMAGE */
.hero-image img {
  position: relative;
  /* ADDED */
  z-index: 2;
  /* ADDED */
  width: 360px;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.35));
}




/* ---------- FIXED BOXES ---------- */
.fixed-box {
  position: absolute;
  left: 24px;
  top: 20px;
  background: #0c121c99;
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--cyan);
  display: inline-flex;
  gap: 8px;
  align-items: center;
  box-shadow: 0 8px 30px rgba(77, 195, 255, 0.06);
  transition: all .25s ease;
  z-index: 120;
}

.green-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green-dot-color);
  box-shadow: 0 0 10px var(--green-dot-color);
}

/* ---------- DATE/TIME ---------- */
#datetime-box {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
  padding: 12px 18px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 20px rgba(77, 195, 255, 0.08);
  transition: all .25s ease;
  z-index: 120;
}

#eng-time {
  font-size: 22px;
  font-weight: 700;
  color: var(--cyan);
}

#eng-date {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- SOCIAL ICONS (left-bottom) ---------- */
.social-icons {
  position: fixed;
  left: 20px;
  bottom: 20px;
  display: flex;
  gap: 12px;
  z-index: 120;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: all .25s ease;
  color: #dfefff;
  text-decoration: none;
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  right: 24px;
  top: 24px;
  z-index: 200;
  transition: all .45s ease;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 20px;
  align-items: center;
}

.navbar a {
  color: #e9f6ff;
  text-decoration: none;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .25s ease;
}

/* Vertical mode (scroll) */
.navbar.vertical {
  top: 50%;
  transform: translateY(-50%);
  right: 24px;
}

.navbar.vertical ul {
  flex-direction: column;
  gap: 14px;
  padding: 8px;
}

.navbar.vertical a {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  border: 1px solid var(--glass-border);
  padding: 0;
}

.navbar.vertical a i {
  font-size: 18px;
  color: #fff;
}

/* ---------- SECTION BASE ---------- */
.section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 6%;
}

/* ---------- ABOUT / SKILLS ---------- */
.about-section {
  padding: 80px 6%;
  background: linear-gradient(180deg, rgba(5, 6, 10, 0.94), rgba(3, 3, 6, 0.98));

}

.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}

.about-title {
  font-size: 34px;
  color: var(--purple);
  margin-bottom: 10px;
}

.about-desc {
  color: var(--muted);
  line-height: 1.6;
  max-width: 500px;
}

.skill-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.skill-card {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 12px;
  background: var(--card-bg);
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: all .28s ease;
  position: relative;
  backdrop-filter: blur(6px);
}

.skill-card .skill-icon {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--cyan);
  background: linear-gradient(180deg, rgba(77, 195, 255, 0.06), rgba(139, 107, 255, 0.06));
  border: 1px solid rgba(77, 195, 255, 0.08);
}

.skill-card h4 {
  font-size: 16px;
  margin-bottom: 6px;
  color: #fff;
}

.skill-card p {
  color: var(--muted);
  font-size: 13px;
}

/* ---------- PROJECTS ---------- */
.projects-section {
  padding: 40px 6%;
  background: linear-gradient(180deg, rgba(6, 6, 8, 0.98), rgba(3, 3, 6, 0.98));
}

.projects-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.projects-header h2 {
  font-size: 40px;
  color: var(--purple);
  text-align: center;
  margin-bottom: 6px;
}

.projects-sub {
  text-align: center;
  color: var(--muted);
  margin-bottom: 18px;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 12px;
}

.project-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  border-radius: 14px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  transition: all .28s ease;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(6px);
}

.project-card .badge {
  position: absolute;
  right: 18px;
  top: 18px;
  background: var(--cyan);
  color: #00141a;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  box-shadow: 0 6px 22px rgba(77, 195, 255, 0.12);
}

.project-title {
  font-size: 20px;
  color: var(--purple);
  margin-bottom: 8px;
}

.project-desc {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 12px;
  line-height: 1.5;
}

.project-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.tag {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(77, 195, 255, 0.12);
  color: var(--cyan);
  background: rgba(255, 255, 255, 0.01);
}

.project-ctas {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn-code {
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 10px 14px;
  border-radius: 10px;
  color: #fff;
  display: inline-flex;
  gap: 8px;
  text-decoration: none;
}

.btn-demo {
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--accent-grad);
  color: #00141a;
  border: none;
  font-weight: 700;
  text-decoration: none;
}

.project-card.extra {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: all .32s ease;
}

.projects-grid.expanded .project-card.extra {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.projects-controls {
  text-align: center;
  margin-top: 8px;
}

.btn-outline {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #fff;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  transition: all .25s ease;
}

/* ---------- CONTACT ---------- */
.contact-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
  padding-top: 20px;
}

.contact-card {
  padding: 28px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(6px);
  transition: all .25s ease;
}

.contact-card h3 {
  color: var(--purple);
  margin-bottom: 16px;
}

.contact-form label {
  display: block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  margin-top: 6px;
}

.contact-actions {
  text-align: right;
  margin-top: 8px;
}

.btn-primary {
  background: var(--accent-grad);
  color: #00141a;
  border: none;
  padding: 12px 18px;
  border-radius: 10px;
  cursor: pointer;
}

.connect-socials {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.connect-socials a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.03);
  color: #dfefff;
  text-decoration: none;
}

.current-status {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- FOOTER ---------- */
.footer {
  text-align: center;
  padding: 20px 0;
  color: var(--muted);
  margin-top: 26px;
}

/* ---------- TOAST ---------- */
.toast {
  position: fixed;
  right: 20px;
  bottom: 90px;
  background: var(--accent-grad);
  color: #00141a;
  padding: 12px 16px;
  border-radius: 10px;
  display: none;
  z-index: 999;
  box-shadow: 0 12px 36px var(--hover-glow);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .hero {
    flex-direction: column-reverse;
    padding-top: 120px;
    text-align: center;
  }

  .hero-text {
    margin-top: 40px;
  }

  .hero-image {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }

  .about-inner {
    grid-template-columns: 1fr;
  }

  .skill-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .contact-inner {
    grid-template-columns: 1fr;
  }

  .navbar {
    right: 14px;
    top: 18px;
  }

  .navbar.vertical {
    right: 14px;
    top: unset;
    bottom: 20px;
    transform: none;
  }

  .navbar.vertical ul {
    flex-direction: row;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 36px;
  }

  .hero-circle {
    width: 300px;
    height: 300px;
  }

  .hero-image img {
    width: 260px;
  }

  .about-boxes {
    display: flex;
    flex-direction: column;
  }

  .project-ctas {
    flex-direction: column;
    width: 100%;
  }

  .btn-code,
  .btn-demo {
    width: 100%;
    justify-content: center;
  }
}

/* ===== ABOUT DESIGN ADD-ON (SAFE, NO OVERRIDES) ===== */
.about-design {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ===== ABOUT TITLE (CENTER TOP) ===== */
.about-main-title {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #8b6bff;
  text-align: center;
  /* FIX */
  width: 100%;
  /* FIX */
}

.about-name {
  font-size: 22px;
  font-weight: 600;
  color: #8b6bff;
  margin-bottom: 4px;
}

.about-intro {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 520px;
}

/* ===== BOX STYLE (CV + BLOG) ===== */
.about-boxes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 420px;
  margin: 14px 0;
}

/* BASE BOX — size, padding, shape (DO NOT TOUCH) */
.about-box {
  height: 54px;
  /* 🔥 important */
  box-sizing: border-box;
  /* 🔥 important */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  color: #e8f4ff;
  background: linear-gradient(180deg,
      rgba(255, 255, 255, 0.02),
      rgba(255, 255, 255, 0.005));
  border: 1px solid rgba(58, 56, 56, 0.486);
  backdrop-filter: blur(6px);
  transition: all .28s ease;
}


/* CV VARIANT — ONLY color changes */
.about-box-cv {
  background: linear-gradient(180deg,
      rgba(77, 195, 255, 0.25),
      rgba(77, 195, 255, 0.05));
  border: 1px solid rgba(77, 195, 255, 0.45);
  color: #e8f4ff;
}

/* HOVER — SAME FOR BOTH */
.about-box:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 0 22px rgba(77, 196, 255, 0.636);
}

.about-desc-2 {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  max-width: 540px;
}

.contact-social-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  /* slightly smaller */
  height: 36px;
  /* slightly smaller */
  margin: 0 3px;
  /* reduce spacing */
  border-radius: 50%;
  background-color: #111;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  /* slightly smaller */
  transition: all 0.3s ease;
}

.contact-social-box:hover {
  transform: scale(1.1);
  box-shadow: 0 0 12px rgba(77, 195, 255, 0.6);
}

.contact-social-box .social-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  font-weight: bold;
  font-size: 14px;
  /* slightly smaller letter inside */
  line-height: 1;
}