/* =========================
   CSS Variables
   ========================= */
:root {
  --primary-color: #0466c8;
  --secondary-color: #001233;
  --text-color: #33415c;
  --bg-color: #f8f9fa;
  --light-accent: #e9ecef;
  --dark-accent: #6c757d;
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;

  /* Form validation colors */
  --error-color: #ff3b30;
  --success-color: #34c759;
  --dark-error-color: #ff453a;
  --dark-success-color: #30d158;
}

/* =========================
   Global Styles
   ========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--bg-color);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-main);
  font-weight: 700;
  line-height: 1.2;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

h1 { 
  font-size: 2.75rem; 
  font-weight: 800;
  letter-spacing: -0.03em;
}

h2 { 
  font-size: 1.875rem; 
  font-weight: 700;
  letter-spacing: -0.02em;
}

h3 { 
  font-size: 1.5rem; 
  font-weight: 600;
  letter-spacing: -0.01em;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

p { 
  margin-bottom: 1rem; 
  line-height: 1.7;
  font-weight: 400;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s;
}
a:hover { color: var(--secondary-color); }

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

.section {
  padding: 3rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}
.section-title:after {
  content: '';
  display: block;
  width: 50px;
  height: 3px;
  background: var(--primary-color);
  margin: 1rem auto 0;
}

.flex { display: flex; gap: 2rem; }

.btn {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  font-weight: 500;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}
.btn:hover {
  background: var(--secondary-color);
  color: white;
  transform: translateY(-2px);
}

.btn-sm {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
}

/* =========================
   Header & Navigation
   ========================= */
header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary-color);
}

.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

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

.hamburger {
  display: none;
  cursor: pointer;
}

/* =========================
   Hero Section
   ========================= */
.hero {
  position: relative;
  padding: 12rem 0 8rem;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
}

.hero-shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color) 0%, transparent 70%);
  opacity: 0.05;
}

.hero-shape.shape-1 {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -100px;
  transform: rotate(45deg);
}

.hero-shape.shape-2 {
  width: 400px;
  height: 400px;
  bottom: -100px;
  left: -100px;
  transform: rotate(-45deg);
  opacity: 0.03;
}

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

.hero-title {
  font-size: 3.75rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  background: linear-gradient(120deg, var(--secondary-color), var(--primary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--dark-accent);
  margin-bottom: 2.5rem;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.hero-actions {
  margin-bottom: 3rem;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1.75rem;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn i {
  font-size: 1.1rem;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 4px 14px rgba(4, 102, 200, 0.25);
}

.btn-primary:hover {
  background: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(4, 102, 200, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

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

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

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--dark-accent);
  background: transparent;
  transition: all 0.3s ease;
}

.social-link:hover {
  color: var(--primary-color);
  background: rgba(4, 102, 200, 0.1);
  transform: translateY(-2px);
}

.social-link i {
  font-size: 1.25rem;
}

/* Dark mode adjustments */
.dark-mode .hero-title {
  background: linear-gradient(120deg, #fff, var(--primary-color));
  -webkit-background-clip: text;
  background-clip: text;
}

.dark-mode .hero-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.dark-mode .social-link {
  color: rgba(255, 255, 255, 0.7);
}

.dark-mode .social-link:hover {
  color: var(--primary-color);
  background: rgba(255, 255, 255, 0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero {
    padding: 8rem 0 3rem !important;
  }
  
  .hero h1 { 
    font-size: 2.5rem; 
    letter-spacing: -0.02em;
  }
  
  .hero-subtitle {
    font-size: 1.125rem;
    letter-spacing: 0.01em;
  }
  
  .about-text-wrapper p {
    font-size: 1rem;
    line-height: 1.6;
  }

  .about-description {
    font-size: 0.9375rem;
    line-height: 1.6;
  }
  
  .timeline-content h3 {
    font-size: 1.375rem;
    letter-spacing: -0.01em;
  }
  
  .timeline-content h4 {
    font-size: 1rem;
    letter-spacing: -0.01em;
  }
  
  .timeline-content ul li {
    font-size: 0.9375rem;
    line-height: 1.6;
  }
  
  .skill-tag {
    font-size: 0.8125rem;
    padding: 0.625rem 1.25rem;
  }
  
  .highlight-number {
    font-size: 1.25rem;
  }
  
  .highlight-label {
    font-size: 0.8125rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .btn-group {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* =========================
   Enhanced About Section - Minimalist & Modern
   ========================= */
#about {
  position: relative;
  overflow: hidden;
  margin: 2rem auto;
  max-width: 1200px;
}

.about-background {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
  border-radius: 24px;
  overflow: hidden;
}

.accent-shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color) 0%, transparent 70%);
  opacity: 0.03;
  filter: blur(1px);
}

.shape-1 {
  width: 400px;
  height: 400px;
  top: -200px;
  left: -100px;
  transform: rotate(-45deg);
}

.shape-2 {
  width: 250px;
  height: 250px;
  bottom: -100px;
  right: -50px;
  transform: rotate(45deg);
}

.about-content {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-top: 2rem;
}

.about-text-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}

.about-description {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.5rem;
  margin: 2rem 0;
}

.about-content {
  position: relative;
  display: flex;
  gap: 5rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  z-index: 1;
  padding: 4rem 3rem;
}

/* Enhanced Image styling */
.about-image-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
}

.about-image {
  position: relative;
  width: 320px;
  height: 320px;
  margin: 0 auto;
  perspective: 1000px;
}

.profile-pic {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  object-fit: cover;
  position: relative;
  z-index: 2;
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border: 4px solid rgba(255, 255, 255, 0.9);
}

.image-backdrop {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color) 0%, rgba(4, 102, 200, 0.4) 100%);
  opacity: 0.08;
  border-radius: 16px;
  z-index: 1;
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.about-image:hover .profile-pic {
  transform: translate(-6px, -6px) scale(1.02);
  box-shadow: 0 25px 50px rgba(4, 102, 200, 0.15);
}

.about-image:hover .image-backdrop {
  transform: translate(8px, 8px);
  opacity: 0.12;
}

/* Enhanced Text content styling */
.about-text-wrapper {
  flex: 1.3;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.about-text-wrapper p {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-color);
  margin-bottom: 0;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.about-description {
  color: var(--text-color);
  font-size: 1rem;
  line-height: 1.7;
  opacity: 0.9;
  font-weight: 400;
}

.about-description p {
  text-align: justify;
}

.about-description {
  text-align: justify;
}

.about-quote {
  text-align: center;
  margin: 1.5rem 0;
}

.about-quote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, rgba(4, 102, 200, 0.05) 0%, rgba(4, 102, 200, 0.02) 100%);
  border-left: 4px solid var(--primary-color);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: var(--primary-color);
  font-size: 1.125rem;
  font-weight: 500;
  position: relative;
  letter-spacing: 0.01em;
}

.about-quote::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: 1rem;
  font-size: 3rem;
  color: var(--primary-color);
  opacity: 0.3;
  font-family: serif;
}

/* Enhanced Highlights section */
.about-highlights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(4, 102, 200, 0.1);
}

.highlight-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  padding: 1.25rem 1rem;
  transition: all 0.3s ease;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(4, 102, 200, 0.08);
}

.highlight-item:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 25px rgba(4, 102, 200, 0.1);
  border-color: rgba(4, 102, 200, 0.15);
}

.highlight-icon {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-color), rgba(4, 102, 200, 0.8));
  border-radius: 12px;
  margin-bottom: 0.5rem;
  box-shadow: 0 4px 12px rgba(4, 102, 200, 0.2);
}

.highlight-icon i {
  font-size: 1.1rem;
  color: white;
}

.highlight-number {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--primary-color);
  display: inline-block;
  letter-spacing: 0.02em;
}

.about-description .highlight-number {
  opacity: 1;
  transform: none;
  background: linear-gradient(135deg, var(--primary-color), rgba(4, 102, 200, 0.8));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.highlight-label {
  font-size: 0.875rem;
  color: var(--text-color);
  font-weight: 500;
  opacity: 0.8;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Counter animation */
.counter {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.5s ease;
}

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

/* Skills Section Styling */
.skills-container {
  display: block;
  padding: 3rem;
  margin-bottom: 3rem;
  transition: all 0.3s ease;
}

.skills-category {
  margin-bottom: 5rem;
}

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

.skill-item {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 2rem;
  transition: all 0.3s ease;
}

@media (max-width: 1200px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .skills-container {
    padding: 2rem;
  }
  
  .skill-item {
    padding: 1.5rem;
  }
}

/* =========================
   Projects Section
   ========================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
}
.project-card {
  background: none;
  border-radius: 10px;
  box-shadow: none;
  overflow: visible;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0;
  border: 1px solid #e0e0e0;
}
.project-image {
  height: 200px;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
}
.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.project-card:hover .project-image img {
  transform: scale(1.05);
}
.project-title {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.5rem 0 1rem 0;
  letter-spacing: 0.04em;
  color: var(--secondary-color);
}
.project-details {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.project-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-color);
}
.project-card-bottom {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.project-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.project-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Keep image attached to card edges */
.project-image {
  margin: 0;
  padding: 0;
  line-height: 0;
}

.project-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================
   Education & Experience
   ========================= */
.timeline {
  position: relative;
  max-width: 1200px;
  margin: 4rem auto;
  padding: 2rem 0;
}
.timeline::before {
  content: '';
  position: absolute;
  width: 3px;
  background: linear-gradient(
    to bottom, 
    rgba(4, 102, 200, 0.1),
    rgba(4, 102, 200, 0.3),
    rgba(4, 102, 200, 0.1)
  );
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* Timeline items */
.timeline-item {
  margin-bottom: 6rem;
  position: relative;
  width: 100%;
}

/* Content cards */
.timeline-content {
  position: relative;
  width: calc(50% - 3rem);
  padding: 2.5rem;
  background: var(--bg-color);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  transition: all 0.4s ease;
}

/* Left side items */
.timeline-item:nth-child(odd) .timeline-content {
  margin-right: auto;
}

/* Right side items */
.timeline-item:nth-child(even) .timeline-content {
  margin-left: auto;
}

/* Date styling */
.timeline-date {
  position: absolute;
  top: 0;
  transform: translate(0, 60%);
  background: rgba(4, 102, 200, 0.1);
  color: var(--primary-color);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 2;
  white-space: nowrap;
  transition: all 0.3s ease;
}

/* Date positioning */
.timeline-item:nth-child(odd) .timeline-date {
  left: calc(50% + 3rem);
}

/* For right-side cards (even), date goes on left of vertical line */
.timeline-item:nth-child(even) .timeline-date {
  right: calc(50% + 3rem);
}

/* Dots on timeline */
.timeline-item::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: #fff;
  border: 3px solid var(--primary-color);
  border-radius: 50%;
  top: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

/* Connecting lines */
.timeline-item::after {
  content: '';
  position: absolute;
  width: 3rem;
  height: 3px;
  background: rgba(4, 102, 200, 0.2);
  top: 3rem;
}

/* Position connecting lines */
.timeline-item:nth-child(odd)::after {
  right: calc(50% + 10px);
}

.timeline-item:nth-child(even)::after {
  left: calc(50% + 10px);
}

/* Timeline item content */
.timeline-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
  line-height: 1.3;
  margin: 0.5rem 0;
  letter-spacing: -0.01em;
}

.timeline-content h4 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

.timeline-content h4 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.timeline-content h4 a:hover {
  color: var(--secondary-color);
}

.location {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  color: var(--dark-accent);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.location i {
  font-size: 0.9rem;
  color: var(--primary-color);
}

.timeline-content ul {
  margin: 1.75rem 0;
  padding-left: 0;
  list-style: none;
}

.timeline-content ul li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 1rem;
  line-height: 1.6;
  font-size: 1rem;
  color: var(--text-color);
  font-weight: 400;
}

.timeline-content ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: 600;
  transform: translateY(-1px);
}

.timeline-content h5 {
  font-size: 1.125rem;
  color: var(--secondary-color);
  margin: 2rem 0 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.achievement-highlight {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, rgba(4, 102, 200, 0.05) 0%, rgba(4, 102, 200, 0.02) 100%);
  border-radius: 8px;
  border: 1px solid rgba(4, 102, 200, 0.1);
}

.achievement-badge {
  background: var(--primary-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.achievement-highlight span:last-child {
  color: var(--text-color);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.skill-tag {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, rgba(4, 102, 200, 0.08) 0%, rgba(4, 102, 200, 0.05) 100%);
  color: var(--text-color);
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(4, 102, 200, 0.1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  text-transform: uppercase;
}

.skill-tag i {
  margin-right: 0.5rem;
  color: var(--primary-color);
}

.gpa {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 1rem;
  background: rgba(4, 102, 200, 0.08);
  color: var(--primary-color);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-left: 1rem;
  letter-spacing: 0.02em;
}

/* Timeline item positioning */
.timeline-item:nth-child(even) .timeline-content {
  margin-left: auto;
}

.timeline-item:nth-child(even) .timeline-date::before {
  margin-right: 0.75rem;
  margin-left: 0;
}

.timeline-item:nth-child(odd) .timeline-date {
  justify-content: flex-end;
}

.timeline-item:nth-child(odd) .timeline-date::before {
  order: 2;
  margin-left: 0.75rem;
  margin-right: 0;
}

/* Timeline dots and connecting lines */
.timeline-item::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: #fff;
  border: 3px solid var(--primary-color);
  border-radius: 50%;
  top: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  transition: all 0.3s ease;
}

.timeline-item::after {
  content: '';
  position: absolute;
  width: 3rem;
  height: 3px;
  background: rgba(4, 102, 200, 0.2);
  top: 3rem;
  transition: all 0.3s ease;
}

.timeline-item:nth-child(odd)::after {
  right: calc(50% + 10px);
}

.timeline-item:nth-child(even)::after {
  left: calc(50% + 10px);
}

/* Hover effects */
.timeline-item:hover::before {
  background: var(--primary-color);
  transform: translateX(-50%) scale(1.2);
  box-shadow: 0 0 20px rgba(4, 102, 200, 0.3);
}

.timeline-item:hover::after {
  background: var(--primary-color);
}

.timeline-item:hover .timeline-content {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.timeline-item:hover .timeline-date::before {
  width: 30px;
}

/* Dark mode adjustments */
.dark-mode .timeline-content {
  background-color: #1e1e1e;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.dark-mode .timeline-type {
  background: rgba(4, 102, 200, 0.2);
}

.dark-mode .timeline-content h3,
.dark-mode .timeline-content ul li {
  color: #fff;
}

.dark-mode .location {
  color: rgba(255, 255, 255, 0.7);
}

.dark-mode .skill-tag {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.dark-mode .timeline-item::before {
  background: var(--secondary-color);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .timeline::before {
    left: 2rem;
  }
  
  .timeline-content {
    width: calc(100% - 6rem);
    margin-left: 4rem !important;
  }
  
  .timeline-date {
    position: relative;
    top: 0;
    left: 0 !important;
    right: auto !important;
    transform: none;
    display: inline-block;
    margin-bottom: 1rem;
  }
  
  .timeline-item::before {
    left: 2rem;
  }
  
  .timeline-item::after {
    left: 2.5rem !important;
    width: 1.5rem;
  }
}

/* =========================
   Contact Section
   ========================= */
.contact-form-container {
  max-width: 600px;
  margin: 0 auto;
}

.contact-form {
  padding: 3rem;
  transition: all 0.3s ease;
}

.dark-mode .contact-form {
  background: none;
  border: none;
  box-shadow: none;
}

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

.form-group {
  margin-bottom: 1rem;
  position: relative;
}

.form-control {
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  font-family: var(--font-main);
  color: var(--text-color);
  background: transparent;
  border: 2px solid rgba(4, 102, 200, 0.15);
  border-radius: 12px;
  transition: all 0.3s ease;
  outline: none;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 4px rgba(4, 102, 200, 0.1);
  background: rgba(4, 102, 200, 0.02);
}

.form-control::placeholder {
  color: var(--dark-accent);
  opacity: 0.6;
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
  font-family: var(--font-main);
}

.btn-submit {
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  background: var(--primary-color);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.btn-submit:hover {
  background: #0353a4;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(4, 102, 200, 0.3);
}

.btn-submit:active {
  transform: translateY(0);
}

.btn-submit i {
  font-size: 0.9rem;
  transition: transform 0.3s ease;
}

.btn-submit:hover i {
  transform: translateX(4px);
}

/* Enhanced JavaScript Validation Styles */
.form-control.error {
  border-color: var(--error-color);
}

.form-control.success {
  border-color: var(--success-color);
}

/* Override browser default validation styles */
.form-control:invalid {
  border-color: rgba(4, 102, 200, 0.15) !important;
  box-shadow: none !important;
}

.form-control:valid {
  border-color: rgba(4, 102, 200, 0.15) !important;
  box-shadow: none !important;
}

.form-control:invalid:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 4px rgba(4, 102, 200, 0.1) !important;
}

.form-control:valid:focus {
  border-color: var(--primary-color) !important;
  box-shadow: 0 0 0 4px rgba(4, 102, 200, 0.1) !important;
}

.error-message {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  font-weight: 500;
  display: none;
  animation: fadeIn 0.3s ease;
}

.success-message {
  color: #28a745;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  font-weight: 500;
  display: none;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Form group positioning for error messages */
.form-group {
  position: relative;
}

/* Dark mode adjustments for validation */
.dark-mode .form-control.error {
  /* No visual styling for errors in dark mode */
}

.dark-mode .form-control.success {
  /* No visual styling for success in dark mode */
}

/* Dark mode adjustments */
.dark-mode .contact-form {
  background: none;
  border: none;
  box-shadow: none;
}

.dark-mode .form-control {
  background: transparent;
  border-color: rgba(4, 102, 200, 0.2);
  color: #fff;
}

.dark-mode .form-control:focus {
  background: rgba(4, 102, 200, 0.05);
}

/* Responsive design */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .contact-form {
    padding: 2rem;
  }
}

/* =========================
   Footer
   ========================= */
footer {
  background: linear-gradient(135deg, var(--secondary-color) 0%, #001845 100%);
  color: rgba(255, 255, 255, 0.9);
  padding: 2rem 0;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(4, 102, 200, 0.3), transparent);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

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

.footer-social .social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  text-decoration: none;
}

.footer-social .social-link:hover {
  color: white;
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(4, 102, 200, 0.3);
}

.footer-social .social-link i {
  font-size: 1.1rem;
}

.footer-copyright {
  text-align: right;
}

.footer-copyright p {
  margin: 0.25rem 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-location {
  font-size: 0.8125rem !important;
  color: rgba(255, 255, 255, 0.6) !important;
  font-style: italic;
}

/* Dark mode adjustments */
.dark-mode footer {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
}

.dark-mode .footer-social .social-link {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.dark-mode .footer-social .social-link:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
}

/* Responsive design */
@media (max-width: 768px) {
  footer {
    padding: 1.5rem 0;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }
  
  .footer-copyright {
    text-align: center;
  }
}

@media (max-width: 480px) {
  .footer-social {
    gap: 0.75rem;
  }
  
  .footer-social .social-link {
    width: 35px;
    height: 35px;
  }
  
  .footer-social .social-link i {
    font-size: 1rem;
  }
}

/* =========================
   Modern Skills Section
   ========================= */
.skills-container {
  display: block;
  padding: 3rem;
  margin-bottom: 3rem;
  transition: all 0.3s ease;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem 3rem;
  margin-top: 2rem;
  padding: 0.5rem;
}

.skill-item {
  margin-bottom: 1rem;
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  padding: 1.75rem;
  transition: all 0.3s ease;
}

.skill-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.skill-header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.skill-header i {
  font-size: 1.5rem;
  color: var(--primary-color);
  width: 24px;
  text-align: center;
  transition: transform 0.3s ease;
}

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

.skill-name {
  font-weight: 600;
  color: var(--secondary-color);
  font-size: 0.875rem;
  transition: color 0.3s ease;
  letter-spacing: 0.02em;
}

.skill-item:hover .skill-name {
  color: var(--primary-color);
}

.skill-level {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 0.9rem;
  background: rgba(4, 102, 200, 0.1);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  min-width: 50px;
  text-align: center;
}

.skill-bar {
  width: 100%;
  height: 8px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), rgba(4, 102, 200, 0.8));
  border-radius: 4px;
  width: 0%;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

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

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Mobile Skills List */
.skills-list-mobile {
  display: none;
  padding: 2rem 1rem;
}

/* Mobile Skills Styling - Consistent with Desktop */
.skills-list-mobile .skills-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem;
  justify-content: center;
}

.skills-list-mobile .skill-pill {
  background: var(--background-color);
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 25px;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.skills-list-mobile .skill-pill:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

/* Dark mode for mobile skills */
.dark-mode .skills-list-mobile .skill-pill {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-color);
}

.dark-mode .skills-list-mobile .skill-pill:hover {
  background: var(--primary-color);
  color: white;
}

/* Dark mode adjustments */
.dark-mode .skill-item {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .skill-item:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.dark-mode .skill-name {
  color: #fff;
}

/* =========================
   Animation
   ========================= */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   Dark Mode Toggle
   ========================= */
.theme-switch {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  background: var(--secondary-color);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}
.theme-switch:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* =========================
   Dark Mode Styles
   ========================= */
body.dark-mode {
  --bg-color: #121212;
  --light-accent: #333333;
  --text-color: #e0e0e0;
  --secondary-color: #2a2a2a;
}
body.dark-mode header,
body.dark-mode .project-card,
body.dark-mode .contact-form,
body.dark-mode .data-visual,
body.dark-mode .timeline-content {
  background-color: #1e1e1e;
  color: var(--text-color);
}
body.dark-mode h1, 
body.dark-mode h2, 
body.dark-mode h3, 
body.dark-mode h4,
body.dark-mode .logo {
  color: white;
}
body.dark-mode .nav-links a { color: white; }
body.dark-mode .nav-links a:hover { color: var(--secondary-color); }
body.dark-mode .theme-switch { background: var(--light-accent); }
body.dark-mode .form-control {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}
body.dark-mode .skill-tag,
body.dark-mode .project-tag {
  background: #333;
  color: #eee;
}

/* Fix for skills section text color in dark mode */
body.dark-mode #skills .skill-pill,
body.dark-mode #skills .skill-tag {
  color: #fff;
}

/* =========================
   Animation Delays
   ========================= */
.delay-1 { transition-delay: 0.2s; }
.delay-2 { transition-delay: 0.4s; }
.delay-3 { transition-delay: 0.6s; }
.delay-4 { transition-delay: 0.8s; }
.delay-5 { transition-delay: 1.0s; }
.delay-6 { transition-delay: 1.2s; }

.about-text p { text-align: justify; }
.footer-content,
.project-details,
.timeline-content { font-family: var(--font-main); }
.skill-tag, .project-tag,
.nav-links a,
.footer-content,
.project-details,
.timeline-content { font-family: var(--font-main); }
.highlight-name {
  color: var(--primary-color);
  font-weight: bold;
}
.hidden { display: none !important; }

/* =========================
   Hero Button Group
   ========================= */
.btn-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}
.btn-group .btn {
  flex: none;
  width: auto;
  margin: 0;
}

/* =========================
   Notification Toast
   ========================= */
.notification {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary-color);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  display: none;
  z-index: 9999;
}

/* =========================
   Responsive Design
   ========================= */
@media (max-width: 992px) {
  .about-content { flex-direction: column; }
  .about-image {
    flex: none;
    max-width: 400px;
    margin: 0 auto 2rem;
  }
  .timeline:before { left: 31px; }
  .timeline-content {
    width: calc(100% - 80px);
    margin-left: 80px !important;
  }
  .timeline-item:nth-child(odd) .timeline-content:before,
  .timeline-item:nth-child(even) .timeline-content:before {
    left: -40px;
    right: auto;
  }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    gap: 0;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
  }
  .nav-links.active { display: flex !important; }
  .nav-links a {
    display: block;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--light-accent);
  }
  .hamburger { display: block; }
  .section { padding: 3rem 0; }
  .hero { padding: 8rem 0 3rem !important; }
  .hero h1 { font-size: 2.5rem; }
  .projects-grid { grid-template-columns: 1fr; }
  
  /* Skills mobile adjustments */
  .skills-container { 
    display: none !important; 
  }
  .skills-list-mobile { 
    display: block !important; 
    padding: 1rem;
  }
  
  .skills-category {
    margin-bottom: 2rem;
  }
  
  .skills-category h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }
  
  .skill-tag {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .skills-group {
    gap: 0.75rem;
  }
}

@media (min-width: 769px) {
  .skills-container { display: block !important; }
  .skills-list-mobile { display: none !important; }
}

@media (max-width: 576px) {
  .cert-grid { grid-template-columns: 1fr; }
}

/* =========================
   Always show skills-list inside timeline-content
   ========================= */
   .timeline-content .skills-list {
    display: flex !important;
    flex-wrap: wrap;
    gap: 1rem;
   }

/* Timeline date positioning */
.timeline-date {
  position: absolute;
  top: 0;
  transform: translate(0, 60%);
  background: rgba(4, 102, 200, 0.1);
  color: var(--primary-color);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 2;
  white-space: nowrap;
  transition: all 0.3s ease;
}

/* For left-side cards (odd), date goes on right of vertical line */
.timeline-item:nth-child(odd) .timeline-date {
  left: calc(50% + 3rem);
}

/* For right-side cards (even), date goes on left of vertical line */
.timeline-item:nth-child(even) .timeline-date {
  right: calc(50% + 3rem);
}

/* Date hover effect */
.timeline-date:hover {
  background: rgba(4, 102, 200, 0.2);
  transform: translate(0, 60%) scale(1.05);
}

/* Mobile adjustments for timeline dates */
@media (max-width: 768px) {
  .timeline-date {
    position: relative;
    top: 0;
    left: 0 !important;
    right: auto !important;
    transform: none;
    display: inline-block;
    margin-bottom: 1rem;
    text-align: left !important;
    background: rgba(4, 102, 200, 0.1);
  }
  
  .timeline-date:hover {
    transform: scale(1.05);
  }
}

/* Skills Categories */
.skills-category {
  margin-bottom: 2.5rem;
}

.skills-category h3 {
  font-size: 1.1rem;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.8;
}

.skills-group {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  padding: 1rem;
}

.skill-tag {
  margin: 0;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

/* Dark mode adjustments */
.dark-mode .skill-tag {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.dark-mode .skill-tag:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

/* =========================
   Enhanced Certifications Section
   ========================= */
.cert-category {
  margin-bottom: 3rem;
}

.cert-category h3 {
  font-size: 1.2rem;
  color: var(--secondary-color);
  margin-bottom: 2rem;
  text-align: center;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.8;
  position: relative;
}

.cert-category h3::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--primary-color);
  border-radius: 1px;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  justify-items: center;
}

.cert-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(4, 102, 200, 0.05);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 400px;
  width: 100%;
}

.cert-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(4, 102, 200, 0.15);
  border-color: rgba(4, 102, 200, 0.2);
}

.cert-image {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(4, 102, 200, 0.05) 0%, rgba(4, 102, 200, 0.02) 100%);
}

.cert-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

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

.cert-image-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(4, 102, 200, 0.05) 0%, rgba(4, 102, 200, 0.02) 100%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cert-image-wrapper:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(4, 102, 200, 0.15);
}

.cert-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.cert-image-wrapper:hover .cert-image {
  transform: scale(1.05);
}

/* Use pseudo-element for overlay instead of separate div */
.cert-image-wrapper::after {
  content: '\f35d';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 102, 200, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.cert-image-wrapper:hover::after {
  opacity: 1;
}

/* Remove the old overlay styles */
.cert-overlay {
  display: none;
}

.cert-content {
  padding: 1.5rem;
}

.cert-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.cert-issuer {
  color: var(--primary-color);
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.cert-description {
  color: var(--text-color);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  opacity: 0.8;
}

.cert-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.cert-tag {
  background: rgba(4, 102, 200, 0.08);
  color: var(--primary-color);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  border: 1px solid rgba(4, 102, 200, 0.1);
  transition: all 0.3s ease;
}

.cert-tag:hover {
  background: rgba(4, 102, 200, 0.15);
  transform: translateY(-1px);
}

/* Academic Certificate Cards */
.cert-card.academic {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.5rem;
}

.cert-card.academic .cert-image {
  display: none;
}

.cert-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), rgba(4, 102, 200, 0.8));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  box-shadow: 0 4px 16px rgba(4, 102, 200, 0.2);
}

.cert-card.academic .cert-content {
  flex: 1;
  padding: 0;
}

.cert-badge {
  display: inline-block;
  margin-bottom: 1rem;
}

.cert-badge .gpa {
  background: linear-gradient(135deg, rgba(4, 102, 200, 0.1), rgba(4, 102, 200, 0.05));
  color: var(--primary-color);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid rgba(4, 102, 200, 0.2);
}

/* Dark mode adjustments */
.dark-mode .cert-card {
  background: #1e1e1e;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.dark-mode .cert-card:hover {
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.2);
}

.dark-mode .cert-content h4 {
  color: #fff;
}

.dark-mode .cert-description {
  color: rgba(255, 255, 255, 0.8);
}

.dark-mode .cert-tag {
  background: rgba(255, 255, 255, 0.1);
  color: var(--primary-color);
  border-color: rgba(255, 255, 255, 0.2);
}

.dark-mode .cert-tag:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Tighter spacing for About section */
#about.section { padding-top: 2rem; }
#about .section-title { margin-bottom: 1rem; }

/* =========================
   Enhanced Certifications Image Grid
   ========================= */
.cert-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
  justify-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.cert-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  max-width: 320px;
  width: 100%;
}

.cert-item figcaption {
  width: 100%;
  padding: 1.25rem 0 0;
  text-align: center;
}

.cert-item figcaption h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.cert-issuer {
  color: var(--primary-color);
  font-weight: 500;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  opacity: 0.9;
}

.cert-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
}

.cert-tag {
  background: rgba(4, 102, 200, 0.08);
  color: var(--primary-color);
  padding: 0.2rem 0.6rem;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 500;
  border: 1px solid rgba(4, 102, 200, 0.1);
  transition: all 0.3s ease;
}

.cert-tag:hover {
  background: rgba(4, 102, 200, 0.15);
  transform: translateY(-1px);
}

/* Dark mode adjustments */
.dark-mode .cert-image-wrapper {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.dark-mode .cert-image-wrapper:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.dark-mode .cert-item figcaption h4 {
  color: #fff;
}

.dark-mode .cert-tag {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.dark-mode .cert-tag:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Missing dark mode styles */
.dark-mode .achievement-highlight {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .achievement-highlight span:last-child {
  color: rgba(255, 255, 255, 0.8);
}

.dark-mode .timeline-item::before {
  background: var(--secondary-color);
}

/* Dark mode adjustments for enhanced About section */
.dark-mode #about {
  background: none;
  border: none;
  box-shadow: none;
  /* keep other dark mode adjustments if needed */
}

.dark-mode .highlight-item {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .highlight-item:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.dark-mode .about-quote {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border-color: var(--primary-color);
}

.dark-mode .highlight-label {
  color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 600px) {
  .timeline-content {
    width: 100% !important;
    min-width: 0;
    box-sizing: border-box;
    padding: 1.25rem !important;
  }
  .achievement-highlight {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem 0.75rem;
    width: 100%;
    box-sizing: border-box;
    word-break: break-word;
  }
  .achievement-highlight span:last-child {
    word-break: break-word;
    font-size: 0.95rem;
    text-align: left;
    width: 100%;
  }
}

/* === Minimalist Skills Pills Layout (Desktop Only) === */
@media (min-width: 769px) {
  .skills-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem 1.5rem;
    margin: 1.5rem 0 1.2rem 0;
    padding: 0 0.5rem;
    justify-content: flex-start;
  }
  .skill-pill {
    border: 1.2px solid #222;
    border-radius: 999px;
    padding: 0.5rem 1.5rem;
    font-size: 0.9rem;
    margin: 0.3rem 0;
    min-width: unset;
    width: auto;
    display: inline-block;
    white-space: normal;
    background: none;
    color: #222;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.08em;
    box-shadow: none;
    transition: border-color 0.2s;
  }
  .skill-pill:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: none;
  }
}

/* Removing background from the View Details button and creating a cleaner look */
.project-links .btn-sm {
  background: transparent;
  color: var(--text-color);
  border: 1px solid var(--text-color);
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-size: 0.875rem;
  transition: all 0.3s ease;
}

.project-links .btn-sm:hover {
  background: transparent;
  transform: translateY(-2px);
  opacity: 0.8;
}