/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #39ff88;
  --secondary-color: #16c784;
  --accent-color: #8effc1;
  --fire-color: #0c8f57;
  --dark-bg: #020806;
  --darker-bg: #010503;
  --light-bg: #07130d;
  --glass-bg: rgba(57, 255, 136, 0.06);
  --glass-border: rgba(57, 255, 136, 0.18);
  --text-primary: #edfff4;
  --text-secondary: #9ec7ae;
  --text-muted: #4f725e;
  --border-color: #123322;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
  --glow: 0 0 24px rgba(57, 255, 136, 0.28);
  --terminal-bg: rgba(3, 12, 8, 0.92);
  --grid-color: rgba(57, 255, 136, 0.07);
  --font-body: 'Space Grotesk', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: var(--font-body);
  background: var(--dark-bg);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
  position: relative;
  isolation: isolate;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(57, 255, 136, 0.12), transparent 28%),
    radial-gradient(circle at 80% 10%, rgba(22, 199, 132, 0.08), transparent 22%),
    linear-gradient(180deg, #020806 0%, #03110a 45%, #010503 100%);
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black 45%, transparent 100%);
}

body::after {
  opacity: 0.12;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(57, 255, 136, 0.22) 50%,
    transparent 100%
  );
  background-size: 100% 6px;
}

body > * {
  position: relative;
  z-index: 1;
}

::selection {
  background: rgba(57, 255, 136, 0.3);
  color: var(--text-primary);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(3, 12, 8, 0.9);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary-color), var(--fire-color));
  border-radius: 999px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  scroll-margin-top: 100px;
}

/* Loading Screen */
#loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--dark-bg);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loading-content {
  text-align: center;
  color: var(--text-primary);
}

.loading-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid var(--border-color);
  border-top: 3px solid var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Particles Background */
#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background:
    radial-gradient(circle at top, rgba(57, 255, 136, 0.08), transparent 30%),
    linear-gradient(135deg, #020806 0%, #07130d 50%, #020806 100%);
}

/* Voice Intro */
.voice-intro {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.voice-intro.active {
  opacity: 1;
  pointer-events: all;
}

.voice-content {
  background: rgba(2, 10, 6, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(57, 255, 136, 0.28);
  border-radius: 18px;
  padding: 40px;
  text-align: center;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), 0 0 28px rgba(57, 255, 136, 0.2);
  animation: voicePulse 2s infinite;
}

@keyframes voicePulse {
  0%, 100% { box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), 0 0 24px rgba(57, 255, 136, 0.16); }
  50% { box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 34px rgba(57, 255, 136, 0.28); }
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes floating {
  0%, 100% { transform: translateY(0px) rotateX(0deg); }
  50% { transform: translateY(-10px) rotateX(2deg); }
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

.music-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Ripple Effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.voice-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
  animation: voiceIcon 3s ease-in-out infinite;
}

@keyframes voiceIcon {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.voice-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--fire-color));
  border: none;
  padding: 15px 30px;
  border-radius: 10px;
  color: #021109;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  box-shadow: var(--glow);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.voice-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px rgba(57, 255, 136, 0.4);
}

/* Music Control */
.music-control {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
}

.music-btn {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  color: var(--primary-color);
  font-size: 18px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.music-btn:hover {
  background: var(--primary-color);
  color: var(--text-primary);
  transform: scale(1.1) rotate(360deg);
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(1, 8, 5, 0.82);
  backdrop-filter: blur(20px);
  z-index: 1000;
  transition: var(--transition);
  border-bottom: 1px solid rgba(57, 255, 136, 0.12);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  position: relative;
}

.nav-logo {
  position: relative;
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-color);
  cursor: pointer;
  font-family: var(--font-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.logo-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-color);
  opacity: 0.3;
  filter: blur(10px);
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from { opacity: 0.3; }
  to { opacity: 0.6; }
}

.nav-menu {
  display: flex;
  gap: 30px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
  gap: 4px;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(57, 255, 136, 0.18);
  border-radius: 12px;
  background: rgba(57, 255, 136, 0.06);
  box-shadow: inset 0 0 0 1px rgba(57, 255, 136, 0.03);
  transition: var(--transition);
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--primary-color);
  margin: 0 auto;
  transition: 0.3s;
  border-radius: 999px;
}

.nav-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 18px rgba(57, 255, 136, 0.16);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 10% 20%, rgba(57, 255, 136, 0.18), transparent 20%),
    linear-gradient(45deg, rgba(57, 255, 136, 0.08), rgba(22, 199, 132, 0.02));
  animation: backgroundMove 20s ease-in-out infinite;
}

@keyframes backgroundMove {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(5px, -5px) rotate(1deg); }
  50% { transform: translate(-5px, 5px) rotate(-1deg); }
  75% { transform: translate(3px, 3px) rotate(0.5deg); }
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  min-height: 80vh;
}

.hero-text {
  animation: slideInLeft 1s ease-out, floating 6s ease-in-out infinite;
  transform-style: preserve-3d;
}

@keyframes slideInLeft {
  from { transform: translateX(-50px) rotateY(-15deg); opacity: 0; }
  to { transform: translateX(0) rotateY(0deg); opacity: 1; }
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-shadow: 0 0 24px rgba(57, 255, 136, 0.28);
}

.highlight {
  color: var(--primary-color);
  position: relative;
  background: linear-gradient(135deg, var(--primary-color), var(--fire-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
  animation: fireGlow 2s ease-in-out infinite alternate;
}

@keyframes fireGlow {
  from { box-shadow: 0 0 10px var(--fire-color); }
  to { box-shadow: 0 0 16px var(--fire-color), 0 0 28px rgba(57, 255, 136, 0.35); }
}

.hero-subtitle {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--accent-color);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cursor {
  animation: blink 1s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  line-height: 1.7;
  max-width: 560px;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  position: relative;
  z-index: 4;
}

.btn {
  padding: 15px 30px;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--fire-color));
  color: #021109;
  box-shadow: var(--glow);
}

.btn-primary:hover {
  transform: translateY(-3px) rotateX(15deg);
  box-shadow: 0 15px 40px rgba(57, 255, 136, 0.3);
}

.btn-secondary {
  background: rgba(57, 255, 136, 0.05);
  color: var(--text-primary);
  border: 2px solid var(--primary-color);
  box-shadow: inset 0 0 0 1px rgba(57, 255, 136, 0.08);
}

.btn-secondary:hover {
  background: var(--primary-color);
  transform: translateY(-3px) rotateX(15deg);
}

.hero-image {
  animation: slideInRight 1s ease-out;
}

@keyframes slideInRight {
  from { transform: translateX(50px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.image-container {
  position: relative;
  width: 400px;
  height: 400px;
  margin: 0 auto;
}

.profile-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(57, 255, 136, 0.24), transparent 62%);
  border-radius: 50%;
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.3; }
  50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.6; }
}

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid var(--primary-color);
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
  box-shadow: 0 0 0 10px rgba(57, 255, 136, 0.05), 0 0 45px rgba(57, 255, 136, 0.12);
}

.profile-image:hover {
  transform: scale(1.05);
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 3;
}

.floating-code,
.floating-rocket,
.floating-brain {
  position: absolute;
  font-size: 2rem;
  animation: float 6s ease-in-out infinite;
}

.floating-code {
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.floating-rocket {
  top: 20%;
  right: 10%;
  animation-delay: 2s;
}

.floating-brain {
  bottom: 10%;
  left: 20%;
  animation-delay: 4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-10px) rotate(5deg); }
  50% { transform: translateY(-20px) rotate(0deg); }
  75% { transform: translateY(-10px) rotate(-5deg); }
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--text-secondary);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

.scroll-mouse {
  width: 24px;
  height: 36px;
  border: 2px solid rgba(57, 255, 136, 0.45);
  border-radius: 12px;
  margin: 0 auto 10px;
  position: relative;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background: var(--primary-color);
  border-radius: 2px;
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll 2s infinite;
}

@keyframes scroll {
  0% { opacity: 0; transform: translateX(-50%) translateY(0); }
  50% { opacity: 1; transform: translateX(-50%) translateY(8px); }
  100% { opacity: 0; transform: translateX(-50%) translateY(16px); }
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 0 22px rgba(57, 255, 136, 0.18);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.section-line {
  width: 100px;
  height: 3px;
  background: var(--primary-color);
  margin: 0 auto;
  border-radius: 2px;
}

/* About Section */
.about {
  padding: 100px 0;
  background: linear-gradient(180deg, rgba(1, 5, 3, 0.98), rgba(3, 12, 8, 0.98));
}

.about-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text h3 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.about-text p {
  margin-bottom: 20px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.stat {
  text-align: center;
  padding: 20px;
  background: linear-gradient(180deg, rgba(5, 18, 11, 0.95), rgba(2, 10, 6, 0.96));
  border-radius: 12px;
  border: 1px solid rgba(57, 255, 136, 0.14);
  box-shadow: inset 0 0 0 1px rgba(57, 255, 136, 0.04);
}

.stat h4 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.stat p {
  color: var(--text-secondary);
  font-weight: 500;
}

.about-image {
  position: relative;
}

.image-wrapper {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
}

.image-wrapper img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.image-wrapper:hover img {
  transform: scale(1.05);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(57, 255, 136, 0.08), rgba(22, 199, 132, 0.04));
}

/* Skills Section */
.skills {
  padding: 100px 0;
  background: linear-gradient(180deg, #020806 0%, #04100a 100%);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.skill-category {
  background: linear-gradient(180deg, rgba(5, 18, 11, 0.96), rgba(2, 10, 6, 0.98));
  padding: 30px;
  border-radius: 15px;
  border: 1px solid rgba(57, 255, 136, 0.14);
  transition: transform 0.3s ease;
  box-shadow: inset 0 0 0 1px rgba(57, 255, 136, 0.04);
  position: relative;
  overflow: hidden;
}

.skill-category::before {
  content: '> modules.sys';
  position: absolute;
  top: 14px;
  right: 18px;
  color: rgba(142, 255, 193, 0.45);
  font-size: 0.7rem;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
}

.skill-category:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.skill-category h3 {
  color: var(--primary-color);
  margin-bottom: 20px;
  font-size: 1.3rem;
}

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

.skill-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: 15px;
  padding: 20px;
  transition: var(--transition);
  transform-style: preserve-3d;
  position: relative;
  overflow: hidden;
}

.skill-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(57, 255, 136, 0.12), transparent);
  transition: left 0.5s;
}

.skill-item:hover::before {
  left: 100%;
}

.skill-item:hover {
  transform: translateY(-5px) rotateX(5deg);
  box-shadow: 0 10px 30px rgba(57, 255, 136, 0.14);
}

.skill-name {
  font-weight: 500;
  color: var(--text-primary);
  transition: var(--transition);
}

.skill-item:hover .skill-name {
  color: var(--primary-color);
  transform: translateZ(10px);
}

.skill-bar {
  width: 150px;
  height: 8px;
  background: var(--border-color);
  border-radius: 4px;
  overflow: hidden;
  transform-style: preserve-3d;
}

.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 4px;
  transition: width 1s ease;
  position: relative;
}

.skill-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: shimmer 2s infinite;
}

/* Portfolio Section */
.portfolio {
  padding: 100px 0;
  background: linear-gradient(180deg, rgba(1, 5, 3, 0.98), rgba(4, 16, 10, 0.98));
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.portfolio-item {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(57, 255, 136, 0.14);
  border-radius: 20px;
  overflow: hidden;
  transition: var(--transition);
  transform-style: preserve-3d;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(57, 255, 136, 0.03);
}

.portfolio-item:hover {
  transform: translateY(-10px) rotateX(10deg) rotateY(5deg);
  box-shadow: 0 20px 60px rgba(57, 255, 136, 0.14);
}

.portfolio-image {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.portfolio-item:hover .portfolio-image img {
  transform: scale(1.05) rotateY(5deg);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-links {
  display: flex;
  gap: 20px;
}

.portfolio-link {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: #021109;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  transition: var(--transition);
  transform-style: preserve-3d;
}

.portfolio-link:hover {
  transform: scale(1.1) rotateX(15deg);
}

.portfolio-content {
  padding: 25px;
}

.portfolio-content h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.portfolio-content p {
  color: var(--text-secondary);
  margin-bottom: 15px;
  line-height: 1.6;
}

.portfolio-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portfolio-tags span {
  background: var(--primary-color);
  color: #021109;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Contact Section */
.contact {
  padding: 100px 0;
  background: linear-gradient(180deg, #020806 0%, #05110b 100%);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(5, 18, 11, 0.95), rgba(2, 10, 6, 0.98));
  border-radius: 10px;
  border: 1px solid rgba(57, 255, 136, 0.14);
  box-shadow: inset 0 0 0 1px rgba(57, 255, 136, 0.04);
}

.contact-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  color: #021109;
}

.contact-details h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: var(--text-primary);
}

.contact-details p {
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.contact-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.contact-link:hover {
  color: var(--secondary-color);
}

.contact-form {
  background: linear-gradient(180deg, rgba(5, 18, 11, 0.94), rgba(2, 10, 6, 0.98));
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(57, 255, 136, 0.14);
  padding: 40px;
  border-radius: 20px;
  transform-style: preserve-3d;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.contact-form::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(57, 255, 136, 0.06), transparent);
  transform: rotate(45deg);
  transition: all 0.5s ease;
  opacity: 0;
}

.contact-form:hover::before {
  opacity: 1;
  animation: rotate 3s linear infinite;
}

.contact-form:hover {
  transform: translateY(-5px) rotateX(5deg);
  box-shadow: 0 15px 40px rgba(57, 255, 136, 0.12);
}

.form-group {
  margin-bottom: 20px;
  transform-style: preserve-3d;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 15px;
  background: rgba(57, 255, 136, 0.03);
  border: 1px solid rgba(57, 255, 136, 0.1);
  border-radius: 12px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 1rem;
  transition: var(--transition);
  backdrop-filter: blur(10px);
  transform-style: preserve-3d;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 20px rgba(57, 255, 136, 0.22);
  transform: translateZ(5px);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-message {
  margin-top: 20px;
  padding: 10px;
  border-radius: 5px;
  text-align: center;
  font-weight: 500;
}

.form-whatsapp-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, var(--primary-color), var(--fire-color));
  color: #021109;
  box-shadow: 0 0 16px rgba(57, 255, 136, 0.16);
}

.form-whatsapp-link:hover {
  transform: translateY(-1px);
}

.form-message.success {
  background: rgba(0, 255, 0, 0.1);
  color: #00ff00;
  border: 1px solid #00ff00;
}

.form-message.error {
  background: rgba(255, 0, 0, 0.1);
  color: #ff0000;
  border: 1px solid #ff0000;
}

/* Chatbot */
.chatbot {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.chatbot-toggle {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #021109;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: var(--glow);
  transition: all 0.3s ease;
  border: 1px solid rgba(57, 255, 136, 0.18);
}

.chatbot-toggle:hover {
  transform: scale(1.1);
}

.chatbot-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 350px;
  height: 500px;
  background: linear-gradient(180deg, rgba(5, 18, 11, 0.98), rgba(2, 10, 6, 0.98));
  border-radius: 18px;
  border: 1px solid rgba(57, 255, 136, 0.16);
  display: none;
  flex-direction: column;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.chatbot.active .chatbot-window {
  display: flex;
}

.chatbot-header {
  padding: 20px;
  background: linear-gradient(90deg, rgba(57, 255, 136, 0.16), rgba(12, 143, 87, 0.36));
  border-radius: 18px 18px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-primary);
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chatbot-close {
  cursor: pointer;
  font-size: 1.5rem;
}

.chatbot-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.message {
  max-width: 80%;
  animation: messageSlide 0.3s ease;
}

@keyframes messageSlide {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.bot-message {
  align-self: flex-start;
}

.user-message {
  align-self: flex-end;
}

.message-content {
  padding: 12px 18px;
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.4;
}

.bot-message .message-content {
  background: rgba(57, 255, 136, 0.08);
  color: var(--text-primary);
  border: 1px solid rgba(57, 255, 136, 0.1);
}

.user-message .message-content {
  background: var(--primary-color);
  color: #021109;
}

.chatbot-input {
  padding: 20px;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 10px;
}

.chatbot-input input {
  flex: 1;
  padding: 12px 18px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background: var(--darker-bg);
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.chatbot-input input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.chatbot-input button {
  width: 45px;
  height: 45px;
  background: var(--primary-color);
  border: none;
  border-radius: 10px;
  color: #021109;
  cursor: pointer;
  transition: all 0.3s ease;
}

.chatbot-input button:hover {
  transform: scale(1.1);
}

/* Footer */
.footer {
  background: linear-gradient(180deg, rgba(1, 5, 3, 0.98), rgba(1, 5, 3, 1));
  padding: 60px 0 30px;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 30px;
}

.footer-logo {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-color);
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-social {
  display: flex;
  gap: 15px;
}

.social-link {
  width: 45px;
  height: 45px;
  background: var(--light-bg);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: var(--primary-color);
  color: #021109;
  transform: translateY(-3px);
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 10px;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-primary);
  text-decoration: none;
  transition: all 0.3s ease;
  transform-style: preserve-3d;
}

.social-icon:hover {
  background: var(--secondary-color);
  transform: scale(1.15) rotateX(15deg);
  box-shadow: 0 8px 20px rgba(57, 255, 136, 0.24);
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
}

.footer-bottom i {
  color: var(--accent-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: calc(100% + 14px);
    right: 0;
    width: min(280px, calc(100vw - 30px));
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(57, 255, 136, 0.16);
    background: linear-gradient(180deg, rgba(5, 18, 11, 0.98), rgba(2, 10, 6, 0.98));
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), 0 0 24px rgba(57, 255, 136, 0.12);
    backdrop-filter: blur(18px);
    flex-direction: column;
    gap: 12px;
    z-index: 1001;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 14px;
    border: 1px solid rgba(57, 255, 136, 0.14);
    border-radius: 12px;
    background: rgba(57, 255, 136, 0.05);
    color: var(--text-primary);
    text-align: center;
    box-shadow: inset 0 0 0 1px rgba(57, 255, 136, 0.02);
  }

  .nav-menu .nav-link::after {
    display: none;
  }

  .nav-menu .nav-link:hover,
  .nav-menu .nav-link.active {
    background: linear-gradient(135deg, rgba(57, 255, 136, 0.18), rgba(12, 143, 87, 0.2));
    color: var(--primary-color);
    box-shadow: 0 0 18px rgba(57, 255, 136, 0.12);
  }

  .nav-toggle {
    display: flex;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 30px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.5rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .image-container {
    width: 300px;
    height: 300px;
  }

  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
  }

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

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

  .contact-form {
    padding: 30px 20px;
  }

  .chatbot-window {
    width: 300px;
    height: 400px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .container {
    padding: 0 15px;
  }

  .nav-container {
    padding: 0 15px;
  }
}

/* Image */

.image-box {
  position: relative;
}

.image-box img {
  width: 320px;
  border-radius: 10px;
}

/* Responsive */

@media(max-width: 900px) {
  .main {
    flex-direction: column;
    text-align: center;
  }

  .image-box {
    margin-top: 40px;
  }

  .sidebar {
    display: none;
  }
}
