/* ===== CSS VARIABLES ===== */
:root {
  /* Colors - Matching the image */
  --primary-color: #00d4ff; /* Cyan blue like in the image */
  --primary-dark: #0099cc;
  --secondary-color: #f59e0b;
  --accent-color: #10b981;
  
  /* Neutral colors - DARK BLUE THEME */
  --white: #0a0e1a; /* Very dark blue background */
  --gray-50: #0f172a;
  --gray-100: #1e293b;
  --gray-200: #334155;
  --gray-300: #475569;
  --gray-400: #64748b;
  --gray-500: #94a3b8;
  --gray-600: #cbd5e1;
  --gray-700: #e2e8f0;
  --gray-800: #f1f5f9;
  --gray-900: #ffffff;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
  --gradient-secondary: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
  --gradient-accent: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --gradient-dark: linear-gradient(135deg, #0a0e1a 0%, #0f172a 100%);
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  --font-size-6xl: 3.75rem;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  --spacing-4xl: 5rem;
  
  /* Border radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.3);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.3);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.4), 0 8px 10px -6px rgb(0 0 0 / 0.3);
  
  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 300ms ease-in-out;
  --transition-slow: 500ms ease-in-out;
  
  /* Layout */
  --container-max-width: 1200px;
  --section-padding: var(--spacing-3xl) 0;
}

/* Light theme variables */
[data-theme="light"] {
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
}

/* ===== RESET & BASE STYLES ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--gray-800);
  background-color: var(--white);
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* ===== IMAGE ANIMATIONS WITH BLINKING EFFECT ===== */
.hero__img,
.about__img,
.blog__image img {
  opacity: 1; /* Changed from 0 to 1 to make images visible */
  transform: scale(1); /* Changed from 0.95 to 1 */
  transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  filter: brightness(1); /* Changed from 0.8 to 1 */
  animation: imageBlink 3s ease-in-out infinite;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-2xl);
}

.hero__img.loaded,
.about__img.loaded,
.blog__image img.loaded {
  opacity: 1;
  transform: scale(1);
  filter: brightness(1);
  animation: imageBlink 3s ease-in-out infinite;
}

/* Flexible image containers */
.hero__image-wrapper {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  min-height: 300px;
  max-height: 600px;
  aspect-ratio: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about__image {
  position: relative;
  min-height: 250px;
  max-height: 500px;
  aspect-ratio: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog__image {
  position: relative;
  min-height: 200px;
  max-height: 300px;
  aspect-ratio: auto;
  overflow: hidden;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

/* Responsive image sizing */
@media (max-width: 768px) {
  .hero__image-wrapper {
    min-height: 250px;
    max-height: 400px;
  }
  
  .about__image {
    min-height: 200px;
    max-height: 350px;
  }
  
  .blog__image {
    min-height: 150px;
    max-height: 250px;
  }
}

@media (max-width: 480px) {
  .hero__image-wrapper {
    min-height: 200px;
    max-height: 300px;
  }
  
  .about__image {
    min-height: 180px;
    max-height: 280px;
  }
  
  .blog__image {
    min-height: 120px;
    max-height: 200px;
  }
}

/* Blinking animation for images */
@keyframes imageBlink {
  0%, 100% {
    filter: brightness(1) contrast(1);
    transform: scale(1);
  }
  50% {
    filter: brightness(1.1) contrast(1.1);
    transform: scale(1.02);
  }
  75% {
    filter: brightness(0.9) contrast(0.9);
    transform: scale(0.98);
  }
}

/* Additional flickering effect */
.hero__img::after,
.about__img::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(0, 212, 255, 0.1) 50%, transparent 70%);
  animation: flicker 4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes flicker {
  0%, 100% {
    opacity: 0;
  }
  10%, 90% {
    opacity: 0.1;
  }
  50% {
    opacity: 0.3;
  }
}

/* ===== UTILITY CLASSES ===== */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.section {
  padding: var(--section-padding);
  position: relative;
}

/* Section dividers - đường kẻ xanh phân cách */
.section:not(:last-child)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    #00d4ff 20%, 
    #0099ff 50%, 
    #00d4ff 80%, 
    transparent 100%
  );
  opacity: 1;
  box-shadow: 
    0 0 20px rgba(0, 212, 255, 0.8),
    0 0 40px rgba(0, 153, 255, 0.4),
    0 0 60px rgba(0, 212, 255, 0.2);
  animation: glowPulse 3s ease-in-out infinite;
}

/* Animation cho hiệu ứng sáng */
@keyframes glowPulse {
  0%, 100% {
    box-shadow: 
      0 0 20px rgba(0, 212, 255, 0.8),
      0 0 40px rgba(0, 153, 255, 0.4),
      0 0 60px rgba(0, 212, 255, 0.2);
  }
  50% {
    box-shadow: 
      0 0 30px rgba(0, 212, 255, 1),
      0 0 60px rgba(0, 153, 255, 0.6),
      0 0 90px rgba(0, 212, 255, 0.4);
  }
}

/* Hero section cũng cần divider */
.hero.section::after {
  display: block;
}

/* Footer không cần divider */
.footer::after {
  display: none;
}

.section__header {
  text-align: center;
  margin-bottom: var(--spacing-3xl);
}

.section__title {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--spacing-md);
  line-height: 1.2;
}

.section__subtitle {
  font-size: var(--font-size-lg);
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

.gradient-text {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== BUTTONS - Updated to match image ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: var(--font-size-base);
  font-weight: 500;
  text-decoration: none;
  border: none;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--transition-normal);
  white-space: nowrap;
}

.btn--primary {
  background: var(--primary-color); /* Cyan blue like "Hire Me" button */
  color: var(--white);
  box-shadow: var(--shadow-md);
  border: 2px solid var(--primary-color);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: #0099cc;
  border-color: #0099cc;
}

.btn--outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color); /* Cyan border like "Let's Talk" */
}

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

/* ===== NAVIGATION ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 14, 26, 0.95); /* Dark blue background */
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
  transition: all var(--transition-normal);
}

.nav__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-md) var(--spacing-lg);
  max-width: var(--container-max-width);
  margin: 0 auto;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--gray-900);
  text-decoration: none;
}

.logo__icon {
  font-size: var(--font-size-2xl);
}

.nav__menu {
  display: flex;
  align-items: center;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: var(--spacing-xl);
  list-style: none;
}

.nav__link {
  color: var(--gray-700);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
}

.nav__link:hover {
  color: var(--primary-color);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: width var(--transition-normal);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.theme-toggle,
.nav__toggle {
  background: none;
  border: none;
  font-size: var(--font-size-xl);
  color: var(--gray-700);
  cursor: pointer;
  padding: var(--spacing-sm);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.theme-toggle:hover,
.nav__toggle:hover {
  color: var(--primary-color);
  background: var(--gray-100);
}

.nav__toggle {
  display: none;
}

/* ===== HERO SECTION - Updated background ===== */
.hero {
  padding-top: calc(80px + var(--spacing-3xl));
  background: linear-gradient(135deg, #0a0e1a 0%, #0f172a 100%); /* Dark blue background */
  position: relative;
  overflow: hidden;
}

.hero::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="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23334155" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.2;
}

.hero__container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-3xl);
  align-items: center;
  min-height: 80vh;
}

.hero__badge {
  margin-bottom: var(--spacing-lg);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--gradient-secondary);
  color: var(--white);
  font-size: var(--font-size-sm);
  font-weight: 500;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

/* ===== ENHANCED TYPOGRAPHY & VISUAL EFFECTS ===== */
.hero__title {
  font-size: var(--font-size-5xl);
  font-weight: 900;
  color: var(--gray-900);
  margin-bottom: var(--spacing-lg);
  line-height: 1.1;
  background: linear-gradient(135deg, #00d4ff 0%, #0099cc 50%, #10b981 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 4px 8px rgba(0, 212, 255, 0.3);
  animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
  0%, 100% { filter: brightness(1) drop-shadow(0 0 10px rgba(0, 212, 255, 0.3)); }
  50% { filter: brightness(1.1) drop-shadow(0 0 20px rgba(0, 212, 255, 0.5)); }
}

.section__title {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: var(--spacing-md);
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: relative;
}

.section__title::after {
  /* REMOVED - Underline effect disabled */
  /* content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--gradient-primary);
  border-radius: var(--radius-full); */
}

.hero__description {
  font-size: var(--font-size-lg);
  color: var(--gray-600);
  margin-bottom: var(--spacing-2xl);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-2xl);
  flex-wrap: wrap;
}

.hero__stats {
  display: flex;
  gap: var(--spacing-xl);
}

.stat {
  text-align: center;
}

.stat__number {
  display: block;
  font-size: var(--font-size-3xl);
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
}

.stat__label {
  font-size: var(--font-size-sm);
  color: var(--gray-600);
  font-weight: 500;
}

.hero__image {
  position: relative;
}

.hero__image-wrapper {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  min-height: 300px;
  max-height: 600px;
  aspect-ratio: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--primary-color);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.3), var(--shadow-xl);
  transform: translateZ(0);
  will-change: transform;
  transition: transform 0.3s ease;
}

.hero__image-wrapper:hover {
  transform: translateZ(0) scale(1.02);
}

.hero__img {
  width: 100%;
  height: auto;
  display: block;
}

.hero__image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient-primary);
  opacity: 0.1;
}

/* ===== ABOUT SECTION ===== */
.about__container {
  max-width: 1200px;
  margin: 0 auto;
}

.about__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-4xl);
  align-items: center;
  margin-top: var(--spacing-3xl);
}

.about__image {
  position: relative;
  min-height: 450px;
  max-height: 650px;
  aspect-ratio: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--primary-color);
  border-radius: var(--radius-2xl);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.3), var(--shadow-lg);
  overflow: hidden;
  width: 100%;
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--gray-100) 100%);
}

.about__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-xl);
  transition: all var(--transition-normal);
  filter: brightness(0.9);
  animation: imageBlink 3s ease-in-out infinite;
}

.about__img.loaded {
  opacity: 1;
  transform: scale(1);
  filter: brightness(1);
  animation: imageBlink 3s ease-in-out infinite;
}

.about__experience {
  position: absolute;
  bottom: var(--spacing-lg);
  left: var(--spacing-lg);
  right: var(--spacing-lg);
  display: flex;
  gap: var(--spacing-md);
  justify-content: space-between;
}

.experience__item {
  background: var(--white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  text-align: center;
  min-width: 100px;
  border: 2px solid var(--primary-color);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.2), var(--shadow-lg);
}

.experience__number {
  display: block;
  font-size: var(--font-size-3xl);
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: var(--spacing-xs);
}

.experience__text {
  font-size: var(--font-size-sm);
  color: var(--gray-600);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.about__info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2xl);
}

.about__header {
  margin-bottom: var(--spacing-lg);
}

.about__title {
  font-size: var(--font-size-4xl);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: var(--spacing-sm);
  line-height: 1.2;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about__subtitle {
  font-size: var(--font-size-lg);
  color: var(--primary-color);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.about__description {
  font-size: var(--font-size-lg);
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: var(--spacing-xl);
  text-align: justify;
  text-justify: inter-word;
}

.about__highlights {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-2xl);
}

.highlight__item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-lg);
  padding: var(--spacing-lg);
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  transition: all var(--transition-normal);
}

.highlight__item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.1), var(--shadow-lg);
}

.highlight__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  color: var(--white);
  border-radius: var(--radius-xl);
  font-size: var(--font-size-2xl);
  flex-shrink: 0;
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.highlight__content h4 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--spacing-sm);
  line-height: 1.3;
}

.highlight__content p {
  color: var(--gray-600);
  line-height: 1.6;
  font-size: var(--font-size-base);
}

.about__actions {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

/* Responsive design for about section */
@media (max-width: 1024px) {
.about__content {
    grid-template-columns: 1fr;
    gap: var(--spacing-3xl);
  text-align: center;
}

  .about__image {
    min-height: 400px;
    max-height: 500px;
  }
  
  .about__highlights {
    gap: var(--spacing-lg);
  }
  
  .highlight__item {
    text-align: left;
  }
}

@media (max-width: 768px) {
  .about__title {
    font-size: var(--font-size-3xl);
  }
  
  .about__image {
    min-height: 350px;
    max-height: 450px;
  }
  
  .about__actions {
    justify-content: center;
  }
  
  .highlight__item {
    flex-direction: column;
  text-align: center;
    gap: var(--spacing-md);
  }
  
  .highlight__icon {
    width: 50px;
    height: 50px;
    font-size: var(--font-size-xl);
  }
}

@media (max-width: 480px) {
  .about__image {
    min-height: 300px;
    max-height: 400px;
  }
  
  .about__actions {
    flex-direction: column;
  }
  
  .experience__item {
    padding: var(--spacing-md);
    min-width: 80px;
  }
  
  .experience__number {
    font-size: var(--font-size-2xl);
  }
}

/* ===== JOURNEY SECTION ===== */
.journey {
  background: var(--gray-50);
}

.timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  padding: var(--spacing-2xl) 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  transform: translateX(-50%);
  border-radius: var(--radius-full);
}

.timeline__item {
  position: relative;
  margin-bottom: var(--spacing-4xl);
}

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

.timeline__item:nth-child(odd) .timeline__content {
  margin-left: 0;
  margin-right: 55%;
  text-align: right;
  padding-right: var(--spacing-3xl);
}

.timeline__item:nth-child(even) .timeline__content {
  margin-left: 55%;
  margin-right: 0;
  text-align: left;
  padding-left: var(--spacing-3xl);
}

.timeline__marker {
  position: absolute;
  left: 50%;
  top: 20px;
  width: 24px;
  height: 24px;
  background: var(--gradient-primary);
  border: 4px solid var(--white);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: var(--shadow-lg);
  z-index: 2;
  transition: all var(--transition-normal);
}

.timeline__item:hover .timeline__marker {
  transform: translateX(-50%) scale(1.2);
  box-shadow: 0 0 0 8px rgba(0, 212, 255, 0.1);
}

.timeline__content {
  background: var(--white);
  padding: var(--spacing-2xl);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  position: relative;
  border: 1px solid var(--gray-200);
  transition: all var(--transition-normal);
}

.timeline__content:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-color);
}

.timeline__content::before {
  content: '';
  position: absolute;
  top: 30px;
  width: 0;
  height: 0;
  border: 12px solid transparent;
}

.timeline__item:nth-child(odd) .timeline__content::before {
  right: -24px;
  border-left-color: var(--white);
}

.timeline__item:nth-child(even) .timeline__content::before {
  left: -24px;
  border-right-color: var(--white);
}

.timeline__date {
  display: inline-block;
  background: var(--gradient-primary);
  color: var(--white);
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 700;
  margin-bottom: var(--spacing-lg);
  box-shadow: var(--shadow-md);
  letter-spacing: 0.5px;
}

.timeline__title {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: var(--spacing-lg);
  line-height: 1.3;
}

.timeline__description {
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: var(--spacing-lg);
  font-size: var(--font-size-base);
}

.timeline__tags {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
  justify-content: flex-start;
}

.timeline__item:nth-child(odd) .timeline__tags {
  justify-content: flex-end;
}

.tag {
  background: var(--gray-100);
  color: var(--gray-700);
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 600;
  border: 1px solid var(--gray-200);
  transition: all var(--transition-fast);
}

.tag:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-1px);
}

/* ===== SKILLS SECTION ===== */
.skills__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-2xl);
}

.skill__category {
  background: var(--white);
  padding: var(--spacing-2xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}

.skill__category-title {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--spacing-xl);
}

.skill__category-title i {
  color: var(--primary-color);
  font-size: var(--font-size-2xl);
}

.skill__items {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.skill__item {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

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

.skill__name {
  font-weight: 500;
  color: var(--gray-700);
}

.skill__percentage {
  font-size: var(--font-size-sm);
  color: var(--primary-color);
  font-weight: 600;
}

/* ===== ENHANCED SKILL BARS ===== */
.skill__progress {
  height: 8px;
  background: var(--gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
  animation: slideInFromLeft 1s ease-out;
}

.skill__bar {
  height: 8px;
  background: var(--gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

/* Remove any conflicting ::before pseudo-elements */
.skill__progress::before,
.skill__bar::before {
  display: none;
}

/* Ensure the progress fill has the correct blue color */
.skill__progress > div {
  background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%) !important;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.3) !important;
}

/* ===== BLOG SECTION ===== */
.blog {
  background: var(--gray-50);
}

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

/* ===== ENHANCED BLOG CARDS ===== */
.blog__card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 2px solid var(--gray-200);
  position: relative;
  transform: translateZ(0);
}

.blog__card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 212, 255, 0.15), var(--shadow-xl);
  border-color: var(--primary-color);
}

.blog__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.blog__card:hover::before {
  transform: scaleX(1);
}

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

.blog__card:hover .blog__image img {
  transform: scale(1.05);
}

.blog__content {
  padding: var(--spacing-xl);
}

.blog__meta {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.blog__date,
.blog__category {
  font-size: var(--font-size-sm);
  color: var(--gray-500);
}

.blog__category {
  color: var(--primary-color);
  font-weight: 500;
}

.blog__title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--spacing-md);
  line-height: 1.4;
}

.blog__excerpt {
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: var(--spacing-lg);
}

.blog__link {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: gap var(--transition-fast);
}

.blog__link:hover {
  gap: var(--spacing-sm);
}

.blog__cta {
  text-align: center;
}

/* ===== CONTACT SECTION ===== */
.contact__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-3xl);
  max-width: 800px;
  margin: 0 auto;
}

.contact__info h3 {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--spacing-lg);
}

.contact__info p {
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: var(--spacing-2xl);
}

.contact__methods {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
}

.contact__method {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.contact__method i {
  font-size: var(--font-size-xl);
  color: var(--primary-color);
}

.contact__method h4 {
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: var(--spacing-xs);
}

.contact__method p {
  color: var(--gray-600);
  margin: 0;
}

.contact__socials h3 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--spacing-lg);
}

.social__links {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--gray-100);
  color: var(--gray-700);
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-size: var(--font-size-xl);
  transition: all var(--transition-normal);
}

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

/* ===== ROADMAP SECTION ===== */
.roadmap__timeline {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
  margin-top: var(--spacing-2xl);
  align-items: center;
}

.roadmap__phase {
  display: flex;
  gap: var(--spacing-2xl);
  align-items: flex-start;
  position: relative;
  width: 100%;
  max-width: 900px;
}

.roadmap__phase::after {
  content: '';
  position: absolute;
  left: 30px;
  top: 60px;
  bottom: -60px;
  width: 2px;
  background: var(--gradient-primary);
  z-index: 1;
}

.roadmap__phase:last-child::after {
  display: none;
}

.phase__number {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  color: var(--white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xl);
  font-weight: 700;
  flex-shrink: 0;
  z-index: 2;
  position: relative;
  border: 3px solid rgba(255, 255, 255, 0.8);
  box-shadow: 
    0 0 20px rgba(0, 212, 255, 0.4),
    0 0 40px rgba(0, 212, 255, 0.2);
}

.phase__content {
  flex: 1;
  max-width: 800px;
  background: var(--gray-50);
  padding: var(--spacing-md);
  border-radius: var(--radius-xl);
  border: 3px solid var(--primary-color);
  box-shadow: 
    var(--shadow-md),
    0 0 20px rgba(0, 212, 255, 0.3),
    0 0 40px rgba(0, 212, 255, 0.1);
  transition: var(--transition-normal);
}

.phase__content:hover {
  transform: translateY(-4px);
  box-shadow: 
    var(--shadow-lg),
    0 0 30px rgba(0, 212, 255, 0.5),
    0 0 60px rgba(0, 212, 255, 0.2);
  border-color: var(--primary-color);
  border-width: 4px;
}

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

.phase__title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--gray-900);
}

.phase__duration {
  background: var(--secondary-color);
  color: var(--white);
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 600;
  border: 2px solid rgba(255, 255, 255, 0.8);
  box-shadow: 
    0 0 15px rgba(255, 255, 255, 0.3),
    0 0 30px rgba(255, 255, 255, 0.1);
}

.phase__description {
  color: var(--gray-600);
  line-height: 1.4;
  margin-bottom: var(--spacing-sm);
}

.phase__skills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-sm);
}

.skill__tag {
  background: var(--gray-100);
  color: var(--gray-700);
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 500;
  border: 2px solid var(--primary-color);
  box-shadow: 
    0 0 10px rgba(0, 212, 255, 0.3),
    0 0 20px rgba(0, 212, 255, 0.1);
}

.phase__projects h4 {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: var(--spacing-xs);
}

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

.phase__projects li {
  color: var(--gray-600);
  padding: 0;
  position: relative;
  padding-left: var(--spacing-sm);
  margin-bottom: 2px;
}

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



/* ===== INTERESTS SECTION ===== */
.interests__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--spacing-2xl);
  margin-bottom: var(--spacing-3xl);
}

.interest__card {
  background: transparent;
  border-radius: var(--radius-xl);
  padding: var(--spacing-2xl);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-align: center;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transform-style: preserve-3d;
  perspective: 1000px;
}

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

.interest__card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #ffd700, #ffed4e, #ffd700);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.interest__card:hover {
  transform: translateY(-20px) scale(1.08) translateZ(25px) rotateX(8deg) rotateZ(-5deg);
  border-color: transparent;
  background: transparent;
  perspective: 1000px;
}

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

.interest__card:hover::after {
  transform: scaleX(1);
}

.interest__card:hover {
  animation: goldenGlow 2s ease-in-out infinite alternate;
}

@keyframes goldenGlow {
  0% {
    box-shadow: 
      0 0 0 5px rgba(255, 215, 0, 1),
      0 0 25px rgba(255, 215, 0, 0.8),
      0 0 50px rgba(255, 215, 0, 0.6),
      0 0 75px rgba(255, 215, 0, 0.4),
      0 0 100px rgba(255, 215, 0, 0.2),
      0 10px 30px rgba(0, 0, 0, 0.3),
      0 20px 60px rgba(0, 0, 0, 0.2);
  }
  100% {
    box-shadow: 
      0 0 0 6px rgba(255, 215, 0, 1),
      0 0 35px rgba(255, 215, 0, 0.9),
      0 0 70px rgba(255, 215, 0, 0.7),
      0 0 105px rgba(255, 215, 0, 0.5),
      0 0 140px rgba(255, 215, 0, 0.3),
      0 15px 45px rgba(0, 0, 0, 0.4),
      0 30px 90px rgba(0, 0, 0, 0.3);
  }
}

.interest__card:hover .interest__icon {
  transform: scale(1.25) translateZ(50px);
  filter: drop-shadow(0 0 20px rgba(255, 215, 0, 1));
  animation: iconFloat 2s ease-in-out infinite alternate;
}

@keyframes iconFloat {
  0% {
    transform: scale(1.25) translateZ(50px) translateY(0px) rotate(2deg);
  }
  100% {
    transform: scale(1.25) translateZ(50px) translateY(-5px) rotate(-2deg);
  }
}

.interest__card:hover .interest__title {
  color: #ffd700;
  transform: translateY(-8px) translateZ(40px);
  text-shadow: 0 0 15px rgba(255, 215, 0, 0.8);
  animation: titleFloat 2.5s ease-in-out infinite alternate;
}

@keyframes titleFloat {
  0% {
    transform: translateY(-8px) translateZ(40px) scale(1) rotateZ(1deg);
  }
  100% {
    transform: translateY(-12px) translateZ(40px) scale(1.05) rotateZ(-1deg);
  }
}

.interest__card:hover .interest__description {
  color: var(--gray-700);
}

.interest__icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--spacing-lg);
  font-size: var(--font-size-3xl);
  color: var(--white);
  box-shadow: 
    0 8px 32px rgba(102, 126, 234, 0.3),
    0 4px 16px rgba(118, 75, 162, 0.2);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* Styles for icon images */
.interest__icon-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  display: block;
  transition: all 0.3s ease;
  filter: brightness(1.1) contrast(1.1);
}

/* Fallback icon styles */
.interest__icon-fallback {
  display: none;
  font-size: var(--font-size-3xl);
  color: var(--white);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Alternative fallback approach using JavaScript error handling */
.interest__icon img[style*="display: none"] + .interest__icon-fallback,
.interest__icon .interest__icon-fallback.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hover effects for images */
.interest__card:hover .interest__icon-img {
  transform: scale(1.05);
  filter: brightness(1.2) contrast(1.2);
}

/* Ensure icon container maintains gradient background for fallback */
.interest__icon {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

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

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

.interest__icon:hover {
  transform: translateY(-5px) rotate(5deg);
  box-shadow: 
    0 12px 40px rgba(102, 126, 234, 0.4),
    0 8px 24px rgba(118, 75, 162, 0.3);
}

.interest__title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--spacing-md);
  transition: all 0.3s ease;
}

.interest__description {
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: var(--spacing-lg);
  transition: all 0.3s ease;
}

.interest__details {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  text-align: left;
}

.interest__item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: var(--gray-700);
  font-size: var(--font-size-sm);
}

.interest__item i {
  color: var(--accent-color);
  font-size: var(--font-size-lg);
}



/* ===== LEARNING PATH ===== */
.learning__path {
  margin-top: var(--spacing-4xl);
  padding-top: var(--spacing-3xl);
  border-top: 1px solid var(--gray-200);
}

.path__timeline {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2xl);
  margin-top: var(--spacing-2xl);
}

.path__step {
  display: flex;
  gap: var(--spacing-xl);
  align-items: flex-start;
}

.path__number {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  color: var(--white);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xl);
  font-weight: 700;
  flex-shrink: 0;
}

.path__content {
  flex: 1;
  padding-top: var(--spacing-sm);
}

.path__content h3 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--spacing-sm);
}

.path__content p {
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
}

.path__duration {
  display: inline-block;
  background: var(--secondary-color);
  color: var(--white);
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 600;
}

.resources__cta {
  text-align: center;
  margin-top: var(--spacing-3xl);
}

/* ===== CLEAN MODERN FOOTER ===== */
.footer {
  background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
  color: var(--gray-300);
  padding: var(--spacing-3xl) 0 var(--spacing-lg);
  border-top: 1px solid rgba(0, 212, 255, 0.2);
}

.footer__container {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2xl);
}

.footer__content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--spacing-3xl);
  align-items: start;
}

/* Brand Section - Clean & Professional */
.footer__brand {
  max-width: 380px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.logo__icon {
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xl);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.2);
}

.logo__text {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--white);
}

.footer__description {
  color: var(--gray-400);
  margin-bottom: var(--spacing-lg);
  line-height: 1.6;
  font-size: var(--font-size-base);
}

.footer__social {
  display: flex;
  gap: var(--spacing-sm);
}

.footer__social .social__link {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  text-decoration: none;
  transition: all var(--transition-fast);
  font-size: var(--font-size-base);
}

.footer__social .social__link:hover {
  background: var(--primary-color);
  color: var(--white);
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

/* Links - Simple & Clear */
.footer__links h4 {
  color: var(--white);
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  font-size: var(--font-size-lg);
  position: relative;
}

.footer__links h4::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--primary-color);
  border-radius: var(--radius-full);
}

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

.footer__links li {
  margin-bottom: var(--spacing-sm);
}

.footer__links a {
  color: var(--gray-400);
  text-decoration: none;
  transition: color var(--transition-fast);
  font-size: var(--font-size-sm);
  font-weight: 400;
}

.footer__links a:hover {
  color: var(--white);
}

/* Bottom - Clean & Simple */
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(0, 212, 255, 0.1);
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.footer__bottom p {
  color: var(--gray-500);
  font-size: var(--font-size-sm);
  margin: 0;
}

.footer__tech {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: var(--gray-500);
  font-size: var(--font-size-sm);
}

.footer__tech span:first-child,
.footer__tech span:last-child {
  color: var(--primary-color);
  font-weight: 500;
}

/* Responsive */
@media (max-width: 768px) {
  .footer__content {
    grid-template-columns: 1fr;
    gap: var(--spacing-2xl);
    text-align: center;
  }
  
  .footer__brand {
    max-width: none;
  }
  
  .footer__bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-sm);
  }
  
  .footer__links h4::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
  position: fixed;
  bottom: var(--spacing-xl);
  right: var(--spacing-xl);
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: var(--font-size-lg);
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
}

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

.scroll-top:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Roadmap responsive */
@media screen and (max-width: 768px) {
  .roadmap__phase {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-md);
    max-width: 100%;
  }
  
  .phase__number {
    margin: 0 auto;
  }
  
  .roadmap__phase::after {
    display: none;
  }
  
  .phase__header {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  .phase__content {
    max-width: 100%;
    margin: 0 var(--spacing-md);
  }
}

/* Interests responsive */
@media screen and (max-width: 768px) {
  .interests__grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }
  
  .interest__card {
    padding: var(--spacing-xl);
  }
}

@media screen and (max-width: 480px) {
  .phase__content {
    padding: var(--spacing-lg);
  }
  
  .interest__card {
    padding: var(--spacing-lg);
  }
}
@media (max-width: 1024px) {
  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .about__container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .contact__content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer__content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .nav__menu {
    position: fixed;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    padding: var(--spacing-xl);
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
  }
  
  .nav__menu.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav__list {
    flex-direction: column;
    gap: var(--spacing-lg);
  }
  
  .nav__toggle {
    display: block;
  }
  
  .hero__title {
    font-size: var(--font-size-4xl);
  }
  
  .hero__stats {
    justify-content: center;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline__item:nth-child(odd) .timeline__content,
  .timeline__item:nth-child(even) .timeline__content {
    margin-left: 60px;
    margin-right: 0;
    text-align: left;
    padding-left: var(--spacing-xl);
    padding-right: var(--spacing-xl);
  }
  
  .timeline__marker {
    left: 20px;
  }
  
  .timeline__item:nth-child(odd) .timeline__content::before,
  .timeline__item:nth-child(even) .timeline__content::before {
    left: -24px;
    border-right-color: var(--white);
    border-left-color: transparent;
  }
  
  .timeline__item:nth-child(odd) .timeline__tags {
    justify-content: flex-start;
  }
  
  .skills__grid {
    grid-template-columns: 1fr;
  }
  
  .blog__grid {
    grid-template-columns: 1fr;
  }
  
  .footer__bottom {
    flex-direction: column;
    gap: var(--spacing-md);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--spacing-md);
  }
  
  .hero__actions {
    flex-direction: column;
  }
  
  .hero__stats {
    flex-direction: column;
    gap: var(--spacing-lg);
  }
  
  .about__experience {
    position: static;
    margin-top: var(--spacing-lg);
    justify-content: center;
  }
}

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

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

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

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.8);
    filter: brightness(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
    filter: brightness(1);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.6s ease-out;
}

.animate-fade-in-right {
  animation: fadeInRight 0.6s ease-out;
}

.animate-fade-in-scale {
  animation: fadeInScale 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ===== TEXT LAYOUT IMPROVEMENTS ===== */
.timeline__description,
.about__description,
.hero__description,
.blog__excerpt,
.contact__info p,
.footer__brand p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  word-spacing: 0.1em;
  line-height: 1.8;
}

/* ===== BRIGHT BORDERS FOR FRAMES ===== */
.timeline__content {
  background: var(--white);
  padding: var(--spacing-2xl);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  position: relative;
  border: 3px solid var(--primary-color);
  transition: all var(--transition-normal);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.3), var(--shadow-lg);
}

.timeline__content:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.5), var(--shadow-xl);
  border-color: var(--primary-color);
  border-width: 4px;
}

.blog__card {
  background: var(--white);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  border: 2px solid var(--gray-200);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.1), var(--shadow-md);
}

.blog__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
  border-width: 3px;
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.4), var(--shadow-lg);
}

.skill__category {
  background: var(--white);
  padding: var(--spacing-2xl);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 4px solid var(--primary-color);
  transition: all var(--transition-normal);
  box-shadow: 0 0 35px rgba(0, 212, 255, 0.5), var(--shadow-md);
}

.skill__category:hover {
  border-color: var(--primary-color);
  border-width: 5px;
  box-shadow: 0 0 50px rgba(0, 212, 255, 0.7), var(--shadow-lg);
  transform: translateY(-4px);
}

.skill__category-title {
    display: flex;
    align-items: center;
  gap: var(--spacing-md);
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--spacing-xl);
}

.skill__category-title i {
  color: var(--primary-color);
  font-size: var(--font-size-2xl);
}

/* Enhanced glow effects */
.timeline__marker {
  position: absolute;
  left: 50%;
  top: 20px;
  width: 24px;
  height: 24px;
  background: var(--gradient-primary);
  border: 4px solid var(--white);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 25px rgba(0, 212, 255, 0.8), var(--shadow-lg);
  z-index: 2;
  transition: all var(--transition-normal);
}

.timeline__item:hover .timeline__marker {
  transform: translateX(-50%) scale(1.2);
  box-shadow: 0 0 35px rgba(0, 212, 255, 1), 0 0 0 10px rgba(0, 212, 255, 0.2);
}

/* Button enhancements */
.btn--primary {
  background: var(--primary-color);
  color: var(--white);
  box-shadow: var(--shadow-md);
  border: 2px solid var(--primary-color);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.5), var(--shadow-md);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 35px rgba(0, 212, 255, 0.8), var(--shadow-lg);
  background: #0099cc;
  border-color: #0099cc;
  border-width: 3px;
}

.btn--outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.3);
}

.btn--outline:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.6), var(--shadow-md);
  border-width: 3px;
}

/* Tag enhancements */
.tag {
  background: var(--gray-100);
  color: var(--gray-700);
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 600;
  border: 1px solid var(--gray-200);
  transition: all var(--transition-fast);
  box-shadow: 0 0 8px rgba(0, 212, 255, 0.2);
}

.tag:hover {
  background: var(--primary-color);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
  border-color: var(--primary-color);
  border-width: 2px;
}

/* Additional bright elements */
.timeline__date {
  display: inline-block;
  background: var(--gradient-primary);
  color: var(--white);
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 700;
  margin-bottom: var(--spacing-lg);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.4), var(--shadow-md);
  letter-spacing: 0.5px;
}

/* Timeline line enhancement */
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  transform: translateX(-50%);
  border-radius: var(--radius-full);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.6);
}

/* ===== ENHANCED PARALLAX EFFECTS ===== */
.hero__image-wrapper {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  min-height: 300px;
  max-height: 600px;
  aspect-ratio: auto;
  display: flex;
    align-items: center;
  justify-content: center;
  border: 3px solid var(--primary-color);
  box-shadow: 0 0 30px rgba(0, 212, 255, 0.3), var(--shadow-xl);
  transform: translateZ(0);
  will-change: transform;
  transition: transform 0.3s ease;
}

.hero__image-wrapper:hover {
  transform: translateZ(0) scale(1.02);
}

/* ===== ENHANCED NAVIGATION ===== */
.navbar {
  background: rgba(10, 14, 26, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 212, 255, 0.1);
  transition: all 0.3s ease;
}

.nav__link {
  position: relative;
  transition: all 0.3s ease;
}

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

.nav__link:hover::after {
  width: 100%;
}

/* ===== THEME TOGGLE ANIMATION ===== */
.theme-toggle {
  transition: transform 0.3s ease;
}

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

/* ===== ENHANCED IMAGE ANIMATIONS ===== */
.hero__img,
.about__img,
.blog__image img {
  opacity: 1; /* Changed from 0 to 1 to make images visible */
  transform: scale(1); /* Changed from 0.95 to 1 */
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  filter: brightness(1); /* Changed from 0.8 to 1 */
  animation: imageBlink 3s ease-in-out infinite;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-2xl);
}

.hero__img.loaded,
.about__img.loaded,
.blog__image img.loaded {
  opacity: 1;
  transform: scale(1);
  filter: brightness(1);
  animation: imageBlink 3s ease-in-out infinite;
}

/* ===== TOUCH-FRIENDLY MOBILE ===== */
@media (max-width: 768px) {
  .btn {
    min-height: 48px;
    padding: 12px 24px;
  }
  
  .nav__link {
    padding: 16px 20px;
  }
  
  .hero__title {
    font-size: var(--font-size-4xl);
  }
}

/* ===== RIPPLE EFFECT FOR BUTTONS ===== */
@keyframes ripple {
  0% {
    transform: scale(0);
    opacity: 1;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

/* ===== ENHANCED GRID ANIMATION ===== */
@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(10px, 10px); }
}

/* ===== ENHANCED TITLE GLOW ===== */
@keyframes titleGlow {
  0%, 100% { 
    filter: brightness(1) drop-shadow(0 0 10px rgba(0, 212, 255, 0.3)); 
  }
  50% { 
    filter: brightness(1.1) drop-shadow(0 0 20px rgba(0, 212, 255, 0.5)); 
  }
}

/* ===== ENHANCED SHIMMER EFFECT ===== */
@keyframes shimmer {
  0% { background-position: -200px 0; }
  100% { background-position: calc(200px + 100%) 0; }
}

/* ===== ENHANCED SLIDE IN ANIMATION ===== */
@keyframes slideInFromLeft {
  0% { transform: translateX(-100%); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

/* ===== ENHANCED FOCUS STATES ===== */
.btn:focus,
.nav__link:focus,
.theme-toggle:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* ===== KEYBOARD NAVIGATION STYLES ===== */
.keyboard-navigation .btn:focus,
.keyboard-navigation .nav__link:focus,
.keyboard-navigation .theme-toggle:focus {
  outline: 3px solid var(--primary-color);
  outline-offset: 3px;
}

/* ===== ENHANCED LOADING STATES ===== */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200px 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-lg);
}

/* ===== SMOOTH SCROLLING ===== */
html {
  scroll-behavior: smooth;
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */
* {
  transition: background-color 0.3s ease, color 0.3s ease;
}

img {
  will-change: transform;
}

/* ===== ENHANCED MOBILE TOUCH FEEDBACK ===== */
@media (max-width: 768px) {
  .btn:active,
  .nav__link:active,
  .theme-toggle:active {
    transform: scale(0.95);
  }
}

/* ===== ENHANCED ANIMATION CLASSES ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* ===== ENHANCED HERO BACKGROUND ===== */
.hero::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="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23334155" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.2;
  animation: gridMove 20s linear infinite;
}

/* ===== IMAGE DISPLAY FIXES ===== */
.hero__img,
.about__img,
.blog__image img {
  display: block; /* Ensure images are displayed as blocks */
  max-width: 100%; /* Ensure images don't overflow */
  height: auto; /* Maintain aspect ratio */
  opacity: 1 !important; /* Force visibility */
  transform: scale(1) !important; /* Force normal scale */
  filter: brightness(1) !important; /* Force normal brightness */
}

/* Fallback for missing images */
.hero__image-wrapper::before,
.about__image::before,
.blog__image::before {
  content: '🖼️';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: var(--gray-400);
  z-index: 1;
  display: none; /* Hidden by default */
}

.hero__image-wrapper:empty::before,
.about__image:empty::before,
.blog__image:empty::before {
  display: block; /* Show when no image */
}

/* Ensure image containers have proper dimensions */
.hero__image-wrapper,
.about__image,
.blog__image {
  min-height: 200px;
  background: var(--gray-100);
  display: flex;
    align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* ===== ENHANCED IMAGE CONTAINER STYLES ===== */
.hero__image-wrapper,
.about__image,
.blog__image {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-2xl);
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.hero__image-wrapper img,
.about__image img,
.blog__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 1 !important;
  transform: scale(1) !important;
  filter: brightness(1) !important;
  transition: transform 0.3s ease;
}

.hero__image-wrapper:hover img,
.about__image:hover img,
.blog__image:hover img {
  transform: scale(1.05) !important;
}

/* Ensure images are always visible */
img {
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
}

/* ===== SKILL PROGRESS BARS WITH BLUE COLOR ===== */
.skill__progress {
  height: 8px;
  background: var(--gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
  animation: slideInFromLeft 1s ease-out;
}

.skill__bar {
  height: 8px;
  background: var(--gray-200);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

/* Remove any conflicting ::before pseudo-elements */
.skill__progress::before,
.skill__bar::before {
  display: none;
}

/* Ensure the progress fill has the correct blue color */
.skill__progress > div {
  background: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%) !important;
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.3) !important;
}

/* ===== ACTIVE NAVIGATION LINK STYLES ===== */
.nav__link.active {
  color: var(--primary-color) !important;
  font-weight: 600;
  position: relative;
}

.nav__link.active::after {
  width: 100% !important;
  background: var(--gradient-primary);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
  height: 3px;
  bottom: -4px;
}

.nav__link.active:hover {
  color: var(--primary-color) !important;
  transform: translateY(-1px);
}

.nav__link.active::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1), rgba(0, 153, 204, 0.1));
  border-radius: var(--radius-md);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.nav__link.active:hover::before {
  opacity: 1;
}


