/* ---------------------------
   GLOBAL VARIABLES
---------------------------- */
:root {
  --nav-height: 80px;
  --primary: #6da3b9;
  --primary-hover: #0ea5e9;
  --dark-bg: #0f172a;
  --light-bg: #f8fafc;
  --text-dark: #0f172a;
  --text-light: #e2e8f0;
  --card-bg-dark: #1e293b;
  --card-bg-light: #ffffff;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  --gradient-primary: linear-gradient(135deg, #6da3b9, #0ea5e9, #3b82f6);
  --gradient-secondary: linear-gradient(135deg, #8b5cf6, #ec4899, #f59e0b);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

/* Performance optimizations */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--dark-bg);
  color: var(--text-light);
  transition: background var(--transition), color var(--transition);
  line-height: 1.6;
}

/* Light Mode */
body.light-mode {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  color: var(--text-dark);
}

/* Light mode floating shapes */
.light-mode .shape {
  opacity: 0.05;
}

.light-mode .shape-1 {
  background: #3b82f6;
}

.light-mode .shape-2 {
  background: #8b5cf6;
}

.light-mode .shape-3 {
  background: #ec4899;
}

.light-mode .shape-4 {
  background: #f59e0b;
}

.light-mode .shape-5 {
  background: #10b981;
}

/* ---------------------------
   NAVBAR
---------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  background: rgba(15, 23, 42, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  z-index: 1000;
  transition: var(--transition);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
}

.light-mode .navbar {
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
  background: rgba(15, 23, 42, 0.25);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2), 0 4px 16px rgba(0, 0, 0, 0.12);
}

.light-mode .navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15), 0 4px 16px rgba(0, 0, 0, 0.08);
}

.logo {
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--primary);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.logo::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: var(--transition);
}

.logo:hover::before {
  left: 0;
}

.menu {
  list-style: none;
  display: flex;
  gap: 1.8rem;
}

.menu a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
  padding: 0.5rem 1rem;
  border-radius: 12px;
}

.menu a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  border-radius: 12px;
  opacity: 0;
  transform: scale(0.8);
  transition: var(--transition);
  z-index: -1;
}

.menu a:hover::before,
.menu a.active::before {
  opacity: 0.1;
  transform: scale(1);
}

.menu a:hover,
.menu a.active {
  color: var(--primary);
  transform: translateY(-2px);
}

.nav-actions {
  display: flex;
  gap: 1rem;
}

.nav-actions button {
  background: none;
  border: none;
  color: inherit;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  padding: 0.5rem;
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}

.nav-actions button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  border-radius: 12px;
  opacity: 0;
  transform: scale(0.8);
  transition: var(--transition);
  z-index: -1;
}

.nav-actions button:hover::before {
  opacity: 0.1;
  transform: scale(1);
}

.nav-actions button:hover {
  color: var(--primary);
  transform: translateY(-2px) scale(1.1);
}

/* Mobile Menu */
#menu-toggle {
  display: none;
}

@media (max-width: 992px) {
  .menu {
    gap: 1.2rem;
  }
}

@media (max-width: 768px) {
  #menu-toggle {
    display: block;
  }

  .menu {
    position: fixed;
    top: var(--nav-height);
    right: -100%;
    flex-direction: column;
    background: rgba(15, 23, 42, 0.15);
    backdrop-filter: blur(60px) saturate(180%);
    -webkit-backdrop-filter: blur(60px) saturate(180%);
    border-left: 1px solid rgba(255, 255, 255, 0.15);
    width: 250px;
    height: 100vh;
    padding: 2rem;
    transition: var(--transition);
    z-index: 999;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.12), -2px 0 8px rgba(0, 0, 0, 0.08);
  }

.light-mode .menu {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(60px) saturate(180%);
  -webkit-backdrop-filter: blur(60px) saturate(180%);
  border-left: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.1), -2px 0 8px rgba(0, 0, 0, 0.05);
}

  .menu.open {
    right: 0;
  }

  .menu li {
    margin-bottom: 1rem;
  }
}

/* ---------------------------
   SECTIONS
---------------------------- */
.section {
  padding: 6rem 2rem;
  max-width: 1100px;
  margin: auto;
  scroll-margin-top: var(--nav-height);
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-slow);
}

.section.visible {
  opacity: 1;
  transform: translateY(0);
}

h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  animation: fadeInUp 1s ease-out;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: 2px;
  animation: expandWidth 1s ease-out 0.5s both;
}

@keyframes expandWidth {
  from {
    width: 0;
  }
  to {
    width: 60px;
  }
}

/* ---------------------------
   HOME SECTION
---------------------------- */
.home-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding-top: calc(var(--nav-height) + 2rem);
  gap: 2rem;
  position: relative;
  overflow: hidden;
}

.home-section .text {
  flex: 1 1 45%;
  animation: slideInLeft 1s ease-out;
}

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

.home-section .text h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 1s ease-out 0.2s both;
}

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

.home-section .text h3 {
  color: var(--primary);
  font-weight: 600;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.home-section .text p {
  margin-bottom: 1.5rem;
  max-width: 500px;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.home-section .image {
  flex: 1 1 45%;
  text-align: center;
  animation: slideInRight 1s ease-out 0.3s both;
  position: relative;
}

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

.home-section .image::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 420px;
  height: 420px;
  background: var(--gradient-primary);
  border-radius: 50%;
  opacity: 0.1;
  animation: breathe 4s ease-in-out infinite;
  z-index: -1;
}

@keyframes breathe {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.1;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.05);
    opacity: 0.15;
  }
}

.home-section .image::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, var(--primary), transparent 70%);
  border-radius: 50%;
  animation: pulse-glow 6s ease-in-out infinite;
  z-index: -2;
  opacity: 0.2;
}

@keyframes pulse-glow {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.2;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.1);
    opacity: 0.3;
  }
}

.home-section .image img {
  width: 90%;
  max-width: 400px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
  animation: elegant-float 8s ease-in-out infinite, gentle-glow 4s ease-in-out infinite alternate;
  box-shadow: 
    0 25px 80px rgba(109, 163, 185, 0.4), 
    0 10px 30px rgba(109, 163, 185, 0.3),
    inset 0 0 0 2px rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
  backdrop-filter: blur(10px);
}

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

@keyframes gentle-glow {
  0% {
    box-shadow: 
      0 25px 80px rgba(109, 163, 185, 0.4), 
      0 10px 30px rgba(109, 163, 185, 0.3),
      inset 0 0 0 2px rgba(255, 255, 255, 0.1),
      0 0 30px rgba(109, 163, 185, 0.3);
  }
  100% {
    box-shadow: 
      0 25px 80px rgba(109, 163, 185, 0.4), 
      0 10px 30px rgba(109, 163, 185, 0.3),
      inset 0 0 0 2px rgba(255, 255, 255, 0.1),
      0 0 40px rgba(109, 163, 185, 0.4);
  }
}

.home-section .image img:hover {
  transform: scale(1.05) translateY(-10px);
  box-shadow: 
    0 35px 100px rgba(109, 163, 185, 0.5), 
    0 15px 40px rgba(109, 163, 185, 0.4),
    inset 0 0 0 3px rgba(255, 255, 255, 0.2),
    0 0 50px rgba(109, 163, 185, 0.6);
  animation-play-state: paused;
}

/* Light mode enhancements */
.light-mode .home-section .image::before {
  background: var(--gradient-secondary);
  opacity: 0.15;
}

.light-mode .home-section .image::after {
  background: radial-gradient(circle, #3b82f6, transparent 70%);
  opacity: 0.3;
}

.light-mode .home-section .image img {
  border: 4px solid rgba(0, 0, 0, 0.1);
  box-shadow: 
    0 25px 80px rgba(59, 130, 246, 0.3), 
    0 10px 30px rgba(59, 130, 246, 0.2),
    inset 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.light-mode .home-section .image img:hover {
  box-shadow: 
    0 35px 100px rgba(59, 130, 246, 0.4), 
    0 15px 40px rgba(59, 130, 246, 0.3),
    inset 0 0 0 3px rgba(255, 255, 255, 0.5),
    0 0 50px rgba(59, 130, 246, 0.5);
}

/* Socials */
.socials a {
  margin-right: 1rem;
  color: var(--primary);
  font-size: 1.4rem;
  transition: var(--transition);
  display: inline-block;
  padding: 0.5rem;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 1s ease-out 1s both;
}

.socials a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0);
  transition: var(--transition);
  z-index: -1;
}

.socials a:hover::before {
  opacity: 0.1;
  transform: scale(1);
}

.socials a:hover {
  color: var(--primary-hover);
  transform: translateY(-3px) scale(1.2);
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--gradient-primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(109, 163, 185, 0.3);
  animation: fadeInUp 1s ease-out 0.8s both;
}

.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: var(--transition);
}

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

.btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 48px rgba(109, 163, 185, 0.4);
}

/* ---------------------------
   ABOUT SECTION
---------------------------- */
.about-content {
  max-width: 1000px;
  margin: auto;
}

.about-content p {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 3rem;
  line-height: 1.8;
}

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

.highlight-item {
  text-align: center;
  padding: 2rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  transition: var(--transition);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 4px 16px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.highlight-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  border-radius: 24px;
  opacity: 0;
  transition: opacity var(--transition);
}

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

.light-mode .highlight-item {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.highlight-item:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25), 0 12px 32px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.highlight-item i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.highlight-item h4 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.highlight-item p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* ---------------------------
   PROFESSIONAL SECTION
---------------------------- */
.professional-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 2rem auto;
  align-items: start;
}

.profile-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 4px 16px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.profile-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  border-radius: 24px;
  opacity: 0;
  transition: opacity var(--transition);
}

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

.light-mode .profile-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.profile-image {
  position: relative;
  margin-bottom: 2rem;
  border-radius: 20px;
  overflow: hidden;
}

.profile-image img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--primary);
  transition: var(--transition);
}

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

.profile-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(109, 163, 185, 0.9), rgba(14, 165, 233, 0.9));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.profile-image:hover .profile-overlay {
  opacity: 0;
}

.profile-info {
  text-align: center;
  color: white;
}

.profile-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.profile-info p {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.profile-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.download-btn, .contact-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.download-btn {
  background: var(--primary);
  color: var(--dark-bg);
  color: white;
}

.download-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(109, 163, 185, 0.3);
}

.contact-btn {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 0.5px solid rgba(255, 255, 255, 0.2);
  color: var(--text-light);
}

.light-mode .contact-btn {
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 0.5px solid rgba(255, 255, 255, 0.4);
  color: var(--text-dark);
}

.contact-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.professional-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.detail-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(35px) saturate(140%);
  -webkit-backdrop-filter: blur(35px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 1.5rem;
  text-align: center;
  transition: var(--transition);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.detail-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  border-radius: 20px;
  opacity: 0;
  transition: opacity var(--transition);
}

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

.detail-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.light-mode .detail-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(35px) saturate(140%);
  -webkit-backdrop-filter: blur(35px) saturate(140%);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.detail-card i {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.detail-card h4 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.detail-card p {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  line-height: 1.4;
}

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

@media (max-width: 768px) {
  .professional-content {
    gap: 2rem;
  }
  
  .professional-details {
    grid-template-columns: 1fr;
  }
  
  .profile-image img {
    width: 150px;
    height: 150px;
  }
}

/* ---------------------------
   SKILLS SECTION
---------------------------- */
.skills-categories {
  max-width: 1000px;
  margin: 2rem auto;
}

.skill-category {
  margin-bottom: 3rem;
}

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

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 2rem;
  text-align: center;
  margin-top: 1rem;
}

.skills-grid img {
  width: 60px;
  height: 60px;
  margin-bottom: 0.5rem;
  transition: transform var(--transition);
}

.skills-grid img:hover {
  transform: scale(1.1);
}

.skills-progress {
  max-width: 600px;
  margin: 0 auto;
}

.skill-item {
  margin-bottom: 1.5rem;
}

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

.skill-info span:first-child {
  font-weight: 600;
  color: var(--text-light);
}

.light-mode .skill-info span:first-child {
  color: var(--text-dark);
}

.skill-info span:last-child {
  color: var(--primary);
  font-weight: 600;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: var(--card-bg-dark);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.light-mode .progress-bar {
  background: rgba(0, 0, 0, 0.1);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #0ea5e9, #3b82f6);
  border-radius: 4px;
  width: 0%;
  transition: width 2s ease-in-out;
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2s infinite;
}

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

/* ---------------------------
   PROJECTS SECTION
---------------------------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 4px 16px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  border-radius: 24px;
  opacity: 0;
  transition: opacity var(--transition);
}

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

.light-mode .project-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.project-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25), 0 12px 32px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.project-card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.project-card h4 {
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.project-card .links a {
  margin: 0 0.5rem;
  color: var(--primary);
  font-size: 1.3rem;
  transition: var(--transition);
}

.project-card .links a:hover {
  color: var(--primary-hover);
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
  justify-content: center;
}

.tech-stack span {
  background: var(--primary);
  color: var(--dark-bg);
  padding: 0.3rem 0.8rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

.project-card .links {
  margin-top: 1rem;
}

.project-card .links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--card-bg-dark);
  border-radius: 20px;
  text-decoration: none;
  transition: var(--transition);
}

.light-mode .project-card .links a {
  background: rgba(0, 0, 0, 0.05);
}

.project-card .links a:hover {
  background: var(--primary);
  color: var(--dark-bg);
}

/* ---------------------------
   EXPERIENCE SECTION
---------------------------- */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 2rem auto;
}

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

.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  padding-left: 80px;
}

.timeline-marker {
  position: absolute;
  left: 22px;
  top: 0;
  width: 16px;
  height: 16px;
  background: var(--primary);
  border-radius: 50%;
  border: 3px solid var(--dark-bg);
  z-index: 1;
}

.light-mode .timeline-marker {
  border-color: var(--light-bg);
}

.timeline-content {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1.5rem;
  border-radius: 28px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 4px 16px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  border-radius: 24px;
  opacity: 0;
  transition: opacity var(--transition);
}

.timeline-content:hover::before {
  opacity: 1;
}

.light-mode .timeline-content {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.timeline-content:hover {
  transform: translateX(12px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

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

.timeline-date {
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.timeline-content p {
  line-height: 1.6;
  margin: 0;
}

/* ---------------------------
   ACHIEVEMENTS SECTION
---------------------------- */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.achievement-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 2rem 1.5rem;
  border-radius: 28px;
  text-align: center;
  transition: var(--transition);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 4px 16px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.achievement-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  border-radius: 24px;
  opacity: 0;
  transition: opacity var(--transition);
}

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

.light-mode .achievement-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.achievement-card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25), 0 12px 32px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.achievement-card i {
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.achievement-card h4 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.achievement-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* ---------------------------
   CONTACT SECTION
---------------------------- */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1200px;
  margin: 2rem auto;
  align-items: start;
}

.contact-info h3 {
  color: var(--primary);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.contact-info p {
  margin-bottom: 2rem;
  line-height: 1.6;
}

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

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(35px) saturate(140%);
  -webkit-backdrop-filter: blur(35px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  transition: var(--transition);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.contact-method::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  border-radius: 20px;
  opacity: 0;
  transition: opacity var(--transition);
}

.contact-method:hover::before {
  opacity: 1;
}

.light-mode .contact-method {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(35px) saturate(140%);
  -webkit-backdrop-filter: blur(35px) saturate(140%);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.contact-method:hover {
  transform: translateX(8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 4px 16px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.contact-method i {
  font-size: 1.5rem;
  color: var(--primary);
  width: 30px;
}

.contact-method h4 {
  color: var(--primary);
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.contact-method p {
  margin: 0;
  font-size: 0.9rem;
}

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

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(35px) saturate(140%);
  -webkit-backdrop-filter: blur(35px) saturate(140%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-light);
  text-decoration: none;
  border-radius: 28px;
  transition: var(--transition);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.social-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  border-radius: 25px;
  opacity: 0;
  transition: opacity var(--transition);
}

.social-link:hover::before {
  opacity: 1;
}

.light-mode .social-link {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(35px) saturate(140%);
  -webkit-backdrop-filter: blur(35px) saturate(140%);
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--text-dark);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.social-link:hover {
  background: var(--primary);
  color: var(--dark-bg);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(109, 163, 185, 0.3), 0 4px 16px rgba(109, 163, 185, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.contact-form {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 2rem;
  border-radius: 28px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 4px 16px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 1;
}

.contact-form::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  border-radius: 24px;
  opacity: 0;
  transition: opacity var(--transition);
}

.contact-form:hover::before {
  opacity: 1;
}

.light-mode .contact-form {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.contact-form h3 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  text-align: center;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.9rem;
  border-radius: 8px;
  border: 2px solid transparent;
  background: var(--dark-bg);
  color: var(--text-light);
  font-size: 1rem;
  margin-bottom: 1rem;
  transition: var(--transition);
  position: relative;
  z-index: 2;
}

.light-mode .contact-form input,
.light-mode .contact-form textarea {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-dark);
  border: 2px solid rgba(0, 0, 0, 0.1);
}

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

.contact-form button {
  background: var(--primary);
  color: #0f172a;
  padding: 0.75rem 2rem;
  border-radius: 25px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
  position: relative;
  z-index: 2;
}

.contact-form button:hover {
  background: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(14, 165, 233, 0.3), 0 4px 16px rgba(14, 165, 233, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ---------------------------
   FOOTER
---------------------------- */
footer {
  text-align: center;
  background: rgba(15, 23, 42, 0.15);
  backdrop-filter: blur(60px) saturate(180%);
  -webkit-backdrop-filter: blur(60px) saturate(180%);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1.5rem 1rem;
  font-size: 0.9rem;
  color: var(--text-light);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.12), 0 -2px 8px rgba(0, 0, 0, 0.08);
}

.light-mode footer {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(60px) saturate(180%);
  -webkit-backdrop-filter: blur(60px) saturate(180%);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  color: #0f172a;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.1), 0 -2px 8px rgba(0, 0, 0, 0.05);
}

/* ---------------------------
   SCROLL TO TOP BUTTON
---------------------------- */
#scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: rgba(15, 23, 42, 0.15);
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--primary);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  cursor: pointer;
  display: none;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  transition: var(--transition);
  z-index: 1001;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 4px 16px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

#scroll-top::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
  border-radius: 50%;
  opacity: 0;
  transition: opacity var(--transition);
}

#scroll-top:hover::before {
  opacity: 1;
}

.light-mode #scroll-top {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

#scroll-top:hover {
  background: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 16px 48px rgba(14, 165, 233, 0.3), 0 6px 20px rgba(14, 165, 233, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* ---------------------------
   LOADING SCREEN
---------------------------- */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease-out;
}

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

.loader {
  width: 60px;
  height: 60px;
  margin-bottom: 2rem;
}

.loader-inner {
  width: 100%;
  height: 100%;
  position: relative;
}

.loader-line-wrap {
  animation: spin 2000ms cubic-bezier(0.175, 0.885, 0.32, 1.275) infinite;
  box-sizing: border-box;
  height: 50px;
  left: 50%;
  overflow: hidden;
  position: absolute;
  top: 0;
  transform-origin: 50% 100%;
  width: 6px;
}

.loader-line-wrap:nth-child(1) { animation-delay: -50ms; }
.loader-line-wrap:nth-child(2) { animation-delay: -100ms; }
.loader-line-wrap:nth-child(3) { animation-delay: -150ms; }
.loader-line-wrap:nth-child(4) { animation-delay: -200ms; }
.loader-line-wrap:nth-child(5) { animation-delay: -250ms; }

.loader-line {
  border: 4px solid transparent;
  border-radius: 100%;
  box-sizing: border-box;
  height: 100px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.loader-line-wrap:nth-child(1) .loader-line {
  border-color: var(--primary);
  height: 90px;
  width: 90px;
  top: 7px;
}

.loader-line-wrap:nth-child(2) .loader-line {
  border-color: #0ea5e9;
  height: 76px;
  width: 76px;
  top: 14px;
}

.loader-line-wrap:nth-child(3) .loader-line {
  border-color: #3b82f6;
  height: 62px;
  width: 62px;
  top: 21px;
}

.loader-line-wrap:nth-child(4) .loader-line {
  border-color: #8b5cf6;
  height: 48px;
  width: 48px;
  top: 28px;
}

.loader-line-wrap:nth-child(5) .loader-line {
  border-color: #ec4899;
  height: 34px;
  width: 34px;
  top: 35px;
}

@keyframes spin {
  0%, 15% {
    transform: translateY(-30%) rotate(0deg);
  }
  35%, 65% {
    transform: translateY(-30%) rotate(180deg);
  }
  85%, 100% {
    transform: translateY(-30%) rotate(360deg);
  }
}

.loading-text {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
}

.loading-char {
  display: inline-block;
  animation: bounce 1.4s ease-in-out infinite both;
}

.loading-char:nth-child(1) { animation-delay: -0.32s; }
.loading-char:nth-child(2) { animation-delay: -0.16s; }
.loading-char:nth-child(3) { animation-delay: 0s; }
.loading-char:nth-child(4) { animation-delay: 0.16s; }
.loading-char:nth-child(5) { animation-delay: 0.32s; }
.loading-char:nth-child(6) { animation-delay: 0.48s; }
.loading-char:nth-child(7) { animation-delay: 0.64s; }
.loading-char:nth-child(8) { animation-delay: 0.8s; }
.loading-char:nth-child(9) { animation-delay: 0.96s; }
.loading-char:nth-child(10) { animation-delay: 1.12s; }

@keyframes bounce {
  0%, 80%, 100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}

/* ---------------------------
   SCROLL PROGRESS
---------------------------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), #0ea5e9, #3b82f6, #8b5cf6, #ec4899);
  z-index: 1000;
  transition: width 0.1s ease;
}


/* ---------------------------
   FLOATING SHAPES
---------------------------- */
.floating-shapes {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.1;
  animation: float 20s infinite linear;
}

.shape-1 {
  width: 80px;
  height: 80px;
  background: var(--primary);
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.shape-2 {
  width: 120px;
  height: 120px;
  background: #0ea5e9;
  top: 60%;
  right: 10%;
  animation-delay: -5s;
}

.shape-3 {
  width: 60px;
  height: 60px;
  background: #3b82f6;
  top: 40%;
  left: 80%;
  animation-delay: -10s;
}

.shape-4 {
  width: 100px;
  height: 100px;
  background: #8b5cf6;
  top: 80%;
  left: 20%;
  animation-delay: -15s;
}

.shape-5 {
  width: 140px;
  height: 140px;
  background: #ec4899;
  top: 10%;
  right: 30%;
  animation-delay: -8s;
}

@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  33% {
    transform: translateY(-30px) rotate(120deg);
  }
  66% {
    transform: translateY(20px) rotate(240deg);
  }
  100% {
    transform: translateY(0px) rotate(360deg);
  }
}

/* ---------------------------
   PARTICLES BACKGROUND
---------------------------- */
#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.typing {
  background: linear-gradient(45deg, #6da3b9, #0ea5e9, #3b82f6, #8b5cf6, #ec4899);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease-in-out infinite, blink 0.7s infinite;
  border-right: 2px solid #6da3b9;
}

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

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

/* Enhanced card animations */
.highlight-item, .project-card, .achievement-card, .detail-card, .timeline-content {
  opacity: 0;
  transform: translateY(30px);
  transition: var(--transition-slow);
}

.highlight-item.animate-in, .project-card.animate-in, .achievement-card.animate-in, .detail-card.animate-in, .timeline-content.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Enhanced scroll-to-top button */
#scroll-top {
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
}

#scroll-top.show {
  opacity: 1;
  transform: translateY(0);
}

/* Light mode theme toggle animation */
#theme-toggle {
  transition: var(--transition);
}

#theme-toggle:hover {
  transform: rotate(180deg) scale(1.1);
}

/* Light mode specific animations */
.light-mode .typing {
  background: linear-gradient(45deg, #3b82f6, #8b5cf6, #ec4899, #f59e0b);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 3s ease-in-out infinite, blink 0.7s infinite;
  border-right: 2px solid #3b82f6;
}

/* Light mode particles */
.light-mode #particles-js {
  opacity: 0.9;
}

.light-mode #particles-js canvas {
  filter: brightness(0.7) contrast(1.3) saturate(1.2);
}

/* ---------------------------
   STATISTICS SECTION
---------------------------- */
.stats-section {
  background: linear-gradient(135deg, rgba(109, 163, 185, 0.1), rgba(14, 165, 233, 0.1));
  margin: 2rem auto;
  border-radius: 28px;
  padding: 3rem 2rem;
}

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

.stat-item {
  text-align: center;
  padding: 2rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  transition: var(--transition);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 4px 16px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.stat-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition);
}

.stat-item:hover::before {
  opacity: 0.1;
}

.stat-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.stat-label {
  font-size: 1rem;
  color: var(--text-light);
  font-weight: 500;
  position: relative;
  z-index: 1;
}

.light-mode .stat-item {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.light-mode .stat-label {
  color: var(--text-dark);
}

/* ---------------------------
   TESTIMONIALS SECTION
---------------------------- */
.testimonials-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 2rem auto;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  padding: 2rem;
  transition: var(--transition);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 4px 16px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition);
}

.testimonial-card:hover::before {
  opacity: 0.05;
}

.testimonial-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.testimonial-content {
  position: relative;
  z-index: 1;
}

.quote-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.testimonial-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

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

.rating {
  color: #fbbf24;
  font-size: 1rem;
}

.light-mode .testimonial-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.light-mode .author-info span {
  color: var(--text-dark);
}

/* ---------------------------
   CERTIFICATIONS SECTION
---------------------------- */
.certifications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 1200px;
  margin: 2rem auto;
}

.cert-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(40px) saturate(150%);
  -webkit-backdrop-filter: blur(40px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  padding: 1.5rem;
  transition: var(--transition);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 4px 16px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cert-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: var(--transition);
}

.cert-card:hover::before {
  opacity: 0.05;
}

.cert-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18), 0 6px 20px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.cert-icon {
  font-size: 2.5rem;
  color: var(--primary);
  position: relative;
  z-index: 1;
}

.cert-info {
  flex: 1;
  position: relative;
  z-index: 1;
}

.cert-info h4 {
  color: var(--primary);
  margin-bottom: 0.25rem;
  font-size: 1.1rem;
}

.cert-info p {
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.cert-date {
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
}

.cert-badge {
  font-size: 1.5rem;
  color: var(--primary);
  position: relative;
  z-index: 1;
}

.light-mode .cert-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), 0 4px 16px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.light-mode .cert-info p {
  color: var(--text-dark);
}

/* ---------------------------
   RESPONSIVE DESIGN
---------------------------- */
@media (max-width: 992px) {
  .home-section {
    flex-direction: column-reverse;
    text-align: center;
  }

  .home-section .image img {
    width: 60%;
    max-width: 300px;
  }

  .about-highlights {
    grid-template-columns: 1fr;
  }

  .professional-details {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

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

@media (max-width: 768px) {
  .home-section {
    padding-top: calc(var(--nav-height) + 1rem);
  }

  .home-section .text h1 {
    font-size: 2.2rem;
  }

  .home-section .text h3 {
    font-size: 1.2rem;
  }

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

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

  .timeline-item {
    padding-left: 60px;
  }

  .timeline-marker {
    left: 12px;
  }

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

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

@media (max-width: 576px) {
  .section {
    padding: 4rem 1rem;
  }

  .home-section .text h1 {
    font-size: 2rem;
  }

  .home-section .text h3 {
    font-size: 1.1rem;
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 1.5rem;
  }

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

  .stat-item {
    padding: 1.5rem 1rem;
  }

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

@media (max-width: 480px) {
  .home-section .image img {
    width: 80%;
  }

  .skills-grid {
    gap: 1rem;
  }

  .project-card {
    padding: 1.5rem;
  }

  .contact-form {
    padding: 1.5rem;
  }
}
