/* Dynamic Styles for Enhanced Visual Appeal - Performance Optimized */

/* Performance Optimizations */
html {
  scroll-behavior: smooth;
}

body {
  transform: translateZ(0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Section containment for better performance */
section {
  contain: layout style;
}

/* Optimize frequently animated elements */
.experience-item,
.profile-card,
.skills-card,
.contact-method,
.social-link {
  contain: layout style;
}

/* CSS Custom Properties for Consistent Color System */
:root {
  /* Modern Professional Color Palette */
  --primary-color: #2563eb;
  --primary-dark: #1e40af;
  --primary-light: #3b82f6;
  --primary-lighter: #60a5fa;

  --secondary-color: #7c3aed;
  --secondary-dark: #6d28d9;
  --secondary-light: #8b5cf6;

  --accent-color: #06b6d4;
  --accent-dark: #0891b2;

  /* Gradients */
  --primary-gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  --secondary-gradient: linear-gradient(135deg, #06b6d4 0%, #2563eb 100%);
  --hero-gradient: linear-gradient(135deg, #1e40af 0%, #6d28d9 100%);

  /* Neutral Colors */
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;

  /* Background Colors */
  --bg-white: #ffffff;
  --bg-light: #f8fafc;
  --bg-lighter: #f1f5f9;
  --bg-dark: #0f172a;
  --bg-overlay: rgba(255, 255, 255, 0.97);
  --bg-overlay-dark: rgba(15, 23, 42, 0.9);

  /* Accent Colors */
  --accent-success: #10b981;
  --accent-warning: #f59e0b;
  --accent-danger: #ef4444;
  --accent-info: #06b6d4;

  /* Shadow System */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);
  --shadow-colored: 0 10px 40px rgba(37, 99, 235, 0.2);

  /* Border Radius System */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Spacing System */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 2.5rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  /* Typography Scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Enhancements */
* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  color: var(--text-primary);
  line-height: 1.6;
}

/* Animated Background */
.animated-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: var(--primary-gradient);
  opacity: 0.08;
}

.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
}

.shape {
  position: absolute;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  animation: float 20s infinite linear;
  backdrop-filter: blur(2px);
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

.shape-1 {
  width: 80px;
  height: 80px;
  top: 10%;
  left: 10%;
  animation-delay: 0s;
  background: rgba(102, 126, 234, 0.1);
}

.shape-2 {
  width: 120px;
  height: 120px;
  top: 20%;
  right: 10%;
  animation-delay: 5s;
  background: rgba(118, 75, 162, 0.1);
}

.shape-3 {
  width: 60px;
  height: 60px;
  bottom: 30%;
  left: 20%;
  animation-delay: 10s;
  background: rgba(102, 126, 234, 0.08);
}

.shape-4 {
  width: 100px;
  height: 100px;
  bottom: 20%;
  right: 20%;
  animation-delay: 15s;
  background: rgba(118, 75, 162, 0.08);
}

.shape-5 {
  width: 40px;
  height: 40px;
  top: 50%;
  left: 50%;
  animation-delay: 8s;
  background: rgba(102, 126, 234, 0.12);
}

@keyframes float {
  0%, 100% {
    transform: translate3d(0, 0px, 0) rotate(0deg);
    opacity: 0.8;
  }
  25% {
    transform: translate3d(0, -20px, 0) rotate(90deg);
    opacity: 1;
  }
  50% {
    transform: translate3d(0, -40px, 0) rotate(180deg);
    opacity: 0.6;
  }
  75% {
    transform: translate3d(0, -20px, 0) rotate(270deg);
    opacity: 1;
  }
}

/* Dynamic Navigation */
.dynamic-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--bg-overlay);
  backdrop-filter: blur(20px);
  z-index: 1000;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  transform: translate3d(0, -100%, 0);
  border-bottom: 1px solid rgba(37, 99, 235, 0.1);
  will-change: transform;
}

.dynamic-nav.scrolled {
  transform: translate3d(0, 0, 0);
  box-shadow: var(--shadow-md);
}

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

.nav-logo .logo-text {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--space-xl);
}

.nav-link {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  transition: all var(--transition-base);
  position: relative;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
}

.nav-link:hover {
  color: var(--primary-color);
  background: rgba(37, 99, 235, 0.05);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-gradient);
  transition: all var(--transition-base);
  transform: translateX(-50%);
  border-radius: 1px;
}

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

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: var(--space-xs);
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
}

.hamburger:hover {
  background: rgba(37, 99, 235, 0.1);
}

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

/* Enhanced Intro Section */
.dynamic-intro {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--primary-gradient);
  overflow: hidden;
}

.intro-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.intro-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.intro-text-container {
  text-align: center;
  color: var(--bg-white);
  padding: 0 var(--space-lg);
}

.intro-text-container h5 {
  font-size: var(--text-lg);
  font-weight: 400;
  margin-bottom: var(--space-sm);
  opacity: 0.9;
  letter-spacing: 1px;
}

.typewriter {
  overflow: hidden;
  border-right: 3px solid rgba(255, 255, 255, 0.75);
  white-space: nowrap;
  margin: 0 auto;
  letter-spacing: 0.15em;
  animation: typing 2.5s steps(15, end) forwards,
             blink-caret 0.75s step-end infinite 2.5s,
             hide-caret 0.1s ease-in-out 5s forwards;
  font-size: var(--text-5xl);
  font-weight: 700;
  margin-bottom: var(--space-lg);
  width: 0;
  max-width: fit-content;
}

@keyframes typing {
  from { width: 0 }
  to { width: 15ch; }
}

@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: rgba(255, 255, 255, 0.75); }
}

@keyframes hide-caret {
  to { border-color: transparent; }
}

.intro-position {
  position: relative;
  margin: var(--space-xl) 0;
}

.position-text {
  font-size: var(--text-xl);
  font-weight: 300;
  letter-spacing: 2px;
  opacity: 0.95;
}

.position-underline {
  width: 60px;
  height: 3px;
  background: var(--bg-white);
  margin: var(--space-md) auto;
  animation: expand 2s ease-out 1s both;
  border-radius: 2px;
}

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

.pulse-btn {
  animation: pulse 3s infinite;
  position: relative;
  overflow: hidden;
  margin-top: var(--space-xl);
  padding: var(--space-md) var(--space-2xl);
  font-size: var(--text-lg);
  font-weight: 600;
  border: 2px solid var(--bg-white);
  background: transparent;
  color: var(--bg-white);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

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

.pulse-btn .btn-arrow {
  margin-left: var(--space-sm);
  transition: transform var(--transition-base);
}

.pulse-btn:hover .btn-arrow {
  transform: translateX(5px);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

/* Dynamic Social Links */
.intro-social.dynamic-social {
  position: absolute !important;
  left: var(--space-2xl) !important;
  bottom: var(--space-2xl) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: var(--space-md) !important;
  z-index: 100 !important;
  width: auto !important;
  font-size: inherit !important;
  margin: 0 !important;
  padding: 0 !important;
}

.intro-social.dynamic-social li {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

.social-link {
  position: relative;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  color: var(--bg-white) !important;
  text-decoration: none !important;
  transition: all var(--transition-base);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer !important;
  z-index: 101 !important;
  pointer-events: auto !important;
}

.social-link:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.social-tooltip {
  position: absolute;
  left: 60px;
  background: rgba(0, 0, 0, 0.9);
  color: var(--bg-white);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  opacity: 0;
  transform: translateX(-10px);
  transition: all var(--transition-base);
  pointer-events: none;
  white-space: nowrap;
  backdrop-filter: blur(10px);
}

.social-link:hover .social-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--bg-white);
  animation: bounce 2s infinite;
  opacity: 0.9;
}

.scroll-text {
  font-size: var(--text-sm);
  margin-bottom: var(--space-sm);
  opacity: 0.8;
  font-weight: 500;
  letter-spacing: 1px;
}

.scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid var(--bg-white);
  border-bottom: 2px solid var(--bg-white);
  transform: rotate(45deg);
  margin: 0 auto;
  opacity: 0.9;
}

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

/* Animation Classes - GPU Optimized with Faster Transitions */
.fade-in-up {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
  will-change: opacity, transform;
}

.fade-in-up.animate {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.fade-in-left {
  opacity: 0;
  transform: translate3d(-20px, 0, 0);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
  will-change: opacity, transform;
}

.fade-in-left.animate {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.fade-in-right {
  opacity: 0;
  transform: translate3d(20px, 0, 0);
  transition: opacity 0.4s ease-out, transform 0.4s ease-out;
  will-change: opacity, transform;
}

.fade-in-right.animate {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Enhanced About Section */
.dynamic-about {
  padding: 100px 0;
  background: var(--bg-light);
  position: relative;
}

.dynamic-about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 49%, rgba(102, 126, 234, 0.02) 50%, transparent 51%);
  pointer-events: none;
}

.section-subtitle {
  color: var(--primary-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--space-sm);
  font-size: var(--text-sm);
}

.section-title {
  font-size: var(--text-5xl);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--space-2xl);
  line-height: 1.2;
}

.profile-picture-container {
  position: relative;
  margin-bottom: var(--space-xl);
  text-align: center;
}

.profile-picture-container img,
.profile-picture-container .profile-image,
img.profile-image {
  width: 300px !important;
  height: auto !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
  float: none !important;
  display: block !important;
  margin: 0 auto !important;
  max-width: 100%;
  object-fit: cover !important;
}

.profile-frame {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto;
  border-radius: var(--radius-full);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transition: all var(--transition-base);
  border: 4px solid var(--bg-white);
}

.profile-frame:hover {
  transform: scale(1.03) rotate(2deg);
  box-shadow: 0 25px 50px rgba(102, 126, 234, 0.2);
}

.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.profile-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-gradient);
  opacity: 0;
  transition: opacity var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-frame:hover .profile-overlay {
  opacity: 0.8;
}

.animated-text {
  font-size: var(--text-lg);
  line-height: 1.8;
  color: var(--text-secondary);
  animation: fadeInText 1s ease-out 0.5s both;
}

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

.profile-card, .skills-card {
  background: var(--bg-white);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  border: 1px solid rgba(102, 126, 234, 0.08);
  position: relative;
  overflow: hidden;
}

.profile-card::before, .skills-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-gradient);
}

.profile-card:hover, .skills-card:hover {
  transform: translate3d(0, -8px, 0);
  box-shadow: var(--shadow-xl);
  border-color: rgba(102, 126, 234, 0.15);
}

.profile-card h3, .skills-card h3 {
  color: var(--text-primary);
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-md);
}

.info-list {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0;
}

.info-item {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(102, 126, 234, 0.1);
  transition: all var(--transition-base);
  border-radius: var(--radius-sm);
}

.info-item:hover {
  background: rgba(102, 126, 234, 0.05);
  padding-left: var(--space-sm);
  transform: translateX(5px);
}

.info-item:last-child {
  border-bottom: none;
}

.info-item strong {
  color: var(--text-primary);
  font-weight: 600;
}

.info-item span {
  color: var(--text-secondary);
}

/* Enhanced Skills Section */
.skill-bars {
  margin-top: var(--space-xl);
}

.skill-item {
  margin-bottom: var(--space-xl);
  padding: var(--space-md);
  background: rgba(102, 126, 234, 0.02);
  border-radius: var(--radius-md);
  border: 1px solid rgba(102, 126, 234, 0.08);
  transition: all var(--transition-base);
}

.skill-item:hover {
  background: rgba(102, 126, 234, 0.05);
  transform: translateY(-2px);
}

.skill-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--space-sm);
  align-items: center;
}

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

.skill-percent {
  color: var(--primary-color);
  font-weight: 700;
  font-size: var(--text-sm);
  background: rgba(102, 126, 234, 0.1);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.skill-bar {
  height: 10px;
  background: rgba(102, 126, 234, 0.1);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.skill-progress {
  height: 100%;
  background: var(--primary-gradient);
  border-radius: var(--radius-sm);
  width: 0;
  transition: width 1s ease-out;
  position: relative;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.skill-progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 2s infinite;
}

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

.skill-item.animate .skill-progress {
  width: var(--skill-width);
}

/* Action Buttons */
.action-buttons {
  text-align: center;
  margin-top: var(--space-2xl);
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  flex-wrap: wrap;
}

.hover-effect {
  position: relative;
  overflow: hidden;
  transition: all var(--transition-base);
  padding: var(--space-md) var(--space-2xl);
  border-radius: var(--radius-full);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  min-width: 160px;
  justify-content: center;
}

.hover-effect.button.stroke {
  border: 2px solid var(--primary-color) !important;
  color: var(--primary-color) !important;
  background: var(--bg-white) !important;
}

.hover-effect.button.stroke:hover {
  background: var(--primary-color) !important;
  color: var(--bg-white) !important;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.hover-effect.button-primary {
  background: var(--primary-gradient);
  color: var(--bg-white) !important;
  border: 2px solid transparent;
}

.hover-effect.button-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  filter: brightness(1.1);
  color: var(--bg-white) !important;
}

.hover-effect .btn-bg {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left var(--transition-slow);
}

.hover-effect:hover .btn-bg {
  left: 100%;
}

/* Enhanced Resume Section */
.dynamic-resume {
  padding: 100px 0;
  background: var(--bg-light);
  position: relative;
}

.dynamic-resume::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23667eea" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.timeline-title {
  font-size: 2.5rem;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  font-weight: 700;
}

.timeline-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--primary-gradient);
  border-radius: 2px;
}

/* New Experience Timeline Design */
.experience-timeline {
  max-width: 1200px;
  margin: 0 auto;
}

.experience-item {
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  margin-bottom: 3rem;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(102, 126, 234, 0.08);
  position: relative;
  will-change: transform;
}

.experience-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
}

.experience-item:hover {
  transform: translate3d(0, -5px, 0);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.experience-header {
  padding: 2.5rem 2.5rem 2rem;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.02), rgba(118, 75, 162, 0.02));
  border-bottom: 1px solid rgba(102, 126, 234, 0.08);
}

.company-section {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.company-logo {
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 12px;
  border: 1px solid rgba(102, 126, 234, 0.1);
  flex-shrink: 0;
}

.company-logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.company-info h3.company-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.company-details {
  font-size: 1.1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.role-section {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.role-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 0;
  flex: 1;
  line-height: 1.2;
}

.role-period {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
}

.period-dates {
  font-size: 1.15rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.period-duration {
  background: var(--primary-gradient);
  color: white;
  padding: 0.5rem 1.1rem;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
}

.experience-content {
  padding: 2.5rem;
}

.role-overview {
  margin-bottom: 2.5rem;
}

.role-overview p {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--text-secondary);
  font-weight: 500;
  background: transparent;
  padding: 2rem;
  border-radius: 16px;
  border-left: 4px solid #667eea;
  margin: 0;
}

.highlights-section {
  margin-bottom: 2.5rem;
}

.highlights-section h4 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.highlights-section h4::before {
  content: '🏆';
  font-size: 1.4rem;
}

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

.highlight-card {
  background: var(--bg-light);
  color: var(--text-primary);
  padding: 2rem 1.5rem;
  border: 1px solid rgba(37, 99, 235, 0.1);
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
  border: none;
}

.highlight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
}

.highlight-number {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
  line-height: 1;
}

.highlight-label {
  font-size: 0.9rem;
  opacity: 0.95;
  line-height: 1.3;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Achievement Cards Styles */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.achievement-card {
  background: var(--bg-light);
  color: var(--text-primary);
  padding: 2rem 1.5rem;
  border: 1px solid rgba(37, 99, 235, 0.1);
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
  border: none;
}

.achievement-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
}

.achievement-number {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #fff;
  line-height: 1;
}

.achievement-label {
  font-size: 0.9rem;
  opacity: 0.95;
  line-height: 1.3;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.responsibilities-section {
  margin-bottom: 2.5rem;
}

.responsibilities-section h4 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.responsibilities-section h4::before {
  content: '📋';
  font-size: 1.4rem;
}

.responsibility-list {
  list-style: none;
  padding: 0;
  margin: 0;
  background: rgba(102, 126, 234, 0.02);
  border-radius: 16px;
  padding: 2rem;
}

.responsibility-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 1.15rem;
  font-weight: 500;
}

.responsibility-list li:last-child {
  margin-bottom: 0;
}

.responsibility-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0.2rem;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.2rem;
}

.tech-section h4 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tech-section h4::before {
  content: '🛠️';
  font-size: 1.4rem;
}

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.tech-item {
  background: var(--bg-light);
  color: var(--primary-color);
  padding: 0.7rem 1.3rem;
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 25px;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.tech-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-colored);
  background: var(--primary-color);
  color: var(--text-white);
}

/* Education Timeline */
.education-timeline {
  max-width: 700px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.education-item {
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid rgba(102, 126, 234, 0.08);
}

.education-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.12);
}

.education-header {
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.03), rgba(118, 75, 162, 0.03));
}

.education-icon {
  width: 60px;
  height: 60px;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.education-icon i {
  color: white;
  font-size: 1.5rem;
}

.education-info {
  flex: 1;
}

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

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

.education-period {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
  margin: 0;
}

/* Remove old timeline CSS - replaced with new experience timeline */

/* Old timeline CSS removed - using new experience timeline design */

/* Old CSS removed - using new experience timeline design */

/* Enhanced Contact Section - Redesigned to match overall theme */
.dynamic-contact {
  padding: 100px 0;
  background: var(--bg-white);
  position: relative;
  overflow: hidden;
}

.contact-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.03) 0%, rgba(118, 75, 162, 0.03) 100%);
}

.contact-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0.5;
}

.contact-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  background: transparent;
}

.dynamic-contact .row {
  position: relative;
  z-index: 2;
}

.dynamic-contact .section-subtitle {
  color: var(--primary-color);
  text-align: center;
}

.dynamic-contact .section-title {
  color: var(--text-primary);
  text-align: center;
}

.section-description {
  text-align: center;
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  font-weight: 400;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.contact-content {
  margin-top: 4rem;
}

.contact-form-wrapper {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(102, 126, 234, 0.1);
  position: relative;
  overflow: hidden;
}

.contact-form-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
}

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

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

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

.enhanced-contact-form {
  max-width: 100%;
}

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

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

.input-wrapper {
  position: relative;
}

.form-control {
  width: 100%;
  padding: 1.2rem 1rem 0.8rem;
  background: rgba(102, 126, 234, 0.03);
  border: 2px solid rgba(102, 126, 234, 0.15);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
  outline: none;
}

.form-control:focus {
  border-color: var(--primary-color);
  background: rgba(102, 126, 234, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.form-control::placeholder {
  color: transparent;
}

.floating-label {
  position: absolute;
  top: 1.2rem;
  left: 1rem;
  color: var(--text-secondary);
  font-size: 1rem;
  transition: all 0.3s ease;
  pointer-events: none;
  background: transparent;
}

.form-control:focus + .floating-label,
.form-control:not(:placeholder-shown) + .floating-label {
  top: 0.3rem;
  font-size: 0.8rem;
  color: var(--primary-color);
  font-weight: 600;
}

.input-border {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-gradient);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 2px;
}

.form-control:focus ~ .input-border {
  width: 100%;
}

/* Form Validation States */
.form-control.valid {
  border-color: rgba(40, 167, 69, 0.6);
  background: rgba(40, 167, 69, 0.1);
}

.form-control.invalid {
  border-color: rgba(220, 53, 69, 0.6);
  background: rgba(220, 53, 69, 0.1);
}

.form-control.valid ~ .input-border {
  background: linear-gradient(90deg, rgba(40, 167, 69, 0.8), rgba(40, 167, 69, 0.6));
  width: 100%;
}

.form-control.invalid ~ .input-border {
  background: linear-gradient(90deg, rgba(220, 53, 69, 0.8), rgba(220, 53, 69, 0.6));
  width: 100%;
}

.anti-spam-wrapper {
  margin: 2rem 0;
}

.honeypot-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.math-captcha {
  background: rgba(102, 126, 234, 0.05);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(102, 126, 234, 0.15);
}

.captcha-label {
  display: block;
  color: var(--text-primary);
  font-weight: 600;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
}

.captcha-input {
  width: 100px;
  padding: 0.8rem;
  background: var(--bg-white);
  border: 2px solid rgba(102, 126, 234, 0.2);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 1rem;
  text-align: center;
  font-weight: 600;
}

.captcha-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-actions {
  text-align: center;
  margin-top: 2rem;
}

.submit-btn {
  background: var(--primary-gradient);
  border: none;
  border-radius: var(--radius-full);
  padding: 0;
  color: white !important;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-width: 180px;
  height: 60px;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  transition: opacity 0.3s ease;
  color: white !important;
  padding: 0 2.5rem;
}

.btn-text {
  color: white !important;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.btn-icon {
  color: white !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon svg {
  width: 20px;
  height: 20px;
  stroke: white;
  fill: none;
}

.btn-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.submit-btn.loading .btn-content {
  opacity: 0;
}

.submit-btn.loading .btn-loader {
  opacity: 1;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

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

.message {
  display: none;
  padding: 1.5rem;
  border-radius: 15px;
  margin-bottom: 1rem;
  animation: slideIn 0.3s ease;
}

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

.success-message {
  background: rgba(40, 167, 69, 0.2);
  border: 1px solid rgba(40, 167, 69, 0.5);
  color: #28a745;
}

.error-message {
  background: rgba(220, 53, 69, 0.2);
  border: 1px solid rgba(220, 53, 69, 0.5);
  color: #dc3545;
}

.message-icon {
  font-size: 1.5rem;
  font-weight: bold;
}

.message-content h4 {
  margin: 0 0 0.5rem 0;
  font-weight: 600;
}

.message-content p {
  margin: 0;
  opacity: 0.9;
}

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

.contact-info-wrapper {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(102, 126, 234, 0.1);
  height: fit-content;
  position: relative;
  overflow: hidden;
}

.contact-info-wrapper::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
}

.contact-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

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

.contact-header p {
  color: var(--text-secondary);
  font-size: var(--text-base);
}

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

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem;
  background: rgba(102, 126, 234, 0.03);
  border-radius: var(--radius-lg);
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(102, 126, 234, 0.1);
}

.contact-method:hover {
  background: rgba(102, 126, 234, 0.08);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
  border-color: rgba(102, 126, 234, 0.2);
}

.method-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-gradient);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.contact-method:hover .method-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.method-icon svg {
  color: white;
}

.method-content {
  flex: 1;
}

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

.method-content p {
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
  font-weight: 500;
}

.method-note {
  font-size: 0.9rem;
  color: var(--text-secondary);
  font-style: italic;
}

.response-time {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
  border: 1px solid rgba(102, 126, 234, 0.15);
}

.response-icon {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-gradient);
  border-radius: var(--radius-sm);
}

.response-content h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.3rem;
}

.response-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0;
}

.social-connect {
  text-align: center;
}

.social-connect h4 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.social-link {
  width: 50px;
  height: 50px;
  background: rgba(102, 126, 234, 0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(102, 126, 234, 0.2);
}

.social-link:hover {
  background: var(--primary-gradient);
  color: white;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
  border-color: transparent;
}

.social-link.whatsapp:hover {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  border-color: #25D366;
}

.social-link.linkedin:hover {
  background: linear-gradient(135deg, #0077B5 0%, #00669C 100%);
  border-color: #0077B5;
}

.social-link.instagram:hover {
  background: linear-gradient(135deg, #E1306C 0%, #C13584 100%);
  border-color: transparent;
}

.social-link.twitter:hover {
  background: linear-gradient(135deg, #1DA1F2 0%, #0C85D0 100%);
  border-color: #1DA1F2;
}

/* Responsive Design for Contact Section */
@media (max-width: 768px) {
  .contact-content {
    flex-direction: column;
  }

  .contact-form-wrapper,
  .contact-info-wrapper {
    margin-bottom: 2rem;
  }

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

  .contact-form-wrapper,
  .contact-info-wrapper {
    padding: 2rem;
  }

  .social-links {
    flex-wrap: wrap;
  }
}

.contact-form-container {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.dynamic-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-field {
  position: relative;
  margin-bottom: 2rem;
}

.form-input {
  width: 100%;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  color: white;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.15);
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

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

.form-label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  pointer-events: none;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
  top: -10px;
  left: 10px;
  font-size: 0.8rem;
  background: rgba(102, 126, 234, 0.8);
  padding: 0 5px;
  border-radius: 3px;
}

.dynamic-submit-btn {
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.3));
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  color: white;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.dynamic-submit-btn:hover {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.4));
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-text {
  transition: opacity 0.3s ease;
}

.btn-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.dynamic-submit-btn.loading .btn-text {
  opacity: 0;
}

.dynamic-submit-btn.loading .btn-loader {
  opacity: 1;
}

.loader-dots {
  display: flex;
  gap: 5px;
}

.dot {
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  animation: dotPulse 1.4s infinite ease-in-out;
}

.dot:nth-child(2) {
  animation-delay: 0.2s;
}

.dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dotPulse {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.form-message {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 10px;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.form-message.show {
  opacity: 1;
  transform: translateY(0);
}

.form-message.success {
  background: rgba(40, 167, 69, 0.2);
  border: 1px solid rgba(40, 167, 69, 0.5);
  color: #28a745;
}

.form-message.warning {
  background: rgba(220, 53, 69, 0.2);
  border: 1px solid rgba(220, 53, 69, 0.5);
  color: #dc3545;
}

.contact-info-item {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  margin-bottom: 2rem;
  transition: all 0.3s ease;
}

.contact-info-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.15);
}

.contact-info-item .icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: white;
}

.contact-info-item h5 {
  color: white;
  margin-bottom: 1rem;
  font-weight: 600;
}

.contact-info-item p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

/* Enhanced Footer - Redesigned to match overall theme */
.dynamic-footer {
  background: var(--bg-dark);
  padding: 3rem 0 2rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.dynamic-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="white" opacity="0.05"/><circle cx="80" cy="30" r="1.5" fill="white" opacity="0.05"/><circle cx="60" cy="70" r="1" fill="white" opacity="0.05"/></svg>');
  opacity: 0.5;
}

.dynamic-footer .row {
  position: relative;
  z-index: 2;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-social-link:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.copyright {
  text-align: center;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 2rem;
  font-size: 0.95rem;
}

.copyright p {
  margin: 0;
}

.go-top-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.go-top-btn.show {
  opacity: 1;
  visibility: visible;
}

.go-top-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.go-top-btn a {
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
}

/* Enhanced Preloader */
.dynamic-preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}

.loader-container {
  text-align: center;
  color: white;
}

.loader-text {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  font-weight: 300;
  letter-spacing: 2px;
}

.loader-progress {
  width: 200px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
}

.loader-bar {
  height: 100%;
  background: white;
  border-radius: 2px;
  animation: loadProgress 2s ease-in-out infinite;
}

@keyframes loadProgress {
  0% {
    width: 0%;
    transform: translateX(-100%);
  }
  50% {
    width: 100%;
    transform: translateX(0%);
  }
  100% {
    width: 100%;
    transform: translateX(100%);
  }
}

/* Responsive Design */

/* Large screens (1200px and up) */
@media (min-width: 1200px) {
  .nav-container {
    max-width: 1400px;
  }

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

  .experience-timeline {
    max-width: 1280px;
  }
}

/* Medium screens (768px to 1199px) */
@media (max-width: 1199px) {
  .nav-container {
    padding: var(--space-sm) var(--space-md);
  }

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

  .profile-frame {
    width: 250px;
    height: 250px;
  }
}

/* Tablet screens (768px to 991px) */
@media (max-width: 991px) {
  .action-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hover-effect {
    width: 100%;
    max-width: 300px;
  }

  .about-content .col-six {
    margin-bottom: var(--space-xl);
  }
}

/* Small tablets and large phones (768px and down) */
@media (max-width: 768px) {
  :root {
    --space-xs: 0.25rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 2.5rem;
  }

  .nav-menu {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-container {
    padding: var(--space-sm) var(--space-md);
  }

  .section-title {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-xl);
  }

  .typewriter {
    font-size: var(--text-3xl);
  }

  @keyframes typing {
    from { width: 0 }
    to { width: 14ch; }
  }

  .intro-text-container {
    padding: 0 var(--space-md);
  }

  .dynamic-social {
    position: relative;
    left: auto;
    bottom: auto;
    flex-direction: row;
    justify-content: center;
    margin-top: var(--space-xl);
    gap: var(--space-sm);
  }

  .scroll-indicator {
    display: none;
  }

  .profile-frame {
    width: 200px;
    height: 200px;
  }

  .profile-card, .skills-card {
    padding: var(--space-lg);
    margin-bottom: var(--space-lg);
  }

  .dynamic-about {
    padding: 60px 0;
  }

  .dynamic-resume {
    padding: 60px 0;
  }

  .dynamic-contact {
    padding: 60px 0;
  }

  /* Experience Timeline Responsive */
  .experience-timeline {
    max-width: 100%;
  }

  .experience-item {
    margin-bottom: 2rem;
  }

  .experience-header {
    padding: 2rem 1.5rem 1.5rem;
  }

  .company-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }

  .company-logo {
    width: 60px;
    height: 60px;
    align-self: center;
  }

  .company-info {
    text-align: center;
    width: 100%;
  }

  .company-info h3.company-name {
    font-size: 1.3rem;
  }

  .company-details {
    font-size: 0.9rem;
  }

  .role-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .role-title {
    font-size: 1.5rem;
  }

  .role-period {
    align-items: flex-start;
    gap: 0.5rem;
  }

  .period-dates {
    font-size: 1rem;
  }

  .period-duration {
    font-size: 0.8rem;
    padding: 0.3rem 0.8rem;
  }

  .experience-content {
    padding: 2rem 1.5rem;
  }

  .role-overview p {
    font-size: 1.15rem;
    padding: 1.5rem;
  }

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

  .highlight-card {
    padding: 1.5rem 1rem;
  }

  .highlight-number {
    font-size: 2rem;
  }

  .highlight-label {
    font-size: 0.85rem;
  }

  .responsibility-list {
    padding: 1.5rem;
  }

  .responsibility-list li {
    font-size: 1.05rem;
    line-height: 1.7;
  }

  .tech-list {
    gap: 0.5rem;
  }

  .tech-item {
    font-size: 0.9rem;
    padding: 0.6rem 1.1rem;
  }

  /* Education Responsive */
  .education-timeline {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .education-header {
    padding: 1.5rem;
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .education-icon {
    width: 50px;
    height: 50px;
  }

  .degree-title {
    font-size: 1.2rem;
  }

  .institution-name {
    font-size: 1rem;
  }

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

/* Mobile phones (480px and down) */
@media (max-width: 480px) {
  :root {
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 0.75rem;
    --space-lg: 1rem;
    --space-xl: 1.5rem;
    --space-2xl: 2rem;

    --text-xs: 0.7rem;
    --text-sm: 0.8rem;
    --text-base: 0.9rem;
    --text-lg: 1rem;
    --text-xl: 1.1rem;
    --text-2xl: 1.3rem;
    --text-3xl: 1.6rem;
    --text-4xl: 2rem;
    --text-5xl: 2.5rem;
  }

  .nav-container {
    padding: var(--space-sm) var(--space-md);
  }

  .nav-logo .logo-text {
    font-size: var(--text-xl);
  }

  .section-title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-lg);
  }

  .section-subtitle {
    font-size: var(--text-xs);
    margin-bottom: var(--space-xs);
  }

  .typewriter {
    font-size: var(--text-2xl);
    letter-spacing: 0.1em;
  }

  @keyframes typing {
    from { width: 0 }
    to { width: 13ch; }
  }

  .intro-text-container {
    padding: 0 var(--space-sm);
  }

  .intro-text-container h5 {
    font-size: var(--text-base);
  }

  .position-text {
    font-size: var(--text-base);
    letter-spacing: 1px;
  }

  .pulse-btn {
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--text-base);
  }

  .profile-frame {
    width: 150px;
    height: 150px;
  }

  .profile-card, .skills-card {
    padding: var(--space-md);
    margin-bottom: var(--space-md);
  }

  .profile-card h3, .skills-card h3 {
    font-size: var(--text-lg);
  }

  .animated-text {
    font-size: var(--text-base);
    line-height: 1.6;
  }

  .skill-item {
    padding: var(--space-sm);
    margin-bottom: var(--space-md);
  }

  .skill-name {
    font-size: var(--text-sm);
  }

  .skill-percent {
    font-size: var(--text-xs);
  }

  .action-buttons {
    gap: var(--space-sm);
    margin-top: var(--space-lg);
  }

  .hover-effect {
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--text-sm);
    min-width: 140px;
  }

  .dynamic-about,
  .dynamic-resume,
  .dynamic-contact {
    padding: 40px 0;
  }

  .dynamic-social {
    gap: var(--space-xs);
  }

  .social-link {
    width: 40px;
    height: 40px;
  }

  .contact-form-wrapper,
  .contact-info-wrapper {
    padding: var(--space-lg);
  }

  .form-header h3,
  .contact-header h3 {
    font-size: var(--text-lg);
  }

  .submit-btn {
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--text-base);
    min-width: 150px;
    height: 50px;
  }
}

/* Extra small phones (360px and down) */
@media (max-width: 360px) {
  :root {
    --space-xs: 0.2rem;
    --space-sm: 0.4rem;
    --space-md: 0.6rem;
    --space-lg: 0.8rem;
    --space-xl: 1.2rem;
    --space-2xl: 1.6rem;
  }

  .nav-container {
    padding: var(--space-xs) var(--space-sm);
  }

  .intro-text-container {
    padding: 0 var(--space-xs);
  }

  .typewriter {
    font-size: var(--text-xl);
  }

  @keyframes typing {
    from { width: 0 }
    to { width: 12ch; }
  }

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

  .profile-frame {
    width: 120px;
    height: 120px;
  }

  .profile-card, .skills-card {
    padding: var(--space-sm);
  }

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

  .hover-effect {
    width: 100%;
    max-width: 200px;
  }

  .contact-form-wrapper,
  .contact-info-wrapper {
    padding: var(--space-md);
  }
}

/* ============================================ */
/* COMPREHENSIVE THEME OVERRIDES - 2025 REDESIGN */
/* ============================================ */

/* Force clean white background everywhere */
body,
html {
  background: var(--bg-white) !important;
  color: var(--text-primary) !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* Override all legacy dark theme colors */
section {
  background: var(--bg-white);
  color: var(--text-primary);
}

/* Navigation - Modern Blue */
.dynamic-nav {
  background: var(--bg-white) !important;
  border-bottom: 1px solid rgba(37, 99, 235, 0.1);
}

.nav-logo .logo-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.nav-link {
  color: var(--text-secondary) !important;
  font-weight: 500;
}

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

/* Hero Section - Gradient Background */
#intro.dynamic-intro {
  background: url('../images/intro-bg.jpg') center center / cover no-repeat !important;
  position: relative;
}

#intro h1,
#intro h5,
#intro .position-text {
  color: var(--text-white) !important;
}

.intro-overlay {
  background: rgba(15, 23, 42, 0.3) !important;
}

/* Buttons - Consistent Primary Color */
.button,
.pulse-btn,
.hover-effect {
  background: var(--primary-color) !important;
  color: var(--text-white) !important;
  border: 2px solid var(--primary-color) !important;
  transition: all var(--transition-base);
}

.button:hover,
.pulse-btn:hover,
.hover-effect:hover {
  background: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-colored);
}

.button.stroke {
  background: var(--bg-white) !important;
  color: var(--primary-color) !important;
  border: 2px solid var(--primary-color) !important;
}

.button.stroke:hover {
  background: var(--primary-color) !important;
  color: var(--bg-white) !important;
}

.button-primary {
  background: var(--primary-gradient) !important;
  border: none !important;
  color: var(--bg-white) !important;
}

.button-primary:hover {
  color: var(--bg-white) !important;
}

/* About Section - Clean White */
.dynamic-about {
  background: var(--bg-white) !important;
}

.section-subtitle {
  color: var(--primary-color) !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.section-title {
  color: var(--text-primary) !important;
  font-weight: 700;
}

.lead,
.animated-text {
  color: var(--text-secondary) !important;
  line-height: 1.8;
}

/* Profile and Skills Cards */
.profile-card,
.skills-card {
  background: var(--bg-white) !important;
  border: 1px solid rgba(37, 99, 235, 0.1);
  box-shadow: var(--shadow-md);
}

.profile-card h3,
.skills-card h3 {
  color: var(--text-primary) !important;
  font-weight: 700;
}

.profile-card p {
  color: var(--text-secondary) !important;
}

.info-list .info-item {
  color: var(--text-secondary) !important;
}

.info-list .info-item strong {
  color: var(--text-primary) !important;
}

/* Skill Bars - Primary Color */
.skill-name {
  color: var(--text-primary) !important;
  font-weight: 600;
}

.skill-percent {
  color: var(--primary-color) !important;
  font-weight: 700;
}

.skill-bar {
  background: var(--bg-lighter) !important;
}

.skill-progress {
  background: var(--primary-gradient) !important;
}

/* Resume Section - Light Gray Background */
.dynamic-resume,
.grey-section {
  background: var(--bg-light) !important;
}

.timeline-title {
  color: var(--text-primary) !important;
  font-weight: 700;
}

/* Experience Cards - White with Blue Accents */
.experience-item {
  background: var(--bg-white) !important;
  border: 1px solid rgba(37, 99, 235, 0.1);
  box-shadow: var(--shadow-md);
}

.experience-item:hover {
  box-shadow: var(--shadow-colored);
  border-color: var(--primary-color);
}

.company-name {
  color: var(--text-primary) !important;
  font-weight: 700;
}

.company-details {
  color: var(--text-muted) !important;
}

.role-title {
  color: var(--primary-color) !important;
  font-weight: 700;
}

.period-dates {
  color: var(--text-secondary) !important;
}

.period-duration {
  background: var(--primary-gradient);
  color: var(--text-white) !important;
}

.role-overview p {
  color: var(--text-secondary) !important;
}

.highlights-section h4,
.responsibilities-section h4,
.tech-section h4 {
  color: var(--text-primary) !important;
  font-weight: 700;
}

.highlight-card {
  background: var(--bg-light) !important;
  border: 1px solid rgba(37, 99, 235, 0.1);
}

.highlight-number {
  color: var(--primary-color) !important;
  font-weight: 700;
}

.highlight-label {
  color: var(--text-secondary) !important;
}

.responsibility-list li {
  color: var(--text-secondary) !important;
}

.responsibility-list li::before {
  background: var(--primary-gradient);
}

.tech-item {
  background: var(--bg-light) !important;
  color: var(--primary-color) !important;
  border: 1px solid rgba(37, 99, 235, 0.2);
  font-weight: 500;
}

.tech-item:hover {
  background: var(--primary-color) !important;
  color: var(--text-white) !important;
}

/* Education Cards */
.education-item {
  background: var(--bg-white) !important;
  border: 1px solid rgba(37, 99, 235, 0.1);
  box-shadow: var(--shadow-md);
}

.education-icon {
  background: var(--primary-gradient);
  color: var(--text-white) !important;
}

.degree-title {
  color: var(--text-primary) !important;
  font-weight: 700;
}

.institution-name {
  color: var(--primary-color) !important;
  font-weight: 600;
}

.education-period {
  color: var(--text-muted) !important;
}

/* Contact Section - White Background */
.dynamic-contact {
  background: var(--bg-white) !important;
}

.contact-background {
  background: var(--bg-light) !important;
}

.contact-overlay {
  background: rgba(255, 255, 255, 0.5) !important;
}

.contact-form-wrapper,
.contact-info-wrapper {
  background: var(--bg-white) !important;
  border: 1px solid rgba(37, 99, 235, 0.1);
  box-shadow: var(--shadow-lg);
}

.form-header h3,
.contact-header h3 {
  color: var(--text-primary) !important;
  font-weight: 700;
}

.form-header p,
.contact-header p {
  color: var(--text-secondary) !important;
}

/* Form Inputs */
.form-control {
  background: var(--bg-white) !important;
  border: 2px solid var(--bg-lighter) !important;
  color: var(--text-primary) !important;
}

.form-control:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
}

.floating-label {
  color: var(--text-muted) !important;
}

.form-control:focus + .floating-label,
.form-control:not(:placeholder-shown) + .floating-label {
  color: var(--primary-color) !important;
}

.input-border {
  background: var(--primary-gradient);
}

/* Submit Button */
.submit-btn {
  background: var(--primary-gradient) !important;
  color: var(--text-white) !important;
  border: none !important;
  font-weight: 600;
}

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

/* Contact Methods */
.contact-method {
  background: var(--bg-light) !important;
  border: 1px solid rgba(37, 99, 235, 0.1);
}

.contact-method:hover {
  background: var(--bg-white) !important;
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
}

.method-icon {
  background: var(--primary-gradient);
  color: var(--text-white) !important;
}

.method-content h4 {
  color: var(--text-primary) !important;
  font-weight: 700;
}

.method-content p {
  color: var(--text-secondary) !important;
  font-weight: 600;
}

.method-note {
  color: var(--text-muted) !important;
}

/* Response Time Card */
.response-time {
  background: var(--bg-light) !important;
  border: 1px solid rgba(37, 99, 235, 0.1);
}

.response-icon {
  color: var(--primary-color);
}

.response-content h4 {
  color: var(--text-primary) !important;
  font-weight: 700;
}

.response-content p {
  color: var(--text-secondary) !important;
}

/* Social Links */
.social-connect h4 {
  color: var(--text-primary) !important;
  font-weight: 700;
}

.social-link {
  background: var(--bg-light) !important;
  color: var(--primary-color) !important;
  border: 1px solid rgba(37, 99, 235, 0.1);
}

.social-link:hover {
  background: var(--primary-gradient) !important;
  color: var(--text-white) !important;
  transform: translateY(-3px);
  box-shadow: var(--shadow-colored);
}

.social-link.whatsapp:hover {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%) !important;
}

.social-link.linkedin:hover {
  background: linear-gradient(135deg, #0077B5 0%, #00669C 100%) !important;
}

.social-link.instagram:hover {
  background: linear-gradient(135deg, #E1306C 0%, #C13584 100%) !important;
}

/* Intro Social Links */
.intro-social .social-link {
  background: rgba(255, 255, 255, 0.1) !important;
  color: var(--text-white) !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.intro-social .social-link:hover {
  background: var(--text-white) !important;
  color: var(--primary-color) !important;
}

.social-tooltip {
  background: var(--text-white) !important;
  color: var(--text-primary) !important;
  box-shadow: var(--shadow-md);
}

/* Footer */
.dynamic-footer {
  background: var(--bg-dark) !important;
  color: var(--text-white) !important;
}

.footer-social-link {
  background: rgba(255, 255, 255, 0.1) !important;
  color: var(--text-white) !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-social-link:hover {
  background: var(--primary-gradient) !important;
  color: var(--text-white) !important;
  transform: translateY(-3px);
}

.copyright p {
  color: rgba(255, 255, 255, 0.7) !important;
}

/* Go to Top Button */
.go-top-btn a {
  background: var(--primary-gradient) !important;
  color: var(--text-white) !important;
  border: none !important;
}

.go-top-btn a:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-colored);
}

/* Scroll Indicator */
.scroll-indicator {
  color: var(--text-white) !important;
}

.scroll-text {
  color: var(--text-white) !important;
}

.scroll-arrow {
  border-color: var(--text-white) !important;
}

/* Preloader */
.dynamic-preloader {
  background: var(--bg-white) !important;
}

.loader-text {
  color: var(--primary-color) !important;
  font-weight: 700;
}

.loader-bar {
  background: var(--primary-gradient) !important;
}

/* Floating Shapes - Subtle Blue Tones */
.shape {
  opacity: 0.15;
}

.shape-1 {
  background: var(--primary-color);
}

.shape-2 {
  background: var(--secondary-color);
}

.shape-3 {
  background: var(--accent-color);
}

.shape-4 {
  background: var(--primary-light);
}

.shape-5 {
  background: var(--secondary-light);
}

/* Profile Picture Frame */
.profile-frame {
  border: 4px solid var(--primary-color);
  box-shadow: var(--shadow-colored);
}

.profile-overlay {
  background: var(--primary-gradient);
  opacity: 0;
}

.profile-frame:hover .profile-overlay {
  opacity: 0.1;
}

/* Position Underline */
.position-underline {
  background: var(--text-white);
}

/* Message Alerts */
.success-message {
  background: var(--bg-white) !important;
  border: 2px solid var(--accent-success);
  color: var(--accent-success) !important;
}

.error-message {
  background: var(--bg-white) !important;
  border: 2px solid var(--accent-danger);
  color: var(--accent-danger) !important;
}

.message-icon {
  color: inherit;
}

.message-content h4 {
  color: inherit !important;
}

.message-content p {
  color: var(--text-secondary) !important;
}

/* Math Captcha */
.captcha-label {
  color: var(--text-secondary) !important;
}

.captcha-input {
  background: var(--bg-white) !important;
  border: 2px solid var(--bg-lighter) !important;
  color: var(--text-primary) !important;
}

.captcha-input:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1) !important;
}

/* Ensure all text is readable */
p, li, span, div {
  color: inherit;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
}

/* Remove any remaining dark backgrounds */
* {
  background-color: inherit;
}

/* Ensure proper contrast */
.text-container p {
  color: var(--text-secondary) !important;
}

/* Company Logo Containers */
.company-logo {
  background: var(--bg-white) !important;
  border: 1px solid var(--bg-lighter);
  padding: 8px;
  border-radius: var(--radius-sm);
}

/* ============================================ */
/* ADDITIONAL COMPREHENSIVE OVERRIDES */
/* ============================================ */

/* Override main.css dark theme */
body {
  background: var(--bg-white) !important;
  color: var(--text-primary) !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* All headings */
h1, h2, h3, h4, h5, h6,
.h01, .h02, .h03, .h04, .h05, .h06 {
  color: var(--text-primary) !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 700;
}

/* All links */
a,
a:visited {
  color: var(--primary-color) !important;
  text-decoration: none;
}

a:hover,
a:focus,
a:active {
  color: var(--primary-dark) !important;
}

/* Paragraphs */
p {
  color: var(--text-secondary);
  line-height: 1.8;
}

/* Lists */
ul, ol {
  color: var(--text-secondary);
}

/* Section backgrounds */
section {
  background: var(--bg-white);
}

section.grey-section,
section.dynamic-resume {
  background: var(--bg-light) !important;
}

/* Row containers */
.row {
  background: transparent;
}

/* Intro section specific */
#intro {
  background: url('../images/intro-bg.jpg') center center / cover no-repeat !important;
  color: var(--text-white) !important;
}

#intro * {
  color: var(--text-white);
}

#intro h1,
#intro h5,
#intro .position-text,
#intro .intro-position {
  color: var(--text-white) !important;
}

/* About section */
#about {
  background: var(--bg-white) !important;
}

#about * {
  color: var(--text-primary);
}

#about p,
#about li,
#about span {
  color: var(--text-secondary) !important;
}

#about h1,
#about h2,
#about h3,
#about h4,
#about h5 {
  color: var(--text-primary) !important;
}

#about .section-subtitle {
  color: var(--primary-color) !important;
}

/* Resume section */
#resume {
  background: var(--bg-light) !important;
}

#resume * {
  color: var(--text-primary);
}

#resume p,
#resume li {
  color: var(--text-secondary) !important;
}

#resume h1,
#resume h2,
#resume h3,
#resume h4 {
  color: var(--text-primary) !important;
}

#resume .section-subtitle {
  color: var(--primary-color) !important;
}

/* Contact section */
#contact {
  background: var(--bg-white) !important;
}

#contact * {
  color: var(--text-primary);
}

#contact p {
  color: var(--text-secondary) !important;
}

#contact h1,
#contact h2,
#contact h3,
#contact h4 {
  color: var(--text-primary) !important;
}

#contact .section-subtitle {
  color: var(--primary-color) !important;
}

/* Remove any gradient text that might conflict */
.intro-text-container h1 {
  background: none !important;
  -webkit-text-fill-color: var(--text-white) !important;
  color: var(--text-white) !important;
}

/* Ensure button text is always white */
.button,
.button-primary,
.submit-btn,
.pulse-btn {
  color: var(--text-white) !important;
}

.button.stroke {
  color: var(--primary-color) !important;
  background: var(--bg-white) !important;
}

.button.stroke:hover {
  color: var(--bg-white) !important;
  background: var(--primary-color) !important;
}

/* Fix any remaining dark backgrounds */
.col-twelve,
.col-six,
.tab-full {
  background: transparent;
}

/* ============================================ */
/* COLOR SYSTEM DOCUMENTATION */
/* ============================================ */
/*
 * This website uses a modern, professional color system:
 *
 * PRIMARY COLORS:
 * - Primary Blue: #2563eb (buttons, links, accents)
 * - Primary Dark: #1e40af (hover states)
 * - Primary Light: #3b82f6 (lighter accents)
 *
 * SECONDARY COLORS:
 * - Secondary Purple: #7c3aed (gradients, highlights)
 * - Secondary Dark: #6d28d9 (hover states)
 *
 * ACCENT COLORS:
 * - Accent Cyan: #06b6d4 (special highlights)
 *
 * GRADIENTS:
 * - Primary Gradient: Blue to Purple (135deg, #2563eb to #7c3aed)
 * - Hero Gradient: Dark Blue to Dark Purple (135deg, #1e40af to #6d28d9)
 *
 * BACKGROUNDS:
 * - White: #ffffff (main sections)
 * - Light: #f8fafc (alternating sections)
 * - Dark: #0f172a (footer)
 *
 * TEXT COLORS:
 * - Primary: #1e293b (headings)
 * - Secondary: #475569 (body text)
 * - Muted: #64748b (supporting text)
 * - Light: #94a3b8 (subtle text)
 *
 * All colors are defined as CSS custom properties in :root
 * for easy maintenance and consistency.
 */


/* Final overrides for button visibility */
#about .button.stroke,
#about .hover-effect.button.stroke,
.action-buttons .button.stroke {
  background: var(--bg-white) !important;
  color: var(--primary-color) !important;
  border: 2px solid var(--primary-color) !important;
}

#about .button.stroke:hover,
#about .hover-effect.button.stroke:hover,
.action-buttons .button.stroke:hover {
  background: var(--primary-color) !important;
  color: var(--bg-white) !important;
  border: 2px solid var(--primary-color) !important;
}

#about .button-primary,
#about .hover-effect.button-primary,
.action-buttons .button-primary,
.action-buttons .hover-effect.button-primary {
  background: var(--primary-gradient) !important;
  color: var(--bg-white) !important;
  border: none !important;
}

#about .button-primary:hover,
#about .hover-effect.button-primary:hover,
.action-buttons .button-primary:hover,
.action-buttons .hover-effect.button-primary:hover {
  color: var(--bg-white) !important;
}

/* Desktop width expansions to reduce side whitespace */
@media (min-width: 1024px) {
  /* Section headings area */
  .section-intro { max-width: 1100px !important; }
  /* About content body */
  .about-content { max-width: 1200px !important; }
  /* Work Experience wrapper from legacy styles */
  #resume .resume-timeline { max-width: 1280px !important; }
  /* Allow hero headline to span wider */
  .intro-content h1 { max-width: 1200px !important; }
}
