@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Fira+Code:wght@400;500&display=swap');

:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #0d0d1a;
  --bg-card: rgba(15, 15, 30, 0.7);
  --bg-glass: rgba(255, 255, 255, 0.03);
  --text-primary: #e8e8f0;
  --text-secondary: #9494a8;
  --text-muted: #5c5c72;
  --primary: #6c5ce7;
  --primary-dark: #5a4bd1;
  --primary-light: #8b7cf7;
  --secondary: #00d4ff;
  --secondary-dark: #00b8e6;
  --accent: #a855f7;
  --accent-light: #c084fc;
  --cyan: #22d3ee;
  --gradient-1: linear-gradient(135deg, #6c5ce7, #a855f7);
  --gradient-2: linear-gradient(135deg, #00d4ff, #22d3ee);
  --gradient-3: linear-gradient(135deg, #6c5ce7, #00d4ff, #a855f7);
  --gradient-text: linear-gradient(135deg, #6c5ce7, #00d4ff, #a855f7, #22d3ee);
  --glow-primary: 0 0 20px rgba(108, 92, 231, 0.3);
  --glow-secondary: 0 0 20px rgba(0, 212, 255, 0.3);
  --glow-accent: 0 0 20px rgba(168, 85, 247, 0.3);
  --border-color: rgba(108, 92, 231, 0.15);
  --border-glow: rgba(0, 212, 255, 0.2);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'Fira Code', 'Courier New', monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}

a {
  text-decoration: none;
  color: inherit;
}

ul { list-style: none; }

img { max-width: 100%; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--primary-light); }

::selection {
  background: var(--primary);
  color: white;
}

/* === LOADING SCREEN === */
#loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#loader.hidden {
  opacity: 0;
  visibility: hidden;
}
.loader-content {
  text-align: center;
}
.loader-ring {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 3px solid rgba(108, 92, 231, 0.1);
  border-top-color: var(--primary);
  border-right-color: var(--secondary);
  animation: spin 1s linear infinite;
  margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader-text {
  font-family: var(--font-mono);
  color: var(--text-secondary);
  font-size: 14px;
  letter-spacing: 2px;
}

/* === SCROLL PROGRESS === */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gradient-3);
  z-index: 9999;
  width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(108, 92, 231, 0.5);
}

/* === CURSOR GLOW === */
#cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.08), transparent 70%);
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
}

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

/* === NAVBAR === */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: var(--transition);
}
#navbar.scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
}
.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -1px;
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 4px 0;
  transition: var(--transition);
  letter-spacing: 0.3px;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-1);
  transition: var(--transition);
  border-radius: 1px;
}
.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 100px 0 60px;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(108, 92, 231, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(0, 212, 255, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(168, 85, 247, 0.05) 0%, transparent 50%);
  z-index: 1;
}
.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-text {
  position: relative;
}
.hero-greeting {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--primary-light);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-name {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 16px;
  letter-spacing: -2px;
}
.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% auto;
  animation: gradient-shift 4s ease infinite;
}
@keyframes gradient-shift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}
.hero-role-wrapper {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  min-height: 32px;
}
.hero-role-static { font-weight: 300; }
.hero-role {
  color: var(--secondary);
  font-weight: 600;
}
.hero-cursor {
  display: inline-block;
  color: var(--primary);
  animation: blink 1s step-end infinite;
  font-weight: 100;
}
@keyframes blink { 50% { opacity: 0; } }

.hero-bio {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 32px;
  max-width: 500px;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  position: relative;
  overflow: hidden;
}
.btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.btn-primary {
  background: var(--gradient-1);
  color: white;
  box-shadow: 0 4px 20px rgba(108, 92, 231, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108, 92, 231, 0.5);
}
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-color);
}
.btn-secondary:hover {
  border-color: var(--primary);
  background: rgba(108, 92, 231, 0.1);
  transform: translateY(-2px);
  box-shadow: var(--glow-primary);
}

.hero-social {
  display: flex;
  gap: 12px;
}
.social-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--text-secondary);
}
.social-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}
.social-icon:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--glow-primary);
  background: rgba(108, 92, 231, 0.1);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-profile-wrapper {
  position: relative;
  width: 340px;
  height: 340px;
}
.hero-profile-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--primary), var(--secondary), var(--accent), var(--primary));
  animation: rotate-glow 8s linear infinite;
  opacity: 0.5;
  filter: blur(20px);
}
@keyframes rotate-glow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.hero-profile {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid rgba(108, 92, 231, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  backdrop-filter: blur(10px);
}
.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  position: relative;
  z-index: 1;
  display: none;
}
.profile-img.loaded {
  display: block;
}
.profile-placeholder {
  width: 180px;
  height: 180px;
  position: absolute;
  z-index: 0;
}
.profile-placeholder svg {
  width: 100%;
  height: 100%;
  opacity: 0.8;
}
.profile-placeholder.hidden {
  display: none;
}

.hero-code-badge {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 8px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.code-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--secondary);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.floating-shapes { position: absolute; inset: 0; pointer-events: none; }
.shape {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid;
  animation: float-shape 6s ease-in-out infinite;
}
.shape-1 {
  width: 60px;
  height: 60px;
  top: 10%;
  right: 10%;
  border-color: var(--primary);
  animation-delay: 0s;
}
.shape-2 {
  width: 40px;
  height: 40px;
  bottom: 20%;
  right: 5%;
  border-color: var(--secondary);
  animation-delay: 1.5s;
}
.shape-3 {
  width: 30px;
  height: 30px;
  top: 30%;
  left: 5%;
  border-color: var(--accent);
  animation-delay: 3s;
}
@keyframes float-shape {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 2px;
  z-index: 2;
  animation: bounce-down 2s ease-in-out infinite;
}
.scroll-arrow svg {
  width: 24px;
  height: 24px;
  fill: var(--text-muted);
}
@keyframes bounce-down {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* === SECTIONS COMMON === */
.section {
  position: relative;
  padding: 100px 0;
  z-index: 1;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--primary-light);
  padding: 6px 16px;
  border: 1px solid rgba(108, 92, 231, 0.2);
  border-radius: 50px;
  margin-bottom: 16px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.section-title {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.section-divider {
  width: 60px;
  height: 3px;
  background: var(--gradient-1);
  margin: 0 auto;
  border-radius: 2px;
}

/* === REVEAL ANIMATION === */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === ABOUT === */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.about-content p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.9;
}
.about-content p strong {
  color: var(--text-primary);
}
.about-experience {
  display: flex;
  gap: 20px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.exp-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-secondary);
  transition: var(--transition);
}
.exp-item:hover {
  border-color: var(--primary);
  box-shadow: var(--glow-primary);
}
.exp-icon { font-size: 18px; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}
.stat-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--glow-primary);
}
.stat-number {
  font-size: 42px;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

/* === SKILLS === */
.skills-section {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}
.skill-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(108, 92, 231, 0.15), var(--glow-primary);
}
.skill-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
}
.skill-icon svg {
  width: 100%;
  height: 100%;
  transition: var(--transition);
}
.skill-card:hover .skill-icon svg {
  fill: var(--primary);
  filter: drop-shadow(0 0 8px rgba(108, 92, 231, 0.4));
}
.skill-icon svg { transition: fill 0.3s ease; }
.skill-card .html-icon svg { fill: #E34F26; }
.skill-card .css-icon svg { fill: #1572B6; }
.skill-card .js-icon svg { fill: #F7DF1E; }
.skill-card .php-icon svg { fill: #777BB4; }
.skill-card .laravel-icon svg { fill: #FF2D20; }
.skill-card .go-icon svg { fill: #00ADD8; }
.skill-card .codeigniter-icon svg { fill: #EE4323; }
.skill-card .next-icon svg { fill: #ffffff; }
.skill-card .postgres-icon svg { fill: #336791; }
.skill-card .mysql-icon svg { fill: #4479A1; }
.skill-card .mongodb-icon svg { fill: #47A248; }
.skill-card .api-icon svg { fill: var(--primary-light); }
.skill-card .ux-icon svg { fill: var(--primary-light); }
.skill-card .devops-icon svg { fill: var(--primary-light); }
.skill-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}
.progress-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}
.progress-bar {
  flex: 1;
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}
.progress-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--gradient-1);
  width: 0;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 10px rgba(108, 92, 231, 0.3);
}
.progress-text {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  min-width: 36px;
  text-align: right;
}

/* === PROJECTS === */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 28px;
}
.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}
.project-card:hover {
  border-color: var(--primary);
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(108, 92, 231, 0.15);
}
.project-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}
.project-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(108, 92, 231, 0.03);
}
.project-image-placeholder svg {
  width: 80%;
  height: 80%;
}
.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transition: var(--transition);
}
.project-card:hover .project-overlay {
  opacity: 1;
}
.project-link-btn {
  padding: 10px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  background: var(--gradient-1);
  color: white;
  transition: var(--transition);
}
.project-link-btn.outline {
  background: transparent;
  border: 1.5px solid var(--border-color);
  color: var(--text-primary);
}
.project-link-btn:hover { transform: scale(1.05); }
.project-link-btn.outline:hover {
  border-color: var(--primary);
  background: rgba(108, 92, 231, 0.1);
}
.project-info {
  padding: 24px;
}
.project-info h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.project-info p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
}
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.project-tech span {
  padding: 4px 12px;
  background: rgba(108, 92, 231, 0.1);
  border: 1px solid rgba(108, 92, 231, 0.15);
  border-radius: 50px;
  font-size: 12px;
  color: var(--primary-light);
  font-family: var(--font-mono);
}

.project-creds {
  margin-top: 16px;
  padding: 14px;
  background: rgba(0, 212, 255, 0.04);
  border: 1px solid rgba(0, 212, 255, 0.12);
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.creds-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.creds-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2px;
}
.creds-detail {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.creds-key {
  color: var(--text-muted);
}
.highlight-card {
  border-color: rgba(0, 212, 255, 0.2) !important;
  position: relative;
}
.highlight-card::before {
  content: 'UNGGULAN';
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 10px;
  background: var(--gradient-2);
  border-radius: 50px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #000;
  z-index: 5;
}

/* === SERVICES === */
.services-section {
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}
.service-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(168, 85, 247, 0.15);
}
.service-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 16px;
  background: rgba(108, 92, 231, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.service-card:hover .service-icon {
  background: var(--gradient-1);
  box-shadow: var(--glow-primary);
}
.service-icon svg {
  width: 28px;
  height: 28px;
  fill: var(--primary-light);
  transition: var(--transition);
}
.service-card:hover .service-icon svg { fill: white; }
.service-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
}
.service-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

/* === CONTACT === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}
.contact-item-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(108, 92, 231, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-item-icon svg {
  width: 22px;
  height: 22px;
  fill: var(--primary-light);
}
.contact-item h4 {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.contact-item a,
.contact-item p {
  font-size: 15px;
  color: var(--text-primary);
  transition: var(--transition);
}
.contact-item a:hover { color: var(--primary); }
.contact-cta { margin-top: 32px; }
.btn-wa {
  background: #25D366 !important;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3) !important;
}
.btn-wa:hover {
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5) !important;
  transform: translateY(-2px);
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 36px;
  backdrop-filter: blur(10px);
}
.form-group {
  position: relative;
  margin-bottom: 24px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  transition: var(--transition);
  outline: none;
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}
.form-group label {
  position: absolute;
  top: 50%;
  left: 18px;
  transform: translateY(-50%);
  font-size: 14px;
  color: var(--text-muted);
  pointer-events: none;
  transition: var(--transition);
  background: transparent;
  padding: 0 4px;
}
.form-group textarea ~ label {
  top: 18px;
  transform: none;
}
.form-group input:focus ~ label,
.form-group textarea:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
  top: -10px;
  left: 12px;
  font-size: 11px;
  color: var(--primary);
  background: var(--bg-card);
  padding: 0 6px;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: transparent;
}
.btn-submit {
  width: 100%;
  justify-content: center;
  padding: 16px 32px;
  font-size: 16px;
}

/* === FOOTER === */
#footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
}
.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .nav-logo {
  display: inline-block;
  margin-bottom: 16px;
}
.footer-brand p {
  color: var(--text-secondary);
  font-size: 14px;
  font-style: italic;
  line-height: 1.7;
}
.footer-links h4,
.footer-social h4 {
  font-size: 14px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.footer-links ul li { margin-bottom: 8px; }
.footer-links ul li a {
  color: var(--text-secondary);
  font-size: 14px;
  transition: var(--transition);
}
.footer-links ul li a:hover { color: var(--primary); }
.footer-social-icons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-social-icons .social-icon {
  width: 36px;
  height: 36px;
}
.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p {
  color: var(--text-muted);
  font-size: 13px;
}
.heart { color: #ff4757; }

/* === BACK TO TOP === */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-1);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 999;
  box-shadow: 0 4px 20px rgba(108, 92, 231, 0.3);
}
#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(108, 92, 231, 0.5);
}
#back-to-top svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* === FLOATING WHATSAPP BUTTON === */
.wa-float {
  position: fixed;
  bottom: 90px;
  right: 30px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  animation: pulse-wa 2s ease-in-out infinite;
}
.wa-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}
.wa-float svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}
@keyframes pulse-wa {
  0%, 100% { box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7); }
}

/* === RESPONSIVE === */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .hero-bio { margin: 0 auto 32px; }
  .hero-buttons { justify-content: center; }
  .hero-social { justify-content: center; }
  .hero-visual { order: -1; }
  .hero-profile-wrapper { width: 260px; height: 260px; }
  .profile-placeholder { width: 140px; height: 140px; }
  .hero-name { font-size: 42px; }
  .hero-role-wrapper { font-size: 18px; }
  .hero-code-badge { font-size: 11px; padding: 6px 14px; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .about-stats { max-width: 400px; margin: 0 auto; }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-content {
    grid-template-columns: 1fr 1fr;
  }
  .section-title { font-size: 32px; }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(10, 10, 15, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 80px 40px 30px;
    transition: var(--transition-slow);
    border-left: 1px solid var(--border-color);
  }
  .nav-menu.active { right: 0; }
  .hamburger { display: flex; }
  .nav-link { font-size: 16px; }

  .hero-name { font-size: 34px; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; }

  .section { padding: 70px 0; }
  .section-title { font-size: 28px; }
  .skills-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-social-icons { justify-content: center; }
  .footer-bottom { justify-content: center; text-align: center; }

  .contact-form { padding: 24px; }
  .stat-number { font-size: 34px; }

  #back-to-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }
  .wa-float {
    bottom: 75px;
    right: 20px;
    width: 48px;
    height: 48px;
  }
  .wa-float svg {
    width: 24px;
    height: 24px;
  }
}

@media (max-width: 480px) {
  .hero-name { font-size: 28px; }
  .hero-profile-wrapper { width: 200px; height: 200px; }
  .profile-placeholder { width: 110px; height: 110px; }
  .hero-code-badge { font-size: 10px; white-space: normal; }
  .about-stats { gap: 16px; }
  .stat-card { padding: 24px 16px; }
  .stat-number { font-size: 28px; }
  .project-card { max-width: 100%; }
}

@media (max-width: 768px) {
  #cursor-glow { display: none; }
  body { cursor: auto; }
  a, button, .social-icon, .btn { cursor: pointer; }
}
