/*--------------------------------------------------------------
# Modern Dark Theme - Gurpreet Singh Portfolio
--------------------------------------------------------------*/

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&family=Playfair+Display:wght@700;800;900&display=swap');

/* CSS Variables */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-glass: rgba(255, 255, 255, 0.05);
  --border-glass: rgba(255, 255, 255, 0.08);
  --text-primary: #f0f0f5;
  --text-secondary: #8b8b9e;
  --text-muted: #5a5a6e;
  --accent-1: #6c63ff;
  --accent-2: #00d4aa;
  --accent-gradient: linear-gradient(135deg, #6c63ff 0%, #00d4aa 100%);
  --accent-gradient-hover: linear-gradient(135deg, #7b73ff 0%, #00e4ba 100%);
  --glow-accent: rgba(108, 99, 255, 0.15);
  --glow-green: rgba(0, 212, 170, 0.15);
  --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 40px rgba(108, 99, 255, 0.1);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--accent-gradient);
  z-index: 99999;
  width: 0%;
  transition: width 0.1s linear;
}

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

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

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

h1, h2, h3, h4, h5, h6 {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

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

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--accent-1);
  border-radius: 3px;
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  overflow: hidden;
  background: var(--bg-primary);
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 3px solid transparent;
  border-top-color: var(--accent-1);
  border-bottom-color: var(--accent-2);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 0.8s linear infinite;
}

@keyframes animate-preloader {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/*--------------------------------------------------------------
# Back to top
--------------------------------------------------------------*/
.back-to-top {
  position: fixed;
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  right: 20px;
  bottom: 20px;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  transition: var(--transition);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top i {
  font-size: 22px;
}

.back-to-top:hover {
  color: var(--accent-2);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

/*--------------------------------------------------------------
# Disable AOS delay on mobile
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# Header / Sidebar Navigation
--------------------------------------------------------------*/
#header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 9997;
  transition: var(--transition);
  padding: 15px;
  overflow-y: auto;
}

@media (max-width: 992px) {
  #header {
    width: 300px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-glass);
    left: -300px;
  }
}

@media (min-width: 992px) {
  #main {
    margin-left: 50px;
    margin-right: 50px;
  }
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
.nav-menu * {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu > ul > li {
  position: relative;
  white-space: nowrap;
}

.nav-menu a {
  display: flex;
  align-items: center;
  color: var(--text-secondary);
  padding: 10px 18px;
  margin-bottom: 8px;
  transition: var(--transition);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid transparent;
  height: 50px;
  width: 100%;
  overflow: hidden;
}

.nav-menu a i {
  font-size: 20px;
}

.nav-menu a span {
  padding: 0 5px 0 7px;
  color: var(--text-secondary);
}

@media (min-width: 992px) {
  .nav-menu a {
    width: 50px;
    height: 50px;
    justify-content: center;
  }
  .nav-menu a span {
    display: none;
    color: #fff;
  }
}

.nav-menu a:hover,
.nav-menu .active > a,
.nav-menu li:hover > a {
  color: #fff;
  background: var(--accent-1);
  border-color: var(--accent-1);
  box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
}

.nav-menu a:hover span,
.nav-menu .active > a span,
.nav-menu li:hover > a span {
  color: #fff;
}

.nav-menu a:hover,
.nav-menu li:hover > a {
  width: 100%;
  color: #fff;
}

.nav-menu a:hover span,
.nav-menu li:hover > a span {
  display: block;
}

/* Nav sub-links: hidden by default, shown for active tab */
.nav-menu .nav-sub {
  display: none;
  margin-left: 8px;
}

.nav-menu .nav-sub.visible {
  display: block;
}

.nav-menu .nav-sub a {
  height: 40px;
  font-size: 12px;
  opacity: 0.7;
}

.nav-menu .nav-sub a:hover,
.nav-menu .nav-sub.active > a {
  opacity: 1;
}

@media (min-width: 992px) {
  .nav-menu .nav-sub a {
    width: 40px;
    height: 40px;
  }
  .nav-menu .nav-sub a:hover,
  .nav-menu .nav-sub li:hover > a {
    width: 100%;
  }
}

/* Mobile Navigation */
.mobile-nav-toggle {
  position: fixed;
  right: 15px;
  top: 15px;
  z-index: 9998;
  border: 0;
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 24px;
  transition: var(--transition);
  outline: none !important;
  line-height: 1;
  cursor: pointer;
  text-align: right;
}

.mobile-nav-toggle i {
  color: var(--text-primary);
}

.mobile-nav-active {
  overflow: hidden;
}

.mobile-nav-active #header {
  left: 0;
}

.mobile-nav-active .mobile-nav-toggle i {
  color: var(--accent-1);
}

/*--------------------------------------------------------------
# Fix-Menu (Social Links Sidebar)
--------------------------------------------------------------*/
.fix-menu {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 9997;
  transition: var(--transition);
  padding: 15px;
}

.fix-menu .social-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.fix-menu .social-links li {
  margin-bottom: 8px;
}

.fix-menu .social-links li a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-size: 18px;
  transition: var(--transition);
}

.fix-menu .social-links li a:hover {
  color: #fff;
  background: var(--accent-1);
  border-color: var(--accent-1);
  transform: translateX(-4px);
  box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
#hero {
  width: 100%;
  height: calc(100vh - 65px);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-primary);
}

/* Animated gradient background */
#hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(108, 99, 255, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(0, 212, 170, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(108, 99, 255, 0.06) 0%, transparent 50%);
  animation: heroGradient 15s ease-in-out infinite;
}

@keyframes heroGradient {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(2%, -2%) rotate(1deg); }
  66% { transform: translate(-1%, 1%) rotate(-1deg); }
}

/* Floating particles */
#hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(2px 2px at 20% 30%, rgba(108, 99, 255, 0.3) 0%, transparent 100%),
    radial-gradient(2px 2px at 40% 70%, rgba(0, 212, 170, 0.2) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 20%, rgba(255, 255, 255, 0.15) 0%, transparent 100%),
    radial-gradient(1px 1px at 80% 50%, rgba(108, 99, 255, 0.2) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 10% 80%, rgba(0, 212, 170, 0.15) 0%, transparent 100%),
    radial-gradient(1px 1px at 70% 90%, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
  animation: particleFloat 20s linear infinite;
}

@keyframes particleFloat {
  0% { transform: translateY(0); }
  100% { transform: translateY(-20px); }
}

/* Grid pattern overlay */
.hero-grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 0;
}

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

#hero .bio {
  max-width: 800px;
}

/* Terminal */
.terminal {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 680px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(108, 99, 255, 0.05);
}

.terminal-header {
  background: rgba(255, 255, 255, 0.05);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }

.terminal-title {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 8px;
}

.terminal-body {
  padding: 24px;
  font-family: "JetBrains Mono", monospace;
  font-size: 15px;
  line-height: 2;
  min-height: 240px;
}

.terminal-line {
  white-space: nowrap;
  overflow: hidden;
}

.terminal-prompt {
  color: var(--accent-2);
  margin-right: 10px;
  font-weight: 700;
}

.terminal-text {
  color: var(--text-primary);
  border-right: 2px solid var(--accent-2);
  padding-right: 2px;
  animation: terminalBlink 0.7s step-end infinite;
}

.terminal-text.done {
  border-right: none;
  padding-right: 0;
  animation: none;
}

.terminal-output {
  color: var(--text-secondary);
  padding-left: 22px;
  font-size: 14px;
}

.terminal-output a {
  color: var(--accent-1);
  transition: var(--transition);
}

.terminal-output a:hover {
  color: var(--accent-2);
}

.terminal-name {
  font-size: 22px;
  font-weight: 800;
  font-family: "Playfair Display", serif;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: normal;
}

.terminal-cursor {
  color: var(--accent-2);
  animation: terminalBlink 0.7s step-end infinite;
  font-weight: 700;
}

@keyframes terminalBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@media (max-width: 768px) {
  .terminal-body {
    font-size: 13px;
    padding: 16px;
    min-height: 200px;
  }
  .terminal-name {
    font-size: 18px;
  }
  .terminal-output {
    font-size: 12px;
  }
}

#hero .bio .hero-greeting {
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-2);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}

#hero .bio h1 {
  font-family: "Playfair Display", serif;
  font-size: 72px;
  font-weight: 900;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: 24px;
  letter-spacing: -1px;
}

#hero .bio h1 .gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

#hero .bio .hero-tagline {
  font-size: 18px;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 600px;
}

#hero .bio .hero-tagline a {
  color: var(--text-primary);
  font-weight: 500;
  position: relative;
}

#hero .bio .hero-tagline a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent-gradient);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

#hero .bio .hero-tagline a:hover {
  color: var(--accent-2);
}

#hero .bio .hero-tagline a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

#hero .hero-cta {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  align-items: center;
}

#hero .hero-cta .btn-primary-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--accent-gradient);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-xl);
  transition: var(--transition);
  border: none;
}

#hero .hero-cta .btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108, 99, 255, 0.35);
  color: #fff;
}

#hero .hero-cta .btn-outline-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: transparent;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 15px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-glass);
  transition: var(--transition);
}

#hero .hero-cta .btn-outline-custom:hover {
  border-color: var(--accent-1);
  background: var(--glow-accent);
  color: #fff;
  transform: translateY(-2px);
}

#hero .scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: scrollBounce 2s ease-in-out infinite;
}

#hero .scroll-indicator a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: "JetBrains Mono", monospace;
}

#hero .scroll-indicator a i {
  font-size: 20px;
}

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

@media (max-width: 992px) {
  #hero {
    padding: 0 20px;
    text-align: center;
  }
  #hero .bio h1 {
    font-size: 42px;
  }
  #hero .bio .hero-tagline {
    font-size: 16px;
    margin: 0 auto;
  }
  #hero .hero-cta {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (min-width: 992px) {
  #hero {
    padding-left: 100px;
  }
}

/*--------------------------------------------------------------
# Hero Waves
--------------------------------------------------------------*/
.hero-waves {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 2;
  line-height: 0;
}

.waves {
  width: 100%;
  height: 120px;
  min-height: 60px;
  max-height: 150px;
}

.wave-parallax > use {
  animation: waveMove 25s cubic-bezier(0.55, 0.5, 0.45, 0.5) infinite;
}

.wave-parallax > use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 7s;
}

.wave-parallax > use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 10s;
}

.wave-parallax > use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 13s;
}

.wave-parallax > use:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 20s;
}

@keyframes waveMove {
  0% { transform: translate3d(-90px, 0, 0); }
  100% { transform: translate3d(85px, 0, 0); }
}

/*--------------------------------------------------------------
# Wave Dividers
--------------------------------------------------------------*/
.wave-divider {
  position: relative;
  width: 100%;
  line-height: 0;
  margin-top: -1px;
  z-index: 2;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: 60px;
}

.wave-divider.wave-flip {
  transform: rotate(180deg);
  margin-top: 0;
  margin-bottom: -1px;
}

/*--------------------------------------------------------------
# Parallax Sections
--------------------------------------------------------------*/
.parallax-bg {
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

@media (max-width: 768px) {
  .waves {
    height: 60px;
    min-height: 40px;
  }
  .wave-divider svg {
    height: 35px;
  }
  .parallax-bg {
    background-attachment: scroll;
  }
}

/*--------------------------------------------------------------
# Subtle background accents
--------------------------------------------------------------*/
.section-accent {
  position: relative;
}

.section-accent::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(108, 99, 255, 0.03) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/*--------------------------------------------------------------
# Tab Navigation
--------------------------------------------------------------*/
.tab-nav-wrapper {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glass);
  padding: 12px 0;
}

.tab-nav {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 28px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-xl);
  color: var(--text-muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.5px;
}

.tab-btn i {
  font-size: 16px;
}

.tab-btn:hover {
  color: var(--text-primary);
  background: var(--bg-glass);
}

.tab-btn.active {
  color: #fff;
  background: var(--accent-1);
  border-color: var(--accent-1);
  box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
}

/* Tab Content - Smooth Crossfade Morphing */
.tab-content {
  display: none;
  opacity: 0;
  transform: translateY(20px);
}

.tab-content.active {
  display: block;
  padding-top: 10px;
}

.tab-content.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Custom Cursor */
.cursor-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9996;
  background: radial-gradient(circle, rgba(108, 99, 255, 0.06) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  opacity: 0;
}

.cursor-glow.active {
  opacity: 1;
}

.cursor-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
  pointer-events: none;
  z-index: 9996;
  transform: translate(-50%, -50%);
  transition: width 0.2s ease, height 0.2s ease, opacity 0.2s ease;
  opacity: 0;
  box-shadow: 0 0 10px rgba(0, 212, 170, 0.4);
}

.cursor-dot.active {
  opacity: 1;
}

.cursor-dot.hovering {
  width: 12px;
  height: 12px;
  opacity: 0.6;
}

@media (hover: none) and (pointer: coarse) {
  .cursor-glow, .cursor-dot {
    display: none !important;
  }
}

/* Konami / Easter Egg Overlay */
.easter-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99998;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 15, 0.9);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

.easter-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.easter-content {
  text-align: center;
  padding: 50px 60px;
  background: var(--bg-glass);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--accent-1);
  border-radius: var(--radius-xl);
  box-shadow: 0 0 60px rgba(108, 99, 255, 0.3);
  max-width: 480px;
  position: relative;
  animation: easterPulse 2s ease-in-out infinite;
}

.easter-content h2 {
  font-family: "Playfair Display", serif;
  font-size: 32px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.easter-content p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 24px;
}

.easter-content .easter-cta {
  display: inline-block;
  padding: 12px 32px;
  background: var(--accent-gradient);
  color: #fff;
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
}

.easter-content .easter-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108, 99, 255, 0.35);
  color: #fff;
}

.easter-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 22px;
  cursor: pointer;
}

.easter-close:hover {
  color: var(--text-primary);
}

@keyframes easterPulse {
  0%, 100% { box-shadow: 0 0 60px rgba(108, 99, 255, 0.3); }
  50% { box-shadow: 0 0 80px rgba(108, 99, 255, 0.4), 0 0 160px rgba(108, 99, 255, 0.1); }
}

.confetti {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  z-index: 99999;
  pointer-events: none;
  animation: confettiFall 3s ease-in forwards;
}

@keyframes confettiFall {
  0% { transform: translateY(-10vh) rotate(0deg); opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

/*--------------------------------------------------------------
# Stats Counter
--------------------------------------------------------------*/
.stats {
  background: var(--bg-primary);
  padding: 60px 0;
  border-bottom: 1px solid var(--border-glass);
}

.stat-card {
  text-align: center;
  padding: 30px 15px;
  position: relative;
}

.stat-card::after {
  content: "";
  position: absolute;
  top: 20%;
  right: 0;
  height: 60%;
  width: 1px;
  background: var(--border-glass);
}

.col-lg-3:last-child .stat-card::after {
  display: none;
}

.stat-number {
  font-family: "Playfair Display", serif;
  font-size: 52px;
  font-weight: 900;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  display: inline-block;
}

.stat-suffix {
  font-family: "Playfair Display", serif;
  font-size: 32px;
  font-weight: 900;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  vertical-align: top;
  margin-top: 6px;
}

.stat-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 10px;
}

@media (max-width: 768px) {
  .stat-number {
    font-size: 36px;
  }
  .stat-suffix {
    font-size: 22px;
  }
  .stat-label {
    font-size: 10px;
    letter-spacing: 1px;
  }
  .stat-card::after {
    display: none;
  }
}

/*--------------------------------------------------------------
# Explorations
--------------------------------------------------------------*/
.explorations-section {
  background: var(--bg-primary);
  padding: 100px 0;
}

@media (max-width: 768px) {
  .explorations-section {
    padding: 60px 0;
  }
}

/*--------------------------------------------------------------
# Articles
--------------------------------------------------------------*/
.articles-section {
  background: var(--bg-primary);
  padding: 80px 0;
  min-height: 80vh;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.article-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.article-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: var(--transition);
}

.article-card:hover {
  border-color: rgba(108, 99, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

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

.article-card .article-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(108, 99, 255, 0.1);
  color: var(--accent-1);
  border-radius: 20px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  width: fit-content;
}

.article-card .article-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1.4;
}

.article-card .article-title a {
  color: var(--text-primary);
  transition: var(--transition);
}

.article-card .article-title a:hover {
  color: var(--accent-2);
}

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

.article-card .article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-glass);
}

.article-card .article-date {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--text-muted);
}

.article-card .article-read-time {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.article-card .article-read-time i {
  font-size: 14px;
}

.articles-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
}

.articles-empty i {
  font-size: 48px;
  margin-bottom: 16px;
  display: block;
  color: var(--text-muted);
}

.articles-empty p {
  font-size: 15px;
  max-width: 400px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }
}

/*--------------------------------------------------------------
# Sections General
--------------------------------------------------------------*/
section {
  padding: 100px 0;
  overflow: hidden;
}

.section-bg {
  background: var(--bg-secondary);
}

.section-title {
  text-align: center;
  padding: 0 0 60px 0;
  position: relative;
}

.section-title h2 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent-2);
  margin-bottom: 12px;
  font-family: "JetBrains Mono", monospace;
}

.section-title span {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 48px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 20px;
}

.section-title p {
  margin-bottom: 0;
  color: var(--text-secondary);
  font-size: 17px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
  letter-spacing: 0.01em;
}

@media (max-width: 575px) {
  .section-title span {
    font-size: 32px;
  }
}

/*--------------------------------------------------------------
# About
--------------------------------------------------------------*/
.about {
  background: var(--bg-primary);
}

.about .content h3 {
  font-weight: 700;
  font-size: 22px;
  color: var(--text-primary);
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
}

.about .content h3::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--accent-gradient);
  border-radius: 2px;
}

/* Photo Rotator */
.photo-rotator {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  overflow: hidden;
  aspect-ratio: 3 / 4;
}

.photo-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: var(--radius-lg);
}

.photo-slide.active {
  opacity: 1;
}

.about .img-fluid {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
}

.about .font-italic {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 10px;
}

.about .content p {
  color: var(--text-secondary);
  line-height: 1.9;
  font-size: 16px;
  letter-spacing: 0.01em;
}

/* About accordion variant */
.about-accordion {
  margin-bottom: 10px;
  border: 1px solid var(--border-glass);
  background: var(--bg-glass);
  border-radius: var(--radius-md);
}

.about-accordion .accordion-toggle {
  font-family: "Inter", sans-serif;
  font-size: 15px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  padding: 16px 20px;
  color: var(--text-primary);
}

.about-accordion .accordion-toggle span i {
  font-size: 18px;
  color: var(--accent-2);
}

.about-accordion .accordion-body {
  padding: 0 20px;
}

.about-accordion.open .accordion-body {
  padding: 0 20px 20px;
}

.about-accordion .accordion-body p {
  margin-bottom: 12px;
}

.about-accordion .accordion-body p:last-child {
  margin-bottom: 0;
}

.about .content ul {
  list-style: none;
  padding: 0;
}

.about .content ul li {
  padding-bottom: 10px;
  color: var(--text-secondary);
}

.about .content ul i {
  font-size: 20px;
  padding-right: 2px;
  color: var(--accent-1);
}

/*--------------------------------------------------------------
# Skills
--------------------------------------------------------------*/
.skills {
  background: var(--bg-secondary);
}

.skills .progress {
  height: 60px;
  display: block;
  background: none;
  margin-bottom: 8px;
}

.skills .progress .skill {
  padding: 10px 0;
  margin: 0 0 6px 0;
  text-transform: uppercase;
  display: block;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  color: var(--text-primary);
  font-size: 13px;
  letter-spacing: 0.5px;
}

.skills .progress .skill .val {
  float: right;
  font-style: normal;
  color: var(--accent-2);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
}

.skills .progress-bar-wrap {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  overflow: hidden;
  height: 8px;
}

.skills .progress-bar {
  width: 1px;
  height: 8px;
  transition: 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--accent-gradient);
  border-radius: 20px;
  position: relative;
}

.skills .progress-bar::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 10px rgba(0, 212, 170, 0.4);
}

/*--------------------------------------------------------------
# Resume
--------------------------------------------------------------*/
.resume {
  background: var(--bg-primary);
}

.resume .resume-title {
  font-size: 14px;
  font-weight: 600;
  margin-top: 30px;
  margin-bottom: 20px;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-family: "JetBrains Mono", monospace;
}

.resume .resume-item {
  padding: 20px 24px;
  margin-bottom: 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  position: relative;
  transition: var(--transition);
}

.resume .resume-item:hover {
  border-color: rgba(108, 99, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

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

.resume .resume-item h5 {
  font-size: 13px;
  font-weight: 500;
  font-family: "JetBrains Mono", monospace;
  background: rgba(108, 99, 255, 0.1);
  color: var(--accent-1);
  padding: 4px 12px;
  display: inline-block;
  border-radius: 20px;
  margin-bottom: 10px;
}

.resume .resume-item p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.resume .resume-item p em {
  color: var(--accent-2);
  font-style: normal;
  font-weight: 500;
}

.resume .resume-item ul {
  padding-left: 18px;
  margin-top: 10px;
}

.resume .resume-item ul li {
  padding-bottom: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.resume .resume-item:last-child {
  margin-bottom: 0;
}

/* Remove old timeline dots */
.resume .resume-item::before {
  display: none;
}

/*--------------------------------------------------------------
# Accordion
--------------------------------------------------------------*/
.accordion-item {
  margin-bottom: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  overflow: hidden;
  background: var(--bg-glass);
  transition: var(--transition);
}

.accordion-item:hover {
  border-color: rgba(108, 99, 255, 0.15);
}

.accordion-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  transition: var(--transition);
}

.accordion-toggle span {
  display: flex;
  align-items: center;
  gap: 10px;
}

.accordion-toggle span i {
  font-size: 18px;
  color: var(--accent-2);
}

.accordion-toggle:hover {
  color: var(--accent-2);
}

.accordion-icon {
  font-size: 20px;
  color: var(--text-muted);
  transition: transform 0.3s ease;
}

.accordion-item.open .accordion-icon {
  transform: rotate(180deg);
  color: var(--accent-2);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  padding: 0 20px;
}

.accordion-item.open .accordion-body {
  max-height: 600px;
  padding: 0 20px 16px;
}

.accordion-body .resume-item {
  margin-bottom: 8px;
}

.accordion-body .resume-item:last-child {
  margin-bottom: 0;
}

/* Experience accordion variant */
.exp-accordion {
  margin-bottom: 8px;
}

.exp-accordion .accordion-toggle {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  padding: 14px 18px;
}

.exp-accordion .accordion-toggle span {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.exp-accordion .accordion-toggle small {
  font-size: 12px;
  font-weight: 400;
  color: var(--accent-2);
  font-family: "JetBrains Mono", monospace;
}

.exp-accordion .accordion-body {
  padding: 0 18px;
}

.exp-accordion.open .accordion-body {
  padding: 0 18px 14px;
}

.exp-accordion .accordion-body h5 {
  font-size: 12px;
  font-weight: 500;
  font-family: "JetBrains Mono", monospace;
  background: rgba(108, 99, 255, 0.1);
  color: var(--accent-1);
  padding: 3px 10px;
  display: inline-block;
  border-radius: 16px;
  margin-bottom: 10px;
}

.exp-accordion .accordion-body ul {
  padding-left: 18px;
  margin: 0;
}

.exp-accordion .accordion-body ul li {
  padding-bottom: 6px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
}


/*--------------------------------------------------------------
# Projects
--------------------------------------------------------------*/
.projects {
  background: var(--bg-secondary);
}

.project-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 28px;
  height: 100%;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.project-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover {
  border-color: rgba(108, 99, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

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

.project-card .project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.project-card .project-header h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.3;
}

.project-card .project-header h4 a {
  color: var(--text-primary);
  transition: var(--transition);
}

.project-card .project-header h4 a:hover {
  color: var(--accent-2);
}

.project-card .project-header .project-icon {
  color: var(--text-muted);
  font-size: 22px;
  flex-shrink: 0;
  margin-left: 10px;
}

.project-card .project-desc {
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 18px;
}

.project-card .project-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.project-card .project-lang {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-secondary);
  font-family: "JetBrains Mono", monospace;
}

.project-card .project-lang .lang-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.project-card .project-stat {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-muted);
  font-family: "JetBrains Mono", monospace;
}

.project-card .project-stat i {
  font-size: 14px;
}

/* Language colors */
.lang-python { background: #3572A5; }
.lang-go { background: #00ADD8; }
.lang-javascript { background: #f1e05a; }
.lang-hcl { background: #844FBA; }
.lang-shell { background: #89e051; }
.lang-csharp { background: #178600; }
.lang-typescript { background: #3178c6; }
.lang-default { background: var(--text-muted); }

.projects-subtitle {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-2);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.projects-subtitle i {
  font-size: 18px;
}

/* Loading skeleton */
.project-skeleton {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 28px;
  height: 180px;
  animation: skeletonPulse 1.5s ease-in-out infinite;
}

@keyframes skeletonPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.8; }
}

/*--------------------------------------------------------------
# Testimonials
--------------------------------------------------------------*/
.testimonials {
  padding: 60px 0;
  background: var(--bg-secondary);
  position: relative;
}

.testimonials::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(108, 99, 255, 0.05) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(0, 212, 170, 0.03) 0%, transparent 60%);
}

.testimonials .testimonial-item {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 40px 20px;
}

.testimonials .testimonial-item .testimonial-img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid var(--border-glass);
  margin: 0 auto;
  object-fit: cover;
  transition: var(--transition);
}

.testimonials .testimonial-item:hover .testimonial-img {
  border-color: var(--accent-1);
  box-shadow: 0 0 20px rgba(108, 99, 255, 0.2);
}

.testimonials .testimonial-item h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 16px 0 4px 0;
  color: var(--text-primary);
}

.testimonials .testimonial-item h4 {
  font-size: 13px;
  color: var(--accent-2);
  margin: 0 0 20px 0;
  font-weight: 500;
}

.testimonials .testimonial-item .quote-icon-left,
.testimonials .testimonial-item .quote-icon-right {
  color: rgba(108, 99, 255, 0.3);
  font-size: 26px;
}

.testimonials .testimonial-item .quote-icon-left {
  display: inline-block;
  left: -5px;
  position: relative;
}

.testimonials .testimonial-item .quote-icon-right {
  display: inline-block;
  right: -5px;
  position: relative;
  top: 10px;
}

.testimonials .testimonial-item p {
  font-style: italic;
  margin: 0 auto 15px auto;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
}

.testimonials .owl-nav,
.testimonials .owl-dots {
  margin-top: 15px;
  text-align: center;
}

.testimonials .owl-dot {
  display: inline-block;
  margin: 0 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1) !important;
  transition: var(--transition);
}

.testimonials .owl-dot.active {
  background-color: var(--accent-1) !important;
  box-shadow: 0 0 10px rgba(108, 99, 255, 0.3);
}

@media (min-width: 992px) {
  .testimonials .testimonial-item p {
    width: 70%;
  }
}

/*--------------------------------------------------------------
# Contact
--------------------------------------------------------------*/
.contact {
  background: var(--bg-primary);
}

.contact .info {
  width: 100%;
}

.contact .info i {
  font-size: 20px;
  color: var(--accent-1);
  float: left;
  width: 48px;
  height: 48px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.contact .info h4 {
  padding: 0 0 0 68px;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.contact .info p {
  padding: 0 0 0 68px;
  margin-bottom: 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.contact .info .email,
.contact .info .phone {
  margin-top: 30px;
}

.contact .info .email:hover i,
.contact .info .address:hover i,
.contact .info .phone:hover i {
  background: var(--accent-1);
  border-color: var(--accent-1);
  color: #fff;
  box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
}

.contact form .form-group {
  padding-bottom: 8px;
}

.contact form .validate {
  display: none;
  color: #ff4444;
  margin: 0 0 15px 0;
  font-weight: 400;
  font-size: 13px;
}

.contact form input,
.contact form textarea {
  border-radius: var(--radius-sm);
  box-shadow: none;
  font-size: 14px;
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  transition: var(--transition);
  padding: 12px 16px;
}

.contact form input:focus,
.contact form textarea:focus {
  border-color: var(--accent-1);
  background: rgba(108, 99, 255, 0.05);
  box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.1);
  outline: none;
  color: var(--text-primary);
}

.contact form input::placeholder,
.contact form textarea::placeholder {
  color: var(--text-muted);
}

.contact form input {
  height: 48px;
}

.contact form textarea {
  padding: 12px 16px;
}

.contact form button[type="submit"] {
  background: var(--accent-gradient);
  border: 0;
  padding: 14px 40px;
  color: #fff;
  transition: var(--transition);
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.5px;
}

.contact form button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(108, 99, 255, 0.35);
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
#footer {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 14px;
  text-align: center;
  padding: 40px 0 0 0;
  border-top: 1px solid var(--border-glass);
  overflow: hidden;
}

#footer h3 {
  font-family: "Playfair Display", serif;
  font-size: 48px;
  font-weight: 800;
  position: relative;
  padding: 0;
  margin: 0 0 12px 0;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

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

.footer-social a:hover {
  color: #fff;
  background: var(--accent-1);
  border-color: var(--accent-1);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(108, 99, 255, 0.3);
}

#footer .footer-tagline {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

#footer .footer-heart {
  color: var(--accent-1) !important;
}

#footer .footer-image {
  max-width: 100%;
  height: auto;
  width: auto;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  margin-top: 30px;
  opacity: 0.7;
  transition: var(--transition);
}

#footer .footer-image:hover {
  opacity: 1;
}

#footer .footer-banner {
  margin-top: 30px;
  position: relative;
  text-align: center;
  padding-bottom: 0;
}

#footer .footer-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to bottom, var(--bg-secondary), transparent);
  z-index: 1;
  pointer-events: none;
}

#footer .footer-banner .footer-image {
  max-width: 700px;
  width: 90%;
  height: auto;
  display: inline-block;
  border-radius: var(--radius-lg);
  mask-image: radial-gradient(ellipse 80% 70% at center center, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at center center, black 30%, transparent 75%);
}

/*--------------------------------------------------------------
# Certifications badge style
--------------------------------------------------------------*/
.resume .resume-item.cert-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
}

.resume .resume-item.cert-item h4 {
  margin: 0;
  font-size: 14px;
}

.resume .resume-item.cert-item::after {
  content: "\eb7a";
  font-family: "boxicons";
  color: var(--accent-2);
  font-size: 18px;
  margin-left: auto;
}

/*--------------------------------------------------------------
# Glass Card Utility
--------------------------------------------------------------*/
.glass-card {
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}

.glass-card:hover {
  border-color: rgba(108, 99, 255, 0.15);
  box-shadow: var(--shadow-glow);
}

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/
@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }

  .section-title span {
    font-size: 28px;
  }

  .fix-menu {
    display: none;
  }

  #footer h3 {
    font-size: 36px;
  }

  /* Tab bar mobile */
  .tab-nav {
    gap: 4px;
    flex-wrap: nowrap;
    padding: 0 8px;
    justify-content: center;
  }

  .tab-btn {
    padding: 6px 12px;
    font-size: 10px;
    white-space: nowrap;
    flex-shrink: 0;
    gap: 4px;
    letter-spacing: 0;
    border-radius: 16px;
  }

  .tab-btn i {
    font-size: 12px;
  }

  .tab-nav-wrapper {
    padding: 6px 0;
  }

  /* Back to top mobile */
  .back-to-top {
    right: 12px;
    bottom: 12px;
    width: 38px;
    height: 38px;
  }

  .back-to-top i {
    font-size: 18px;
  }

  /* Hero mobile */
  #hero {
    height: calc(100vh - 44px);
    padding: 0 16px;
  }

  #hero .bio h1 {
    font-size: 36px;
  }

  .terminal-body {
    font-size: 12px;
    padding: 14px;
    min-height: 180px;
  }

  .terminal-name {
    font-size: 16px;
  }

  .terminal-output {
    font-size: 11px;
    white-space: normal;
  }

  .terminal-line {
    white-space: normal;
  }

  .hero-cta .btn-primary-custom {
    padding: 12px 20px;
    font-size: 13px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .scroll-indicator {
    bottom: 20px;
  }

  /* Stats mobile */
  .stat-card {
    padding: 20px 10px;
  }

  /* About image mobile */
  .about .img-fluid {
    max-width: 80%;
    margin: 0 auto;
    display: block;
  }

  /* Resume cards mobile */
  .resume .resume-item {
    padding: 16px;
  }

  /* Project cards mobile */
  .project-card {
    padding: 20px;
  }

  /* Article cards mobile */
  .article-card {
    padding: 20px;
  }

  /* Footer mobile */
  .footer-social a {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .footer-banner .footer-image {
    max-width: 90%;
  }

  /* Waves mobile */
  .waves {
    height: 50px;
    min-height: 30px;
  }

  /* SRE Dashboard mobile */
  .sre-metric-card {
    padding: 20px !important;
  }
  .sre-metric-big {
    font-size: 28px !important;
  }
  .sre-ring-value {
    font-size: 14px !important;
  }
}

/*--------------------------------------------------------------
# Interactive Terminal
--------------------------------------------------------------*/
.terminal-interactive {
  margin-top: 4px;
}

#termOutput .terminal-line {
  white-space: pre-wrap;
  word-break: break-word;
}

.terminal-input-line {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.terminal-input {
  font-family: "JetBrains Mono", monospace;
  font-size: 15px;
  color: var(--text-primary);
  background: transparent;
  border: none;
  outline: none;
  flex: 1;
  padding: 0;
  line-height: 2;
  caret-color: var(--accent-2);
}

.terminal-input::placeholder {
  color: var(--text-muted);
  opacity: 0.5;
}

@media (max-width: 768px) {
  .terminal-input {
    font-size: 13px;
  }
}

.terminal-body {
  max-height: 400px;
  overflow-y: auto;
}

/*--------------------------------------------------------------
# SRE Dashboard
--------------------------------------------------------------*/
.sre-dashboard {
  background: var(--bg-primary);
  padding: 80px 0;
  border-bottom: 1px solid var(--border-glass);
}

.sre-metric-card {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  height: 100%;
}

.sre-metric-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: var(--transition);
}

.sre-metric-card:hover {
  border-color: rgba(108, 99, 255, 0.2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.sre-metric-card:hover::before {
  opacity: 1;
}

/* Ring Charts */
.sre-metric-ring-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 16px;
}

.sre-ring {
  width: 120px;
  height: 120px;
  transform: rotate(-90deg);
}

.sre-ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 8;
}

.sre-ring-fill {
  fill: none;
  stroke: url(#sreGradient);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 326.73;
  stroke-dashoffset: 326.73;
  transition: stroke-dashoffset 2s cubic-bezier(0.4, 0, 0.2, 1);
}

.sre-ring-fill.sre-ring-fill-green {
  stroke: var(--accent-2);
}

.sre-ring-fill.animated {
  stroke-dashoffset: var(--target-offset);
}

.sre-ring-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: "JetBrains Mono", monospace;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

/* Metric Labels */
.sre-metric-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 8px;
}

.sre-metric-sublabel {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Big number display */
.sre-metric-big {
  font-family: "Playfair Display", serif;
  font-size: 42px;
  font-weight: 900;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
  margin-bottom: 4px;
}

.sre-metric-big-counter {
  padding-top: 20px;
  padding-bottom: 10px;
}

/* MTTR Bar */
.sre-metric-bar-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  padding: 0 8px;
}

.sre-metric-bar-icon {
  font-size: 28px;
  color: var(--accent-2);
}

.sre-metric-bar-container {
  flex: 1;
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  overflow: hidden;
}

.sre-metric-bar {
  height: 100%;
  width: 0%;
  background: var(--accent-gradient);
  border-radius: 4px;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.sre-metric-bar.animated {
  width: var(--target-width);
}

/* Error Budget Progress Bar */
.sre-metric-progress-wrap {
  margin-bottom: 16px;
  padding: 0 8px;
}

.sre-metric-progress-bar {
  height: 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 5px;
  overflow: hidden;
}

.sre-metric-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--accent-gradient);
  border-radius: 5px;
  transition: width 2s cubic-bezier(0.4, 0, 0.2, 1);
}

.sre-metric-progress-fill.animated {
  width: var(--target-width);
}

/*--------------------------------------------------------------
# Terminal Greeting Line
--------------------------------------------------------------*/
.terminal-greeting {
  font-size: 12px;
  color: var(--text-muted);
  padding-left: 0;
  font-family: "JetBrains Mono", monospace;
  opacity: 0.7;
}

/*--------------------------------------------------------------
# Keyboard Shortcut Hint
--------------------------------------------------------------*/
.tab-shortcut-hint {
  text-align: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  color: var(--text-muted);
  opacity: 0.5;
  margin-top: 4px;
  letter-spacing: 0.5px;
}

/*--------------------------------------------------------------
# Testimonials Slider (Modern Crossfade)
--------------------------------------------------------------*/
.testimonials-slider {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.testimonials-track {
  position: relative;
  min-height: 320px;
}

.testimonial-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  text-align: center;
}

.testimonial-slide.active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}

.testimonial-quote {
  padding: 0 20px;
  margin-bottom: 32px;
}

.testimonial-quote .quote-icon-left,
.testimonial-quote .quote-icon-right {
  color: rgba(108, 99, 255, 0.3);
  font-size: 26px;
}

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

.testimonial-quote .quote-icon-right {
  display: inline-block;
  position: relative;
  right: -5px;
  top: 10px;
}

.testimonial-quote p {
  font-style: italic;
  color: var(--text-secondary);
  font-size: 17px;
  line-height: 1.8;
  display: inline;
}

@media (min-width: 992px) {
  .testimonial-quote p {
    font-size: 18px;
  }
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.testimonial-author img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 12px;
  transition: var(--transition);
}

.testimonial-slide.active .testimonial-author img:hover {
  border-color: var(--accent-1);
  box-shadow: 0 0 20px rgba(108, 99, 255, 0.2);
}

.testimonial-author h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px 0;
}

.testimonial-author h4 {
  font-size: 13px;
  color: var(--accent-2);
  margin: 0;
  font-weight: 500;
}

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

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: var(--transition);
}

.testimonial-dot.active {
  background: var(--accent-1);
  box-shadow: 0 0 10px rgba(108, 99, 255, 0.3);
}

.testimonial-dot:hover {
  background: rgba(108, 99, 255, 0.5);
}

@media (max-width: 768px) {
  .testimonials-track {
    min-height: 380px;
  }
  .testimonial-quote p {
    font-size: 15px;
  }
}

/*--------------------------------------------------------------
# Floating Resume Download Button
--------------------------------------------------------------*/
.resume-download-fab {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 0;
  height: 48px;
  width: 48px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 999px;
  color: var(--text-primary);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  overflow: hidden;
  white-space: nowrap;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.resume-download-fab i {
  font-size: 20px;
  flex-shrink: 0;
}

.resume-download-fab span {
  opacity: 0;
  margin-left: 0;
  transition: opacity 0.2s ease 0s, margin-left 0.3s ease;
}

.resume-download-fab:hover {
  width: 210px;
  background: rgba(108, 99, 255, 0.15);
  border-color: rgba(108, 99, 255, 0.3);
  box-shadow: 0 4px 30px rgba(108, 99, 255, 0.2);
  color: #fff;
  text-decoration: none;
}

.resume-download-fab:hover span {
  opacity: 1;
  margin-left: 10px;
  transition: opacity 0.25s ease 0.1s, margin-left 0.3s ease;
}

@media (max-width: 768px) {
  .resume-download-fab {
    display: none;
  }
}
