/* Tomasz Gajda Portfolio Stylesheet — Split-Screen 3D Interactive Theme */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg-light: #d8d8d8;
  --bg-light-card: #e5e5e5;
  --bg-dark: #000000;
  --bg-dark-card: #121212;
  
  --text-dark: #09090b;
  --text-dark-muted: #52525b;
  --text-light: #ffffff;
  --text-light-muted: #a1a1aa;
  
  --font-main: 'Montserrat', 'Plus Jakarta Sans', sans-serif;
  --transition-fast: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Top Scroll Progress Bar */
#scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #3b82f6, #60a5fa, #ffffff);
  box-shadow: 0 0 10px rgba(96, 165, 250, 0.8);
  z-index: 99999;
  transition: width 0.1s ease-out;
  pointer-events: none;
}

/* Lenis Smooth Scroll Base */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

html {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-light);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  perspective: 1200px;
}

/* Premium Cinematic AI Loading Screen */
#app-loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #050505;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.8s;
}

#app-loader.loaded {
  opacity: 0;
  visibility: hidden;
}

.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.loader-logo-box {
  position: relative;
  width: 90px;
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-logo-text {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: #ffffff;
  z-index: 2;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

.loader-ring {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: loaderSpin 1.2s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

@keyframes loaderSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loader-progress-track {
  width: 220px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 99px;
  overflow: hidden;
}

.loader-progress-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, #ffffff, #60a5fa);
  border-radius: 99px;
  transition: width 0.3s ease;
}

.loader-status-text {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-light-muted);
}

/* Dual Custom Magnetic Cursor System */
#custom-cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background: #ffffff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 100000;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease-out, background-color 0.2s;
  mix-blend-mode: difference;
}

#custom-cursor-ring {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s, background-color 0.25s;
}

#custom-cursor-ring.active-hover {
  width: 65px;
  height: 65px;
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
}

/* 3D Ambient Cursor Glow */
.cursor-glow-3d {
  position: fixed;
  width: 450px;
  height: 450px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease-out, opacity 0.3s ease;
  mix-blend-mode: overlay;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-fast);
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

/* Navbar */
.navbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 90px;
  z-index: 100;
  display: flex;
  align-items: center;
  transition: transform 0.4s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-badge {
  width: 44px;
  height: 44px;
  background: #000000;
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: -0.05em;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  transform-style: preserve-3d;
}

.logo-badge:hover {
  transform: rotateY(360deg) scale(1.15) translateZ(10px);
}

.nav-right-group {
  display: flex;
  align-items: center;
  gap: 3rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
  position: relative;
  padding: 0.4rem 0;
}

.nav-link:hover {
  color: #d1d5db;
}

/* Light Sweep Button Animation */
.btn-contact-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.8rem;
  background: #ffffff;
  color: #000000;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 9999px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
  transform-style: preserve-3d;
  overflow: hidden;
}

.btn-contact-pill::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transition: left 0.6s ease;
}

.btn-contact-pill:hover::before {
  left: 100%;
}

.btn-contact-pill:hover {
  background: #ffffff;
  transform: translateY(-4px) translateZ(15px) scale(1.05);
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.35);
}

/* 3D WebGL Canvas */
#hero-3d-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-color: var(--bg-dark);
}

.hero-split-left {
  position: absolute;
  top: 0;
  left: 0;
  width: 55%;
  height: 100%;
  background-color: var(--bg-light);
  clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%);
  z-index: 1;
  display: flex;
  align-items: center;
  transition: clip-path 0.5s ease-out;
}

.hero-left-content {
  padding-left: max(2.5rem, calc((100vw - 1280px) / 2 + 2.5rem));
  max-width: 600px;
  color: #09090b;
  margin-top: 3rem;
  transform-style: preserve-3d;
}

.hero-greeting {
  font-size: 2.2rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #27272a;
}

.hero-name {
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  color: #000000;
  background: none;
  -webkit-text-fill-color: initial;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.hero-role {
  font-size: 1.25rem;
  font-weight: 700;
  color: #52525b;
  margin-bottom: 3rem;
  letter-spacing: -0.01em;
}

/* 3D Levitation & Floating Text */
.3d-floating-text {
  animation: float3DText 6s ease-in-out infinite alternate;
}

@keyframes float3DText {
  0% { transform: translateY(0px) translateZ(0px); }
  100% { transform: translateY(-6px) translateZ(10px); }
}

/* Social Buttons */
.social-buttons {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.social-btn {
  position: relative;
  width: 52px;
  height: 52px;
  background: #c8c8c8;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000000;
  font-size: 1.3rem;
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transform-style: preserve-3d;
  overflow: hidden;
}

.social-btn:hover {
  background: #000000;
  color: #ffffff;
  transform: translateY(-8px) translateZ(25px) rotateY(20deg);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

/* Right Hero Area with 3D Parallax */
.hero-split-right {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
}

.hero-portrait-box {
  position: relative;
  width: 100%;
  max-width: 460px;
  height: 90%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out;
  pointer-events: auto;
  overflow: visible;
}

.hero-portrait-box img {
  max-height: 95%;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 45px rgba(0, 0, 0, 0.95));
  transform: translateZ(30px);
  position: relative;
  z-index: 2;
}

/* Authentic 3D Apple Emoji Engine */
.apple-emoji-img {
  width: 1.2em;
  height: 1.2em;
  display: inline-block;
  vertical-align: -0.18em;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.apple-emoji-img:hover {
  transform: scale(1.15) rotate(5deg);
}

.badge-icon .apple-emoji-img,
.hero-floating-badge .apple-emoji-img {
  width: 1.35em;
  height: 1.35em;
  vertical-align: -0.22em;
  margin-right: 0.3rem;
}

.skill-icon .apple-emoji-img {
  width: 2.2rem;
  height: 2.2rem;
  vertical-align: middle;
}

.stepper-title .apple-emoji-img {
  width: 1.25em;
  height: 1.25em;
  margin-right: 0.3rem;
}

/* Interactive Floating Apple Airplane Emoji */
.interactive-airplane-box {
  position: fixed;
  top: 15%;
  right: 6%;
  width: 58px;
  height: 58px;
  z-index: 99999;
  cursor: grab;
  user-select: none;
  touch-action: none;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 10px 25px rgba(96, 165, 250, 0.5));
  transition: filter 0.3s;
  animation: airplaneDangle 4s ease-in-out infinite alternate;
}

.interactive-airplane-box:active {
  cursor: grabbing;
  filter: drop-shadow(0 15px 35px rgba(96, 165, 250, 0.9));
}

.airplane-emoji-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  transform: rotate(-30deg);
  transition: transform 0.15s ease-out;
}

.airplane-jet-trail {
  position: absolute;
  width: 25px;
  height: 6px;
  background: linear-gradient(90deg, rgba(96, 165, 250, 0.7), transparent);
  border-radius: 10px;
  left: -20px;
  bottom: 12px;
  filter: blur(2px);
  opacity: 0.85;
  pointer-events: none;
}

@keyframes airplaneDangle {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(6deg); }
  100% { transform: translateY(8px) rotate(-4deg); }
}

/* Hero Status Pill & Aura */
.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-size: 0.8rem;
  font-weight: 700;
  color: #27272a;
  margin-bottom: 1.2rem;
}

.status-dot-pulsing {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: statusPulse 2s infinite ease-in-out;
}

@keyframes statusPulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-portrait-glow-aura {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 75%;
  height: 75%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.25) 0%, rgba(59, 130, 246, 0.08) 50%, transparent 80%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 1;
}

/* Floating 3D Glass Badges */
.hero-floating-badge {
  position: absolute;
  padding: 0.6rem 1.1rem;
  background: rgba(18, 18, 22, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border-radius: 14px;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
  z-index: 20;
  pointer-events: none;
}

.badge-top-right {
  top: 12%;
  right: -5%;
}

.badge-bottom-left {
  bottom: 15%;
  left: -5%;
}

/* Continuous 3D Photo Levitation Animation */
.3d-photo-levitate {
  animation: photoLevitate 5s ease-in-out infinite alternate;
  transform-style: preserve-3d;
}

@keyframes photoLevitate {
  0% { transform: translateY(0px) rotateX(0deg); }
  50% { transform: translateY(-12px) rotateX(2deg); }
  100% { transform: translateY(-4px) rotateX(-2deg); }
}

/* Ambient Radial Aura Glow */
.hero-portrait-glow-aura {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 85%;
  height: 85%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.35) 0%, rgba(59, 130, 246, 0.12) 50%, transparent 80%);
  filter: blur(45px);
  pointer-events: none;
  z-index: 1;
  animation: auraPulse 4s ease-in-out infinite alternate;
}

@keyframes auraPulse {
  0% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.7; }
  100% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

/* Floating 3D Glass Badges */
.hero-floating-badge {
  position: absolute;
  padding: 0.6rem 1.2rem;
  background: rgba(18, 18, 24, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(14px);
  border-radius: 9999px;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
  z-index: 20;
  pointer-events: none;
  transform-style: preserve-3d;
}

.badge-top-right {
  top: 15%;
  right: -8%;
  transform: translateZ(50px);
}

.badge-bottom-left {
  bottom: 18%;
  left: -8%;
  transform: translateZ(65px);
}

.badge-top-left {
  top: 38%;
  left: -12%;
  transform: translateZ(40px);
}

.3d-badge-levitate-1 { animation: floatBadge1 4s ease-in-out infinite alternate; }
.3d-badge-levitate-2 { animation: floatBadge2 4.8s ease-in-out infinite alternate 0.8s; }
.3d-badge-levitate-3 { animation: floatBadge3 5.2s ease-in-out infinite alternate 1.5s; }

@keyframes floatBadge1 {
  0% { transform: translateZ(50px) translateY(0px); }
  100% { transform: translateZ(50px) translateY(-14px); }
}

@keyframes floatBadge2 {
  0% { transform: translateZ(65px) translateY(0px); }
  100% { transform: translateZ(65px) translateY(-10px); }
}

@keyframes floatBadge3 {
  0% { transform: translateZ(40px) translateY(0px); }
  100% { transform: translateZ(40px) translateY(-12px); }
}

/* Infinite Marquee Ticker Banner */
.ticker-banner {
  background: linear-gradient(90deg, #09090b, #18181b, #09090b);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.1rem 0;
  overflow: hidden;
  position: relative;
  z-index: 10;
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 2rem;
  white-space: nowrap;
  animation: tickerSlide 22s linear infinite;
}

.ticker-track span {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e4e4e7;
}

.ticker-track span:nth-child(even) {
  color: #60a5fa;
}

@keyframes tickerSlide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* 3D Tilt Cards System */
.3d-tilt-card {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.15s ease-out, border-color 0.3s, box-shadow 0.3s;
  will-change: transform;
}

.glare-3d {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.22), transparent 60%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.3d-tilt-card:hover .glare-3d,
.hero-portrait-box:hover .glare-3d {
  opacity: 1;
}

/* 3D Levitate Icons */
.3d-levitate {
  animation: levitateIcon 4s ease-in-out infinite alternate;
  transform-style: preserve-3d;
}

@keyframes levitateIcon {
  0% { transform: translateY(0px) rotateX(0deg) translateZ(25px); }
  100% { transform: translateY(-8px) rotateX(10deg) translateZ(35px); }
}

/* GSAP Blur-to-Focus Reveal Classes */
.gsap-reveal-blur {
  will-change: transform, filter, opacity;
}

/* 3D Scroll Reveal Animation */
.3d-scroll-reveal {
  opacity: 0;
  transform: perspective(1000px) rotateX(25deg) translateZ(-60px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.3d-scroll-reveal.revealed {
  opacity: 1;
  transform: perspective(1000px) rotateX(0deg) translateZ(0px);
}

/* Captivating Stat Counters Grid */
.stats-counter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.stat-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.8rem 1.5rem;
  text-align: center;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.stat-box:hover {
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-5px) translateZ(15px);
  background: rgba(255, 255, 255, 0.06);
}

.stat-number {
  display: block;
  font-size: 2.8rem;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, #ffffff, #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-light-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Journey Stepper Timeline */
.journey-stepper {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  position: relative;
  padding-left: 0.5rem;
}

.journey-stepper::before {
  content: '';
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 12px;
  width: 2px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.1), #60a5fa);
}

.stepper-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding-left: 2rem;
}

.stepper-dot {
  position: absolute;
  left: 5px;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #27272a;
  border: 2px solid #a1a1aa;
  transition: all 0.3s ease;
}

.stepper-dot.glow-dot {
  background: #3b82f6;
  border-color: #ffffff;
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.8);
}

.stepper-info {
  display: flex;
  flex-direction: column;
}

.stepper-year {
  font-size: 0.75rem;
  font-weight: 800;
  color: #60a5fa;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stepper-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #e4e4e7;
  margin-top: 0.2rem;
}

/* AI Code Terminal Window */
.ai-terminal-box {
  margin-top: 2rem;
  background: #09090b;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
  font-family: 'Fira Code', 'Courier New', monospace;
}

.terminal-header {
  background: #18181b;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-btn {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.terminal-btn.red { background: #ef4444; }
.terminal-btn.yellow { background: #f59e0b; }
.terminal-btn.green { background: #10b981; }

.terminal-title {
  font-size: 0.75rem;
  color: #a1a1aa;
  margin-left: auto;
  margin-right: auto;
  font-weight: 600;
}

.terminal-body {
  padding: 1.2rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: #e4e4e7;
}

.t-keyword { color: #f43f5e; font-weight: 700; }
.t-var { color: #60a5fa; }
.t-key { color: #a78bfa; }
.t-string { color: #34d399; }

/* Skill Category Filter Tabs */
.skill-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.skill-filter-btn {
  padding: 0.6rem 1.4rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-light-muted);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: all 0.3s ease;
}

.skill-filter-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.skill-filter-btn.active {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* Skill Card Level Progress Bars */
.skill-level-wrapper {
  margin-top: 1.2rem;
  text-align: left;
}

.skill-level-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-light-muted);
  margin-bottom: 0.4rem;
}

.skill-progress-bar {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  overflow: hidden;
}

.skill-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #60a5fa, #ffffff);
  border-radius: 99px;
  transition: width 1s ease-out;
}

.skill-card.filtered-out {
  display: none !important;
}
.about-section {
  padding: 8rem 0;
  background-color: var(--bg-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.section-title {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-light-muted);
  max-width: 650px;
  line-height: 1.7;
  margin-bottom: 4rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-card {
  background: var(--bg-dark-card);
  padding: 3rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.about-card p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #d4d4d8;
  margin-bottom: 1.5rem;
  transform: translateZ(15px);
}

/* Skills Section */
.skills-section {
  padding: 7rem 0;
  background-color: #050505;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.skill-card {
  background: var(--bg-dark-card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
}

.skill-icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 1.5rem;
  color: #ffffff;
}

.skill-name {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #ffffff;
  transform: translateZ(20px);
}

.skill-desc {
  font-size: 0.9rem;
  color: var(--text-light-muted);
  transform: translateZ(10px);
}

/* Footer */
.footer {
  padding: 4rem 0;
  background-color: #000000;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  color: var(--text-light-muted);
  font-size: 0.9rem;
}

/* Modals with 3D opening animation */
.modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(0, 0, 0, 0.9) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  z-index: 2147483647 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 1.5rem !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.modal-card {
  background: #18181c !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 24px !important;
  width: 100% !important;
  max-width: 540px !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 2.5rem !important;
  position: relative !important;
  margin: auto !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95), 0 0 50px rgba(96, 165, 250, 0.25) !important;
  transform: scale(0.92);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  z-index: 2147483647 !important;
}

.modal-overlay.active .modal-card,
.modal-overlay[style*="display: flex"] .modal-card {
  transform: scale(1) !important;
  opacity: 1 !important;
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 1.2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 0.9rem 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  color: #ffffff;
  font-family: inherit;
  font-size: 0.95rem;
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: #ffffff;
}

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

/* =========================================================================
   Ultimate Mobile & Tablet Responsive Engine
   ========================================================================= */

@media (max-width: 1024px) {
  .container {
    padding: 0 1.5rem;
  }

  .navbar {
    height: 75px;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(16px);
  }

  .nav-right-group {
    gap: 1.2rem;
  }

  .nav-links {
    gap: 1.2rem;
  }

  .hero-section {
    flex-direction: column;
    min-height: auto;
    padding-top: 105px;
    padding-bottom: 3rem;
  }

  .hero-split-left {
    position: relative;
    width: 100%;
    clip-path: none;
    background: transparent;
    padding: 1.5rem 1rem 2rem;
    text-align: center;
    order: 1;
  }

  .hero-left-content {
    padding-left: 0;
    margin-top: 0;
    max-width: 100%;
    color: #ffffff;
  }

  .hero-greeting {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff !important;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
  }

  .hero-name {
    font-size: clamp(2.4rem, 9vw, 3.8rem);
    line-height: 1.1;
    background: linear-gradient(135deg, #ffffff 0%, #f4f4f5 50%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.4);
    word-break: break-word;
  }

  .hero-role {
    font-size: 1.15rem;
    font-weight: 700;
    color: #93c5fd !important;
    margin-bottom: 2rem;
  }

  .social-buttons {
    justify-content: center;
  }

  .hero-split-right {
    position: relative;
    width: 100%;
    height: 360px;
    align-items: center;
    justify-content: center;
    order: 2;
  }

  .hero-portrait-box {
    max-width: 340px;
    height: 100%;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-card {
    padding: 1.8rem;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .section-subtitle {
    font-size: 1rem;
    margin-bottom: 2.5rem;
  }
}

@media (max-width: 768px) {
  /* Ultra-Bright Readable Paragraphs & Keywords for HP Screens */
  p, .about-card p, .gsap-reveal-blur {
    color: #ffffff !important;
    font-size: 1rem !important;
    line-height: 1.75 !important;
    opacity: 1 !important;
    filter: none !important;
  }

  p strong, .about-card p strong, .gsap-reveal-blur strong {
    color: #60a5fa !important;
    font-weight: 800 !important;
    background: none !important;
    -webkit-text-fill-color: #60a5fa !important;
  }

  /* Disable custom cursor on touch devices for fluid native touch experience */
  #custom-cursor-dot, #custom-cursor-ring, .cursor-glow-3d {
    display: none !important;
  }

  body {
    cursor: auto !important;
  }

  a, button, input, textarea {
    cursor: pointer !important;
  }

  .navbar {
    padding: 0 1rem;
  }

  .nav-links {
    display: none;
  }

  .btn-contact-pill {
    padding: 0.5rem 1rem;
    font-size: 0.78rem;
  }

  .hero-split-right {
    height: 330px;
  }

  .hero-portrait-box {
    max-width: 290px;
  }

  .hero-floating-badge {
    font-size: 0.72rem;
    padding: 0.35rem 0.75rem;
  }

  .stats-counter-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
  }

  .stat-number {
    font-size: 2.2rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .skill-filters {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    flex-wrap: nowrap;
  }

  .skill-filter-btn {
    white-space: nowrap;
    padding: 0.5rem 1.1rem;
    font-size: 0.8rem;
  }

  .skills-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .skill-card {
    padding: 1.8rem 1.2rem;
  }

  .modal-card {
    padding: 2rem 1.4rem;
    max-height: 90vh;
    overflow-y: auto;
  }
}

@media (max-width: 480px) {
  .hero-greeting {
    font-size: 1.25rem;
  }

  .hero-name {
    font-size: clamp(2rem, 9vw, 2.5rem);
    background: linear-gradient(135deg, #ffffff 0%, #a1a1aa 50%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .hero-role {
    font-size: 0.95rem;
  }

  .hero-split-right {
    height: 290px;
  }

  .hero-portrait-box {
    max-width: 240px;
  }

  .stats-counter-grid {
    grid-template-columns: 1fr;
  }

  .journey-stepper {
    padding-left: 1rem;
  }

  .stepper-title {
    font-size: 0.85rem;
  }
}
