/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Colors */
  --bg-primary: #030712;
  --bg-secondary: #0b1528;
  --bg-tertiary: #111d35;
  --color-text-main: #f3f4f6;
  --color-text-muted: #9ca3af;
  
  /* Neon Blue Accents */
  --neon-blue: #00f2fe;
  --neon-blue-glow: rgba(0, 242, 254, 0.4);
  --neon-purple: #9b5de5;
  --neon-purple-glow: rgba(155, 93, 229, 0.4);
  --neon-cyan: #05f3ff;
  
  /* Gradients */
  --grad-primary: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  --grad-dark: linear-gradient(180deg, #030712 0%, #080f1e 100%);
  --grad-card: linear-gradient(145deg, rgba(11, 21, 40, 0.8) 0%, rgba(17, 29, 53, 0.4) 100%);
  
  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--neon-blue) var(--bg-primary);
}

/* Sleek custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-secondary);
  border: 2px solid var(--bg-primary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--neon-blue);
  box-shadow: 0 0 10px var(--neon-blue-glow);
}

body {
  background-color: var(--bg-primary);
  color: var(--color-text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Three.js Canvas container background */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: all; /* Allow mouse move tracking */
}

section {
  position: relative;
  min-height: 100vh;
  padding: 100px 10%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  z-index: 1;
}

/* Common Section Headers */
.section-header {
  margin-bottom: 50px;
  opacity: 0;
  transform: translateY(30px);
}

.section-subtitle {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--neon-blue);
  text-shadow: 0 0 8px var(--neon-blue-glow);
  font-weight: 600;
  margin-bottom: 10px;
  display: inline-block;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: #fff;
}

.section-title span {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   NAVIGATION BAR (Glassmorphism & animated indicator)
   ========================================================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 10%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  background: rgba(3, 7, 18, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: padding var(--transition-normal);
}

header.scrolled {
  padding: 15px 10%;
  background: rgba(3, 7, 18, 0.85);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid rgba(0, 242, 254, 0.1);
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  transition: transform var(--transition-fast);
}

.logo span {
  color: var(--neon-blue);
  text-shadow: 0 0 10px var(--neon-blue-glow);
}

.logo:hover {
  transform: scale(1.05);
}

.nav-container {
  position: relative;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 30px;
  position: relative;
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: 8px 16px;
  transition: color var(--transition-fast);
  position: relative;
  z-index: 2;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

/* Slide Indicator */
.nav-indicator {
  position: absolute;
  height: 100%;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid var(--neon-blue);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.25);
  border-radius: 8px;
  top: 0;
  left: 0;
  width: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 1;
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #fff;
  border-radius: 3px;
  transition: var(--transition-normal);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  padding-top: 120px;
}

.hero-content {
  flex: 1.2;
  max-width: 650px;
  z-index: 2;
}

.hero-tag {
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.2);
  color: var(--neon-blue);
  padding: 8px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-family: var(--font-heading);
  letter-spacing: 1px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 25px;
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.05);
  opacity: 0;
  transform: translateY(30px);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 4.2rem;
  font-weight: 800;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 25px;
  opacity: 0;
  transform: translateY(30px);
}

.hero-title span {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 40px;
  line-height: 1.8;
  opacity: 0;
  transform: translateY(30px);
}

.hero-btns {
  display: flex;
  gap: 20px;
  opacity: 0;
  transform: translateY(30px);
}

/* Premium Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  gap: 10px;
}

.btn-primary {
  background: var(--grad-primary);
  color: #030712;
  border: none;
  box-shadow: 0 5px 20px rgba(0, 242, 254, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 242, 254, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
}

.btn-secondary:hover {
  background: rgba(0, 242, 254, 0.05);
  border-color: var(--neon-blue);
  color: var(--neon-blue);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 242, 254, 0.15);
}

/* Empty right side container for visual weight (since 3D canvas is full-screen background but interactive) */
.hero-visual {
  flex: 0.8;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  pointer-events: none;
}

/* Scroll down hint */
.scroll-down {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  text-decoration: none;
  z-index: 2;
}

.scroll-indicator {
  width: 24px;
  height: 40px;
  border: 2px solid var(--color-text-muted);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background-color: var(--neon-blue);
  border-radius: 2px;
  animation: scrollAnim 1.8s infinite;
}

@keyframes scrollAnim {
  0% { transform: translate(-50%, 0); opacity: 1; }
  50% { transform: translate(-50%, 15px); opacity: 0.2; }
  100% { transform: translate(-50%, 0); opacity: 1; }
}

/* ==========================================================================
   ABOUT / BIO SECTION (Glassmorphism card & statistics grid)
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.about-left {
  position: relative;
  display: flex;
  justify-content: center;
  opacity: 0;
  transform: translateX(-50px);
}

.avatar-wrapper {
  position: relative;
  width: 320px;
  height: 320px;
  border-radius: 24px;
  background: var(--grad-card);
  padding: 10px;
  border: 1px solid rgba(0, 242, 254, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}

.avatar-glow {
  position: absolute;
  width: 150%;
  height: 150%;
  background: radial-gradient(circle, var(--neon-blue-glow) 0%, transparent 60%);
  top: -25%;
  left: -25%;
  animation: rotateGlow 10s linear infinite;
  pointer-events: none;
}

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

.avatar-img-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  background: linear-gradient(135deg, #0b1528 0%, #152542 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: relative;
}

.avatar-img-placeholder svg {
  width: 80px;
  height: 80px;
  color: var(--neon-blue);
  filter: drop-shadow(0 0 10px var(--neon-blue-glow));
  margin-bottom: 15px;
}

.avatar-img-placeholder span {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: #fff;
  font-weight: 600;
}

.about-right {
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateX(50px);
}

.bio-text {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 30px;
}

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

.stat-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all var(--transition-normal);
}

.stat-item:hover {
  background: rgba(0, 242, 254, 0.03);
  border-color: rgba(0, 242, 254, 0.2);
  transform: translateY(-5px);
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: block;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 5px;
}

/* ==========================================================================
   SKILLS & SERVICES SECTION (Interactive items & progress circles)
   ========================================================================== */
.skills-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}

.skills-left {
  opacity: 0;
  transform: translateY(40px);
}

.skills-right {
  opacity: 0;
  transform: translateY(40px);
}

.skills-desc {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: 35px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--grad-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 25px;
  transition: all var(--transition-normal);
}

.service-card:hover {
  border-color: rgba(0, 242, 254, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 242, 254, 0.05);
}

.service-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: rgba(0, 242, 254, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--neon-blue);
}

.service-icon svg {
  width: 24px;
  height: 24px;
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Skills list details */
.skills-list {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.skill-item {
  width: 100%;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.skill-name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.skill-percentage {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--neon-blue);
}

.skill-bar-bg {
  width: 100%;
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.skill-bar {
  height: 100%;
  width: 0; /* Animated via GSAP */
  background: var(--grad-primary);
  border-radius: 10px;
  box-shadow: 0 0 10px var(--neon-blue-glow);
  transition: width 1.5s cubic-bezier(0.1, 1, 0.1, 1);
}

/* ==========================================================================
   PORTFOLIO / PROJECTS SECTION (3D Hover cards)
   ========================================================================== */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 45px;
  list-style: none;
  opacity: 0;
  transform: translateY(20px);
}

.filter-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--color-text-muted);
  padding: 8px 20px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--grad-primary);
  color: #030712;
  border-color: transparent;
  box-shadow: 0 0 15px var(--neon-blue-glow);
}

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

.project-card {
  background: var(--grad-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
  transform-style: preserve-3d;
  transform: perspective(1000px);
  opacity: 0;
  transform: translateY(50px);
}

.project-card:hover {
  border-color: rgba(0, 242, 254, 0.35);
  box-shadow: 0 15px 35px rgba(0, 242, 254, 0.08);
}

.project-img-wrapper {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: #0d1a30;
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.project-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  transition: transform 0.5s ease;
}

.project-card:hover .project-img-placeholder {
  transform: scale(1.05);
}

.project-img-placeholder svg {
  width: 60px;
  height: 60px;
  color: var(--neon-blue);
  filter: drop-shadow(0 0 8px var(--neon-blue-glow));
}

.project-img-placeholder .tech-watermark {
  position: absolute;
  bottom: 15px;
  right: 15px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.05);
  font-weight: 800;
  letter-spacing: 2px;
}

.project-details {
  padding: 25px;
  transform: translateZ(30px); /* 3D depth pop out */
}

.project-category {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--neon-blue);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  margin-bottom: 10px;
}

.project-title {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 12px;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.project-tags span {
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 4px 10px;
  border-radius: 4px;
  color: var(--color-text-muted);
}

.project-links {
  display: flex;
  gap: 15px;
}

.project-link {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-family: var(--font-heading);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition-fast);
}

.project-link:hover {
  color: var(--neon-blue);
}

.project-link svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   CONTACT SECTION (Glassmorphism form with glowing input focus)
   ========================================================================== */
.contact-container {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: start;
}

.contact-left {
  opacity: 0;
  transform: translateX(-40px);
}

.contact-title-main {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.contact-desc {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 40px;
}

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

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 20px;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--neon-blue);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.05);
}

.contact-info-icon svg {
  width: 20px;
  height: 20px;
}

.contact-info-text h4 {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--color-text-muted);
  letter-spacing: 1px;
}

.contact-info-text p {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
}

/* Contact Form styling */
.contact-right {
  opacity: 0;
  transform: translateX(40px);
}

.contact-form-wrapper {
  background: var(--grad-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 25px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group-full {
  grid-column: span 2;
}

.form-group label {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.form-control {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 14px 20px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  outline: none;
}

.form-control:focus {
  background: rgba(0, 242, 254, 0.02);
  border-color: var(--neon-blue);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.15);
}

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

.submit-btn {
  width: 100%;
}

/* Success notification message styling */
.form-status {
  margin-top: 15px;
  font-size: 0.95rem;
  font-family: var(--font-heading);
  text-align: center;
  opacity: 0;
  height: 0;
  overflow: hidden;
  transition: all var(--transition-normal);
}

.form-status.success {
  opacity: 1;
  height: auto;
  color: #00ff88;
  text-shadow: 0 0 8px rgba(0, 255, 136, 0.3);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  background: #02050e;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 40px 10%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
}

.footer-socials {
  display: flex;
  gap: 20px;
}

.social-link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: all var(--transition-normal);
  text-decoration: none;
}

.social-link:hover {
  background: var(--grad-primary);
  color: #030712;
  border-color: transparent;
  transform: translateY(-5px);
  box-shadow: 0 5px 15px var(--neon-blue-glow);
}

.social-link svg {
  width: 18px;
  height: 18px;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-align: center;
}

.footer-copy span {
  color: var(--neon-blue);
  font-weight: 600;
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
  section {
    padding: 80px 8%;
  }
  
  .hero-title {
    font-size: 3.5rem;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .about-left {
    order: 2;
  }
  
  .about-right {
    order: 1;
  }
  
  .skills-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .contact-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  header {
    padding: 20px 5%;
  }
  
  header.scrolled {
    padding: 15px 5%;
  }

  .menu-toggle {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(8, 15, 30, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 25px;
    transition: right 0.4s cubic-bezier(0.1, 1, 0.1, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    border-left: 1px solid rgba(0, 242, 254, 0.1);
    z-index: 999;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .nav-links a {
    font-size: 1.2rem;
    padding: 10px;
  }
  
  .nav-indicator {
    display: none; /* Hide floating bar on mobile menu */
  }

  /* Hamburger transform when menu toggled */
  .menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 140px;
    height: auto;
    min-height: 100vh;
  }
  
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-btns {
    width: 100%;
    justify-content: center;
    flex-direction: column;
    gap: 15px;
  }
  
  .hero-visual {
    display: none; /* Hide visual placeholder on mobile for performance & space */
  }
  
  .section-title {
    font-size: 2.2rem;
  }
  
  .avatar-wrapper {
    width: 260px;
    height: 260px;
  }
  
  .about-stats {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .form-group-full {
    grid-column: span 1;
  }
  
  .contact-form-wrapper {
    padding: 25px;
  }
}
