/* Updated CSS with new navigation and responsive experience layout */
/* CSS Reset & Base Styles */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors */
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #8b5cf6;
  --accent: #06b6d4;
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;

  /* Light Theme */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --shadow: rgba(0, 0, 0, 0.1);

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --gradient-secondary: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);

  /* Glass Effect */
  --glass-bg: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);

  /* Spacing */
  --container-padding: 2rem;
  --section-padding: 6rem 0;

  /* Typography */
  --font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  --font-size-6xl: 3.75rem;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-base: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-base: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --border: #334155;
  --shadow: rgba(0, 0, 0, 0.3);
  --glass-bg: rgba(15, 23, 42, 0.1);
  --glass-border: rgba(255, 255, 255, 0.1);
}

/* Base Styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow-x: hidden;
  transition: background-color var(--transition-base), color var(--transition-base);
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity var(--transition-slow);
}

.loading-screen.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-content {
  text-align: center;
}

.loading-logo {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 2rem;
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: white;
  animation: pulse 2s ease-in-out infinite;
}

.loading-text {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.loading-bar {
  width: 200px;
  height: 4px;
  background: var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 0 auto;
}

.loading-progress {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  animation: loading 2s ease-in-out infinite;
}

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

@keyframes loading {
  0% {
    width: 0%;
  }
  50% {
    width: 70%;
  }
  100% {
    width: 100%;
  }
}

/* Main Navigation */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  transition: all var(--transition-base);
}

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

.nav-brand {
  display: flex;
  align-items: center;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: var(--font-size-lg);
}

.brand-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-lg);
  font-weight: 700;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

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

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  font-weight: 500;
  position: relative;
  overflow: hidden;
}

.nav-item:hover,
.nav-item.active {
  color: var(--primary);
  background: rgba(99, 102, 241, 0.1);
  transform: translateY(-2px);
}

.nav-item i {
  font-size: var(--font-size-base);
}

.nav-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.theme-toggle {
  width: 45px;
  height: 45px;
  border: none;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all var(--transition-base);
  font-size: var(--font-size-lg);
}

.theme-toggle:hover {
  background: var(--gradient-primary);
  color: white;
  transform: scale(1.1) rotate(15deg);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

/* Social Media Bar */
.social-bar {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  padding: 1rem;
  box-shadow: var(--glass-shadow);
  transition: all var(--transition-base);
}

.social-items {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.social-item {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.1);
  color: var(--text-primary);
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  font-size: var(--font-size-lg);
  transition: all var(--transition-base);
  overflow: hidden;
}

.social-item:hover {
  background: var(--gradient-primary);
  color: white;
  transform: translateY(-3px) scale(1.1);
}

.social-item[data-platform="github"]:hover {
  background: #333;
}

.social-item[data-platform="linkedin"]:hover {
  background: #0077b5;
}

.social-item[data-platform="twitter"]:hover {
  background: #1da1f2;
}

.social-item[data-platform="instagram"]:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-tooltip {
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 1rem;
  background: var(--bg-primary);
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-base);
  font-size: var(--font-size-sm);
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  pointer-events: none;
}

.social-item:hover .social-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(5px);
}

/* Background Elements */
.bg-elements {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.bg-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
}

/* Tech Float Elements */
.tech-float {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--primary);
  animation: techFloat 20s infinite linear;
  transition: all var(--transition-base);
  opacity: 0.7;
}

.tech-float:hover {
  transform: scale(1.2);
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-xl);
  opacity: 1;
}

.tech-1 {
  top: 15%;
  left: 8%;
  animation-delay: 0s;
  color: #61dafb;
}

.tech-2 {
  top: 25%;
  right: 12%;
  animation-delay: -5s;
  color: #f7df1e;
}

.tech-3 {
  top: 65%;
  left: 5%;
  animation-delay: -10s;
  color: #339933;
}

.tech-4 {
  top: 75%;
  right: 8%;
  animation-delay: -15s;
  color: #333;
}

[data-theme="dark"] .tech-4 {
  color: #fff;
}

.tech-5 {
  top: 45%;
  left: 12%;
  animation-delay: -20s;
  color: #1572b6;
}

@keyframes techFloat {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-15px) rotate(90deg);
  }
  50% {
    transform: translateY(0px) rotate(180deg);
  }
  75% {
    transform: translateY(-10px) rotate(270deg);
  }
  100% {
    transform: translateY(0px) rotate(360deg);
  }
}

/* Glass Card Effect */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  box-shadow: var(--glass-shadow);
  transition: all var(--transition-base);
}

.glass-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px 0 rgba(31, 38, 135, 0.5);
}

/* Main Container */
.main-container {
  margin-top: 80px;
}

/* Sections */
.section {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  padding: var(--section-padding);
  position: relative;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
  width: 100%;
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-subtitle {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.section-title {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-decoration {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.decoration-line {
  width: 60px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
}

.decoration-dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: var(--radius-full);
  animation: pulse 2s ease-in-out infinite;
}

/* Home Section */
.hero-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
  min-height: 60vh;
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-container {
  position: relative;
  width: 300px;
  height: 300px;
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 4px solid var(--primary);
  box-shadow: var(--shadow-2xl);
}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-overlay {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  opacity: 0.2;
  z-index: -1;
  animation: pulse 3s ease-in-out infinite;
}

.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

.floating-icon {
  position: absolute;
  width: 60px;
  height: 60px;
  background: var(--bg-primary);
  border-radius: var(--radius-full);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: var(--font-size-xl);
  color: var(--primary);
  box-shadow: var(--shadow-lg);
  animation: floatIcon 6s ease-in-out infinite;
  animation-delay: var(--delay);
}

.floating-icon:nth-child(1) {
  top: 10%;
  right: -10%;
}

.floating-icon:nth-child(2) {
  bottom: 20%;
  left: -15%;
}

.floating-icon:nth-child(3) {
  top: 60%;
  right: -20%;
}

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

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-greeting {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  font-weight: 500;
}

.hero-title {
  font-size: var(--font-size-6xl);
  font-weight: 800;
  line-height: 1.1;
  margin: 0;
}

.title-line {
  display: block;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: var(--font-size-2xl);
  color: var(--primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.typing-text {
  min-width: 200px;
}

.cursor {
  animation: blink 1s infinite;
}

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

.hero-description {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 500px;
}

.hero-stats {
  display: flex;
  gap: 2rem;
  margin: 1rem 0;
}

.stat-item {
  text-align: center;
}

.stat-number {
  display: block;
  font-size: var(--font-size-3xl);
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin: 1rem 0;
}

/* Hero Bottom Section */
.hero-bottom {
  margin-top: 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
}

.scroll-text {
  font-size: var(--font-size-sm);
  font-weight: 500;
}

.scroll-arrow {
  animation: bounce 2s infinite;
}

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

.hero-features {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
}

.feature-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--glass-shadow);
}

.feature-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: var(--font-size-lg);
}

.feature-text h4 {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.feature-text p {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border: none;
  border-radius: var(--radius-full);
  font-size: var(--font-size-base);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: var(--font-size-sm);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* About Section */
.about-content {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.text-block {
  padding: 2rem;
  margin-bottom: 2rem;
}

.text-block h3 {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.text-block p {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.expertise-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.expertise-tag {
  padding: 0.5rem 1rem;
  background: var(--gradient-primary);
  color: white;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 500;
}

.skills-container {
  padding: 2rem;
}

.skills-container h4 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skills-grid {
  display: grid;
  gap: 2rem;
}

.skill-category h5 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.skill-item {
  background: var(--bg-primary);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.skill-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.skill-name {
  font-weight: 600;
  color: var(--text-primary);
}

.skill-percent {
  font-size: var(--font-size-sm);
  color: var(--primary);
  font-weight: 600;
}

.skill-bar {
  height: 8px;
  background: var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
  width: 0;
  transition: width 2s ease-out;
}

.about-visual {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.visual-card {
  padding: 0;
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.visual-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.visual-card:hover .card-overlay {
  opacity: 1;
}

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

.overlay-content i {
  font-size: var(--font-size-3xl);
  margin-bottom: 1rem;
}

.overlay-content span {
  display: block;
  font-size: var(--font-size-lg);
  font-weight: 600;
}

.achievement-cards {
  display: flex;
  gap: 1rem;
}

.achievement-card {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.achievement-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: var(--font-size-lg);
}

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

.achievement-title {
  font-weight: 600;
  color: var(--text-primary);
  font-size: var(--font-size-sm);
}

.achievement-desc {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

.code-snippet {
  padding: 0;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  font-family: "Monaco", "Menlo", "Ubuntu Mono", monospace;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border);
}

.code-dots {
  display: flex;
  gap: 0.5rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
}

.dot.red {
  background: #ff5f56;
}
.dot.yellow {
  background: #ffbd2e;
}
.dot.green {
  background: #27ca3f;
}

.code-title {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  font-weight: 500;
}

.code-content {
  padding: 1.5rem;
}

.code-content pre {
  margin: 0;
  font-size: var(--font-size-sm);
  line-height: 1.6;
}

.code-keyword {
  color: #c792ea;
}
.code-variable {
  color: #82aaff;
}
.code-property {
  color: #f07178;
}
.code-string {
  color: #c3e88d;
}
.code-number {
  color: #f78c6c;
}

/* Portfolio Section */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--border);
  background: var(--bg-secondary);
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  cursor: pointer;
  font-weight: 500;
  transition: all var(--transition-base);
}

.filter-btn.active,
.filter-btn:hover {
  border-color: var(--primary);
  background: var(--primary);
  color: white;
}

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

.portfolio-item {
  opacity: 1;
  transform: scale(1);
  transition: all var(--transition-base);
}

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

.portfolio-card {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  transition: all var(--transition-base);
  position: relative;
}

.portfolio-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-2xl);
}

.card-image {
  position: relative;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.portfolio-card:hover .card-image img {
  transform: scale(1.1);
}

.image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.portfolio-card:hover .image-overlay {
  opacity: 1;
}

.overlay-content {
  display: flex;
  gap: 1rem;
}

.card-content {
  padding: 2rem;
}

.project-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.project-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.project-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  padding: 0.25rem 0.75rem;
  background: var(--bg-tertiary);
  color: var(--text-muted);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 500;
}

/* Blog Section */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.blog-card {
  overflow: hidden;
  transition: all var(--transition-base);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--glass-shadow);
}

.blog-image {
  position: relative;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform var(--transition-base);
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

.blog-category {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.5rem 1rem;
  background: var(--gradient-primary);
  color: white;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.blog-read-time {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.5rem 1rem;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.blog-content {
  padding: 2rem;
}

.blog-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.blog-meta span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.blog-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.blog-excerpt {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.blog-tag {
  padding: 0.25rem 0.75rem;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 500;
}

.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

.blog-read-more:hover {
  gap: 1rem;
}

/* Experience Section */
.experience-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.experience-column {
  position: relative;
}

.column-title {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: center;
  justify-content: center;
}

.column-title i {
  color: var(--primary);
}

.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--gradient-primary);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  padding: 2rem;
}

.timeline-marker {
  position: absolute;
  left: -3rem;
  top: 2rem;
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: var(--font-size-lg);
  box-shadow: var(--shadow-lg);
}

.timeline-content {
  transition: all var(--transition-base);
}

.timeline-content:hover {
  transform: translateX(10px);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.timeline-header h4 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--text-primary);
}

.timeline-date {
  padding: 0.5rem 1rem;
  background: var(--gradient-primary);
  color: white;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 600;
  white-space: nowrap;
}

.timeline-company {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.timeline-location {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.timeline-description {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.timeline-achievements {
  margin-bottom: 1.5rem;
}

.achievement {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

.achievement i {
  color: var(--primary);
}

.timeline-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-badge {
  padding: 0.25rem 0.75rem;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 500;
}

/* Contact Section */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.contact-text {
  padding: 2rem;
  margin-bottom: 2rem;
}

.contact-text h3 {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.contact-text p {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact-cta {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-lg);
  color: var(--primary);
  font-weight: 600;
}

.contact-cta i {
  font-size: var(--font-size-xl);
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
}

.contact-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: var(--font-size-lg);
  flex-shrink: 0;
}

.contact-details h4 {
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.contact-details p {
  color: var(--text-secondary);
  margin: 0;
  margin-bottom: 0.25rem;
}

.contact-extra {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

.contact-social {
  padding: 2rem;
}

.contact-social h4 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  min-height: 120px;
}

/* Contact Form */
.contact-form {
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.form-header h3 {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.form-header p {
  color: var(--text-secondary);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.form-group label {
  font-weight: 600;
  color: var(--text-primary);
  font-size: var(--font-size-sm);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-group label i {
  color: var(--primary);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-family: inherit;
  font-size: var(--font-size-base);
  transition: all var(--transition-base);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

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

/* Project Detail Styles */
.project-detail {
  max-width: 1000px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: var(--font-size-sm);
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.project-header {
  text-align: center;
  margin-bottom: 3rem;
}

.project-gallery {
  margin-bottom: 3rem;
}

.gallery-main {
  margin-bottom: 1rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.gallery-main img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.gallery-thumbs {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.gallery-thumbs img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-base);
  cursor: pointer;
  opacity: 0.6;
  transition: all var(--transition-base);
  border: 2px solid transparent;
}

.gallery-thumbs img.active,
.gallery-thumbs img:hover {
  opacity: 1;
  border-color: var(--primary);
}

.project-details {
  display: grid;
  gap: 2rem;
}

.info-section {
  margin-bottom: 2rem;
}

.info-section h3 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.info-section p {
  color: var(--text-secondary);
  line-height: 1.7;
}

.features-list {
  list-style: none;
  padding: 0;
}

.features-list li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  position: relative;
  padding-left: 1.5rem;
}

.features-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-badge {
  padding: 0.5rem 1rem;
  background: var(--gradient-primary);
  color: white;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 500;
}

.project-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

/* Blog Detail Styles */
.blog-detail {
  max-width: 800px;
  margin: 0 auto;
}

.blog-featured-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: var(--radius-xl);
  margin-bottom: 2rem;
}

.blog-footer {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: grid;
  gap: 2rem;
  margin-top: 3rem;
}

.blog-footer h4 {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.share-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.share-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  font-weight: 500;
  transition: all var(--transition-base);
}

.share-btn.twitter {
  background: #1da1f2;
  color: white;
}

.share-btn.facebook {
  background: #4267b2;
  color: white;
}

.share-btn.linkedin {
  background: #0077b5;
  color: white;
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Alert Styles */
.alert {
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  font-weight: 500;
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  color: var(--error);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* Notification */
.notification {
  position: fixed;
  top: 2rem;
  right: 2rem;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-xl);
  z-index: 3000;
  transform: translateX(400px);
  transition: transform var(--transition-base);
}

.notification.show {
  transform: translateX(0);
}

.notification-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.notification-icon {
  font-size: var(--font-size-lg);
}

.notification.success .notification-icon {
  color: var(--success);
}

.notification.error .notification-icon {
  color: var(--error);
}

.notification-text {
  color: var(--text-primary);
  font-weight: 500;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

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

  .contact-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .experience-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .achievement-cards {
    flex-direction: column;
  }

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

  .hero-features {
    justify-content: center;
  }

  .hero-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  :root {
    --container-padding: 1rem;
    --section-padding: 4rem 0;
  }

  .main-container {
    margin-top: 70px;
  }

  .nav-container {
    height: 70px;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border);
    flex-direction: column;
    padding: 2rem;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-items {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }

  .nav-item {
    width: 100%;
    justify-content: flex-start;
    padding: 1rem;
  }

  .nav-toggle {
    display: flex;
  }

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

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

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

  .social-bar {
    bottom: 20px;
    left: 20px;
  }

  .hero-title {
    font-size: var(--font-size-4xl);
  }

  .hero-subtitle {
    font-size: var(--font-size-xl);
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .section-title {
    font-size: var(--font-size-3xl);
  }

  .portfolio-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .timeline {
    padding-left: 1rem;
  }

  .timeline::before {
    left: 0.5rem;
  }

  .timeline-marker {
    left: -1.5rem;
    width: 40px;
    height: 40px;
    font-size: var(--font-size-base);
  }

  .timeline-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .project-actions {
    flex-direction: column;
  }

  .share-buttons {
    flex-direction: column;
  }

  .tech-float {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .hero-features {
    flex-direction: column;
    align-items: center;
  }

  .feature-item {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: var(--font-size-3xl);
  }

  .image-container {
    width: 250px;
    height: 250px;
  }

  .floating-icon {
    width: 50px;
    height: 50px;
    font-size: var(--font-size-lg);
  }

  .portfolio-filters {
    gap: 0.5rem;
  }

  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: var(--font-size-sm);
  }

  .notification {
    top: 1rem;
    right: 1rem;
    left: 1rem;
    transform: translateY(-100px);
  }

  .notification.show {
    transform: translateY(0);
  }

  .social-items {
    flex-direction: row;
    justify-content: center;
  }

  .social-bar {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Utility Classes */
.text-center {
  text-align: center;
}
.text-left {
  text-align: left;
}
.text-right {
  text-align: right;
}
.hidden {
  display: none !important;
}
.visible {
  display: block !important;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--gradient-primary);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* Selection Styling */
::selection {
  background: var(--primary);
  color: white;
}

::-moz-selection {
  background: var(--primary);
  color: white;
}
/* =====================================================
   MODERN FLOATING NAVBAR - Updated Styles
   ===================================================== */

/* Floating Navigation - Modern Minimal Design */
.floating-nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  transition: all var(--transition-base);
  max-width: 90vw;
      border-radius: var(--radius-full);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.75rem 1.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  box-shadow: var(--glass-shadow);
}

.nav-logo {
  display: flex;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition-base);
}

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

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-base);
  font-weight: 700;
  transition: var(--transition-base);
}

.logo-link:hover .logo-icon {
  transform: rotate(360deg);
}

.logo-text {
  font-weight: 700;
  font-size: var(--font-size-lg);
  display: none;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  overflow: hidden;
}

.nav-link span {
  display: none;
}

.nav-link i {
  font-size: 1.1rem;
  transition: var(--transition-base);
}

.nav-link:hover {
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  transform: translateY(-2px);
}

.nav-link.active {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.nav-link.active i {
  animation: iconPop 0.5s ease;
}

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

/* Nav Controls */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all var(--transition-base);
  font-size: 1.1rem;
}

.theme-toggle:hover {
  background: var(--gradient-primary);
  color: white;
  transform: scale(1.1) rotate(15deg);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

/* =====================================================
   FLOATING SOCIAL BAR - Bottom Center Minimal
   ===================================================== */

.floating-social-bar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  padding: 0.5rem 1rem;
  box-shadow: var(--glass-shadow);
  transition: all var(--transition-base);
}

.floating-social-bar:hover {
  transform: translateX(-50%) translateY(-3px);
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.5);
}

.social-items-floating {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.social-link-floating {
  position: relative;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1rem;
  transition: all var(--transition-base);
  overflow: hidden;
}

.social-link-floating::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-full);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.social-link-floating:hover {
  color: white;
  transform: translateY(-3px);
}

.social-link-floating.github:hover::before {
  background: #333;
  opacity: 1;
}

.social-link-floating.linkedin:hover::before {
  background: #0077b5;
  opacity: 1;
}

.social-link-floating.twitter:hover::before {
  background: #1da1f2;
  opacity: 1;
}

.social-link-floating.instagram:hover::before {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  opacity: 1;
}

.social-link-floating i {
  position: relative;
  z-index: 1;
}

.social-tooltip-floating {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-5px);
  background: var(--bg-primary);
  color: var(--text-primary);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-base);
  font-size: var(--font-size-xs);
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  pointer-events: none;
  margin-bottom: 8px;
}

.social-link-floating:hover .social-tooltip-floating {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* =====================================================
   SCROLL TO TOP - Minimal Style
   ===================================================== */

.scroll-to-top {
  position: fixed;
  bottom: 80px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  z-index: 999;
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

/* =====================================================
   RESPONSIVE DESIGN
   ===================================================== */

@media (min-width: 769px) {
  .logo-text {
    display: block;
  }
  
  .nav-link {
    width: auto;
    padding: 0.6rem 1rem;
    gap: 0.5rem;
  }
  
  .nav-link span {
    display: inline;
    font-size: var(--font-size-sm);
    font-weight: 500;
  }
}

@media (max-width: 768px) {
  .floating-nav {
    top: 10px;
    max-width: calc(100% - 20px);
  }
  
  .nav-wrapper {
    padding: 0.5rem 1rem;
    gap: 1rem;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 10px;
    right: 10px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 1rem;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all var(--transition-base);
    box-shadow: var(--glass-shadow);
  }
  
  .nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 0.75rem 1rem;
    gap: 0.75rem;
  }
  
  .nav-link span {
    display: inline;
    font-size: var(--font-size-sm);
    font-weight: 500;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }
  
  .floating-social-bar {
    bottom: 15px;
    padding: 0.4rem 0.8rem;
  }
  
  .social-link-floating {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }
  
  .scroll-to-top {
    bottom: 70px;
    right: 15px;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .floating-nav {
    max-width: calc(100% - 10px);
  }
  
  .nav-wrapper {
    padding: 0.5rem 0.75rem;
  }
  
  .logo-icon {
    width: 35px;
    height: 35px;
    font-size: var(--font-size-sm);
  }
  
  .theme-toggle {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  
  .social-items-floating {
    gap: 0.4rem;
  }
  
  .social-link-floating {
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
  }
}

/* =====================================================
   SCROLL BEHAVIOR & ANIMATIONS
   ===================================================== */

.floating-nav.scrolled {
  top: 10px;
  box-shadow: 0 10px 40px rgba(31, 38, 135, 0.4);
}

/* Navigation indicator line */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-base);
}

.nav-link:hover::after {
  width: 60%;
}

.nav-link.active::after {
  width: 0;
}

/* Smooth entrance animation */
@keyframes navFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

@keyframes socialFadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

.floating-nav {
  animation: navFadeIn 0.5s ease-out;
}

.floating-social-bar {
  animation: socialFadeIn 0.5s ease-out 0.2s backwards;
}

/* Pulse animation for active nav */
@keyframes pulse {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  }
  50% {
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.5);
  }
}

.nav-link.active {
  animation: pulse 2s infinite;
}

/* =====================================================
   FOOTER STYLES - Modern & Minimal
   ===================================================== */

.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
  margin-top: 6rem;
  position: relative;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--gradient-primary);
  opacity: 0.5;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

/* Footer Column Styles */
.footer-column h4 {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.footer-column h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--gradient-primary);
}

.footer-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

/* Footer Logo */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.footer-logo .logo-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  background: var(--gradient-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-lg);
  font-weight: 700;
}

.footer-logo h3 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--text-primary);
}

.footer-tagline {
  font-size: var(--font-size-base);
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-description {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: var(--font-size-sm);
}

/* Footer Links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: var(--font-size-sm);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-base);
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(5px);
}

.footer-links a i {
  font-size: var(--font-size-xs);
}

.footer-links li:not(:has(a)) {
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0;
}

/* Footer Contact */
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  font-size: var(--font-size-sm);
}

.contact-item-footer i {
  width: 35px;
  height: 35px;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-sm);
  flex-shrink: 0;
}

.contact-item-footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-base);
}

.contact-item-footer a:hover {
  color: var(--primary);
}

/* Footer Newsletter */
.footer-newsletter {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.footer-newsletter h5 {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.footer-newsletter p {
  font-size: var(--font-size-sm);
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-base);
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: var(--font-size-sm);
  transition: var(--transition-base);
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--primary);
}

.newsletter-form button {
  width: 45px;
  height: 45px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: var(--radius-base);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-base);
  flex-shrink: 0;
}

.newsletter-form button:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

/* Footer Bottom */
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  margin-top: 3rem;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.copyright {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  margin: 0;
}

.footer-badges {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(99, 102, 241, 0.1);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 600;
}

.badge i {
  font-size: var(--font-size-sm);
}

/* =====================================================
   MOBILE MENU IMPROVEMENTS
   ===================================================== */

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    width: 90vh;
    max-width: 600px;
    background: rgba(248, 250, 252, 0.95);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    padding: 1rem;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 999;
  }

  [data-theme="dark"] .nav-menu {
    background: rgba(15, 23, 42, 0.95);
  }

  .nav-menu.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
  }

  .nav-link {
    width: 100%;
    justify-content: flex-start;
    padding: 1rem 1.25rem;
    gap: 1rem;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
  }

  .nav-link i {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
  }

  .nav-link span {
    display: inline;
    font-weight: 600;
  }

  .nav-link:hover {
    background: rgba(99, 102, 241, 0.15);
  }

  .nav-link.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
  }

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

  /* Social bar - keep at bottom on mobile */
  .floating-social-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.5rem 1rem;
    z-index: 1000;
  }

  .social-items-floating {
    gap: 0.75rem;
  }

  .social-link-floating {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }

  /* Footer adjustments */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-column h4::after {
    width: 100%;
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-badges {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .nav-menu {
    width: 90vh;
    padding: 0.75rem;
  }

  .nav-link {
    padding: 0.875rem 1rem;
  }

  .floating-social-bar {
    bottom: 15px;
    padding: 0.4rem 0.8rem;
  }

  .social-link-floating {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .footer-newsletter {
    padding: 1rem;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form button {
    width: 100%;
  }
}

/* =====================================================
   SCROLL ANIMATIONS
   ===================================================== */

.footer-column {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.footer-column:nth-child(1) { animation-delay: 0.1s; }
.footer-column:nth-child(2) { animation-delay: 0.2s; }
.footer-column:nth-child(3) { animation-delay: 0.3s; }
.footer-column:nth-child(4) { animation-delay: 0.4s; }

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

/* =====================================================
   ENHANCED BLUR EFFECTS
   ===================================================== */

.nav-menu,
.floating-social-bar,
.floating-nav {
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  /* backdrop-filter: blur(20px) saturate(180%); */
}

@supports not (backdrop-filter: blur(20px)) {
  .nav-menu,
  .floating-social-bar,
  .floating-nav {
    background: var(--bg-primary);
    opacity: 0.98;
  }
}

/* =====================================================
   LANGUAGE SWITCHER (Bonus)
   ===================================================== */

.language-switcher {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.lang-btn {
  padding: 0.4rem 0.8rem;
  background: rgba(99, 102, 241, 0.1);
  color: var(--text-secondary);
  border: 1px solid transparent;
  border-radius: var(--radius-base);
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  transition: var(--transition-base);
}

.lang-btn:hover {
  background: rgba(99, 102, 241, 0.2);
  color: var(--primary);
}

.lang-btn.active {
  background: var(--gradient-primary);
  color: white;
  border-color: var(--primary);
}

/* Add to nav-actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* =====================================================
   ACCESSIBILITY IMPROVEMENTS
   ===================================================== */

.nav-link:focus,
.theme-toggle:focus,
.social-link-floating:focus,
.lang-btn:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Skip to content link */
.skip-to-content {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: white;
  padding: 1rem 2rem;
  border-radius: var(--radius-base);
  font-weight: 600;
  text-decoration: none;
  z-index: 10000;
  transition: top var(--transition-base);
}

.skip-to-content:focus {
  top: 20px;
}

/* =====================================================
   PRINT STYLES
   ===================================================== */

@media print {
  .floating-nav,
  .floating-social-bar,
  .scroll-to-top,
  .theme-toggle {
    display: none !important;
  }

  .site-footer {
    page-break-after: avoid;
  }
}

/* =====================================================
   LANGUAGE SWITCHER STYLES - Desktop (Bottom Left)
   ===================================================== */

.language-switcher-desktop {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  padding: 0.5rem;
  box-shadow: var(--glass-shadow);
  transition: all var(--transition-base);
}

.language-switcher-desktop:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(31, 38, 135, 0.5);
}

.lang-btn {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.lang-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-base);
  border-radius: var(--radius-full);
}

.lang-btn:hover {
  color: var(--primary);
  transform: scale(1.1);
}

.lang-btn.active {
  color: white;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.lang-btn.active::before {
  opacity: 1;
}

.lang-btn span {
  position: relative;
  z-index: 1;
}

/* Tooltip for Language Buttons */
.lang-btn::after {
  content: attr(title);
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  margin-left: 1rem;
  background: var(--bg-primary);
  color: var(--text-primary);
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-base);
  font-size: var(--font-size-xs);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
  pointer-events: none;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  z-index: 1001;
}

.lang-btn:hover::after {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(5px);
}

/* =====================================================
   LANGUAGE SWITCHER - Mobile (Top when menu opens)
   ===================================================== */

.language-switcher-mobile {
  display: none;
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 998;
  gap: 0.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  padding: 0.4rem 0.8rem;
  box-shadow: var(--glass-shadow);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

/* Show mobile switcher when menu is active */
.nav-menu.active ~ .language-switcher-mobile {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.lang-btn-mobile {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.lang-btn-mobile::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-base);
  border-radius: var(--radius-full);
}

.lang-btn-mobile:hover {
  color: var(--primary);
  transform: scale(1.1);
}

.lang-btn-mobile.active {
  color: white;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4);
}

.lang-btn-mobile.active::before {
  opacity: 1;
}

.lang-btn-mobile span {
  position: relative;
  z-index: 1;
}

/* =====================================================
   LANGUAGE SWITCH ANIMATION
   ===================================================== */

@keyframes langSwitch {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2) rotate(360deg);
  }
}

.lang-btn.switching,
.lang-btn-mobile.switching {
  animation: langSwitch 0.5s ease;
}

/* =====================================================
   RESPONSIVE ADJUSTMENTS
   ===================================================== */

@media (max-width: 768px) {
  .language-switcher-desktop {
    display: none;
  }

  .language-switcher-mobile {
    display: flex;
  }
}

@media (max-width: 480px) {
  .language-switcher-mobile {
    top: 70px;
    padding: 0.3rem 0.6rem;
  }

  .lang-btn-mobile {
    width: 36px;
    height: 36px;
    font-size: 0.65rem;
  }
}

/* =====================================================
   DARK THEME ADJUSTMENTS
   ===================================================== */

[data-theme="dark"] .language-switcher-desktop,
[data-theme="dark"] .language-switcher-mobile {
  background: rgba(15, 23, 42, 0.95);
  border-color: rgba(255, 255, 255, 0.1);
}

/* =====================================================
   ACCESSIBILITY
   ===================================================== */

.lang-btn:focus,
.lang-btn-mobile:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* =====================================================
   PRINT STYLES
   ===================================================== */

@media print {
  .language-switcher-desktop,
  .language-switcher-mobile {
    display: none !important;
  }
}

/* =====================================================
   LOADING STATE
   ===================================================== */

.lang-btn.loading,
.lang-btn-mobile.loading {
  pointer-events: none;
  opacity: 0.6;
}

.lang-btn.loading::after,
.lang-btn-mobile.loading::after {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid var(--primary);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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