/* Performance Optimizations */
*,
*::before,
*::after {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  backface-visibility: hidden;
}

/* Base Styles */
:root {
  --primary: #2b6cb0;
  --primary-dark: #2c5282;
  --primary-light: #4299e1;
  --secondary: #38b2ac;
  --accent: #4fd1c5;
  --dark: #1a202c;
  --light: #ffffff;
  --gray-100: #f7fafc;
  --gray-200: #edf2f7;
  --gray-300: #e2e8f0;
  --gray-400: #cbd5e0;
  --gray-500: #a0aec0;
  --gray-600: #718096;
  --gray-700: #4a5568;
  --gray-800: #2d3748;
  --gray-900: #1a202c;
  --success: #38a169;
  --info: #3182ce;
  --warning: #dd6b20;
  --danger: #e53e3e;
  --light: #f7fafc;
  --dark: #1a202c;
  --font-sans: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'Fira Code', 'SFMono-Regular', Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
  --shadow-outline: 0 0 0 3px rgba(66, 153, 225, 0.5);
  --shadow-none: 0 0 #0000;
  --transition: all 0.3s ease;
  --transition-slow: all 0.5s ease;
  --transition-fast: all 0.15s ease;
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
}

/* Typing Effect */
.typing-text {
  font-size: 1.5rem;
  margin: 1rem 0;
  min-height: 2.5rem;
  color: #4a5568;
  text-align: center;
  font-weight: 500;
  font-family: var(--font-sans);
}

.cursor {
  display: inline-block;
  width: 3px;
  height: 1.5rem;
  background-color: #4a5568;
  margin-left: 2px;
  animation: blink 1s infinite;
  vertical-align: middle;
  margin-bottom: 0.2rem;
}

@keyframes blink {
  0% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 1; }
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --border-radius: 0.5rem;
  --border-radius-lg: 0.75rem;
  --border-radius-xl: 1rem;
  --border-radius-2xl: 1.5rem;
  --border-radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px; /* Adjust this value based on your header height */
}

/* Expertise Section */
.expertise-card.web-development {
  background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('https://source.unsplash.com/random/1920x1080/?technology');
  background-size: cover;
  background-position: center;
}

.expertise-card.data-science {
  background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../assets/images/nikita-kachanovsky-OVbeSXRk_9E-unsplash.jpg');
  background-size: cover;
  background-position: center;
}

.expertise-card.finance {
  background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../assets/images/henning-borgersen-4Uxu8wnjYOY-unsplash.jpg');
  background-size: cover;
  background-position: center;
}

.expertise-card.leadership {
  background-image: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('../assets/images/atlas-green-hVdZBDs2an0-unsplash.jpg');
  background-size: cover;
  background-position: center;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin: 0 auto 2rem;
  max-width: 1400px;
  padding: 0 1.5rem;
}

@media (max-width: 992px) {
  .expertise-grid {
    grid-template-columns: 1fr;
    max-width: 700px;
  }
}

.expertise-card {
  background-size: cover;
  background-position: center;
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  margin-bottom: 0;
}

.expertise-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1), rgba(0,0,0,0.9));
  z-index: 1;
}

.expertise-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.expertise-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  transition: transform 0.3s ease;
}

.expertise-card:hover .expertise-content {
  transform: translateY(-10px);
}

.expertise-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.expertise-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: white;
  font-weight: 700;
}

.expertise-card p {
  margin-bottom: 1.5rem;
  opacity: 0.9;
  line-height: 1.6;
}

.expertise-highlights {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.expertise-highlights li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  opacity: 0.9;
  line-height: 1.5;
}

.expertise-highlights li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
  font-size: 1.2rem;
  line-height: 1;
}

/* Ensure the skills section has proper spacing */
#skills {
  scroll-margin-top: 100px; /* Same as scroll-padding-top */
  position: relative;
  z-index: 1;
  padding-top: 80px; /* Add padding to prevent content from being hidden behind fixed header */
  margin-top: -80px; /* Compensate for the padding to maintain layout */
}

/* Creative Back to Top Button */
.back-to-top {
  --primary-color: #2b6cb0;
  --secondary-color: #4299e1;
  --text-color: #fff;
  --shadow-color: rgba(43, 108, 176, 0.3);
  --scroll-progress: 0%;
  
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--text-color);
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0;
  box-shadow: 0 4px 20px var(--shadow-color);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.9);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 1000;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.back-to-top.scrolling-down {
  animation: bounceDown 0.5s ease-in-out;
}

.back-to-top.scrolling-up {
  animation: bounceUp 0.5s ease-in-out;
}

.back-to-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.back-to-top:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 25px var(--shadow-color);
}

.back-to-top:hover::before {
  opacity: 1;
}

.back-to-top.clicked {
  animation: clickEffect 0.5s ease-out;
}

.back-to-top-arrow {
  font-size: 20px;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 2;
}

.back-to-top-text {
  position: absolute;
  font-size: 12px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.back-to-top:hover .back-to-top-text {
  opacity: 1;
  transform: translateY(20px);
}

.back-to-top:hover .back-to-top-arrow {
  transform: translateY(-10px);
}

/* Progress indicator */
.back-to-top::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.1s linear;
}

.back-to-top.show::after {
  transform: scaleX(1);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  animation: progressGrow 0.3s ease-out;
}

/* Particles effect */
.back-to-top-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
}

.particles {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, transparent 70%);
  opacity: 0;
  animation: particlesFade 1s ease-out;
}

/* Animations */
@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

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

@keyframes clickEffect {
  0% { transform: scale(1); }
  50% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

@keyframes progressGrow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes particlesFade {
  0% { transform: scale(0.5); opacity: 0.8; }
  100% { transform: scale(2); opacity: 0; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .back-to-top {
    width: 48px;
    height: 48px;
    right: 20px;
    bottom: 20px;
  }
  
  .back-to-top-text {
    display: none;
  }
  
  .back-to-top:hover .back-to-top-arrow {
    transform: none;
  }
}

/* Optimize font rendering */
body {
  text-rendering: optimizeSpeed;
  font-feature-settings: 'kern' 1;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: 'Poppins', sans-serif;
  line-height: 1.6;
  color: var(--gray-700);
  background-color: #f8f9fa;
  overflow-x: hidden;
}

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

.section {
  padding: 6rem 0;
  position: relative;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin: 0 auto 1rem;
  color: white;
  text-align: center;
  position: relative;
  display: block;
  width: 100%;
}

.section-title.about-title {
  font-size: 3.5rem;
  margin-bottom: 2rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

.bg-light {
  background-color: #f8fafc;
}

/* Services Section */
.services-section {
  background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85)), 
              url('https://source.unsplash.com/random/1920x1080/?tech') no-repeat center center/cover;
  background-attachment: fixed;
  padding: 6rem 0;
  position: relative;
  color: white;
  z-index: 1;
}

.services-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
  z-index: -1;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
  position: relative;
  padding: 0 1.5rem;
}

.section-subtitle {
  display: inline-block;
  color: var(--primary);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  padding-left: 15px;
}

.section-subtitle:before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 20px;
  background: var(--primary);
  border-radius: 3px;
}

.title-underline {
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  margin: 1.5rem auto 2rem;
  border-radius: 2px;
}

.section-description {
  color: var(--gray-600);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-top: 1.5rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  padding: 0 1.5rem;
}

.service-card {
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.service-card-front {
  padding: 2.5rem 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon i {
  font-size: 2.5rem;
  color: var(--primary);
  z-index: 2;
  transition: all 0.3s ease;
}

.icon-shape {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(99, 102, 241, 0.1);
  border-radius: 50%;
  z-index: 1;
  transform: scale(0.9);
  transition: all 0.3s ease;
}

.service-card:hover .icon-shape {
  transform: scale(1.1);
  background: rgba(99, 102, 241, 0.15);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  text-align: center;
  color: white;
  font-weight: 700;
}

.service-card p {
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  margin-bottom: 1.5rem;
  line-height: 1.7;
  flex: 1;
}

.service-features {
  margin: 1.5rem 0;
}

.feature {
  display: flex;
  align-items: center;
  margin-bottom: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  padding: 8px 12px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
}

.feature:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.feature i {
  color: var(--primary);
  margin-right: 0.7rem;
  font-size: 0.9rem;
}

.service-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.service-tech span {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  color: white;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.service-card:hover .service-tech span {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.cta-container {
  text-align: center;
  margin: 4rem 1.5rem 0;
  padding: 3rem 2rem;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-container p {
  font-size: 1.4rem;
  color: white;
  margin-bottom: 1.5rem;
  font-weight: 500;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.cta-container .btn-primary {
  padding: 0.9rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
  transition: all 0.3s ease;
}

.cta-container .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: var(--shadow);
}

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

.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 500;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.3s ease;
  padding: 0.8rem 1.8rem;
  border-radius: 6px;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.btn-outline:hover {
  background: transparent;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border-color: white;
}

.btn-outline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  z-index: -1;
}

.btn-outline:hover::before {
  width: 100%;
}

/* Specific to hero section buttons */
.hero .btn-outline {
  border-color: white;
  color: white;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.hero .btn-outline:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--primary);
  color: white;
}

.btn-small {
  padding: 0.5rem 1.5rem;
  font-size: 0.875rem;
}

/* Section Styling */
.section {
  padding: 5rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-underline {
  height: 4px;
  width: 80px;
  background: linear-gradient(90deg, var(--primary), #9b59b6);
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

/* Navigation */
.main-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: var(--transition);
  background-color: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

.main-nav.scrolled {
  padding: 1rem 0;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
}

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

.logo {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: var(--gray-700);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: var(--transition);
}

.nav-links a:hover,
.footer-links a:hover {
  color: #a5b4fc;
  background: rgba(165, 180, 252, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: rgba(165, 180, 252, 0.3);
}

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

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--primary);
  border-radius: 3px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* What I Offer Section */
.what-i-offer {
  margin: 6rem 0 8rem;
  text-align: center;
  position: relative;
  padding: 4rem 0;
  background: linear-gradient(145deg, rgba(108, 99, 255, 0.03) 0%, rgba(255, 107, 107, 0.03) 100%);
  border-radius: 20px;
  overflow: hidden;
}

.what-i-offer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0.8;
}

.what-i-offer .section-subtitle {
  font-size: 2.2rem;
  color: var(--dark);
  margin: 0 auto 4rem;
  position: relative;
  display: inline-block;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding: 0 1.5rem;
  text-shadow: 0 2px 10px rgba(108, 99, 255, 0.1);
}

.what-i-offer .section-subtitle::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 1rem;
}

/* Ensure skill cards in what-i-offer section have consistent height and spacing */
.what-i-offer .skill-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(108, 99, 255, 0.1);
  position: relative;
  z-index: 1;
  transform: translateY(0);
}

.what-i-offer .skill-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.what-i-offer .skill-card-front {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 2.5rem 2rem;
  background: white;
  position: relative;
  z-index: 2;
  border-radius: 16px;
  transition: all 0.3s ease;
}

.what-i-offer .skill-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.what-i-offer .skill-logo i {
  font-size: 2.5rem;
  color: var(--primary);
  transition: all 0.3s ease;
}

.what-i-offer .skill-card h3 {
  font-size: 1.5rem;
  margin: 1rem 0 1.5rem;
  color: var(--gray-900);
  transition: color 0.3s ease;
}

.what-i-offer .tech-stack {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
}

.what-i-offer .tech-item {
  background: rgba(108, 99, 255, 0.08);
  color: var(--gray-700);
  padding: 0.6rem 1.1rem;
  border-radius: 50px;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(108, 99, 255, 0.15);
  font-weight: 500;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.what-i-offer .tech-item i {
  margin-right: 0.4rem;
  font-size: 0.9em;
  color: var(--primary);
  transition: color 0.3s ease;
}

/* Hover Effects */
.what-i-offer .skill-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  border-color: rgba(108, 99, 255, 0.2);
}

.what-i-offer .skill-card:hover::after {
  opacity: 1;
}

.what-i-offer .skill-card:hover .skill-logo {
  transform: scale(1.1);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.what-i-offer .skill-card:hover .skill-logo i {
  color: white;
}

.what-i-offer .skill-card:hover h3 {
  color: var(--primary);
}

.what-i-offer .tech-item:hover {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(108, 99, 255, 0.3);
  border-color: transparent;
}

.what-i-offer .tech-item:hover i {
  color: white;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem 10rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--dark) 0%, var(--gray-900) 100%);
  color: white;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 0;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-description {
  font-size: 1.25rem;
  line-height: 1.6;
  color: var(--gray-300);
  margin: 1.5rem auto 2rem;
  max-width: 700px;
}

.highlight {
  color: #a5b4fc;
  font-weight: 600;
  position: relative;
  display: inline-block;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: color 0.3s ease;
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 6px;
  background: rgba(165, 180, 252, 0.3);
  z-index: -1;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.highlight:hover {
  color: #c7d2fe;
}

.highlight:hover::after {
  background: rgba(199, 210, 254, 0.5);
  height: 8px;
  bottom: 0;
}

/* Profile Image with Animation */
.profile-image {
  width: 280px;
  height: 280px;
  margin: 0 auto 3rem;
  border-radius: 50%;
  overflow: hidden;
  border: 8px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25), 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
              box-shadow 0.4s ease,
              border-color 0.4s ease;
  will-change: transform, box-shadow;
  position: relative;
  z-index: 1;
}

.profile-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, rgba(99,102,241,0.8), rgba(79,70,229,0.8));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.profile-image:hover {
  transform: scale(1.05) translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.3);
}

.profile-image:hover::before {
  opacity: 1;
  animation: rotate 6s linear infinite;
}

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

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.profile-image:hover img {
  transform: scale(1.08);
}

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {
  .profile-image,
  .profile-image:hover,
  .profile-image img,
  .profile-image:hover img {
    transition: none;
    animation: none;
  }
}

/* Hero Name Styling */
.hero h1 {
  font-size: 5rem;
  margin-bottom: 1rem;
  color: white;
  line-height: 1.1;
  font-weight: 800;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards 0.3s;
}

.hero-name {
  display: block;
  line-height: 1.1;
  margin: 0.5rem 0;
  transition: all 0.3s ease;
}

.name-gradient {
  background: linear-gradient(90deg, #ffffff, #c9d6ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  margin: 0 0.25rem;
}

.name-accent {
  color: var(--primary);
  text-shadow: 0 0 10px rgba(108, 99, 255, 0.5);
  position: relative;
  display: inline-block;
  margin: 0 0.25rem;
}

.name-accent::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.3);
  z-index: -1;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.name-accent:hover::after {
  height: 12px;
  background: rgba(255, 255, 255, 0.5);
}

.typing-text {
  font-size: 2rem;
  margin: 1.5rem 0;
  color: var(--gray-300);
  min-height: 2.5rem;
  font-weight: 500;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Poppins', sans-serif;
}

#typed {
  color: var(--primary);
  font-weight: 600;
  min-width: 250px;
  text-align: center;
  display: inline-block;
  text-shadow: 0 0 10px rgba(108, 99, 255, 0.3);
}

.typing-text .cursor {
  display: inline-block;
  vertical-align: middle;
  width: 3px;
  height: 2rem;
  background-color: var(--primary);
  margin-left: 4px;
  animation: blink 0.8s step-end infinite;
  box-shadow: 0 0 10px var(--primary);
  margin-bottom: 4px;
}

@keyframes blink {
  from, to { opacity: 1; }
  50% { opacity: 0; }
}

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

.hero-quote {
  max-width: 700px;
  margin: 0 auto 2.5rem;
  padding: 1.5rem 2rem;
  position: relative;
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.7;
  font-size: 1.3rem;
  text-align: center;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  opacity: 0.95;
  transition: all 0.3s ease;
}

.hero-quote p {
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
}

.hero-quote p::before,
.hero-quote p::after {
  content: '"';
  font-family: Georgia, serif;
  font-size: 2rem;
  color: var(--primary);
  opacity: 0.5;
  position: absolute;
  line-height: 1;
}

.hero-quote p::before {
  top: -0.5rem;
  left: -1.5rem;
}

.hero-quote p::after {
  bottom: -1.5rem;
  right: -1.5rem;
}

.hero-quote cite {
  display: block;
  font-style: normal;
  font-weight: 500;
  color: var(--gray-300);
  font-size: 1rem;
  margin-top: 1rem;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  position: relative;
  z-index: 2;
}

#download-cv {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

#download-cv:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(79, 70, 229, 0.3);
}

#download-cv i {
  font-size: 1.1em;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  animation: bounce 2s infinite;
  margin-top: 3rem;
  padding-top: 3rem;
  z-index: 10;
}

.scroll-indicator i {
  font-size: 1.5rem;
  margin-top: 0.5rem;
}

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

/* About Section */
/* About Section Header */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  z-index: 1;
  padding: 0 20px;
}

.section-subtitle {
  display: inline-block;
  color: var(--primary);
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.section-subtitle::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background: var(--primary);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--dark);
  line-height: 1.2;
}

.section-title .text-gradient {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.5rem 0;
}

.section-divider span {
  display: block;
  width: 50px;
  height: 2px;
  background: var(--primary);
  opacity: 0.5;
}

.section-divider i {
  color: var(--primary);
  margin: 0 15px;
  font-size: 1.2rem;
}

.section-description {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--gray-600);
  line-height: 1.8;
}

/* Expertise Section */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.expertise-card {
  background: #fff;
  border-radius: 15px;
  padding: 2.5rem 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.expertise-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: all 0.4s ease;
}

.expertise-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.expertise-card:hover::before {
  height: 100%;
  opacity: 0.03;
}

.card-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
}

.expertise-card:hover .card-icon {
  transform: rotateY(180deg);
}

.card-content {
  position: relative;
  z-index: 2;
}

.expertise-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark);
  transition: all 0.3s ease;
}

.expertise-card:hover h3 {
  color: var(--primary);
}

.expertise-card p {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  line-height: 1.7;
  transition: all 0.3s ease;
}

.expertise-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
}

.expertise-highlights li {
  position: relative;
  padding: 0.5rem 0 0.5rem 2rem;
  color: var(--gray-700);
  font-size: 0.95rem;
  line-height: 1.6;
  transition: all 0.3s ease;
}

.expertise-highlights li i {
  color: var(--primary);
  margin-right: 0.5rem;
  font-size: 0.8rem;
  position: absolute;
  left: 0;
  top: 0.9rem;
}

.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(43, 108, 176, 0.1), rgba(56, 178, 172, 0.1));
  opacity: 0;
  transition: all 0.4s ease;
  z-index: 0;
}

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

/* Responsive Styles */
@media (max-width: 768px) {
  .expertise-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .section-description {
    font-size: 1rem;
  }
}

.about-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

.about-title-wrapper {
  display: inline-block;
  position: relative;
}

.about-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
  color: #e0e0ff; /* Light blue tint for better visibility */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.5px;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
}

.about-title .text-gradient {
  margin-left: 0.5rem;
  display: inline-block;
  background: linear-gradient(135deg, #00d4ff 0%, #6a11cb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
  z-index: 1;
}

.about-title .text-gradient::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #00d4ff, #6a11cb);
  border-radius: 3px;
  z-index: -1;
  opacity: 0.7;
}

.text-gradient {
  background: linear-gradient(90deg, var(--primary), #9b59b6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.title-underline {
  height: 4px;
  width: 80px;
  background: linear-gradient(90deg, var(--primary), #9b59b6);
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

.about-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.about-text {
  background: rgba(30, 41, 59, 0.8);
  padding: 2.5rem;
  border-radius: 12px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
  line-height: 1.8;
  font-size: 1.1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.intro-text {
  font-size: 1.25rem;
  line-height: 1.9;
  color: #f8fafc;
  margin-bottom: 2.5rem;
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.highlight {
  color: #a5b4fc;
  font-weight: 600;
  position: relative;
  display: inline-block;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: color 0.3s ease;
}

.highlight::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 6px;
  background: rgba(165, 180, 252, 0.4);
  z-index: -1;
  border-radius: 3px;
  transition: all 0.3s ease;
  transform: scaleX(0.9);
}

.highlight:hover {
  color: #c7d2fe;
}

.highlight:hover::after {
  background: rgba(199, 210, 254, 0.6);
  height: 8px;
  bottom: 0;
}

.about-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
  gap: 2rem;
  margin: 2rem 0;
}

.detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background: rgba(30, 41, 59, 0.6);
  padding: 1.8rem;
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.detail-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.2);
  border-color: rgba(165, 180, 252, 0.2);
  background: rgba(30, 41, 59, 0.8);
}

.detail-item i {
  color: #a5b4fc;
  font-size: 1.3rem;
  width: 30px;
  height: 30px;
  background: rgba(165, 180, 252, 0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-item h4 {
  margin: 0 0 0.5rem;
  color: white;
  font-size: 1.25rem;
}

.detail-item p {
  margin: 0.5rem 0;
  color: #e2e8f0;
  font-size: 1.1rem;
  font-weight: 500;
  line-height: 1.6;
}

.detail-meta {
  font-size: 0.95rem;
  color: #a5b4fc;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.3rem;
}

.detail-meta::before {
  content: '📍';
  font-size: 0.9rem;
}

.education-item {
  margin-bottom: 2rem;
  padding: 1.5rem;
  padding-left: 2rem;
  border-left: 4px solid #a5b4fc;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 8px 8px 0;
  transition: all 0.3s ease;
}

.education-item:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateX(5px);
}

.education-item .detail-item h4 {
  font-size: 1.25rem;
  color: #f8fafc;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
}

.education-item p {
  margin-bottom: 0.5rem;
  color: #e2e8f0;
  line-height: 1.7;
  font-size: 1.05rem;
}

.education-item .date {
  font-size: 0.95rem;
  color: #a5b4fc;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

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

.skill-category {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.skill-category:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.skill-category h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--gray-900);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.skill {
  margin-bottom: 1.25rem;
}

.skill:last-child {
  margin-bottom: 0;
}

.skill-name {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--gray-700);
}

.skill-bar {
  height: 8px;
  background-color: var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
}

.skill-level {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 4px;
  width: 0;
  transition: width 1.5s ease-in-out;
}

/* Skills Section */
.dark-section {
  background-color: #0a0e17;
  color: #fff;
  padding: 6rem 0;
  position: relative;
}

.skills-section {
  position: relative;
  overflow: hidden;
}

.skills-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 20%, rgba(67, 198, 172, 0.1) 0%, rgba(106, 17, 203, 0.1) 90%);
  z-index: 0;
}

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

.skills-category {
  margin-bottom: 1.5rem;
  padding: 0 0.5rem;
}

.category-title {
  font-size: 1rem;
  color: #fff;
  margin: 0.75rem 0 0.5rem;
  position: relative;
  padding-bottom: 0.25rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.category-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 3px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem auto;
  padding: 1rem;
  width: 100%;
  max-width: 1200px;
}

.skill-card {
  -webkit-perspective: 1000px;
  perspective: 1000px;
  height: 100%;
  min-height: 350px;
  cursor: pointer;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  width: 100%;
  position: relative;
  z-index: 1;
}

.skill-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  overflow: hidden;
  background: white;
}

.skill-card.active .skill-card-inner {
  transform: rotateY(180deg) !important;
}

.skill-card-front,
.skill-card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  padding: 2.5rem 2rem;
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.5s ease;
  margin: 0;
  border: none;
}

/* Debug styles - will help us see if the elements are being targeted */
.skill-card[data-skill] .skill-card-back {
  /* Add a fallback color in case the image doesn't load */
  background-color: #2c3e50;
  /* Ensure the element has dimensions */
  min-height: 300px;
  /* Add border to help with debugging */
  border: 2px solid rgba(255, 255, 255, 0.1);
}

/* Web Development Card */
.skill-card[data-skill="web"] .skill-card-back {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
              url('portfolio images/van-tay-media--S2-AKdWQoQ-unsplash.jpg') no-repeat center center/cover;
}

/* Data Science Card */
.skill-card[data-skill="data"] .skill-card-back {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
              url('portfolio images/luke-chesser-JKUTrJ4vK00-unsplash.jpg') no-repeat center center/cover;
}

/* Math Enthusiast Card */
.skill-card[data-skill="math"] .skill-card-back {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
              url('portfolio images/dan-cristian-padure-h3kuhYUCE9A-unsplash.jpg') no-repeat center center/cover;
}

/* Finance Analyst Card */
.skill-card[data-skill="finance"] .skill-card-back {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
              url('https://source.unsplash.com/random/1920x1080/?tech') no-repeat center center/cover;
}

.skill-card-back {
  transform: rotateY(180deg) !important;
  overflow-y: auto !important;
  text-align: left;
  padding: 2rem;
}

.skill-card-back h3 {
  margin-bottom: 1.5rem;
  color: var(--primary);
  text-align: center;
}

.skill-details h4 {
  color: var(--gray-800);
  margin: 1.5rem 0 0.75rem;
  font-size: 1.1rem;
}

.skill-details ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.skill-details li {
  padding: 0.5rem 0;
  font-size: 1rem;
  color: var(--gray-600);
  transition: all 0.3s ease;
}

.skill-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 0.5rem 0.25rem;
  text-align: center;
  transition: all 0.2s ease;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70px;
}

.skill-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  border-color: var(--primary-light);
  background: rgba(66, 153, 225, 0.1);
}

.skill-icon {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
  transition: transform 0.2s ease;
  display: inline-block;
  width: 100%;
  text-align: center;
}

.skill-item:hover .skill-icon {
  transform: scale(1.2);
  transition: transform 0.3s ease;
  filter: brightness(1.1);
}

.skill-name {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  color: #e0e0ff;
  margin-top: 0.1rem;
  text-align: center;
  width: 100%;
  line-height: 1.1;
  opacity: 0.9;
}

/* Skill-specific colors */
.skill-item[data-skill="html"] .skill-icon { color: #E44D26; }
.skill-item[data-skill="css"] .skill-icon { color: #264DE4; }
.skill-item[data-skill="javascript"] .skill-icon { color: #F7DF1E; }
.skill-item[data-skill="react"] .skill-icon { color: #61DAFB; }
.skill-item[data-skill="nodejs"] .skill-icon { color: #68A063; }
.skill-item[data-skill="express"] .skill-icon { color: #000000; }
.skill-item[data-skill="mongodb"] .skill-icon { color: #47A248; }
.skill-item[data-skill="mysql"] .skill-icon { color: #4479A1; }
.skill-item[data-skill="python"] .skill-icon { color: #3776AB; }
.skill-item[data-skill="r-project"] .skill-icon { color: #276DC3; }
.skill-item[data-skill="git"] .skill-icon { color: #F05032; }
.skill-item[data-skill="github"] .skill-icon { color: #181717; }
.skill-item[data-skill="docker"] .skill-icon { color: #2496ED; }
.skill-item[data-skill="aws"] .skill-icon { color: #FF9900; }
.skill-item[data-skill="figma"] .skill-icon { color: #F24E1E; }
.skill-item[data-skill="adobe-xd"] .skill-icon { color: #FF61F6; }
.skill-item[data-skill="photoshop"] .skill-icon { color: #31A8FF; }
.skill-item[data-skill="illustrator"] .skill-icon { color: #FF9A00; }
.skill-item[data-skill="excel"] .skill-icon { color: #217346; }
.skill-item[data-skill="word"] .skill-icon { color: #2B579A; }
.skill-item[data-skill="powerpoint"] .skill-icon { color: #D24726; }
.skill-item[data-skill="outlook"] .skill-icon { color: #0078D4; }
.skill-item[data-skill="teams"] .skill-icon { color: #6264A7; }
.skill-item[data-skill="tableau"] .skill-icon { color: #E97627; }
.skill-item[data-skill="powerbi"] .skill-icon { color: #F2C811; }
.skill-item[data-skill="pandas"] .skill-icon { color: #150458; }
.skill-item[data-skill="numpy"] .skill-icon { color: #013243; }
.skill-item[data-skill="tensorflow"] .skill-icon { color: #FF6F00; }
.skill-item[data-skill="vscode"] .skill-icon { color: #007ACC; }
.skill-item[data-skill="postman"] .skill-icon { color: #FF6C37; }
.skill-item[data-skill="slack"] .skill-icon { color: #4A154B; }
.skill-item[data-skill="trello"] .skill-icon { color: #0052CC; }

/* Quantitative Analysis specific styling */
.skill-item[data-skill="quant"] .skill-icon {
  color: #4CAF50; /* Green color for finance/analysis */
  font-size: 1.3rem; /* Slightly larger icon */
}

.skill-item[data-skill="quant"]:hover .skill-icon {
  color: #388E3C; /* Darker green on hover */
  transform: scale(1.3); /* More pronounced scale on hover */
}

.skill-item[data-skill="quant"] {
  background: rgba(76, 175, 80, 0.1); /* Subtle background */
  border-color: rgba(76, 175, 80, 0.3); /* Matching border */
}

.skill-item[data-skill="quant"]:hover {
  background: rgba(76, 175, 80, 0.15);
  border-color: rgba(76, 175, 80, 0.5);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
  }
  
  .skill-item {
    padding: 1rem 0.5rem;
  }
  
  .skill-icon {
    font-size: 2rem;
  }
  
  .skill-name {
    font-size: 0.85rem;
  }
}

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

.section-subtitle {
  text-align: center;
  color: var(--gray-600);
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem auto;
  padding: 1rem;
  width: 100%;
  max-width: 1200px;
}

.skill-card {
  -webkit-perspective: 1000px;
  perspective: 1000px;
  height: 100%;
  min-height: 350px;
  cursor: pointer;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  width: 100%;
  position: relative;
  z-index: 1;
}

.skill-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  overflow: hidden;
  background: white;
}

.skill-card.active .skill-card-inner {
  transform: rotateY(180deg) !important;
}

.skill-card-front,
.skill-card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);
  padding: 2.5rem 2rem;
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.5s ease;
  margin: 0;
  border: none;
}

/* Debug styles - will help us see if the elements are being targeted */
.skill-card[data-skill] .skill-card-back {
  /* Add a fallback color in case the image doesn't load */
  background-color: #2c3e50;
  /* Ensure the element has dimensions */
  min-height: 300px;
  /* Add border to help with debugging */
  border: 2px solid rgba(255, 255, 255, 0.1);
}

/* Web Development Card */
.skill-card[data-skill="web"] .skill-card-back {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
              url('portfolio images/van-tay-media--S2-AKdWQoQ-unsplash.jpg') no-repeat center center/cover;
}

/* Data Science Card */
.skill-card[data-skill="data"] .skill-card-back {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
              url('portfolio images/luke-chesser-JKUTrJ4vK00-unsplash.jpg') no-repeat center center/cover;
}

/* Math Enthusiast Card */
.skill-card[data-skill="math"] .skill-card-back {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
              url('portfolio images/dan-cristian-padure-h3kuhYUCE9A-unsplash.jpg') no-repeat center center/cover;
}

/* Finance Analyst Card */
.skill-card[data-skill="finance"] .skill-card-back {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)),
              url('https://source.unsplash.com/random/1920x1080/?tech') no-repeat center center/cover;
}

.skill-card-back {
  transform: rotateY(180deg) !important;
  overflow-y: auto !important;
  text-align: left;
  padding: 2rem;
}

.skill-card-back h3 {
  margin-bottom: 1.5rem;
  color: var(--primary);
  text-align: center;
}

.skill-details h4 {
  color: var(--gray-800);
  margin: 1.5rem 0 0.75rem;
  font-size: 1.1rem;
}

.skill-details ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.skill-details li {
  margin-bottom: 0.5rem;
  color: var(--gray-700);
  display: flex;
  align-items: flex-start;
}

.skill-details li i {
  color: var(--primary);
  margin-right: 0.5rem;
  margin-top: 0.2rem;
  font-size: 0.8rem;
}

.view-more,
.view-less {
  margin-top: 1.5rem;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.view-more i,
.view-less i {
  margin-right: 0.5rem;
  transition: transform 0.3s ease;
}

.skill-card:hover .view-more {
  color: var(--secondary);
  transform: translateY(2px);
}

.view-less {
  margin-top: 1.5rem;
  color: var(--primary);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  transition: all 0.3s ease;
}

.view-less:hover {
  color: var(--secondary);
}

.view-less:hover i {
  transform: translateX(-3px);
}

.skill-icon {
  width: 90px;
  height: 90px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  font-size: 2.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(99, 102, 241, 0.3);
}

.skill-card:hover .skill-icon {
  transform: scale(1.05);
  box-shadow: 0 15px 35px rgba(99, 102, 241, 0.4);
}

.skill-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--gray-900);
  transition: all 0.3s ease;
}

.skill-card p {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.skill-tags span {
  background: var(--gray-100);
  color: var(--gray-700);
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.skill-card:hover .skill-tags span {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(99, 102, 241, 0.2);
}

/* Scrollbar styling for the back of the card */
.skill-card-back::-webkit-scrollbar {
  width: 6px;
}

.skill-card-back::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.skill-card-back::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}

.skill-card-back::-webkit-scrollbar-thumb:hover {
  background: var(--secondary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .skill-card {
    min-height: 320px;
  }
  
  .skill-card-front,
  .skill-card-back {
    padding: 2rem 1.5rem;
  }
}

/* Other Experiences Section */
#experiences {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 6rem 0;
}

.section-subtitle {
  text-align: center;
  color: #6c757d;
  font-size: 1.1rem;
  margin-bottom: 3rem;
  font-weight: 400;
}

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

.experience-card {
  margin-bottom: 2rem;
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: auto;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

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

.experience-icon {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: white;
  font-size: 2.5rem;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.experience-card h3 {
  padding: 1.5rem 1.5rem 0.5rem;
  margin: 0;
  font-size: 1.4rem;
  color: #2d3748;
}

.experience-details {
  padding: 0 1.5rem 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.experience-details p {
  color: #4a5568;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.experience-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}

.experience-tech li {
  background: #edf2f7;
  color: #2d3748;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.btn-outline {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: transparent;
  color: #4f46e5;
  border: 2px solid #4f46e5;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-top: auto;
  align-self: flex-start;
}

.btn-outline:hover {
  background: #4f46e5;
  color: white;
  transform: translateY(-2px);
}

/* Experiences Section */
#experiences {
  padding: 5rem 0;
  background-color: #f8f9fa;
}

#experiences .section-header {
  text-align: center;
  margin-bottom: 3rem;
}

#experiences .section-title {
  font-size: 2.5rem;
  color: #2d3748;
  margin-bottom: 1rem;
  font-weight: 700;
}

#experiences .section-subtitle {
  color: #718096;
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.experiences-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.experience-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.experience-image {
  height: 200px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.experience-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.8), rgba(155, 89, 182, 0.8));
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.experience-card:hover .experience-overlay {
  opacity: 0.7;
}

.experience-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: white;
  z-index: 2;
}

.experience-content {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.experience-header {
  margin-bottom: 1rem;
}

.experience-header h3 {
  font-size: 1.4rem;
  color: #2d3748;
  margin: 0 0 0.5rem;
  font-weight: 700;
}

.experience-category {
  display: inline-block;
  background: #edf2f7;
  color: #4a5568;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
}

.experience-description {
  color: #4a5568;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.experience-footer {
  margin-top: auto;
}

.experience-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.experience-tech li {
  background: #f7fafc;
  color: #4a5568;
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
}

.experience-actions {
  text-align: right;
}

.experience-actions .btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  border: 2px solid #6c63ff;
  color: #6c63ff;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.experience-actions .btn-outline:hover {
  background: #6c63ff;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(108, 99, 255, 0.3);
}

/* Experience Card Backgrounds */
.experience-card.finance .experience-image {
  background-image: url('portfolio%20images/arthur-a-9rz5x8LGBb8-unsplash.jpg');
}

.experience-card.web-dev .experience-image {
  background-image: url('portfolio%20images/vitalii7577-jW7C-KidYi0-unsplash.jpg');
}

.experience-card.ml .experience-image {
  background-image: url('portfolio%20images/kanchanara-GnWfl_nnZro-unsplash.jpg');
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .experiences-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .experiences-grid {
    grid-template-columns: 1fr;
  }
  
  #experiences .section-title {
    font-size: 2rem;
  }
  
  #experiences .section-subtitle {
    font-size: 1rem;
  }
}

/* Portfolio Section */
#portfolio {
  position: relative;
  overflow: hidden;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.portfolio-item {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
  position: relative;
}

/* Featured Project Styling */
.portfolio-item:first-child {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
              url('https://images.unsplash.com/photo-1517694712202-14dd9538aa97?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1470&q=80') center/cover no-repeat;
  background-attachment: fixed;
  color: white;
  border: 2px solid rgba(255, 215, 0, 0.3);
}

.portfolio-item:first-child .portfolio-content {
  background: rgba(15, 23, 42, 0.7);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  padding: 1.5rem;
  flex: 1;
}

.portfolio-item:first-child h3 {
  color: #00eeff;
  margin-top: 0;
}

.portfolio-item:first-child p {
  color: #e2e8f0;
}

.portfolio-item:first-child .portfolio-tags span {
  background: rgba(84, 194, 78, 0.1);
  color: #0dff00;
  border: 1px solid rgba(84, 194, 78, 0.3);
  border-radius: 50px;
  padding: 0.25rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
}

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

.portfolio-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.portfolio-img {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
}

/* Carousel Styles */
.carousel {
  position: relative;
  padding-top: 0;
  height: 100%;
}

.carousel-inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.carousel-item.active {
  opacity: 1;
  z-index: 1;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-controls {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 15px;
  z-index: 10;
}

.carousel-prev,
.carousel-next {
  background: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  color: #333;
  transition: all 0.3s ease;
  z-index: 10;
}

.carousel-prev:hover,
.carousel-next:hover {
  background: var(--primary);
  color: white;
}

.carousel-dots {
  display: flex;
  gap: 8px;
  background: rgba(255, 255, 255, 0.7);
  padding: 5px 10px;
  border-radius: 20px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: var(--primary);
  transform: scale(1.2);
}

/* Ensure portfolio overlay stays on top of carousel */
.portfolio-overlay {
  z-index: 5;
}

.portfolio-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-img img {
  transform: scale(1.05);
}

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

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.portfolio-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
  transform: translateY(20px);
  transition: var(--transition);
  transition-delay: 0.1s;
}

.portfolio-content p {
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  transition-delay: 0.2s;
}

.portfolio-overlay .btn {
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  transition-delay: 0.3s;
}

.portfolio-item:hover .portfolio-overlay h3,
.portfolio-item:hover .portfolio-overlay p,
.portfolio-item:hover .portfolio-overlay .btn {
  opacity: 1;
  transform: translateY(0);
}

/* Portfolio Filter Buttons */
.portfolio-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: 0.5rem 1.5rem;
  background: white;
  border: 2px solid var(--primary);
  color: var(--primary);
  border-radius: 50px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}

.filter-btn:hover, .filter-btn.active {
  background: var(--primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(43, 108, 176, 0.3);
}

.portfolio-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.5rem 1.5rem;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: 50px;
  cursor: pointer;
  font-weight: 500;
  color: var(--gray-700);
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: white;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

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

.portfolio-item {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease forwards;
}

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

.portfolio-item:hover {
  transform: translateY(-5px) !important;
  box-shadow: var(--shadow-lg);
}

.portfolio-image {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
}

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

.portfolio-item:hover .portfolio-image img {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(99, 102, 241, 0.9), rgba(79, 70, 229, 0.9));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  text-align: center;
  color: white;
  opacity: 0;
  transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  transform: translateY(20px);
  transition: var(--transition);
  transition-delay: 0.1s;
}

.portfolio-overlay p {
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  transition-delay: 0.2s;
}

.portfolio-overlay .btn {
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  transition-delay: 0.3s;
}

.portfolio-item:hover .portfolio-overlay h3,
.portfolio-item:hover .portfolio-overlay p,
.portfolio-item:hover .portfolio-overlay .btn {
  opacity: 1;
  transform: translateY(0);
}

/* Skills Preview Section */
.skills-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin: 3rem 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.skill-category {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 2rem;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.skill-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.category-title {
  font-size: 1.5rem;
  color: white;
  margin-bottom: 1.5rem;
  text-align: center;
  position: relative;
  padding-bottom: 0.75rem;
}

.category-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #9b59b6);
  border-radius: 2px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.skill-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 0.5rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  cursor: default;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 100px;
}

.skill-logo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(108, 99, 255, 0.1), rgba(155, 89, 182, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.skill-logo:hover {
  transform: translateY(-3px);
  border-color: rgba(108, 99, 255, 0.3);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

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

.skill-logo i {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.skill-logo:hover i {
  transform: scale(1.1);
}

.skill-name {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

/* Specific icon colors */
.fa-html5 { color: #e34f26; }
.fa-css3-alt { color: #264de4; }
.fa-js { color: #f7df1e; }
.fa-react { color: #61dafb; }
.fa-node-js { color: #68a063; }
.fa-git-alt { color: #f34f29; }
.fa-github { color: #333; }
.fa-figma { color: #f24e1e; }
.fa-fire { color: #ffca28; } /* Firebase */
.fa-bootstrap { color: #7952b3; }
.fa-angular { color: #dd0031; }
.fa-php { color: #777bb4; }
.fa-database { color: #336791; }
.fa-book { color: #4a90e2; } /* Libraries */
.fa-mobile-alt { color: #2ecc71; } /* Responsive/Media Queries */
.fa-pencil-ruler { color: #ff61f6; } /* Adobe XD */
.fa-python { color: #3776ab; }
.fa-chart-line { color: #4bc0c0; }
.fa-robot { color: #9b59b6; }
.fa-chart-bar { color: #e74c3c; }
.fa-r-project { color: #276dc3; }

/* Responsive adjustments */
@media (max-width: 992px) {
  .skills-preview {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .skill-logo {
    padding: 1.25rem 0.75rem;
  }
  
  .skill-logo i {
    font-size: 2.25rem;
  }
}

@media (max-width: 480px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .skill-category {
    padding: 1.5rem 1rem;
  }
  
  .skill-logo {
    padding: 1rem 0.5rem;
  }
  
  .skill-logo i {
    font-size: 2rem;
  }
  
  .skill-name {
    font-size: 0.8rem;
  }
}

/* Contact Section */
.contact-title {
  color: #00ff40 !important;
  text-shadow: 0 0 10px rgba(0, 255, 106, 0.3);
}

.btn-outline {
  color: #3cff00;
  border-color: #3cff00;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background-color: rgba(0, 255, 106, 0.1);
  box-shadow: 0 0 15px rgba(0, 255, 106, 0.3);
}
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
}

.contact-info h3 {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: var(--gray-900);
}

.contact-info p {
  color: var(--gray-600);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.contact-details {
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.25rem;
}

.contact-item i {
  width: 40px;
  height: 40px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  font-size: 1rem;
}

.contact-item span {
  color: var(--gray-700);
  font-weight: 500;
}

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

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: white;
  color: var(--primary);
  border-radius: 50%;
  font-size: 1.3rem;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

/* Instagram specific styles */
.social-links a[href*="instagram"] {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: white;
}

.social-links a:hover {
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Instagram hover effect */
.social-links a[href*="instagram"]:hover {
  background: linear-gradient(45deg, #ff8a00, #e52e71, #ff0084, #d300c5, #7638fa);
  color: white;
}

.contact-form {
  background: white;
  padding: 2.5rem;
  border-radius: 10px;
  box-shadow: var(--shadow);
}

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

.form-group:last-child {
  margin-bottom: 0;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1.25rem;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  color: var(--gray-700);
  transition: var(--transition);
}

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

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

/* Form Messages */
#formMessage {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  text-align: center;
}

#formMessage.show {
  opacity: 1;
  transform: translateY(0);
}

#formMessage.success {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #34d399;
}

#formMessage.error {
  background-color: #fee2e2;
  color: #b91c1c;
  border: 1px solid #f87171;
}

/* Loading Spinner */
.btn-loader {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
  margin-right: 8px;
  vertical-align: middle;
}

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

/* Disabled button state */
.btn:disabled {
  opacity: 0.8;
  cursor: not-allowed;
}

/* Footer */
.footer {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: white;
  padding: 5rem 0 3rem;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 4rem;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.footer-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.footer-logo {
  font-size: 2.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
  display: inline-block;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer p {
  color: #cbd5e1;
  margin-bottom: 2.5rem;
  line-height: 1.8;
  font-size: 1.1rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 2px rgba(210, 13, 13, 0.2);
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 2rem 0 2.5rem;
  padding: 0 1rem;
}

.footer-links a {
  color: #4ded17 !important; /* Force white color */
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 600; /* Slightly bolder */
  font-size: 1.1rem;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15); /* Lighter background for better contrast */
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); /* Darker shadow for better readability */
  letter-spacing: 0.5px;
}

.footer-links a:hover {
  color: #4ded17 !important; /* Keep white on hover */
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  font-size: 1.35rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* LinkedIn - Original Blue */
.footer-social a[href*="linkedin"] {
  color: #0a66c2;
}

/* GitHub - Original Color */
.footer-social a[href*="github"] {
  color: #f5f5f5;
}

/* Twitter - Original Blue */
.footer-social a[href*="twitter"] {
  color: #1da1f2;
}

/* Instagram - More Visible Gradient */
.footer-social a[href*="instagram"] {
  color: #f70404;
}

.footer-social a[href*="instagram"]::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: inherit;
  border-radius: 50%;
  z-index: -1;
  opacity: 0.2;
  transition: opacity 0.3s ease;
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Hover state for Instagram */
.footer-social a[href*="instagram"]:hover {
  background: linear-gradient(45deg, #f70404, #f30505, #c13584, #e90505, #e90505);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-social a[href*="instagram"]:hover::before {
  opacity: 0.3;
  color: #f70404;
}

.copyright {
  color: var(--gray-500);
  font-size: 0.875rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 3rem;
  }
  
  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .skills-preview {
    margin-top: 3rem;
  }
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: white;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: var(--transition);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .typing-text {
    font-size: 1.25rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
  }
  
  .btn {
    width: 100%;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .skills-grid {
    grid-template-columns: 1fr;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .typing-text {
    font-size: 1.1rem;
  }
  
  .profile-image {
    width: 150px;
    height: 150px;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .filter-btn {
    padding: 0.4rem 1rem;
    font-size: 0.875rem;
  }
}

/* Projects Section */
#projects {
  position: relative;
  padding: 4rem 0;
  margin: 2rem auto;
  max-width: 1200px;
  width: 90%;
  box-shadow: 0 4px 20px rgba(8, 127, 247, 0.3);
  background: linear-gradient(135deg, #212eba86, #21ba598c);
  border-radius: 30px;
  overflow: hidden;
  box-sizing: border-box;
}

#projects::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(2, 24, 42, 0.708) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(14, 75, 124, 0.605) 0%, transparent 40%);
  z-index: 0;
}

#projects .container {
  position: relative;
  z-index: 1;
  padding: 0 2rem;
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Project Cards */
.experiences-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.experience-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
  border: 1px solid #e2e8f0;
  transform: translateY(0);
  background-color: #ffffff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.experience-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  z-index: 2;
  border-color: #e2e8f0;
}

.experience-card:hover .experience-overlay {
  opacity: 0.7;
}

.experience-card:hover .experience-icon {
  transform: translate(-50%, -50%) scale(1.05);
  opacity: 1;
}

/* Project Card Backgrounds */
.experience-card:nth-child(1) .experience-image {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.8)), 
              url('../assets/images/kevin-matos-Nl_FMFpXo2g-unsplash.jpg') center/cover no-repeat;
}

.experience-card:nth-child(2) .experience-image {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.8)), 
              url('../assets/images/nima-sarram-ABlp76_JnH4-unsplash.jpg') center/cover no-repeat;
}

.experience-card:nth-child(3) .experience-image {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.8)), 
              url('../assets/images/van-tay-media--S2-AKdWQoQ-unsplash.jpg') center/cover no-repeat;
}

/* Projects Section Background */
#projects {
  background-color: #f8fafc;
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
}

#projects::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 30%, rgba(66, 153, 225, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(56, 178, 172, 0.08) 0%, transparent 40%);
  z-index: 0;
}

.experience-image {
  height: 200px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s ease;
}

.experience-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(0,0,0,0.3), rgba(0,0,0,0.1));
  opacity: 0.8;
  transition: all 0.4s ease;
}

.experience-card:hover .experience-overlay {
  opacity: 0.5;
}

.experience-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2.5rem;
  color: white;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.experience-card:hover .experience-icon {
  transform: translate(-50%, -50%) scale(1.1);
  opacity: 1;
}

.experience-content {
  padding: 2rem;
  position: relative;
  background: white;
}

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

.experience-header h3 {
  font-size: 1.4rem;
  margin: 0;
  color: var(--dark);
  font-weight: 700;
}

.experience-category {
  background: #f1f5f9;
  color: #475569;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid #e2e8f0;
}

.experience-description {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.experience-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.experience-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.experience-tech li {
  display: flex;
  align-items: center;
  font-size: 0.8rem;
  color: #475569;
  background: #f8fafc;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  transition: all 0.2s ease;
  border: 1px solid #e2e8f0;
  margin-bottom: 0.25rem;
}

.experience-tech li i {
  margin-right: 0.4rem;
  font-size: 1rem;
}

.experience-links {
  display: flex;
  gap: 0.5rem;
}

.experience-link {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: #f8fafc;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  text-decoration: none;
  border: 1px solid #e2e8f0;
}

.experience-link:hover {
  background: #f1f5f9;
  color: #334155;
  transform: none;
  border-color: #cbd5e1;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .experiences-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .experiences-grid {
    grid-template-columns: 1fr;
  }
  
  .experience-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .experience-category {
    align-self: flex-start;
  }
}
