/* ==========================================================================
   LIGHT BLUE TECH / ENGINEERING BLUEPRINT PORTFOLIO — STYLE.CSS
   Bright & Airy Sky-Blue Theme (#00BFFF Accent, Soft Light Blue Surfaces)
   GPU-Accelerated (60 FPS) | cubic-bezier(0.645, 0.045, 0.355, 1)
   ========================================================================== */

:root {
  --bg-primary: #e6f6ff;
  --bg-secondary: #d4f0ff;
  --bg-card: rgba(255, 255, 255, 0.92);
  --bg-card-hover: #ffffff;
  --text-primary: #0a2540;
  --text-secondary: #1e3a5f;
  --text-muted: #476a8a;
  --cyan-primary: #00BFFF;
  --cyan-strong: #0088cc;
  --cyan-glow: rgba(0, 191, 255, 0.32);
  --cyan-soft: rgba(0, 191, 255, 0.12);
  --cyan-border: rgba(0, 191, 255, 0.42);
  --cyan-border-strong: #00BFFF;
  --ease-tech: cubic-bezier(0.645, 0.045, 0.355, 1);
  --spotlight-x: 50%;
  --spotlight-y: 50%;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  min-height: 100vh;
  margin: 0;
  background-color: var(--bg-primary) !important;
  color: var(--text-secondary) !important;
  overflow-x: hidden;
  position: relative;
}

/* ==========================================================================
   1. LIGHT BLUE ENGINEERING BLUEPRINT BACKGROUND & CURSOR SPOTLIGHT
   ========================================================================== */

.blueprint-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-color: #e6f6ff;
  background-image:
    radial-gradient(circle at 50% 0%, rgba(0, 191, 255, 0.25), transparent 70%),
    radial-gradient(rgba(0, 150, 214, 0.22) 1px, transparent 1px),
    linear-gradient(to right, rgba(0, 170, 235, 0.09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 170, 235, 0.09) 1px, transparent 1px),
    linear-gradient(to right, rgba(0, 170, 235, 0.18) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 170, 235, 0.18) 1px, transparent 1px);
  background-size:
    100% 100%,
    24px 24px,
    24px 24px,
    24px 24px,
    120px 120px,
    120px 120px;
  background-position: 0 0, -1px -1px, -1px -1px, -1px -1px, -1px -1px, -1px -1px;
}

/* Global cursor radial spotlight */
.cursor-spotlight {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(
    600px circle at var(--spotlight-x) var(--spotlight-y),
    rgba(0, 191, 255, 0.16),
    transparent 75%
  );
  transition: opacity 0.3s var(--ease-tech);
}

/* Typography classes */
.font-tech {
  font-family: 'Rajdhani', 'Space Grotesk', sans-serif;
}

.font-mono-tech {
  font-family: 'Share Tech Mono', monospace;
}

/* ==========================================================================
   2. STICKY HEADER & SLIDING TAB NAVIGATION (LIGHT BLUE GLASS)
   ========================================================================== */

.sticky-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(240, 250, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 191, 255, 0.35);
  box-shadow: 0 4px 20px -4px rgba(0, 140, 204, 0.12);
}

.tabs-scroll-container {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  position: relative;
}

.tabs-scroll-container::-webkit-scrollbar {
  display: none;
}

.nav-tab-btn {
  position: relative;
  white-space: nowrap;
  color: #476a8a;
  font-weight: 600;
  transition:
    color 0.25s var(--ease-tech),
    transform 0.25s var(--ease-tech);
  user-select: none;
}

.nav-tab-btn:hover {
  color: #0a2540;
}

.nav-tab-btn.active {
  color: #0077b6;
  text-shadow: 0 0 10px rgba(0, 191, 255, 0.25);
}

.nav-tab-btn .tab-num {
  color: #0096c7;
  transition: color 0.25s var(--ease-tech);
}

.nav-tab-btn.active .tab-num {
  color: #0077b6;
}

/* Sliding Underline Indicator (GPU-accelerated) */
.tab-underline-indicator {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, #0088cc, #00BFFF);
  box-shadow:
    0 0 8px rgba(0, 191, 255, 0.6),
    0 0 16px rgba(0, 191, 255, 0.35);
  border-radius: 999px;
  transform: translate3d(0, 0, 0);
  transition:
    transform 0.38s var(--ease-tech),
    width 0.38s var(--ease-tech);
  will-change: transform, width;
  pointer-events: none;
}

/* ==========================================================================
   3. TAB TRANSITIONS & STAGGERED REVEAL (60 FPS GPU-ACCELERATED)
   ========================================================================== */

.tab-panel {
  display: none;
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition:
    opacity 150ms var(--ease-tech),
    transform 150ms var(--ease-tech);
  will-change: opacity, transform;
}

.tab-panel.active {
  display: block;
}

.tab-panel.fading-out {
  opacity: 0;
  transform: translate3d(0, 6px, 0);
  pointer-events: none;
}

.stagger-item {
  opacity: 0;
  transform: translate3d(0, 15px, 0);
  transition:
    opacity 0.48s var(--ease-tech),
    transform 0.48s var(--ease-tech);
  will-change: opacity, transform;
}

.stagger-item.revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* ==========================================================================
   4. CARDS, BUTTONS, BADGES & MICRO-INTERACTIONS (LIGHT BLUE THEME)
   ========================================================================== */

.tech-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--cyan-border);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 8px 24px -8px rgba(0, 136, 204, 0.14);
  transform: translate3d(0, 0, 0);
  transition:
    transform 0.3s var(--ease-tech),
    border-color 0.3s var(--ease-tech),
    box-shadow 0.3s var(--ease-tech),
    background-color 0.3s var(--ease-tech);
  will-change: transform;
}

/* Card-local spotlight effect on desktop hover */
.tech-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    420px circle at var(--card-mouse-x, 50%) var(--card-mouse-y, 50%),
    rgba(0, 191, 255, 0.12),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.3s var(--ease-tech);
  pointer-events: none;
  z-index: 0;
}

.tech-card:hover {
  transform: translate3d(0, -4px, 0);
  border-color: var(--cyan-border-strong);
  background: var(--bg-card-hover);
  box-shadow:
    0 14px 32px -10px rgba(0, 136, 204, 0.24),
    0 0 20px -4px rgba(0, 191, 255, 0.25);
}

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

.tech-card > * {
  position: relative;
  z-index: 1;
}

/* Technical corner brackets decoration */
.blueprint-frame {
  position: relative;
  border: 1px solid rgba(0, 191, 255, 0.48);
  background: rgba(242, 250, 255, 0.94);
  box-shadow: 0 8px 24px -8px rgba(0, 136, 204, 0.15);
}

.blueprint-frame::before,
.blueprint-frame::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: #0088cc;
  pointer-events: none;
  z-index: 3;
}

.blueprint-frame::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid #0088cc;
  border-left: 2px solid #0088cc;
}

.blueprint-frame::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid #0088cc;
  border-right: 2px solid #0088cc;
}

/* Resume Button & Interactive Controls */
.btn-cyan-outline {
  border: 1.5px solid #0096c7;
  color: #006699;
  background: rgba(0, 191, 255, 0.12);
  font-weight: 600;
  transform: translate3d(0, 0, 0);
  transition:
    transform 0.28s var(--ease-tech),
    border-color 0.28s var(--ease-tech),
    background-color 0.28s var(--ease-tech),
    box-shadow 0.28s var(--ease-tech),
    color 0.28s var(--ease-tech);
  will-change: transform;
}

.btn-cyan-outline:hover {
  transform: translate3d(0, -4px, 0);
  border-color: #0077b6;
  background: #00BFFF;
  color: #ffffff;
  box-shadow: 0 8px 20px -4px rgba(0, 191, 255, 0.45);
}

.btn-cyan-outline:hover svg {
  color: #ffffff !important;
}

.btn-cyan-outline:active {
  transform: translate3d(0, -1px, 0);
}

/* Skill Badges */
.skill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: #006699;
  background: rgba(0, 191, 255, 0.12);
  border: 1px solid rgba(0, 150, 199, 0.35);
  border-radius: 0.375rem;
  transform: translate3d(0, 0, 0);
  transition:
    transform 0.28s var(--ease-tech),
    border-color 0.28s var(--ease-tech),
    background-color 0.28s var(--ease-tech),
    box-shadow 0.28s var(--ease-tech),
    color 0.28s var(--ease-tech);
  will-change: transform;
}

.skill-badge:hover {
  transform: translate3d(0, -4px, 0);
  border-color: #0088cc;
  background: rgba(0, 191, 255, 0.24);
  color: #032b43;
  box-shadow: 0 6px 15px -4px rgba(0, 191, 255, 0.32);
}

/* Next Tab Bottom Button */
.next-tab-btn {
  position: relative;
  width: 100%;
  border: 1.5px solid rgba(0, 150, 199, 0.45);
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(212, 240, 255, 0.9) 100%
  );
  box-shadow: 0 8px 22px -6px rgba(0, 136, 204, 0.16);
  transform: translate3d(0, 0, 0);
  transition:
    transform 0.3s var(--ease-tech),
    border-color 0.3s var(--ease-tech),
    box-shadow 0.3s var(--ease-tech),
    background 0.3s var(--ease-tech);
}

.next-tab-btn:hover {
  transform: translate3d(0, -4px, 0);
  border-color: #0088cc;
  box-shadow: 0 12px 28px -6px rgba(0, 150, 214, 0.28);
}

.next-tab-btn .arrow-icon {
  transform: translate3d(0, 0, 0);
  transition: transform 0.3s var(--ease-tech);
}

.next-tab-btn:hover .arrow-icon {
  transform: translate3d(6px, 0, 0);
}

/* ==========================================================================
   5. 3D MODEL VIEWER & BLUEPRINT VIEWPORT
   ========================================================================== */

model-viewer {
  width: 100%;
  height: 100%;
  background-color: transparent;
  --poster-color: transparent;
  --progress-bar-color: #0088cc;
  --progress-bar-height: 2px;
  outline: none;
}

.scanline-overlay {
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0) 50%,
    rgba(0, 150, 214, 0.04) 50%,
    rgba(0, 150, 214, 0.04)
  );
  background-size: 100% 4px;
  pointer-events: none;
}

.xray-mode model-viewer {
  filter: drop-shadow(0 0 10px rgba(0, 191, 255, 0.8)) hue-rotate(155deg) saturate(1.9) contrast(1.15);
}

.lang-progress-fill {
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.9s var(--ease-tech);
  will-change: transform;
}

.tab-panel.active .lang-progress-fill {
  transform: scaleX(1);
}

/* Custom Drawer & Modal Backdrop */
.modal-backdrop {
  background: rgba(12, 45, 72, 0.38);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease-tech);
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-panel {
  transform: translate3d(0, 16px, 0) scale(0.98);
  opacity: 0;
  transition:
    transform 0.3s var(--ease-tech),
    opacity 0.3s var(--ease-tech);
}

.modal-backdrop.open .modal-panel {
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
}

@keyframes pulse-cyan {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(1.25);
  }
}

.pulse-dot {
  animation: pulse-cyan 2.2s infinite ease-in-out;
}
