:root {
  --bg: #020508;
  --bg-alt: #030a15;
  --accent: #32E6FF;
  --accent-soft: rgba(50, 230, 255, 0.22);
  --border: rgba(50, 230, 255, 0.4);
  --border-soft: rgba(50, 230, 255, 0.2);
  --text: #E5F0FF;
  --text-muted: #9BA7C0;
  --radius: 18px;
  --blur: 20px;
  --shadow-strong: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 40px rgba(50, 230, 255, 0.15);
  --shadow-hover: 0 28px 70px rgba(0, 0, 0, 0.95), 0 0 60px rgba(50, 230, 255, 0.25);
  
  /* Hero-specific variables - subtle difference */
  --hero-bg-start: rgba(1, 3, 6, 0.3);
  --hero-bg-end: rgba(2, 6, 9, 0.4);
  --hero-glow-primary: rgba(50, 230, 255, 0.25);
  --hero-glow-secondary: rgba(255, 255, 255, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.bg-pattern, .glow-layer, .pattern-soft, .glow, .glow-hero {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.bg-pattern {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: 
    url("data:image/svg+xml,%3Csvg width='60' height='104' viewBox='0 0 60 104' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0l25.98 15v30L30 60 4.02 45V15z' fill='none' stroke='rgba(50,230,255,0.06)' stroke-width='1'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg width='120' height='208' viewBox='0 0 120 208' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M60 0l51.96 30v60L60 120 8.04 90V30z' fill='none' stroke='rgba(50,230,255,0.03)' stroke-width='1'/%3E%3C/svg%3E"),
    radial-gradient(circle at 20% 30%, rgba(50,230,255,0.04) 1px, transparent 1px),
    radial-gradient(circle at 80% 70%, rgba(50,230,255,0.04) 1px, transparent 1px);
  background-size: 60px 104px, 120px 208px, 40px 40px, 50px 50px;
  background-position: 0 0, 30px 52px, 0 0, 25px 25px;
  opacity: 1;
  z-index: 0;
}

.glow-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 30%, rgba(50, 230, 255, 0.25), transparent 45%),
    radial-gradient(circle at 82% 20%, rgba(255, 255, 255, 0.12), transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(50, 230, 255, 0.15), transparent 50%);
  filter: blur(50px);
  opacity: 0.9;
  z-index: 0;
}

.glow {
  background: radial-gradient(circle at 50% 50%, rgba(50,230,255,0.12), transparent 50%);
  opacity: 0.4;
}

.glow-hero {
  background: radial-gradient(circle at 20% 40%, rgba(50,230,255,0.2), transparent 45%),
              radial-gradient(circle at 80% 30%, rgba(255,255,255,0.12), transparent 50%);
  filter: blur(28px);
  opacity: 0.9;
}

.hex-parallax {
  position: fixed;
  inset: -5%;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(50,230,255,0.12), transparent 60%);
  opacity: 0.35;
  z-index: 0;
}

.hex-layer {
  position: fixed;
  inset: -10%;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg width='180' height='312' viewBox='0 0 180 312' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M90 0l77.94 45v90L90 180 12.06 135V45z' fill='none' stroke='rgba(50,230,255,0.025)' stroke-width='1'/%3E%3C/svg%3E");
  background-size: 180px 312px;
  opacity: 0.6;
  animation: hex-drift 60s linear infinite;
  z-index: 0;
}

@keyframes hex-drift {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(50px, 50px) rotate(360deg); }
}

/* Wandernder Lichtglanz Effekt */
.light-sweep {
  position: fixed;
  top: -50%;
  left: -50%;
  width: 80%;
  height: 200%;
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(50, 230, 255, 0.01) 30%,
    rgba(50, 230, 255, 0.04) 50%,
    rgba(50, 230, 255, 0.01) 70%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
  transform: translate(-100%, -100%) rotate(-45deg);
  animation: light-sweep 11s ease-in-out infinite;
  filter: blur(80px);
  opacity: 0;
}

@keyframes light-sweep {
  0% {
    transform: translate(-100%, -100%) rotate(-45deg);
    opacity: 0;
  }
  2% {
    opacity: 0.7;
  }
  17% {
    transform: translate(120vw, 120vh) rotate(-45deg);
    opacity: 1;
  }
  18% {
    opacity: 0;
  }
  100% {
    transform: translate(120vw, 120vh) rotate(-45deg);
    opacity: 0;
  }
}

/* Reflektion des Lichtglanzes */
.light-reflection {
  position: fixed;
  top: -50%;
  left: -50%;
  width: 80%;
  height: 200%;
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(50, 230, 255, 0.005) 30%,
    rgba(50, 230, 255, 0.02) 50%,
    rgba(50, 230, 255, 0.005) 70%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 0;
  transform: translate(-100%, -100%) rotate(-45deg);
  animation: light-reflection 11s ease-in-out infinite;
  filter: blur(100px);
  opacity: 0;
}

@keyframes light-reflection {
  0% {
    transform: translate(-100%, -100%) rotate(-45deg);
    opacity: 0;
  }
  2% {
    opacity: 0.3;
  }
  17% {
    transform: translate(120vw, 120vh) rotate(-45deg);
    opacity: 0.3;
  }
  18% {
    opacity: 0;
  }
  100% {
    transform: translate(120vw, 120vh) rotate(-45deg);
    opacity: 0;
  }
}

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  background: linear-gradient(180deg, rgba(2,5,8,0.95), rgba(2,5,8,0.85));
  border-bottom: 1px solid rgba(50,230,255,0.1);
  backdrop-filter: blur(var(--blur));
  z-index: 10;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: opacity 0.3s ease;
}
.logo:hover {
  opacity: 0.8;
}
.logo img { height: 62px; width: auto; display: block; }
.logo span { font-weight: 700; letter-spacing: 0.08em; font-size: 15px; color: var(--text); text-transform: uppercase; }
nav ul { list-style: none; display: flex; gap: 16px; margin: 0; padding: 0; }
nav a {
  color: var(--text);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 999px;
  position: relative;
  font-size: 15px;
}
nav a::after {
  content: "";
  position: absolute;
  left: 8px; right: 8px; bottom: 5px;
  height: 2px; background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}
nav a:hover, nav a:focus-visible { color: var(--accent); }
nav a:hover::after, nav a:focus-visible::after { transform: scaleX(1); }
nav a.active { color: var(--accent); }
nav a.active::after { transform: scaleX(1); }

main { max-width: 1200px; margin: 0 auto; padding: 0 32px 80px; position: relative; z-index: 1; overflow: visible; }
.section {
  padding: 80px 0;
  position: relative;
  overflow: visible;
}
.section:first-of-type { padding-top: 80px; }
.section-header { margin-bottom: 32px; }
.section-label { 
  letter-spacing: 0.2em; 
  text-transform: uppercase; 
  font-size: 12px; 
  color: var(--text-muted); 
  margin: 0 0 10px; 
}
.section-header h2 { 
  margin: 0 0 14px; 
  font-size: 48px; 
  line-height: 1.15; 
}
.section-header p {
  margin: 0;
  color: var(--text-muted);
  max-width: 720px;
  line-height: 1.8;
}

.card {
  background: rgba(8,16,32,0.85);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(var(--blur));
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, var(--accent), transparent, var(--accent));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(50,230,255,0.07), transparent 60%);
  pointer-events: none;
}

.card:hover {
  transform: scale(1.02);
  border-color: var(--border);
  background: rgba(8,16,32,0.95);
  box-shadow: var(--shadow-hover);
}

.card h3 {
  font-size: 24px;
  margin: 0 0 12px;
  position: relative;
  z-index: 1;
}

.card p {
  position: relative;
  z-index: 1;
  line-height: 1.7;
  margin: 0;
}

.card ul {
  position: relative;
  z-index: 1;
  line-height: 1.8;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 24px;
  border-radius: 999px;
  border: 1px solid var(--border);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:active::before {
  width: 300px;
  height: 300px;
}

.btn.primary { 
  background: var(--accent); 
  color: #04101C; 
  box-shadow: 0 0 35px rgba(50,230,255,0.4), 0 8px 24px rgba(0,0,0,0.6); 
  border-color: var(--accent); 
}

.btn.secondary { 
  background: transparent; 
  color: var(--text); 
}

.btn:hover, .btn:focus-visible { 
  transform: scale(1.05) translateY(-2px); 
  box-shadow: 0 0 45px rgba(50,230,255,0.5), 0 12px 32px rgba(0,0,0,0.7); 
}

.btn.primary:hover {
  background: #4AEFFF;
  box-shadow: 0 0 50px rgba(50,230,255,0.6), 0 12px 36px rgba(0,0,0,0.8);
}


.hero {
  padding: 0;
  margin: 0;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  background: linear-gradient(180deg, var(--hero-bg-start) 0%, var(--hero-bg-end) 50%, var(--hero-bg-end) 70%, rgba(10, 15, 20, 1) 100%);
  overflow: visible;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

/* Hero-specific background effects */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 35%, rgba(50, 230, 255, 0.15), transparent 55%),
    radial-gradient(circle at 75% 25%, rgba(255, 255, 255, 0.08), transparent 50%),
    radial-gradient(circle at 50% 90%, rgba(50,230,255,0.06), transparent 60%);
  z-index: 0;
  filter: blur(70px);
  pointer-events: none;
}

/* Hero particles container - only visible in hero */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 25%, rgba(50,230,255,0.2) 2px, transparent 2px),
    radial-gradient(circle at 85% 45%, rgba(50,230,255,0.15) 1.5px, transparent 1.5px),
    radial-gradient(circle at 45% 65%, rgba(255,255,255,0.15) 1px, transparent 1px),
    radial-gradient(circle at 70% 80%, rgba(50,230,255,0.2) 1.8px, transparent 1.8px),
    radial-gradient(circle at 30% 90%, rgba(255,255,255,0.12) 1.2px, transparent 1.2px);
  background-size: 100% 100%;
  animation: float-particles 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

@keyframes float-particles {
  0%, 100% { 
    transform: translate(0, 0); 
    opacity: 0.5;
  }
  25% { 
    transform: translate(15px, -20px); 
    opacity: 0.7;
  }
  50% { 
    transform: translate(-10px, -35px); 
    opacity: 0.4;
  }
  75% { 
    transform: translate(20px, -15px); 
    opacity: 0.6;
  }
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 100px;
  align-items: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 32px 80px;
}

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

.hero-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  min-height: auto;
  animation: none;
}

.hero-right.card {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  backdrop-filter: none;
}

.hero-right.card::before,
.hero-right.card::after {
  display: none;
}

.hero-right.card:hover {
  transform: none;
  box-shadow: none;
}



.hero-text h1 { 
  margin: 0 0 24px; 
  font-size: clamp(48px, 6vw, 60px); 
  line-height: 1.08;
  background: linear-gradient(135deg, #ffffff 0%, var(--accent) 50%, #ffffff 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 8s ease-in-out infinite;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero-subline { 
  margin: 0 0 32px; 
  color: var(--text-muted); 
  font-size: 18px;
  line-height: 1.7;
  max-width: 500px;
}

.hero-actions { 
  display: flex; 
  gap: 14px; 
  flex-wrap: wrap;
  margin-bottom: 0;
}

.hero-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  min-height: auto;
  animation: none;
}

.hero-panel.card {
  background: none;
  border: none;
  box-shadow: none;
  padding: 0;
  backdrop-filter: none;
}

.hero-panel.card::before,
.hero-panel.card::after {
  display: none;
}

.hero-panel.card:hover {
  transform: none;
  box-shadow: none;
}

.panel-meta { 
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.meta-block { 
  display: flex; 
  align-items: center; 
  gap: 14px;
  background: rgba(8,16,32,0.7);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 20px 26px;
  backdrop-filter: blur(16px);
  transition: all 0.3s ease;
  width: 100%;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.meta-block:hover {
  background: rgba(8,16,32,0.85);
  border-color: var(--border);
  transform: scale(1.02);
  box-shadow: 0 12px 32px rgba(0,0,0,0.5), 0 0 30px rgba(50,230,255,0.2);
}

.meta-dot { 
  width: 12px; 
  height: 12px; 
  border-radius: 50%; 
  background: var(--accent);
  box-shadow: 0 0 20px var(--accent), 0 0 40px rgba(50,230,255,0.3);
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

.meta-text { 
  color: var(--text); 
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
}

@keyframes pulse-dot {
  0%, 100% { 
    transform: scale(1);
    box-shadow: 0 0 20px var(--accent), 0 0 40px rgba(50,230,255,0.3);
  }
  50% { 
    transform: scale(1.1);
    box-shadow: 0 0 25px var(--accent), 0 0 50px rgba(50,230,255,0.5);
  }
}


.hero .section-label {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--accent);
  margin: 0 0 16px;
  font-weight: 600;
}

/* Status Badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(50, 230, 255, 0.1);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
  animation: pulse-badge 3s ease-in-out infinite;
}

.status-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 12px #10b981;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%, 100% { 
    box-shadow: 0 0 0 rgba(50, 230, 255, 0);
  }
  50% { 
    box-shadow: 0 0 20px rgba(50, 230, 255, 0.3);
  }
}

/* Trust Indicators */
.trust-indicators {
  display: flex;
  gap: 24px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 14px;
  position: relative;
}

.trust-item::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.trust-item strong {
  color: var(--text);
  font-weight: 600;
}

/* Hero Services Grid */
.hero-services-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 420px;
}

.service-tile {
  position: relative;
  background: rgba(8, 16, 32, 0.7);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 14px 18px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
  text-align: left;
  backdrop-filter: blur(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  overflow: hidden;
  min-height: 60px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.6s ease-out backwards;
}

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

.service-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  padding: 1px;
  background: linear-gradient(135deg, var(--accent), transparent, var(--accent));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(50,230,255,0.1), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.service-tile:hover {
  transform: translateX(4px);
  border-color: var(--border);
  background: rgba(8, 16, 32, 0.9);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 30px rgba(50, 230, 255, 0.25);
}

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

.service-tile:hover::after {
  opacity: 1;
}

.tile-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(50, 230, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 1;
}

.tile-icon svg {
  stroke: var(--accent);
  filter: drop-shadow(0 0 8px rgba(50, 230, 255, 0.4));
  transition: all 0.4s ease;
  width: 22px;
  height: 22px;
}

.service-tile:hover .tile-icon {
  background: rgba(50, 230, 255, 0.2);
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(50, 230, 255, 0.4);
}

.service-tile:hover .tile-icon svg {
  filter: drop-shadow(0 0 12px rgba(50, 230, 255, 0.8));
}

.service-tile h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  line-height: 1.2;
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
  flex: 1;
}

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

/* Hero Divider Section - Hidden */
.hero-divider {
  display: none;
}

.divider-wave {
  display: none;
}

.divider-glow {
  display: none;
}

@keyframes glow-line-subtle {
  0%, 100% {
    opacity: 0.4;
    transform: translateX(-50%) scaleX(0.9);
  }
  50% {
    opacity: 0.7;
    transform: translateX(-50%) scaleX(1);
  }
}

.scroll-indicator {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  animation: bounce 2s ease-in-out infinite;
}

.scroll-indicator svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent);
}

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

.hero-separator {
  display: none;
}

#about {
  position: relative;
  overflow: hidden;
  scroll-margin-top: 100px;
  padding-top: 80px;
}

#about::before {
  content: "";
  position: absolute;
  top: 50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(50,230,255,0.08), transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  transform: translateY(-50%);
}

#about .section-header {
  margin-bottom: 56px;
}

#about .section-header .section-label {
  display: none;
}

#about .section-header h2 {
  margin-bottom: 24px;
}

.about-tagline {
  font-size: 20px;
  line-height: 1.6;
  color: var(--accent);
  font-weight: 500;
  max-width: 680px;
  position: relative;
  padding-left: 24px;
  padding-top: 4px;
  padding-bottom: 4px;
  border-left: 3px solid var(--accent);
  margin: 0;
  font-style: italic;
}

#about .grid.two {
  grid-template-columns: 1.2fr 1fr;
  gap: 72px;
  align-items: start;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes panel-glow {
  0%, 100% { box-shadow: var(--shadow-strong); }
  50% { box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 50px rgba(50, 230, 255, 0.2); }
}

@keyframes border-pulse {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.grid { display: grid; gap: 24px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.four { grid-template-columns: repeat(4, 1fr); }


.about-text {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.about-block {
  position: relative;
  background: rgba(8, 16, 32, 0.4);
  border: 1px solid rgba(50, 230, 255, 0.1);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s ease;
}

.about-block:hover {
  background: rgba(8, 16, 32, 0.6);
  border-color: rgba(50, 230, 255, 0.2);
  transform: scale(1.02);
}

.about-icon {
  font-size: 40px;
  margin-bottom: 14px;
  display: inline-block;
  filter: drop-shadow(0 0 16px rgba(50, 230, 255, 0.4));
  transition: all 0.3s ease;
}

.about-block:hover .about-icon {
  transform: scale(1.15);
  filter: drop-shadow(0 0 24px rgba(50, 230, 255, 0.6));
}

.about-block h3 {
  font-size: 22px;
  color: var(--text);
  margin: 0 0 14px;
  font-weight: 600;
}

.about-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.about-block ul li {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.8;
  position: relative;
  padding-left: 24px;
}

.about-block ul li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 14px;
  top: 2px;
}

.about-block p {
  color: var(--text);
  font-size: 16px;
  line-height: 1.8;
  margin: 0;
  font-weight: 400;
}

.about-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
  padding-top: 8px;
}

.skill-badge {
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(50, 230, 255, 0.12);
  border: 1px solid var(--border-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
}

.skill-badge:hover {
  background: rgba(50, 230, 255, 0.18);
  border-color: var(--border);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(50, 230, 255, 0.2);
}

.about-photo {
  padding: 0;
  overflow: hidden;
  position: relative;
  height: 480px;
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  box-shadow: 0 20px 60px rgba(0,0,0,0.7), 0 0 40px rgba(50,230,255,0.1);
}

.about-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(50,230,255,0.12), transparent 60%);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.about-photo:hover::before {
  opacity: 1;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  transition: transform 0.4s ease;
}

.about-photo:hover img {
  transform: scale(1.05);
}

.card-icon {
  font-size: 32px;
  margin-bottom: 16px;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.card-icon svg {
  stroke: var(--accent);
  filter: drop-shadow(0 0 12px rgba(50,230,255,0.4));
}

.tag { display: inline-flex; padding: 6px 10px; border-radius: 999px; background: rgba(50,230,255,0.12); color: var(--accent); font-size: 13px; margin-bottom: 12px; }
.muted { color: var(--text-muted); }

#process {
  position: relative;
  overflow: visible;
}

.process-timeline {
  max-width: 1200px; /* Matched to main content width */
  margin: 60px auto 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.timeline-line {
  position: absolute;
  top: 28px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg,
    var(--accent) 0%,
    rgba(50,230,255,0.5) 25%,
    rgba(50,230,255,0.5) 50%,
    rgba(50,230,255,0.5) 75%,
    var(--accent) 100%
  );
  z-index: 0;
}

.process-step {
  position: relative;
  text-align: center;
  transition: all 0.3s ease;
}

.process-step:hover {
  transform: scale(1.02);
}

.step-number {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
  position: relative;
  z-index: 1;
  box-shadow: 0 0 0 8px var(--bg), 0 0 30px rgba(50,230,255,0.4);
  transition: all 0.3s ease;
}

.process-step:hover .step-number {
  background: var(--accent);
  color: var(--bg);
  box-shadow: 0 0 0 8px var(--bg), 0 0 40px rgba(50,230,255,0.7);
  transform: scale(1.15);
}

.step-number::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  opacity: 0;
  animation: pulse-ring 2s infinite;
}

.process-step:hover .step-number::after {
  animation: pulse-ring 1.5s infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

.card,
.btn,
.social-card,
.process-step,
.about-block {
  will-change: transform;
}

.card:hover,
.btn:hover,
.social-card:hover,
.process-step:hover,
.about-block:hover {
  will-change: transform, box-shadow;
}

.step-content {
  background: rgba(8,16,32,0.6);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 24px 20px;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.process-step:hover .step-content {
  background: rgba(8,16,32,0.8);
  border-color: var(--border);
  box-shadow: 0 12px 32px rgba(0,0,0,0.6), 0 0 24px rgba(50,230,255,0.15);
}

.step-content h3 {
  font-size: 22px;
  margin: 0 0 12px;
  color: var(--text);
}

.step-content p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0;
}

#stack .grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stack-card {
  background: #0a0e1a;
  border: 1px solid rgba(50,230,255,0.2);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  font-family: 'Monaco', 'Courier New', monospace;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}

.stack-card::before { display: none; }
.stack-card::after { display: none; }

.stack-card h3 {
  background: rgba(50,230,255,0.08);
  padding: 12px 20px;
  margin: 0;
  font-size: 14px;
  color: var(--accent);
  border-bottom: 1px solid rgba(50,230,255,0.2);
  font-family: 'Monaco', 'Courier New', monospace;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.stack-card h3::before {
  content: "● ● ● ";
  color: rgba(255,255,255,0.3);
  margin-right: 12px;
  font-size: 10px;
}

.stack-card ul {
  margin: 0;
  padding: 20px;
  list-style: none;
  color: #8b9bb3;
  line-height: 1.9;
  font-size: 14px;
}

.stack-card ul li {
  position: relative;
  padding-left: 24px;
}

.stack-card ul li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

.stack-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.8), 0 0 30px rgba(50,230,255,0.15);
}

#contact {
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  max-width: 1200px;
  margin: 60px auto 0;
  align-items: start;
}

.contact-form-wrapper {
  position: relative;
}

.contact-form {
  background: rgba(8,16,32,0.6);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 40px;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-strong);
}

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

.contact-form label {
  display: block;
  margin-bottom: 20px;
}

.contact-form label span {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(50,230,255,0.15);
  background: rgba(8,16,32,0.8);
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: all 0.3s ease;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(50,230,255,0.2);
  background: rgba(8,16,32,0.95);
}

.contact-form input:hover,
.contact-form textarea:hover,
.contact-form select:hover {
  border-color: rgba(50,230,255,0.25);
  background: rgba(8,16,32,0.85);
}

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

.contact-form .btn {
  width: 100%;
  margin-top: 8px;
}

/* Form Status Messages */
.form-status {
  margin-top: 20px;
  padding: 16px 20px;
  border-radius: 12px;
  font-size: 15px;
  text-align: center;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  display: none;
}

.form-status.show {
  opacity: 1;
  transform: translateY(0);
  display: block;
}

.form-status.success {
  background: rgba(50, 230, 100, 0.1);
  border: 1px solid rgba(50, 230, 100, 0.3);
  color: #50ff90;
}

.form-status.error {
  background: rgba(255, 80, 80, 0.1);
  border: 1px solid rgba(255, 80, 80, 0.3);
  color: #ff8080;
}

/* Button Loading State */
.btn.loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.btn.loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  top: 50%;
  left: 50%;
  margin-left: -10px;
  margin-top: -10px;
  border: 2px solid transparent;
  border-top-color: #04101C;
  border-radius: 50%;
  animation: button-spin 0.6s linear infinite;
}

@keyframes button-spin {
  to { transform: rotate(360deg); }
}

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

.contact-info-card {
  background: rgba(8,16,32,0.6);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 24px;
  backdrop-filter: blur(12px);
  text-align: center;
}

.info-icon {
  font-size: 40px;
  margin-bottom: 12px;
  filter: drop-shadow(0 0 16px rgba(50,230,255,0.4));
}

.contact-info-card h3 {
  font-size: 20px;
  margin: 0 0 8px;
  color: var(--text);
}

.contact-info-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

.social-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(8,16,32,0.6);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 20px 24px;
  text-decoration: none;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.social-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(50,230,255,0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.social-card:hover {
  border-color: var(--accent);
  transform: scale(1.02);
  box-shadow: 0 12px 32px rgba(0,0,0,0.6), 0 0 24px rgba(50,230,255,0.2);
}

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

.social-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(50,230,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.social-card:hover .social-icon {
  background: rgba(50,230,255,0.2);
  transform: scale(1.1);
}

.social-icon svg {
  color: var(--accent);
}

.social-content {
  flex: 1;
}

.social-content h4 {
  font-size: 18px;
  margin: 0 0 4px;
  color: var(--text);
}

.social-content p {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.social-arrow {
  font-size: 20px;
  color: var(--accent);
  transition: transform 0.3s ease;
}

.social-card:hover .social-arrow {
  transform: scale(1.2);
}

.reveal { opacity: 0; transform: translateY(24px); filter: blur(2px); transition: opacity 0.6s ease-out, transform 0.6s ease-out, filter 0.6s ease-out; }
.reveal.visible { opacity: 1; transform: translateY(0); filter: blur(0); }

/* ============================================
   PROJECTS SECTION - FIXED GLOW ARTIFACT
   ============================================ */
#projects {
  position: relative;
  /* Removed overflow: hidden to prevent glow clipping */
  overflow: visible;
}

/* Background glow effect - repositioned to prevent edge artifacts */
#projects::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 5%; /* Changed from -10% to 5% to keep within bounds */
  width: 500px; /* Reduced from 600px for better containment */
  height: 500px;
  background: radial-gradient(circle, rgba(50,230,255,0.08), transparent 70%);
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  transform: translateY(-50%);
  z-index: 0;
}

.projects-slider-wrapper {
  position: relative;
  max-width: 1200px; /* Full content width */
  margin: 60px auto 0;
  padding: 20px 0; /* Padding for hover effects */
  overflow: visible; /* Allow buttons to show */
}

.projects-slider-clip {
  overflow: hidden;
  margin: -20px 0; /* Compensate for wrapper padding */
  padding: 20px 0; /* Restore space for hover effects */
}

.projects-slider {
  display: flex;
  gap: 24px;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.projects-slider .project-card {
  flex: 0 0 calc((100% - 72px) / 4); /* 4 cards with 3 gaps */
  min-width: calc((100% - 72px) / 4); /* Prevent shrinking */
}

.project-card {
  background: rgba(8,16,32,0.7);
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 32px 24px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  min-height: 200px;
  max-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, var(--accent), transparent, var(--accent));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(50,230,255,0.05), transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.project-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--border);
  background: rgba(8,16,32,0.9);
  box-shadow: 0 20px 50px rgba(0,0,0,0.7), 0 0 40px rgba(50,230,255,0.2);
}

.project-card.placeholder {
  cursor: default;
  opacity: 0.5;
}

.project-card.placeholder:hover {
  transform: none;
  border-color: var(--border-soft);
  background: rgba(8,16,32,0.7);
  box-shadow: none;
}

.project-card.placeholder::before,
.project-card.placeholder::after {
  display: none;
}

.project-preview {
  text-align: center;
  position: relative;
  z-index: 1;
}

.project-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 16px;
  background: rgba(50,230,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
}

.project-card:hover .project-icon {
  background: rgba(50,230,255,0.15);
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 24px rgba(50,230,255,0.3);
}

.project-icon svg {
  color: var(--accent);
  filter: drop-shadow(0 0 12px rgba(50,230,255,0.4));
}

.project-image {
  width: 100%;
  height: 120px;
  margin: 0 auto 20px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(50,230,255,0.05);
  border: 1px solid rgba(50,230,255,0.15);
  transition: all 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: all 0.4s ease;
  filter: brightness(0.9);
  display: block;
  max-width: 100%;
  max-height: 100%;
}

.project-card:hover .project-image {
  border-color: var(--accent);
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(50,230,255,0.3);
}

.project-card:hover .project-image img {
  filter: brightness(1.1);
  transform: scale(1.1);
}

.project-preview h3 {
  font-size: 20px;
  margin: 0 0 8px;
  color: var(--text);
  font-weight: 600;
}

.project-tech {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
  letter-spacing: 0.05em;
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(8,16,32,0.85);
  border: 1px solid var(--border);
  color: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 2;
  backdrop-filter: blur(12px);
}

.slider-nav:hover {
  background: var(--accent);
  color: #04101C;
  border-color: var(--accent);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 24px rgba(50,230,255,0.4);
}

.slider-nav.prev {
  left: -70px; /* Positioned outside the 1180px content width */
}

.slider-nav.next {
  right: -70px; /* Positioned outside the 1180px content width */
}

.slider-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

/* ============================================
   PROJECT MODAL - GLASSMORPHISM REDESIGN
   ============================================ */
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start; /* Align to top instead of center */
  justify-content: center;
  padding: 120px 20px 40px; /* More top padding to clear header */
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto; /* Allow scrolling if content is too tall */
}

.project-modal.active {
  opacity: 1;
  visibility: visible;
}

/* Enhanced backdrop with stronger blur for glassmorphism */
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(2,5,8,0.65); /* More transparent for better frosted glass effect */
  backdrop-filter: blur(40px) saturate(180%); /* Stronger blur for frosted glass */
  -webkit-backdrop-filter: blur(40px) saturate(180%); /* Safari support */
  cursor: pointer;
  transition: backdrop-filter 0.5s ease;
}

/* Fallback for browsers without backdrop-filter support */
@supports not (backdrop-filter: blur(25px)) {
  .modal-overlay {
    background: rgba(2,5,8,0.95);
  }
}

/* Premium glassmorphism modal content */
.modal-content {
  position: relative;
  z-index: 1;
  margin: 0; /* Remove auto margin since parent is flex-start */

  /* Frosted glass effect - more transparent for dark theme */
  background: linear-gradient(
    135deg,
    rgba(8,16,32,0.45) 0%,
    rgba(15,25,45,0.35) 100%
  );
  backdrop-filter: blur(50px) saturate(200%);
  -webkit-backdrop-filter: blur(50px) saturate(200%);

  /* Premium border with gradient */
  border: 1.5px solid rgba(50,230,255,0.3);
  border-radius: 24px; /* Smoother, more modern radius */

  /* Dimensions and overflow */
  max-width: 920px;
  width: 90%;
  max-height: calc(100vh - 160px); /* Subtract top and bottom padding */
  overflow-y: auto;
  padding: 56px;

  /* Premium shadow with cyan glow */
  box-shadow:
    0 40px 100px rgba(0,0,0,0.8),
    0 0 100px rgba(50,230,255,0.2),
    inset 0 1px 0 rgba(255,255,255,0.05); /* Subtle inner highlight */

  /* Smooth entrance animation */
  transform: scale(0.92);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); /* Bouncy easing */
}

/* Fallback for browsers without backdrop-filter support */
@supports not (backdrop-filter: blur(50px)) {
  .modal-content {
    background: linear-gradient(
      135deg,
      rgba(8,16,32,0.92) 0%,
      rgba(15,25,45,0.88) 100%
    );
  }
}

.project-modal.active .modal-content {
  transform: scale(1);
  opacity: 1;
}

/* Premium scrollbar styling for modal */
.modal-content::-webkit-scrollbar {
  width: 8px;
}

.modal-content::-webkit-scrollbar-track {
  background: rgba(50,230,255,0.05);
  border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    rgba(50,230,255,0.5),
    rgba(0,255,204,0.4)
  );
  border-radius: 10px;
  transition: background 0.3s ease;
}

.modal-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    rgba(50,230,255,0.8),
    rgba(0,255,204,0.6)
  );
}

/* ============================================
   PREMIUM CLOSE BUTTON - CYAN/TEAL THEME
   ============================================ */
.modal-close {
  position: fixed;
  top: 144px; /* 120px (project-modal padding-top) + 24px offset */
  right: calc((100vw - min(920px, 90vw)) / 2 + 24px); /* Align with modal-content */
  width: 44px;
  height: 44px;
  border-radius: 12px; /* Modern rounded square instead of circle */

  /* Glassmorphism background */
  background: linear-gradient(
    135deg,
    rgba(50,230,255,0.15),
    rgba(0,255,204,0.1)
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  /* Premium border */
  border: 1.5px solid rgba(50,230,255,0.4);

  /* Icon color */
  color: var(--accent);

  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1001; /* Above modal content */

  /* Smooth transitions */
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Subtle glow */
  box-shadow:
    0 4px 20px rgba(50,230,255,0.2),
    inset 0 1px 0 rgba(255,255,255,0.1);
}

/* Icon styling */
.modal-close svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.5;
  filter: drop-shadow(0 0 8px rgba(50,230,255,0.4));
  transition: all 0.3s ease;
}

/* Premium hover effect */
.modal-close:hover {
  background: linear-gradient(
    135deg,
    rgba(50,230,255,0.35),
    rgba(0,255,204,0.25)
  );
  border-color: var(--accent);
  transform: scale(1.1) rotate(90deg); /* Elegant rotation */

  /* Enhanced glow on hover */
  box-shadow:
    0 8px 30px rgba(50,230,255,0.5),
    0 0 40px rgba(50,230,255,0.3),
    inset 0 1px 0 rgba(255,255,255,0.2);
}

.modal-close:hover svg {
  filter: drop-shadow(0 0 12px rgba(50,230,255,0.8));
  transform: scale(1.1);
}

/* Active/click state */
.modal-close:active {
  transform: scale(0.95) rotate(90deg);
  box-shadow:
    0 2px 10px rgba(50,230,255,0.3),
    inset 0 1px 0 rgba(255,255,255,0.1);
}

/* ============================================
   MODAL BODY CONTENT - ENHANCED STYLING
   ============================================ */
.modal-body {
  position: relative;
}

/* Project hero image in modal */
.modal-body .project-hero-image {
  width: 100%;
  height: 280px;
  margin: 0 0 28px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(50,230,255,0.2);
  box-shadow: 0 12px 40px rgba(0,0,0,0.6), 0 0 30px rgba(50,230,255,0.15);
  background: rgba(8,16,32,0.4);
}

.modal-body .project-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Premium title with gradient */
.modal-body h2 {
  font-size: 40px;
  margin: 0 0 20px;
  color: var(--text);
  background: linear-gradient(
    135deg,
    var(--accent) 0%,
    rgba(0,255,204,0.9) 50%,
    #ffffff 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-shadow: 0 0 40px rgba(50,230,255,0.3);
}

/* Meta tags container */
.modal-body .project-meta {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

/* Enhanced meta tags with glassmorphism */
.modal-body .meta-tag {
  padding: 10px 18px;
  border-radius: 999px;

  /* Glassmorphism effect */
  background: linear-gradient(
    135deg,
    rgba(50,230,255,0.15),
    rgba(0,255,204,0.08)
  );
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  border: 1px solid rgba(50,230,255,0.3);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;

  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow:
    0 2px 10px rgba(50,230,255,0.1),
    inset 0 1px 0 rgba(255,255,255,0.1);
}

.modal-body .meta-tag:hover {
  background: linear-gradient(
    135deg,
    rgba(50,230,255,0.25),
    rgba(0,255,204,0.15)
  );
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow:
    0 4px 16px rgba(50,230,255,0.3),
    inset 0 1px 0 rgba(255,255,255,0.2);
}

/* Project description */
.modal-body .project-description {
  font-size: 18px;
  line-height: 1.8;
  color: rgba(229,240,255,0.9);
  margin-bottom: 36px;
  font-weight: 400;
}

/* Section headings */
.modal-body h3 {
  font-size: 24px;
  margin: 40px 0 20px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Accent bar before headings */
.modal-body h3::before {
  content: "";
  width: 4px;
  height: 28px;
  background: linear-gradient(
    180deg,
    var(--accent),
    rgba(0,255,204,0.6)
  );
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(50,230,255,0.5);
}

/* Lists */
.modal-body ul {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.modal-body ul li {
  position: relative;
  padding-left: 32px;
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 16px;
  transition: all 0.3s ease;
}

.modal-body ul li:hover {
  color: var(--text);
  transform: translateX(4px);
}

.modal-body ul li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 18px;
  font-weight: bold;
  filter: drop-shadow(0 0 8px rgba(50,230,255,0.6));
  transition: all 0.3s ease;
}

.modal-body ul li:hover::before {
  transform: translateX(4px);
  filter: drop-shadow(0 0 12px rgba(50,230,255,0.9));
}

/* Premium CTA button */
.modal-body .project-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;

  /* Gradient background */
  background: linear-gradient(
    135deg,
    var(--accent) 0%,
    rgba(0,255,204,0.9) 100%
  );

  color: #04101C;
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  margin-top: 32px;

  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Premium glow */
  box-shadow:
    0 0 40px rgba(50,230,255,0.5),
    0 8px 24px rgba(0,0,0,0.3),
    inset 0 1px 0 rgba(255,255,255,0.3);

  border: 1px solid rgba(255,255,255,0.2);
}

.modal-body .project-link:hover {
  background: linear-gradient(
    135deg,
    #4AEFFF 0%,
    rgba(0,255,225,1) 100%
  );
  transform: scale(1.08) translateY(-3px);

  /* Enhanced glow on hover */
  box-shadow:
    0 0 60px rgba(50,230,255,0.8),
    0 12px 32px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.5);
}

.modal-body .project-link:active {
  transform: scale(1.02) translateY(-1px);
}

.modal-body .project-link svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.5;
  transition: transform 0.3s ease;
}

.modal-body .project-link:hover svg {
  transform: translateX(3px);
}

.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(8,16,32,0.85);
  border: 1px solid var(--border);
  color: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 24px rgba(0,0,0,0.6), 0 0 30px rgba(50,230,255,0.2);
  backdrop-filter: blur(var(--blur));
  z-index: 100;
}

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

.back-to-top:hover {
  background: var(--accent);
  color: #04101C;
  border-color: var(--accent);
  transform: scale(1.1) translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.8), 0 0 45px rgba(50,230,255,0.4);
}

.back-to-top:active {
  transform: scale(0.95);
}

.back-to-top svg {
  stroke-width: 2.5;
  filter: drop-shadow(0 0 8px currentColor);
}

@media (max-width: 959px) {
  body { font-size: 15px; }
  main { padding: 0 24px 72px; }
  .section { padding: 70px 0; }
  #about { padding-top: 70px; }
  .section-header h2 { font-size: 30px; }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 56px;
    padding: 100px 24px 60px;
  }
  .hero-right {
    justify-self: center;
    max-width: 100%;
  }
  .hero {
    min-height: auto;
  }
  
  /* Hero services grid responsive - tablet */
  .hero-services-grid {
    max-width: 100%;
    gap: 8px;
  }

  .service-tile {
    min-height: 56px;
    padding: 12px 16px;
  }

  .tile-icon {
    width: 36px;
    height: 36px;
  }

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

  .service-tile h3 {
    font-size: 13px;
  }
  
  .trust-indicators {
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
  }

  .scroll-indicator {
    bottom: 40px;
  }
  #work .grid {
    grid-template-columns: 1fr;
  }
  #work .grid article:nth-child(1),
  #work .grid article:nth-child(2),
  #work .grid article:nth-child(3) {
    grid-column: span 1;
    grid-row: span 1;
  }
  .about-tagline {
    font-size: 18px;
    padding-left: 20px;
    max-width: 100%;
  }
  #about .grid.two {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .about-text {
    gap: 20px;
  }
  .about-block {
    padding: 20px;
  }
  .about-icon {
    font-size: 36px;
  }
  .about-block h3 {
    font-size: 20px;
  }
  .about-photo {
    height: 400px;
    order: -1;
  }
  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 24px;
    margin-top: 40px;
  }
  .timeline-line {
    display: none;
  }
  .grid.four,
  #stack .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .step-content {
    min-height: 160px;
    padding: 20px 16px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-top: 40px;
  }
  .contact-form {
    padding: 32px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  /* Projects section responsive - tablet */
  .projects-slider .project-card {
    flex: 0 0 calc((100% - 24px) / 2); /* 2 cards with 1 gap */
    min-width: calc((100% - 24px) / 2);
  }
  .projects-slider-wrapper {
    padding: 0 50px; /* Add padding back for smaller screens */
  }
  .project-card {
    max-height: 270px;
  }
  .project-image {
    height: 110px;
  }
  .slider-nav.prev {
    left: 0; /* Reset to default position for tablet */
  }
  .slider-nav.next {
    right: 0; /* Reset to default position for tablet */
  }

  /* Modal responsive - tablet */
  .project-modal {
    padding: 100px 20px 40px; /* Adjust top padding for tablet */
  }
  .modal-content {
    padding: 40px;
    border-radius: 20px;
    max-height: calc(100vh - 140px);
  }
  .modal-close {
    top: 120px; /* 100px (project-modal padding-top) + 20px offset */
    right: calc((100vw - min(920px, 90vw)) / 2 + 20px); /* Align with modal-content */
    width: 40px;
    height: 40px;
  }
  .modal-body .project-hero-image {
    height: 220px;
    margin-bottom: 24px;
  }
  .modal-body h2 {
    font-size: 34px;
  }
  .modal-body h3 {
    font-size: 22px;
    margin: 32px 0 16px;
  }
}
@media (max-width: 599px) {
  main {
    padding: 0 20px 64px;
    width: 100%;
    margin: 0 auto;
  }
  .nav {
    padding: 0 20px;
    height: 60px;
  }
  .logo img {
    height: 32px;
  }
  .logo span {
    font-size: 11px;
    letter-spacing: 0.04em;
  }
  nav ul { gap: 10px; }
  #about { padding-top: 60px; }

  .hero {
    min-height: auto;
    height: auto;
    width: 100vw;
    margin-left: -20px;
    margin-right: -20px;
    position: relative;
  }

  .hero-inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 10px 20px 30px;
    max-width: 100%;
    height: 100%;
    justify-content: flex-start;
  }

  .hero-left {
    display: contents;
  }

  .hero-right {
    order: 2;
    max-width: 100%;
    width: 100%;
  }

  .hero-text {
    display: contents;
  }

  .hero .section-label,
  .hero-text h1,
  .hero-text .hero-subline {
    order: 1;
  }

  .hero-text h1 {
    font-size: 36px;
    margin-bottom: 12px;
    line-height: 1.2;
  }

  .hero-subline {
    font-size: 14px;
    margin-bottom: 16px;
    line-height: 1.5;
  }

  .hero .section-label {
    display: none;
  }

  .status-badge {
    display: none;
  }

  .hero-actions {
    display: flex;
    flex-direction: row;
    gap: 10px;
    margin: 20px 0 0 0;
    order: 3;
    width: 100%;
  }

  .hero-actions .btn {
    padding: 13px 22px;
    font-size: 14px;
    flex: 1;
    text-align: center;
    justify-content: center;
  }

  .trust-indicators {
    display: none;
  }
  .meta-block {
    padding: 16px 20px;
  }
  .meta-text {
    font-size: 15px;
  }
  .hero-right {
    max-width: 100%;
  }

  /* Hero services grid responsive - mobile */
  .hero-services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .service-tile {
    min-height: 60px;
    padding: 14px 20px;
    gap: 12px;
    border-radius: 10px;
    flex-direction: row;
    text-align: left;
    align-items: center;
  }

  .tile-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
  }

  .tile-icon svg {
    width: 22px;
    height: 22px;
  }

  .service-tile h3 {
    font-size: 14px;
    line-height: 1.3;
    margin: 0;
  }

  .scroll-indicator {
    bottom: 20px;
    font-size: 10px;
  }

  .scroll-indicator span {
    font-size: 10px;
  }

  .scroll-indicator svg {
    width: 18px;
    height: 18px;
  }

  .about-tagline {
    font-size: 16px;
    padding-left: 16px;
    border-left: 2px solid var(--accent);
  }
  .about-block {
    padding: 18px;
  }
  .about-icon {
    font-size: 32px;
  }
  .about-block h3 {
    font-size: 18px;
  }
  .about-block ul li {
    font-size: 14px;
    padding-left: 20px;
  }
  .about-block p {
    font-size: 15px;
  }
  .about-badges {
    gap: 8px;
  }
  .skill-badge {
    font-size: 12px;
    padding: 8px 14px;
  }
  .about-photo {
    height: 320px;
  }
  .process-timeline {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 32px;
  }
  .grid.four,
  #stack .grid {
    grid-template-columns: 1fr;
  }
  .step-number {
    width: 48px;
    height: 48px;
    font-size: 20px;
    margin-bottom: 16px;
  }
  .step-content {
    min-height: auto;
    padding: 20px 16px;
  }
  .step-content h3 {
    font-size: 20px;
  }
  .step-content p {
    font-size: 14px;
  }
  .contact-grid {
    gap: 32px;
    margin-top: 32px;
  }
  .contact-form {
    padding: 24px;
  }
  .contact-info-card {
    padding: 20px;
  }
  .social-card {
    padding: 16px 20px;
  }
  .social-icon {
    width: 40px;
    height: 40px;
  }
  .social-content h4 {
    font-size: 16px;
  }
  .section { padding: 60px 0; }
  .back-to-top {
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
  }
  /* Projects section responsive - mobile */
  .projects-slider .project-card {
    flex: 0 0 100%; /* 1 card full width */
    min-width: 100%;
  }
  .projects-slider-wrapper {
    padding: 0 40px; /* Add padding back for mobile */
    margin-top: 40px;
  }
  .slider-nav {
    width: 40px;
    height: 40px;
  }
  .slider-nav.prev {
    left: 0; /* Reset to default position for mobile */
  }
  .slider-nav.next {
    right: 0; /* Reset to default position for mobile */
  }
  .project-card {
    padding: 28px 20px;
    min-height: 180px;
    max-height: 260px;
  }
  .project-image {
    height: 100px;
  }
  .project-icon {
    width: 70px;
    height: 70px;
  }

  /* Modal responsive - mobile */
  .project-modal {
    padding: 80px 16px 24px; /* Adjust for mobile header */
  }
  .modal-content {
    padding: 32px 24px;
    width: 95%;
    max-height: calc(100vh - 104px);
    border-radius: 20px;
  }
  .modal-close {
    top: 88px; /* Positioned just above modal */
    right: 20px; /* Simple fixed distance from right edge */
    width: 42px;
    height: 42px;
    border-radius: 12px;

    /* Enhanced visibility on mobile */
    box-shadow:
      0 6px 24px rgba(50,230,255,0.35),
      0 0 40px rgba(50,230,255,0.25),
      inset 0 1px 0 rgba(255,255,255,0.15);
  }
  .modal-close svg {
    width: 20px;
    height: 20px;
    stroke-width: 3;
  }
  .modal-body .project-hero-image {
    height: 180px;
    margin-bottom: 20px;
  }
  .modal-body h2 {
    font-size: 28px;
    margin-bottom: 16px;
  }
  .modal-body h3 {
    font-size: 20px;
    margin: 28px 0 14px;
  }
  .modal-body .project-description {
    font-size: 16px;
    margin-bottom: 28px;
  }
  .modal-body ul li {
    font-size: 15px;
    padding-left: 28px;
  }
  .modal-body .project-link {
    padding: 12px 24px;
    font-size: 14px;
    margin-top: 24px;
  }

  /* Hide Desktop Navigation on Mobile */
  .nav nav {
    display: none;
  }

  /* Hamburger Button */
  .hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    position: fixed;
    top: 10px;
    right: 16px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    -webkit-touch-callout: none;
    user-select: none;
  }

  .hamburger span {
    width: 100%;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
  }

  .hamburger:hover span {
    background: #4AEFFF;
    box-shadow: 0 0 8px rgba(50,230,255,0.6);
  }

  .hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  /* Mobile Menu Overlay (Blur Background) */
  .mobile-menu-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(2, 5, 8, 0.8);
    backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
  }

  .mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
  }

  /* Mobile Menu Panel */
  .mobile-menu {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, rgba(8,16,32,0.98), rgba(2,5,8,0.98));
    border-left: 1px solid var(--border);
    backdrop-filter: blur(20px);
    padding: 80px 32px 32px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: -10px 0 40px rgba(0,0,0,0.8), 0 0 60px rgba(50,230,255,0.1);
    overflow-y: auto;
  }

  .mobile-menu.active {
    transform: translateX(0);
  }

  /* Mobile Menu Links */
  .mobile-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .mobile-menu ul li {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .mobile-menu.active ul li {
    opacity: 1;
    transform: translateX(0);
  }

  .mobile-menu.active ul li:nth-child(1) { transition-delay: 0.1s; }
  .mobile-menu.active ul li:nth-child(2) { transition-delay: 0.15s; }
  .mobile-menu.active ul li:nth-child(3) { transition-delay: 0.2s; }
  .mobile-menu.active ul li:nth-child(4) { transition-delay: 0.25s; }
  .mobile-menu.active ul li:nth-child(5) { transition-delay: 0.3s; }

  .mobile-menu ul li a {
    display: block;
    padding: 16px 20px;
    color: var(--text);
    text-decoration: none;
    font-size: 18px;
    font-weight: 500;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
  }

  .mobile-menu ul li a::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 0;
    background: var(--accent);
    transform: translateY(-50%);
    transition: height 0.3s ease;
  }

  .mobile-menu ul li a:hover,
  .mobile-menu ul li a.active {
    background: rgba(50,230,255,0.1);
    border-color: var(--border-soft);
    color: var(--accent);
    transform: translateX(8px);
    box-shadow: 0 4px 16px rgba(50,230,255,0.2);
  }

  .mobile-menu ul li a:hover::before,
  .mobile-menu ul li a.active::before {
    height: 60%;
  }

  /* Prevent Body Scroll when Menu Open */
  body.menu-open {
    overflow: hidden;
  }
}

