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

:root {
  /* Colors */
  --primary-color: #6366f1;
  --primary-dark: #4f46e5;
  --secondary-color: #10b981;
  --accent-color: #f59e0b;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-light: #9ca3af;
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-dark: #111827;
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  /* Spacing */
  --container-padding: 1rem;
  --section-padding: 5rem 0;
  --navbar-height: 70px;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

[data-theme="dark"] {
  --text-primary: #f3f4f6;
  --text-secondary: #d1d5db;
  --text-light: #9ca3af;
  --bg-primary: #111827;
  --bg-secondary: #1f2937;
  --bg-dark: #030712;
  --border-color: #374151;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.3);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.3);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.5), 0 8px 10px -6px rgb(0 0 0 / 0.4);
}

[data-theme="dark"] .navbar {
  background: rgba(17, 24, 39, 0.95);
  border-bottom-color: var(--border-color);
}

[data-theme="dark"] .code-window {
  background: rgba(15, 15, 25, 0.98);
  border-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .code-header {
  background: rgba(10, 10, 20, 0.9);
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] .skills-showcase {
  background: rgba(31, 41, 55, 0.6);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .skill-badge {
  background: linear-gradient(135deg, rgba(31, 41, 55, 0.95), rgba(17, 24, 39, 0.95));
  border-color: rgba(99, 102, 241, 0.3);
}

[data-theme="dark"] .skill-badge:hover {
  background: linear-gradient(135deg, rgba(31, 41, 55, 1), rgba(17, 24, 39, 1));
}

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

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }

p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition-normal);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark), var(--secondary-color));
  background-size: 200% auto;
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4), 0 0 20px rgba(99, 102, 241, 0.2);
  position: relative;
  overflow: hidden;
  animation: gradientShift 3s ease infinite;
}

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

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

.btn-primary:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6), 0 0 40px rgba(99, 102, 241, 0.4);
  animation: glow 2s ease-in-out infinite;
}

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

.btn-secondary:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

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

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

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.navbar:hover {
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.1);
}

[data-theme="dark"] .navbar.scrolled {
  background: rgba(17, 24, 39, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
  height: 70px;
  position: relative;
}

.nav-logo img {
  height: 40px;
  width: auto;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.nav-link {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width var(--transition-normal);
}

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

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

.theme-toggle {
  background: var(--bg-secondary);
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s ease;
  margin-right: 1rem;
  font-size: 1.25rem;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.theme-toggle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.3), transparent);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.theme-toggle:hover::before {
  width: 100px;
  height: 100px;
}

.theme-toggle:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.theme-toggle:active {
  transform: translateY(0);
}

.theme-icon {
  transition: transform var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.theme-icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 2;
  color: var(--text-primary);
  transition: all var(--transition-normal);
}

.theme-toggle:hover .theme-icon {
  transform: scale(1.2);
}

.theme-toggle:hover .theme-icon svg {
  color: white;
}

[data-theme="dark"] .theme-toggle {
  background: var(--bg-secondary);
  border-color: var(--border-color);
}

[data-theme="dark"] .theme-toggle:hover {
  background: var(--primary-color);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--bg-dark), #1a1a2e);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.3), transparent);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.social-link:hover::before {
  width: 100px;
  height: 100px;
}

.social-link:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  transform: translateY(-3px) rotate(5deg) scale(1.1);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.social-link img {
  width: 20px;
  height: 20px;
  transition: filter var(--transition-normal);
}

.social-link:hover img {
  filter: brightness(0) invert(1);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 0.5rem;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  transition: all var(--transition-normal);
  border-radius: 2px;
}

/* Hero Section */
.hero {
  padding: 8rem 0 5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.03) 2px,
    rgba(255, 255, 255, 0.03) 4px
  );
  animation: rotate 20s linear infinite;
  pointer-events: none;
}

.hero-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--container-padding);
  position: relative;
  z-index: 1;
}

.hero-title {
  margin-bottom: 1rem;
  color: white;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  animation: slideInLeft 0.8s ease-out;
}

.highlight {
  background: linear-gradient(135deg, #fff 0%, #f0f0f0 50%, #fff 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
  position: relative;
  display: inline-block;
}

.highlight::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
  border-radius: 10px;
  filter: blur(10px);
  z-index: -1;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 1.5rem;
  font-weight: 400;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  animation: slideInLeft 1s ease-out 0.2s both;
}

.hero-description {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  animation: slideInLeft 1s ease-out 0.4s both;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: slideInRight 1s ease-out 0.3s both;
  position: relative;
  min-height: 500px;
}

.hero-graphic {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Code Window */
.code-window {
  background: rgba(30, 30, 46, 0.95);
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px rgba(99, 102, 241, 0.3);
  overflow: hidden;
  width: 100%;
  max-width: 500px;
  z-index: 2;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: float 6s ease-in-out infinite;
  display: flex;
  flex-direction: column;
}

.code-header {
  background: rgba(20, 20, 30, 0.8);
  padding: 12px 16px;
  display: flex;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.code-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.code-dot:nth-child(1) { background: #ff5f56; }
.code-dot:nth-child(2) { background: #ffbd2e; }
.code-dot:nth-child(3) { background: #27c93f; }

.code-content {
  padding: 24px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.8;
  color: #e4e4e7;
  position: relative;
  overflow-x: auto;
}

.code-line {
  margin-bottom: 4px;
  opacity: 0;
  animation: fadeInUp 0.5s ease-out forwards;
  display: block;
}

.code-line:nth-child(1) { animation-delay: 0.3s; }
.code-line:nth-child(2) { animation-delay: 0.4s; }
.code-line:nth-child(3) { animation-delay: 0.5s; }
.code-line:nth-child(4) { animation-delay: 0.6s; }
.code-line:nth-child(5) { animation-delay: 0.7s; }
.code-line:nth-child(6) { animation-delay: 0.8s; }
.code-line:nth-child(7) { animation-delay: 0.9s; }
.code-line:nth-child(8) { animation-delay: 1.0s; }
.code-line:nth-child(9) { animation-delay: 1.1s; }
.code-line:nth-child(10) { animation-delay: 1.2s; }
.code-line:nth-child(11) { animation-delay: 1.3s; }

.code-keyword { 
  color: #c792ea; 
  font-weight: 600;
}
.code-variable { 
  color: #82aaff; 
}
.code-property { 
  color: #7fdbca; 
}
.code-string { 
  color: #c3e88d; 
}

.code-comment {
  color: #546e7a;
  font-style: italic;
}

.code-cursor {
  display: inline-block;
  width: 2px;
  height: 20px;
  background: #82aaff;
  margin-left: 4px;
  animation: blink 1s infinite;
}

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

/* Floating Tech Icons */
.tech-icon {
  position: absolute;
  font-size: 3rem;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 4px 20px rgba(99, 102, 241, 0.5);
  animation: float 8s ease-in-out infinite;
  z-index: 1;
}

.icon-react {
  top: 10%;
  right: 15%;
  animation-delay: 0s;
  filter: drop-shadow(0 0 20px rgba(97, 218, 251, 0.6));
}

.icon-next {
  bottom: 20%;
  left: 10%;
  animation-delay: 2s;
  color: rgba(255, 255, 255, 0.95);
  filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.5));
}

.icon-ts {
  top: 50%;
  right: 5%;
  animation-delay: 4s;
  font-size: 1.5rem;
  color: #3178c6;
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(49, 120, 198, 0.2);
  border: 2px solid rgba(49, 120, 198, 0.4);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(49, 120, 198, 0.3);
}

.floating-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.4;
  animation: float 8s ease-in-out infinite;
  z-index: 0;
}

.shape-1 {
  width: 200px;
  height: 200px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.4), rgba(139, 92, 246, 0.4));
  top: 10%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.4), rgba(59, 130, 246, 0.4));
  bottom: 20%;
  right: 15%;
  animation-delay: 2s;
  animation-duration: 10s;
}

.shape-3 {
  width: 180px;
  height: 180px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.4), rgba(251, 146, 60, 0.4));
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: 4s;
  animation-duration: 12s;
}

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

.section-header h2 {
  margin-bottom: 1rem;
  color: var(--text-primary);
  position: relative;
  display: inline-block;
}

.skills .section-header h2 {
  color: #000000;
}

[data-theme="dark"] .skills .section-header h2 {
  color: #000000;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
  animation: pulse 2s ease-in-out infinite;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* About Preview Section */
.about-preview {
  padding: var(--section-padding);
  background: var(--bg-primary);
}

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

.about-text p {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

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

.stat {
  text-align: center;
  padding: 2rem;
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.stat::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
  transition: left 0.6s;
}

.stat:hover::before {
  left: 100%;
}

.stat:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
  border-color: var(--primary-color);
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  transition: all var(--transition-normal);
}

.stat:hover .stat-number {
  transform: scale(1.1);
  filter: drop-shadow(0 4px 8px rgba(99, 102, 241, 0.3));
}

.stat-label {
  color: var(--text-secondary);
  font-weight: 500;
}

/* Skills Section */
.skills {
  padding: var(--section-padding);
  background: linear-gradient(135deg, var(--bg-secondary) 0%, #f0f4ff 25%, #e0e7ff 50%, #f0f4ff 75%, var(--bg-secondary) 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  position: relative;
  overflow: hidden;
}

.skills::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.08), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(16, 185, 129, 0.08), transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.05), transparent 60%);
  pointer-events: none;
  animation: pulse 8s ease-in-out infinite;
}

.skills::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    repeating-conic-gradient(
      from 0deg at 50% 50%,
      transparent 0deg,
      rgba(99, 102, 241, 0.02) 5deg,
      transparent 10deg
    );
  animation: rotate 30s linear infinite;
  pointer-events: none;
}

.skills-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
  margin-top: 0;
  margin-bottom: 0;
  padding: 3rem 3rem;
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .skills-showcase {
    padding: 2rem 2rem;
  }
}

@media (max-width: 480px) {
  .skills-showcase {
    padding: 2rem 1.5rem;
  }
}

.skill-badge {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.95));
  border: 2px solid rgba(99, 102, 241, 0.2);
  border-radius: 16px;
  padding: 1.5rem 1rem;
  text-align: center;
  transition: all var(--transition-normal);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(10px);
}

.skill-badge::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
  transition: left 0.6s;
}

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

.skill-badge::after {
  content: attr(data-skill);
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(30, 30, 46, 0.95);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  transition: all var(--transition-normal);
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.skill-badge:hover::after {
  bottom: -40px;
  opacity: 1;
}

.skill-icon {
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
  color: var(--primary-color);
}

.skill-icon svg,
.skill-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(99, 102, 241, 0.3));
}

.skill-icon svg {
  stroke-width: 2;
}

/* Brand logos use fill instead of stroke */
.skill-icon svg[fill="currentColor"] {
  stroke: none;
}

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

.skill-badge:hover .skill-icon {
  transform: scale(1.2) rotate(5deg);
  color: var(--secondary-color);
}

.skill-badge:hover .skill-icon svg {
  filter: drop-shadow(0 4px 15px rgba(99, 102, 241, 0.5));
}

.skill-badge:hover .skill-icon img {
  filter: drop-shadow(0 4px 15px rgba(99, 102, 241, 0.5));
  transform: scale(1.1);
}

.skill-badge span {
  display: block;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.875rem;
  transition: all var(--transition-normal);
  position: relative;
  z-index: 1;
}

.skill-badge:hover {
  transform: translateY(-8px) scale(1.05);
  border-color: var(--primary-color);
  box-shadow: 0 12px 35px rgba(99, 102, 241, 0.3), 0 0 25px rgba(99, 102, 241, 0.2);
  background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(248, 250, 252, 1));
}

.skill-badge:hover span {
  color: var(--primary-color);
  font-weight: 700;
}

[data-theme="dark"] .skill-badge span {
  color: #ffffff !important;
}

[data-theme="dark"] .skill-badge:hover {
  background: linear-gradient(135deg, rgba(31, 41, 55, 1), rgba(17, 24, 39, 1));
}

[data-theme="dark"] .skill-badge:hover span {
  color: #ffffff !important;
}

.skill-category {
  background: linear-gradient(135deg, var(--bg-primary), #fafafa);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(99, 102, 241, 0.1);
  border: 2px solid transparent;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(10px);
}

.skill-category::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color), var(--primary-color));
  background-size: 300% auto;
  animation: gradientShift 4s linear infinite;
  transform: scaleX(0);
  transition: transform var(--transition-normal);
  z-index: 1;
}

.skill-category::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

.skill-category:hover::before {
  transform: scaleX(1);
}

.skill-category:hover::after {
  opacity: 1;
}

.skill-category:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 50px rgba(99, 102, 241, 0.25), 0 0 30px rgba(99, 102, 241, 0.15), inset 0 0 30px rgba(99, 102, 241, 0.05);
  border-color: var(--primary-color);
  background: linear-gradient(135deg, #ffffff, #f8f9ff);
}

.skill-category h3 {
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  font-size: 1.25rem;
  position: relative;
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: all var(--transition-normal);
}

.skill-category:hover h3 {
  transform: translateX(5px);
  filter: drop-shadow(0 2px 4px rgba(99, 102, 241, 0.3));
}

.skill-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

.skill-item {
  background: linear-gradient(135deg, var(--bg-secondary), #f8f9fa);
  color: var(--text-primary);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  border: 2px solid var(--border-color);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  z-index: 1;
}

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

.skill-item::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.3), transparent);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  z-index: 0;
}

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

.skill-item:hover::after {
  width: 200px;
  height: 200px;
}

.skill-item:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  transform: translateY(-4px) scale(1.08) rotate(2deg);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5), 0 0 20px rgba(99, 102, 241, 0.3);
  border-color: var(--primary-color);
  z-index: 2;
}

/* Services Section */
.services {
  padding: var(--section-padding);
  background: var(--bg-primary);
  position: relative;
  overflow: hidden;
}

.services::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.08), transparent);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
  pointer-events: none;
}

.services::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08), transparent);
  border-radius: 50%;
  animation: float 10s ease-in-out infinite reverse;
  pointer-events: none;
}

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

.service-card {
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-primary));
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1), transparent);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.service-card:hover::after {
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2), 0 0 30px rgba(99, 102, 241, 0.1);
  border-color: var(--primary-color);
  background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
}

.service-icon {
  width: 3rem;
  height: 3rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
  color: var(--primary-color);
}

.service-icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 2;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.service-card:hover .service-icon {
  transform: scale(1.2) rotate(5deg);
  color: var(--secondary-color);
}

.service-card:hover .service-icon svg {
  filter: drop-shadow(0 8px 16px rgba(99, 102, 241, 0.3));
}

.service-card h3 {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.service-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Featured Projects */
.featured-projects {
  padding: var(--section-padding);
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 50%, var(--bg-secondary) 100%);
  position: relative;
  overflow: hidden;
}

.featured-projects::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(99, 102, 241, 0.02) 10px,
      rgba(99, 102, 241, 0.02) 20px
    );
  pointer-events: none;
}

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

/* Portfolio page grid - more compact */
.portfolio-projects .projects-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--bg-primary);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
  position: relative;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(16, 185, 129, 0.05));
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

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

.project-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2), 0 0 30px rgba(99, 102, 241, 0.1);
  border-color: var(--primary-color);
}

.project-image {
  height: 200px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

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

.project-content {
  padding: 1.5rem;
}

.project-content h3 {
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.project-content p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

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

.project-tech span {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 500;
}

.projects-cta {
  text-align: center;
}

/* Testimonials Section */
.testimonials {
  padding: var(--section-padding);
  background: var(--bg-primary);
}

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

.testimonial-card {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

.testimonial-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.testimonial-content {
  margin-bottom: 1.5rem;
}

.testimonial-content p {
  font-style: italic;
  color: var(--text-secondary);
  line-height: 1.6;
}

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

.author-info h4 {
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.author-info span {
  color: var(--text-light);
  font-size: 0.875rem;
}

/* Contact CTA */
.contact-cta {
  padding: var(--section-padding);
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  text-align: center;
}

.cta-content h2 {
  color: white;
  margin-bottom: 1rem;
}

.cta-content p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

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

.contact-cta .btn-primary:hover {
  background: var(--bg-secondary);
}

/* Footer */
.footer {
  background: var(--bg-dark);
  color: white;
  padding: 3rem 0 1rem;
}

.footer-logo,
footer .footer-logo,
.footer .footer-logo {
  max-width: 120px !important;
  width: 120px !important;
  height: auto !important;
  margin-bottom: 1rem;
  display: block !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
  overflow: hidden !important;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  color: white;
  margin-bottom: 1rem;
}

.footer-section p {
  color: var(--text-light);
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section ul li a {
  color: var(--text-light);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-section ul li a:hover {
  color: white;
}

.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  transition: all var(--transition-normal);
  max-width: 40px !important;
  max-height: 40px !important;
  overflow: hidden;
}

.footer-social a:hover {
  background: var(--primary-color);
  transform: translateY(-2px);
}

.footer-social img {
  width: 20px !important;
  height: 20px !important;
  filter: brightness(0) invert(1);
  max-width: 20px !important;
  max-height: 20px !important;
  object-fit: contain !important;
  flex-shrink: 0;
}

/* Additional specific rules for footer social icons */
footer .footer-social img,
.footer .footer-social img {
  width: 20px !important;
  height: 20px !important;
  max-width: 20px !important;
  max-height: 20px !important;
  object-fit: contain !important;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: var(--text-light);
  margin: 0;
}

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

.footer-links a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
  .theme-toggle {
    width: 36px;
    height: 36px;
    font-size: 1rem;
    margin-right: 0.5rem;
  }
  
  .nav-social {
    gap: 0.5rem;
  }
  
  .social-link {
    width: 36px;
    height: 36px;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 2rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
  }
  
  [data-theme="dark"] .nav-menu {
    background: rgba(17, 24, 39, 0.98);
  }

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

  .hamburger {
    display: flex;
  }

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

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

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

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

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

  .about-stats {
    flex-direction: row;
    justify-content: space-around;
  }

  .stat {
    flex: 1;
    padding: 1.5rem 1rem;
  }

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

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

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-logo,
  footer .footer-logo,
  .footer .footer-logo,
  .footer img.footer-logo,
  footer img.footer-logo,
  .footer img[src*="logo2.png"] {
    max-width: 180px !important;
    width: 180px !important;
    height: auto !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
  }
  
  .footer-social {
    gap: 0.75rem !important;
  }
  
  .footer-social a {
    width: 35px !important;
    height: 35px !important;
    max-width: 35px !important;
    max-height: 35px !important;
  }
  
  .footer-social img {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
  }
  
  footer .footer-social img,
  .footer .footer-social img {
    width: 16px !important;
    height: 16px !important;
    max-width: 16px !important;
    max-height: 16px !important;
  }
}

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

  .hero {
    padding: 6rem 0 3rem;
  }

  .section-padding {
    padding: 3rem 0;
  }

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

  .hero-cta {
    flex-direction: column;
  }

  .about-stats {
    flex-direction: column;
  }

  .services-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-logo,
  footer .footer-logo,
  .footer .footer-logo,
  .footer img.footer-logo,
  footer img.footer-logo,
  .footer img[src*="logo2.png"] {
    max-width: 160px !important;
    width: 160px !important;
    height: auto !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
  }
  
  .footer-social a {
    width: 30px !important;
    height: 30px !important;
    max-width: 30px !important;
    max-height: 30px !important;
  }
  
  .footer-social img {
    width: 14px !important;
    height: 14px !important;
    max-width: 14px !important;
    max-height: 14px !important;
  }
  
  footer .footer-social img,
  .footer .footer-social img {
    width: 14px !important;
    height: 14px !important;
    max-width: 14px !important;
    max-height: 14px !important;
  }
}

@media (max-width: 360px) {
  .footer-logo,
  footer .footer-logo,
  .footer .footer-logo,
  .footer img.footer-logo,
  footer img.footer-logo,
  .footer img[src*="logo2.png"] {
    max-width: 140px !important;
    width: 140px !important;
    height: auto !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
  }
  
  .footer-social a {
    width: 25px !important;
    height: 25px !important;
    max-width: 25px !important;
    max-height: 25px !important;
  }
  
  .footer-social img {
    width: 12px !important;
    height: 12px !important;
    max-width: 12px !important;
    max-height: 12px !important;
  }
  
  footer .footer-social img,
  .footer .footer-social img {
    width: 12px !important;
    height: 12px !important;
    max-width: 12px !important;
    max-height: 12px !important;
  }
}

@media (max-width: 320px) {
  .footer-logo,
  footer .footer-logo,
  .footer .footer-logo,
  .footer img.footer-logo,
  footer img.footer-logo,
  .footer img[src*="logo2.png"] {
    max-width: 120px !important;
    width: 120px !important;
    height: auto !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
  }
  
  .footer-social a {
    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
  }
  
  .footer-social img {
    width: 10px !important;
    height: 10px !important;
    max-width: 10px !important;
    max-height: 10px !important;
  }
  
  footer .footer-social img,
  .footer .footer-social img {
    width: 10px !important;
    height: 10px !important;
    max-width: 10px !important;
    max-height: 10px !important;
  }
}

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

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

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

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

@keyframes glow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.6), 0 0 60px rgba(99, 102, 241, 0.4);
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

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

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

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

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

.hero-content,
.hero-visual,
.section-header,
.skill-category,
.service-card,
.project-card,
.testimonial-card {
  animation: fadeInUp 0.6s ease-out;
}

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

/* Focus styles for accessibility */
.btn:focus,
.nav-link:focus,
.social-link:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Loading states */
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* About Page Specific Styles */
.about-hero {
  padding: 6rem 0 3rem;
  min-height: 60vh;
}

.about-image-placeholder,
.about-image-container {
  width: 300px;
  height: 300px;
  background: var(--bg-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--border-color);
  overflow: hidden;
}

.about-profile-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

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

.placeholder-content span {
  font-size: 4rem;
  display: block;
  margin-bottom: 1rem;
}

.placeholder-content p {
  color: var(--text-secondary);
  font-weight: 500;
}

.about-main {
  padding: var(--section-padding);
  background: var(--bg-primary);
}

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

.about-story h2 {
  margin-bottom: 2rem;
  color: var(--text-primary);
}

.about-story p {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

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

.about-card {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.about-card h3 {
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.facts-list {
  list-style: none;
}

.facts-list li {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.facts-list strong {
  color: var(--text-primary);
}

.interests-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.interest-item {
  background: var(--bg-primary);
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.interest-item:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* Journey Timeline */
.journey {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--primary-color);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
}

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

.timeline-marker {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 20px;
  background: var(--primary-color);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  border: 4px solid white;
  box-shadow: 0 0 0 4px var(--primary-color);
}

.timeline-content {
  width: 45%;
  background: var(--bg-primary);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: 55%;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 55%;
}

.timeline-content h3 {
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.timeline-content h4 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1.125rem;
}

.timeline-content p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Values Section */
.values {
  padding: var(--section-padding);
  background: var(--bg-primary);
}

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

.value-card {
  background: var(--bg-secondary);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
}

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

.value-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(16, 185, 129, 0.1));
  border-radius: 16px;
  padding: 1rem;
  transition: all var(--transition-normal);
}

.value-card:hover .value-icon {
  transform: scale(1.1) rotate(5deg);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(16, 185, 129, 0.2));
}

.value-icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 2.5;
}

.value-card h3 {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.value-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Goals Section */
.goals {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

.goals-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.goal-item {
  background: var(--bg-primary);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.goal-item h3 {
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  font-size: 1.25rem;
}

.goal-item ul {
  list-style: none;
}

.goal-item li {
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
  position: relative;
  padding-left: 1.5rem;
}

.goal-item li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  font-weight: bold;
}

/* Portfolio Page Specific Styles */
.portfolio-hero {
  padding: 6rem 0 3rem;
  min-height: 60vh;
}

.project-filters {
  padding: 2rem 0;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

.filters-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.filter-btn {
  background: var(--bg-primary);
  color: var(--text-secondary);
  border: 2px solid var(--border-color);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-normal);
}

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

.portfolio-projects {
  padding: var(--section-padding);
  background: var(--bg-primary);
}

/* Compact portfolio project cards that expand on hover */
.portfolio-projects .project-card {
  max-height: 400px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-projects .project-card:hover {
  max-height: 2000px;
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(99, 102, 241, 0.2), 0 0 30px rgba(99, 102, 241, 0.1);
  border-color: var(--primary-color);
  z-index: 10;
}

.portfolio-projects .project-content p {
  max-height: 0;
  opacity: 0;
  margin: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
              opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              margin 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-projects .project-card:hover .project-content p {
  max-height: 200px;
  opacity: 1;
  margin-bottom: 1rem;
}

.portfolio-projects .project-features {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  margin: 0;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
              opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              margin 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-projects .project-card:hover .project-features {
  max-height: 500px;
  opacity: 1;
  margin-top: 1.5rem;
}

.portfolio-projects .project-tech {
  margin-bottom: 0.5rem;
  transition: margin-bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-projects .project-card:hover .project-tech {
  margin-bottom: 1.5rem;
}

.portfolio-projects .project-image {
  height: 180px;
  transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-projects .project-card:hover .project-image {
  height: 220px;
}

.portfolio-projects .project-content {
  padding: 1.25rem;
  transition: padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-projects .project-card:hover .project-content {
  padding: 1.5rem;
}

/* Project header with title and view live button */
.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  gap: 1rem;
}

.project-header h3 {
  margin: 0;
  flex: 1;
}

.project-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  text-decoration: none;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.project-link-btn::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;
}

.project-link-btn:hover::before {
  left: 100%;
}

.project-link-btn:hover {
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
  border-color: rgba(255, 255, 255, 0.2);
}

.project-link-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.project-link-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.project-link-btn:hover svg {
  transform: translate(2px, -2px);
}

.coming-soon-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.coming-soon-overlay span:first-child {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.coming-soon-overlay h3 {
  color: white;
  margin-bottom: 0.5rem;
}

.coming-soon-overlay p {
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.project-features {
  margin-top: 1.5rem;
}

.project-features h4 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1rem;
}

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

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

.project-features li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* Skills Showcase */
/* Removed conflicting styles - using .skills-showcase for badge grid instead */

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

.skill-category-showcase {
  background: var(--bg-primary);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.skill-category-showcase h3 {
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  text-align: center;
  font-size: 1.25rem;
}

.skill-items-showcase {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.skill-item-showcase {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.skill-item-showcase:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

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

/* Responsive adjustments for About page */
@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    flex-direction: row !important;
  }

  .timeline-marker {
    left: 20px;
  }

  .timeline-content {
    width: calc(100% - 60px);
    margin-left: 60px !important;
    margin-right: 0 !important;
  }

  .goals-content {
    grid-template-columns: 1fr;
  }

  .filters-container {
    justify-content: center;
  }

  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
  }

  .skill-items-showcase {
    grid-template-columns: 1fr;
  }
}

/* Contact Page Specific Styles */
.contact-hero {
  padding: 6rem 0 3rem;
  min-height: 60vh;
}

.contact-section {
  padding: var(--section-padding);
  background: var(--bg-primary);
}

.contact-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-form-container {
  background: var(--bg-secondary);
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.contact-form {
  margin-top: 2rem;
}

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

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
  background: var(--bg-primary);
}

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

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

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.checkbox-label input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.submit-btn {
  width: 100%;
  padding: 1rem;
  font-size: 1.125rem;
  margin-top: 1rem;
}

.submit-btn svg {
  margin-left: 0.5rem;
}

/* Contact Information */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.contact-icon {
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(16, 185, 129, 0.1));
  border-radius: 12px;
  padding: 0.75rem;
  transition: all var(--transition-normal);
}

.contact-icon svg {
  width: 100%;
  height: 100%;
  stroke-width: 2;
}

.contact-method:hover .contact-icon {
  transform: scale(1.1);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(16, 185, 129, 0.2));
}

.contact-details h3 {
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-size: 1.125rem;
}

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

.contact-details span {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.social-link-contact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-primary);
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--transition-fast);
  border: 1px solid var(--border-color);
}

.social-link-contact:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.social-link-contact img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.contact-card {
  background: var(--bg-secondary);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.contact-card h3 {
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  font-size: 1.25rem;
}

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

.expectations-list li {
  margin-bottom: 1rem;
  color: var(--text-secondary);
  padding-left: 0;
}

.availability-info p {
  margin-bottom: 0.75rem;
  color: var(--text-secondary);
}

.status-available {
  color: var(--secondary-color);
  font-weight: 600;
}

/* FAQ Section */
.faq-section {
  padding: var(--section-padding);
  background: var(--bg-secondary);
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-primary);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-color);
}

.faq-item h3 {
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-size: 1.125rem;
}

.faq-item p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Responsive adjustments for Contact page */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .contact-form-container {
    padding: 2rem;
  }

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

  .contact-method {
    flex-direction: column;
    text-align: center;
  }

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



/* Print styles */
@media print {
  .navbar,
  .hero-cta,
  .contact-cta,
  .footer {
    display: none;
  }
}

/* Emergency footer logo fix for mobile */
@media (max-width: 768px) {
  .footer img[src*="logo2.png"],
  .footer img.footer-logo,
  footer img.footer-logo,
  .footer-logo,
  footer .footer-logo,
  .footer .footer-logo {
    max-width: 200px !important;
    width: 200px !important;
    height: auto !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
    transform: scale(1) !important;
  }
}

@media (max-width: 480px) {
  .footer img[src*="logo2.png"],
  .footer img.footer-logo,
  footer img.footer-logo,
  .footer-logo,
  footer .footer-logo,
  .footer .footer-logo {
    max-width: 220px !important;
    width: 220px !important;
    height: auto !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
    transform: scale(1) !important;
  }
}

@media (max-width: 360px) {
  .footer img[src*="logo2.png"],
  .footer img.footer-logo,
  footer img.footer-logo,
  .footer-logo,
  footer .footer-logo,
  .footer .footer-logo {
    max-width: 200px !important;
    width: 200px !important;
    height: auto !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
    transform: scale(1) !important;
  }
}

@media (max-width: 320px) {
  .footer img[src*="logo2.png"],
  .footer img.footer-logo,
  footer img.footer-logo,
  .footer-logo,
  footer .footer-logo,
  .footer .footer-logo {
    max-width: 180px !important;
    width: 180px !important;
    height: auto !important;
    object-fit: contain !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
    transform: scale(1) !important;
  }
}


