/* ==========================================================================
   efexaxr.com - Design System & Stylesheet
   Modern Glassmorphic Cyber-Minimalist Aesthetic
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-primary: #080b12;
  --bg-secondary: #0e1422;
  --bg-card: rgba(16, 24, 40, 0.65);
  --bg-card-hover: rgba(22, 33, 56, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(0, 242, 254, 0.35);

  --accent-cyan: #00f2fe;
  --accent-blue: #4facfe;
  --accent-purple: #7f00ff;
  --accent-fuchsia: #e100ff;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --accent-yellow: #f59e0b;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Fira Code', monospace;

  /* Transitions & Shadows */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-glow: 0 0 25px rgba(0, 242, 254, 0.25);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  max-width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
  min-height: 100vh;
}

/* Background Canvas */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
}

/* Ambient Glow Blobs */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.25;
}

.glow-1 {
  top: 5%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-cyan), transparent 70%);
}

.glow-2 {
  top: 40%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-purple), transparent 70%);
}

.glow-3 {
  bottom: 10%;
  left: 30%;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, var(--accent-blue), transparent 70%);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Glass Card Utility */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.glass-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 15px 35px -10px rgba(0, 242, 254, 0.15);
}

/* Gradient & Typography Helpers */
.gradient-text {
  background: linear-gradient(135deg, var(--accent-cyan) 0%, var(--accent-blue) 50%, var(--accent-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-glow {
  filter: drop-shadow(0 0 15px rgba(0, 242, 254, 0.4));
}

/* ==========================================================================
   Navigation Bar
   ========================================================================== */
.navbar-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(8, 11, 18, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

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

.brand-logo {
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.logo-bracket {
  color: var(--accent-cyan);
  transition: transform var(--transition-fast);
}

.logo-text {
  margin: 0 2px;
  background: linear-gradient(to right, #ffffff, #c7d2fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.logo-dot {
  color: var(--accent-fuchsia);
}

.brand-logo:hover .logo-bracket {
  transform: scale(1.15);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 1.8rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
  padding: 0.4rem 0;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  transition: width var(--transition-fast);
  border-radius: var(--radius-full);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-icon {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.badge-lang {
  background: var(--accent-cyan);
  color: #000;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 800;
}

.domain-pill {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.3);
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-cyan);
  font-weight: 600;
  transition: all var(--transition-fast);
}

.domain-pill:hover {
  background: rgba(0, 242, 254, 0.2);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.35);
  transform: translateY(-1px);
}

.status-pulse {
  width: 8px;
  height: 8px;
  background-color: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 1.8s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Mobile Hamburger Toggle */
.menu-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0.6rem 0.55rem;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  transition: all var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle:hover,
.menu-toggle.active {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--accent-cyan);
}

.menu-toggle .bar {
  width: 22px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: transform var(--transition-normal), opacity var(--transition-fast), background var(--transition-fast);
}

.menu-toggle.active .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: var(--accent-cyan);
}

.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle.active .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: var(--accent-cyan);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-normal);
  font-family: var(--font-body);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #040914;
  box-shadow: 0 4px 18px rgba(0, 242, 254, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 242, 254, 0.55);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.08);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  border-color: var(--border-hover);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  min-height: 92vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 3.5rem;
  padding-top: 110px;
  padding-bottom: 60px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: #34d399;
  margin-bottom: 1.5rem;
}

.status-dot {
  width: 7px;
  height: 7px;
  background-color: #34d399;
  border-radius: 50%;
  animation: pulseGreen 1.8s infinite;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 1.2rem;
}

.greeting {
  font-size: clamp(1.4rem, 2.5vw, 2.2rem);
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0;
}

.hero-subname {
  font-size: 1.2rem;
  color: var(--text-dim);
  font-weight: 400;
  font-family: var(--font-mono);
  margin-left: 0.5rem;
}

.typing-container {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-bottom: 1.4rem;
  min-height: 32px;
  display: flex;
  align-items: center;
}

.static-prefix {
  color: var(--text-dim);
  margin-right: 0.3rem;
}

.cursor {
  display: inline-block;
  background-color: var(--accent-cyan);
  width: 2px;
  animation: blink 0.9s infinite;
}

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

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-socials {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.social-label {
  font-size: 0.9rem;
  color: var(--text-dim);
  font-weight: 500;
}

.social-icons {
  display: flex;
  gap: 0.75rem;
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.social-link:hover {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-3px);
}

/* Hero Code Card Preview */
.hero-code-card {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  position: relative;
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  margin-bottom: 1.2rem;
  border-bottom: 1px solid var(--border-color);
}

.card-dots {
  display: flex;
  gap: 7px;
}

.card-dots .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.card-tab {
  font-size: 0.8rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.code-block pre {
  margin: 0;
  line-height: 1.65;
  color: #e2e8f0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

.code-key { color: #f43f5e; }
.code-var { color: #60a5fa; }
.code-prop { color: #38bdf8; }
.code-str { color: #34d399; }
.code-bool { color: #f59e0b; }

.card-footer-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.stat-pill {
  font-size: 0.78rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.stat-pill i {
  color: var(--accent-cyan);
}

/* ==========================================================================
   Stats Section
   ========================================================================== */
.stats-section {
  padding: 2.5rem 1.5rem 4.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat-card {
  padding: 1.8rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-icon {
  font-size: 1.8rem;
  color: var(--accent-cyan);
  margin-bottom: 0.8rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-number::after {
  content: '+';
  color: var(--accent-cyan);
  font-size: 1.8rem;
}

.stat-card:nth-child(3) .stat-number::after {
  content: '%';
}

.stat-title {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */
.section {
  padding: 5rem 1.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-badge {
  display: inline-block;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent-cyan);
  margin-bottom: 0.6rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -1px;
}

.section-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
  margin: 1rem auto 0;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 3.5rem;
  align-items: center;
}

.about-avatar-card {
  padding: 3rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.avatar-inner {
  position: relative;
  z-index: 1;
}

.avatar-icon {
  font-size: 4.5rem;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.2rem;
}

.avatar-name {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
}

.avatar-title {
  color: var(--accent-cyan);
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.avatar-tags {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.avatar-tags span {
  background: rgba(255, 255, 255, 0.03);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.about-headline {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 1.2rem;
  color: #fff;
}

.about-text {
  font-size: 1.02rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.2rem;
}

.about-features {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-top: 2rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.25);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.feature-item h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.feature-item p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ==========================================================================
   Skills Section
   ========================================================================== */
.skills-filter {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.55rem 1.4rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--accent-cyan);
  color: #000;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.4);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.5rem;
}

.skill-card {
  padding: 1.5rem;
  transition: all var(--transition-normal);
}

.skill-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.skill-icon {
  font-size: 1.6rem;
  margin-right: 0.8rem;
}

.skill-name {
  font-weight: 600;
  font-size: 0.95rem;
  flex: 1;
}

.skill-level {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-cyan);
  font-weight: 600;
}

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

.skill-progress {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue));
  transition: width 1s ease-in-out;
}

/* ==========================================================================
   Projects Section
   ========================================================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 2rem;
}

.project-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.project-preview {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.project-art {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-normal);
}

.project-card:hover .project-art {
  transform: scale(1.06);
}

.art-icon {
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.7);
  filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.4));
}

.gradient-art-1 {
  background: linear-gradient(135deg, #0d1b2a, #1b263b, #0077b6);
}

.gradient-art-2 {
  background: linear-gradient(135deg, #2b0938, #5a189a, #7b2cbf);
}

.gradient-art-3 {
  background: linear-gradient(135deg, #03201f, #0d5c58, #14b8a6);
}

.preview-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-color);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 2;
}

.preview-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 11, 18, 0.8);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: 3;
}

.project-card:hover .preview-overlay {
  opacity: 1;
}

.preview-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--accent-cyan);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  text-decoration: none;
  transition: transform var(--transition-fast);
}

.preview-btn:hover {
  transform: scale(1.12);
}

.project-body {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

.project-tags span {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

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

.project-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.project-links {
  display: flex;
  gap: 1rem;
}

.link-btn {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: color var(--transition-fast);
}

.link-btn:hover {
  color: #fff;
  text-decoration: underline;
}

/* ==========================================================================
   Terminal Section
   ========================================================================== */
.terminal-wrapper {
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-md);
  overflow: hidden;
  font-family: var(--font-mono);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(0, 242, 254, 0.2);
}

.terminal-header {
  background: #111726;
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

.terminal-buttons {
  display: flex;
  gap: 6px;
}

.btn-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.btn-dot.red { background: #ff5f56; }
.btn-dot.yellow { background: #ffbd2e; }
.btn-dot.green { background: #27c93f; }

.terminal-title {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.terminal-badge {
  font-size: 0.68rem;
  background: rgba(0, 242, 254, 0.15);
  color: var(--accent-cyan);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
}

.terminal-body {
  background: #080c14;
  padding: 1.5rem;
  min-height: 280px;
  max-height: 420px;
  overflow-y: auto;
  font-size: 0.92rem;
  line-height: 1.6;
}

.term-greeting {
  color: #38bdf8;
  font-weight: 600;
}

.term-dim {
  color: var(--text-dim);
  font-size: 0.82rem;
  margin-bottom: 0.5rem;
}

.term-info {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.term-highlight {
  color: var(--accent-cyan);
  font-weight: bold;
}

.terminal-input-line {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.term-prompt {
  color: #34d399;
  font-weight: 600;
  white-space: nowrap;
}

.term-input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  flex: 1;
}

.term-cmd {
  color: #fff;
  font-weight: 600;
}

.term-res {
  color: var(--text-muted);
  margin-bottom: 0.6rem;
  white-space: pre-wrap;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
}

.contact-info-card {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
}

.contact-card-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.contact-card-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--text-main);
  transition: transform var(--transition-fast);
}

.contact-item:hover {
  transform: translateX(4px);
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(0, 242, 254, 0.08);
  border: 1px solid rgba(0, 242, 254, 0.2);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.contact-type {
  display: block;
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-value {
  font-size: 0.95rem;
  font-weight: 600;
}

.contact-social-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: auto;
}

.social-pill {
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.social-pill:hover {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* Contact Form */
.contact-form-wrapper {
  padding: 2.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

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

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon i {
  position: absolute;
  left: 1.1rem;
  color: var(--text-dim);
  font-size: 1rem;
}

.input-with-icon input {
  padding-left: 2.8rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.04);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

.btn-submit {
  width: 100%;
  padding: 0.9rem;
  margin-top: 0.5rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border-color);
  background: #05070c;
  padding: 3.5rem 1.5rem 2.5rem;
  margin-top: 3rem;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-logo {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
}

.footer-tagline {
  font-size: 0.88rem;
  color: var(--text-dim);
  max-width: 320px;
}

.footer-domain-badge {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  text-align: center;
}

.badge-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #fff;
  margin-bottom: 0.2rem;
}

.live-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-green);
}

.badge-sub {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.copyright {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-bottom: 0.8rem;
}

.footer-socials {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}

.footer-socials a {
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: color var(--transition-fast);
}

.footer-socials a:hover {
  color: var(--accent-cyan);
}

/* ==========================================================================
   Toast Notification & Back to Top
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: rgba(16, 24, 40, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--accent-cyan);
  border-radius: var(--radius-md);
  padding: 0.9rem 1.4rem;
  color: #fff;
  font-size: 0.9rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transform: translateX(120%);
  transition: transform var(--transition-normal);
}

.toast.show {
  transform: translateX(0);
}

.toast i {
  color: var(--accent-cyan);
  font-size: 1.2rem;
}

.back-to-top {
  position: fixed;
  bottom: 25px;
  left: 25px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(16, 24, 40, 0.8);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--accent-cyan);
  color: #000;
  transform: translateY(-4px);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.5);
}

/* ==========================================================================
   Scroll Reveal Animation System
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive Media Queries (Mobile First & Tablet System)
   ========================================================================== */

/* Tablet & Smaller Laptops (<= 992px) */
@media (max-width: 992px) {
  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 105px;
    padding-bottom: 50px;
    gap: 3rem;
  }

  .status-badge {
    margin-left: auto;
    margin-right: auto;
  }

  .typing-container {
    justify-content: center;
  }

  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

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

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

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

/* Mobile Devices & Tablets (<= 768px) */
@media (max-width: 768px) {
  /* Prevent iOS input zoom by ensuring 16px base font for inputs */
  input, textarea, select, .term-input {
    font-size: 16px !important;
  }

  .container {
    padding: 0 1.25rem;
  }

  /* Navigation */
  .navbar-wrapper {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .navbar {
    height: 66px;
  }

  .brand-logo {
    font-size: 1.3rem;
  }

  .menu-toggle {
    display: flex;
    z-index: 1001;
  }

  .nav-menu {
    position: fixed;
    top: 66px;
    left: 0;
    width: 100%;
    height: calc(100dvh - 66px);
    background: rgba(8, 11, 18, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    flex-direction: column;
    justify-content: flex-start;
    padding: 2.5rem 1.5rem 2rem;
    gap: 2rem;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.25s;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 1.4rem;
    width: 100%;
  }

  .nav-link {
    font-size: 1.25rem;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    width: 100%;
    max-width: 280px;
    text-align: center;
    border-radius: var(--radius-md);
    transition: background var(--transition-fast), color var(--transition-fast);
  }

  .nav-link:hover,
  .nav-link.active {
    background: rgba(0, 242, 254, 0.1);
    color: var(--accent-cyan);
  }

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

  .nav-actions {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    width: 100%;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
  }

  /* Hero Section - Perfectly Centered */
  .hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 85px;
    padding-bottom: 40px;
    min-height: auto;
    gap: 2.2rem;
    width: 100%;
    margin: 0 auto;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
  }

  .status-badge {
    margin: 0 auto 1.2rem;
    align-self: center;
  }

  .hero-title {
    font-size: clamp(2rem, 7.8vw, 2.8rem);
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 1rem;
    text-align: center;
    width: 100%;
  }

  .typing-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center;
    margin: 0 auto 1.4rem;
  }

  .hero-desc {
    font-size: 0.98rem;
    line-height: 1.65;
    margin: 0 auto 1.8rem;
    text-align: center;
    max-width: 520px;
  }

  .hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 2rem;
  }

  .hero-cta .btn {
    width: 100%;
    padding: 0.85rem 1.5rem;
    justify-content: center;
    text-align: center;
  }

  .hero-socials {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    width: 100%;
    margin: 0 auto;
    text-align: center;
  }

  .social-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    width: 100%;
  }

  .hero-card-container {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
  }

  .hero-code-card {
    width: 100%;
    padding: 1.2rem 1rem;
    border-radius: var(--radius-md);
    text-align: left;
    margin: 0 auto;
  }

  .code-block pre {
    font-size: 0.78rem;
    line-height: 1.6;
  }

  /* Stats Section - Centered Grid */
  .stats-section {
    padding: 1.5rem 1.2rem 3.5rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
    max-width: 480px;
    margin: 0 auto;
    justify-content: center;
  }

  .stat-card {
    padding: 1.3rem 0.8rem;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .stat-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }

  .stat-number {
    font-size: 2.1rem;
  }

  .stat-number::after {
    font-size: 1.4rem;
  }

  .stat-title {
    font-size: 0.82rem;
  }

  /* Section Common */
  .section {
    padding: 3.5rem 1.2rem;
  }

  .section-header {
    margin-bottom: 2.2rem;
    text-align: center;
  }

  .section-title {
    font-size: 1.85rem;
    text-align: center;
  }

  /* About Section - Centered Stack */
  .about-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.2rem;
    max-width: 580px;
    margin: 0 auto;
    width: 100%;
  }

  .about-avatar-card {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    padding: 2.2rem 1.4rem;
    text-align: center;
  }

  .avatar-icon {
    font-size: 3.8rem;
  }

  .avatar-name {
    font-size: 1.6rem;
  }

  .avatar-tags {
    align-items: center;
  }

  .about-details {
    width: 100%;
    text-align: center;
  }

  .about-headline {
    font-size: 1.35rem;
    line-height: 1.35;
    text-align: center;
    margin-bottom: 1rem;
  }

  .about-text {
    font-size: 0.95rem;
    line-height: 1.7;
    text-align: center;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
  }

  .about-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 480px;
    margin: 1.8rem auto 0;
    width: 100%;
  }

  .feature-item {
    gap: 0.9rem;
    text-align: left;
  }

  .feature-icon {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  /* Skills Filter Bar - Centered Chips */
  .skills-filter {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    max-width: 480px;
    margin: 0 auto 2.2rem;
    width: 100%;
    padding: 0;
  }

  .filter-btn {
    padding: 0.5rem 1.15rem;
    font-size: 0.85rem;
  }

  .skills-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    max-width: 460px;
    margin: 0 auto;
    width: 100%;
    justify-content: center;
  }

  /* Projects - Centered Cards */
  .projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.6rem;
    max-width: 460px;
    margin: 0 auto;
    width: 100%;
    justify-content: center;
  }

  .project-card {
    width: 100%;
    margin: 0 auto;
  }

  .project-preview {
    height: 180px;
  }

  .project-body {
    padding: 1.4rem;
  }

  .project-title {
    font-size: 1.25rem;
  }

  .project-desc {
    font-size: 0.9rem;
  }

  /* Terminal - Centered */
  .terminal-wrapper {
    max-width: 540px;
    margin: 0 auto;
    width: 100%;
    border-radius: var(--radius-md);
  }

  .terminal-header {
    padding: 0.7rem 1rem;
  }

  .terminal-body {
    padding: 1rem 0.9rem;
    min-height: 240px;
    max-height: 330px;
    font-size: 0.82rem;
  }

  /* Contact - Centered Stack */
  .contact-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }

  .contact-info-card,
  .contact-form-wrapper {
    padding: 1.8rem 1.3rem;
    width: 100%;
    margin: 0 auto;
  }

  .contact-card-title {
    font-size: 1.4rem;
    text-align: center;
  }

  .contact-card-desc {
    text-align: center;
  }

  .contact-details {
    align-items: center;
  }

  .contact-item {
    justify-content: flex-start;
    width: 100%;
    max-width: 320px;
  }

  .contact-social-pills {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    width: 100%;
    margin-top: 1.5rem;
  }

  /* Footer */
  .footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 1.5rem;
    margin: 0 auto;
  }

  .footer-socials {
    justify-content: center;
  }

  /* Toast notification for mobile */
  .toast-container {
    bottom: 16px;
    left: 16px;
    right: 16px;
    width: auto;
  }

  .toast {
    width: 100%;
    justify-content: center;
  }

  /* Back to Top */
  .back-to-top {
    bottom: 18px;
    left: 18px;
    width: 42px;
    height: 42px;
  }
}

/* Small Smartphone Viewports (<= 480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

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

  .hero-subname {
    display: block;
    margin-left: 0;
    margin-top: 0.25rem;
    font-size: 1rem;
  }

  .typing-container {
    font-size: 1rem;
    min-height: 28px;
  }

  .hero-cta {
    max-width: 290px;
  }

  .card-footer-stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .stat-pill {
    width: 100%;
    justify-content: flex-start;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }

  .stat-card {
    padding: 1rem 0.5rem;
  }

  .stat-number {
    font-size: 1.8rem;
  }

  .stat-title {
    font-size: 0.75rem;
  }

  .contact-social-pills {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  .social-pill {
    width: 100%;
    max-width: 260px;
    justify-content: center;
  }
}

/* Ultra-compact screens (<= 360px) */
@media (max-width: 360px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .brand-logo {
    font-size: 1.15rem;
  }

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

  .hero-cta {
    max-width: 100%;
  }
}
