:root {
  /* Color Palette - Neural Network Theme */
  --bg-primary: #000000;
  --bg-secondary: #0a0a0a;
  --bg-tertiary: #111111;
  
  --text-primary: #ffffff;
  --text-secondary: #b4b4b4;
  --text-muted: #6b6b6b;
  
  --accent-primary: #00f0ff;
  --accent-secondary: #9b5cff;
  --accent-tertiary: #00ff88;
  
  --gradient-1: linear-gradient(135deg, #47caebc9 25%, #00344c 100%);
  --gradient-2: linear-gradient(135deg, #00577a 0%, #f87f29 100%);
  --gradient-3: linear-gradient(135deg, #000000 0%, #0df488 100%);
  
  /* Glass morphism */
  --glass-bg: rgba(17, 17, 17, 0.7);  
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px 0 rgba(0, 240, 255, 0.1);
  
  /* Typography */
  --font-display: 'Syne', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font-body: 'Space Mono', monospace;
  
  /* Spacing */
  --section-padding: 120px;
  --container-width: 1200px;
  
  /* Animations */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.4s ease;
  --transition-slow: 0.6s ease;
}

/* UNIVERSAL SCALE - 10% REDUCTION */
html {
  zoom: 0.9; /* Works in most browsers */
  -moz-transform: scale(0.9);
  -moz-transform-origin: 0 0;
}

/* Fallback for browsers that don't support zoom */
@supports not (zoom: 1) {
  html {
    transform: scale(0.9);
    transform-origin: 0 0;
    width: 111.111%; /* Compensates for the scale (100/0.9) */
  }
  
  body {
    width: 90%;
    margin: 0 auto;
  }
}



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

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

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

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

/* Neural Network Canvas Background */
#neuralCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  opacity: 0.4;
}

/* Noise Overlay */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* Navigation Bar */
.nav-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  transition: all var(--transition-medium);
}

.nav-bar.scrolled {
  padding: 15px 40px;
  background: rgba(0, 0, 0, 0.95);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.logo-bracket {
  color: var(--accent-primary);
  font-weight: 700;
}

.logo-text {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 40px;
  align-items: center;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.5px;
  position: relative;
  transition: color var(--transition-fast);
  text-transform: uppercase;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-1);
  transition: width var(--transition-medium);
}

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

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  width: 25px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-fast);
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 40px 60px;
  position: relative;
}

.hero-container {
  max-width: var(--container-width);
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-content {
  animation: fadeInUp 1s ease-out;
}

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

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 50px;
  margin-bottom: 30px;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-tertiary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.2);
  }
}

.status-text {
  color: var(--accent-tertiary);
  font-family: var(--font-mono);
}

.hero-title {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.title-line {
  display: block;
}

.gradient-text {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--accent-primary);
  margin-bottom: 30px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.subtitle-prefix {
  color: var(--accent-secondary);
}

.typing-text {
  min-width: 200px;
}

.cursor {
  color: var(--accent-primary);
  animation: blink 1s step-end infinite;
}

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

.hero-description {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 550px;
}

.hero-description strong {
  color: var(--text-primary);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 20px;
  margin-bottom: 50px;
}

.btn {
  padding: 14px 32px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  border: none;
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: left var(--transition-medium);
}

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

.btn-primary {
  background: var(--gradient-1);
  color: var(--bg-primary);
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(0, 240, 255, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--glass-border);
}

.btn-secondary:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 4px 20px rgba(0, 240, 255, 0.2);
}

.hero-stats {
  display: flex;
  gap: 30px;
  align-items: center;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--glass-border);
}

/* Hero Visual */
.hero-visual {
  position: relative;
  animation: fadeInRight 1s ease-out;
}

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

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

.profile-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: var(--gradient-1);
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.3;
  animation: glowPulse 3s ease-in-out infinite;
}

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

.profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--glass-border);
  position: relative;
  z-index: 1;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.profile-frame {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: var(--gradient-1);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 2px;
  animation: rotate 10s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.floating-card {
  position: absolute;
  padding: 12px 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  animation: float 3s ease-in-out infinite;
}

.card-1 {
  top: 10%;
  right: -10%;
  animation-delay: 0s;
}

.card-2 {
  bottom: 20%;
  left: -15%;
  animation-delay: 1s;
}

.card-3 {
  top: 50%;
  right: -15%;
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.card-icon {
  font-size: 24px;
}

.card-text {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0.6;
  animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(10px);
  }
}

.scroll-line {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent-primary), transparent);
}

.scroll-text {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Section Common Styles */
section {
  padding: var(--section-padding) 40px;
  position: relative;
}

.section-container {
  max-width: var(--container-width);
  margin: 0 auto;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 60px;
}

.section-number {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--accent-primary);
  font-weight: 700;
}

.section-title {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  color: var(--text-primary);
}

.section-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, var(--glass-border), transparent);
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 60px;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.text-block {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.lead-text {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text-primary);
}

.text-block p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.text-block strong {
  color: var(--accent-primary);
  font-weight: 600;
}

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

.expertise-item {
  padding: 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  transition: all var(--transition-medium);
}

.expertise-item:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
  box-shadow: 0 10px 40px rgba(0, 240, 255, 0.2);
}

.expertise-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.expertise-item h4 {
  font-family: var(--font-display);
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.expertise-item p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.about-sidebar {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.info-card {
  padding: 30px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
}

.info-title {
  font-family: var(--font-display);
  font-size: 20px;
  margin-bottom: 20px;
  color: var(--text-primary);
}

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

.info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--glass-border);
}

.info-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.info-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-mono);
}

.info-value {
  font-size: 14px;
  color: var(--text-primary);
}

.info-value a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.info-value a:hover {
  color: var(--accent-secondary);
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-primary);
  color: var(--text-primary);
  transform: translateX(5px);
}

/* Skills Section */
.skills-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.skill-category {
  padding: 30px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  transition: all var(--transition-medium);
}

.skill-category:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 10px 40px rgba(0, 240, 255, 0.15);
}

.category-title {
  font-family: var(--font-display);
  font-size: 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
}

.category-icon {
  font-size: 24px;
}

.skill-bars {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.skill-bar {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.skill-name {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
}

.skill-value {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-primary);
  font-weight: 600;
}

.skill-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.skill-fill {
  height: 100%;
  background: var(--gradient-1);
  border-radius: 10px;
  width: 0;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

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

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

/* Projects Section */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.project-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  transition: all var(--transition-medium);
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-primary);
  box-shadow: 0 20px 60px rgba(0, 240, 255, 0.2);
}

.project-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  background: var(--bg-tertiary);
}

.project-content {
  padding: 30px;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 16px;
}

.project-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.project-link {
  color: var(--accent-primary);
  font-size: 20px;
  transition: all var(--transition-fast);
}

.project-link:hover {
  transform: translateX(5px) translateY(-5px);
}

.project-description {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

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

.project-tag {
  padding: 6px 12px;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid rgba(0, 240, 255, 0.3);
  border-radius: 6px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Timeline Section */
.timeline {
  position: relative;
  padding-left: 60px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-primary), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 60px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -48px;
  top: 0;
  width: 20px;
  height: 20px;
}

.marker-dot {
  width: 100%;
  height: 100%;
  background: var(--accent-primary);
  border-radius: 50%;
  border: 3px solid var(--bg-primary);
  position: relative;
  z-index: 1;
}

.marker-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: var(--accent-primary);
  border-radius: 50%;
  animation: pulseRing 2s infinite;
}

@keyframes pulseRing {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.8;
  }
  100% {
    transform: translate(-50%, -50%) scale(2);
    opacity: 0;
  }
}

.timeline-content {
  padding: 30px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  transition: all var(--transition-medium);
}

.timeline-content:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 10px 40px rgba(0, 240, 255, 0.15);
}

.timeline-year {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 8px;
}

.timeline-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.timeline-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.timeline-institution {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

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

.timeline-tag {
  padding: 4px 10px;
  background: rgba(255, 0, 255, 0.1);
  border: 1px solid rgba(255, 0, 255, 0.3);
  border-radius: 6px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--accent-secondary);
}

/* Contact Section */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}

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

.contact-heading {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
}

.contact-description {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--transition-medium);
}

.contact-method:hover {
  border-color: var(--accent-primary);
  transform: translateX(10px);
  box-shadow: 0 10px 40px rgba(0, 240, 255, 0.2);
}

.method-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 240, 255, 0.1);
  border-radius: 10px;
  color: var(--accent-primary);
}

.method-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.method-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-mono);
}

.method-value {
  font-size: 14px;
  color: var(--text-primary);
}

/* Contact Form */
.contact-form {
  padding: 40px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
}

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(0, 240, 255, 0.1);
}

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

.form-submit {
  width: 100%;
  padding: 16px;
  background: var(--gradient-1);
  border: none;
  border-radius: 8px;
  color: var(--bg-primary);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
}

.form-submit::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left var(--transition-medium);
}

.form-submit:hover::before {
  left: 100%;
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 240, 255, 0.4);
}

/* Footer */
.footer {
  padding: 60px 40px 30px;
  border-top: 1px solid var(--glass-border);
  background: var(--bg-secondary);
}

.footer-container {
  max-width: var(--container-width);
  margin: 0 auto;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-logo {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.footer-links {
  display: flex;
  gap: 30px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  transition: color var(--transition-fast);
}

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

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

.footer-copyright {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.heart {
  color: var(--accent-secondary);
  animation: heartbeat 1.5s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  10% { transform: scale(1.2); }
  20% { transform: scale(1); }
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 16px 24px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 13px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-medium);
  z-index: 2000;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.success {
  border-color: var(--accent-tertiary);
}

.toast.error {
  border-color: #ff3366;
}

/* Responsive Design */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  
  .profile-container {
    width: 300px;
    height: 300px;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .skills-container {
    grid-template-columns: 1fr;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(20px);
    padding: 30px;
    gap: 20px;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .hero-title {
    font-size: 48px;
  }
  
  .section-title {
    font-size: 32px;
  }
  
  .expertise-grid {
    grid-template-columns: 1fr;
  }
  
  section {
    padding: 60px 20px;
  }
  
  .nav-bar {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 36px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .profile-container {
    width: 250px;
    height: 250px;
  }
  
  .floating-card {
    display: none;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }
  
  .stat-divider {
    display: none;
  }
}

/* Scroll Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}





.project-header {
  display: flex;
  flex-direction: column;   /* 👈 THIS is the main fix */
  align-items: flex-start;
}

.project-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

/* Make buttons small + clean */

.project-btn {
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  border: 1px solid #00f0ff;
  color: #00f0ff;
  background: transparent;
  text-decoration: none;
  transition: 0.25s;
}

.project-btn.live {
  border-color: #ff00ff;
  color: #ff00ff;
}

.project-btn:hover {
  background: #00f0ff;
  color: black;
  box-shadow: 0 0 8px #00f0ff;
}

.project-btn.live:hover {
  background: #ff00ff;
  color: black;
  box-shadow: 0 0 8px #ff00ff;
}



/* ============================================
   COMPLETE RESPONSIVE PATCH - ADD THIS
   ============================================ */

/* Fix project header buttons - already good */
.project-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.project-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.project-btn {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 12px;
  border: 1px solid #00f0ff;
  color: #00f0ff;
  background: transparent;
  text-decoration: none;
  transition: 0.25s;
  white-space: nowrap;
}

/* ===== ENHANCED RESPONSIVE BREAKPOINTS ===== */

/* Extra large devices (1400px and up) */
@media (min-width: 1400px) {
  :root {
    --container-width: 1320px;
    --section-padding: 140px;
  }
  
  .hero-title {
    font-size: 82px;
  }
  
  .profile-container {
    width: 450px;
    height: 450px;
  }
  
  .section-title {
    font-size: 56px;
  }
  
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
}

/* Large devices (1200px to 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
  :root {
    --container-width: 1140px;
  }
  
  .hero-title {
    font-size: 64px;
  }
  
  .profile-container {
    width: 360px;
    height: 360px;
  }
}

/* Medium-large devices (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
  :root {
    --container-width: 960px;
    --section-padding: 100px;
  }
  
  .hero-title {
    font-size: 56px;
  }
  
  .hero-container {
    gap: 40px;
  }
  
  .profile-container {
    width: 320px;
    height: 320px;
  }
  
  .floating-card {
    transform: scale(0.9);
  }
  
  .card-1 {
    right: -5%;
  }
  
  .card-2 {
    left: -8%;
  }
  
  .expertise-grid {
    gap: 15px;
  }
}

/* Tablets (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
  :root {
    --container-width: 720px;
    --section-padding: 80px;
  }
  
  .nav-bar {
    padding: 15px 30px;
  }
  
  .nav-links {
    gap: 25px;
  }
  
  .hero-title {
    font-size: 48px;
  }
  
  .hero-subtitle {
    font-size: 18px;
  }
  
  .profile-container {
    width: 280px;
    height: 280px;
  }
  
  .floating-card {
    padding: 8px 14px;
    font-size: 12px;
  }
  
  .card-1 {
    top: 5%;
    right: 0;
  }
  
  .card-2 {
    bottom: 15%;
    left: -5%;
  }
  
  .card-3 {
    display: none; /* Hide third card on tablets */
  }
  
  .section-title {
    font-size: 36px;
  }
  
  .expertise-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .project-content {
    padding: 20px;
  }
  
  .project-title {
    font-size: 20px;
  }
  
  .timeline {
    padding-left: 40px;
  }
  
  .contact-form {
    padding: 30px;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* Large phones (576px to 767px) */
@media (min-width: 576px) and (max-width: 767px) {
  :root {
    --container-width: 540px;
    --section-padding: 70px;
  }
  
  .hero-title {
    font-size: 42px;
  }
  
  .hero-subtitle {
    font-size: 16px;
    flex-wrap: wrap;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 15px;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .profile-container {
    width: 260px;
    height: 260px;
  }
  
  .floating-card {
    display: none; /* Hide floating cards on mobile */
  }
  
  .section-title {
    font-size: 32px;
  }
  
  .section-header {
    flex-wrap: wrap;
  }
  
  .expertise-item {
    padding: 20px;
  }
  
  .project-content {
    padding: 20px;
  }
  
  .project-title {
    font-size: 20px;
  }
  
  .project-description {
    font-size: 13px;
  }
  
  .timeline {
    padding-left: 30px;
  }
  
  .timeline-content {
    padding: 20px;
  }
  
  .timeline-title {
    font-size: 20px;
  }
  
  .contact-method {
    padding: 15px;
    gap: 15px;
  }
  
  .method-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  
  .contact-form {
    padding: 25px;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
  }
}

/* Small phones (up to 575px) */
@media (max-width: 575px) {
  :root {
    --section-padding: 60px;
  }
  
  .nav-bar {
    padding: 12px 15px;
  }
  
  .nav-logo {
    font-size: 20px;
  }
  
  .hero-section {
    padding: 80px 15px 40px;
  }
  
  .hero-title {
    font-size: 36px;
  }
  
  .hero-subtitle {
    font-size: 14px;
    flex-wrap: wrap;
  }
  
  .typing-text {
    min-width: 150px;
  }
  
  .hero-description {
    font-size: 14px;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
    padding: 12px 24px;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 15px;
  }
  
  .stat-divider {
    display: none;
  }
  
  .profile-container {
    width: 220px;
    height: 220px;
  }
  
  .floating-card {
    display: none;
  }
  
  section {
    padding: 60px 15px;
  }
  
  .section-header {
    flex-wrap: wrap;
    margin-bottom: 40px;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .section-number {
    font-size: 16px;
  }
  
  .about-content {
    gap: 30px;
  }
  
  .lead-text {
    font-size: 16px;
  }
  
  .text-block p {
    font-size: 14px;
  }
  
  .expertise-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .expertise-item {
    padding: 18px;
  }
  
  .expertise-icon {
    font-size: 28px;
  }
  
  .expertise-item h4 {
    font-size: 16px;
  }
  
  .info-card {
    padding: 20px;
  }
  
  .info-title {
    font-size: 18px;
  }
  
  .skill-category {
    padding: 20px;
  }
  
  .category-title {
    font-size: 18px;
  }
  
  .project-content {
    padding: 18px;
  }
  
  .project-title {
    font-size: 18px;
  }
  
  .project-tag {
    padding: 4px 8px;
    font-size: 10px;
  }
  
  .timeline {
    padding-left: 25px;
  }
  
  .timeline::before {
    left: 12px;
  }
  
  .timeline-marker {
    left: -38px;
    width: 16px;
    height: 16px;
  }
  
  .timeline-content {
    padding: 18px;
  }
  
  .timeline-title {
    font-size: 18px;
  }
  
  .contact-grid {
    gap: 30px;
  }
  
  .contact-heading {
    font-size: 24px;
  }
  
  .contact-description {
    font-size: 14px;
  }
  
  .contact-method {
    padding: 12px;
    gap: 12px;
  }
  
  .method-icon {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  
  .method-value {
    font-size: 13px;
    word-break: break-word;
  }
  
  .contact-form {
    padding: 20px;
  }
  
  .form-input,
  .form-textarea {
    padding: 12px 14px;
    font-size: 13px;
  }
  
  .form-submit {
    padding: 14px;
    font-size: 13px;
  }
  
  .footer {
    padding: 40px 15px 20px;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }
  
  .footer-links a {
    font-size: 12px;
  }
  
  .footer-copyright {
    font-size: 11px;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .project-card:hover {
    transform: none;
  }
  
  .btn:hover {
    transform: none;
  }
  
  .btn:hover::before {
    left: -100%;
  }
  
  .btn:active {
    transform: scale(0.98);
  }
  
  .nav-link::after {
    display: none;
  }
  
  .nav-link.active {
    color: var(--accent-primary);
  }
  
  .social-link:hover {
    transform: none;
  }
  
  .contact-method:hover {
    transform: none;
  }
}

/* Landscape mode optimization */
@media (max-height: 600px) and (orientation: landscape) {
  .hero-section {
    min-height: auto;
    padding: 100px 15px 60px;
  }
  
  .profile-container {
    width: 200px;
    height: 200px;
  }
  
  .floating-card {
    display: none;
  }
  
  .hero-stats {
    margin-bottom: 20px;
  }
}

/* Print styles */
@media print {
  #neuralCanvas,
  .noise-overlay,
  .nav-bar,
  .scroll-indicator,
  .floating-card,
  .project-card:hover,
  .btn,
  .footer {
    display: none;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .hero-section {
    min-height: auto;
    padding: 20px;
  }
}