/*--------------------------------------------------------------
# Mohsenul Kabir Mithun — Modern Portfolio
# White & Sky Blue Theme
--------------------------------------------------------------*/

/* ===== CSS Custom Properties — Light Blue Theme ===== */
:root {
  /* Fonts */
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-heading: "Space Grotesk", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --font-nav: "Inter", sans-serif;

  /* Light Colors — White & Sky Blue palette */
  --bg-primary: #ffffff;
  --bg-secondary: #f5f7fa;
  --bg-tertiary: #eef1f7;
  --bg-card: rgba(255, 255, 255, 0.8);
  --bg-glass: rgba(59, 130, 246, 0.02);
  --bg-glass-hover: rgba(59, 130, 246, 0.05);

  /* Text — Dark blue-gray tones */
  --text-primary: #1a2332;
  --text-secondary: #4a5b7f;
  --text-muted: #8095a8;
  --text-accent: #3b82f6;

  /* Sky Blue Gradients */
  --gradient-primary: linear-gradient(135deg, #3b82f6 0%, #0ea5e9 100%);
  --gradient-accent: linear-gradient(135deg, #3b82f6 0%, #0ea5e9 50%, #0284c7 100%);
  --gradient-subtle: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(14, 165, 233, 0.06) 100%);
  --gradient-hero: linear-gradient(160deg, #f0f9ff 0%, #e0f2fe 25%, #cffafe 50%, #e0f2fe 75%, #f0f9ff 100%);

  /* Sky Blue accent colors */
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-muted: rgba(59, 130, 246, 0.12);
  --accent-amber: #0ea5e9;
  --accent-blood: #06b6d4;

  /* Borders — subtle blue */
  --border-color: rgba(59, 130, 246, 0.1);
  --border-hover: rgba(59, 130, 246, 0.2);
  --border-accent: rgba(59, 130, 246, 0.3);

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(26, 35, 50, 0.08);
  --shadow-md: 0 8px 30px rgba(26, 35, 50, 0.12);
  --shadow-lg: 0 20px 60px rgba(26, 35, 50, 0.15);
  --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.15);
  --shadow-amber: 0 0 40px rgba(14, 165, 233, 0.12);

  /* Spacing */
  --section-padding: 100px 0;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);

  /* Legacy variables for vendor compatibility */
  --background-color: #ffffff;
  --default-color: #1a2332;
  --heading-color: #1a2332;
  --accent-color: #3b82f6;
  --surface-color: #f5f7fa;
  --contrast-color: #ffffff;
  --nav-color: #4a5b7f;
  --nav-hover-color: #3b82f6;
  --nav-mobile-background-color: #f5f7fa;

  scroll-behavior: smooth;
}

/* ===== Base Reset & Typography ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  color: var(--text-primary);
  background-color: var(--bg-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
  color: var(--accent-hover);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
}

::selection {
  background: rgba(59, 130, 246, 0.35);
  color: #fff;
}

/* ===== Gradient Text Utility ===== */
.gradient-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== PHP Email Form Messages ===== */
.php-email-form .error-message {
  display: none;
  background: #ef4444;
  color: #fff;
  text-align: left;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.php-email-form .sent-message {
  display: none;
  color: #fff;
  background: #10b981;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.php-email-form .loading {
  display: none;
  background: var(--bg-card);
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
  border-radius: var(--radius-sm);
}

.php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid var(--accent);
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}

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

/* ===== HEADER / SIDEBAR NAVIGATION ===== */
.header {
  color: var(--text-secondary);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 0 40px;
  transition: var(--transition-slow);
  z-index: 997;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  height: 70px;
  box-shadow: 0 2px 12px rgba(26, 35, 50, 0.08);
}

.header-brand {
  display: none;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: -0.5px;
}

.header-brand-wrapper {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.header-tagline {
  display: none;
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

@media (max-width: 480px) {
  .header {
    padding: 0 12px;
    height: 55px;
    position: relative;
  }
  
  .header-brand-wrapper {
    display: flex;
    margin-right: auto;
  }

  .header-brand {
    display: block;
  }

  .header-tagline {
    display: block;
  }
  
  .mobile-nav-toggle {
    display: block !important;
    position: static;
    transform: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--color-primary, #3b82f6);
    background: none;
    border: none;
    padding: 8px;
    margin-left: auto;
    margin-right: -8px;
  }
}

.header .header-toggle {
  display: none;
}

/* Hamburger - hidden by default, shown only on mobile */
.mobile-nav-toggle {
  display: none;
}

/* ===== Navigation Menu ===== */
.navmenu {
  padding: 0;
  z-index: 9997;
  width: 100%;
  flex: 1;
}

.navmenu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 30px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.navmenu a,
.navmenu a:focus {
  color: var(--text-secondary);
  font-family: var(--font-nav);
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  background: transparent;
  /* border: 1px solid var(--border-color); */
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  cursor: pointer;
}

.navmenu a span,
.navmenu a:focus span {
  padding: 0;
}

@media (max-width: 480px) {
  .navmenu ul {
    gap: 0;
  }
  
  .navmenu a,
  .navmenu a:focus {
    font-size: 13px;
    padding: 6px 12px;
  }
}

.navmenu a:hover,
.navmenu .active,
.navmenu .active:focus,
.navmenu li:hover > a {
  color: #fff;
  background: var(--gradient-primary);
  border-color: var(--border-accent);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.25);
  transform: translateY(-2px);
}

.navmenu a:hover,
.navmenu li:hover > a {
  color: #fff;
}

/* ===== MAIN CONTENT ===== */
/* .main {
  margin-top: 50px;
}

@media (max-width: 480px) {
  .main {
    margin-top: 55px;
  }
} */

/* ===== SECTION HEADER (Modern) ===== */
.section-header {
  text-align: center;
  padding-bottom: 60px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-muted);
  border: 1px solid var(--border-accent);
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.section-tag:hover {
  background: var(--accent);
  color: var(--bg-primary);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
  border-color: var(--accent);
}

.section-header h2 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all 0.3s ease;
}

.section-subtitle {
  background: linear-gradient(135deg, #726f6f 0%, #726f6f 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.8;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

/* ===== GLOBAL SECTIONS ===== */
section,
.section {
  color: var(--text-primary);
  background-color: var(--bg-primary);
  padding: var(--section-padding);
  overflow: clip;
  position: relative;
}

.section:nth-child(even) {
  background-color: var(--bg-secondary);
}

/* ===== HERO SECTION ===== */
.hero {
  width: 100%;
  padding: 90px 0 50px;
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: visible;
  background: var(--bg-primary);
}

.hero-gradient-bg {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
  z-index: 1;
  overflow: hidden;
}

.hero-gradient-bg::before {
  content: "";
  position: absolute;
  top: 20%;
  left: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
  filter: blur(20px);
}

.hero-gradient-bg::after {
  content: "";
  position: absolute;
  bottom: 10%;
  right: 15%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  animation: float 10s ease-in-out infinite reverse;
  filter: blur(20px);
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-particles {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
}

.hero .container {
  position: relative;
  z-index: 3;
}

/* ===== CODE SNIPPET / TERMINAL ===== */
.code-snippet {
  display: inline-block;
  margin-bottom: 20px;
  padding: 14px 22px;
  background: linear-gradient(135deg, rgba(26, 35, 50, 0.06) 0%, rgba(59, 130, 246, 0.04) 100%);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 2px rgba(59, 130, 246, 0.1), 0 4px 16px rgba(59, 130, 246, 0.08);
  animation: slideInDown 0.8s ease-out;
  position: relative;
  overflow: hidden;
}

.code-snippet::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
}

.code-snippet code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.code-snippet code::before {
  content: "\0025CF\000A0";
  display: inline-block;
  color: #10b981;
  font-weight: bold;
  animation: pulse 2s ease-in-out infinite;
  text-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

@keyframes pulse {
  0%, 100% { opacity: 1; text-shadow: 0 0 8px rgba(16, 185, 129, 0.6); }
  50% { opacity: 0.5; text-shadow: 0 0 4px rgba(16, 185, 129, 0.3); }
}

.code-command {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.code-comment {
  color: var(--text-muted);
  font-style: italic;
  margin-left: 12px;
  opacity: 0.8;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1); }
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
}

.hero-title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  line-height: 1.1;
  animation: slideInDown 0.8s ease-out;
}

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

.hero-subtitle {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-weight: 400;
  animation: slideInUp 0.8s ease-out 0.1s both;
}

.hero-subtitle .typed {
  color: var(--accent);
  font-weight: 600;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.hero-subtitle .typed-cursor {
  color: var(--accent);
}

.hero-description {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 550px;
  margin: 0 auto 20px;
  line-height: 1.6;
  animation: fadeIn 0.8s ease-out 0.2s both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Hero AoT blockquote */
.hero-aot-quote {
  display: inline-block;
  max-width: 520px;
  margin: 0 auto 20px;
  padding: 16px 22px;
  border-left: 4px solid var(--gradient-primary);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.06) 0%, rgba(14, 165, 233, 0.03) 100%);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  text-align: left;
  animation: slideInUp 0.8s ease-out 0.3s both;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.08);
}

.hero-aot-quote p {
  font-size: 15px;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 8px;
  line-height: 1.7;
  font-weight: 500;
}

.hero-aot-quote cite {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-style: normal;
  font-weight: 600;
}

.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
  animation: fadeIn 0.8s ease-out 0.4s both;
}

.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 36px;
  background: var(--gradient-primary);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  border-radius: 50px;
  border: none;
  transition: var(--transition);
  box-shadow: 0 6px 24px rgba(59, 130, 246, 0.35);
  position: relative;
  overflow: hidden;
}

.btn-cta-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(59, 130, 246, 0.4);
  color: #fff;
}

.btn-cta-primary:hover::before {
  opacity: 1;
}

.btn-cta-primary i {
  transition: transform 0.3s;
}

.btn-cta-primary:hover i {
  transform: translateX(4px);
}

.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 36px;
  background: transparent;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 15px;
  border-radius: 50px;
  border: 2px solid var(--accent);
  transition: var(--transition);
}

.btn-cta-secondary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 24px rgba(59, 130, 246, 0.25);
}

.hero-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  animation: fadeIn 0.8s ease-out 0.5s both;
}

.hero-social a {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.08);
  border: 1.5px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 18px;
  transition: var(--transition);
}

.hero-social a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.35);
}

.hero-scroll-indicator {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  padding: 8px;
}

.hero-scroll-indicator a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.1);
  border: 1.5px solid var(--accent);
  color: var(--accent);
  font-size: 18px;
  transition: var(--transition);
  animation: bounce 2s infinite;
}

.hero-scroll-indicator a:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.3);
}

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

.hero-scroll-indicator a {
  color: var(--text-muted);
  font-size: 24px;
  animation: bounce 2s infinite;
}

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

/* ===== TECH STACK DISPLAY ===== */
.tech-stack {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
  padding: 20px;
  font-size: 13px;
  animation: fadeIn 0.8s ease-out 0.6s both;
}

.tech-label {
  color: var(--text-muted);
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-right: 8px;
}

.tech-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(14, 165, 233, 0.05) 100%);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 20px;
  color: var(--text-secondary);
  font-weight: 500;
  font-family: var(--font-mono);
  transition: var(--transition);
  white-space: nowrap;
}

.tech-tag:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(14, 165, 233, 0.1) 100%);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

@media (max-width: 768px) {
  .tech-stack {
    margin-top: 24px;
    padding: 16px;
    gap: 10px;
  }

  .tech-label {
    margin-right: 4px;
    width: 100%;
    text-align: center;
    margin-bottom: 8px;
  }
}

/* ===== ATTACK ON TITAN — Survey Corps Decorations ===== */

/* Wings of Freedom emblem */
.aot-wings-hero {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.aot-wings-hero svg {
  width: 200px;
  height: auto;
  color: var(--accent);
  filter: drop-shadow(0 0 14px rgba(59, 130, 246, 0.4));
  animation: wingsGlow 3s ease-in-out infinite;
}

@keyframes wingsGlow {
  0%, 100% { filter: drop-shadow(0 0 12px rgba(59, 130, 246, 0.4)); }
  50% { filter: drop-shadow(0 0 24px rgba(59, 130, 246, 0.6)) drop-shadow(0 0 40px rgba(14, 165, 233, 0.25)); }
}

/* AoT quote tag */
.aot-quote {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 28px;
  padding: 7px 18px;
  background: rgba(59, 130, 246, 0.04);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 4px;
  position: relative;
}

.aot-quote::before,
.aot-quote::after {
  content: "";
  position: absolute;
  top: -1px;
  width: 10px;
  height: 2px;
  background: var(--accent);
}

.aot-quote::before { left: -1px; }
.aot-quote::after  { right: -1px; }

.aot-quote .aot-jp {
  font-size: 14px;
  color: var(--accent);
  font-family: sans-serif;
  letter-spacing: 0.06em;
}

/* Hero wall-texture overlay (faint brick-like pattern) */
.hero-wall-texture {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.025;
  background-image:
    repeating-linear-gradient(90deg, rgba(59, 130, 246, 0.6) 0px, rgba(59, 130, 246, 0.6) 1px, transparent 1px, transparent 60px),
    repeating-linear-gradient(0deg,  rgba(59, 130, 246, 0.6) 0px, rgba(59, 130, 246, 0.6) 1px, transparent 1px, transparent 30px);
  pointer-events: none;
}

/* Survey Corps section accent line */
.section-header .section-tag {
  position: relative;
}

/* Animated titan-amber underline on section h2 */
.section-header h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
  margin: 12px auto 0;
  transition: width 0.4s ease;
}

.section-header:hover h2::after {
  width: 80px;
}

/* AoT scrollbar */
::-webkit-scrollbar       { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: rgba(59, 130, 246, 0.35); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ===== ONE PIECE — Grand Line Easter Egg ===== */
.op-lore-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 16px;
  padding: 7px 18px;
  background: rgba(251, 146, 60, 0.06);
  border: 1px solid rgba(251, 146, 60, 0.25);
  border-radius: 4px;
  position: relative;
}

.op-lore-tag::before,
.op-lore-tag::after {
  content: "";
  position: absolute;
  top: -1px;
  width: 10px;
  height: 2px;
  background: #fb923c;
}

.op-lore-tag::before { left: -1px; }
.op-lore-tag::after  { right: -1px; }

.op-lore-tag .lore-icon {
  font-size: 15px;
  color: #fb923c;
  display: inline-block;
  animation: jollyRogerPulse 3s ease-in-out infinite;
}

@keyframes jollyRogerPulse {
  0%, 100% { transform: rotate(-6deg) scale(1); }
  50%       { transform: rotate(6deg) scale(1.2); filter: drop-shadow(0 0 6px rgba(251, 146, 60, 0.7)); }
}

.op-about-note {
  margin-top: 24px;
  padding: 16px 20px;
  background: rgba(251, 146, 60, 0.05);
  border: 1px solid rgba(251, 146, 60, 0.2);
  border-left: 4px solid #fb923c;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: var(--transition);
}

.op-about-note:hover {
  background: rgba(251, 146, 60, 0.09);
  border-left-color: #f97316;
  transform: translateX(4px);
}

.op-about-note .op-jolly-roger {
  font-size: 22px;
  flex-shrink: 0;
  color: #fb923c;
  margin-top: 2px;
  animation: jollyRogerPulse 3s ease-in-out infinite;
}

.op-about-note p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
  font-style: italic;
}

.op-about-note p strong {
  color: #fb923c;
  font-style: normal;
  font-weight: 600;
}

.op-about-note .op-jp {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: #fb923c;
  letter-spacing: 0.12em;
  margin-bottom: 5px;
  font-style: normal;
}

/* ===== ABOUT SECTION ===== */
.about .about-image-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.about .about-image-wrapper img {
  border-radius: var(--radius-xl);
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4/5;
}

.about .about-image-decoration {
  position: absolute;
  inset: -3px;
  border-radius: var(--radius-xl);
  background: var(--gradient-primary);
  z-index: -1;
  opacity: 0.5;
}

.about .about-content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 48px;
  position: relative;
  overflow: hidden;
}

.about .about-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.about .about-content h3 {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 8px;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-muted);
  border: 1px solid var(--border-accent);
  border-radius: 50px;
  padding: 6px 14px;
  margin-bottom: 20px;
}

.about-role-badge .dot {
  width: 6px;
  height: 6px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.about .about-lead {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.about .about-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 28px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about .about-stat {
  flex: 1;
  min-width: 100px;
  padding: 20px 16px;
  text-align: center;
  border-right: 1px solid var(--border-color);
  background: var(--bg-secondary);
  transition: var(--transition);
}

.about .about-stat:last-child {
  border-right: none;
}

.about .about-stat:hover {
  background: var(--accent-muted);
}

.about .stat-number {
  display: block;
  font-size: 26px;
  font-weight: 800;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 6px;
  font-family: var(--font-heading);
}

.about .stat-label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  font-weight: 500;
}

.about .about-details {
  margin-bottom: 28px;
}

.about .detail-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  transition: var(--transition);
}

.about .detail-item:hover {
  border-color: var(--border-accent);
  border-left-color: var(--accent);
  background: var(--bg-glass-hover);
  transform: translateX(4px);
}

.about .detail-item i {
  font-size: 18px;
  color: var(--accent);
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}

.about .detail-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 2px;
}

.about .detail-value {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.about .status-available {
  color: #10b981;
  font-weight: 600;
}

.about .about-closing {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  font-style: italic;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

/* ===== SKILLS SECTION ===== */
.skills {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
  position: relative;
}

.skills::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--gradient-primary);
  opacity: 0.3;
}

.skills::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: var(--gradient-primary);
  opacity: 0.3;
}

/* ── Skills: horizontal row layout ── */
.skills-container {
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.skill-group {
  display: flex;
  flex-direction: column;
}

.skill-group-label {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.skill-group-label span {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted, #94a3b8);
  white-space: nowrap;
  font-family: var(--font-mono);
}

.skill-group-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--border-color), transparent);
}

.skill-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 16px;
  border-radius: 10px;
  transition: background 0.22s ease, box-shadow 0.22s ease;
  flex-wrap: wrap;
  position: relative;
}

.skill-row + .skill-row::before {
  content: "";
  position: absolute;
  top: 0; left: 16px; right: 16px;
  height: 1px;
  background: var(--border-color);
}

.skill-row:hover {
  background: var(--bg-card);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
  z-index: 1;
}

.skill-row-header {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
  flex-shrink: 0;
}

.skill-cat-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: color-mix(in srgb, var(--cat, #3b82f6) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--cat, #3b82f6) 28%, transparent);
  border-radius: 10px;
  flex-shrink: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.skill-row:hover .skill-cat-icon {
  transform: scale(1.1);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--cat, #3b82f6) 28%, transparent);
}

.skill-cat-icon i {
  font-size: 16px;
  color: var(--cat, #3b82f6);
}

.skill-cat-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.2px;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.skill-row:hover .skill-cat-name {
  color: var(--cat, var(--accent));
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  flex: 1;
}

.skill-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  transition: all 0.2s ease;
  font-family: var(--font-mono);
  cursor: default;
}

.skill-tag::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cat, var(--accent));
  flex-shrink: 0;
  transition: box-shadow 0.2s ease;
}

.skill-tag:hover {
  color: var(--cat, var(--accent));
  background: color-mix(in srgb, var(--cat, var(--accent)) 8%, var(--bg-secondary));
  border-color: color-mix(in srgb, var(--cat, var(--accent)) 35%, transparent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--cat, var(--accent)) 18%, transparent);
}

.skill-tag:hover::before {
  box-shadow: 0 0 6px var(--cat, var(--accent));
}

/* ── Skills: 2-column split layout (desktop) ── */
.skill-group-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}

.skill-col {
  display: flex;
  flex-direction: column;
}

/* Divider between consecutive rows within a column */
.skill-col .skill-row + .skill-row::before {
  content: "";
  position: absolute;
  top: 0; left: 16px; right: 16px;
  height: 1px;
  background: var(--border-color);
}

/* Vertical divider between the two columns */
.skill-group-split .skill-col:first-child {
  border-right: 1px solid var(--border-color);
  padding-right: 16px;
}

.skill-group-split .skill-col:last-child {
  padding-left: 16px;
}

/* Centered solo row below split */
.skill-row-solo {
  display: flex;
  justify-content: center;
  margin-top: 4px;
  border-top: 1px solid var(--border-color);
}

.skill-row-solo > .skill-row {
  width: calc(50% - 8px);
}

/* Collapse to single column on tablet/mobile */
@media (max-width: 768px) {
  .skill-group-split {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .skill-group-split .skill-col:first-child {
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid var(--border-color);
  }

  .skill-group-split .skill-col:last-child {
    padding-left: 0;
  }

  .skill-row-solo > .skill-row {
    width: 100%;
  }

  .skill-row-solo {
    border-top: none;
  }
}

/* ===== DEVELOPER IDENTITY SECTION (AoT Theme) ===== */
.aot-characters {
  position: relative;
}

.aot-characters .section-subtitle {
  color: var(--text-secondary);
  font-size: 16px;
  margin-top: 10px;
  line-height: 1.6;
}

/* Lore tag — subtle anime easter egg hint */
.aot-lore-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 6px 16px;
  border: 1px dashed rgba(59, 130, 246, 0.3);
  border-radius: 50px;
  background: rgba(59, 130, 246, 0.04);
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.lore-icon {
  font-size: 14px;
  opacity: 0.6;
}

/* ===== Character Cards ===== */
.character-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 0;
  height: 100%;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

/* Top accent bar */
.card-top-accent {
  width: 100%;
  height: 4px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  flex-shrink: 0;
}

.eren-card .card-top-accent {
  background: linear-gradient(90deg, #16a34a, #22c55e, #3b82f6);
}

.mikasa-card .card-top-accent {
  background: linear-gradient(90deg, #0ea5e9, #38bdf8, #7dd3fc);
}

.armin-card .card-top-accent {
  background: linear-gradient(90deg, #c04020, #e05a30, #f59e28);
}

.character-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-hover);
}

/* Icon wrap */
.character-icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 28px auto 12px;
  position: relative;
  flex-shrink: 0;
}

.eren-icon {
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.15), rgba(59, 130, 246, 0.1));
  border: 2px solid rgba(22, 163, 74, 0.25);
  animation: pulseEren 3s ease-in-out infinite;
}

.mikasa-icon {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(56, 189, 248, 0.1));
  border: 2px solid rgba(14, 165, 233, 0.25);
  animation: pulseMikasa 3s ease-in-out infinite;
}

.armin-icon {
  background: linear-gradient(135deg, rgba(192, 64, 32, 0.12), rgba(245, 158, 40, 0.1));
  border: 2px solid rgba(192, 64, 32, 0.22);
  animation: pulseArmin 3s ease-in-out infinite;
}

@keyframes pulseEren {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0); }
  50%       { box-shadow: 0 0 0 10px rgba(22, 163, 74, 0.08); }
}

@keyframes pulseMikasa {
  0%, 100% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0); }
  50%       { box-shadow: 0 0 0 10px rgba(14, 165, 233, 0.08); }
}

@keyframes pulseArmin {
  0%, 100% { box-shadow: 0 0 0 0 rgba(192, 64, 32, 0); }
  50%       { box-shadow: 0 0 0 10px rgba(192, 64, 32, 0.08); }
}

.char-glyph {
  font-size: 32px;
  line-height: 1;
}

/* Character lore identity (AoT reference) */
.character-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 0 24px;
}

.character-lore-name {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.character-lore-role {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  opacity: 0.75;
}

/* Bridge arrow */
.character-divider {
  margin: 14px 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.divider-arrow {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  letter-spacing: 0.05em;
  padding: 4px 12px;
  border-radius: 50px;
  background: rgba(59, 130, 246, 0.05);
  border: 1px dashed var(--border-color);
}

/* Developer content */
.character-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0 24px 28px;
}

.developer-title {
  font-size: 19px !important;
  font-weight: 700 !important;
  color: var(--text-primary) !important;
  margin-bottom: 10px !important;
  line-height: 1.3 !important;
}

.eren-card .developer-title  { color: #16a34a !important; }
.mikasa-card .developer-title { color: #0284c7 !important; }
.armin-card .developer-title  { color: #c04020 !important; }

.character-desc {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 18px;
  flex-grow: 1;
  text-align: left;
}

.character-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.skill-badge {
  display: inline-block;
  padding: 5px 13px;
  background: var(--accent-muted);
  border: 1px solid var(--border-accent);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  border-radius: 50px;
  font-family: var(--font-mono);
  transition: var(--transition);
}

.eren-card:hover .skill-badge {
  background: #16a34a;
  color: #fff;
  border-color: #16a34a;
}

.mikasa-card:hover .skill-badge {
  background: #0284c7;
  color: #fff;
  border-color: #0284c7;
}

.armin-card:hover .skill-badge {
  background: #c04020;
  color: #fff;
  border-color: #c04020;
}

/* Bottom note */
.aot-bottom-note {
  text-align: center;
  margin-top: 48px;
  padding: 20px 32px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.04), rgba(14, 165, 233, 0.03));
  border: 1px dashed rgba(59, 130, 246, 0.2);
  border-radius: var(--radius-lg);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 48px;
}

.aot-bottom-note p {
  color: var(--text-secondary);
  font-size: 15px;
  margin: 0;
  line-height: 1.6;
}

.aot-bottom-note strong {
  color: var(--accent);
}

/* ===== RESUME SECTION ===== */
.resume {
  position: relative;
}

.resume-category {
  margin-bottom: 48px;
  position: relative;
}

.resume .resume-title {
  color: var(--text-primary);
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--accent);
  position: relative;
  letter-spacing: -0.5px;
}

.resume .resume-title::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  height: 3px;
  background: var(--gradient-primary);
  width: 60px;
  border-radius: 2px;
  transition: width 0.4s ease;
}

.resume .resume-title:hover::after {
  width: 100px;
}

.resume .resume-title i {
  color: var(--accent);
  font-size: 24px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(14, 165, 233, 0.06));
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.resume .resume-item {
  padding: 28px;
  margin-bottom: 24px;
  border: 1px solid var(--border-color);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(59, 130, 246, 0.02) 100%);
  border-radius: var(--radius-lg);
  position: relative;
  transition: var(--transition-slow);
  overflow: hidden;
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
}

.resume .resume-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.resume .resume-item:hover::before {
  transform: scaleX(1);
}

.resume .resume-item:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(59, 130, 246, 0.05) 100%);
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.15);
}

.resume .resume-item h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.3px;
  transition: var(--transition);
}

.resume .resume-item:hover h4 {
  color: var(--accent);
}

.resume .resume-date {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(14, 165, 233, 0.08) 100%);
  padding: 8px 16px;
  border-radius: 50px;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  border: 1px solid rgba(59, 130, 246, 0.2);
  letter-spacing: 0.3px;
  width: fit-content;
  transition: var(--transition);
}

.resume .resume-item:hover .resume-date {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.18) 0%, rgba(14, 165, 233, 0.12) 100%);
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.12);
}

.resume .resume-date i {
  font-size: 13px;
}

.resume .resume-org {
  display: inline-block;
  color: var(--accent-hover);
  font-style: italic;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 14px;
  background: rgba(37, 99, 235, 0.05);
  padding: 4px 10px;
  border-radius: 4px;
}

.resume .resume-gpa {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-mono);
  background: rgba(59, 130, 246, 0.05);
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
  letter-spacing: 0.5px;
}

.resume .achievements {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(59, 130, 246, 0.1);
}

.resume .achievements h5 {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 0;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.resume .achievements h5 i {
  font-size: 16px;
  color: #fbbf24;
  animation: pulse-trophy 2s ease-in-out infinite;
}

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

.resume-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.resume-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  transition: var(--transition);
}

.resume-list li:hover {
  color: var(--text-primary);
  padding-left: 4px;
}

.resume-list li i {
  color: var(--accent);
  font-size: 16px;
  margin-top: 2px;
  flex-shrink: 0;
  transition: var(--transition);
}

.resume-list li:hover i {
  color: var(--accent-hover);
  transform: scale(1.1);
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio .portfolio-filters {
  padding: 0;
  margin: 0 auto 40px auto;
  list-style: none;
  text-align: center;
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.portfolio .portfolio-filters li {
  cursor: pointer;
  padding: 8px 24px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--font-nav);
  border-radius: 50px;
  border: 1px solid var(--border-color);
  background: var(--bg-glass);
  color: var(--text-secondary);
  transition: var(--transition);
}

.portfolio .portfolio-filters li:hover,
.portfolio .portfolio-filters li.filter-active {
  color: #fff;
  background: var(--gradient-primary);
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(93, 187, 108, 0.3);
}

.portfolio-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  height: 100%;
}

.portfolio-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.portfolio-img-wrapper {
  overflow: hidden;
  position: relative;
}

.portfolio-img-wrapper img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: var(--transition-slow);
}

.portfolio-card:hover .portfolio-img-wrapper img {
  transform: scale(1.08);
}

.portfolio-info {
  padding: 20px;
}

.portfolio-info h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
  line-height: 1.4;
}

.portfolio-info p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}

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

.portfolio-links a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-muted);
  color: var(--accent);
  font-size: 16px;
  transition: var(--transition);
}

.portfolio-links a:hover {
  background: var(--accent);
  color: #fff;
}

/* ===== SERVICES SECTION ===== */
.service-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  height: 100%;
  backdrop-filter: blur(10px);
  overflow: hidden;
  position: relative;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(59, 130, 246, 0.14);
}

.service-icon {
  width: 100%;
  padding: 28px 32px 0;
}

.service-icon-inner {
  width: 60px;
  height: 60px;
  min-width: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  font-size: 26px;
  color: #fff;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25);
  transition: var(--transition);
}

.service-card:hover .service-icon-inner {
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.35);
}

.service-content {
  padding: 20px 32px 32px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-content h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
  transition: var(--transition);
}

.service-card:hover .service-content h3 {
  color: var(--accent);
}

.service-content p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  align-self: flex-start;
  padding: 8px 16px;
  border: 1.5px solid var(--border-accent);
  border-radius: 50px;
  background: var(--accent-muted);
}

.service-link:hover {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

/* ===== TESTIMONIALS SECTION ===== */
.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 40px;
  margin: 10px 15px 40px;
  backdrop-filter: blur(10px);
}

.testimonial-content {
  margin-bottom: 24px;
}

.testimonial-content .stars {
  margin-bottom: 16px;
}

.testimonial-content .stars i {
  color: #fbbf24;
  font-size: 16px;
  margin-right: 2px;
}

.testimonial-content p {
  font-size: 16px;
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.7;
}

.testimonial-content .quote-icon-left,
.testimonial-content .quote-icon-right {
  color: var(--accent);
  opacity: 0.4;
  font-size: 24px;
  line-height: 0;
}

.testimonial-content .quote-icon-left {
  display: inline-block;
  position: relative;
  left: -3px;
}

.testimonial-content .quote-icon-right {
  display: inline-block;
  position: relative;
  right: -3px;
  top: 8px;
  transform: scale(-1, -1);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 16px;
}

.testimonial-author img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-accent);
}

.testimonial-author h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 2px;
  color: var(--text-primary);
}

.testimonial-author span {
  font-size: 13px;
  color: var(--text-muted);
}

.testimonials .swiper-wrapper {
  height: auto;
}

.testimonials .swiper-pagination {
  margin-top: 20px;
  position: relative;
}

.testimonials .swiper-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background-color: var(--text-muted);
  opacity: 0.3;
}

.testimonials .swiper-pagination .swiper-pagination-bullet-active {
  background: var(--gradient-primary);
  opacity: 1;
  width: 24px;
  border-radius: 10px;
}

/* ===== CONTACT SECTION ===== */
.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.contact-info-card::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.contact-info-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(59, 130, 246, 0.12);
}

.contact-info-card:hover::after {
  opacity: 1;
}

.contact-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-muted);
  border: 1.5px solid var(--border-accent);
  border-radius: 16px;
  margin: 0 auto 16px;
  font-size: 22px;
  color: var(--accent);
  transition: var(--transition);
}

.contact-info-card:hover .contact-icon {
  background: var(--gradient-primary);
  color: #fff;
  border-color: transparent;
  transform: scale(1.1) rotate(-5deg);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.contact-info-card h4 {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-info-card p {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
  margin: 0;
  word-break: break-word;
}

/* Contact Form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 36px;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.contact-form::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-primary);
}

.contact-form .form-floating > .form-control {
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 15px;
}

.contact-form .form-floating > .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
  background: var(--bg-glass-hover);
}

.contact-form .form-floating > label {
  color: var(--text-muted);
}

.contact-form .form-floating > .form-control:focus ~ label,
.contact-form .form-floating > .form-control:not(:placeholder-shown) ~ label {
  color: var(--accent);
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: var(--gradient-primary);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
}

.btn-submit i {
  transition: transform 0.3s;
}

.btn-submit:hover i {
  transform: translateX(4px);
}

.btn-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
  filter: grayscale(30%);
}

/* ===== Contact form inline field errors ===== */
.field-error {
  display: none;
  font-size: 12px;
  color: #ef4444;
  margin-top: 5px;
  padding-left: 4px;
  font-weight: 500;
}

.field-error.visible {
  display: block;
  animation: fadeInError 0.2s ease;
}

@keyframes fadeInError {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.form-control.is-invalid {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.form-control.is-invalid:focus {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15) !important;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
  text-align: center;
}

.footer-content {
  margin-bottom: 30px;
}

.footer-name {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 10px;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 10px;
}

/* AoT footer decorations */
.footer-wings {
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
}

.footer-wings-svg {
  width: 120px;
  height: auto;
  color: var(--accent);
  opacity: 0.55;
  transition: opacity 0.4s, filter 0.4s;
}

.footer-wings-svg:hover {
  opacity: 0.9;
  filter: drop-shadow(0 0 10px rgba(93, 187, 108, 0.6));
}

.footer-aot-tagline {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.2em;
  margin-bottom: 20px;
  opacity: 0.8;
}

.footer-aot-credit {
  color: var(--text-muted);
  font-size: 12px;
  font-family: var(--font-mono);
  margin-top: 8px !important;
  opacity: 0.6;
  letter-spacing: 0.05em;
}

.footer-aot-credit span {
  color: var(--accent);
  opacity: 1;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 16px;
  transition: var(--transition);
}

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

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
}

/* ===== PRELOADER ===== */
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background: var(--bg-primary);
  transition: all 0.6s ease-out;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 25px);
  left: calc(50% - 25px);
  border: 3px solid var(--border-color);
  border-top-color: var(--accent);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 0.8s linear infinite;
}

/* ===== SCROLL TOP BUTTON ===== */
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: -15px;
  z-index: 99999;
  background: var(--gradient-primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: var(--transition);
  box-shadow: var(--shadow-glow);
}

.scroll-top i {
  font-size: 24px;
  color: #fff;
  line-height: 0;
}

.scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(93, 187, 108, 0.4);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
  bottom: 15px;
}

/* ===== DISABLE AOS DELAY ON MOBILE ===== */
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/* ===== PAGE TITLES & BREADCRUMBS (for secondary pages) ===== */
.page-title {
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 36px 0 32px;
  margin-top: 70px;
  position: relative;
  overflow: hidden;
}

.page-title::before {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-primary);
}

.page-title h1 {
  font-size: 32px;
  font-weight: 800;
  margin: 8px 0 0;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-title .breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
  margin: 0 0 4px;
  font-size: 13px;
  color: var(--text-muted);
}

.page-title .breadcrumbs ol li + li {
  padding-left: 10px;
}

.page-title .breadcrumbs ol li + li::before {
  content: "/";
  display: inline-block;
  padding-right: 10px;
  color: var(--text-muted);
}

.page-title .breadcrumbs a {
  color: var(--accent);
  text-decoration: none;
}

.page-title .breadcrumbs .current {
  color: var(--text-secondary);
}

/* ===== PORTFOLIO DETAILS (secondary page) ===== */
.portfolio-details .portfolio-details-slider img {
  width: 100%;
  border-radius: var(--radius-md);
}

.portfolio-details .swiper-wrapper {
  height: auto;
}

.portfolio-details .swiper-button-prev,
.portfolio-details .swiper-button-next {
  width: 48px;
  height: 48px;
}

.portfolio-details .swiper-button-prev:after,
.portfolio-details .swiper-button-next:after {
  color: rgba(255, 255, 255, 0.8);
  background-color: rgba(0, 0, 0, 0.3);
  font-size: 24px;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.portfolio-details .swiper-button-prev:hover:after,
.portfolio-details .swiper-button-next:hover:after {
  background-color: rgba(0, 0, 0, 0.5);
}

@media (max-width: 575px) {
  .portfolio-details .swiper-button-prev,
  .portfolio-details .swiper-button-next {
    display: none;
  }
}

.portfolio-details .swiper-pagination {
  margin-top: 20px;
  position: relative;
}

.portfolio-details .swiper-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background-color: var(--text-muted);
  opacity: 0.3;
}

.portfolio-details .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--accent);
  opacity: 1;
}

.portfolio-details .portfolio-info h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
}

.portfolio-details .portfolio-info h3:after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: var(--gradient-primary);
  left: 0;
  bottom: 0;
}

.portfolio-details .portfolio-info ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
}

.portfolio-details .portfolio-info ul li {
  display: flex;
  flex-direction: column;
  padding-bottom: 15px;
}

.portfolio-details .portfolio-info ul strong {
  text-transform: uppercase;
  font-weight: 400;
  color: var(--text-muted);
  font-size: 14px;
}

.portfolio-details .portfolio-info .btn-visit {
  padding: 8px 40px;
  background: var(--gradient-primary);
  color: #fff;
  border-radius: 50px;
  transition: var(--transition);
}

.portfolio-details .portfolio-info .btn-visit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(93, 187, 108, 0.3);
}

.portfolio-details .portfolio-description h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
}

.portfolio-details .portfolio-description p {
  padding: 0;
  color: var(--text-secondary);
}

/* ===== SERVICE DETAILS (secondary page) ===== */
.service-details {
  padding: 60px 0;
}

.service-details .service-box {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.service-details .service-box::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-primary);
}

.service-details .service-box + .service-box {
  margin-top: 24px;
}

.service-details .service-box h4 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.service-details .services-list a {
  color: var(--text-secondary);
  background: var(--bg-glass);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  padding: 12px 15px;
  margin-top: 10px;
  border-radius: var(--radius-md);
  transition: var(--transition);
  font-size: 14px;
  font-weight: 500;
}

.service-details .services-list a:first-child {
  margin-top: 0;
}

.service-details .services-list a i {
  font-size: 16px;
  margin-right: 10px;
  color: var(--accent);
}

.service-details .services-list a.active {
  color: #fff;
  background: var(--gradient-primary);
  border-color: transparent;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.25);
}

.service-details .services-list a.active i {
  color: #fff;
}

.service-details .services-list a:hover:not(.active) {
  border-color: var(--border-accent);
  color: var(--accent);
  background: var(--accent-muted);
}

.service-details .help-box {
  background: var(--gradient-primary);
  color: #fff;
  margin-top: 24px;
  padding: 36px 24px;
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.25);
}

.service-details .help-box .help-icon {
  font-size: 44px;
  opacity: 0.9;
  display: block;
  margin-bottom: 12px;
}

.service-details .help-box h4 {
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
}

.service-details .help-box p {
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  margin: 0;
}

.service-details .help-box a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-weight: 500;
}

.service-details .help-box a:hover {
  color: #fff;
  text-decoration: underline;
}

/* Content panel */
.service-details .service-content-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.service-details .service-content-panel::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-primary);
}

.service-details .service-content-panel h2 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.service-details .service-content-panel > p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 0;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-color);
}

.service-details .service-content-panel h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.service-details ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-details ul li {
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
  font-size: 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  transition: var(--transition);
}

.service-details ul li:last-child {
  margin-bottom: 0;
}

.service-details ul li:hover {
  border-color: var(--border-accent);
  background: var(--accent-muted);
  color: var(--text-primary);
}

.service-details ul i {
  font-size: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

/* ===== RESPONSIVE DESIGN FOR ALL DEVICES ===== */

/* Mobile Only (max-width: 480px) */
@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .container {
    padding: 0 16px;
  }

  section, .section {
    padding: 50px 0;
  }

  .section-header {
    padding-bottom: 30px;
  }

  .section-header h2 {
    font-size: 24px;
    margin-bottom: 12px;
  }

  .section-tag {
    font-size: 12px;
    padding: 6px 14px;
  }

  /* ===== MOBILE NAVIGATION ===== */
  .header {
    position: relative;
    padding: 0 12px;
    height: 55px;
  }

  .header-brand {
    display: block;
    margin-right: auto;
  }

  /* Show hamburger on mobile */
  .mobile-nav-toggle {
    display: block;
    position: static;
    right: auto;
    top: auto;
    transform: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--color-primary, #3b82f6);
    background: none;
    border: none;
    padding: 8px;
    margin-left: auto;
    z-index: 1001;
    user-select: none;
    background: none;
    border: none;
    padding: 0;
    transition: all 0.3s ease;
  }

  .navmenu {
    position: fixed;
    top: 55px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 55px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    transition: left 0.3s ease;
    z-index: 9996;
    overflow-y: auto;
    padding-top: 20px;
  }

  .navmenu.active {
    left: 0;
  }

  .navmenu ul {
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0 16px;
  }

  .navmenu ul li {
    width: 100%;
  }

  .navmenu a,
  .navmenu a:focus {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 16px;
    font-size: 14px;
    border-radius: 8px;
    margin-bottom: 8px;
    width: 100%;
    font-weight: 600;
  }

  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus,
  .navmenu li:hover > a {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    transform: translateX(4px);
  }

  /* Hero Section */
  .hero {
    min-height: auto;
    padding: 20px 0 50px;
  }

  .code-snippet {
    max-width: 96%;
    padding: 10px 14px;
    margin-bottom: 14px;
    display: block;
  }

  .hero-scroll-indicator {
    bottom: 12px;
    padding: 6px;
  }

  .hero-badge {
    font-size: 12px;
    padding: 8px 16px;
    margin-bottom: 24px;
  }

  .hero-title {
    font-size: clamp(2rem, 7vw, 3rem);
    margin-bottom: 12px;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 16px;
  }

  .hero-description {
    font-size: 14px;
    margin: 0 auto 28px;
  }

  .hero-aot-quote {
    margin: 0 auto 24px;
    padding: 16px 20px;
    font-size: 13px;
  }

  .hero-aot-quote p {
    font-size: 13px;
    margin-bottom: 6px;
  }

  .hero-cta {
    gap: 12px;
    margin-bottom: 32px;
  }

  .btn-cta-primary,
  .btn-cta-secondary {
    padding: 12px 24px;
    font-size: 13px;
  }

  .hero-social {
    gap: 12px;
    margin-bottom: 24px;
  }

  .hero-social a {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  /* Tech Stack */
  .tech-stack {
    margin-top: 16px;
    padding: 12px;
    gap: 8px;
  }

  .tech-label {
    width: 100%;
    margin-bottom: 8px;
  }

  .tech-tag {
    font-size: 11px;
    padding: 5px 10px;
  }

  /* Skills Section */
  .skill-row-header {
    min-width: 180px;
  }

  .skill-cat-name {
    font-size: 13px;
  }

  .skill-tag {
    font-size: 11px;
    padding: 4px 10px;
  }

  /* Resume Section */
  .resume-category {
    margin-bottom: 32px;
  }

  .resume .resume-title {
    font-size: 18px;
    gap: 8px;
    margin-bottom: 20px;
    padding-bottom: 12px;
  }

  .resume .resume-item {
    padding: 16px;
    margin-bottom: 16px;
  }

  .resume .resume-item h4 {
    font-size: 15px;
    margin-bottom: 8px;
  }

  .resume .resume-date {
    font-size: 11px;
    padding: 6px 10px;
    margin-bottom: 8px;
  }

  .resume .resume-org {
    font-size: 12px;
  }

  .resume-list li {
    font-size: 13px;
    gap: 8px;
    padding: 6px 0;
  }

  /* About Section */
  .about .about-content h3 {
    font-size: 20px;
    margin-bottom: 12px;
  }

  .about .about-lead {
    font-size: 14px;
    margin-bottom: 16px;
  }

  .about .detail-item {
    padding: 10px 12px;
    gap: 10px;
  }

  .about .detail-label {
    font-size: 10px;
  }

  .about .detail-value {
    font-size: 12px;
  }

  /* Services */
  .service-card {
    padding: 20px;
  }

  .service-icon {
    width: 48px;
    height: 48px;
    font-size: 24px;
  }

  .service-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
  }

  .service-card p {
    font-size: 13px;
  }

  /* Contact Form */
  .contact-form {
    padding: 0;
  }

  .form-floating > label {
    font-size: 12px;
  }

  .contact-info-card h4 {
    font-size: 14px;
  }
}

/* Tablet Devices (481px - 768px) */
@media (min-width: 481px) and (max-width: 768px) {
  body {
    font-size: 15px;
  }

  .container {
    padding: 0 20px;
  }

  section, .section {
    padding: 60px 0;
  }

  .section-header h2 {
    font-size: 28px;
  }

  /* ===== TABLET NAVIGATION — horizontal, centered ===== */
  .header {
    position: fixed;
    padding: 0 20px;
    height: 60px;
  }

  .mobile-nav-toggle {
    display: none;
  }

  .navmenu ul {
    flex-direction: row;
    gap: 8px;
    align-items: center;
    justify-content: center;
    flex-wrap: nowrap;
    padding: 0;
  }

  .navmenu ul li {
    width: auto;
  }

  .navmenu a,
  .navmenu a:focus {
    display: inline-flex;
    padding: 6px 10px;
    font-size: 12px;
    margin-bottom: 0;
    width: auto;
    font-weight: 500;
  }

  /* Hero Section */
  .hero {
    padding: 78px 0 40px;
    align-items: flex-start;
  }

  .code-snippet {
    max-width: 94%;
    padding: 10px 16px;
    margin-bottom: 16px;
  }

  .code-comment {
    display: none;
  }

  .hero-title {
    font-size: clamp(2rem, 6vw, 3.2rem);
    margin-bottom: 10px;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 10px;
  }

  .hero-description {
    font-size: 14px;
    margin: 0 auto 16px;
  }

  .hero-aot-quote {
    margin: 0 auto 16px;
    padding: 12px 18px;
    font-size: 13px;
  }

  .hero-cta {
    gap: 12px;
    margin-bottom: 20px;
  }

  .btn-cta-primary,
  .btn-cta-secondary {
    padding: 11px 24px;
    font-size: 14px;
  }

  .hero-social {
    gap: 12px;
    margin-bottom: 20px;
  }

  .hero-social a {
    width: 44px;
    height: 44px;
  }

  /* About Section */
  .about .about-content {
    padding: 32px;
  }

  .about .about-content h3 {
    font-size: 24px;
  }

  .about .detail-item {
    padding: 12px 14px;
  }

  /* Skills */
  .skill-row {
    padding: 12px 14px;
    gap: 14px;
  }

  .skill-row-header {
    min-width: 160px;
  }

  .skill-tag {
    font-size: 11px;
    padding: 4px 10px;
  }

  /* Resume */
  .resume .resume-title {
    font-size: 20px;
  }

  .resume .resume-item {
    padding: 20px;
    margin-bottom: 18px;
  }

  .resume .resume-item h4 {
    font-size: 16px;
  }

  .resume-list li {
    font-size: 13px;
    gap: 10px;
  }

  /* Services */
  .service-icon {
    padding: 20px 24px 0;
  }

  .service-content {
    padding: 16px 24px 24px;
  }

  .service-content h3 {
    font-size: 17px;
  }

  /* Contact */
  .contact-form {
    padding: 24px;
  }

  .col-lg-4 + .col-lg-8 {
    margin-top: 24px;
  }
}

/* Tablet Devices (768px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    max-width: 900px;
  }

  section, .section {
    padding: 70px 0;
  }

  .section-header h2 {
    font-size: 32px;
  }

  /* Hero */
  .hero {
    padding: 85px 0 50px;
    align-items: flex-start;
  }

  .code-snippet {
    max-width: 90%;
    padding: 12px 18px;
    display: inline-block;
  }

  .code-comment {
    display: none;
  }

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

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

  .btn-cta-primary,
  .btn-cta-secondary {
    padding: 14px 32px;
  }

  /* Skills Grid */
  .row > .col-lg-4 {
    flex: 0 0 50%;
    max-width: 50%;
  }

  /* Resume */
  .col-lg-6 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 40px;
  }
}

/* Large Devices Desktop (1025px and above) */
@media (min-width: 1025px) {
  .container {
    max-width: 1140px;
  }

  section, .section {
    padding: 100px 0;
  }

  .hero {
    min-height: 100vh;
    padding: 95px 0 60px;
    align-items: flex-start;
  }

  .row > .col-lg-6 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* Ultra Wide Screens (1400px and above) */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }

  .section-header h2 {
    font-size: 48px;
  }

  .skills-container {
    gap: 56px;
  }

  .resume .resume-item {
    padding: 32px;
  }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
  .skill-row:active {
    background: var(--bg-card);
  }

  .btn-cta-primary:active {
    transform: translateY(-1px);
  }

  .tech-tag:active {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(14, 165, 233, 0.1) 100%);
    transform: translateY(-1px);
  }
}

/* Orientation-specific styles */
@media (orientation: landscape) and (max-height: 600px) {
  .hero {
    min-height: auto;
    padding: 30px 0;
  }

  .hero-title {
    font-size: 2.5rem;
    margin-bottom: 8px;
  }

  .hero-description {
    margin: 0 auto 20px;
  }

  .hero-cta {
    margin-bottom: 20px;
  }
}

/* Print Styles */
@media print {
  .header,
  .hero-scroll-indicator,
  .hero-social,
  .btn-cta-primary,
  .btn-cta-secondary {
    display: none;
  }

  section {
    page-break-inside: avoid;
  }

  body {
    background: #fff;
    color: #000;
  }
}


.services-nav .service-btn {
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            color: var(--text-secondary);
            padding: 13px 16px;
            border-radius: var(--radius-md);
            cursor: pointer;
            transition: var(--transition);
            width: 100%;
            text-align: left;
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 12px;
            font-size: 14px;
            font-weight: 500;
        }

        .services-nav .service-btn:hover {
            background: var(--accent-muted);
            border-color: var(--border-accent);
            color: var(--accent);
        }

        .services-nav .service-btn.active {
            background: var(--gradient-primary);
            border-color: transparent;
            color: #fff;
            box-shadow: 0 4px 16px rgba(59, 130, 246, 0.25);
        }

        .services-nav .service-btn i {
            font-size: 16px;
            flex-shrink: 0;
        }

        /* Content panels */
        .service-content-panel {
            display: none;
        }

        .service-content-panel.active {
            display: block;
            animation: fadeInUp 0.3s ease;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(10px);
            }

            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        /* Highlights grid */
        .service-highlights {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
            gap: 14px;
            margin: 28px 0;
        }

        .highlight-card {
            background: var(--bg-secondary);
            border: 1px solid var(--border-color);
            padding: 24px 16px;
            border-radius: var(--radius-lg);
            text-align: center;
            transition: var(--transition);
            position: relative;
            overflow: hidden;
        }

        .highlight-card::after {
            content: "";
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: var(--gradient-primary);
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .highlight-card:hover {
            border-color: var(--border-accent);
            transform: translateY(-4px);
            box-shadow: 0 10px 30px rgba(59, 130, 246, 0.1);
        }

        .highlight-card:hover::after {
            opacity: 1;
        }

        .highlight-card i {
            font-size: 30px;
            color: var(--accent);
            display: block;
            margin-bottom: 12px;
        }

        .highlight-card h5 {
            font-size: 14px;
            font-weight: 700;
            color: var(--text-primary);
            margin: 0 0 6px;
        }

        .highlight-card p {
            font-size: 12px;
            color: var(--text-muted);
            margin: 0;
            line-height: 1.5;
        }



        .services.section {
    padding: 80px 0;
    position: relative;
  }
  
  .service-card-modern {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(59, 130, 246, 0.02) 100%);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px 30px;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    backdrop-filter: blur(8px);
  }

  .service-card-modern::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
  }

  .service-card-modern:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.7) 0%, rgba(59, 130, 246, 0.05) 100%);
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(59, 130, 246, 0.15);
  }

  .service-card-modern:hover::before {
    transform: scaleX(1);
  }

  .modern-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 24px;
    transition: transform 0.3s ease;
  }

  /* Specific Icon Colors */
  .icon-blue { background: #eff6ff; color: #3b82f6; }
  .icon-green { background: #f0fdf4; color: #10b981; }
  .icon-orange { background: #fff7ed; color: #f97316; }
  .icon-cyan { background: #ecfeff; color: #06b6d4; }

  .service-card-modern:hover .modern-icon-wrapper {
    transform: scale(1.1) rotate(-5deg);
  }

  .service-card-modern h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
    font-family: 'Space Grotesk', sans-serif;
    transition: var(--transition);
    letter-spacing: -0.3px;
  }

  .service-card-modern:hover h3 {
    color: var(--accent);
  }

  .service-card-modern p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 30px;
    flex-grow: 1;
  }

  .service-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: auto;
  }

  .btn-hire-modern {
    background: #10b981; /* Fiverr Green */
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .btn-hire-modern:hover {
    background: #059669;
    color: #ffffff;
    transform: translateY(-2px);
  }

  .btn-learn-modern {
    color: #3b82f6;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease, gap 0.3s ease;
  }

  .btn-learn-modern:hover {
    color: #2563eb;
    gap: 8px; 
  }
