/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  cursor: none;
}

/* Enhanced Smooth Scrolling */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  transition: pointer-events 0.3s ease;
}

body.smooth-scrolling {
  overflow: hidden;
}

/* Navigation Loading State */
.nav-scroll-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #007bff, #00d4ff);
  z-index: 1001;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

.nav-scroll-indicator.active {
  opacity: 1;
  width: 100%;
}

/* Page Loader */
.page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

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

.loader-content {
  text-align: center;
  color: white;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

.loader-text {
  font-size: 18px;
  font-weight: 500;
  opacity: 0.9;
}

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

/* Scroll Animations */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reveal-left.active {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reveal-right.active {
  opacity: 1;
  transform: translateX(0);
}

/* Custom Cursor */
.cursor-dot {
  width: 8px;
  height: 8px;
  background: #00ffff;
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transition: transform 0.1s ease;
  mix-blend-mode: difference;
}

.cursor-outline {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(0, 255, 255, 0.5);
  border-radius: 50%;
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9998;
  transition: all 0.3s ease;
  transform: translate(-50%, -50%);
}

.cursor-outline.hover {
  width: 60px;
  height: 60px;
  border-color: #ff6b6b;
  background: rgba(255, 107, 107, 0.1);
}

/* Floating Animation */
.floating {
  animation: floating 3s ease-in-out infinite;
}

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

/* Enhanced Hover Effects */
.skill-item,
.work-item,
.experience-item {
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.skill-item:hover,
.work-item:hover,
.experience-item:hover {
  transform: translateY(-15px) scale(1.05);
  box-shadow: 0 25px 50px rgba(102, 126, 234, 0.4);
}

/* Pulse Animation for CTA Buttons */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(102, 126, 234, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
  }
}

.cta-button {
  animation: pulse 2s infinite;
}

/* Particles Animation */
.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #00ffff;
  border-radius: 50%;
  opacity: 0.7;
  animation: float-particles 8s linear infinite;
}

.particle:nth-child(1) {
  left: 10%;
  animation-delay: 0s;
}
.particle:nth-child(2) {
  left: 20%;
  animation-delay: 1s;
}
.particle:nth-child(3) {
  left: 30%;
  animation-delay: 2s;
}
.particle:nth-child(4) {
  left: 40%;
  animation-delay: 3s;
}
.particle:nth-child(5) {
  left: 50%;
  animation-delay: 4s;
}
.particle:nth-child(6) {
  left: 60%;
  animation-delay: 5s;
}
.particle:nth-child(7) {
  left: 70%;
  animation-delay: 6s;
}
.particle:nth-child(8) {
  left: 80%;
  animation-delay: 7s;
}
.particle:nth-child(9) {
  left: 90%;
  animation-delay: 8s;
}
.particle:nth-child(10) {
  left: 95%;
  animation-delay: 9s;
}

@keyframes float-particles {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-100px) scale(1);
    opacity: 0;
  }
}

*,
*::before,
*::after {
  max-width: 100%;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%; /* Prevent text inflation on iOS */
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: #333;
  background: #ffffff;
  overflow-x: hidden;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
  overflow: hidden;
}

/* Better tap targets for mobile */
@media (hover: none) and (pointer: coarse) {
  a,
  button,
  .cta-button,
  .nav-links a,
  .project-link {
    min-height: 44px;
    min-width: 44px;
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 15px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: #007bff;
}

.logo {
  background: linear-gradient(135deg, #007bff, #0056b3);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 40px;
  position: relative;
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 10px;
  border-radius: 4px;
  transition: all 0.3s ease;
  z-index: 1001;
  position: relative;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-menu-toggle:hover {
  background: rgba(102, 126, 234, 0.2);
  transform: scale(1.05);
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 3px 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
  display: block;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(45deg) translate(-6px, -6px);
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 400;
  font-size: 14px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  padding: 8px 16px;
  border-radius: 8px;
  overflow: hidden;
}

.nav-links a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 123, 255, 0.2), transparent);
  transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.nav-links a:hover {
  color: #007bff;
  background: rgba(0, 123, 255, 0.1);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

.nav-links a:hover::before {
  left: 100%;
}

.nav-links a.active {
  color: #007bff;
  background: rgba(0, 123, 255, 0.15);
  font-weight: 500;
  transform: scale(1.02);
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #007bff, transparent);
  transform: translateX(-50%);
  animation: activeGlow 2s ease-in-out infinite alternate;
}

@keyframes activeGlow {
  0% {
    opacity: 0.6;
    width: 80%;
  }
  100% {
    opacity: 1;
    width: 90%;
  }
}

.nav-links a:active {
  transform: scale(0.95);
  transition: transform 0.1s ease;
}

.nav-links a.loading {
  position: relative;
  color: #007bff;
  pointer-events: none;
  animation: navPulse 1.5s ease-in-out infinite;
}

.nav-links a.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 8px;
  width: 12px;
  height: 12px;
  border: 2px solid transparent;
  border-top: 2px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  transform: translateY(-50%);
}

@keyframes navPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(0.98);
  }
}

.nav-active-indicator {
  position: absolute;
  bottom: -15px;
  height: 3px;
  background: linear-gradient(90deg, #007bff, #0056b3);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
}

/* Enhanced navbar scroll effects */
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(0) !important;
}

.navbar.scrolled .nav-links a {
  font-weight: 500;
}

/* Navigation link loading state */
.nav-links a.loading {
  opacity: 0.7;
  pointer-events: none;
  position: relative;
}

.nav-links a.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -20px;
  width: 12px;
  height: 12px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  transform: translateY(-50%);
}

/* Section entrance animation */
.section-entrance {
  animation: sectionSlideIn 0.6s ease-out;
}

/* Ensure all main sections maintain visibility during transitions */
section {
  opacity: 1 !important;
  visibility: visible !important;
}

/* Specific section visibility fixes */
#work,
#experience,
#about,
#contact,
#expertise {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

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

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

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 100px 0;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  opacity: 0.1;
  z-index: 1;
  transform: translateZ(0);
  will-change: transform;
}

.code-lines {
  position: absolute;
  width: 100%;
  height: 100%;
  background-image: repeating-linear-gradient(90deg, transparent, transparent 98px, rgba(0, 255, 255, 0.1) 100px), repeating-linear-gradient(0deg, transparent, transparent 48px, rgba(0, 255, 255, 0.05) 50px);
  animation: codeScroll 20s linear infinite;
  overflow: hidden;
}

@keyframes codeScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100px);
  }
}

.floating-icons {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.tech-icon {
  position: absolute;
  color: rgba(0, 255, 255, 0.2);
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: bold;
  animation: float 6s ease-in-out infinite;
  animation-delay: var(--delay);
}

.tech-icon:nth-child(1) {
  top: 20%;
  left: 10%;
}
.tech-icon:nth-child(2) {
  top: 30%;
  right: 15%;
}
.tech-icon:nth-child(3) {
  top: 60%;
  left: 20%;
}
.tech-icon:nth-child(4) {
  top: 70%;
  right: 25%;
}
.tech-icon:nth-child(5) {
  top: 15%;
  left: 70%;
}
.tech-icon:nth-child(6) {
  top: 80%;
  right: 10%;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
  }
}

.hero-content {
  max-width: 1200px;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  box-sizing: border-box;
}

.terminal-window {
  background: rgba(20, 20, 30, 0.95);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}

.terminal-header {
  background: rgba(40, 40, 50, 0.8);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.terminal-buttons {
  display: flex;
  gap: 8px;
}

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

.btn.red {
  background: #ff5f57;
}
.btn.yellow {
  background: #ffbd2e;
}
.btn.green {
  background: #28ca42;
}

.terminal-title {
  color: #8a8a8a;
  font-size: 12px;
  font-family: "Courier New", monospace;
}

.terminal-body {
  padding: 20px;
  font-family: "Courier New", monospace;
  color: #00ff00;
  font-size: 14px;
  line-height: 1.6;
}

.terminal-line {
  margin-bottom: 10px;
}

.prompt {
  color: #00ff00;
  margin-right: 10px;
}

.command {
  color: #87ceeb;
}

.terminal-output {
  color: #ffffff;
  margin-bottom: 15px;
}

.typing-animation {
  overflow: hidden;
  border-right: 2px solid #00ff00;
  white-space: nowrap;
  margin: 0;
  animation: typing 2s steps(9, end), blink-caret 1s step-end infinite;
  max-width: 100%;
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink-caret {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: #00ff00;
  }
}

.skills-output {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  max-width: 100%;
  overflow: hidden;
}

.skills-output span {
  background: rgba(0, 255, 255, 0.1);
  padding: 4px 8px;
  border-radius: 4px;
  color: #00ffff;
  font-size: 12px;
  border: 1px solid rgba(0, 255, 255, 0.3);
}

.hero-main-content {
  color: white;
}

.hero-title {
  font-family: "Courier New", monospace;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  margin-bottom: 30px;
  line-height: 1.6;
}

.title-line {
  display: block;
  opacity: 0;
  animation: slideInLeft 0.8s ease-out forwards;
}

.title-line:nth-child(1) {
  animation-delay: 0.2s;
  color: #ff6b6b;
}
.title-line:nth-child(2) {
  animation-delay: 0.4s;
  color: #4ecdc4;
}
.title-line:nth-child(3) {
  animation-delay: 0.6s;
  color: #45b7d1;
}
.title-line:nth-child(4) {
  animation-delay: 0.8s;
  color: #96ceb4;
}
.title-line:nth-child(5) {
  animation-delay: 1s;
  color: #ff6b6b;
}

.typewriter {
  display: inline-block;
  overflow: hidden;
  border-right: 3px solid #feca57;
  animation: typewriter 3s steps(20, end), blink 1s step-end infinite;
}

@keyframes typewriter {
  from {
    max-width: 0;
  }
  to {
    max-width: 100%;
  }
}

@keyframes blink {
  from,
  to {
    border-color: transparent;
  }
  50% {
    border-color: #feca57;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.code-snippet {
  background: rgba(20, 20, 30, 0.8);
  border-radius: 8px;
  padding: 20px;
  margin: 30px 0;
  border-left: 4px solid #00ffff;
  font-family: "Courier New", monospace;
  font-size: 13px;
  line-height: 1.6;
  border: 1px solid rgba(0, 255, 255, 0.2);
}

.code-snippet .comment {
  color: #6a9955;
}
.code-snippet .keyword {
  color: #569cd6;
}
.code-snippet .function {
  color: #dcdcaa;
}
.code-snippet .string {
  color: #ce9178;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 0;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.stat-item {
  text-align: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  box-sizing: border-box;
  overflow: hidden;
  max-width: 100%;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: #00ffff;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.stat-label {
  font-size: 0.9rem;
  color: #cccccc;
  margin-top: 5px;
}

.hero-cta {
  display: flex;
  gap: 20px;
  margin-top: 40px;
  max-width: 100%;
  box-sizing: border-box;
  position: relative;
  z-index: 100;
}

.cta-button {
  padding: 15px 30px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  box-sizing: border-box;
  max-width: 100%;
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 15px 35px rgba(0, 255, 255, 0.4);
}

.cta-button.primary {
  background: linear-gradient(135deg, #00ffff, #0080ff);
  color: #000;
}

.cta-button.secondary {
  background: transparent;
  color: #fff;
  border: 2px solid #00ffff;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 255, 255, 0.3);
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
  z-index: 2;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid rgba(255, 255, 255, 0.6);
  border-bottom: 2px solid rgba(255, 255, 255, 0.6);
  transform: rotate(45deg);
  margin: 0 auto 10px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: rotate(45deg) translateY(0);
  }
  40% {
    transform: rotate(45deg) translateY(-10px);
  }
  60% {
    transform: rotate(45deg) translateY(-5px);
  }
}

/* Section Styles */
section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #333;
  font-family: "Courier New", monospace;
}

.code-bracket {
  color: #00ffff;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.section-subtitle {
  margin-top: 10px;
}

.comment {
  color: #6a9955;
  font-family: "Courier New", monospace;
  font-size: 1.1rem;
  font-style: italic;
}

/* Expertise Section */
.expertise {
  background: linear-gradient(135deg, #0a0a0a, #1a1a2e);
  color: white;
  position: relative;
  overflow: hidden;
}

.expertise::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(0, 255, 255, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(255, 107, 107, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(150, 206, 180, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.skills-container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.skills-categories {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.skill-category {
  padding: 15px 25px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(10px);
}

.skill-category:hover,
.skill-category.active {
  background: rgba(0, 255, 255, 0.1);
  border-color: #00ffff;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 255, 255, 0.2);
}

.category-icon {
  font-size: 1.2rem;
  color: #00ffff;
}

.skills-content {
  position: relative;
  min-height: 400px;
}

.skills-grid {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.skills-grid.active {
  display: grid;
  opacity: 1;
  transform: translateY(0);
}

.skill-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  perspective: 1000px;
}

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

.skill-item:hover::before {
  left: 100%;
}

.skill-item:hover {
  transform: translateY(-10px) rotateX(5deg);
  background: rgba(0, 255, 255, 0.1);
  border-color: #00ffff;
  box-shadow: 0 20px 40px rgba(0, 255, 255, 0.3);
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 20px;
}

.skill-icon {
  font-size: 2.5rem;
  color: #00ffff;
  min-width: 60px;
}

.skill-info {
  flex: 1;
}

.skill-info h4 {
  margin: 0 0 15px 0;
  font-size: 1.2rem;
  color: white;
}

.skill-bar {
  background: rgba(255, 255, 255, 0.1);
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, #00ffff, #0080ff);
  border-radius: 4px;
  width: 0;
  animation: fillProgress 2s ease-out forwards;
  animation-delay: 0.5s;
}

@keyframes fillProgress {
  to {
    width: var(--width);
  }
}

.skill-percentage {
  font-size: 0.9rem;
  color: #00ffff;
  font-weight: bold;
}

/* Work/Projects Section */
.work {
  background: #f8f9fb;
  padding: 120px 0;
  position: relative;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.project-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.project-card.featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 500px;
}

.project-header {
  padding: 25px 30px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-type {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.project-links {
  display: flex;
  gap: 10px;
}

.project-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  color: #666;
  text-decoration: none;
  transition: all 0.3s ease;
}

.project-link:hover {
  background: #00ffff;
  color: white;
  transform: scale(1.1);
}

.project-content {
  padding: 20px 30px 30px;
}

.project-content h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: #2c3e50;
}

.project-description {
  margin-bottom: 25px;
}

.project-description p {
  color: #666;
  line-height: 1.6;
  font-size: 1rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-tag {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 25px;
  font-size: 0.85rem;
  font-weight: 500;
  border: none;
}

.project-preview {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.browser-mockup {
  background: #2c3e50;
  border-radius: 10px;
  overflow: hidden;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.browser-top {
  background: #34495e;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.browser-buttons {
  display: flex;
  gap: 8px;
}

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

.browser-dot.red {
  background: #ff5f57;
}
.browser-dot.yellow {
  background: #ffbd2e;
}
.browser-dot.green {
  background: #28ca42;
}

.browser-url {
  background: #2c3e50;
  padding: 5px 12px;
  border-radius: 5px;
  color: #bdc3c7;
  font-size: 0.8rem;
  font-family: monospace;
  flex: 1;
}

.browser-content {
  background: #1e1e1e;
  padding: 20px;
  min-height: 200px;
}

.code-preview {
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  line-height: 1.6;
}

.code-line {
  margin-bottom: 5px;
  color: #d4d4d4;
}

.code-keyword {
  color: #569cd6;
}
.code-variable {
  color: #9cdcfe;
}
.code-tag {
  color: #4ec9b0;
}
.code-attr {
  color: #92c5f8;
}
.code-value {
  color: #ce9178;
}

.terminal-mockup {
  background: #1e1e1e;
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
  margin: 20px 0;
}

.terminal-header {
  background: #333;
  padding: 10px 15px;
  color: #ccc;
  font-family: monospace;
  font-size: 0.9rem;
  border-bottom: 1px solid #555;
}

.terminal-content {
  padding: 20px;
  font-family: monospace;
  background: #1e1e1e;
}

.terminal-line {
  color: #00ff00;
  margin-bottom: 5px;
  font-size: 0.9rem;
}

.mobile-mockup {
  width: 200px;
  height: 360px;
  background: #2c3e50;
  border-radius: 25px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 20px auto;
}

.mobile-screen {
  width: 100%;
  height: 100%;
  background: #ecf0f1;
  border-radius: 15px;
  padding: 20px;
}

.app-interface {
  text-align: center;
}

.app-header {
  font-weight: bold;
  margin-bottom: 20px;
  color: #2c3e50;
}

.app-stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stat {
  background: #3498db;
  color: white;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.9rem;
}

.view-all-projects {
  text-align: center;
  margin-top: 60px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border: 2px solid #667eea;
  color: #667eea;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: #667eea;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.expertise-item i {
  font-size: 3rem;
  color: #007bff;
  margin-bottom: 20px;
}

.expertise-item h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #333;
}

.expertise-item p {
  color: #666;
}

/* Work Section */
.work {
  background: white;
}

.project-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}

.project-content h3 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #333;
}

.project-content p {
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 30px;
  line-height: 1.6;
}

.project-tech {
  display: flex;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.project-tech span {
  padding: 8px 16px;
  background: #007bff;
  color: white;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

.btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: #333;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: #007bff;
  transform: translateY(-2px);
}

.placeholder-image {
  height: 400px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 1.2rem;
}

/* Experience Section */
.experience {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.experience::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  pointer-events: none;
}

.timeline-container {
  max-width: 1000px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #00ffff, #0080ff);
  border-radius: 2px;
  transform: translateX(-50%);
}

.experience-item {
  position: relative;
  margin-bottom: 80px;
  display: flex;
  align-items: center;
}

.experience-item:nth-child(even) {
  flex-direction: row-reverse;
}

.experience-item:nth-child(even) .experience-card {
  margin-right: 60px;
  margin-left: 0;
}

.experience-item:nth-child(odd) .experience-card {
  margin-left: 60px;
  margin-right: 0;
}

.experience-dot {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: #00ffff;
  border-radius: 50%;
  border: 4px solid #1e3c72;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
}

.dot-inner {
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.experience-card {
  width: calc(50% - 40px);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  position: relative;
}

.experience-card:hover {
  transform: translateY(-10px) scale(1.02);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.experience-date {
  background: rgba(0, 255, 255, 0.2);
  color: #00ffff;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(0, 255, 255, 0.3);
}

.experience-status {
  background: linear-gradient(135deg, #ff6b6b, #ee5a24);
  color: white;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.experience-status.freelance {
  background: linear-gradient(135deg, #feca57, #ff9ff3);
}

.experience-duration {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

.experience-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: white;
}

.company-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.company {
  font-size: 1.1rem;
  font-weight: 600;
  color: #00ffff;
}

.location {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.experience-description p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin-bottom: 20px;
}

.tech-stack {
  margin-bottom: 20px;
}

.stack-label {
  color: #00ffff;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 10px;
}

.tech-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tech-tag {
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}

.tech-tag.devops {
  background: rgba(255, 107, 107, 0.2);
  border-color: #ff6b6b;
  color: #ff6b6b;
}
.tech-tag.cicd {
  background: rgba(78, 205, 196, 0.2);
  border-color: #4ecdc4;
  color: #4ecdc4;
}
.tech-tag.k8s {
  background: rgba(69, 183, 209, 0.2);
  border-color: #45b7d1;
  color: #45b7d1;
}
.tech-tag.js {
  background: rgba(254, 202, 87, 0.2);
  border-color: #feca57;
  color: #feca57;
}
.tech-tag.ts {
  background: rgba(69, 183, 209, 0.2);
  border-color: #45b7d1;
  color: #45b7d1;
}
.tech-tag.next {
  background: rgba(255, 255, 255, 0.2);
  border-color: #fff;
  color: #fff;
}
.tech-tag.dart {
  background: rgba(78, 205, 196, 0.2);
  border-color: #4ecdc4;
  color: #4ecdc4;
}
.tech-tag.react {
  background: rgba(97, 218, 251, 0.2);
  border-color: #61dafb;
  color: #61dafb;
}
.tech-tag.flutter {
  background: rgba(69, 183, 209, 0.2);
  border-color: #45b7d1;
  color: #45b7d1;
}
.tech-tag.gulp {
  background: rgba(255, 107, 107, 0.2);
  border-color: #ff6b6b;
  color: #ff6b6b;
}
.tech-tag.scss {
  background: rgba(207, 100, 154, 0.2);
  border-color: #cf649a;
  color: #cf649a;
}
.tech-tag.node {
  background: rgba(150, 206, 180, 0.2);
  border-color: #96ceb4;
  color: #96ceb4;
}
.tech-tag.php {
  background: rgba(119, 136, 153, 0.2);
  border-color: #778899;
  color: #778899;
}
.tech-tag.html {
  background: rgba(255, 99, 71, 0.2);
  border-color: #ff6347;
  color: #ff6347;
}
.tech-tag.css {
  background: rgba(30, 144, 255, 0.2);
  border-color: #1e90ff;
  color: #1e90ff;
}
.tech-tag.figma {
  background: rgba(255, 99, 132, 0.2);
  border-color: #ff6384;
  color: #ff6384;
}

.achievements {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.achievement {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.9rem;
}

.achievement i {
  color: #00ffff;
  width: 16px;
}

/* Testimonials Section */
.testimonials {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="20" cy="80" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="80" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>');
  animation: floatPattern 20s linear infinite;
  pointer-events: none;
}

@keyframes floatPattern {
  0% {
    transform: translateX(0) translateY(0);
  }
  100% {
    transform: translateX(-100px) translateY(-100px);
  }
}

.testimonials-slider {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.testimonial-track {
  position: relative;
  height: 500px;
  overflow: hidden;
}

.testimonial-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 25px;
  padding: 50px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0;
  transform: translateX(100px);
  transition: all 0.5s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.testimonial-card.active {
  opacity: 1;
  transform: translateX(0);
  border-color: #667eea;
  box-shadow: 0 0 30px rgba(102, 126, 234, 0.3);
}

.testimonial-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.quote-icon {
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.3);
}

.testimonial-rating {
  display: flex;
  gap: 5px;
}

.testimonial-rating i {
  color: #ffd700;
  font-size: 1.2rem;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.testimonial-content {
  flex: 1;
  display: flex;
  align-items: center;
  margin-bottom: 40px;
}

.testimonial-content p {
  font-size: 1.3rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.95);
  font-style: italic;
  text-align: center;
  margin: 0;
  position: relative;
}

.testimonial-content p::before,
.testimonial-content p::after {
  content: '"';
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.2);
  position: absolute;
  top: -20px;
}

.testimonial-content p::before {
  left: -30px;
}

.testimonial-content p::after {
  right: -30px;
}

.testimonial-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
}

.client-avatar {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.avatar-placeholder {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
}

.client-info {
  text-align: left;
}

.client-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 5px;
}

.client-position {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.client-company {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.testimonial-meta {
  text-align: right;
}

.project-duration,
.project-type {
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 5px;
  justify-content: flex-end;
}

.testimonial-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-top: 50px;
}

.testimonial-nav {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

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

.testimonial-nav:hover::before {
  left: 100%;
}

.testimonial-nav:hover {
  background: rgba(102, 126, 234, 0.5);
  border-color: #667eea;
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.4);
}

.testimonial-nav:active {
  transform: scale(0.95);
}

.testimonial-dots {
  display: flex;
  gap: 15px;
  align-items: center;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 2px solid transparent;
  position: relative;
}

.dot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: #667eea;
  border-radius: 50%;
  transition: all 0.3s ease;
  transform: translate(-50%, -50%);
}

.dot:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: scale(1.2);
}

.dot.active {
  background: white;
  transform: scale(1.4);
  border-color: #667eea;
  box-shadow: 0 0 15px rgba(102, 126, 234, 0.5);
}

.dot.active::before {
  width: 6px;
  height: 6px;
}

.testimonial-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-top: 80px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.stat-item {
  text-align: center;
  padding: 30px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-10px);
  background: rgba(255, 255, 255, 0.15);
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  color: white;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  margin-bottom: 10px;
}

.stat-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.testimonial-author strong {
  color: #333;
  font-weight: 600;
  display: block;
  margin-bottom: 5px;
}

.testimonial-author span {
  color: #666;
  font-size: 14px;
}

/* Contact Section */
.contact {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(0, 255, 255, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(255, 107, 107, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(150, 206, 180, 0.05) 0%, transparent 50%);
  pointer-events: none;
}

.contact .section-header {
  position: relative;
  z-index: 2;
}

.contact .section-title {
  color: white;
}

.contact-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  position: relative;
  z-index: 2;
}

.contact-info {
  padding-right: 40px;
}

.contact-intro {
  margin-bottom: 50px;
}

.contact-intro h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #00ffff;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.contact-intro p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 25px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.contact-method:hover {
  transform: translateX(10px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 255, 255, 0.3);
}

.method-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #00ffff, #0080ff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  box-shadow: 0 10px 25px rgba(0, 255, 255, 0.3);
}

.method-info {
  flex: 1;
}

.method-info h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: white;
}

.method-info a {
  color: #00ffff;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.method-info a:hover {
  color: white;
  text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.response-time {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin-top: 5px;
}

.contact-form {
  position: relative;
}

.form-container {
  position: relative;
}

.contact-form-element {
  background: rgba(255, 255, 255, 0.05);
  padding: 40px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.form-group {
  position: relative;
  margin-bottom: 30px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #00ffff;
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #00ffff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.form-highlight {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, #00ffff, #0080ff);
  transition: width 0.3s ease;
}

.form-group input:focus + .form-highlight,
.form-group select:focus + .form-highlight,
.form-group textarea:focus + .form-highlight {
  width: 100%;
}

.submit-btn {
  background: linear-gradient(135deg, #00ffff, #0080ff);
  color: white;
  border: none;
  padding: 18px 40px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 20px auto 0;
  position: relative;
  overflow: hidden;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0, 255, 255, 0.4);
}

.submit-btn:active {
  transform: translateY(-1px);
}

.btn-icon {
  transition: transform 0.3s ease;
}

.submit-btn:hover .btn-icon {
  transform: translateX(5px);
}

.form-decoration {
  position: absolute;
  right: -50px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.3;
  z-index: -1;
}

.code-snippet {
  background: rgba(20, 20, 30, 0.8);
  border-radius: 10px;
  padding: 20px;
  font-family: "Courier New", monospace;
  font-size: 0.9rem;
  line-height: 1.6;
  border: 1px solid rgba(0, 255, 255, 0.2);
  min-width: 300px;
}

.code-line {
  margin-bottom: 5px;
  color: #d4d4d4;
}

.code-keyword {
  color: #569cd6;
}
.code-variable {
  color: #9cdcfe;
}
.code-property {
  color: #92c5f8;
}
.code-string {
  color: #ce9178;
}
.code-function {
  color: #dcdcaa;
}

.contact-footer {
  max-width: 1200px;
  margin: 80px auto 0;
  text-align: center;
  position: relative;
  z-index: 2;
}

.availability-status {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  max-width: 600px;
  margin: 0 auto;
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  animation: statusPulse 2s infinite;
}

.status-dot.available {
  background: #00ff00;
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.5);
}

@keyframes statusPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
}

.timezone-info {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
  .container {
    max-width: 100%;
    padding: 0 30px;
  }

  .hero-content {
    gap: 50px;
  }

  .terminal-window {
    max-width: 600px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .experience-item {
    margin: 0 20px;
  }
}

@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .terminal-window {
    max-width: 500px;
    margin: 0 auto;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }

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

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

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

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

  .contact-content {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  /* Skills section tablet */
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  /* Experience section tablet */
  .experience-container {
    max-width: 900px;
  }

  .experience-item {
    margin: 0 40px;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 30px;
    padding-top: 50px;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    left: 0;
  }

  .nav-links a {
    font-size: 18px;
    padding: 15px 30px;
    width: 80%;
    text-align: center;
    border-radius: 12px;
    background: rgba(0, 123, 255, 0.05);
    border: 1px solid rgba(0, 123, 255, 0.1);
  }

  .nav-links a:hover {
    background: rgba(0, 123, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.2);
  }

  .hero {
    padding: 80px 0 60px;
    min-height: 100vh;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
    padding: 0 15px;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
  }

  .terminal-window {
    max-width: 100%;
    order: 2;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    margin: 0;
    max-height: 400px;
  }

  .hero-main-content {
    order: 1;
    max-width: 100%;
    overflow: hidden;
    max-height: calc(100vh - 400px);
  }

  .terminal-body {
    padding: 10px;
    font-size: 10px;
    line-height: 1.3;
    overflow-x: hidden;
    word-break: break-word;
    white-space: pre-wrap;
  }

  .typing-animation {
    white-space: pre-wrap;
    word-break: break-word;
    max-width: 100%;
  }

  .skills-output {
    gap: 4px;
    max-width: 100%;
  }

  .skills-output span {
    font-size: 9px;
    padding: 2px 4px;
  }

  .hero-title {
    font-size: clamp(0.8rem, 4vw, 1.2rem);
    margin-bottom: 20px;
    text-align: left;
    line-height: 1.4;
    word-wrap: break-word;
  }

  .code-snippet {
    padding: 8px;
    font-size: 18px;
    margin: 12px 0;
    border-radius: 6px;
    overflow-x: hidden;
    max-width: 100%;
    word-wrap: break-word;
    white-space: pre-wrap;
    line-height: 1.3;
  }

  .code-snippet .comment {
    font-size: 18px;
    line-height: 1.4;
    word-break: break-word;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 20px 0;
    max-width: 100%;
  }

  .stat-item {
    padding: 8px 4px;
    min-height: auto;
    font-size: 0.75rem;
    text-align: center;
    overflow: hidden;
  }

  .stat-number {
    font-size: 1.3rem;
    line-height: 1;
  }

  .stat-label {
    font-size: 0.65rem;
    margin-top: 2px;
  }

  .hero-cta {
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
    margin-bottom: 20px;
    overflow: visible;
    z-index: 10;
    position: relative;
  }

  .cta-button {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    max-height: 60px;
    padding: 14px 20px;
    font-size: 15px;
    overflow: hidden;
  }

  .floating-icons .tech-icon {
    font-size: 1rem;
    opacity: 0.15;
    max-height: 30px;
  }

  /* Hide some tech icons on mobile for cleaner look */
  .tech-icon:nth-child(n + 5) {
    display: none;
  }

  /* Prevent any scroll in hero section */
  .hero * {
    overflow: hidden !important;
  }

  .project-card {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .experience-item {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .experience-item::after {
    display: none;
  }

  .experience-content::before {
    display: none;
  }

  .experience-date {
    text-align: left;
  }

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

  section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 2rem;
    margin-bottom: 40px;
  }

  /* Expertise section mobile */
  .expertise-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .skill-card {
    padding: 25px;
  }

  /* Projects mobile improvements */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .project-card {
    padding: 25px;
  }

  .project-links {
    gap: 15px;
  }

  .project-link {
    padding: 12px 24px;
    min-height: 44px; /* Touch-friendly */
  }

  /* Testimonials mobile */
  .testimonials-slider {
    max-width: 100%;
    margin: 0 20px;
  }

  .testimonial-card {
    padding: 30px 20px;
    min-height: 400px;
  }

  .testimonial-content {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  .testimonial-nav {
    width: 45px;
    height: 45px;
    font-size: 1rem;
  }

  .testimonial-controls {
    gap: 20px;
    margin-top: 30px;
  }

  .dot {
    width: 10px;
    height: 10px;
  }

  .testimonial-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 50px;
  }

  /* Contact form mobile */
  .contact-form input,
  .contact-form textarea {
    min-height: 48px; /* Touch-friendly */
  }

  .contact-form button {
    min-height: 48px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0px 10px 0px 10px;
    margin-top: 30px;
  }

  .navbar {
    padding: 10px 0;
  }

  .nav-container {
    padding: 0 10px;
  }

  .nav-links {
    top: 60px;
    height: calc(100vh - 60px);
    padding-top: 30px;
  }

  .nav-links a {
    font-size: 15px;
    padding: 16px 20px;
    width: 95%;
  }

  .hero {
    padding: 60px 0 80px;
    min-height: 100vh;
    overflow: visible;
    height: auto;
    max-height: none;
    position: relative;
  }

  .hero-content {
    padding: 0 5px;
    gap: 15px;
    max-width: 100%;
    margin: 0 auto;
    padding-top: 10px;
    padding-bottom: 60px;
    overflow: visible;
    min-height: calc(100vh - 60px);
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .hero-cta {
    margin-top: 15px;
    margin-bottom: 25px;
    z-index: 10;
    position: relative;
    flex-shrink: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    display: flex;
    min-height: 110px;
    overflow: visible;
    padding: 8px 0;
  }

  .terminal-window {
    max-width: 100%;
    max-height: 300px;
    overflow: hidden;
    height: 300px;
  }

  .terminal-header {
    padding: 6px 8px;
    font-size: 9px;
  }

  .terminal-body {
    padding: 6px;
    font-size: 8px;
    line-height: 1.2;
    overflow-x: hidden;
    white-space: pre-wrap;
    word-break: break-word;
  }

  .terminal-line {
    margin-bottom: 4px;
  }

  .skills-output {
    flex-wrap: wrap;
    gap: 3px;
  }

  .skills-output span {
    padding: 1px 4px;
    font-size: 7px;
    border-radius: 2px;
  }

  .hero-title {
    font-size: clamp(0.7rem, 5vw, 1rem);
    margin-bottom: 12px;
    line-height: 1.3;
    max-height: 130px;
    overflow: hidden;
  }

  .hero-main-content {
    order: 1;
    max-width: 100%;
    overflow: visible;
    min-height: 500px;
    height: auto;
    padding-bottom: 30px;
  }

  .title-line {
    margin-bottom: 1px;
    display: block;
    word-break: break-word;
  }

  .code-snippet {
    padding: 4px;
    font-size: 12px;
    margin: 6px 0;
    overflow-x: hidden;
    white-space: pre-wrap;
    max-width: 100%;
    word-break: break-word;
    line-height: 1.2;
    max-height: 140px;
  }

  .code-snippet .comment {
    font-size: 12px;
    line-height: 1.3;
    word-break: break-word;
    white-space: pre-wrap;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin: 8px 0;
    max-width: 100%;
    overflow: hidden;
    max-height: 80px;
    /* border: 2px solid red; */
  }

  .stat-item {
    padding: 2px 2px;
    min-height: auto;
    max-height: 80px;
    display: block;
    text-align: center;
    overflow: hidden;
    box-sizing: border-box;
  }

  .stat-number {
    font-size: 0.4rem;
    margin-top: 0;
    margin-bottom: 1px;
    line-height: 1;
    font-weight: 500;
  }

  .stat-label {
    font-size: 0.2rem;
    margin-top: 0;
    line-height: 1;
  }

  .stat-label {
    font-size: 0.65rem;
    line-height: 1.2;
  }

  .cta-button {
    padding: 14px 18px;
    font-size: 14px;
    min-height: 46px;
    position: relative;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    visibility: visible;
    border-radius: 6px;
  }

  .cta-button.secondary {
    background: rgba(0, 255, 255, 0.1);
    color: #00ffff;
    border: 2px solid #00ffff;
    backdrop-filter: blur(10px);
  }

  .cta-button.primary {
    background: linear-gradient(135deg, #00ffff, #0080ff);
    color: #000;
    font-weight: 600;
  }

  .floating-icons .tech-icon {
    font-size: 0.8rem;
    opacity: 0.1;
  }

  /* Show only 2 tech icons on very small screens */
  .tech-icon:nth-child(n + 3) {
    display: none;
  }

  .scroll-indicator {
    bottom: 15px;
    font-size: 12px;
    max-height: 40px;
    overflow: hidden;
  }

  .scroll-arrow {
    width: 16px;
    height: 16px;
  }

  /* Prevent any horizontal overflow */
  * {
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .hero *,
  .hero-content *,
  .terminal-window *,
  .terminal-body * {
    max-width: 100% !important;
    overflow-x: hidden !important;
    word-wrap: break-word !important;
  }

  .typing-animation {
    white-space: pre-wrap !important;
    word-break: break-word !important;
    overflow: hidden !important;
  }

  .nav-links {
    gap: 15px;
  }

  .featured-logos {
    gap: 15px;
  }

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

  .skill-card {
    padding: 20px;
    min-height: 120px; /* More consistent height */
  }

  /* Testimonials mobile 480px */
  .testimonials-slider {
    margin: 0 10px;
  }

  .testimonial-card {
    padding: 20px 15px;
    min-height: 350px;
  }

  .testimonial-content {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .testimonial-header {
    margin-bottom: 20px;
  }

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

  .testimonial-nav {
    width: 40px;
    height: 40px;
    font-size: 0.9rem;
  }

  .testimonial-controls {
    gap: 15px;
    margin-top: 25px;
  }

  .dot {
    width: 8px;
    height: 8px;
  }

  .testimonial-stats {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
    text-align: center;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  /* Skills section responsive */
  .skills-categories {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .skill-category {
    padding: 14px 22px; /* Touch-friendly */
    font-size: 0.9rem;
    min-height: 44px;
  }

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

  .skill-item {
    padding: 25px;
    flex-direction: column;
    text-align: center;
    gap: 15px;
    min-height: 140px;
  }

  .skill-icon {
    font-size: 2rem;
  }

  /* Projects section responsive */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .project-card.featured {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .project-preview {
    padding: 20px;
  }

  .browser-mockup {
    max-width: 100%;
  }

  .mobile-mockup {
    width: 150px;
    height: 270px;
    padding: 15px;
  }

  .project-link {
    padding: 14px 20px;
    min-height: 48px;
    font-size: 14px;
  }

  /* Experience section responsive */
  .timeline-line {
    left: 20px;
  }

  .experience-item {
    margin-bottom: 10px;
    flex-direction: column;
    align-items: flex-start;
    margin-left: 50px;
  }

  .experience-item:nth-child(even) {
    flex-direction: column;
  }

  .experience-item:nth-child(even) .experience-card,
  .experience-item:nth-child(odd) .experience-card {
    width: 100%;
    margin: 0;
  }

  .experience-dot {
    left: 20px;
    transform: translateX(-50%);
  }

  .experience-card {
    padding: 20px;
  }

  .experience-header {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .company-info {
    gap: 5px;
  }

  .tech-tags {
    gap: 6px;
  }

  .tech-tag {
    padding: 6px 10px; /* Touch-friendly */
    font-size: 0.75rem;
    min-height: 32px;
  }

  /* Testimonials responsive */
  .testimonial-card {
    padding: 25px;
    height: auto;
    min-height: 350px;
  }

  .testimonial-content p {
    font-size: 1rem;
    line-height: 1.6;
  }

  .testimonial-footer {
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 15px;
  }

  .testimonial-meta {
    grid-column: 1 / -1;
    text-align: left;
  }

  .testimonial-stats {
    margin-bottom: 70px;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .stat-item {
    padding: 15px 12px;
  }

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

  /* Contact section responsive */
  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-info {
    padding-right: 0;
  }

  .contact-intro h3 {
    font-size: 1.4rem;
  }

  .contact-methods {
    gap: 15px;
  }

  .contact-method {
    padding: 20px;
    min-height: 100px; /* Touch-friendly */
  }

  .method-icon {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .form-decoration {
    display: none;
  }

  .contact-form-element {
    padding: 25px;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 16px;
    font-size: 16px; /* Prevent zoom on iOS */
    min-height: 50px;
  }

  .contact-form button {
    padding: 16px 24px;
    font-size: 16px;
    min-height: 52px;
  }

  .availability-status {
    flex-direction: column;
    gap: 20px;
    padding: 20px;
  }

  /* Improved typography for mobile */
  .section-title {
    font-size: 1.8rem;
    line-height: 1.3;
  }

  .section-subtitle {
    font-size: 1rem;
    line-height: 1.5;
  }

  /* Better spacing for mobile */
  section {
    padding: 50px 0;
  }

  .hero {
    padding: 50px 0;
  }

  /* Prevent any scroll in hero section */
  .hero * {
    overflow: hidden !important;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

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

.hero-content > * {
  animation: fadeInUp 0.8s ease-out;
}

.hero-title {
  animation-delay: 0.2s;
}

.hero-subtitle {
  animation-delay: 0.4s;
}

.hero-description {
  animation-delay: 0.6s;
}

.hero-featured {
  animation-delay: 0.8s;
}

/* Enhanced scroll animations and hover effects */
section {
  transition: all 0.3s ease-out;
}

/* Smooth section transitions */
.expertise,
.work,
.experience,
.testimonials,
.contact {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced card hover effects */
.skill-card,
.project-card,
.experience-card,
.testimonial-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.experience-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-card:hover {
  transform: translateY(-8px) rotateY(2deg);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Navigation link animations */
.nav-links a {
  position: relative;
  overflow: hidden;
}

.nav-links a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 123, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.nav-links a:hover::before {
  left: 100%;
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Enhanced button animations */
.cta-button,
.contact-form button {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cta-button::after,
.contact-form button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.4s ease;
}

.cta-button:hover::after,
.contact-form button:hover::after {
  width: 300px;
  height: 300px;
}

/* Section reveal animations */
@keyframes slideInFromBottom {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes slideInFromRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Stagger animation for cards */
.skill-card:nth-child(1) {
  animation-delay: 0.1s;
}
.skill-card:nth-child(2) {
  animation-delay: 0.2s;
}
.skill-card:nth-child(3) {
  animation-delay: 0.3s;
}
.skill-card:nth-child(4) {
  animation-delay: 0.4s;
}

.project-card:nth-child(1) {
  animation-delay: 0.1s;
}
.project-card:nth-child(2) {
  animation-delay: 0.2s;
}
.project-card:nth-child(3) {
  animation-delay: 0.3s;
}

.experience-item:nth-child(1) {
  animation-delay: 0.1s;
}
.experience-item:nth-child(2) {
  animation-delay: 0.2s;
}
.experience-item:nth-child(3) {
  animation-delay: 0.3s;
}

/* Loading states */
.loading-state {
  position: relative;
}

.loading-state::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 1.5s infinite;
}

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

/* Mobile landscape specific styles for better hero section */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    padding: 40px 0 30px;
    min-height: 100vh;
  }

  .hero-content {
    gap: 20px;
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }

  .hero-title {
    font-size: clamp(0.8rem, 3vw, 1.1rem);
    margin-bottom: 15px;
  }

  .hero-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 20px 0;
  }

  .stat-item {
    padding: 8px 5px;
    min-height: 45px;
  }

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

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

  .hero-cta {
    flex-direction: row;
    gap: 10px;
    margin-top: 20px;
  }

  .cta-button {
    padding: 10px 15px;
    font-size: 13px;
    min-height: 40px;
  }

  .scroll-indicator {
    bottom: 10px;
    font-size: 11px;
  }

  .terminal-window {
    max-height: 300px;
    overflow: hidden;
  }

  .terminal-body {
    padding: 8px;
    font-size: 9px;
  }
}

/* Extra small devices (320px and down) */
@media (max-width: 320px) {
  .hero-content {
    padding: 0 8px;
    gap: 20px;
  }
  /* terminal-window */
  .terminal-window {
    min-height: 50px;
    border-radius: 8px;
  }

  .terminal-header {
    padding: 4px 8px;
  }

  .terminal-body {
    padding: 6px;
    font-size: 8px;
    line-height: 1.2;
  }

  .hero-title {
    font-size: clamp(0.7rem, 4.5vw, 1rem);
    margin-bottom: 12px;
  }

  .code-snippet {
    padding: 4px;
    font-size: 5px;
    margin: 8px 0;
    border-radius: 4px;
    line-height: 1.2;
    overflow-x: hidden;
    white-space: pre-wrap;
    word-break: break-word;
  }

  .code-snippet .comment {
    font-size: 5px;
    line-height: 1.3;
    word-break: break-word;
    display: block;
  }

  .hero-stats {
    gap: 6px;
    margin: 15px 0;
  }

  .stat-item {
    padding: 8px;
    min-height: 50px;
  }

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

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

  .cta-button {
    padding: 12px 16px;
    font-size: 14px;
    min-height: 44px;
  }

  .skills-output span {
    padding: 1px 4px;
    font-size: 7px;
  }

  /* Ensure no horizontal overflow */
  .hero,
  .hero-content,
  .terminal-window,
  .code-snippet,
  .hero-stats {
    max-width: 100vw;
    box-sizing: border-box;
  }
}

/* Extra small screens - phones in portrait */
@media (max-width: 320px) {
  .hero {
    padding: 60px 0 40px;
  }

  .hero-content {
    padding: 0 10px;
  }

  .hero-title {
    font-size: clamp(0.8rem, 6vw, 1rem);
    line-height: 1.3;
  }

  .terminal-window {
    margin: 0 -10px;
    border-radius: 8px;
  }

  .terminal-body {
    font-size: 8px;
    padding: 8px;
  }

  .hero-stats {
    margin: 20px 0;
  }

  .stat-item {
    padding: 12px 8px;
  }

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

  .cta-button {
    padding: 14px 16px;
    font-size: 14px;
  }
}
