@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;
  -webkit-tap-highlight-color: transparent;
}

/* Touch-friendly base styles for interactive elements */
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: rgba(93, 173, 226, 0.2);
}

/* Improve touch targets for interactive elements */
button,
.btn,
.nav-link,
.resume-link,
.contact-card-link,
.skill-item,
.social-link {
  touch-action: manipulation;
  -webkit-touch-callout: none;
}

body, html {
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: #ffffff;
  background: #0a0e27;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body {
  flex: 1;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 15px 50px;
  background: rgba(10, 14, 39, 0.8);
  backdrop-filter: blur(10px);
  transition: background 0.3s ease;
}

nav.scrolled {
  background: rgba(10, 14, 39, 0.95);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  gap: 40px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #ffffff;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.nav-logo:hover {
  transform: scale(1.05);
}

.nav-logo-circle {
  width: 50px;
  height: 50px;
  border: 2px solid #5dade2;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Courier New', 'Consolas', 'Monaco', monospace;
  font-size: 18px;
  font-weight: 700;
  color: #5dade2;
  transition: all 0.3s ease;
  flex-shrink: 0;
  position: relative;
  background: rgba(93, 173, 226, 0.05);
  box-shadow: 0 0 10px rgba(93, 173, 226, 0.2), 
              inset 0 0 10px rgba(93, 173, 226, 0.1);
  overflow: hidden;
}

.nav-logo-circle::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(93, 173, 226, 0.1), transparent);
  transform: rotate(45deg);
  transition: transform 0.6s ease;
}

.nav-logo:hover .nav-logo-circle::before {
  transform: rotate(45deg) translate(100%, 100%);
}

.nav-logo-bracket {
  font-family: 'Courier New', 'Consolas', 'Monaco', monospace;
  font-size: 14px;
  font-weight: 400;
  color: rgba(93, 173, 226, 0.7);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.nav-logo-letter {
  font-family: 'Courier New', 'Consolas', 'Monaco', monospace;
  font-size: 20px;
  font-weight: 700;
  color: #5dade2;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  text-shadow: 0 0 10px rgba(93, 173, 226, 0.5);
}

.nav-logo:hover .nav-logo-circle {
  border-color: #7dd3fc;
  box-shadow: 0 0 20px rgba(93, 173, 226, 0.6), 
              inset 0 0 15px rgba(93, 173, 226, 0.2),
              0 0 30px rgba(125, 211, 252, 0.3);
  transform: scale(1.05);
}

.nav-logo:hover .nav-logo-bracket {
  color: rgba(125, 211, 252, 0.9);
}

.nav-logo:hover .nav-logo-letter {
  color: #7dd3fc;
  text-shadow: 0 0 15px rgba(125, 211, 252, 0.8), 
               0 0 25px rgba(125, 211, 252, 0.5);
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  white-space: nowrap;
}

.nav-logo-name {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #ffffff;
  transition: color 0.3s ease;
}

.nav-logo-portfolio {
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  transition: color 0.3s ease;
  margin-top: 2px;
}

.nav-logo:hover .nav-logo-name {
  color: #5dade2;
}

.nav-logo:hover .nav-logo-portfolio {
  color: rgba(93, 173, 226, 0.7);
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 40px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 1px;
  transition: color 0.3s ease;
  position: relative;
  padding: 8px 12px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-link:hover,
.nav-link.active {
  color: #5dade2;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: #5dade2;
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.resume-link {
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 1px;
  transition: color 0.3s ease;
  padding: 8px 16px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.resume-link:hover {
  color: #5dade2;
}

/* Music Control in Navbar */
.nav-music-control {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 20px;
}

.music-toggle-btn {
  background: transparent;
  border: 2px solid rgba(93, 173, 226, 0.3);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #ffffff;
  padding: 0;
  flex-shrink: 0;
}

.music-toggle-btn:hover {
  border-color: #5dade2;
  background: rgba(93, 173, 226, 0.1);
  transform: scale(1.05);
}

.music-toggle-btn.active {
  border-color: #5dade2;
  background: rgba(93, 173, 226, 0.2);
}

.music-icon {
  width: 20px;
  height: 20px;
  color: #5dade2;
  transition: all 0.3s ease;
}

.music-toggle-btn:hover .music-icon {
  color: #7dd3fc;
}

.music-icon-muted {
  color: #888;
}

.music-icon-play,
.music-icon-pause {
  color: #5dade2;
}

.music-toggle-btn:hover .music-icon-play,
.music-toggle-btn:hover .music-icon-pause {
  color: #7dd3fc;
}

.music-volume-control {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 120px;
}

.volume-slider {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  background: #5dade2;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 8px rgba(93, 173, 226, 0.5);
}

.volume-slider::-webkit-slider-thumb:hover {
  background: #7dd3fc;
  transform: scale(1.2);
  box-shadow: 0 0 12px rgba(93, 173, 226, 0.8);
}

.volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: #5dade2;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 8px rgba(93, 173, 226, 0.5);
}

.volume-slider::-moz-range-thumb:hover {
  background: #7dd3fc;
  transform: scale(1.2);
  box-shadow: 0 0 12px rgba(93, 173, 226, 0.8);
}

.volume-slider::-moz-range-track {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.volume-value {
  font-size: 0.75rem;
  color: #b0b0b0;
  min-width: 35px;
  text-align: right;
  font-weight: 500;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  position: relative;
  transition: all 0.3s ease;
  -webkit-tap-highlight-color: rgba(93, 173, 226, 0.2);
}

.mobile-menu-toggle:focus {
  outline: 2px solid #5dade2;
  outline-offset: 2px;
}

.hamburger-line {
  width: 100%;
  height: 3px;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

.mobile-menu-toggle:hover .hamburger-line {
  background: #5dade2;
}

/* Hero Section */
/* Workspace Background Section (Static/Parallax) */
.workspace-background-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
}

/* Workspace Background */
.workspace-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: hidden;
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: transparent;
  z-index: 1;
  margin-top: 100vh;
}

.workspace-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: 1;
  pointer-events: none;
}

.workspace-image-1 {
  background-image: url('static/images/workspace-1.jpg');
  opacity: 1;
}

.workspace-image-2 {
  background-image: url('static/images/workspace-2.jpg');
}

.workspace-image-3 {
  background-image: url('static/images/workspace-3.jpg');
}

.workspace-image-4 {
  background-image: url('static/images/workspace-4.jpg');
}

.workspace-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 14, 39, 0.4);
  z-index: 1;
  transition: background 0.5s ease;
}

.workspace-overlay.lit {
  background: rgba(10, 14, 39, 0.2);
}

/* Interactive Clickable Zones */
.interactive-zones {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 5;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.5s ease-out;
  display: block !important;
  visibility: visible !important;
}

.interactive-zones.fade-out {
  opacity: 0;
  pointer-events: none;
}

.clickable-zone {
  position: absolute;
  cursor: pointer;
  pointer-events: all !important;
  border-radius: 10px;
  transition: all 0.3s ease;
  z-index: 10;
  background: transparent;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(93, 173, 226, 0.2);
  min-height: 44px;
  min-width: 44px;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.clickable-zone:hover {
  transform: scale(1.05);
}

.clickable-zone:active {
  transform: scale(0.98);
}

/* Person Zone - Center area where person sits */
.person-zone {
  bottom: 39%;
  left: 39.5%;
  width: 24vw;
  height: 24vh;
  min-width: 200px;
  min-height: 150px;
  max-width: 500px;
  max-height: 300px;
  background: transparent;
  border: none;
  opacity: 1;
  transition: all 0.3s ease;
  display: block !important;
  visibility: visible !important;
}

.person-zone:hover {
  opacity: 1;
}

.person-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: transparent;
  backdrop-filter: none;
  padding: 0;
  border-radius: 0;
  font-family: 'Courier New', 'Consolas', 'Monaco', monospace;
  font-size: clamp(0.85rem, 1.2vw, 1.1rem);
  font-weight: 400;
  color: #ffffff;
  white-space: nowrap;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  border: none;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.4;
  width: auto;
  margin: 0;
  z-index: 11;
  box-shadow: none;
  text-shadow: 0 0 10px #006eff, 0 0 20px #0059ff, 0 0 30px #0044ff;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.person-hint span {
  display: inline-block;
  text-align: center;
  margin: 0;
  padding: 0;
}

.person-zone:hover .person-hint {
  opacity: 1;
}

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

/* Workspace4 Zone - Another clickable area */
.workspace4-zone {
  bottom: 5%;
  right: 40%;
  width: 20vw;
  height: 25vh;
  min-width: 150px;
  min-height: 200px;
  max-width: 350px;
  max-height: 400px;
  background: transparent;
  border: none;
  opacity: 1;
  transition: all 0.3s ease;
  display: block !important;
  visibility: visible !important;
}

.workspace4-zone:hover {
  opacity: 1;
}

.workspace4-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: transparent;
  backdrop-filter: none;
  padding: 0;
  border-radius: 0;
  font-family: 'Courier New', 'Consolas', 'Monaco', monospace;
  font-size: clamp(0.85rem, 1.2vw, 1.1rem);
  font-weight: 400;
  color: #ffffff;
  white-space: nowrap;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  border: none;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.4;
  width: auto;
  margin: 0;
  z-index: 11;
  box-shadow: none;
  text-shadow: 0 0 10px #006eff, 0 0 20px #0059ff, 0 0 30px #0044ff;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.workspace4-hint span {
  display: inline-block;
  text-align: center;
  margin: 0;
  padding: 0;
}

.workspace4-zone:hover .workspace4-hint {
  opacity: 1;
}

/* Lamp Zones */
.lamp-zone {
  background: transparent;
  border: none;
  opacity: 1;
  transition: all 0.3s ease;
}

.lamp-zone:hover {
  opacity: 1;
}

.lamp-zone-right {
  bottom: 52%;
  right: 23.5%;
  width: 3vw;
  height: 4vw;
  min-width: 100px;
  min-height: 80px;
  max-width: 80px;
  max-height: 80px;
  border-radius: 50%;
  z-index: 20;
  pointer-events: all !important;
  display: block !important;
  visibility: visible !important;
}

.lamp-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: transparent;
  backdrop-filter: none;
  padding: 0;
  border-radius: 0;
  font-family: 'Courier New', 'Consolas', 'Monaco', monospace;
  font-size: clamp(0.85rem, 1.2vw, 1.1rem);
  font-weight: 400;
  color: #ffffff;
  white-space: nowrap;
  opacity: 0.6;
  transition: opacity 0.3s ease;
  border: none;
  pointer-events: all !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1.4;
  width: auto;
  margin: 0;
  z-index: 21;
  box-shadow: none;
  text-shadow: 0 0 10px #006eff, 0 0 20px #0059ff, 0 0 30px #0044ff;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.lamp-hint span {
  display: inline-block;
  text-align: center;
  margin: 0;
  padding: 0;
}

.lamp-zone:hover .lamp-hint {
  opacity: 1;
}

.lamp-hint.hidden {
  opacity: 0;
  pointer-events: all !important;
  cursor: pointer;
  transform: translate(-50%, -50%) scale(0.8);
}

.lamp-hint .hint-arrow {
  display: inline-block;
  margin-left: 0.3vw;
  font-size: clamp(0.8rem, 1.2vw, 1rem);
  animation: pointRight 1.5s ease-in-out infinite;
  vertical-align: middle;
  pointer-events: all;
  cursor: pointer;
}

/* Lamp Light Effects - Hidden */
.lamp-light-effect {
  display: none;
  visibility: hidden;
}

.hero-container {
  display: flex;
  width: 100%;
  max-width: 1400px;
  min-height: 100vh;
  padding: 0 50px;
  position: relative;
  z-index: 2;
  pointer-events: none;
  background: transparent;
}

.hero-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 50px;
  position: relative;
  z-index: 4;
  max-width: 600px;
  pointer-events: all;
}

.logo-container {
  margin-bottom: 20px;
}

.logo-circle {
  width: 80px;
  height: 80px;
  border: 2px solid #5dade2;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Courier New', 'Consolas', 'Monaco', monospace;
  font-size: 28px;
  font-weight: 700;
  color: #5dade2;
  margin-bottom: 30px;
  position: relative;
  background: rgba(93, 173, 226, 0.05);
  box-shadow: 0 0 15px rgba(93, 173, 226, 0.3), 
              inset 0 0 15px rgba(93, 173, 226, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

.logo-circle::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(93, 173, 226, 0.15), transparent);
  transform: rotate(45deg);
  transition: transform 0.6s ease;
  animation: logoShimmer 3s ease-in-out infinite;
}

@keyframes logoShimmer {
  0%, 100% {
    transform: rotate(45deg) translate(-100%, -100%);
  }
  50% {
    transform: rotate(45deg) translate(100%, 100%);
  }
}

.logo-bracket {
  font-family: 'Courier New', 'Consolas', 'Monaco', monospace;
  font-size: 22px;
  font-weight: 400;
  color: rgba(93, 173, 226, 0.7);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.logo-letter {
  font-family: 'Courier New', 'Consolas', 'Monaco', monospace;
  font-size: 32px;
  font-weight: 700;
  color: #5dade2;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  text-shadow: 0 0 15px rgba(93, 173, 226, 0.6);
}

.logo-container:hover .logo-circle {
  border-color: #7dd3fc;
  box-shadow: 0 0 25px rgba(93, 173, 226, 0.6), 
              inset 0 0 20px rgba(93, 173, 226, 0.2),
              0 0 40px rgba(125, 211, 252, 0.4);
  transform: scale(1.05);
}

.logo-container:hover .logo-bracket {
  color: rgba(125, 211, 252, 0.9);
}

.logo-container:hover .logo-letter {
  color: #7dd3fc;
  text-shadow: 0 0 20px rgba(125, 211, 252, 0.9), 
               0 0 35px rgba(125, 211, 252, 0.6);
}

.html-tags {
  font-family: 'Courier New', monospace;
  font-size: 14px;
  color: #5dade2;
  margin: 5px 0;
  opacity: 0.7;
}

.html-tag {
  display: block;
  margin: 2px 0;
}

.hero-title {
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 20px 0;
  color: #ffffff;
}

.hero-title .highlight {
  color: #5dade2;
}

.hero-title .subtitle {
  font-size: 3.5rem;
  font-weight: 400;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: #ffffff;
  margin: 15px 0;
  font-weight: 300;
}

.btn-contact {
  display: inline-block;
  margin-top: 40px;
  padding: 15px 40px;
  min-height: 48px;
  border: 2px solid #ffffff;
  color: #ffffff;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 2px;
  transition: all 0.3s ease;
  width: fit-content;
}

.btn-contact:hover {
  background: #ffffff;
  color: #0a0e27;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(255, 255, 255, 0.2);
}

/* Hero Right - Background Scene */
.hero-right {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.background-scene {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  right: 0;
}

/* Mountains */
.mountains {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(
    to top,
    #1a2332 0%,
    #2d3a4f 30%,
    #1a2332 60%,
    #0f1419 100%
  );
  clip-path: polygon(
    0% 100%,
    20% 70%,
    40% 80%,
    60% 50%,
    80% 60%,
    100% 40%,
    100% 100%
  );
  z-index: 1;
  transition: filter 0.8s ease, box-shadow 0.8s ease;
  filter: brightness(0.7);
}

.mountains.illuminated {
  filter: brightness(1.1);
  box-shadow: 0 0 50px rgba(255, 237, 78, 0.3);
}

.mountains::before {
  content: '';
  position: absolute;
  top: -20px;
  left: 0;
  right: 0;
  height: 30%;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 100%
  );
  clip-path: polygon(
    0% 0%,
    25% 30%,
    50% 20%,
    75% 40%,
    100% 25%,
    100% 0%
  );
}

/* Birds */
.birds {
  position: absolute;
  top: 20%;
  right: 15%;
  z-index: 2;
}

.bird {
  position: absolute;
  width: 20px;
  height: 20px;
  background: #1a1f3a;
  clip-path: polygon(50% 0%, 0% 100%, 50% 80%, 100% 100%);
  animation: fly 15s infinite linear;
}

.bird-1 {
  top: 0;
  left: 0;
  animation-delay: 0s;
}

.bird-2 {
  top: 30px;
  left: 40px;
  animation-delay: 2s;
}

@keyframes fly {
  0% {
    transform: translateX(0) translateY(0);
  }
  25% {
    transform: translateX(50px) translateY(-20px);
  }
  50% {
    transform: translateX(100px) translateY(0);
  }
  75% {
    transform: translateX(150px) translateY(-20px);
  }
  100% {
    transform: translateX(200px) translateY(0);
  }
}

/* Tree */
.tree {
  position: absolute;
  bottom: 25%;
  right: 25%;
  width: 8px;
  height: 150px;
  background: #1a1f3a;
  z-index: 2;
  transition: filter 0.8s ease, box-shadow 0.8s ease;
  filter: brightness(0.6);
}

.tree.illuminated {
  filter: brightness(1.2);
  box-shadow: 0 0 30px rgba(255, 237, 78, 0.4);
}

.tree::before {
  content: '';
  position: absolute;
  top: -40px;
  left: -30px;
  width: 70px;
  height: 80px;
  background: #1a1f3a;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  transition: filter 0.8s ease;
}

.tree.illuminated::before {
  filter: brightness(1.3);
}

.tree::after {
  content: '';
  position: absolute;
  top: -60px;
  left: -25px;
  width: 60px;
  height: 70px;
  background: #0f1419;
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  transition: filter 0.8s ease;
}

.tree.illuminated::after {
  filter: brightness(1.2);
}

/* Lamp */
.lamp-container {
  position: absolute;
  bottom: 30%;
  right: 20%;
  z-index: 3;
}

.lamp-hint {
  position: absolute;
  top: -60px;
  left: -80px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  padding: 10px 15px;
  border-radius: 25px;
  font-size: 12px;
  color: #ffffff;
  white-space: nowrap;
  opacity: 0.9;
  animation: pulse 2s infinite, float 3s ease-in-out infinite;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.lamp-hint:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: scale(1.05);
}

.lamp-hint.hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
}

.lamp-hint .hint-arrow {
  display: inline-block;
  margin-left: 8px;
  font-size: 16px;
  animation: pointRight 1.5s ease-in-out infinite;
}

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

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

@keyframes pointRight {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(5px);
  }
}

.lamp {
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
  width: 100px;
  height: 200px;
}

.lamp:hover {
  transform: scale(1.1);
}

.lamp-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
  transition: filter 0.5s ease;
}

.lamp-bulb {
  transition: opacity 0.5s ease, filter 0.5s ease;
  filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.5));
}

.lamp-bulb-glow {
  transition: opacity 0.5s ease;
  filter: blur(3px);
}

.lamp.lit .lamp-bulb {
  opacity: 1;
  filter: drop-shadow(0 0 15px rgba(255, 215, 0, 1));
  animation: flicker 3s ease-in-out infinite;
}

.lamp.lit .lamp-bulb-glow {
  opacity: 0.6;
  animation: pulseGlow 2s ease-in-out infinite;
}

.lamp.lit .lamp-svg {
  filter: drop-shadow(0 5px 25px rgba(93, 173, 226, 0.8));
}

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

@keyframes pulseGlow {
  0%, 100% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.1);
  }
}

.lamp-light-beam {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 150px;
  background: radial-gradient(
    ellipse at center top,
    rgba(255, 237, 78, 0.6) 0%,
    rgba(255, 215, 0, 0.4) 20%,
    rgba(93, 173, 226, 0.3) 40%,
    rgba(93, 173, 226, 0.1) 60%,
    transparent 80%
  );
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
  pointer-events: none;
  filter: blur(8px);
  z-index: -1;
}

.lamp-light-glow {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle at center,
    rgba(255, 237, 78, 0.2) 0%,
    rgba(93, 173, 226, 0.15) 30%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.8s ease;
  pointer-events: none;
  filter: blur(15px);
  z-index: -2;
  border-radius: 50%;
}

.lamp.lit .lamp-light-beam {
  opacity: 1;
  animation: lightFlicker 4s ease-in-out infinite;
}

.lamp.lit .lamp-light-glow {
  opacity: 1;
  animation: glowPulse 3s ease-in-out infinite;
}

@keyframes lightFlicker {
  0%, 100% {
    opacity: 1;
    transform: translateX(-50%) scaleY(1);
  }
  50% {
    opacity: 0.9;
    transform: translateX(-50%) scaleY(1.05);
  }
}

@keyframes glowPulse {
  0%, 100% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
  }
  50% {
    opacity: 0.8;
    transform: translateX(-50%) scale(1.1);
  }
}

/* Grass */
.grass {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 15%;
  background: linear-gradient(
    to top,
    #0f1419 0%,
    #1a2332 50%,
    transparent 100%
  );
  z-index: 1;
}

.grass::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 10px,
    #1a2332 10px,
    #1a2332 12px
  );
  clip-path: polygon(
    0% 100%,
    5% 80%,
    10% 100%,
    15% 85%,
    20% 100%,
    25% 90%,
    30% 100%,
    35% 75%,
    40% 100%,
    45% 85%,
    50% 100%,
    55% 80%,
    60% 100%,
    65% 90%,
    70% 100%,
    75% 85%,
    80% 100%,
    85% 80%,
    90% 100%,
    95% 75%,
    100% 100%
  );
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #ffffff;
  z-index: 10;
  animation: bounce 2s infinite;
}

.scroll-indicator span {
  display: block;
  font-size: 12px;
  letter-spacing: 2px;
  margin-bottom: 5px;
}

.scroll-arrow {
  font-size: 20px;
  color: #5dade2;
}

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

/* Sections */
.section {
  min-height: 100vh;
  padding: 120px 50px 80px;
  position: relative;
}

.section-dark {
  background: #0f1419;
}

/* About Section - Light transparent background to dim workspace image */
#about {
  background: rgba(10, 14, 39, 0.4);
  backdrop-filter: blur(5px);
  position: relative;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 50px;
  text-align: center;
  color: #ffffff;
  position: relative;
  padding-bottom: 20px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: #5dade2;
}

.content-wrapper {
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  font-size: 1.1rem;
  color: #e0e0e0;
}

.content-wrapper p {
  margin-bottom: 20px;
}

.content-wrapper strong {
  color: #5dade2;
}

/* About Section Cards */
.about-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  margin-top: 50px;
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

.about-card {
  background: rgba(10, 14, 39, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(93, 173, 226, 0.2);
  border-radius: 15px;
  padding: 25px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  min-height: 350px;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #5dade2, #3498db, #5dade2);
  background-size: 200% 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.about-card:hover::before {
  transform: scaleX(1);
}

.about-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: #5dade2;
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(93, 173, 226, 0.2);
}

.about-card:active {
  transform: translateY(-4px);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 15px;
  display: inline-block;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 0 10px rgba(93, 173, 226, 0.3));
}

.about-card:hover .card-icon {
  transform: scale(1.1) rotate(5deg);
}

.about-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #5dade2;
  font-weight: 600;
  transition: color 0.3s ease;
}

.about-card:hover h3 {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(93, 173, 226, 0.5);
}

.about-card p {
  color: #e0e0e0;
  line-height: 1.7;
  font-size: 0.95rem;
  margin: 0;
  transition: color 0.3s ease;
  flex-grow: 1;
}

.about-card:hover p {
  color: #f0f0f0;
}

.about-card strong {
  color: #5dade2;
  font-weight: 600;
  transition: color 0.3s ease;
}

.about-card:hover strong {
  color: #7dd3fc;
  text-shadow: 0 0 8px rgba(93, 173, 226, 0.4);
}

/* Specific card animations */
.about-intro {
  animation: fadeInUp 0.6s ease 0.1s both;
}

.about-projects {
  animation: fadeInUp 0.6s ease 0.2s both;
}

.about-unique {
  animation: fadeInUp 0.6s ease 0.3s both;
}

.about-philosophy {
  animation: fadeInUp 0.6s ease 0.4s both;
}

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

/* Card glow effect on hover */
.about-card::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(93, 173, 226, 0.1) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
  pointer-events: none;
  z-index: -1;
}

.about-card:hover::after {
  width: 300px;
  height: 300px;
}

/* Skills */
#skills {
  background-image: url('static/images/workspace-6.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
}

#skills::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 14, 39, 0.7);
  z-index: 0;
}

#skills .section-container {
  position: relative;
  z-index: 1;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin: 50px auto 0;
  padding: 0 20px;
}

.skill-item {
  background: transparent;
  border: none;
  border-radius: 15px;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.skill-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(93, 173, 226, 0.1) 0%, rgba(52, 152, 219, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.skill-item:hover::before {
  opacity: 1;
}

.skill-item:hover {
  background: transparent;
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 15px 40px rgba(93, 173, 226, 0.3);
}

.skill-item i {
  font-size: 4rem;
  color: #5dade2;
  transition: all 0.4s ease;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 10px rgba(93, 173, 226, 0.3));
}

.skill-item:hover i {
  transform: scale(1.15) rotate(5deg);
  filter: drop-shadow(0 0 20px rgba(93, 173, 226, 0.6));
  color: #7dd3fc;
}

.skill-item span {
  font-size: 1rem;
  font-weight: 600;
  color: #e0e0e0;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  letter-spacing: 0.5px;
}

.skill-item:hover span {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(93, 173, 226, 0.5);
}

/* Skill item animations */
.skill-item {
  animation: fadeInScale 0.6s ease both;
}

.skill-item:nth-child(1) { animation-delay: 0.05s; }
.skill-item:nth-child(2) { animation-delay: 0.1s; }
.skill-item:nth-child(3) { animation-delay: 0.15s; }
.skill-item:nth-child(4) { animation-delay: 0.2s; }
.skill-item:nth-child(5) { animation-delay: 0.25s; }
.skill-item:nth-child(6) { animation-delay: 0.3s; }
.skill-item:nth-child(7) { animation-delay: 0.35s; }
.skill-item:nth-child(8) { animation-delay: 0.4s; }
.skill-item:nth-child(9) { animation-delay: 0.45s; }
.skill-item:nth-child(10) { animation-delay: 0.5s; }
.skill-item:nth-child(11) { animation-delay: 0.55s; }
.skill-item:nth-child(12) { animation-delay: 0.6s; }
.skill-item:nth-child(13) { animation-delay: 0.65s; }
.skill-item:nth-child(14) { animation-delay: 0.7s; }
.skill-item:nth-child(15) { animation-delay: 0.75s; }
.skill-item:nth-child(16) { animation-delay: 0.8s; }
.skill-item:nth-child(17) { animation-delay: 0.85s; }
.skill-item:nth-child(18) { animation-delay: 0.9s; }
.skill-item:nth-child(19) { animation-delay: 0.95s; }
.skill-item:nth-child(20) { animation-delay: 1.0s; }
.skill-item:nth-child(21) { animation-delay: 1.05s; }

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

/* Skill Modal */
.skill-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

.skill-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.skill-modal-content {
  background: rgba(10, 14, 39, 0.98);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(93, 173, 226, 0.3);
  border-radius: 20px;
  padding: 40px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(93, 173, 226, 0.3);
  animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

.skill-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  color: #ffffff;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: 1;
  z-index: 10;
}

.skill-modal-close:hover {
  color: #5dade2;
  transform: rotate(90deg);
}

.skill-modal-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 2px solid rgba(93, 173, 226, 0.2);
}

.skill-modal-icon {
  font-size: 3.5rem;
  color: #5dade2;
  filter: drop-shadow(0 0 15px rgba(93, 173, 226, 0.5));
}

.skill-modal-title {
  font-size: 2rem;
  color: #ffffff;
  margin: 0;
  font-weight: 600;
}

.skill-modal-description {
  color: #e0e0e0;
  line-height: 1.8;
  font-size: 1.05rem;
  margin: 0;
}

.skill-item {
  cursor: pointer;
}

/* Error Modal */
.error-modal {
  display: none;
  position: fixed;
  z-index: 2100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

.error-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-modal-content {
  background: rgba(10, 14, 39, 0.98);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(255, 87, 87, 0.3);
  border-radius: 20px;
  padding: 40px;
  max-width: 450px;
  width: 90%;
  position: relative;
  box-shadow: 0 20px 60px rgba(255, 87, 87, 0.3);
  animation: slideUp 0.3s ease;
  text-align: center;
}

.error-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  color: #ffffff;
  font-size: 32px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  line-height: 1;
  z-index: 10;
}

.error-modal-close:hover {
  color: #ff5757;
  transform: rotate(90deg);
}

.error-modal-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  display: block;
  animation: pulse 2s ease-in-out infinite;
}

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

.error-modal-title {
  font-size: 1.8rem;
  color: #ff5757;
  margin: 0 0 15px 0;
  font-weight: 600;
}

.error-modal-message {
  color: #e0e0e0;
  line-height: 1.8;
  font-size: 1.05rem;
  margin: 0 0 25px 0;
}

.error-modal-btn {
  background: transparent;
  border: 2px solid #ff5757;
  color: #ff5757;
  cursor: pointer;
}

.error-modal-btn:hover {
  background: #ff5757;
  color: #0a0e27;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(255, 87, 87, 0.3);
}

/* Contact Form Modal */
.contact-modal {
  display: none;
  position: fixed;
  z-index: 2100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  overflow-y: auto;
}

.contact-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.contact-modal-content {
  background: rgba(10, 14, 39, 0.98);
  backdrop-filter: blur(20px);
  border: 2px solid rgba(93, 173, 226, 0.3);
  border-radius: 20px;
  padding: 40px;
  max-width: 600px;
  width: 100%;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  color: #ffffff;
  font-size: 32px;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
  transition: all 0.3s ease;
  z-index: 10;
}

.contact-modal-close:hover {
  color: #5dade2;
  transform: rotate(90deg);
}

.contact-modal-icon {
  font-size: 4rem;
  margin-bottom: 20px;
  display: block;
  text-align: center;
  animation: pulse 2s ease-in-out infinite;
}

.contact-modal-title {
  font-size: 1.8rem;
  color: #5dade2;
  margin: 0 0 10px 0;
  font-weight: 600;
  text-align: center;
}

.contact-modal-subtitle {
  text-align: center;
  color: #b0b0b0;
  font-size: 0.95rem;
  margin: 0 0 30px 0;
}

.contact-form-success {
  text-align: center;
  padding: 40px 20px;
  display: none;
}

.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: rgba(93, 173, 226, 0.1);
  border: 3px solid #5dade2;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #5dade2;
  animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.contact-form-success h4 {
  color: #5dade2;
  font-size: 1.5rem;
  margin: 0 0 10px 0;
  font-weight: 600;
}

.contact-form-success p {
  color: #e0e0e0;
  font-size: 1rem;
  margin: 0;
  line-height: 1.6;
}

.contact-form-error {
  background: rgba(255, 87, 87, 0.1);
  border: 2px solid rgba(255, 87, 87, 0.3);
  border-radius: 10px;
  padding: 12px 15px;
  color: #ff5757;
  font-size: 0.9rem;
  margin-top: 10px;
  display: none;
}

.contact-form-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.btn-loading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-loading::after {
  content: '';
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  color: #e0e0e0;
  font-size: 0.95rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  background: rgba(10, 14, 39, 0.6);
  border: 2px solid rgba(93, 173, 226, 0.2);
  border-radius: 10px;
  padding: 12px 15px;
  color: #ffffff;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #5dade2;
  box-shadow: 0 0 0 3px rgba(93, 173, 226, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #888;
}

.contact-form-btn {
  background: rgba(93, 173, 226, 0.1);
  border: 2px solid #5dade2;
  color: #5dade2;
  cursor: pointer;
  padding: 15px 30px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.contact-form-btn:hover {
  background: #5dade2;
  color: #0a0e27;
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(93, 173, 226, 0.3);
}

.contact-form-btn:active {
  transform: translateY(0);
}

/* GitHub Stats */
#github-stats {
  background-image: url('static/images/workspace-8.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
}

#github-stats::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 14, 39, 0.85);
  z-index: 1;
}

#github-stats .section-container {
  position: relative;
  z-index: 2;
}

.github-subtitle {
  text-align: center;
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: #b0b0b0;
  max-width: 700px;
  margin: 0 auto 50px;
  line-height: 1.6;
}

.github-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 25px;
  margin-bottom: 60px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.github-stat-card {
  background: rgba(10, 14, 39, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(93, 173, 226, 0.2);
  border-radius: 15px;
  padding: 30px 20px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.github-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(93, 173, 226, 0.1), transparent);
  transition: left 0.5s;
}

.github-stat-card:hover::before {
  left: 100%;
}

.github-stat-card:hover {
  transform: translateY(-8px);
  border-color: rgba(93, 173, 226, 0.5);
  box-shadow: 0 10px 30px rgba(93, 173, 226, 0.2);
}

.github-stat-icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background: rgba(93, 173, 226, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5dade2;
  transition: all 0.3s ease;
  border: 2px solid rgba(93, 173, 226, 0.3);
}

.github-stat-card:hover .github-stat-icon {
  background: rgba(93, 173, 226, 0.2);
  transform: scale(1.1) rotate(5deg);
  border-color: rgba(93, 173, 226, 0.6);
}

.github-stat-icon svg {
  width: 28px;
  height: 28px;
}

.github-stat-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.github-stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #5dade2;
  margin: 0;
  line-height: 1;
  font-family: 'Courier New', monospace;
}

.github-stat-label {
  font-size: 0.95rem;
  color: #b0b0b0;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.github-languages {
  max-width: 800px;
  margin: 0 auto 50px;
  background: rgba(10, 14, 39, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(93, 173, 226, 0.2);
  border-radius: 15px;
  padding: 35px;
}

.github-languages-title {
  font-size: 1.5rem;
  color: #ffffff;
  margin-bottom: 25px;
  text-align: center;
  font-weight: 600;
}

.languages-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.language-item {
  display: grid;
  grid-template-columns: 120px 1fr 60px;
  align-items: center;
  gap: 15px;
}

.language-name {
  font-size: 1rem;
  color: #e0e0e0;
  font-weight: 500;
}

.language-bar {
  height: 10px;
  background: rgba(93, 173, 226, 0.1);
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}

.language-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 1s ease-in-out;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.language-percent {
  font-size: 0.9rem;
  color: #5dade2;
  text-align: right;
  font-weight: 600;
}

.github-profile-link {
  text-align: center;
  margin-top: 40px;
}

.btn-github {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 35px;
  background: rgba(93, 173, 226, 0.1);
  border: 2px solid #5dade2;
  color: #5dade2;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-github:hover {
  background: #5dade2;
  color: #0a0e27;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(93, 173, 226, 0.4);
}

.btn-github svg {
  width: 20px;
  height: 20px;
}

/* Projects */
#projects {
  background-image: url('static/images/workspace-7.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
}

#projects::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 14, 39, 0.7);
  z-index: 0;
}

#projects .section-container {
  position: relative;
  z-index: 1;
}

/* Projects Tree/Timeline */
.projects-tree {
  position: relative;
  max-width: 900px;
  margin: 50px auto 0;
  padding: 0 20px;
}

.project-node {
  position: relative;
  margin-bottom: 40px;
  padding-left: 60px;
  cursor: pointer;
}

.project-card {
  cursor: pointer;
}

.project-node-line {
  position: absolute;
  left: 19px;
  top: 30px;
  width: 2px;
  height: calc(100% + 20px);
  background: linear-gradient(to bottom, #5dade2, rgba(93, 173, 226, 0.3));
  z-index: 1;
}

.project-node-line-last {
  height: 30px;
  background: linear-gradient(to bottom, #5dade2, transparent);
}

.project-node-dot {
  position: absolute;
  left: 10px;
  top: 20px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #5dade2;
  border: 3px solid rgba(10, 14, 39, 0.95);
  box-shadow: 0 0 15px rgba(93, 173, 226, 0.6);
  z-index: 2;
  transition: all 0.3s ease;
}

.project-node:hover .project-node-dot {
  transform: scale(1.3);
  box-shadow: 0 0 25px rgba(93, 173, 226, 1);
}

.project-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 3px solid #5dade2;
  border-radius: 10px;
  padding: 25px 30px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(to bottom, #5dade2, #3498db);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.4s ease;
}

.project-node:hover .project-card::before,
.project-node.active .project-card::before {
  transform: scaleY(1);
}

.project-node:hover .project-card,
.project-node.active .project-card {
  background: rgba(255, 255, 255, 0.08);
  border-color: #5dade2;
  transform: translateX(10px);
  box-shadow: 0 10px 30px rgba(93, 173, 226, 0.3);
}

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

.project-card-header h3 {
  font-size: 1.5rem;
  margin: 0;
  color: #5dade2;
  transition: color 0.3s ease;
}

.project-node:hover .project-card-header h3,
.project-node.active .project-card-header h3 {
  color: #7dd3fc;
  text-shadow: 0 0 10px rgba(93, 173, 226, 0.5);
}

.project-year {
  font-size: 0.9rem;
  color: #5dade2;
  font-weight: 600;
  padding: 5px 12px;
  background: rgba(93, 173, 226, 0.1);
  border-radius: 20px;
  border: 1px solid rgba(93, 173, 226, 0.3);
}

.project-card-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
              opacity 0.4s ease 0.1s,
              margin-top 0.4s ease;
  opacity: 0;
  margin-top: 0;
}

.project-node.active .project-card-content {
  max-height: 2000px;
  opacity: 1;
  margin-top: 15px;
}

.project-card-content p {
  color: #e0e0e0;
  line-height: 1.8;
  margin-bottom: 15px;
}

.project-card-content p:last-of-type {
  margin-bottom: 20px;
}

.project-card-content strong {
  color: #5dade2;
  font-weight: 600;
}

.project-card-content p {
  color: #e0e0e0;
  line-height: 1.6;
  margin-bottom: 20px;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  background: transparent;
  border: 2px solid #5dade2;
  color: #5dade2;
  text-decoration: none;
  border-radius: 5px;
  font-weight: 500;
  transition: all 0.3s ease;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn:hover {
  background: #5dade2;
  color: #0a0e27;
}

.btn-small {
  font-size: 0.9rem;
  padding: 10px 22px;
  min-height: 44px;
}

/* Contact */
#contact {
  background-image: url('static/images/workspace-5.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  position: relative;
}

#contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 14, 39, 0.7);
  z-index: 0;
}

#contact .section-container {
  position: relative;
  z-index: 1;
}

.contact-subtitle {
  text-align: center;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #b0b0b0;
  max-width: 800px;
  margin: 0 auto 50px;
  line-height: 1.6;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.contact-card {
  background: rgba(10, 14, 39, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(93, 173, 226, 0.2);
  border-radius: 15px;
  padding: 35px 25px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(93, 173, 226, 0.1), transparent);
  transition: left 0.5s;
}

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

.contact-card:hover {
  transform: translateY(-10px);
  border-color: rgba(93, 173, 226, 0.5);
  box-shadow: 0 10px 30px rgba(93, 173, 226, 0.2);
}

.contact-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: rgba(93, 173, 226, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #5dade2;
  transition: all 0.3s ease;
  border: 2px solid rgba(93, 173, 226, 0.3);
}

.contact-card:hover .contact-icon {
  background: rgba(93, 173, 226, 0.2);
  transform: scale(1.1) rotate(5deg);
  border-color: rgba(93, 173, 226, 0.6);
}

.contact-icon.whatsapp-icon {
  color: #25d366;
  background: rgba(37, 211, 102, 0.1);
  border-color: rgba(37, 211, 102, 0.3);
}

.contact-card:hover .contact-icon.whatsapp-icon {
  background: rgba(37, 211, 102, 0.2);
  border-color: rgba(37, 211, 102, 0.6);
}

.contact-icon svg {
  width: 32px;
  height: 32px;
}

.contact-card-title {
  font-size: 1.4rem;
  color: #ffffff;
  margin-bottom: 10px;
  font-weight: 600;
}

.contact-card-text {
  font-size: 0.95rem;
  color: #b0b0b0;
  margin-bottom: 15px;
  line-height: 1.5;
}

.contact-card-link {
  display: inline-block;
  color: #5dade2;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.contact-card-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: #5dade2;
  transition: width 0.3s ease;
}

.contact-card-link:hover {
  color: #ffffff;
}

.contact-card-link:hover::after {
  width: 100%;
}

.social-section {
  margin-top: 60px;
  text-align: center;
}

.social-section-title {
  font-size: 1.5rem;
  color: #ffffff;
  margin-bottom: 30px;
  font-weight: 600;
}

.social-links {
  display: flex;
  gap: 25px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  background: rgba(10, 14, 39, 0.6);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(93, 173, 226, 0.3);
  color: #5dade2;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-weight: 500;
  font-size: 1rem;
}

.social-link:hover {
  transform: translateY(-5px);
  border-color: #5dade2;
  background: rgba(93, 173, 226, 0.1);
  box-shadow: 0 8px 25px rgba(93, 173, 226, 0.3);
}

.social-link.github:hover {
  color: #ffffff;
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.social-link.linkedin:hover {
  color: #0077b5;
  border-color: #0077b5;
  background: rgba(0, 119, 181, 0.1);
  box-shadow: 0 8px 25px rgba(0, 119, 181, 0.3);
}

.social-link svg {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.social-link:hover svg {
  transform: scale(1.2);
}

.availability-notice {
  margin-top: 50px;
  padding: 30px;
  background: rgba(10, 14, 39, 0.5);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(93, 173, 226, 0.2);
  border-radius: 15px;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.availability-notice p {
  color: #e0e0e0;
  font-size: 1rem;
  margin: 10px 0;
  line-height: 1.6;
}

.availability-notice strong {
  color: #5dade2;
}

/* Footer */
footer {
  background: #0a0e27;
  padding: 30px;
  text-align: center;
  color: #5dade2;
  border-top: 1px solid rgba(93, 173, 226, 0.2);
  margin-top: auto;
  width: 100%;
}

/* WhatsApp Floating Button */
.whatsapp-button {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  color: #ffffff;
  animation: pulseWhatsApp 2s ease-in-out infinite;
}

.whatsapp-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
  background: #20ba5a;
}

.whatsapp-button:active {
  transform: scale(0.95);
}

.whatsapp-button svg {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

@keyframes pulseWhatsApp {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  }
  50% {
    box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7), 0 0 0 10px rgba(37, 211, 102, 0.1);
  }
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    padding: 0 30px;
  }

  .hero-left {
    padding-left: 0;
    text-align: center;
    align-items: center;
  }

  .hero-right {
    display: none;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .hero-title .subtitle {
    font-size: 2.5rem;
  }

  .about-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* Adjust interactive zones for tablet */
  .person-zone {
    bottom: 37%;
    left: 37%;
    width: 28vw;
    height: 28vh;
    min-width: 160px;
    min-height: 130px;
  }

  .workspace4-zone {
    bottom: 4%;
    right: 35%;
    width: 30vw;
    height: 28vh;
    min-width: 130px;
    min-height: 190px;
  }

  .lamp-zone-right {
    bottom: 50%;
    right: 20%;
    width: 5vw;
    height: 6vw;
    min-width: 85px;
    min-height: 85px;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 12px 20px;
  }

  .nav-container {
    gap: 15px;
    flex-wrap: nowrap;
    justify-content: space-between;
    position: relative;
  }

  .nav-logo-name {
    font-size: 0.85rem;
  }

  .nav-logo-portfolio {
    font-size: 0.6rem;
  }

  .nav-logo-circle {
    width: 42px;
    height: 42px;
  }

  .nav-logo-letter {
    font-size: 18px;
  }

  .nav-logo-bracket {
    font-size: 12px;
  }

  /* Show hamburger menu on mobile */
  .mobile-menu-toggle {
    display: flex;
    order: 3;
  }

  /* Hide nav list and resume link by default on mobile */
  .nav-list {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(10, 14, 39, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    gap: 0;
    padding: 20px 0;
    margin: 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-bottom: 2px solid rgba(93, 173, 226, 0.3);
    z-index: 1000;
    max-height: 0;
    overflow: hidden;
  }

  .nav-list.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    max-height: 500px;
  }

  .nav-list li {
    width: 100%;
    border-bottom: 1px solid rgba(93, 173, 226, 0.1);
  }

  .nav-list li:last-child {
    border-bottom: none;
  }

  .nav-link {
    display: block;
    width: 100%;
    padding: 18px 30px;
    text-align: left;
    font-size: 16px;
    min-height: 56px;
    border-radius: 0;
  }

  .nav-link::after {
    display: none;
  }

  .nav-link:hover,
  .nav-link.active {
    background: rgba(93, 173, 226, 0.1);
    color: #5dade2;
  }

  /* Hide resume link on mobile (can be added to menu if needed) */
  .resume-link {
    display: none;
  }

  /* Music control on mobile - hide in navbar, show in expanded menu */
  .nav-container .nav-music-control {
    display: none;
  }

  /* Show music control as fixed element when mobile menu is active */
  .nav-list.active ~ .nav-music-control {
    display: flex;
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(10, 14, 39, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 15px 20px;
    margin: 0;
    border-top: 1px solid rgba(93, 173, 226, 0.1);
    z-index: 999;
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .music-volume-control {
    min-width: 100%;
    width: 100%;
  }

  .volume-value {
    font-size: 0.7rem;
    min-width: 30px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-title .subtitle {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  /* Keep interactive zones visible but adjust for tablet */
  .person-zone {
    bottom: 38%;
    left: 38%;
    width: 26vw;
    height: 26vh;
    min-width: 180px;
    min-height: 140px;
  }

  .workspace4-zone {
    bottom: 4%;
    right: 38%;
    width: 22vw;
    height: 26vh;
    min-width: 140px;
    min-height: 180px;
  }

  .lamp-zone-right {
    bottom: 51%;
    right: 22%;
    width: 4vw;
    height: 5vw;
    min-width: 80px;
    min-height: 80px;
  }

  .workspace-overlay {
    background: rgba(10, 14, 39, 0.6);
  }

  .section {
    padding: 100px 20px 60px;
  }

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

  .projects-tree {
    padding: 0 10px;
  }

  .project-node {
    padding-left: 40px;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .skill-item {
    padding: 25px 15px;
  }

  .skill-item i {
    font-size: 3rem;
  }

  .skill-item span {
    font-size: 0.9rem;
  }

  .about-card {
    padding: 25px;
  }

  .card-icon {
    font-size: 2.5rem;
  }

  .about-card h3 {
    font-size: 1.3rem;
  }

  .about-card p {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  /* Base mobile improvements */
  body {
    font-size: 16px;
    line-height: 1.6;
  }

  /* Navigation - Touch-friendly */
  nav {
    padding: 10px 15px;
  }

  .nav-list {
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .nav-link,
  .resume-link {
    font-size: 14px;
    padding: 12px 20px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .nav-logo-text {
    font-size: 0.75rem;
  }

  /* Hero Section - Better spacing */
  .hero {
    padding: 80px 15px 40px;
  }

  .hero-container {
    padding: 0 15px;
  }

  .hero-title {
    font-size: clamp(1.8rem, 8vw, 2.2rem);
    line-height: 1.2;
    margin-bottom: 20px;
  }

  .hero-title .subtitle {
    font-size: clamp(1.3rem, 6vw, 1.6rem);
    display: block;
    margin-top: 10px;
  }

  .hero-subtitle {
    font-size: clamp(0.95rem, 4vw, 1.1rem);
    line-height: 1.7;
    margin: 20px 0;
    padding: 0 10px;
  }

  .html-tags {
    font-size: 11px;
    gap: 5px;
    margin: 10px 0;
  }

  .btn-contact {
    padding: 14px 28px;
    font-size: 0.95rem;
    min-height: 48px;
    margin-top: 25px;
  }

  /* Sections - Better spacing */
  .section {
    padding: 60px 15px 40px;
  }

  .section-title {
    font-size: clamp(1.8rem, 8vw, 2.2rem);
    margin-bottom: 30px;
  }

  /* About Cards - Touch-friendly */
  .about-content {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 10px;
  }

  .about-card {
    padding: 25px 20px;
    min-height: auto;
  }

  .card-icon {
    font-size: 2.2rem;
    margin-bottom: 15px;
  }

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

  .about-card p {
    font-size: 0.9rem;
    line-height: 1.7;
  }

  /* Skills Grid - Better mobile layout */
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 10px;
  }

  .skill-item {
    padding: 20px 12px;
    min-height: 100px;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(93, 173, 226, 0.2);
  }

  .skill-item i {
    font-size: 2.5rem;
    margin-bottom: 10px;
  }

  .skill-item span {
    font-size: 0.85rem;
  }

  /* GitHub Stats - Mobile optimized */
  .github-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0 10px;
  }

  .github-stat-card {
    padding: 20px 15px;
    min-height: 140px;
  }

  .github-stat-icon {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
  }

  .github-stat-icon svg {
    width: 24px;
    height: 24px;
  }

  .github-stat-number {
    font-size: 1.8rem;
  }

  .github-stat-label {
    font-size: 0.8rem;
  }

  .github-languages {
    padding: 20px 15px;
    margin: 0 10px 30px;
  }

  .github-languages-title {
    font-size: 1.2rem;
    margin-bottom: 20px;
  }

  .language-item {
    grid-template-columns: 80px 1fr 45px;
    gap: 8px;
  }

  .language-name {
    font-size: 0.85rem;
  }

  .language-percent {
    font-size: 0.8rem;
  }

  .btn-github {
    padding: 14px 24px;
    font-size: 0.9rem;
    min-height: 48px;
  }

  /* Projects - Mobile optimized */
  .projects-tree {
    padding: 0 5px;
  }

  .project-node {
    padding-left: 30px;
  }

  .project-card {
    padding: 20px 15px;
  }

  .project-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .project-card-header h3 {
    font-size: 1.3rem;
  }

  .project-year {
    font-size: 0.85rem;
  }

  .project-card-content {
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .project-card-content p {
    margin-bottom: 15px;
  }

  .btn,
  .btn-small {
    padding: 12px 24px;
    font-size: 0.9rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Contact Section - Touch-friendly */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 10px;
  }

  .contact-card {
    padding: 25px 20px;
    min-height: 180px;
  }

  .contact-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
  }

  .contact-icon svg {
    width: 28px;
    height: 28px;
  }

  .contact-card-title {
    font-size: 1.2rem;
    margin-bottom: 8px;
  }

  .contact-card-text {
    font-size: 0.85rem;
    margin-bottom: 12px;
  }

  .contact-card-link {
    font-size: 0.95rem;
    padding: 10px 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: rgba(93, 173, 226, 0.2);
  }

  .contact-subtitle {
    font-size: 0.9rem;
    margin-bottom: 30px;
    padding: 0 15px;
    line-height: 1.6;
  }

  .social-section {
    margin-top: 40px;
    padding: 0 15px;
  }

  .social-section-title {
    font-size: 1.3rem;
    margin-bottom: 25px;
  }

  .social-links {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }

  .social-link {
    width: 100%;
    max-width: 100%;
    padding: 16px 24px;
    min-height: 52px;
    justify-content: center;
    font-size: 0.95rem;
    -webkit-tap-highlight-color: rgba(93, 173, 226, 0.2);
  }

  .availability-notice {
    padding: 20px 15px;
    margin: 30px 10px 0;
  }

  .availability-notice p {
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 8px 0;
  }

  /* WhatsApp Button - Touch-friendly */
  .whatsapp-button {
    width: 60px;
    height: 60px;
    min-width: 60px;
    min-height: 60px;
    bottom: 20px;
    right: 20px;
    -webkit-tap-highlight-color: rgba(37, 211, 102, 0.3);
  }

  .whatsapp-button svg {
    width: 30px;
    height: 30px;
  }

  /* Contact Form Modal - Mobile optimized */
  .contact-modal-content {
    padding: 30px 20px;
    margin: 20px;
    max-width: calc(100% - 40px);
  }

  .contact-modal-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
  }

  .contact-form {
    gap: 18px;
  }

  .form-group label {
    font-size: 0.9rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 14px 15px;
    font-size: 16px; /* Prevents zoom on iOS */
    min-height: 48px;
  }

  .contact-form-btn {
    padding: 16px 28px;
    font-size: 1rem;
    min-height: 52px;
    margin-top: 10px;
  }

  /* Skill Modal - Mobile optimized */
  .skill-modal-content {
    padding: 30px 20px;
    margin: 20px;
    max-width: calc(100% - 40px);
  }

  .skill-modal-title {
    font-size: 1.5rem;
  }

  .skill-modal-description {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  /* Error Modal - Mobile optimized */
  .error-modal-content {
    padding: 30px 20px;
    margin: 20px;
    max-width: calc(100% - 40px);
  }

  .error-modal-title {
    font-size: 1.4rem;
  }

  .error-modal-message {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  .error-modal-btn {
    padding: 14px 28px;
    min-height: 48px;
  }

  /* Footer - Mobile spacing */
  footer {
    padding: 25px 15px;
    font-size: 0.85rem;
  }

  /* Scroll indicator - Hide on mobile */
  .scroll-indicator {
    display: none;
  }

  /* Interactive Zones - Mobile responsive positioning */
  .person-zone {
    bottom: 35%;
    left: 30%;
    width: 40vw;
    height: 30vh;
    min-width: 140px;
    min-height: 120px;
    max-width: 280px;
    max-height: 220px;
  }

  .person-hint {
    font-size: clamp(0.75rem, 3vw, 0.9rem);
    padding: 8px 12px;
  }

  .workspace4-zone {
    bottom: 3%;
    right: 25%;
    width: 50vw;
    height: 28vh;
    min-width: 120px;
    min-height: 160px;
    max-width: 280px;
    max-height: 300px;
  }

  .workspace4-hint {
    font-size: clamp(0.75rem, 3vw, 0.9rem);
    padding: 8px 12px;
  }

  .lamp-zone-right {
    bottom: 48%;
    right: 15%;
    width: 12vw;
    height: 12vw;
    min-width: 60px;
    min-height: 60px;
    max-width: 70px;
    max-height: 70px;
  }

  .lamp-hint {
    font-size: clamp(0.7rem, 2.5vw, 0.85rem);
    padding: 6px 10px;
  }

  .lamp-hint .hint-arrow {
    font-size: clamp(0.7rem, 2.5vw, 0.85rem);
  }

  /* Ensure zones are always clickable on mobile */
  .clickable-zone {
    min-height: 44px;
    min-width: 44px;
    -webkit-tap-highlight-color: rgba(93, 173, 226, 0.3);
    touch-action: manipulation;
  }
}
