:root {
  /* Material Design Dark Theme Colors */
  --md-primary: #bb86fc;
  --md-primary-variant: #3700b3;
  --md-secondary: #8156b6;
  --md-secondary-variant: #613f8a;
  --md-background: #121212;
  --md-surface: #1e1e1e;
  --md-surface-variant: #2d2d2d;
  --md-error: #cf6679;
  --md-on-primary: #000000;
  --md-on-secondary: #000000;
  --md-on-background: #ffffff;
  --md-on-surface: #ffffff;
  --md-on-surface-variant: #e0e0e0;
  --md-outline: #79747e;
  --md-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  --md-elevation-1: 0 1px 3px rgba(0, 0, 0, 0.4);
  --md-elevation-2: 0 2px 6px rgba(0, 0, 0, 0.4);
  --md-elevation-3: 0 4px 12px rgba(0, 0, 0, 0.4);
  --md-elevation-4: 0 8px 20px rgba(0, 0, 0, 0.4);

  /* Colores de redes sociales */
--gmail-color: #EA4335;
--twitter-color: #1DA1F2;
--github-color: #6e5494; 
--linkedin-color: #0077B5;
--instagram-color: #E4405F;
}

/* Eliminar el outline rojo de debug */
/*
* {
  outline: 1px solid red !important;
}
*/

html {
  overflow-x: hidden;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
  background-color: var(--md-background);
  color: var(--md-on-background);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  padding-top: 80px; /* Espacio para el header fijo */
}

a {
  text-decoration: none;
  color: var(--md-primary);
  transition: color 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
}

a:hover {
  color: var(--md-secondary);
}

.containergeneral {
  max-width:  0 auto;
  margin: 0 auto;
  padding: 0 0;
  width: 100%;
}


.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* Header Section */
header {
  background-color: var(--md-surface);
  box-shadow: var(--md-elevation-2);
  padding: 16px 0;
            position: fixed; /* Cambiado de sticky a fixed */
  top: 0;
            z-index: 1000; /* Aumentado el z-index */
  backdrop-filter: blur(8px);
  width: 100%;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
            min-height: 48px; /* Reducido para móvil */
  width: 100%;
              position: relative;

}

.logo img {
    width: 40px;
    height: auto;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
              transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);

}

.nav-links a {
            font-weight: 400;
            font-size: 14px;
            letter-spacing: 0.25px;
            padding: 12px 16px;
            border-radius: 20px;
            transition: all 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
            position: relative;
            overflow: hidden;
            color: var(--md-on-surface);
            text-decoration: none;
}

.nav-links a:hover {
  background-color: rgba(187, 134, 252, 0.08);
  color: var(--md-primary);
}

.nav-links a:last-child:hover {
  background-color: var(--md-secondary);
  box-shadow: var(--md-elevation-2);
}

.menu-toggle {
            display: none;
            font-size: 24px;
            cursor: pointer;
            color: var(--md-on-surface);
            padding: 12px;
            border-radius: 50%;
            transition: all 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
            background: none;
            border: none;
            z-index: 1001;
        }

        .menu-toggle:hover {
            background-color: rgba(255, 255, 255, 0.04);
        }

/* Hero Section */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--md-background) 0%, #1a1a1a 100%);
}

.hero-overlay {
  position: absolute;
  width: 200%;
  height: 200%;
  top: -50%;
  left: -50%;
  background: none;
  filter: blur(40px);
  z-index: 0;
  pointer-events: none;
}

.container.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 48px;
  backdrop-filter: blur(16px);
  padding: 48px;
  border-radius: 28px;
  box-shadow: var(--md-elevation-3);
  max-width: 1000px;
  width: 100%;
  margin: 0 auto;
}

.hero-left img.profile-image {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 50%;
}

.hero-right {
  flex: 1;
}

.hero-right h1 {
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--md-on-surface);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero-right p {
  font-size: 1.25rem;
  color: var(--md-on-surface-variant);
  margin-bottom: 32px;
  font-weight: 300;
  letter-spacing: 0.15px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
}

.contact-item i {
  color: var(--md-primary);
  width: 24px;
  font-size: 18px;
}

.contact-item a,
.contact-item span {
  color: var(--md-on-surface-variant);
  font-size: 16px;
  letter-spacing: 0.15px;
  word-break: break-word;
}

.social-links {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.social-links a {
  width: 48px;
  height: 48px;
  background-color: var(--md-surface-variant);
  color: var(--md-on-surface);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
  box-shadow: var(--md-elevation-1);
}

.social-links a:hover {
  background-color: var(--md-primary);
  color: var(--md-on-primary);
  transform: translateY(-2px);
  box-shadow: var(--md-elevation-2);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  padding: 16px 32px;
  background-color: var(--md-primary);
  color: var(--md-on-primary);
  border-radius: 28px;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.25px;
  text-decoration: none;
  transition: all 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
  box-shadow: var(--md-elevation-2);
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.08);
  opacity: 0;
  transition: opacity 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.cta-button:hover {
  background-color: var(--md-secondary);
  transform: translateY(-1px);
  box-shadow: var(--md-elevation-3);
  color: var(--md-on-primary);
}

.cta-button:hover::before {
  opacity: 1;
}

/* Sections */
section {
  padding: 80px 0;
  background-color: var(--md-background);
  width: 100%;
  overflow-x: hidden;
}

section:nth-child(even) {
  background-color: rgba(30, 30, 30, 0.5);
}

.section-title {
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--md-on-background);
  text-align: center;
  margin-bottom: 48px;
  letter-spacing: -0.5px;
}

/* About Section */
#about .about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

#about .about-content p {
  font-size: 1.125rem;
  color: var(--md-on-surface-variant);
  line-height: 1.7;
  letter-spacing: 0.15px;
}

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 32px;
  width: 100%;
}

.portfolio-item {
  background-color: var(--md-surface);
  border-radius: 24px;
  box-shadow: var(--md-elevation-2);
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
}

.portfolio-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--md-elevation-4);
}

.portfolio-overlay {
  padding: 32px;
}

.portfolio-overlay h3 {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--md-on-surface);
  margin-bottom: 16px;
  letter-spacing: 0.15px;
}

.portfolio-overlay p {
  color: var(--md-on-surface-variant);
  margin-bottom: 24px;
  line-height: 1.6;
  letter-spacing: 0.25px;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.tech {
  background-color: var(--md-surface-variant);
  color: var(--md-on-surface);
  padding: 8px 16px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.25px;
  transition: background-color 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.tech:hover {
  background-color: rgba(187, 134, 252, 0.12);
  color: var(--md-primary);
}

.portfolio-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--md-primary);
  color: var(--md-on-primary);
  padding: 12px 24px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.25px;
  transition: all 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
  margin-right: 12px;
  margin-bottom: 8px;
  box-shadow: var(--md-elevation-1);
}

.portfolio-button:hover {
  background-color: var(--md-secondary);
  transform: translateY(-1px);
  box-shadow: var(--md-elevation-2);
  color: var(--md-on-primary);
}

.portfolio-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.portfolio-item.hidden {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    max-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.portfolio-item.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    max-height: 1000px;
    margin: 0;
    padding: 0;
    transition: all 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* Animación escalonada */
.portfolio-item.show:nth-child(4) { transition-delay: 0.1s; }
.portfolio-item.show:nth-child(5) { transition-delay: 0.2s; }
.portfolio-item.show:nth-child(6) { transition-delay: 0.3s; }
.portfolio-item.show:nth-child(7) { transition-delay: 0.4s; }
.portfolio-item.show:nth-child(8) { transition-delay: 0.5s; }
.portfolio-item.show:nth-child(9) { transition-delay: 0.6s; }

.toggle-button-container {
    text-align: center;
    margin-top: 40px;
    transition: all 0.3s ease;
}

#toggle-projects {
    background-color: var(--md-surface-variant);
    color: var(--md-on-surface);
    border: 1px solid rgba(255, 255, 255, 0.12);
    position: relative;
    overflow: hidden;
}

#toggle-projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s;
}

#toggle-projects:hover::before {
    left: 100%;
}

#toggle-projects:hover {
    background-color: var(--md-primary);
    color: var(--md-on-primary);
}

/* Experience Timeline */
        .timeline {
            position: relative;
            max-width: 1000px;
            margin: 0 auto;
            width: 100%;
        }

        .timeline::after {
            content: '';
            position: absolute;
            width: 2px;
            background-color: var(--md-outline);
            top: 0;
            bottom: 0;
            left: 50%;
            margin-left: -1px;
        }

        .timeline-item {
            padding: 24px 40px;
            position: relative;
            background-color: inherit;
            width: 50%;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
        }

        .timeline-item::after {
            content: '';
            position: absolute;
            width: 16px;
            height: 16px;
            right: -8px;
            background-color: var(--md-primary);
            border: 2px solid var(--md-surface);
            top: 32px;
            border-radius: 50%;
            z-index: 1;
            transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
        }

        .timeline-item:nth-child(odd) {
            left: 0;
        }

        .timeline-item:nth-child(even) {
            left: 50%;
        }

        .timeline-item:nth-child(even)::after {
            left: -8px;
        }

        .timeline-content {
            padding: 32px;
            background-color: var(--md-surface);
            border-radius: 24px;
            box-shadow: var(--md-elevation-2);
            border: 1px solid rgba(255, 255, 255, 0.08);
            transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
        }

        .timeline-item:hover .timeline-content {
            box-shadow: var(--md-elevation-3);
        }

        .timeline-content h3 {
            font-size: 1.25rem;
            font-weight: 500;
            color: var(--md-on-surface);
            margin-bottom: 8px;
            letter-spacing: 0.15px;
        }

        .role {
            color: var(--md-primary);
            font-weight: 500;
            margin-bottom: 8px;
            letter-spacing: 0.25px;
        }

        .dateline {
            color: var(--md-on-surface-variant);
            font-size: 14px;
            margin-bottom: 16px;
            letter-spacing: 0.25px;
        }

        /* Collapsible Content */
        .collapsible-content {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
        }

        .timeline-item.expanded .collapsible-content {
            max-height: 800px;
        }

        .timeline-content ul {
            list-style: none;
            margin-bottom: 24px;
        }

        .timeline-content li {
            padding: 8px 0;
            padding-left: 24px;
            position: relative;
            color: var(--md-on-surface-variant);
            line-height: 1.6;
            letter-spacing: 0.15px;
        }

        .timeline-content li::before {
            content: '•';
            color: var(--md-primary);
            position: absolute;
            left: 0;
            font-size: 18px;
        }

        .achievements h4 {
            color: var(--md-secondary);
            font-weight: 500;
            margin-bottom: 12px;
            letter-spacing: 0.15px;
        }

        .reference {
            background-color: var(--md-surface-variant);
            padding: 16px;
            border-radius: 12px;
            font-size: 14px;
            color: var(--md-on-surface-variant);
            letter-spacing: 0.25px;
        }

        /* Expand/Collapse Indicator */
        .expand-indicator {
            position: absolute;
            top: 32px;
            right: 20px;
            background-color: var(--md-primary);
            color: var(--md-on-primary);
            border-radius: 50%;
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
            z-index: 2;
        }

        .timeline-item.expanded .expand-indicator {
            transform: rotate(180deg);
            background-color: var(--md-secondary);
        }

        .timeline-item:nth-child(even) .expand-indicator {
            right: auto;
            left: 20px;
        }

        /* Active State */
        .timeline-item.expanded::after {
            width: 20px;
            height: 20px;
            background-color: var(--md-secondary);
            box-shadow: 0 0 12px rgba(129, 86, 182, 0.5);
        }

        .timeline-item.expanded .timeline-content {
            box-shadow: var(--md-elevation-4);
            border-color: rgba(187, 134, 252, 0.2);
        }

        /* Click instructions */
        .timeline-instructions {
            text-align: center;
            margin-bottom: 32px;
            color: var(--md-on-surface-variant);
            font-style: italic;
        }



/* Skills Section */
.skills-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  width: 100%;
}

.skill-category {
  background-color: var(--md-surface);
  padding: 32px;
  border-radius: 24px;
  box-shadow: var(--md-elevation-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
  width: 100%;
}

.skill-category:hover {
  transform: translateY(-2px);
  box-shadow: var(--md-elevation-3);
}

.skill-category h3 {
  color: var(--md-on-surface);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.15px;
}

.skill-category h3 i {
  color: var(--md-primary);
  font-size: 20px;
}

.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  list-style: none;
}

.skill-list li {
  background-color: var(--md-surface-variant);
  color: var(--md-on-surface);
  padding: 8px 16px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.25px;
  transition: all 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.skill-list li:hover {
  background-color: rgba(187, 134, 252, 0.12);
  color: var(--md-primary);
  transform: scale(1.02);
}

/* Certifications Section */
.certifications-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 24px;
  width: 100%;
}

.certification-item {
  background-color: var(--md-surface);
  padding: 32px;
  border-radius: 24px;
  box-shadow: var(--md-elevation-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
  width: 100%;
}

.certification-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--md-elevation-3);
}

.certification-item h3 {
  color: var(--md-on-surface);
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: 0.15px;
}

.issuer {
  color: var(--md-primary);
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: 0.25px;
}

.date {
  color: var(--md-on-surface-variant);
  font-size: 14px;
  margin-bottom: 16px;
  letter-spacing: 0.25px;
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.25px;
}

.badge.agile { background-color: rgba(3, 218, 198, 0.12); color: var(--md-secondary); }
.badge.mobile { background-color: rgba(187, 134, 252, 0.12); color: var(--md-primary); }
.badge.innovacion { background-color: rgba(255, 193, 7, 0.12); color: #ffc107; }
.badge.metodologias { background-color: rgba(76, 175, 80, 0.12); color: #4caf50; }
.badge.digital { background-color: rgba(33, 150, 243, 0.12); color: #2196f3; }
.badge.educacion { background-color: rgba(156, 39, 176, 0.12); color: #9c27b0; }

/* Footer */
/* Footer */
.footer {
  background-color: var(--md-surface);
  color: var(--md-on-surface);
  padding: 64px 32px 32px;
  text-align: center;
  border-top-left-radius: 48px;
  border-top-right-radius: 48px;
  margin-top: 80px;
  box-shadow: var(--md-elevation-3);
  position: relative;
  width: 100%;
}

.footer img {
  margin-bottom: 24px;
  opacity: 0.8;
}

.footer-quote {
  font-style: italic;
  margin: 8px 0;
  font-size: 1.125rem;
  color: var(--md-on-surface-variant);
  font-weight: 300;
  letter-spacing: 0.15px;
}

.spacer {
  margin: 24px 0;
}

.footer .social-links {
  display: flex; /* Añadido para hacer los iconos horizontales */
  justify-content: center;
  align-items: center; /* Añadido para centrar verticalmente */
  gap: 16px; /* Añadido para espaciado entre iconos */
  margin: 32px 0;
  flex-wrap: wrap; /* Añadido para responsive */
}

.footer .social-icon {
  background-color: var(--md-surface-variant);
  color: var(--md-on-surface);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
  text-decoration: none;
  box-shadow: var(--md-elevation-1);
  z-index: 10;
}

.footer .social-icon:hover {
  z-index: 1001; 
}

/* Colores específicos para cada red social */
.footer .social-icon[href*="gmail"]:hover,
.footer .social-icon[href*="mailto"]:hover {
    background-color: var(--gmail-color);
    color: white;
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 20px rgba(234, 67, 53, 0.4);
}

.footer .social-icon[href*="twitter"]:hover,
.footer .social-icon[href*="x.com"]:hover {
    background-color: var(--twitter-color);
    color: white;
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 20px rgba(29, 161, 242, 0.4);
}

.footer .social-icon[href*="github"]:hover {
    background-color: var(--github-color);
    color: white;
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 20px rgba(51, 51, 51, 0.4);
}

.footer .social-icon[href*="linkedin"]:hover {
    background-color: var(--linkedin-color);
    color: white;
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 119, 181, 0.4);
}

.footer .social-icon[href*="instagram"]:hover {
    background-color: var(--instagram-color);
    color: white;
    transform: translateY(-4px) scale(1.1);
    box-shadow: 0 8px 20px rgba(228, 64, 95, 0.4);
}

.social-icon .social-name {
    position: absolute;
    top: 50%; 
    left: 70px;
    transform: translateY(-50%) translateX(-10px); 
    white-space: nowrap;
    background-color: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    z-index: 1000;
    box-shadow: var(--md-elevation-2);
    letter-spacing: 0.25px;
    backdrop-filter: blur(10px);
}

.social-icon:hover .social-name {
    opacity: 1;
    transform: translateY(-50%) translateX(0); 
}

/* Colores de tooltip que coinciden con la red social */
.social-icon[href*="gmail"]:hover .social-name,
.social-icon[href*="mailto"]:hover .social-name {
    background-color: rgba(234, 67, 53, 0.95);
}

.social-icon[href*="twitter"]:hover .social-name,
.social-icon[href*="x.com"]:hover .social-name {
    background-color: rgba(29, 161, 242, 0.95);
}

.social-icon[href*="github"]:hover .social-name {
    background-color: rgba(110, 84, 148, 0.95); /* Morado antiguo de GitHub */
}

.social-icon[href*="linkedin"]:hover .social-name {
    background-color: rgba(0, 119, 181, 0.95);
}

.social-icon[href*="instagram"]:hover .social-name {
    background-color: rgba(228, 64, 95, 0.95);
}


.footer .copyright {
    font-size: 14px;
    color: var(--md-on-surface-variant);
    margin-top: 32px;
    letter-spacing: 0.25px;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 992px) {
  .timeline::after {
    left: 31px;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  
  .timeline-item:nth-child(even) {
    left: 0;
  }
  
  .timeline-item::after {
    left: 23px;
  }
  
  .timeline-item:nth-child(odd)::after {
    right: auto;
  }
  
  .portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
  
  .skills-container {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  
  .certifications-container {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  
  .header-content {
    flex-direction: column;
    gap: 16px;
    min-height: auto;
    position: relative;
  }
  
  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 12px;
    display: none;
    background-color: var(--md-surface);
    padding: 16px;
    border-radius: 16px;
    margin-top: 16px;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .menu-toggle {
    display: block;
    position: absolute;
    top: auto;
    right: 20px;
  }
  
  .container.hero-content {
    flex-direction: column;
    text-align: center;
    padding: 24px 16px;
    gap: 32px;
    margin: 0 16px;
    max-width: calc(100vw - 32px);
  }
  
  .hero-left img.profile-image {
    width: 160px;
    height: 160px;
  }
  
  .hero-right h1 {
    font-size: 2rem;
  }
  
  .hero-right p {
    font-size: 1.125rem;
  }
  
  .contact-info {
    align-items: center;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .skills-container {
    grid-template-columns: 1fr;
  }
  
  .certifications-container {
    grid-template-columns: 1fr;
  }
  
  section {
    padding: 48px 0;
  }
  
  .section-title {
    font-size: 2rem;
    margin-bottom: 32px;
  }
  
  .timeline-item {
    padding-left: 60px;
    padding-right: 16px;
  }
  
  .timeline-content {
    padding: 24px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }
  
  .timeline-item {
    padding-left: 50px;
    padding-right: 12px;
  }
  
  .timeline-content {
    padding: 20px;
  }
  
  .skill-category {
    padding: 24px;
  }
  
  .certification-item {
    padding: 24px;
  }
  
  .portfolio-overlay {
    padding: 24px;
  }
  
  .container.hero-content {
    padding: 20px 12px;
    margin: 0 12px;
    max-width: calc(100vw - 24px);
  }
  
  .hero-right h1 {
    font-size: 1.75rem;
  }
  
  .hero-right p {
    font-size: 1rem;
  }
  
  .footer {
    padding: 48px 16px 24px;
    border-top-left-radius: 32px;
    border-top-right-radius: 32px;
  }
  
  .social-icon .social-name {
    left: 60px;
    font-size: 12px;
    padding: 6px 12px;
    z-index: 1000;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
}