:root {
  --primary-color: #2C3E50;
  --secondary-color: #34495E;
  --accent-color: #1ABC9C;
  --accent-light: #16a085;
  --text-primary: #2C3E50;
  --text-secondary: #34495E;
  --text-muted: #7f8c8d;
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-card: #ffffff;
  --border-color: #e9ecef;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --gradient-primary: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
  --gradient-accent: linear-gradient(135deg, #1ABC9C 0%, #16a085 100%);
  --gradient-card: linear-gradient(145deg, #ffffff, #f8f9fa);
  --shadow-sm: 0 2px 8px rgba(44, 62, 80, 0.1);
  --shadow-md: 0 4px 16px rgba(44, 62, 80, 0.15);
  --shadow-lg: 0 8px 32px rgba(44, 62, 80, 0.2);
  --shadow-glow: 0 0 20px rgba(26, 188, 156, 0.3);
}

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

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

body {
  font-family: var(--font-family);
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 20% 80%, rgba(26, 188, 156, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(44, 62, 80, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(52, 73, 94, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* Header Styles */
header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
}

header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo-link {
  font-size: 1.5rem;
  color: var(--primary-color);
  font-weight: 700;
  text-decoration: none;
  transition: color 0.3s;
}

.logo-link:hover {
  color: var(--accent-color);
}

.nav-links {
  display: flex;
  gap: 2rem;
  justify-content: flex-end;
  flex: 1 1 auto;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
  width: 100%;
}

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

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: 8rem 0 2rem;
  gap: 2rem;
}

.hero .intro {
  max-width: 600px;
  margin: 0;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--primary-color);
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero img {
  width: 220px;
  height: 280px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
  border: 3px solid var(--accent-color);
  position: relative;
  transition: all 0.3s ease;
  margin: 0;
}

.hero img:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: var(--shadow-glow);
}

/* Hero CTA Buttons */
.hero-cta {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.cta-button {
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: inline-block;
}

.cta-button.primary {
  background: var(--accent-color);
  color: white;
  border: 2px solid transparent;
}

.cta-button.secondary {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--accent-color);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-glow);
}

.cta-button.primary:hover {
  background: var(--accent-light);
}

.cta-button.secondary:hover {
  background: var(--accent-color);
  color: white;
}

/* Section Styles */
section {
  margin-bottom: 4rem;
  padding: 2rem 0;
}

section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 3rem;
  text-align: center;
  color: var(--primary-color);
  position: relative;
}

section h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--accent-color);
  border-radius: 2px;
}

/* Projects Section */
.projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.project-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent-color);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-color);
}

.project-card:hover::before {
  transform: scaleX(1);
}

.project-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.project-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.project-card a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: all 0.3s ease;
}

.project-card a::after {
  content: '→';
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.project-card a:hover::after {
  transform: translateX(5px);
}

/* Skills Section */
.skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.skill-card {
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: var(--shadow-sm);
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--accent-color);
  opacity: 0;
  border-radius: 16px;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.skill-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-color);
}

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

.skill-card h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.skill-card p {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Contact Section */
.contact {
  text-align: center;
}

.contact form {
  max-width: 600px;
  margin: 0 auto 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact input,
.contact textarea {
  padding: 1rem 1.5rem;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 1rem;
  transition: all 0.3s ease, border-color 0.2s;
}

.contact input:focus,
.contact textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 2px rgba(26, 188, 156, 0.13);
}

.contact input::placeholder,
.contact textarea::placeholder {
  color: var(--text-muted);
}

.contact input[name='name'] {
  width: 100%;
  max-width: 400px;
  transition: width 0.3s cubic-bezier(0.4,0,0.2,1), max-width 0.3s cubic-bezier(0.4,0,0.2,1);
  resize: none;
}

.contact input[name='name']:focus {
  width: 115%;
  max-width: 500px;
}

.contact textarea {
  resize: none;
  -webkit-resize: none;
  -moz-resize: none;
  -ms-resize: none;
  -o-resize: none;
}

.contact button {
  padding: 1rem 2rem;
  border: none;
  border-radius: 12px;
  background: var(--accent-color);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.contact button::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;
}

.contact button:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.contact button:hover::before {
  left: 100%;
}

/* Connect Links */
.connect-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.connect-links p {
  font-weight: 600;
  color: var(--primary-color);
  margin: 0;
}

.connect-links .connect-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.connect-links .connect-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--accent-color);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.connect-links .connect-icon:hover {
  transform: translateY(-8px) scale(1.1);
  box-shadow: var(--shadow-glow);
  border-color: var(--accent-color);
}

.connect-links .connect-icon:hover::before {
  opacity: 0.1;
}

.connect-links svg {
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.connect-links .connect-icon:hover svg {
  transform: scale(1.1);
}

/* Footer */
footer {
  text-align: center;
  padding: 1.2rem 0;
  background: var(--accent-color);
  border-top: 1px solid var(--border-color);
  margin-top: 4rem;
}

footer p {
  color: #fff;
  font-size: 1rem;
  margin: 0;
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(60px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--accent-color);
  z-index: 1001;
  transition: width 0.1s ease;
}

/* Enhanced Toast Notifications */
.custom-toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%) translateY(40px);
  background: var(--bg-card);
  color: var(--text-primary);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 1rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(20px);
  min-width: 300px;
}

.custom-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.toast-icon {
  font-size: 1.2rem;
  font-weight: bold;
}

.toast-success .toast-icon {
  color: #27ae60;
}

.toast-error .toast-icon {
  color: #e74c3c;
}

.toast-warning .toast-icon {
  color: #f39c12;
}

.toast-info .toast-icon {
  color: var(--accent-color);
}

.toast-message {
  flex: 1;
}

/* Ripple Effect */
.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(26, 188, 156, 0.3);
  transform: scale(0);
  animation: ripple-animation 0.6s linear;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Loading Animation */
body:not(.loaded) {
  overflow: hidden;
}

body:not(.loaded)::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

body:not(.loaded)::before {
  content: '';
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  border: 3px solid var(--border-color);
  border-top: 3px solid var(--accent-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 10000;
}

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

body.loaded::after,
body.loaded::before {
  display: none;
}

/* Enhanced Button States */
.contact button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

.contact button:disabled:hover {
  transform: none !important;
  box-shadow: none !important;
}

/* Staggered Animation for Cards */
.project-card,
.skill-card {
  animation-delay: calc(var(--card-index, 0) * 0.1s);
}

/* Parallax Background */
body {
  --parallax-y: 0px;
}

body::before {
  transform: translateY(var(--parallax-y));
}

/* Enhanced Focus States */
.contact input:focus,
.contact textarea:focus,
.nav-links a:focus,
.connect-icon:focus {
  outline: 2px solid var(--accent-color);
  outline-offset: 2px;
}

/* Smooth Transitions for All Interactive Elements */
* {
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* Enhanced Mobile Navigation */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    flex-direction: column;
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
  }

  .nav-links.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .cta-button {
    width: 100%;
    max-width: 250px;
    text-align: center;
  }

  .about-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .project-tech {
    justify-content: center;
  }

  .hero {
    min-height: 60vh;
    flex-direction: column;
    gap: 1.2rem;
    padding: 7rem 0 1.5rem;
  }
}

/* Animation for skill progress bars */
.skill-card.show .skill-progress {
  animation: fillProgress 1.5s ease-out forwards;
}

@keyframes fillProgress {
  from {
    width: 0%;
  }
  to {
    width: var(--progress-width);
  }
}

/* Enhanced hover effects for project cards */
.project-card:hover .project-image {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

.project-card:hover .tech-tag {
  background: var(--accent-light);
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

/* Remove hover effect for .tech-tag */
.project-card .tech-tag {
  background: var(--bg-secondary);
  color: var(--primary-color);
  border-radius: 8px;
  padding: 0.2rem 0.8rem;
  font-size: 0.95rem;
  font-weight: 500;
  margin-right: 0.3rem;
  margin-bottom: 0.2rem;
  display: inline-block;
  transition: none !important;
}
.project-card:hover .tech-tag,
.project-card .tech-tag:hover {
  background: var(--bg-secondary) !important;
  color: var(--primary-color) !important;
  transform: none !important;
  transition: none !important;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .hero-cta {
    gap: 0.75rem;
  }

  .cta-button {
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
  }

  .about-stats {
    padding: 1.5rem;
  }

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

  .project-image {
    height: 150px;
  }

  .project-placeholder {
    font-size: 3rem;
  }

  .skill-icon {
    font-size: 2.5rem;
  }
}

/* Enhanced Accessibility */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --border-color: rgba(44, 62, 80, 0.3);
    --text-secondary: #2C3E50;
    --text-muted: #34495E;
  }
}

/* Print Styles */
@media print {
  header,
  .connect-links,
  .contact form,
  .scroll-progress {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }

  .hero img {
    filter: grayscale(100%);
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-light);
}

/* Development Journey Timeline */
.journey-timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 0;
}

.journey-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent-color);
  transform: translateX(-50%);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  background: var(--bg-card);
  border: 4px solid var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-marker {
  transform: translateX(-50%) scale(1.1);
  box-shadow: var(--shadow-glow);
}

.marker-icon {
  font-size: 1.5rem;
  color: var(--accent-color);
}

.timeline-content {
  width: 45%;
  background: var(--bg-card);
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all 0.3s ease;
}

.timeline-item:nth-child(odd) .timeline-content {
  margin-right: 55%;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-left: 55%;
}

.timeline-content::before {
  content: '';
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border: 12px solid transparent;
  transform: translateY(-50%);
}

.timeline-item:nth-child(odd) .timeline-content::before {
  right: -24px;
  border-left-color: var(--bg-card);
}

.timeline-item:nth-child(even) .timeline-content::before {
  left: -24px;
  border-right-color: var(--bg-card);
}

.timeline-content:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-color);
}

.timeline-date {
  color: var(--accent-color);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.timeline-content h3 {
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.timeline-content h4 {
  color: var(--text-secondary);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  font-style: italic;
}

.timeline-content p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.timeline-achievements {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.achievement-tag {
  background: var(--accent-color);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.achievement-tag:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
}

/* Future timeline item styling */
.timeline-item.future .timeline-marker {
  border-color: var(--text-muted);
  background: var(--bg-secondary);
}

.timeline-item.future .marker-icon {
  color: var(--text-muted);
}

.timeline-item.future .timeline-content {
  opacity: 0.8;
  border-style: dashed;
}

.timeline-item.future .timeline-date {
  color: var(--text-muted);
}

/* Responsive Timeline */
@media (max-width: 768px) {
  .journey-timeline::before {
    left: 30px;
  }

  .timeline-item {
    flex-direction: row !important;
    margin-left: 60px;
  }

  .timeline-marker {
    left: 30px;
    transform: translateX(-50%);
    width: 50px;
    height: 50px;
  }

  .timeline-item:hover .timeline-marker {
    transform: translateX(-50%) scale(1.1);
  }

  .timeline-content {
    width: 100%;
    margin: 0 !important;
  }

  .timeline-content::before {
    left: -24px !important;
    border-right-color: var(--bg-card) !important;
    border-left-color: transparent !important;
  }

  .marker-icon {
    font-size: 1.2rem;
  }

  .timeline-content {
    padding: 1.5rem;
  }

  .timeline-content h3 {
    font-size: 1.3rem;
  }

  .timeline-content h4 {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .timeline-item {
    margin-left: 50px;
  }

  .timeline-marker {
    left: 25px;
    width: 40px;
    height: 40px;
  }

  .journey-timeline::before {
    left: 25px;
  }

  .timeline-content {
    padding: 1rem;
  }

  .timeline-content h3 {
    font-size: 1.2rem;
  }

  .achievement-tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
  }
}

/* Animation for timeline items */
.timeline-item {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease;
}

.timeline-item.show {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item:nth-child(odd).show {
  animation: slideInLeft 0.8s ease forwards;
}

.timeline-item:nth-child(even).show {
  animation: slideInRight 0.8s ease forwards;
}

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

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

/* Staggered animation for timeline items */
.timeline-item:nth-child(1) { transition-delay: 0.1s; }
.timeline-item:nth-child(2) { transition-delay: 0.2s; }
.timeline-item:nth-child(3) { transition-delay: 0.3s; }
.timeline-item:nth-child(4) { transition-delay: 0.4s; }
.timeline-item:nth-child(5) { transition-delay: 0.5s; }

.about-card {
  background: #f8f9fa;
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(44,62,80,0.07);
  max-width: 850px;
  margin: 0 auto 2rem auto;
  padding: 2.5rem 2rem 2rem 2rem;
  transition: box-shadow 0.4s cubic-bezier(0.4,0,0.2,1), background 0.3s;
  position: relative;
}

.about-animate {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4,0,0.2,1), transform 0.8s cubic-bezier(0.4,0,0.2,1);
}
.about-animate.show {
  opacity: 1;
  transform: translateY(0);
}

.marquee {
  width: 100%;
  overflow: hidden;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 0.7rem 0;
  position: relative;
  margin-bottom: 1.2rem;
}
.marquee span {
  display: inline-block;
  white-space: nowrap;
  animation: marquee 18s linear infinite;
  font-size: 1.1rem;
  color: var(--accent-color);
  font-weight: 600;
  letter-spacing: 0.05em;
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.marquee:hover span {
  animation-play-state: paused;
}

.back-to-top {
  position: fixed;
  right: 2.2rem;
  bottom: 2.2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-color) 60%, var(--accent-light) 100%);
  color: #fff;
  font-size: 1.5rem;
  border: 2px solid #e0f7f4;
  box-shadow: 0 4px 24px rgba(44,62,80,0.18), 0 0 0 0 rgba(26,188,156,0.18);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  z-index: 1200;
  transition: opacity 0.3s, background 0.3s, box-shadow 0.3s, transform 0.25s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
  transform: translateY(30px) scale(0.95);
}
.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
  box-shadow: 0 8px 32px rgba(44,62,80,0.22), 0 0 16px 0 rgba(26,188,156,0.18);
  transform: translateY(0) scale(1);
}
.back-to-top:hover, .back-to-top:focus {
  background: linear-gradient(135deg, var(--accent-light) 60%, var(--accent-color) 100%);
  box-shadow: 0 12px 40px rgba(44,62,80,0.25), 0 0 24px 0 rgba(26,188,156,0.22);
  transform: translateY(-4px) scale(1.08);
  outline: 2px solid var(--accent-light);
  outline-offset: 2px;
}
