@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(rgba(0, 3, 14, 0.88), rgba(0, 3, 14, 0.88)), 
              url('assets/images/background3.jpeg');
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  color: #ffffff;
  overflow-x: hidden;
  line-height: 1.6;
}

html {
  scroll-behavior: smooth;
}

.glassmorphism {
  background: rgba(6, 11, 24, 0.84);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.nav-pill-glow {
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.2), inset 0 0 10px rgba(59, 130, 246, 0.1);
}

.nav-item-active {
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.1), rgba(30, 64, 175, 0.2));
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.nav-transition {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
              padding 0.6s cubic-bezier(0.16, 1, 0.3, 1), 
              top 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-container-transition {
  transition: max-width 0.7s cubic-bezier(0.16, 1, 0.3, 1), 
              padding 0.7s cubic-bezier(0.16, 1, 0.3, 1), 
              background-color 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
              border-radius 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              -webkit-backdrop-filter 0.6s ease,
              backdrop-filter 0.6s ease,
              box-shadow 0.5s ease;
  will-change: max-width, padding, background-color, backdrop-filter, box-shadow;
}

/* Ensure no default focus outline causes white flashes */
button:focus {
  outline: none;
}

.lofi-glow {
  box-shadow: 0 0 20px rgba(60, 130, 246, 0.3);
}

.lofi-text {
  color: #60a5fa;
  text-shadow: 0 0 10px rgba(96, 165, 250, 0.5);
}

.floating {
  animation: floating 6s ease-in-out infinite;
}

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

.fade-in {
  animation: fadeIn 1s ease-in-out;
}

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

.typing-animation {
  border-right: 2px solid #60a5fa;
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%, 50% { border-color: #60a5fa; }
  51%, 100% { border-color: transparent; }
}

.skill-progress {
  height: 6px;
  background: linear-gradient(90deg, #3b82f6, #1d4ed8);
  border-radius: 3px;
  transition: width 2s ease-in-out;
}

.skill-bar {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  overflow: hidden;
  height: 6px;
}

.section-spacing {
  padding: 80px 20px;
}

.content-box {
  padding: 24px;
  margin: 16px 0;
}

.text-spacing {
  margin-bottom: 16px;
  line-height: 1.7;
}

.lofi-card:hover {
  transform: translateY(-5px);
  transition: transform 0.3s ease;
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.2);
}

/* Global site-wide scroll-reveal */
.scroll-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.scroll-reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Technical Expertise section: HUD-style panel */
.skills-panel {
  position: relative;
  background: rgba(6, 11, 24, 0.84);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(59, 130, 246, 0.14);
  border-radius: 6px;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.skills-panel:hover {
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.1);
}

.skills-corner {
  position: absolute;
  width: 18px;
  height: 18px;
  pointer-events: none;
  border-color: rgba(96, 165, 250, 0.65);
}

.skills-corner.tl { top: -1px; left: -1px; border-top: 2px solid; border-left: 2px solid; }
.skills-corner.tr { top: -1px; right: -1px; border-top: 2px solid; border-right: 2px solid; }
.skills-corner.bl { bottom: -1px; left: -1px; border-bottom: 2px solid; border-left: 2px solid; }
.skills-corner.br { bottom: -1px; right: -1px; border-bottom: 2px solid; border-right: 2px solid; }

.skills-tick-track {
  width: 100%;
  height: 10px;
  border-radius: 2px;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.04);
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0px, rgba(255, 255, 255, 0.1) 5px, transparent 5px, transparent 8px);
}

.skills-tick-fill {
  height: 100%;
  background-image: repeating-linear-gradient(90deg, #60a5fa 0px, #60a5fa 5px, transparent 5px, transparent 8px);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.7);
  transition: width 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.tool-chip {
  position: relative;
  border-radius: 12px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.45), rgba(59, 130, 246, 0.04) 65%);
  transition: background 0.4s ease, transform 0.3s ease;
}

.tool-chip:hover {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.95), rgba(99, 102, 241, 0.4));
  transform: translateY(-3px);
}

.tool-chip-inner {
  background: rgba(8, 15, 30, 0.9);
  border-radius: 11px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
}