/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
  --glass-bg: rgba(10, 30, 65, 0.6);
  --glass-card: rgba(12, 35, 75, 0.5);
  --glass-nav: rgba(8, 20, 50, 0.85);
  --glass-border: rgba(180, 210, 255, 0.1);
  --glass-blur: 10px;
  --text-primary: #E0EBFF;
  --text-secondary: #B0C8F0;
  --text-muted: #7088B0;
  --accent: #8AB4FF;
  --accent-light: #B8D4FF;
  --accent-dark: #5A8CDC;
  --accent-glow: rgba(138, 180, 255, 0.15);
  --grid-color: rgba(180, 210, 255, 0.06);
  --gradient-1: linear-gradient(135deg, #8AB4FF, #B8D4FF);
  --gradient-2: linear-gradient(135deg, #5A8CDC, #8AB4FF);
  --gradient-3: linear-gradient(135deg, #B8D4FF, #8AB4FF);
  --shadow: 0 6px 28px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px rgba(138, 180, 255, 0.06);
  --radius: 12px;
  --radius-sm: 6px;
  --radius-lg: 18px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-primary: 'Space Mono', monospace;
  --font-heading: 'Space Mono', monospace;
  --font-body: 'IBM Plex Mono', 'Space Mono', monospace;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  font-size: 14px;
  background-color: #0A2463;
  background-image:
    linear-gradient(rgba(180, 210, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180, 210, 255, 0.07) 1px, transparent 1px);
  background-size: 60px 60px;
}
body {
  font-family: var(--font-body);
  background: transparent;
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
  letter-spacing: 0.01em;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='1.5' fill='%238AB4FF'/%3E%3Cline x1='10' y1='2' x2='10' y2='6' stroke='%238AB4FF' stroke-width='1'/%3E%3Cline x1='10' y1='14' x2='10' y2='18' stroke='%238AB4FF' stroke-width='1'/%3E%3Cline x1='2' y1='10' x2='6' y2='10' stroke='%238AB4FF' stroke-width='1'/%3E%3Cline x1='14' y1='10' x2='18' y2='10' stroke='%238AB4FF' stroke-width='1'/%3E%3C/svg%3E") 10 10, crosshair;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

a, button, input, textarea, .clickable, [role="button"], label, select, summary, [tabindex]:not([tabindex="-1"]) {
  cursor: pointer;
}

/* ===== BLUEPRINT FOLD MARKS ===== */
.bp-fold {
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  opacity: 0.06;
}
.bp-fold-1 {
  top: 0; right: 0;
  width: 60px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent));
  transform: rotate(-45deg) translate(-10px, -10px);
}
.bp-fold-2 {
  bottom: 0; left: 0;
  width: 60px; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: rotate(-45deg) translate(10px, 10px);
}
.bp-fold-3 {
  position: fixed;
  top: 33.33%; left: 0;
  width: 100%; height: 1px;
  background: repeating-linear-gradient(
    90deg,
    transparent, transparent 20px,
    rgba(180,210,255,0.04) 20px, rgba(180,210,255,0.04) 21px
  );
  pointer-events: none;
  z-index: 99999;
  opacity: 0.5;
}
.bp-crease {
  position: fixed;
  top: 66.66%; left: 0;
  width: 100%; height: 1px;
  background: repeating-linear-gradient(
    90deg,
    transparent, transparent 15px,
    rgba(180,210,255,0.03) 15px, rgba(180,210,255,0.03) 16px
  );
  pointer-events: none;
  z-index: 99999;
  opacity: 0.5;
}

/* ===== CUSTOM CURSOR ===== */
#cursorTrail {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 99998;
}
.cursor-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s;
  box-shadow:
     0 0 6px rgba(180, 210, 255, 0.8),
     0 0 20px rgba(138, 180, 255, 0.4),
     0 0 40px rgba(138, 180, 255, 0.2);
}

#cursorTrail, .cursor-dot { display: none; }

/* ===== SCROLL TEXT REVEAL ===== */
.reveal-text {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-text.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== GLASS MIXIN (applied via class) ===== */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
}

.glass-card {
  background: var(--glass-card);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
}

::selection {
  background: var(--accent);
  color: #fff;
}

/* ===== HIDE SCROLLBAR ===== */
html { overflow-y: scroll; }
html::-webkit-scrollbar { width: 0; height: 0; display: none; }
html { scrollbar-width: none; -ms-overflow-style: none; }
body::-webkit-scrollbar { width: 0; height: 0; display: none; }

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; outline: none; background: none; }
input, textarea { font-family: inherit; outline: none; border: none; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 2px;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: var(--transition);
  cursor: pointer;
}
.btn-primary {
  background: #8AB4FF;
  color: #0A2463;
  border: 1.5px solid #8AB4FF;
}
.btn-primary:hover {
  background: #B8D4FF;
  border-color: #B8D4FF;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(138, 180, 255, 0.3);
}
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid rgba(138, 180, 255, 0.3);
}
.btn-outline:hover {
  border-color: var(--accent);
  background: rgba(138, 180, 255, 0.05);
  transform: translateY(-2px);
}
.btn-full { width: 100%; justify-content: center; }
.btn-ghost {
  background: transparent;
  color: rgba(138,180,255,0.6);
  border: 1px dashed rgba(138,180,255,0.2);
  font-size: 0.6rem;
}
.btn-ghost:hover {
  color: var(--accent);
  border-color: rgba(138,180,255,0.4);
  background: rgba(138,180,255,0.04);
  transform: translateY(-2px);
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}
.section-subtitle {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 8px;
}
.section-header {
  text-align: center;
  margin-bottom: 48px;
  position: relative;
}
.section-header::before {
  content: '';
  position: absolute;
  top: -8px; left: 50%;
  transform: translateX(-50%);
  width: 60%;
  max-width: 300px;
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    var(--accent) 0px,
    var(--accent) 4px,
    transparent 4px,
    transparent 8px
  );
  opacity: 0.25;
}
.section-header::after {
  content: '';
  position: absolute;
  bottom: -8px; left: 50%;
  transform: translateX(-50%);
  width: 60%;
  max-width: 300px;
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    var(--accent) 0px,
    var(--accent) 4px,
    transparent 4px,
    transparent 8px
  );
  opacity: 0.25;
}
.section-line {
  width: 0;
  height: 2px;
  background: var(--accent);
  margin: 0 auto;
  opacity: 0.5;
  position: relative;
  animation: drawLine 0.8s ease forwards;
}
.section-line::before,
.section-line::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  border: 1px solid var(--accent);
  opacity: 0;
  animation: fadeIn 0.4s ease 0.8s forwards;
}
.section-line::before { left: -12px; top: -2px; }
.section-line::after { right: -12px; top: -2px; }

@keyframes drawLine {
  from { width: 0; }
  to { width: 40px; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 0.3; }
}

.section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.section::before {
  content: '';
  position: absolute;
  top: 16px; left: 16px;
  width: 16px; height: 16px;
  border-top: 2px solid rgba(138,180,255,0.12);
  border-left: 2px solid rgba(138,180,255,0.12);
  pointer-events: none;
}
.section::after {
  content: '';
  position: absolute;
  bottom: 16px; right: 16px;
  width: 16px; height: 16px;
  border-bottom: 2px solid rgba(138,180,255,0.12);
  border-right: 2px solid rgba(138,180,255,0.12);
  pointer-events: none;
}

/* ===== TAPE MARKS ===== */
.section-tape {
  position: absolute;
  width: 50px;
  height: 14px;
  opacity: 0.1;
  pointer-events: none;
  z-index: 0;
}
.section-tape-1 {
  top: -5px; left: 12%;
  background: linear-gradient(135deg, transparent 25%, #f5e6c8 25%, #f5e6c8 75%, transparent 75%);
  transform: rotate(-3deg);
}
.section-tape-2 {
  bottom: -5px; right: 15%;
  background: linear-gradient(225deg, transparent 25%, #f5e6c8 25%, #f5e6c8 75%, transparent 75%);
  transform: rotate(4deg);
}

/* ===== CUT MARKS BETWEEN SECTIONS ===== */
.section-cut {
  height: 1px;
  margin: 0;
  border: none;
  width: 100%;
  background: repeating-linear-gradient(
    90deg,
    var(--accent) 0px,
    var(--accent) 8px,
    transparent 8px,
    transparent 20px
  );
  opacity: 0.1;
}

.section-scale {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.55rem;
  font-weight: 400;
  color: rgba(138,180,255,0.2);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-family: 'Space Mono', monospace;
  pointer-events: none;
  white-space: nowrap;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(8, 20, 50, 0.9);
  border-bottom: 1px solid rgba(138,180,255,0.08);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(8, 20, 50, 0.95);
}

.navbar::before {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 20px; right: 20px;
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    rgba(138,180,255,0.12) 0px, rgba(138,180,255,0.12) 4px,
    transparent 4px, transparent 8px
  );
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.logo {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(138,180,255,0.1);
  padding: 6px 14px;
  transition: var(--transition);
  position: relative;
}
.logo:hover {
  border-color: rgba(138,180,255,0.3);
}
.logo::before, .logo::after {
  content: '◆';
  position: absolute;
  font-size: 4px;
  color: rgba(138,180,255,0.2);
}
.logo::before { left: -6px; top: 50%; transform: translateY(-50%); }
.logo::after { right: -6px; top: 50%; transform: translateY(-50%); }

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

.nav-links {
  display: flex;
  gap: 4px;
}
.nav-links li { list-style: none; }

.nav-links a {
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(138,180,255,0.4);
  transition: var(--transition);
  position: relative;
  padding: 6px 12px;
  border: 1px solid transparent;
}
.nav-links a:hover {
  color: rgba(138,180,255,0.8);
  border-color: rgba(138,180,255,0.1);
  background: rgba(138,180,255,0.03);
}
.nav-links a.active {
  color: var(--accent);
  border-color: rgba(138,180,255,0.15);
  background: rgba(138,180,255,0.05);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  transition: var(--transition);
  border: 1px solid var(--glass-border);
}

.lang-toggle:hover {
  color: var(--accent-light);
  border-color: var(--accent);
  background: rgba(138, 180, 255, 0.1);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 4px;
  transition: var(--transition);
}

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

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding-top: 60px;
}
.hero::before {
  content: '';
  position: absolute;
  top: 16px; left: 16px;
  width: 16px; height: 16px;
  border-top: 2px solid rgba(138,180,255,0.12);
  border-left: 2px solid rgba(138,180,255,0.12);
  pointer-events: none;
  z-index: 1;
}
.hero-corner {
  position: absolute;
  bottom: 16px; right: 16px;
  width: 16px; height: 16px;
  border-bottom: 2px solid rgba(138,180,255,0.12);
  border-right: 2px solid rgba(138,180,255,0.12);
  pointer-events: none;
  z-index: 1;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(138, 180, 255, 0.1) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(180, 210, 255, 0.05) 0%, transparent 40%);
}

/* ===== BLUEPRINT DRAFT MARKS ===== */
.blueprint-marks {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.bp-arc {
  position: absolute;
  border: 1.5px solid rgba(180, 210, 255, 0.15);
  border-radius: 50%;
  animation: spinSlow 30s linear infinite;
}
.bp-arc-1 {
  top: -15%;
  right: -8%;
  width: 500px;
  height: 500px;
  animation-duration: 40s;
  animation-direction: reverse;
}
.bp-arc-2 {
  bottom: -10%;
  left: -5%;
  width: 400px;
  height: 400px;
  animation-duration: 35s;
}
.bp-arc-3 {
  top: 35%;
  left: 15%;
  width: 300px;
  height: 300px;
  border-color: rgba(180, 210, 255, 0.1);
  animation-duration: 45s;
  animation-direction: reverse;
}
.bp-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(180, 210, 255, 0.1);
  animation: pulseSoft 4s ease-in-out infinite;
}
.bp-circle-1 {
  top: 10%;
  left: 60%;
  width: 100px;
  height: 100px;
  border-color: rgba(180, 210, 255, 0.08);
  animation-delay: -1s;
}
.bp-line {
  position: absolute;
  background: rgba(180, 210, 255, 0.05);
}
.bp-line-h {
  left: 0; right: 0;
  height: 1px;
  top: 70%;
  animation: driftX 8s ease-in-out infinite;
}
.bp-line-v {
  top: 0; bottom: 0;
  width: 1px;
  left: 30%;
  animation: driftY 10s ease-in-out infinite;
}

/* ===== HUD CORNERS ===== */
.hud-corner {
  position: absolute;
  width: 30px;
  height: 30px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.15;
  animation: pulseCorner 3s ease-in-out infinite;
}
.hud-tl { top: 20px; left: 20px; border-top: 2px solid var(--accent); border-left: 2px solid var(--accent); }
.hud-tr { top: 20px; right: 20px; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); }
.hud-bl { bottom: 20px; left: 20px; border-bottom: 2px solid var(--accent); border-left: 2px solid var(--accent); }
.hud-br { bottom: 20px; right: 20px; border-bottom: 2px solid var(--accent); border-right: 2px solid var(--accent); }
.hud-tl { animation-delay: 0s; }
.hud-tr { animation-delay: -0.75s; }
.hud-bl { animation-delay: -1.5s; }
.hud-br { animation-delay: -2.25s; }

@keyframes spinSlow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes pulseSoft {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.08); }
}
@keyframes pulseCorner {
  0%, 100% { opacity: 0.1; }
  50% { opacity: 0.25; }
}
@keyframes driftX {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(15px); }
}
@keyframes driftY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 24px;
  color: var(--accent);
  animation: floatHero 4s ease-in-out infinite, fadeInUp 0.6s ease;
}
.badge-stamp {
  display: block;
  filter: drop-shadow(0 0 6px rgba(138,180,255,0.15));
}

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

.hero-title {
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 20px;
  animation: floatHero 5s ease-in-out -1s infinite, fadeInUp 0.6s ease 0.1s both;
}

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

.hero-typing-wrapper {
  display: inline-block;
  margin-left: 0;
}
.typing {
  font-weight: 400;
  color: var(--accent);
}
.cursor {
  display: inline-block;
  font-weight: 100;
  animation: blink 0.7s step-end infinite;
  color: var(--accent);
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 28px;
  line-height: 1.7;
}

.hero-social {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  gap: 16px;
}
.hero-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  transition: var(--transition);
  font-size: 1rem;
}
.hero-social a:hover {
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-3px);
}

/* ===== BLUEPRINT CONCEPT ===== */
.concept-content {
  max-width: 800px;
  margin: 0 auto;
}
.concept-text {
  margin-bottom: 60px;
}
.concept-text p {
  font-size: 0.75rem;
  line-height: 1.9;
  color: rgba(180,200,230,0.7);
  margin-bottom: 20px;
}
.concept-text p strong {
  color: rgba(180,210,255,0.9);
}
.concept-text p em {
  color: rgba(138,180,255,0.7);
  font-style: normal;
}
.concept-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.concept-card {
  border: 1px solid rgba(138,180,255,0.06);
  padding: 28px 24px;
  background: rgba(10,36,99,0.2);
  text-align: center;
}
.concept-card-icon {
  margin-bottom: 16px;
  opacity: 0.6;
}
.concept-card h3 {
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(180,210,255,0.8);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-family: 'Space Mono', monospace;
}
.concept-card p {
  font-size: 0.65rem;
  color: rgba(180,200,230,0.5);
  line-height: 1.7;
}

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

.about-image-wrapper {
  position: relative;
}

.about-image {
  position: relative;
  aspect-ratio: 3/4;
  border: 1.5px solid rgba(138,180,255,0.12);
  position: relative;
  overflow: hidden;
}
.about-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(138,180,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138,180,255,0.04) 1px, transparent 1px);
  background-size: 15px 15px;
  pointer-events: none;
  z-index: 1;
}
.about-image::after {
  content: '';
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(138,180,255,0.06);
  pointer-events: none;
}

.about-image-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.85) contrast(1.05);
}

/* Figure label */
.about-figure-label {
  position: absolute;
  bottom: -24px;
  left: 0;
  font-family: 'Space Mono', monospace;
  font-size: 0.5rem;
  color: rgba(138,180,255,0.15);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-image-placeholder {
  width: 100%;
  height: 100%;
  background: #0A2463;
  background-image:
    linear-gradient(rgba(180, 210, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180, 210, 255, 0.08) 1px, transparent 1px);
  background-size: 20px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  color: rgba(200, 220, 255, 0.4);
  position: relative;
}
.about-image-placeholder::before {
  content: '';
  position: absolute;
  inset: 10%;
  border: 1.5px solid rgba(180, 210, 255, 0.1);
  border-radius: 4px;
}
.about-image-placeholder::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 1px;
  background: rgba(180, 210, 255, 0.04);
}
.about-image-placeholder i {
  position: relative;
  z-index: 1;
}

.about-experience-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: rgba(10,36,99,0.8);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(138,180,255,0.1);
  padding: 16px 18px;
  text-align: center;
}

.exp-number {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.exp-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.about-content h3 {
  font-size: 1.35rem;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.about-content p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 32px 0;
}

.stat-item {
  text-align: center;
  padding: 20px 12px;
  background: var(--glass-card);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  transition: var(--transition);
}

.stat-item:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* ===== SKILLS ===== */
.skills {
  background: transparent;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.skill-category {
  background: rgba(12, 35, 75, 0.3);
  border: 1px solid rgba(138,180,255,0.12);
  position: relative;
  padding: 28px;
  transition: var(--transition);
}
.skill-category::before {
  content: '';
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(138,180,255,0.05);
  pointer-events: none;
}

.skill-category:hover {
  border-color: rgba(138,180,255,0.25);
}

.skill-category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px dashed rgba(138,180,255,0.1);
}

.skill-category-header i {
  font-size: 1.2rem;
  color: var(--accent);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(138,180,255,0.1);
}

.skill-category-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.skill-item { margin-bottom: 18px; }
.skill-item:last-child { margin-bottom: 0; }

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.8rem;
}

.skill-info span:first-child { color: rgba(200,215,255,0.85); }
.skill-percent { color: var(--accent); font-weight: 700; }

.skill-bar {
  height: 3px;
  background: rgba(138,180,255,0.08);
  position: relative;
}
.skill-bar::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 1px;
  background: repeating-linear-gradient(90deg, rgba(138,180,255,0.06) 0, rgba(138,180,255,0.06) 4px, transparent 4px, transparent 8px);
}

.skill-fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  position: relative;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.skill-fill::after {
  content: '';
  position: absolute;
  right: -2px;
  top: -3px;
  width: 5px;
  height: 9px;
  border: 1px solid var(--accent);
  background: rgba(138,180,255,0.15);
}

.skill-item.animated .skill-fill {
  width: var(--percent);
}
.skill-item:hover .skill-fill {
  filter: brightness(1.3);
  box-shadow: 0 0 12px rgba(138,180,255,0.15);
}
.skill-item:hover .skill-percent {
  color: #fff;
}

/* ===== SERVICES ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: rgba(12, 35, 75, 0.3);
  border: 1px solid rgba(138,180,255,0.06);
  padding: 36px 28px;
  text-align: center;
  transition: var(--transition);
  position: relative;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border: 1px solid rgba(138,180,255,0.03);
  pointer-events: none;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(138,180,255,0.15), transparent);
  transition: width 0.4s ease;
  transform: translateX(-50%);
  pointer-events: none;
}
.service-card:hover::after { width: 60%; }

/* Spec number label */
.service-spec {
  position: absolute;
  top: 8px; right: 10px;
  font-family: 'Space Mono', monospace;
  font-size: 0.45rem;
  color: rgba(138,180,255,0.08);
  letter-spacing: 0.1em;
}

.service-card:hover {
  border-color: rgba(138,180,255,0.2);
  transform: translateY(-4px);
}

.service-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(138, 180, 255, 0.1);
  border-radius: 16px;
  font-size: 1.6rem;
  color: var(--accent);
  transition: var(--transition);
}
.service-card:hover {
  border-color: rgba(138,180,255,0.2);
  transform: translateY(-4px);
}
.service-card:hover .service-spec {
  color: rgba(138,180,255,0.3);
}
.service-card:hover .service-icon {
  background: var(--accent);
  color: #fff;
  transform: rotateY(180deg);
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(138,180,255,0.15), transparent);
  transition: width 0.4s ease;
  transform: translateX(-50%);
  pointer-events: none;
}
.service-card:hover::after {
  width: 60%;
  opacity: 1;
}

.service-card h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
}



/* ===== PROJECTS ===== */
.projects { background: transparent; }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.project-card {
  background: rgba(12, 35, 75, 0.3);
  border: 1px solid rgba(138,180,255,0.06);
  transition: var(--transition);
  position: relative;
}
.project-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border: 1px solid rgba(138,180,255,0.03);
  pointer-events: none;
}

.project-card:hover {
  border-color: rgba(138,180,255,0.2);
  transform: translateY(-4px);
}

/* Drawing number label */
.project-dwg {
  position: absolute;
  top: 8px; right: 10px;
  font-family: 'Space Mono', monospace;
  font-size: 0.45rem;
  color: rgba(138,180,255,0.08);
  letter-spacing: 0.1em;
  z-index: 2;
  pointer-events: none;
}

.project-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.project-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(200, 220, 255, 0.6);
  transition: transform 0.5s ease;
  position: relative;
  background: #0A2463;
  background-image:
    linear-gradient(rgba(180, 210, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180, 210, 255, 0.08) 1px, transparent 1px);
  background-size: 20px 20px;
}
.project-placeholder::before {
  content: '';
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(180, 210, 255, 0.12);
  border-radius: 4px;
}
.project-placeholder::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 80%; height: 1px;
  background: rgba(180, 210, 255, 0.06);
  transform: translate(-50%, -50%);
}
.project-placeholder i {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 8px rgba(180, 210, 255, 0.15));
}
.project-placeholder .bp-dim {
  position: absolute;
  font-size: 0.5rem;
  color: rgba(180, 210, 255, 0.2);
  font-family: 'Space Mono', monospace;
  letter-spacing: 0.05em;
}
.project-placeholder .bp-dim-t { top: 6px; left: 12px; }
.project-placeholder .bp-dim-b { bottom: 6px; right: 12px; }
.project-placeholder .bp-dim-l { bottom: 6px; left: 12px; }

.project-card:hover .project-placeholder {
  transform: scale(1.1);
}

.project-info {
  padding: 20px 24px 24px;
}
.project-tag {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  color: rgba(138,180,255,0.3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(138,180,255,0.06);
  padding: 2px 10px;
  margin-bottom: 10px;
}
.project-info h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  font-weight: 600;
}
.project-info p {
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.6;
}

.project-card {
  background: var(--glass-card);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  transform-style: preserve-3d;
  perspective: 800px;
  animation: float 6s ease-in-out infinite;
}
.project-card:nth-child(2) { animation-delay: -1.5s; }
.project-card:nth-child(3) { animation-delay: -3s; }
.project-card:nth-child(4) { animation-delay: -0.8s; }
.project-card:nth-child(5) { animation-delay: -2.5s; }
.project-card:nth-child(6) { animation-delay: -4s; }

.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-8px);
  box-shadow: var(--shadow-glow);
}
.project-image::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 40px; height: 40px;
  transform: translate(-50%, -50%) scale(0.8);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  z-index: 2;
  border-left: 1px dashed rgba(138,180,255,0.15);
  border-right: 1px dashed rgba(138,180,255,0.15);
  border-top: 1px dashed rgba(138,180,255,0.1);
  border-bottom: 1px dashed rgba(138,180,255,0.1);
}
.project-card:hover .project-image::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.project-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.project-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(200, 220, 255, 0.6);
  transition: transform 0.5s ease;
  position: relative;
  background: #0A2463;
  background-image:
    linear-gradient(rgba(180, 210, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180, 210, 255, 0.08) 1px, transparent 1px);
  background-size: 20px 20px;
}
.project-placeholder::before {
  content: '';
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(180, 210, 255, 0.12);
  border-radius: 4px;
}
.project-placeholder::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 80%; height: 1px;
  background: rgba(180, 210, 255, 0.06);
  transform: translate(-50%, -50%);
}
.project-placeholder i {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 8px rgba(180, 210, 255, 0.15));
}
.project-placeholder .bp-dim {
  position: absolute;
  font-size: 0.5rem;
  color: rgba(180, 210, 255, 0.2);
  font-family: 'Space Mono', monospace;
  letter-spacing: 0.05em;
}
.project-placeholder .bp-dim-t { top: 6px; left: 12px; }
.project-placeholder .bp-dim-b { bottom: 6px; right: 12px; }
.project-placeholder .bp-dim-l { bottom: 6px; left: 12px; }

.project-card:hover .project-placeholder {
  transform: scale(1.1);
}

.project-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(138, 180, 255, 0.1);
  color: var(--accent-light);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.project-info h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.project-info p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 50%;
  width: 2px;
  background: repeating-linear-gradient(
    to bottom,
    var(--glass-border) 0px,
    var(--glass-border) 6px,
    transparent 6px,
    transparent 12px
  );
  transform: translateX(50%);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 40px 60px;
}

.timeline-item[data-side="right"] {
  margin-right: 50%;
  text-align: right;
}

.timeline-item[data-side="left"] {
  margin-left: 50%;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  top: 8px;
  width: 16px;
  height: 16px;
  background: transparent;
  border-radius: 0;
  border: none;
  box-shadow: none;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.timeline-dot::before {
  content: '';
  width: 10px;
  height: 10px;
  border: 2px solid var(--accent);
  background: var(--bg-primary, #0A2463);
  transform: rotate(45deg);
}
.timeline-dot::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 1px;
  background: var(--accent);
  opacity: 0.3;
}
[data-side="right"] .timeline-dot { right: -9px; }
[data-side="right"] .timeline-dot::after { right: 14px; }
[data-side="left"] .timeline-dot { left: -9px; }
[data-side="left"] .timeline-dot::after { left: 14px; }

.timeline-content {
  background: var(--glass-card);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
}

.timeline-content:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}
.timeline-item:hover .timeline-dot::before {
  border-color: var(--accent-light);
  box-shadow: 0 0 8px rgba(138,180,255,0.2);
}
.timeline-content {
  position: relative;
}
.timeline-content::before,
.timeline-content::after {
  content: '';
  position: absolute;
  width: 10px; height: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.timeline-content::before {
  top: 6px; left: 6px;
  border-top: 1px solid rgba(138,180,255,0.15);
  border-left: 1px solid rgba(138,180,255,0.15);
}
.timeline-content::after {
  bottom: 6px; right: 6px;
  border-bottom: 1px solid rgba(138,180,255,0.15);
  border-right: 1px solid rgba(138,180,255,0.15);
}
.timeline-content:hover::before,
.timeline-content:hover::after {
  opacity: 1;
}

.timeline-date {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(138, 180, 255, 0.1);
  color: var(--accent-light);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.timeline-content h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.timeline-content h4 {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 12px;
}

.timeline-content p {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

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

.timeline-tags span {
  padding: 4px 12px;
  background: rgba(138, 180, 255, 0.08);
  border: 1px solid rgba(138, 180, 255, 0.15);
  border-radius: 50px;
  font-size: 0.75rem;
  color: var(--accent-light);
}

/* ===== TESTIMONIALS ===== */
.testimonials {
  background: transparent;
}

.testimonials-slider {
  max-width: 650px;
  margin: 0 auto;
  position: relative;
}

.testimonial-card {
  background: var(--glass-card);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  display: none;
  animation: fadeIn 0.5s ease;
}
.testimonial-card.active {
  display: block;
  animation: float 5s ease-in-out infinite;
}
.testimonial-card:nth-child(2).active { animation-delay: -1.5s; }
.testimonial-card:nth-child(3).active { animation-delay: -3s; }

/* ===== FLOAT KEYFRAMES ===== */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

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

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

.testimonial-stars {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 20px;
  color: var(--accent);
}

.testimonial-text {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--gradient-1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}

.testimonial-author h4 {
  font-size: 1rem;
  text-align: right;
}

.testimonial-author span {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: block;
  text-align: right;
}

.testimonials-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}

.testimonial-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--glass-border);
  border: none;
  transition: var(--transition);
}

.testimonial-dot.active {
  background: var(--accent);
  width: 36px;
  border-radius: 6px;
}

/* ===== CONTACT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
}

.contact-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(138, 180, 255, 0.1);
  border-radius: var(--radius-sm);
  color: var(--accent);
  font-size: 1.1rem;
}

.contact-item h4 {
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.contact-item a, .contact-item span {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: var(--transition);
}

.contact-item a:hover { color: var(--accent-light); }

.contact-social {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}

.contact-social a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-size: 1.1rem;
  transition: var(--transition);
}

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

.contact-form {
  background: var(--glass-card);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 32px;
}

.form-note {
  font-size: 0.5rem;
  font-family: 'Space Mono', monospace;
  color: rgba(138, 180, 255, 0.15);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 16px;
  text-align: right;
  border-bottom: 1px solid rgba(138, 180, 255, 0.06);
  padding-bottom: 8px;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}
.form-group::before {
  content: '▶';
  position: absolute;
  left: -18px;
  top: 14px;
  font-size: 0.45rem;
  color: rgba(138, 180, 255, 0.1);
  font-family: 'Space Mono', monospace;
  pointer-events: none;
}

.form-group input, .form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--glass-border);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: var(--font-body);
  transition: var(--transition);
  border-radius: 0;
}

.form-group input:focus, .form-group textarea:focus {
  border-bottom-color: var(--accent);
  box-shadow: none;
  outline: none;
}

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

.form-error {
  display: block;
  font-size: 0.78rem;
  color: #ef4444;
  margin-top: 4px;
  opacity: 0;
  transition: var(--transition);
}

.form-group.error input,
.form-group.error textarea {
  border-color: #ef4444;
}

.form-group.error .form-error {
  opacity: 1;
}

/* ===== PRINT BUTTON ===== */
.btn-print {
  background: transparent;
  border: 1px solid rgba(138, 180, 255, 0.15);
  color: var(--text-muted);
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  padding: 6px 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.btn-print:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(138, 180, 255, 0.05);
}

/* ===== FOOTER ===== */
.footer {
  background: transparent;
  border-top: 1px solid var(--glass-border);
  padding: 60px 0 30px;
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: -1px; left: 10%;
  width: 80%; height: 1px;
  background: repeating-linear-gradient(
    90deg,
    var(--accent) 0px,
    var(--accent) 3px,
    transparent 3px,
    transparent 8px
  );
  opacity: 0.15;
  pointer-events: none;
}

.footer-content {
  text-align: center;
}

.footer-logo {
  font-size: 1.8rem;
  font-weight: 900;
  margin-bottom: 12px;
  letter-spacing: -1px;
}

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

.footer-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--glass-border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== BACK TO TOP ===== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 42px;
  height: 42px;
  background: transparent;
  color: var(--accent);
  border: 1.5px solid rgba(138, 180, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  box-shadow: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: var(--transition);
  z-index: 999;
}

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

.back-to-top:hover {
  border-color: var(--accent);
  background: rgba(138, 180, 255, 0.05);
  transform: translateY(-3px);
  box-shadow: none;
}

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

/* ===== REVEAL ON SCROLL ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-delay-100 { transition-delay: 0.1s; }
.reveal-delay-200 { transition-delay: 0.2s; }
.reveal-delay-300 { transition-delay: 0.3s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-image-wrapper { max-width: 400px; margin: 0 auto; }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 60px;
    right: -100%;
    width: 280px;
    height: calc(100vh - 60px);
    background: rgba(8, 20, 50, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 32px;
    gap: 16px;
    border-left: 1px solid rgba(138,180,255,0.08);
    transition: 0.4s ease;
  }

  .nav-links.open { right: 0; }

  .nav-links a { font-size: 0.85rem; }

  .hamburger { display: flex; }

  .hero-title { font-size: 1.5rem; }
  .hero-desc { font-size: 0.8rem; }

  .section { padding: 60px 0; }

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

  .skills-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }

  .timeline::before { right: 20px; }

  .timeline-item {
    width: 100%;
    padding: 0 0 40px 50px;
  }

  .timeline-item[data-side="right"],
  .timeline-item[data-side="left"] {
    margin: 0;
    text-align: right;
  }

  .timeline-dot {
    right: auto !important;
    left: 12px !important;
  }

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

  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .back-to-top { bottom: 20px; right: 20px; width: 38px; height: 38px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero-title { font-size: 1.2rem; }
  .hero-buttons { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .about-stats { grid-template-columns: repeat(2, 1fr); }
  .stat-number { font-size: 1.5rem; }
  .project-info { padding: 16px; }
}

/* ===== ANIMATED CARD BORDER GLOW ===== */
.glass-card-border {
  position: relative;
  transition: box-shadow 0.4s ease, transform 0.3s ease;
}
.glass-card-border:hover {
  box-shadow:
    0 0 0 1.5px var(--accent),
    0 0 25px rgba(138, 180, 255, 0.2),
    inset 0 0 25px rgba(138, 180, 255, 0.05);
  animation: borderPulse 2.5s ease-in-out infinite;
}
@keyframes borderPulse {
  0%, 100% {
    box-shadow:
      0 0 0 1.5px var(--accent),
      0 0 25px var(--accent-glow),
      inset 0 0 25px var(--accent-glow);
  }
  50% {
    box-shadow:
      0 0 0 2px var(--accent-light),
      0 0 35px rgba(138, 180, 255, 0.15),
      inset 0 0 35px rgba(138, 180, 255, 0.05);
  }
}

/* ===== SKILL ICON FLOAT ===== */
.skill-icon-float {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}
.skill-icon-float i {
  font-size: 1.6rem;
  animation: iconPulse 3s ease-in-out infinite;
  transition: transform 0.3s ease, filter 0.3s ease;
}
.skill-icon-float:hover i {
  animation-play-state: paused;
  transform: scale(1.3) rotate(5deg);
  filter: drop-shadow(0 0 12px var(--accent));
}
@keyframes iconPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

/* ===== 3D BACKGROUND CANVAS ===== */
#blueprintBg {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -1 !important;
  pointer-events: none;
}
#fluidCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: -2 !important;
  pointer-events: none;
}

/* ===== LOADING SCREEN ===== */
.loading-screen {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #0A2463;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  background-image:
    linear-gradient(rgba(138,180,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138,180,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}
.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}
.loading-grid {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image:
    linear-gradient(rgba(138,180,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(138,180,255,0.02) 1px, transparent 1px);
  background-size: 200px 200px;
  pointer-events: none;
}
.loading-content {
  text-align: center;
  position: relative;
}
.loading-compass {
  width: 80px; height: 80px;
  margin: 0 auto 24px;
  animation: spinSlow 4s linear infinite;
}
@keyframes spinSlow {
  to { transform: rotate(360deg); }
}
.loading-compass-svg { width: 100%; height: 100%; }
.loading-text { font-family: 'Space Mono', monospace; }
.loading-title {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.25em;
  color: rgba(138,180,255,0.5);
  margin-bottom: 12px;
}
.loading-bar-track {
  width: 200px;
  height: 2px;
  background: rgba(138,180,255,0.1);
  margin: 0 auto 10px;
  position: relative;
  overflow: hidden;
}
.loading-bar-fill {
  width: 0%;
  height: 100%;
  background: var(--gradient-1);
  transition: width 0.3s ease;
}
.loading-sub {
  display: block;
  font-size: 0.5rem;
  color: rgba(138,180,255,0.25);
  letter-spacing: 0.15em;
}

/* ===== COMPASS ROSE ===== */
.bp-compass-rose {
  position: fixed;
  width: 70px;
  height: 70px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
  transition: opacity 0.3s;
}

/* ===== BLUEPRINT STAMP ===== */
.bp-stamp {
  position: fixed;
  bottom: 120px;
  right: 30px;
  width: 140px;
  height: auto;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
  rotate: -6deg;
}
.bp-stamp svg { width: 100%; height: auto; }

/* ===== LEGEND ===== */
.bp-legend {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 1;
  font-family: 'Space Mono', monospace;
  font-size: 0.5rem;
  color: rgba(138,180,255,0.2);
  pointer-events: none;
  border: 1px solid rgba(138,180,255,0.06);
  padding: 10px 14px;
  background: rgba(10,36,99,0.3);
  backdrop-filter: blur(4px);
}
.bp-legend-title {
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(138,180,255,0.3);
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(138,180,255,0.06);
}
.bp-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.8;
}
.bp-legend-symbol {
  width: 14px;
  text-align: center;
  font-size: 0.45rem;
  color: rgba(138,180,255,0.3);
}
.bp-legend-symbol.dash {
  height: 1px;
  border-top: 1px dashed rgba(138,180,255,0.3);
}

/* ===== TECHNICAL NOTES ===== */
.bp-note {
  position: fixed;
  font-family: 'Space Mono', monospace;
  font-size: 0.45rem;
  color: rgba(138,180,255,0.07);
  pointer-events: none;
  z-index: 0;
  letter-spacing: 0.05em;
  white-space: nowrap;
}
.bp-note-1 { bottom: 18px; left: 50%; transform: translateX(-50%); }
.bp-note-2 { top: 60px; left: 16px; transform: rotate(-90deg); transform-origin: top left; }
.bp-note-3 { bottom: 60px; right: 16px; transform: rotate(90deg); transform-origin: bottom right; }
.bp-note-4 { top: 50%; left: 16px; transform: translateY(-50%) rotate(-90deg); transform-origin: top left; }
.bp-note-5 { bottom: 120px; left: 50%; transform: translateX(-50%); }

/* ===== CUT MARKS ===== */
.cut-mark { position: fixed; pointer-events: none; z-index: 2; }
.cut-mark line { stroke: rgba(138,180,255,0.15); stroke-width: 0.8; }
.cut-mark circle { fill: none; stroke: rgba(138,180,255,0.12); stroke-width: 0.5; }
.cut-tl { top: 8px; left: 8px; }
.cut-tr { top: 8px; right: 8px; }
.cut-bl { bottom: 8px; left: 8px; }
.cut-br { bottom: 8px; right: 8px; }
.cut-tm { top: 8px; left: 50%; margin-left: -12px; }
.cut-bm { bottom: 8px; left: 50%; margin-left: -12px; }
.cut-lm { top: 50%; margin-top: -12px; left: 8px; }
.cut-rm { top: 50%; margin-top: -12px; right: 8px; }

/* ===== SECTION NUMBER ===== */
.section-number {
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  color: rgba(138,180,255,0.08);
  pointer-events: none;
  font-weight: 700;
}

/* ===== SCROLL PROGRESS BAR ===== */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0%;
  height: 3px;
  background: var(--gradient-1);
  z-index: 99998;
  transition: width 0.05s linear;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(138,180,255,0.2);
}
.scroll-info {
  position: fixed;
  top: 6px;
  right: 20px;
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  color: rgba(138,180,255,0.3);
  letter-spacing: 0.1em;
  z-index: 99997;
  pointer-events: none;
}

/* ===== PENCIL DRAW REVEAL ===== */
.reveal-draw {
  position: relative;
}
.reveal-draw::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0%;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  pointer-events: none;
  opacity: 0.3;
}
.reveal-draw.visible::before {
  width: 100%;
}

/* ===== PAPER TEXTURE ENHANCEMENT ===== */
.paper-texture {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 99995;
  opacity: 0.015;
  mix-blend-mode: overlay;
}

/* ===== PRINT STYLES ===== */
@media print {
  body { background: white !important; color: #1a2a50 !important; }
  .navbar, .back-to-top, .bp-stamp, .bp-compass-rose, .bp-legend,
  .scroll-progress, #cursorTrail, #cursorDot, .bp-fold, .bp-crease,
  #fluidCanvas, #blueprintBg, .section-tape,
  .scroll-indicator, .btn-print, .loading-screen, .paper-texture { display: none !important; }
  .section { padding: 40px 0 !important; page-break-inside: avoid; }
  .hero { min-height: auto !important; padding: 60px 0 !important; }
  .section-scale { color: #8090B0 !important; }
  .glass-card-border { background: #f5f5f5 !important; border: 1px solid #ccc !important; box-shadow: none !important; }
  .btn-primary, .btn-outline { background: #2563EB !important; color: white !important; border-color: #2563EB !important; }
  .bp-stamp { display: block !important; opacity: 0.3 !important; position: fixed !important; }
  .section-number { color: #8090B0 !important; }
  .timeline-content { border: 1px solid #ccc !important; }
  .hp-fold, .bp-crease { display: none !important; }
  * { background: transparent !important; }
  html { background: white !important; background-image: none !important; }
}

/* ===== MODAL ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6,18,50,0.85);
  backdrop-filter: blur(6px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-overlay.active { display: flex; }
.modal {
  background: rgba(10,30,70,0.95);
  border: 1px solid rgba(138,180,255,0.1);
  max-width: 640px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: 40px 36px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  color: rgba(138,180,255,0.3);
  font-size: 1.5rem;
  cursor: pointer;
  font-family: 'Space Mono', monospace;
  line-height: 1;
}
.modal-close:hover { color: rgba(138,180,255,0.7); }
.modal-subtitle {
  font-family: 'Space Mono', monospace;
  font-size: 0.55rem;
  color: rgba(138,180,255,0.3);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.modal-title {
  font-family: 'Space Mono', monospace;
  font-size: 1.1rem;
  color: var(--text-primary);
  margin: 6px 0 16px;
  font-weight: 700;
}
.modal-line {
  height: 1px;
  background: rgba(138,180,255,0.08);
  margin-bottom: 24px;
}
.modal-body p {
  font-size: 0.75rem;
  line-height: 1.9;
  color: rgba(180,200,230,0.7);
  margin-bottom: 16px;
}
.modal-body p strong { color: rgba(180,210,255,0.9); }
.modal-body p em { color: rgba(138,180,255,0.7); font-style: normal; }
.modal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(138,180,255,0.06);
}
.modal-card {
  text-align: center;
  padding: 16px 12px;
  border: 1px solid rgba(138,180,255,0.05);
}
.modal-card h4 {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  color: rgba(180,210,255,0.7);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 10px 0 6px;
}
.modal-card p {
  font-size: 0.6rem;
  color: rgba(180,200,230,0.4);
  line-height: 1.6;
}
@media (max-width: 500px) {
  .modal-grid { grid-template-columns: 1fr; }
  .modal { padding: 28px 20px; }
}
@media print { .modal-overlay { display: none !important; } }

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
