/* =====================================================
   DESIGN TOKENS
   ===================================================== */
:root {
  --bg:        #05080f;
  --bg-alt:    #080d1a;
  --card:      rgba(255,255,255,0.04);
  --card-hv:   rgba(255,255,255,0.07);
  --border:    rgba(255,255,255,0.08);
  --border-hv: rgba(0,245,255,0.25);
  --text:      #eaeaea;
  --text-2:    #8892a4;
  --text-3:    #5a6478;
  --cyan:      #00f5ff;
  --purple:    #7c3aed;
  --grad:      linear-gradient(135deg, #00f5ff, #7c3aed);
  --shadow:    0 24px 64px rgba(0,0,0,0.55);
  --glow-c:    0 0 32px rgba(0,245,255,0.18);
  --glow-p:    0 0 32px rgba(124,58,237,0.25);
  --trans:     0.3s ease;
  --trans-s:   0.6s cubic-bezier(0.22,1,0.36,1);
  --radius:    16px;
  --radius-sm: 10px;
}

/* =====================================================
   RESET & BASE
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: 'Poppins', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-loading { overflow: hidden; }

img   { max-width: 100%; display: block; }
a     { color: inherit; text-decoration: none; }
ul    { list-style: none; }
button{ cursor: pointer; font-family: inherit; border: none; background: none; }

/* =====================================================
   UTILITY
   ===================================================== */
.container {
  width: min(1200px, 92vw);
  margin-inline: auto;
}

.g-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass {
  background: var(--card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--trans);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,245,255,0.2);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0,245,255,0.35);
}

.btn-ghost {
  border: 1px solid var(--border-hv);
  color: var(--cyan);
  background: transparent;
}
.btn-ghost:hover {
  background: rgba(0,245,255,0.07);
  transform: translateY(-3px);
  border-color: var(--cyan);
}

.btn-block { width: 100%; justify-content: center; }
.btn-sm    { padding: 8px 18px; font-size: 0.85rem; }

/* Spinner inside submit button */
.btn-spinner {
  display: none;
  width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
button.sending .btn-label,
button.sending .fa-paper-plane { display: none; }
button.sending .btn-spinner     { display: inline-block; }

/* =====================================================
   LOADER
   ===================================================== */
#loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.loader-inner { text-align: center; width: 200px; }

.loader-logo {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 24px;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.loader-bar-wrap {
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 12px;
}

.loader-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--grad);
  border-radius: 99px;
  transition: width 0.05s linear;
}

.loader-pct {
  font-size: 0.85rem;
  color: var(--text-2);
  letter-spacing: 1px;
}

/* =====================================================
   CUSTOM CURSOR
   ===================================================== */
#c-dot, #c-ring {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9000;
  transform: translate(-50%, -50%);
  transition-property: background, width, height, border-color;
  transition-duration: 0.2s;
}

#c-dot  { width: 8px; height: 8px; background: var(--cyan); }
#c-ring { width: 36px; height: 36px; border: 1.5px solid rgba(0,245,255,0.5); }

@media (hover: none) {
  #c-dot, #c-ring { display: none; }
}

/* =====================================================
   SCROLL PROGRESS BAR
   ===================================================== */
#scroll-bar {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: var(--grad);
  z-index: 8000;
  transition: width 0.1s linear;
}

/* =====================================================
   NAVBAR
   ===================================================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background var(--trans), box-shadow var(--trans), padding var(--trans);
  padding: 20px 0;
}

.navbar.scrolled {
  background: rgba(5,8,15,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
  padding: 12px 0;
}

.nav-inner {
  width: min(1200px, 92vw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.logo-dot { color: var(--cyan); }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color var(--trans);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--grad);
  border-radius: 2px;
  transition: width var(--trans);
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.nav-cta {
  padding: 8px 20px;
  border: 1px solid var(--border-hv);
  border-radius: 50px;
  color: var(--cyan) !important;
}
.nav-cta:hover { background: rgba(0,245,255,0.07); }
.nav-cta::after { display: none; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--trans);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================================================
   CANVAS
   ===================================================== */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* =====================================================
   SECTION SHARED
   ===================================================== */
.section { padding: 80px 0; }
.section-alt { background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%); }

.sec-header {
  text-align: center;
  margin-bottom: 48px;
}
.sec-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 10px;
}
.sec-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}
.sec-line {
  width: 60px; height: 3px;
  background: var(--grad);
  border-radius: 3px;
  margin: 0 auto 20px;
}
.sec-desc {
  color: var(--text-2);
  max-width: 500px;
  margin: 0 auto;
  font-size: 1rem;
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 110px 4vw 48px;
  position: relative;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 60px;
  align-items: center;
  width: min(1200px, 92vw);
  margin: 0 auto;
}

/* Left text */
.hero-eyebrow {
  font-size: 1rem;
  color: var(--cyan);
  font-weight: 500;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.hero-name {
  font-size: clamp(2.6rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.hero-role-line {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 20px;
  height: 2rem;
  display: flex;
  align-items: center;
}
.typed  { color: var(--cyan); font-weight: 600; }
.caret  { color: var(--cyan); animation: blink 1s step-end infinite; }

.hero-bio {
  font-size: 1.05rem;
  color: var(--text-2);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 32px;
}
.hero-bio strong { color: var(--text); }

.hero-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-socials {
  display: flex;
  gap: 14px;
}
.s-icon {
  width: 42px; height: 42px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-2);
  transition: var(--trans);
}
.s-icon:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0,245,255,0.06);
  transform: translateY(-3px);
}

/* Right visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.h-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0,245,255,0.12);
  animation: ringPulse 4s ease-in-out infinite;
}
.h-ring-1 { width: 300px; height: 300px; animation-delay: 0s; }
.h-ring-2 { width: 370px; height: 370px; animation-delay: 1s; border-color: rgba(124,58,237,0.1); }

.h-img-card {
  width: 260px; height: 260px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid rgba(0,245,255,0.3);
  box-shadow: 0 0 60px rgba(0,245,255,0.12), var(--shadow);
  position: relative;
  z-index: 2;
}
.h-img-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}

.avail-badge {
  position: absolute;
  bottom: 24px; right: -10px;
  background: rgba(5,8,15,0.9);
  border: 1px solid rgba(0,245,255,0.25);
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 3;
  white-space: nowrap;
}
.pulse {
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 50%;
  position: relative;
}
.pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  background: rgba(34,197,94,0.3);
  border-radius: 50%;
  animation: pulseRing 1.5s ease-out infinite;
}

/* Floating cards */
.h-float {
  position: absolute;
  background: rgba(5,8,15,0.88);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  box-shadow: var(--shadow);
  z-index: 4;
  backdrop-filter: blur(12px);
  animation: float 3s ease-in-out infinite;
}
.h-float i { font-size: 1.4rem; }
.h-float strong { display: block; font-size: 0.85rem; }
.h-float small  { color: var(--text-3); display: block; }

.h-float-wp      { top: 8%;  left: -65px; animation-delay: 0s; }
.h-float-wp i    { color: #21759b; }
.h-float-php     { bottom: 22%; left: -55px; animation-delay: 1.2s; }
.h-float-php i   { color: #8892BF; }
.h-float-shopify { bottom: 5%; right: -55px; animation-delay: 1.8s; }
.h-float-shopify i{ color: #96bf48; }
.h-float-react   { top: 8%;  right: -55px; animation-delay: 0.6s; }
.h-float-react i { color: #61DAFB; animation: reactSpin 6s linear infinite; }

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-3);
  letter-spacing: 1px;
  text-transform: uppercase;
  animation: bounce 2s ease-in-out infinite;
}
.scroll-mouse {
  width: 22px; height: 36px;
  border: 2px solid var(--text-3);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.scroll-wheel {
  width: 4px; height: 8px;
  background: var(--cyan);
  border-radius: 2px;
  animation: scrollWheel 2s ease-in-out infinite;
}

/* =====================================================
   ABOUT
   ===================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 64px;
  align-items: start;
}

.about-img-wrap {
  position: relative;
  width: 100%;
  max-width: 340px;
}
.about-img-wrap img {
  width: 100%; height: 420px;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius);
  position: relative;
  z-index: 2;
}
.about-shape {
  position: absolute;
  inset: -16px 16px 16px -16px;
  border: 2px solid rgba(0,245,255,0.2);
  border-radius: var(--radius);
  z-index: 1;
}
.exp-badge {
  position: absolute;
  bottom: -20px; right: -20px;
  background: var(--grad);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  text-align: center;
  z-index: 3;
  color: #fff;
}
.exp-num {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  display: block;
}

.about-p {
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 16px;
}
.about-p strong { color: var(--text); }

.about-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 24px 0 32px;
}
.detail {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-2);
}
.detail i { color: var(--cyan); width: 16px; }
.detail a { color: var(--text-2); transition: color var(--trans); }
.detail a:hover { color: var(--cyan); }

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat-chip {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 12px;
  text-align: center;
  transition: var(--trans);
}
.stat-chip:hover {
  border-color: var(--border-hv);
  transform: translateY(-4px);
  box-shadow: var(--glow-c);
}
.s-num {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cyan);
  line-height: 1;
  margin-bottom: 4px;
}
.s-lbl { font-size: 0.78rem; color: var(--text-2); }

/* =====================================================
   SKILLS
   ===================================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.skill-cat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--trans);
}
.skill-cat:hover { border-color: rgba(0,245,255,0.15); }
.skill-cat-learning { border-color: rgba(124,58,237,0.2); }

.skill-cat-hd {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.skill-cat-hd i  { font-size: 1.2rem; color: var(--cyan); }
.skill-cat-hd h3 { font-size: 1rem; font-weight: 600; }

.skill-items { display: flex; flex-direction: column; gap: 14px; }

.skill-row {
  display: grid;
  grid-template-columns: 28px 1fr 1fr 36px;
  align-items: center;
  gap: 10px;
}
.sk-icon { font-size: 1.1rem; color: var(--text-2); text-align: center; }
.sk-icon.lrn { color: var(--purple); }
.sk-name { font-size: 0.88rem; font-weight: 500; }
.sk-bar  {
  height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 6px;
  overflow: hidden;
}
.sk-fill {
  height: 100%;
  width: 0;
  border-radius: 6px;
  background: var(--grad);
}
.lrn-fill {
  background: linear-gradient(90deg, var(--purple), #a855f7);
}
.sk-pct { font-size: 0.75rem; color: var(--text-3); text-align: right; }

.learning-note {
  margin-top: 18px;
  font-size: 0.82rem;
  color: var(--purple);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* =====================================================
   SERVICES
   ===================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.svc-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
  transition: var(--trans);
  display: flex;
  flex-direction: column;
}
.svc-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    400px circle at var(--mx,50%) var(--my,50%),
    rgba(0,245,255,0.06), transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s;
}
.svc-card:hover::before { opacity: 1; }
.svc-card:hover {
  border-color: var(--border-hv);
  transform: translateY(-6px);
  box-shadow: var(--glow-c);
}
.svc-card-learning:hover { box-shadow: var(--glow-p); border-color: rgba(124,58,237,0.35); }

.svc-icon {
  width: 56px; height: 56px;
  background: rgba(0,245,255,0.08);
  border: 1px solid rgba(0,245,255,0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--cyan);
  margin-bottom: 20px;
  transition: var(--trans);
}
.svc-icon-purple { background: rgba(124,58,237,0.1); border-color: rgba(124,58,237,0.2); color: var(--purple); }
.svc-card:hover .svc-icon { transform: scale(1.1) rotate(-6deg); }

.svc-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 10px; }

.svc-card p  { font-size: 0.9rem; color: var(--text-2); line-height: 1.7; margin-bottom: 18px; }

.svc-list { flex: 1; margin-bottom: 20px; }
.svc-list li {
  font-size: 0.85rem;
  color: var(--text-2);
  padding: 4px 0 4px 18px;
  position: relative;
}
.svc-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-size: 0.75rem;
}
.svc-card-learning .svc-list li::before { color: var(--purple); }

.svc-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(0,245,255,0.1);
  color: var(--cyan);
  border: 1px solid rgba(0,245,255,0.2);
  align-self: flex-start;
}
.svc-badge-purple {
  background: rgba(124,58,237,0.1);
  color: var(--purple);
  border-color: rgba(124,58,237,0.2);
}

/* =====================================================
   PROJECTS
   ===================================================== */
.project-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 40px;
}
.filter-btn {
  padding: 8px 22px;
  border-radius: 50px;
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-2);
  transition: var(--trans);
  background: transparent;
}
.filter-btn:hover, .filter-btn.active {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
}

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

.proj-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--trans);
}
.proj-card:hover {
  border-color: var(--border-hv);
  transform: translateY(-8px);
  box-shadow: var(--shadow);
}

.proj-thumb {
  height: 180px;
  background: var(--g);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.proj-bg-ico {
  font-size: 6rem;
  color: rgba(255,255,255,0.07);
  position: absolute;
  bottom: -12px; right: -12px;
  pointer-events: none;
}
.proj-links {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  opacity: 0;
  transition: var(--trans);
}
.proj-card:hover .proj-links { opacity: 1; }
.proj-links a {
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  transition: var(--trans);
}
.proj-links a:hover { background: var(--cyan); border-color: var(--cyan); color: #000; }

.proj-body { padding: 20px; }
.proj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.proj-tags span {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 50px;
  background: rgba(0,245,255,0.08);
  color: var(--cyan);
  border: 1px solid rgba(0,245,255,0.15);
}
.proj-body h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; }
.proj-body p  { font-size: 0.85rem; color: var(--text-2); line-height: 1.65; }

/* Project client logo in thumbnail */
.proj-client-logo {
  background: rgba(255,255,255,0.93);
  border-radius: 10px;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 130px;
  height: 68px;
  position: relative;
  z-index: 2;
  transition: var(--trans);
}
.proj-client-logo img {
  max-width: 106px;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.proj-card:hover .proj-client-logo { transform: scale(1.04); }

/* Hidden filtered items */
.proj-card.proj-hidden { display: none; }

/* =====================================================
   EXPERIENCE / TIMELINE
   ===================================================== */
.timeline {
  position: relative;
  padding: 20px 0;
}

.tl-track {
  position: absolute;
  left: 50%; top: 0; bottom: 0;
  width: 2px;
  background: rgba(255,255,255,0.06);
  transform: translateX(-50%);
}
.tl-progress {
  width: 100%;
  height: 0%;
  background: var(--grad);
  border-radius: 2px;
  transition: height 0.5s ease;
}

.tl-item {
  display: grid;
  grid-template-columns: 1fr 36px 1fr;
  gap: 0 24px;
  margin-bottom: 48px;
  align-items: start;
}

.tl-dot {
  width: 14px; height: 14px;
  background: var(--cyan);
  border: 3px solid var(--bg);
  border-radius: 50%;
  box-shadow: var(--glow-c);
  z-index: 2;
  margin-top: 20px;
  justify-self: center;
  position: relative;
}
.tl-dot-purple { background: var(--purple); box-shadow: var(--glow-p); }

.tl-left  { }
.tl-right { }

.tl-left .tl-card  { grid-column: 1; grid-row: 1; }
.tl-left .tl-dot   { grid-column: 2; }
.tl-left .empty    { grid-column: 3; }

.tl-right .tl-card { grid-column: 3; grid-row: 1; }
.tl-right .tl-dot  { grid-column: 2; }

/* Force correct placement */
.tl-left  .tl-dot  { order: 2; }
.tl-left  .tl-card { order: 1; }
.tl-right .tl-dot  { order: 1; }
.tl-right .tl-card { order: 3; }

.tl-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--trans);
}
.tl-card:hover {
  border-color: var(--border-hv);
  box-shadow: var(--glow-c);
}
.tl-learning .tl-card:hover { box-shadow: var(--glow-p); border-color: rgba(124,58,237,0.25); }

.tl-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.tl-header h3 { font-size: 1rem; font-weight: 600; }
.tl-date {
  font-size: 0.8rem;
  color: var(--cyan);
  font-weight: 600;
  white-space: nowrap;
}
.tl-company {
  font-size: 0.85rem;
  color: var(--text-2);
  margin-bottom: 12px;
}
.tl-company i { margin-right: 6px; }

.tl-list { margin-bottom: 14px; }
.tl-list li {
  font-size: 0.85rem;
  color: var(--text-2);
  padding: 3px 0 3px 18px;
  position: relative;
  line-height: 1.6;
}
.tl-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-size: 0.75rem;
}

.tl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tl-tags span {
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: 50px;
  background: rgba(0,245,255,0.06);
  color: var(--text-2);
  border: 1px solid var(--border);
}

.lrn-badge {
  font-size: 0.7rem;
  padding: 2px 10px;
  border-radius: 50px;
  background: rgba(124,58,237,0.15);
  color: var(--purple);
  border: 1px solid rgba(124,58,237,0.25);
  vertical-align: middle;
}

.current-badge {
  font-size: 0.68rem;
  padding: 2px 10px;
  border-radius: 50px;
  background: rgba(34,197,94,0.15);
  color: #22c55e;
  border: 1px solid rgba(34,197,94,0.3);
  vertical-align: middle;
}

.tl-card-current {
  border-color: rgba(34,197,94,0.2);
}
.tl-card-current:hover {
  border-color: rgba(34,197,94,0.4);
  box-shadow: 0 0 28px rgba(34,197,94,0.12);
}

/* Timeline freelance footnote */
.tl-freelance {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 22px;
  background: rgba(0,245,255,0.04);
  border: 1px dashed rgba(0,245,255,0.18);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-2);
  margin-top: 12px;
  max-width: 680px;
  margin-inline: auto;
}
.tl-freelance i {
  color: var(--cyan);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.tl-freelance strong { color: var(--text); }

/* =====================================================
   CLIENTS
   ===================================================== */
/* Marquee */
.marquee-wrap {
  overflow: hidden;
  margin-bottom: 60px;
  mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
}
.marquee-track {
  display: flex;
  width: fit-content;
  animation: marqueeScroll 28s linear infinite;
}
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; }

.mq-logo {
  background: rgba(255,255,255,0.92);
  border-radius: var(--radius-sm);
  padding: 14px 24px;
  margin: 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  height: 70px;
  flex-shrink: 0;
}
.mq-logo img {
  height: 38px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
}

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

.cl-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  transition: var(--trans);
}
.cl-card:hover {
  border-color: var(--border-hv);
  transform: translateY(-6px);
  box-shadow: var(--glow-c);
}

.cl-logo-wrap {
  background: rgba(255,255,255,0.95);
  border-radius: 8px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 90px;
}
.cl-logo-wrap img {
  height: 55px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  transition: var(--trans);
}
.cl-card:hover .cl-logo-wrap img { transform: scale(1.06); }

.cl-card span {
  font-size: 0.82rem;
  color: var(--text-2);
  font-weight: 500;
}

/* =====================================================
   TESTIMONIALS
   ===================================================== */
.t-slider {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
}
.t-track {
  position: relative;
  min-height: 300px;
}

.t-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.94) translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
}
.t-card.t-active {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
}

.t-quote {
  font-size: 2rem;
  color: var(--cyan);
  opacity: 0.4;
  margin-bottom: 14px;
}
.t-text {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 24px;
}

.t-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.t-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  flex-shrink: 0;
}
.t-author strong { display: block; font-size: 0.95rem; }
.t-author small  { color: var(--text-2); font-size: 0.82rem; }

.t-stars { color: #fbbf24; font-size: 0.85rem; }
.t-stars i + i { margin-left: 2px; }

.t-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 28px;
}
.t-controls button {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  transition: var(--trans);
}
.t-controls button:hover { border-color: var(--cyan); color: var(--cyan); }

.t-dots { display: flex; gap: 8px; }
.t-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--text-3);
  cursor: pointer;
  transition: var(--trans);
}
.t-dot-active {
  background: var(--cyan);
  width: 24px;
  border-radius: 4px;
}

/* =====================================================
   CONTACT
   ===================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 40px;
  align-items: start;
}

.contact-info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 20px;
}
.ci-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.ci-item:last-child { border-bottom: none; }
.ci-icon {
  width: 40px; height: 40px;
  background: rgba(0,245,255,0.08);
  border: 1px solid rgba(0,245,255,0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  flex-shrink: 0;
}
.ci-item label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-3);
  margin-bottom: 2px;
}
.ci-item a, .ci-item span { font-size: 0.9rem; color: var(--text-2); }
.ci-item a:hover { color: var(--cyan); }

.contact-social-row { display: flex; gap: 12px; }
.cs-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-2);
  transition: var(--trans);
}
.cs-github:hover  { border-color: #fff; color: #fff; background: rgba(255,255,255,0.05); }
.cs-linkedin:hover{ border-color: #0A66C2; color: #0A66C2; background: rgba(10,102,194,0.05); }

/* Form */
.contact-form-col {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}

.hp { position: absolute; left: -9999px; opacity: 0; }

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text-2);
}
.req { color: var(--cyan); }

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.95rem;
  color: var(--text);
  font-family: inherit;
  outline: none;
  transition: border-color var(--trans), box-shadow var(--trans);
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,245,255,0.08);
}
.form-group input.error,
.form-group textarea.error { border-color: #f5576c; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-3); }

.ferr {
  display: block;
  font-size: 0.78rem;
  color: #f5576c;
  margin-top: 5px;
  min-height: 1em;
}

.form-msg {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  display: none;
}
.form-msg.success { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.3); color: #22c55e; }
.form-msg.error   { background: rgba(245,87,108,0.1); border: 1px solid rgba(245,87,108,0.3); color: #f5576c; }
.form-msg.show    { display: block; }

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  display: inline-block;
  margin-bottom: 12px;
}
.footer-logo span { color: var(--cyan); }

.footer-brand p { font-size: 0.9rem; color: var(--text-2); line-height: 1.7; margin-bottom: 20px; }

.footer-soc { display: flex; gap: 10px; }
.footer-soc a {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-2);
  transition: var(--trans);
}
.footer-soc a:hover { border-color: var(--cyan); color: var(--cyan); }

.footer-nav h4, .footer-contact h4 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  color: var(--text);
}
.footer-nav ul { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a  { font-size: 0.88rem; color: var(--text-2); transition: color var(--trans); }
.footer-nav a:hover { color: var(--cyan); }

.footer-contact p  { font-size: 0.88rem; color: var(--text-2); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.footer-contact i  { color: var(--cyan); width: 14px; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.83rem;
  color: var(--text-3);
}

/* =====================================================
   BACK TO TOP
   ===================================================== */
#btt {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: var(--trans);
  z-index: 900;
  box-shadow: var(--glow-c);
}
#btt.visible { opacity: 1; pointer-events: auto; }
#btt:hover   { transform: translateY(-4px); }

/*********whatsapp-float*********/

/* =====================================================
   KEYFRAMES
   ===================================================== */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
@keyframes reactSpin {
  to { transform: rotate(360deg); }
}
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(8px); }
}
@keyframes scrollWheel {
  0%   { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(12px); }
}
@keyframes ringPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.03); }
}
@keyframes pulseRing {
  0%   { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* =====================================================
   GSAP REVEAL DEFAULTS
   ===================================================== */
.reveal { opacity: 0; }

/* =====================================================
   RESPONSIVE — TABLET (≤ 1024px)
   ===================================================== */
@media (max-width: 1024px) {

  .hero-inner {
    grid-template-columns: 1fr 360px;
    gap: 40px;
  }

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

  .about-grid { grid-template-columns: 300px 1fr; gap: 40px; }

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

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

  .clients-grid { grid-template-columns: repeat(3, 1fr); }
}

/* =====================================================
   RESPONSIVE — MOBILE (≤ 768px)
   ===================================================== */
@media (max-width: 768px) {

  .section { padding: 72px 0; }

  /* Navbar */
  .hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 75vw;
    height: 100vh;
    background: rgba(5,8,15,0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    gap: 0;
    padding: 80px 24px 40px;
    transition: right var(--trans-s);
    border-left: 1px solid var(--border);
    z-index: 999;
  }
  .nav-links.open { right: 0; }
  .nav-links li   { border-bottom: 1px solid var(--border); }
  .nav-link { padding: 16px 0; display: block; color: var(--text); font-size: 1.1rem; }

  /* Hero */
  .hero { padding: 100px 20px 60px; }
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-btns, .hero-socials { justify-content: center; }
  .hero-bio { margin: 0 auto 32px; }
  .hero-role-line { justify-content: center; }

  .hero-visual { order: -1; }
  .h-ring-1 { width: 220px; height: 220px; }
  .h-ring-2 { width: 280px; height: 280px; }
  .h-img-card { width: 190px; height: 190px; }

  .h-float      { padding: 8px 12px; font-size: 0.72rem; }
  .h-float i    { font-size: 1.15rem; }
  .h-float strong { font-size: 0.78rem; }
  .h-float-wp      { top: 2%;  left: -8px; }
  .h-float-php     { bottom: 22%; left: -8px; }
  .h-float-shopify { bottom: 2%; right: -8px; }
  .h-float-react   { top: 2%;  right: -8px; }

  .avail-badge { bottom: 6px; right: 0; font-size: 0.68rem; padding: 6px 12px; }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-img-col { max-width: 300px; margin: 0 auto; }
  .about-img-wrap img { height: 320px; }
  .about-details { grid-template-columns: 1fr; text-align: left; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }

  /* Skills */
  .skills-grid { grid-template-columns: 1fr; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; }

  /* Projects */
  .projects-grid { grid-template-columns: 1fr; }

  /* Timeline */
  .tl-track  { left: 20px; }
  .tl-item   { grid-template-columns: 1fr; padding-left: 48px; }
  .tl-dot    { position: absolute; left: 14px; margin-top: 24px; }
  .tl-item   { position: relative; }
  .tl-left .tl-card,
  .tl-right .tl-card { grid-column: 1; grid-row: 1; order: 1; }
  .tl-left .tl-dot,
  .tl-right .tl-dot  { order: 2; }

  /* Clients */
  .clients-grid { grid-template-columns: repeat(2, 1fr); }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; }
  .form-row-2   { grid-template-columns: 1fr; }

  /* Footer */
  .footer-grid  { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom{ flex-direction: column; gap: 8px; text-align: center; }

  /* Scroll hint */
  .scroll-hint { display: none; }
}

/* =====================================================
   RESPONSIVE — SMALL MOBILE (≤ 480px)
   ===================================================== */
@media (max-width: 480px) {
  .hero-btns { flex-direction: column; align-items: center; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .clients-grid { grid-template-columns: 1fr; }
  .sec-title { font-size: 1.7rem; }
}
