/* ============================================
   Portfolio — Mahmoud Ahmed | .NET Developer
   Design System + All Sections
   ============================================ */

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

/* ── CSS Custom Properties ── */
:root {
  /* Colors */
  --bg-primary:     #0a0a1a;
  --bg-secondary:   #0f0f23;
  --bg-card:        rgba(255, 255, 255, 0.03);
  --bg-card-hover:  rgba(255, 255, 255, 0.06);
  --accent:         #6366f1;
  --accent-hover:   #818cf8;
  --accent-glow:    rgba(99, 102, 241, 0.3);
  --secondary:      #22d3ee;
  --secondary-glow: rgba(34, 211, 238, 0.2);
  --text-primary:   #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted:     #64748b;
  --border:         rgba(255, 255, 255, 0.08);
  --border-hover:   rgba(255, 255, 255, 0.15);
  
  /* Typography */
  --font-family:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Spacing */
  --section-padding: 100px 0;
  --container-width: 1200px;
  --container-padding: 0 24px;
  
  /* Borders */
  --radius-sm:  8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full: 9999px;
  
  /* Transitions */
  --transition-fast:   0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow:   0.5s ease;
  
  /* Glassmorphism */
  --glass-bg:      rgba(255, 255, 255, 0.03);
  --glass-border:  1px solid rgba(255, 255, 255, 0.08);
  --glass-blur:    blur(16px);
}

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

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

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
}

input, textarea {
  font-family: inherit;
  outline: none;
  border: none;
}

/* ── Utility ── */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: var(--container-padding);
}

.section {
  padding: var(--section-padding);
  position: relative;
}

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

.section-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.section-subtitle::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* Glassmorphism Card */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: var(--glass-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--accent-glow);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(99, 102, 241, 0.05);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.85rem;
}

/* Chip / Badge */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 14px;
  font-size: 0.78rem;
  font-weight: 500;
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.chip-cyan {
  background: rgba(34, 211, 238, 0.1);
  color: var(--secondary);
  border-color: rgba(34, 211, 238, 0.2);
}

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

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 18px 0;
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(10, 10, 26, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.nav-logo span {
  color: var(--accent);
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: width var(--transition-normal);
}

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

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

/* Resume Button in Nav */
.nav-resume-btn {
  padding: 8px 20px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  transition: all var(--transition-normal);
}

.nav-resume-btn:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 15px var(--accent-glow);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  background: none;
  padding: 4px;
}

.nav-hamburger span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-normal);
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 80px;
}

/* Background Effects */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-bg-gradient {
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.15;
}

.hero-bg-gradient-1 {
  top: -200px;
  right: -100px;
  background: var(--accent);
}

.hero-bg-gradient-2 {
  bottom: -200px;
  left: -100px;
  background: var(--secondary);
  opacity: 0.1;
}

/* Grid Pattern */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Hero Content */
.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-greeting {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 1px;
}

.hero-greeting .line {
  width: 32px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.hero-name {
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.1;
  letter-spacing: -1.5px;
}

.hero-name .highlight {
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title {
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 600;
  color: var(--text-secondary);
}

.hero-title .accent {
  color: var(--accent);
}

.hero-tagline {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 480px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 20px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.hero-stat {
  text-align: left;
}

.hero-stat .stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.hero-stat .stat-number .accent {
  color: var(--accent);
}

.hero-stat .stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Hero Visual — Abstract Geometric */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-orb-container {
  position: relative;
  width: 420px;
  height: 420px;
}

/* Main Orb */
.hero-orb {
  position: absolute;
  inset: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, 
    rgba(99, 102, 241, 0.4), 
    rgba(34, 211, 238, 0.15), 
    transparent 70%);
  box-shadow: 
    0 0 80px rgba(99, 102, 241, 0.15),
    inset 0 0 60px rgba(99, 102, 241, 0.1);
  animation: orbPulse 6s ease-in-out infinite;
}

/* Orbiting Ring */
.hero-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(99, 102, 241, 0.15);
  animation: ringRotate 20s linear infinite;
}

.hero-ring::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent);
}

.hero-ring-2 {
  inset: 20px;
  border-color: rgba(34, 211, 238, 0.1);
  animation-direction: reverse;
  animation-duration: 15s;
}

.hero-ring-2::before {
  background: var(--secondary);
  box-shadow: 0 0 12px var(--secondary);
}

/* Floating Code Symbols */
.hero-float-symbol {
  position: absolute;
  font-size: 1.2rem;
  color: rgba(99, 102, 241, 0.25);
  font-weight: 700;
  animation: float 8s ease-in-out infinite;
}

.hero-float-symbol:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.hero-float-symbol:nth-child(2) { top: 20%; right: 5%; animation-delay: 2s; }
.hero-float-symbol:nth-child(3) { bottom: 20%; left: 5%; animation-delay: 4s; }
.hero-float-symbol:nth-child(4) { bottom: 10%; right: 15%; animation-delay: 1s; color: rgba(34, 211, 238, 0.2); }

/* Project Screenshots */
.project-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  transition: transform 0.6s ease;
}

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

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 1;
}

.scroll-indicator span {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.scroll-indicator .scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes orbPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 1; }
}

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

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

@keyframes scrollLine {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; }
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-secondary);
}

.about-text p + p {
  margin-top: 16px;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.about-highlight-card {
  padding: 28px;
  text-align: center;
}

.about-highlight-card .highlight-icon {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.about-highlight-card .highlight-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.about-highlight-card .highlight-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================
   SKILLS SECTION
   ============================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.skill-card {
  padding: 32px 24px;
  text-align: center;
}

.skill-card-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-md);
  font-size: 1.4rem;
  color: var(--accent);
  transition: all var(--transition-normal);
}

.skill-card:hover .skill-card-icon {
  background: rgba(99, 102, 241, 0.2);
  transform: scale(1.1);
}

.skill-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.skill-card-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

/* Tools row */
.tools-section {
  margin-top: 24px;
}

.tools-card {
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.tools-card .tool-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.tools-card .tool-item svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

/* ============================================
   PROJECTS SECTION
   ============================================ */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.project-card {
  overflow: hidden;
  position: relative;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 40px var(--accent-glow);
}

.project-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, 
    rgba(99, 102, 241, 0.3), 
    rgba(34, 211, 238, 0.15),
    var(--bg-secondary));
  overflow: hidden;
}

.project-image-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.85rem;
}

.project-image-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.3;
}

.project-content {
  padding: 28px;
}

.project-type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.project-name {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

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

.project-features {
  margin-bottom: 20px;
}

.project-features li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 4px 0;
  padding-left: 18px;
  position: relative;
}

.project-features li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.9rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.project-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-style: italic;
  color: var(--text-muted);
  margin-bottom: 20px;
  padding: 8px 14px;
  background: rgba(99, 102, 241, 0.05);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
}

.project-buttons {
  display: flex;
  gap: 12px;
}

/* ============================================
   EDUCATION SECTION
   ============================================ */
.education-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.education-card {
  padding: 36px;
  position: relative;
  overflow: hidden;
}

.education-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent), var(--secondary));
  border-radius: 0 4px 4px 0;
}

.education-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.badge-progress {
  background: rgba(99, 102, 241, 0.15);
  color: var(--accent);
}

.badge-completed {
  background: rgba(34, 211, 238, 0.15);
  color: var(--secondary);
}

.education-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.education-institution {
  font-size: 0.92rem;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 14px;
}

.education-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Progress Bar */
.progress-wrapper {
  margin-top: 20px;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.progress-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.progress-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
  border-radius: var(--radius-full);
  transition: width 1.5s ease;
}

/* Course Topics */
.course-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.education-year {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: start;
}

.contact-form-card {
  padding: 40px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

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

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.92rem;
  transition: all var(--transition-normal);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

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

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

.contact-info-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
}

.contact-info-card:hover {
  transform: translateY(-2px);
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-md);
  color: var(--accent);
}

.contact-info-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.contact-info-value {
  font-size: 0.95rem;
  color: var(--text-primary);
  font-weight: 500;
}

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

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  position: relative;
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-logo {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
}

.footer-logo span {
  color: var(--accent);
}

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

.footer-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

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

.footer-social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all var(--transition-normal);
}

.footer-social-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-3px);
}

.footer-copyright {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Divider between sections */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 0;
}

/* ============================================
   PRELOADER
   ============================================ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-inner {
  text-align: center;
}

.preloader-logo {
  font-size: 3rem;
  font-weight: 900;
  color: var(--text-primary);
  margin-bottom: 24px;
  animation: orbPulse 1.5s ease-in-out infinite;
}

.preloader-logo span {
  color: var(--accent);
}

.preloader-bar {
  width: 160px;
  height: 3px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.preloader-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--secondary));
  border-radius: var(--radius-full);
  animation: preloaderFill 1.2s ease forwards;
}

@keyframes preloaderFill {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* ============================================
   BACK TO TOP BUTTON
   ============================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 900;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--transition-normal);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

/* ============================================
   RESPONSIVE — TABLET
   ============================================ */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px 0;
  }

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

  .hero-content {
    align-items: center;
  }

  .hero-tagline {
    margin: 0 auto;
  }

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

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

  .hero-orb-container {
    width: 300px;
    height: 300px;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-text {
    text-align: center;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: 1fr;
    max-width: 650px;
    margin: 0 auto;
  }

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

  .contact-wrapper {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   RESPONSIVE — MOBILE
   ============================================ */
@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
    --container-padding: 0 16px;
  }

  /* Mobile Navigation — Full Screen Overlay */
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 9999;
    background: #0a0a1a;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
  }

  .nav-hamburger {
    display: flex;
    z-index: 10000;
  }

  /* Prevent hero background from causing horizontal overflow */
  .hero-bg {
    overflow: hidden;
    max-width: 100vw;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding: 120px 0 80px;
  }

  .hero-name {
    font-size: 2.4rem;
  }

  .hero-visual {
    display: none;
  }

  .hero-stats {
    gap: 24px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
    margin: 8px auto 0;
  }

  .hero-buttons .btn {
    width: 100%;
  }

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

  /* Projects */
  .project-buttons {
    flex-direction: column;
  }

  .project-buttons .btn {
    width: 100%;
  }

  /* Contact */
  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form-card {
    padding: 24px;
  }

  /* Footer */
  .footer .container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .footer-right {
    flex-direction: column;
    gap: 16px;
  }

  .section-header {
    margin-bottom: 40px;
  }
}

@media (max-width: 480px) {
  .hero-name {
    font-size: 2rem;
  }
  
  .about-highlights {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }
}

/* ============================================
   PREMIUM TOUCHES
   ============================================ */

/* 1. Custom Text Selection */
::selection {
  background: rgba(99, 102, 241, 0.35);
  color: #fff;
}

::-moz-selection {
  background: rgba(99, 102, 241, 0.35);
  color: #fff;
}

/* 2. Film Grain Texture Overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* 3. Section Flash on Anchor Navigate */
.section-flash {
  animation: sectionFlash 1.2s ease-out;
}

@keyframes sectionFlash {
  0% { box-shadow: inset 0 0 0 0 rgba(99, 102, 241, 0.12); }
  20% { box-shadow: inset 0 0 80px 0 rgba(99, 102, 241, 0.06); }
  100% { box-shadow: inset 0 0 0 0 transparent; }
}

/* 4. Copy Toast */
.copy-toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(34, 211, 238, 0.15);
  border: 1px solid rgba(34, 211, 238, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--secondary);
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0;
  pointer-events: none;
  z-index: 9998;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.copy-toast.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
