/* ========================================
   MUHAMMAD SYAFIQ PORTFOLIO - STYLESHEET
   ======================================== */

:root {
  --c1: #0a0a1a;
  --c2: #111130;
  --accent: #6c63ff;
  --accent2: #ff6584;
  --accent3: #43e97b;
  --gold: #ffd700;
  --text: #e8e8f0;
  --text-muted: #8888aa;
  --glass: rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.08);
  --gradient-main: linear-gradient(135deg, #6c63ff 0%, #ff6584 50%, #43e97b 100%);
  --gradient-hero: linear-gradient(135deg, #0a0a1a 0%, #1a1040 50%, #0d1f3c 100%);
  --shadow-glow: 0 0 40px rgba(108,99,255,0.3);
  --radius: 20px;
  --transition: 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--c1);
  color: var(--text);
  overflow-x: hidden;
  cursor: none;
}

/* ==============================
   CUSTOM CURSOR
============================== */
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 10000;
  transition: transform 0.1s;
}
.cursor-outline {
  width: 36px; height: 36px;
  border: 2px solid rgba(108,99,255,0.5);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transition: all 0.2s ease;
}



/* ==============================
   NAVBAR
============================== */
#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-center: center; justify-content: space-between;
  padding: 1rem 3rem;
  z-index: 1000;
  background: gradient;
  border-bottom: 1px solid var(--glass-border);
  transition: var(--transition);
}
#navbar.scrolled {
  padding: 0.7rem 3rem;
  background: rgba(10,10,26,0.92);
}
.nav-logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.6rem; font-weight: 800;
  color: var(--text);
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  color: var(--text-muted); text-decoration: none;
  font-size: 0.9rem; font-weight: 500;
  position: relative; transition: color 0.3s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--gradient-main);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { width: 100%; }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: var(--transition);
}

/* ==============================
   HERO SECTION
============================== */
#hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: var(--gradient-hero);
}

#bgCanvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

/* Animated blobs */
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.18;
  animation: blobFloat 8s ease-in-out infinite;
  pointer-events: none;
}
.blob-1 { width: 500px; height: 500px; background: #6c63ff; top: -100px; left: -100px; animation-delay: 0s; }
.blob-2 { width: 400px; height: 400px; background: #ff6584; bottom: -100px; right: -50px; animation-delay: 2s; }
.blob-3 { width: 350px; height: 350px; background: #43e97b; top: 40%; left: 60%; animation-delay: 4s; }
.blob-4 { width: 300px; height: 300px; background: #ffd700; top: 30%; left: 20%; animation-delay: 6s; }

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 30px) scale(0.95); }
}

.hero-content {
  position: relative; z-index: 1;
  display: flex; align-items: center;
  gap: 3.5rem; padding: 0 3rem;
  flex-wrap: wrap; justify-content: center;
  max-width: 1100px;
}

/* Profile rings */
.profile-ring-wrap {
  position: relative;
  width: 200px; height: 200px;
  flex-shrink: 0;
  animation: fadeInLeft 1s ease 0.3s both;
}
.profile-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(var(--c1), var(--c1)) padding-box,
              var(--gradient-main) border-box;
  animation: ringRotate 6s linear infinite;
}
.ring-2 { inset: -12px; opacity: 0.4; animation-duration: 10s; animation-direction: reverse; }
@keyframes ringRotate { to { transform: rotate(360deg); } }

.profile-img-container {
  position: absolute; inset: 10px;
  border-radius: 50%; overflow: hidden;
  border: 3px solid rgba(108,99,255,0.4);
}
.profile-img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.profile-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #1a1040 0%, #0d1f3c 100%);
  display: flex; align-items: center; justify-content: center;
}
.profile-placeholder span {
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem; font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.profile-badge {
  position: absolute; bottom: 10px; right: -10px;
  background: #1a2a1a;
  border: 1px solid #43e97b;
  color: #43e97b; font-size: 0.75rem; font-weight: 600;
  padding: 6px 12px; border-radius: 20px;
  white-space: nowrap;
  animation: pulse 2s ease infinite;
}
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(67,233,123,0.4); } 50% { box-shadow: 0 0 0 8px rgba(67,233,123,0); } }

.hero-text {
  flex: 1; min-width: 300px; max-width: 560px;
  animation: fadeInRight 1s ease 0.5s both;
}
.hero-greeting {
  font-size: 1rem; color: var(--accent);
  font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; margin-bottom: 0.5rem;
}
.hero-name {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800; line-height: 1.05;
  color: #fff; margin-bottom: 1rem;
}
.gradient-text {
  background: var(--gradient-main);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-roles {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.role-tag {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  padding: 6px 14px; border-radius: 50px;
  font-size: 0.82rem; font-weight: 500; color: var(--text-muted);
}
.hero-desc {
  font-size: 1rem; color: var(--text-muted);
  line-height: 1.8; margin-bottom: 2rem; max-width: 480px;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }

.btn-primary {
  background: var(--gradient-main);
  color: #fff; padding: 14px 32px;
  border-radius: 50px; text-decoration: none;
  font-weight: 700; font-size: 0.9rem;
  border: none; cursor: pointer;
  transition: var(--transition);
  display: inline-block;
  box-shadow: 0 8px 30px rgba(108,99,255,0.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(108,99,255,0.5); }

.btn-secondary {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text); padding: 13px 30px;
  border-radius: 50px; text-decoration: none;
  font-weight: 600; font-size: 0.9rem;
  cursor: pointer; transition: var(--transition);
  display: inline-block;
}
.btn-secondary:hover { background: rgba(108,99,255,0.15); border-color: var(--accent); transform: translateY(-3px); }

.hero-stats { display: flex; align-items: center; gap: 2rem; }
.stat { text-align: center; }
.stat strong {
  display: block; font-family: 'Syne', sans-serif;
  font-size: 2rem; font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat span { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }
.stat-divider { width: 1px; height: 40px; background: var(--glass-border); }

.scroll-hint {
  position: absolute; bottom: 2.5rem; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
  gap: 8px; z-index: 1;
}
.scroll-line {
  width: 1px; height: 60px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollLine 2s ease infinite;
}
.scroll-hint span { font-size: 0.7rem; color: var(--text-muted); letter-spacing: 3px; text-transform: uppercase; }
@keyframes scrollLine { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ==============================
   GENERAL SECTION STYLES
============================== */
section { padding: 8rem 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 3rem; }

.section-label {
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 4px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1rem;
}
.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800; color: #fff;
  margin-bottom: 3.5rem; line-height: 1.2;
}

@keyframes fadeInLeft { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeInRight { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* ==============================
   ABOUT SECTION
============================== */
#about { background: linear-gradient(180deg, var(--c1) 0%, var(--c2) 100%); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: start;
}
.about-text p {
  color: var(--text-muted); line-height: 1.9;
  font-size: 1rem; margin-bottom: 1.5rem;
}
.about-text p strong { color: var(--text); }
.about-text p em { color: var(--accent); font-style: normal; }
.about-highlights { display: flex; flex-direction: column; gap: 1rem; margin-top: 1.5rem; }
.highlight-item {
  display: flex; align-items: flex-start; gap: 1rem;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 12px; padding: 1rem 1.2rem;
  transition: var(--transition);
}
.highlight-item:hover { border-color: var(--accent); background: rgba(108,99,255,0.08); }
.hi-icon { font-size: 1.5rem; }
.highlight-item strong { display: block; color: var(--text); font-size: 0.95rem; margin-bottom: 2px; }
.highlight-item span { color: var(--text-muted); font-size: 0.85rem; }

.about-cards { display: flex; flex-direction: column; gap: 1.2rem; }
.info-card {
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius); padding: 1.5rem;
  transition: var(--transition); position: relative; overflow: hidden;
}
.info-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 4px; height: 100%; border-radius: 4px 0 0 4px;
}
.card-1::before { background: var(--accent); }
.card-2::before { background: var(--accent2); }
.card-3::before { background: var(--accent3); }
.info-card:hover { transform: translateX(8px); border-color: rgba(255,255,255,0.15); }
.ic-icon { font-size: 1.8rem; margin-bottom: 0.8rem; }
.info-card h3 { font-family: 'Syne', sans-serif; font-weight: 700; margin-bottom: 0.5rem; color: #fff; }
.info-card p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.7; }

/* ==============================
   SKILLS SECTION
============================== */
#skills { background: var(--c1); }
.skills-categories {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem; margin-bottom: 3rem;
}
.skill-category {
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius); padding: 2rem;
  transition: var(--transition);
}
.skill-category:hover { border-color: rgba(108,99,255,0.3); transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.cat-title {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 1rem; margin-bottom: 1.8rem;
  display: flex; align-items: center; gap: 0.6rem; color: #fff;
}
.cat-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.cat-web { background: var(--accent); }
.cat-seo { background: var(--accent2); }
.cat-dm { background: var(--accent3); }
.skill-bars { display: flex; flex-direction: column; gap: 1.4rem; }
.skill-bar-item {}
.sb-label { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 0.85rem; color: var(--text-muted); }
.sb-label span:last-child { color: var(--accent); font-weight: 600; }
.sb-track { height: 6px; background: rgba(255,255,255,0.06); border-radius: 10px; overflow: hidden; }
.sb-fill {
  height: 100%; width: 0; border-radius: 10px;
  background: var(--gradient-main);
  transition: width 1.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Custom Skills */
.custom-skills-box {
  background: var(--glass); border: 1px dashed var(--glass-border);
  border-radius: var(--radius); padding: 2rem;
  margin-bottom: 3rem;
}
.custom-skills-box h3 {
  font-family: 'Syne', sans-serif; font-size: 1.1rem;
  margin-bottom: 0.5rem; color: #fff;
}
.custom-skills-desc { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 1.5rem; }
.custom-input-row { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.custom-input-row input, .custom-input-row select {
  flex: 1; min-width: 160px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border);
  color: var(--text); padding: 10px 16px; border-radius: 10px;
  font-size: 0.9rem; font-family: 'DM Sans', sans-serif;
  outline: none; transition: border-color 0.3s;
}
.custom-input-row input:focus, .custom-input-row select:focus { border-color: var(--accent); }
.custom-input-row input::placeholder { color: var(--text-muted); }
.custom-input-row button {
  background: var(--gradient-main); color: #fff;
  border: none; padding: 10px 24px; border-radius: 10px;
  font-weight: 600; cursor: pointer; font-size: 0.9rem;
  transition: var(--transition);
}
.custom-input-row button:hover { transform: translateY(-2px); }
#customSkillsList { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.custom-skill-item { display: flex; flex-direction: column; gap: 6px; }
.csi-header { display: flex; justify-content: space-between; align-items: center; }
.csi-header span { font-size: 0.85rem; color: var(--text-muted); }
.csi-header .csi-pct { color: var(--accent2); font-weight: 600; }
.csi-header button {
  background: none; border: none; color: var(--accent2);
  cursor: pointer; font-size: 0.85rem; padding: 2px 8px;
}
.csi-bar { height: 6px; background: rgba(255,255,255,0.06); border-radius: 10px; overflow: hidden; }
.csi-fill { height: 100%; border-radius: 10px; background: linear-gradient(90deg, var(--accent2), var(--accent)); }

/* Tools */
.tools-section { }
.tools-title { font-family: 'Syne', sans-serif; font-weight: 700; color: #fff; margin-bottom: 1.5rem; }
.tools-grid { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.tool-badge {
  background: var(--glass); border: 1px solid var(--glass-border);
  color: var(--text-muted); padding: 8px 18px; border-radius: 50px;
  font-size: 0.85rem; font-weight: 500;
  transition: var(--transition);
}
.tool-badge:hover { border-color: var(--accent); color: var(--accent); background: rgba(108,99,255,0.1); transform: translateY(-2px); }

/* ==============================
   CV SECTION
============================== */
#cv { background: var(--c1); }
.cv-wrapper {
  display: grid; grid-template-columns: 1fr 1.6fr; gap: 3rem; align-items: start;
}
.cv-info h3 {
  font-family: 'Syne', sans-serif; font-size: 1.8rem;
  font-weight: 800; color: #fff; margin-bottom: 0.3rem;
}
.cv-role {
  color: var(--accent); font-size: 0.9rem; font-weight: 600;
  margin-bottom: 1.5rem; letter-spacing: 0.5px;
}
.cv-highlights { list-style: none; margin-bottom: 2rem; display: flex; flex-direction: column; gap: 0.8rem; }
.cv-highlights li { color: var(--text-muted); font-size: 0.92rem; display: flex; align-items: center; gap: 0.7rem; }
.cv-highlights li::before { display: none; }
.cv-actions { display: flex; flex-direction: column; gap: 0.8rem; margin-bottom: 1.5rem; }
.cv-actions a, .cv-actions button { text-align: center; width: 100%; }
.cv-note { font-size: 0.8rem; color: var(--text-muted); line-height: 1.6; }
.cv-note code { background: rgba(108,99,255,0.15); padding: 2px 8px; border-radius: 4px; color: var(--accent); font-size: 0.78rem; }

.cv-viewer { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--glass-border); background: var(--glass); }
.cv-frame-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid var(--glass-border);
}
.cv-frame-header span { font-size: 0.85rem; color: var(--text-muted); }
.cv-frame-header button {
  background: none; border: none; color: var(--accent);
  cursor: pointer; font-size: 0.85rem; font-weight: 600;
  padding: 4px 10px;
  border: 1px solid rgba(108,99,255,0.3); border-radius: 8px;
  transition: background 0.2s;
}
.cv-frame-header button:hover { background: rgba(108,99,255,0.15); }
.cv-embed-wrap { position: relative; width: 100%; }
#cvFrame {
  width: 100%; height: 560px;
  border: none; display: block;
  background: #fff;
}
.cv-placeholder {
  min-height: 500px; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 3rem; text-align: center;
}
.cv-placeholder-icon { font-size: 3rem; margin-bottom: 1rem; }
.cv-placeholder p { color: var(--text-muted); margin-bottom: 0.5rem; }
.cv-placeholder code { color: var(--accent); background: rgba(108,99,255,0.12); padding: 3px 10px; border-radius: 6px; }
.cv-placeholder-sub { font-size: 0.8rem; color: #555; margin-top: 0.5rem; }

/* ==============================
   HRD SPECS SECTION
============================== */
#hrd { background: var(--c2); }
.hrd-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; margin-bottom: 4rem;
}
.hrd-card {
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius); padding: 2rem;
  position: relative; overflow: hidden;
  transition: var(--transition);
}
.hrd-card::before {
  content: ''; position: absolute; inset: 0;
  background: var(--gradient-main);
  opacity: 0; transition: opacity 0.4s;
}
.hrd-card:hover { transform: translateY(-6px); border-color: transparent; }
.hrd-card:hover::before { opacity: 0.08; }
.hrd-number {
  position: absolute; top: 1.2rem; right: 1.5rem;
  font-family: 'Syne', sans-serif; font-size: 2.5rem;
  font-weight: 800; color: rgba(255,255,255,0.04);
}
.hrd-icon { font-size: 2rem; margin-bottom: 1rem; position: relative; }
.hrd-card h3 {
  font-family: 'Syne', sans-serif; font-weight: 700;
  color: #fff; margin-bottom: 0.7rem; position: relative;
}
.hrd-card p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.7; position: relative; }

/* Spec Table */
.spec-table-wrap {
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius); overflow: hidden;
}
.spec-title {
  font-family: 'Syne', sans-serif; font-weight: 700; color: #fff;
  padding: 1.5rem 2rem; border-bottom: 1px solid var(--glass-border);
  font-size: 1.1rem;
}
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table tr { border-bottom: 1px solid var(--glass-border); transition: background 0.2s; }
.spec-table tr:last-child { border-bottom: none; }
.spec-table tr:hover { background: rgba(108,99,255,0.05); }
.spec-key {
  padding: 1rem 2rem; font-weight: 600; font-size: 0.88rem;
  color: var(--text-muted); width: 35%; white-space: nowrap;
}
.spec-val { padding: 1rem 2rem; font-size: 0.9rem; color: var(--text); }
.spec-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 14px; border-radius: 50px; font-size: 0.82rem; font-weight: 600;
}
.spec-available { background: rgba(67,233,123,0.12); border: 1px solid rgba(67,233,123,0.3); color: #43e97b; }

/* ==============================
   CONTACT SECTION
============================== */
#contact { background: var(--c1); }
.contact-intro {
  color: var(--text-muted); font-size: 1rem;
  margin-bottom: 3rem; margin-top: -1.5rem;
}
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 3rem;
}
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item {
  display: flex; align-items: flex-start; gap: 1rem;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 14px; padding: 1.2rem 1.4rem;
  transition: var(--transition);
}
.contact-item:hover { border-color: var(--accent); background: rgba(108,99,255,0.08); }
.ci-icon { font-size: 1.5rem; }
.contact-item strong { display: block; color: var(--text); font-size: 0.9rem; margin-bottom: 2px; }
.contact-item span { color: var(--text-muted); font-size: 0.85rem; }
.social-links { display: flex; gap: 1rem; margin-top: 0.5rem; }
.social-btn {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--glass); border: 1px solid var(--glass-border);
  color: var(--text-muted); text-decoration: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem; font-weight: 700; transition: var(--transition);
}
.social-btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }

.contact-form-wrap {
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius); overflow: hidden;
}
.form-header {
  background: linear-gradient(135deg, rgba(108,99,255,0.15), rgba(67,233,123,0.1));
  padding: 1.5rem 2rem; display: flex; align-items: center; gap: 1rem;
  border-bottom: 1px solid var(--glass-border);
}
.wa-icon { font-size: 1.8rem; }
.form-header h3 { font-family: 'Syne', sans-serif; font-weight: 700; color: #fff; }
.contact-form { padding: 2rem; display: flex; flex-direction: column; gap: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.form-group input, .form-group select, .form-group textarea {
  background: rgba(255,255,255,0.04); border: 1px solid var(--glass-border);
  color: var(--text); padding: 12px 16px; border-radius: 12px;
  font-size: 0.9rem; font-family: 'DM Sans', sans-serif;
  outline: none; transition: border-color 0.3s;
  resize: vertical;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--accent); }
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-muted); }
.form-group select option { background: #1a1a30; }
.input-hint { font-size: 0.75rem; color: var(--text-muted); }

.btn-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #fff; border: none; padding: 15px;
  border-radius: 12px; font-weight: 700; font-size: 1rem;
  cursor: pointer; transition: var(--transition);
  font-family: 'DM Sans', sans-serif;
}
.btn-whatsapp:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(37,211,102,0.35); }
.wa-note { font-size: 0.78rem; color: var(--text-muted); text-align: center; line-height: 1.6; }

/* ==============================
   FOOTER
============================== */
#footer {
  background: #07071a;
  border-top: 1px solid var(--glass-border);
  padding: 3rem;
  text-align: center;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 0.8rem; }
.footer-logo {
  font-family: 'Syne', sans-serif;
  font-size: 2rem; font-weight: 800; color: #fff;
}
.footer-logo span { color: var(--accent); }
#footer p { color: var(--text-muted); font-size: 0.88rem; }
.footer-copy { font-size: 0.78rem !important; color: #444 !important; }
.back-top-btn {
  color: var(--accent); text-decoration: none;
  font-size: 0.85rem; font-weight: 600;
  transition: opacity 0.3s;
}
.back-top-btn:hover { opacity: 0.7; }

/* ==============================
   SCROLL REVEAL
============================== */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.23, 1, 0.32, 1), transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ==============================
   RESPONSIVE — TABLET & MOBILE
============================== */

/* Tablet 1024px */
@media (max-width: 1024px) {
  .skills-categories { grid-template-columns: 1fr 1fr; }
  .hrd-grid { grid-template-columns: repeat(2, 1fr); }
  .cv-wrapper { grid-template-columns: 1fr; }
  #cvFrame { height: 480px; }
  .hero-content { gap: 2.5rem; padding: 0 2rem; }
  .portfolio-grid { grid-template-columns: 1fr; }
}

/* Mobile — 768px */
@media (max-width: 768px) {
  /* Cursor off on touch */
  .cursor-dot, .cursor-outline { display: none; }
  body { cursor: default; }

  /* Navbar */
  #navbar { padding: 0.9rem 1.2rem; }
  #navbar.scrolled { padding: 0.7rem 1.2rem; }
  .nav-links {
    display: none;
    position: fixed; inset: 0; top: 60px;
    background: rgba(7,7,26,0.97);
    flex-direction: column; align-items: center;
    justify-content: center; gap: 2.5rem;
    backdrop-filter: blur(20px);
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.2rem; }
  .hamburger { display: flex; }

  /* Container */
  .container { padding: 0 1.2rem; }
  section { padding: 4rem 0; }
  .section-title { font-size: clamp(1.6rem, 6vw, 2.2rem); margin-bottom: 2.5rem; }

  /* Hero */
  #hero { padding-top: 70px; min-height: 100svh; }
  .hero-content {
    flex-direction: column-reverse;
    padding: 1rem 1.2rem 2rem;
    gap: 1.8rem; text-align: center;
  }
  .profile-ring-wrap { width: 160px; height: 160px; }
  .ring-2 { inset: -10px; }
  .profile-badge { font-size: 0.7rem; padding: 5px 10px; bottom: 4px; right: -8px; }
  .hero-greeting { font-size: 0.85rem; }
  .hero-name { font-size: clamp(1.8rem, 8vw, 2.8rem); }
  .hero-roles { justify-content: center; }
  .role-tag { font-size: 0.75rem; padding: 5px 12px; }
  .hero-desc { font-size: 0.9rem; margin: 0 auto 1.5rem; }
  .hero-actions { justify-content: center; flex-direction: column; align-items: center; }
  .hero-actions a, .hero-actions button { width: 100%; max-width: 260px; text-align: center; }
  .hero-stats { justify-content: center; gap: 1.2rem; }
  .stat strong { font-size: 1.5rem; }
  .scroll-hint { display: none; }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-text p { font-size: 0.92rem; }

  /* Skills */
  .skills-categories { grid-template-columns: 1fr; gap: 1.5rem; }
  .skill-category { padding: 1.5rem; }
  .custom-input-row { flex-direction: column; }
  .custom-input-row input, .custom-input-row button { width: 100%; }

  /* CV */
  .cv-wrapper { grid-template-columns: 1fr; gap: 2rem; }
  .cv-info h3 { font-size: 1.4rem; }
  .cv-actions { flex-direction: column; }
  .cv-actions a, .cv-actions button { width: 100%; text-align: center; }
  #cvFrame { height: 400px; }

  /* HRD */
  .hrd-grid { grid-template-columns: 1fr; gap: 1rem; }
  .hrd-card { padding: 1.4rem; }
  .spec-key, .spec-val { padding: 0.8rem 1rem; font-size: 0.82rem; }
  .spec-table-wrap { overflow-x: auto; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-form { padding: 1.4rem; }

  /* Footer */
  #footer { padding: 2rem 1.2rem; }
}

/* Small phones — 420px */
@media (max-width: 420px) {
  .hero-name { font-size: clamp(1.6rem, 9vw, 2.2rem); }
  .profile-ring-wrap { width: 140px; height: 140px; }
  .btn-primary, .btn-secondary { padding: 12px 22px; font-size: 0.85rem; }
  .hero-stats { gap: 0.8rem; }
  .stat strong { font-size: 1.3rem; }
  #cvFrame { height: 340px; }
  .spec-key { white-space: normal; min-width: 100px; }
}
