/* ============================================
   CSS Variables & Global Styles
   ============================================ */

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --secondary: #ec4899;
  --secondary-dark: #db2777;
  --accent: #f59e0b;
  --accent-dark: #d97706;
  --dark: #0f172a;
  --light: #f1f5f9;
  --text-dark: #1e293b;
  --text-light: #cbd5e1;
  --border-color: #e2e8f0;
  --success: #10b981;
  --danger: #ef4444;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 24px 48px rgba(0, 0, 0, 0.2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Roboto", sans-serif;
  color: var(--text-dark);
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ============================================
   Typography
   ============================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

p {
  margin-bottom: 1rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* ============================================
   Navbar Styling
   ============================================ */

.navbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
  z-index: 1000;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-md);
}

.navbar-brand {
  font-size: 1.5rem;
  letter-spacing: 1px;
}

.nav-link {
  font-weight: 500;
  color: var(--text-dark) !important;
  margin-left: 1.5rem;
  position: relative;
  transition: var(--transition);
}

.nav-link:after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.3s ease;
}

.nav-link:hover:after {
  width: 100%;
}

.nav-link.active {
  color: var(--primary) !important;
}

/* ============================================
   Hero Section with Animated Gradients
   ============================================ */

.hero-section {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 80px;
  background: linear-gradient(135deg, #ffffff 0%, #f0f4f8 100%);
}

.hero-background {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
  overflow: hidden;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  animation: float 6s ease-in-out infinite;
}

.orb-1 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  top: -100px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}

.orb-2 {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, var(--secondary), var(--accent));
  bottom: -50px;
  left: 10%;
  animation: float 10s ease-in-out infinite reverse;
}

.orb-3 {
  width: 250px;
  height: 250px;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  top: 50%;
  right: 10%;
  animation: float 7s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0);
  }
  33% {
    transform: translate(30px, -30px);
  }
  66% {
    transform: translate(-20px, 20px);
  }
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 800px;
  padding: 2rem;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-text {
  color: var(--text-dark);
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  color: #64748b;
  margin-bottom: 1rem;
  font-weight: 600;
}

.hero-description {
  font-size: 1.125rem;
  color: #94a3b8;
  margin-bottom: 2rem;
  font-weight: 400;
}

/* ============================================
   Dynamic Roles Animation
   ============================================ */

.dynamic-roles {
  font-size: 1.6rem;
  font-weight: 700;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  min-height: 2.5rem;
  margin-bottom: 1.5rem;
}

.role-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cursor {
  font-weight: bold;
  animation: blink 0.8s infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  animation: bounce 2s infinite;
}

.scroll-indicator span {
  display: block;
  font-size: 0.875rem;
  color: var(--text-dark);
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-align: center;
}

.mouse {
  width: 30px;
  height: 45px;
  border: 2px solid var(--text-dark);
  border-radius: 15px;
  margin: 0 auto;
  position: relative;
}

.wheel {
  width: 2px;
  height: 8px;
  background: var(--text-dark);
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 2px;
  animation: scrollWheel 1.5s infinite;
}

@keyframes scrollWheel {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0) translateX(-50%);
  }
  50% {
    transform: translateY(-10px) translateX(-50%);
  }
}

/* ============================================
   Section Styling
   ============================================ */

.section-padding {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
  position: relative;
  display: inline-block;
}

.title-underline {
  width: 120px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  margin: 0 auto;
  border-radius: 2px;
}

.bg-dark-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #eef2f5 100%);
}

/* ============================================
   About Section
   ============================================ */

.about-image {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}

.image-wrapper {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 10px 30px rgba(99, 102, 241, 0.15));
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.about-text {
  font-size: 1.125rem;
  color: #475569;
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.stat {
  text-align: center;
  padding: 1.5rem;
  border-radius: 12px;
  background: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.stat:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.15);
}

.stat h3 {
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.stat p {
  color: #64748b;
  font-size: 0.95rem;
  margin: 0;
}

/* ============================================
   Projects Section
   ============================================ */

.project-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.project-card:hover {
  transform: translateY(-12px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.project-image {
  position: relative;
  width: 100%;
  height: 240px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-placeholder {
  font-size: 4rem;
  color: rgba(255, 255, 255, 0.4);
  transition: var(--transition);
}

.project-card:hover .project-placeholder {
  transform: scale(1.1);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-link {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.project-link:hover {
  transform: scale(1.05);
}

.project-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.project-description {
  color: #64748b;
  font-size: 0.95rem;
  flex-grow: 1;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.12),
    rgba(236, 72, 153, 0.12)
  );
  color: var(--primary);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(99, 102, 241, 0.2);
  transition: var(--transition);
}

.tag:hover {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  transform: scale(1.05);
}

/* ============================================
   Certifications Section
   ============================================ */

.cert-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.cert-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.cert-icon {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  color: white;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
}

.cert-card:hover .cert-icon {
  transform: scale(1.15) rotate(5deg);
  box-shadow: var(--shadow-lg);
}

.cert-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.cert-issuer {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}

.cert-date {
  color: #94a3b8;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.cert-description {
  color: #64748b;
  font-size: 0.95rem;
  flex-grow: 1;
  line-height: 1.6;
  margin: 0;
}

/* ============================================
   Skills Section
   ============================================ */

.skill-category {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.skill-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.1);
}

.skill-category-title {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.skill-item {
  margin-bottom: 1.25rem;
}

.skill-item:last-child {
  margin-bottom: 0;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.skill-level {
  color: var(--primary);
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 10px;
  transition: width 1.5s ease-out;
}

.skill-category:hover .progress-fill {
  background: linear-gradient(90deg, var(--secondary), var(--primary));
}

/* Technologies Grid */
.technologies-grid {
  margin-top: 4rem;
}

.tech-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.tech-item {
  position: relative;
  padding: 1.4rem 1rem;
  text-align: center;
  border-radius: 12px;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-weight: 600;
  color: var(--primary);
  transition: var(--transition);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  min-height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tech-item:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  opacity: 0;
  transition: opacity 0.3s;
}

.tech-item:hover:after {
  opacity: 1;
}
.tech-item:before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.3s ease, left 0.3s ease;
}

.tech-item:hover {
  border-color: var(--primary);
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-md);
}

.tech-item:hover:before {
  width: 100%;
  left: 0;
}

/* ============================================
   Contact Section
   ============================================ */

.contact-intro {
  font-size: 1.125rem;
  color: #64748b;
}

.contact-form {
  background: white;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.form-control {
  padding: 1rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 1rem;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.5);
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
  background: white;
}

.form-label {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.contact-info {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.contact-icon {
  font-size: 2.5rem;
  color: white;
  margin-bottom: 1rem;
  transition: var(--transition);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  margin-right: auto;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.contact-info > .row > div:hover .contact-icon {
  transform: translateY(-5px) scale(1.05);
  box-shadow: var(--shadow-lg);
}

.contact-label {
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem !important;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.05em;
}

.contact-info p {
  margin: 0.5rem 0 0 0;
}

.contact-info a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.contact-info a:hover {
  color: var(--secondary);
  text-decoration: underline;
}

/* ============================================
   Enhanced Contact Form
   ============================================ */

.contact-card {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.1);
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.contact-card:hover {
  box-shadow: 0 15px 50px rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.2);
}

.contact-card-header {
  margin-bottom: 2.5rem;
}

.contact-card-title {
  font-size: 2rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem !important;
}

.contact-card-subtitle {
  font-size: 1.125rem;
  color: #64748b;
  line-height: 1.6;
}

.form-icon {
  background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
  color: white !important;
  border: none !important;
  font-size: 1.25rem;
  font-weight: 600;
  border-radius: 10px 0 0 10px;
  transition: var(--transition);
}

.input-group:focus-within .form-icon {
  background: linear-gradient(135deg, var(--secondary), var(--primary)) !important;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-input {
  border: 1.5px solid #e2e8f0 !important;
  border-left: none !important;
  border-radius: 0 10px 10px 0;
  padding: 1rem !important;
  font-size: 1rem;
  transition: var(--transition);
  background: #f8fafc;
}

.form-input:focus {
  border-color: var(--primary) !important;
  border-left: none !important;
  background: white;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.05);
}

.form-input::placeholder {
  color: #94a3b8;
  font-weight: 500;
}

.btn-contact-submit {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border: none;
  color: white;
  font-weight: 700;
  padding: 1rem 2rem;
  border-radius: 10px;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-contact-submit:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  transition: var(--transition);
  z-index: -1;
}

.btn-contact-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
  color: white;
  left: 0;
}

.btn-contact-submit:active {
  transform: translateY(0);
}

.btn-contact-submit:focus {
  color: white;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.25);
}

/* ============================================
   Footer
   ============================================ */

.footer {
  background: linear-gradient(135deg, var(--dark) 0%, #1a1f3a 100%);
  color: var(--text-light);
  padding: 3rem 0 1rem;
  margin-top: 4rem;
}

.footer h5 {
  color: white;
  margin-bottom: 1rem;
}

.footer p {
  font-size: 0.95rem;
  color: #94a3b8;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  font-size: 1.1rem;
  transition: var(--transition);
}

.footer-social a:hover {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  transform: translateY(-3px);
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
  .hero-section {
    padding-top: 60px;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .section-title {
    font-size: 2rem;
  }

  .contact-card {
    padding: 2rem;
  }

  .contact-card-title {
    font-size: 1.5rem;
  }

  .form-input {
    font-size: 0.95rem;
  }

  .nav-link {
    margin-left: 0;
    padding: 0.5rem 0;
  }

  .tech-items {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  }

  #canvas-3d {
    opacity: 0.3;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-description {
    font-size: 0.95rem;
  }

  .section-padding {
    padding: 3rem 0;
  }

  .hero-social {
    gap: 1rem;
  }

  .social-link {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
  }

  .project-card {
    margin-bottom: 1.5rem;
  }

  .contact-form {
    padding: 1.5rem;
  }

  .contact-card {
    padding: 1.5rem;
    border-radius: 16px;
  }

  .contact-card-title {
    font-size: 1.25rem;
  }

  .contact-card-subtitle {
    font-size: 1rem;
  }

  .form-icon {
    min-width: 45px;
  }

  .btn-contact-submit {
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
  }

  .contact-info {
    padding: 1.5rem;
  }
}

/* ============================================
   Animations & Scroll Effects
   ============================================ */

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.wow {
  visibility: hidden;
}

/* ============================================
   Dark mode support
   ============================================ */

@media (prefers-color-scheme: dark) {
  body {
    background-color: var(--dark);
    color: var(--text-light);
  }

  .navbar {
    background: rgba(15, 23, 42, 0.95);
  }

  .nav-link {
    color: var(--text-light) !important;
  }

  .project-card,
  .skill-category,
  .contact-form,
  .contact-info,
  .stat {
    background: #1e293b;
    color: var(--text-light);
  }

  .form-control {
    background: #0f172a;
    border-color: #334155;
    color: var(--text-light);
  }

  .progress-bar {
    background: #334155;
  }
}

/* ============================================
   Loading & Utility Classes
   ============================================ */

.fade-in {
  animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideOutRight {
  to {
    opacity: 0;
    transform: translateX(50px);
  }
}

.progress-fill.animated {
  animation: fillProgress 1.5s ease-out forwards;
}

@keyframes fillProgress {
  from {
    width: 0 !important;
  }
}

.blur-effect {
  backdrop-filter: blur(10px);
}
.image-wrapper {
    width: 280px;
    height: 280px;
    margin: auto;
    border-radius: 50%;
    padding: 8px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}