/* ========================================
   DESIGN TOKENS
   ======================================== */
:root {
  --color-primary: #0D1B3E;
  --color-primary-light: #1A2D6B;
  --color-primary-dark: #070E1F;
  --color-accent: #FFB300;
  --color-accent-light: #FFCA28;
  --color-accent-hover: #FF8F00;
  --color-gold-start: #FFD54F;
  --color-gold-mid: #FFB300;
  --color-gold-end: #FF8F00;
  --color-teal: #26A69A;
  --color-bg: #FAFAFA;
  --color-bg-alt: #F0F2F8;
  --color-text: #1A1A2E;
  --color-text-secondary: #4A5568;
  --color-border: #E2E8F0;
  --color-white: #FFFFFF;

  --gradient-gold: linear-gradient(135deg, #FFD54F 0%, #FFB300 50%, #FF8F00 100%);
  --gradient-gold-soft: linear-gradient(135deg, rgba(255, 213, 79, 0.15) 0%, rgba(255, 179, 0, 0.08) 100%);
  --gradient-gold-text: linear-gradient(135deg, #FFD54F 0%, #FFB300 40%, #FF8F00 100%);
  --gradient-hero: linear-gradient(135deg, #070E1F 0%, #0D1B3E 30%, #1A2D6B 70%, #0D1B3E 100%);
  --gradient-dark: linear-gradient(135deg, #070E1F 0%, #0D1B3E 50%, #142452 100%);
  --gradient-card: linear-gradient(145deg, #FFFFFF 0%, #F8F9FC 100%);

  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(13, 27, 62, 0.06);
  --shadow-md: 0 8px 24px rgba(13, 27, 62, 0.1);
  --shadow-lg: 0 16px 48px rgba(13, 27, 62, 0.14);
  --shadow-gold: 0 4px 20px rgba(255, 179, 0, 0.25);
  --shadow-gold-lg: 0 8px 32px rgba(255, 179, 0, 0.35);

  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  --max-width: 1200px;
  --nav-height: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* ========================================
   BILINGUAL SYSTEM
   ======================================== */
html[lang="en"] .lang-es { display: none !important; }
html[lang="es"] .lang-en { display: none !important; }

/* ========================================
   UTILITIES
   ======================================== */
.container {
  width: 90%;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section {
  padding: var(--space-4xl) 0;
  position: relative;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-3xl);
  position: relative;
}

.section__title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--gradient-gold);
  margin-top: var(--space-sm);
  border-radius: 2px;
}

.section__title--center {
  text-align: center;
}

.section__title--center::after {
  margin-left: auto;
  margin-right: auto;
}

.section__title--light {
  color: var(--color-white);
}

/* ========================================
   GOLD TEXT UTILITY
   ======================================== */
.text-gold {
  background: var(--gradient-gold-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.85rem 2rem;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  background: var(--gradient-gold);
  color: var(--color-primary-dark);
  transition: all var(--transition-base);
  border: none;
  position: relative;
  overflow: hidden;
}

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

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

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold-lg);
}

.btn--outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255, 179, 0, 0.5);
}

.btn--outline::before {
  display: none;
}

.btn--outline:hover {
  background: var(--gradient-gold);
  color: var(--color-primary-dark);
  border-color: transparent;
  box-shadow: var(--shadow-gold);
}

.btn--small {
  padding: 0.55rem 1.25rem;
  font-size: 0.8125rem;
}

.btn--gold {
  background: var(--gradient-gold);
  color: var(--color-primary-dark);
}

/* ========================================
   NAVBAR
   ======================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--nav-height);
  z-index: 1000;
  transition: all var(--transition-base);
}

.navbar.scrolled {
  background: rgba(7, 14, 31, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 179, 0, 0.1);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar__logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--gradient-gold-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.navbar__links {
  display: none;
  gap: var(--space-xl);
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  transition: color var(--transition-base);
  position: relative;
  padding-bottom: 4px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--gradient-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

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

.nav-link:hover::after,
.nav-link--active::after {
  transform: scaleX(1);
}

.nav-link--active {
  color: var(--color-accent-light);
}

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

.lang-toggle {
  padding: 0.4rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  background: transparent;
  color: var(--color-accent);
  border: 1.5px solid var(--color-accent);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
  letter-spacing: 1px;
}

.lang-toggle:hover {
  background: var(--gradient-gold);
  color: var(--color-primary-dark);
  border-color: transparent;
  box-shadow: var(--shadow-gold);
}

.navbar__actions .btn--small {
  display: none;
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--gradient-hero);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-menu__links {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.mobile-link {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-white);
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition-base);
}

.mobile-menu.active .mobile-link {
  opacity: 1;
  transform: translateY(0);
}

.mobile-menu.active li:nth-child(1) .mobile-link { transition-delay: 0.1s; }
.mobile-menu.active li:nth-child(2) .mobile-link { transition-delay: 0.15s; }
.mobile-menu.active li:nth-child(3) .mobile-link { transition-delay: 0.2s; }
.mobile-menu.active li:nth-child(4) .mobile-link { transition-delay: 0.25s; }
.mobile-menu.active li:nth-child(5) .mobile-link { transition-delay: 0.3s; }
.mobile-menu.active li:nth-child(6) .mobile-link { transition-delay: 0.35s; }
.mobile-menu.active li:nth-child(7) .mobile-link { transition-delay: 0.4s; }

.mobile-link--cta {
  background: var(--gradient-gold-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================
   HERO
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--gradient-hero);
  position: relative;
  padding: var(--space-4xl) 0;
  text-align: center;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -15%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(255, 179, 0, 0.08) 0%, rgba(255, 179, 0, 0.02) 40%, transparent 70%);
  border-radius: 50%;
  animation: pulseGlow 6s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 202, 40, 0.06) 0%, transparent 60%);
  border-radius: 50%;
  animation: pulseGlow 8s ease-in-out infinite reverse;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__line {
  width: 0;
  height: 4px;
  background: var(--gradient-gold);
  margin: 0 auto var(--space-xl);
  animation: drawLine 0.8s ease 0.2s forwards;
  border-radius: 2px;
  box-shadow: 0 0 20px rgba(255, 179, 0, 0.4);
}

.hero__name {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: -1.5px;
  line-height: 1.1;
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.5s forwards;
}

.hero__role {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 600;
  background: var(--gradient-gold-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-top: var(--space-lg);
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.8s forwards;
}

.hero__tagline {
  font-size: clamp(0.9375rem, 1.5vw, 1.125rem);
  color: rgba(255, 255, 255, 0.6);
  margin-top: var(--space-md);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  animation: fadeInUp 0.8s ease 1.1s forwards;
}

.hero__cta {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-2xl);
  opacity: 0;
  animation: fadeInUp 0.8s ease 1.3s forwards;
}

.hero__scroll {
  position: absolute;
  bottom: var(--space-2xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(255, 179, 0, 0.5);
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0;
  animation: fadeInUp 0.8s ease 1.6s forwards;
}

.hero__scroll-icon {
  animation: bounce 2s ease-in-out infinite;
  color: var(--color-accent);
}

/* ========================================
   ABOUT
   ======================================== */
.about {
  overflow: hidden;
}

.about__grid {
  display: grid;
  gap: var(--space-3xl);
  align-items: center;
}

.about__photo-frame {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
  background: var(--color-bg-alt);
}

.about__photo-frame::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: calc(var(--radius-lg) + 3px);
  background: var(--gradient-gold);
  z-index: -1;
}

.about__photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.about__photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-dark);
}

.about__photo-placeholder::after {
  content: 'MB';
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 700;
  background: var(--gradient-gold-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about__text p {
  margin-bottom: var(--space-md);
  color: var(--color-text-secondary);
  font-size: 1.0625rem;
  line-height: 1.8;
}

.about__text strong {
  color: var(--color-primary);
  font-weight: 600;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
  padding-top: var(--space-2xl);
  border-top: 2px solid transparent;
  border-image: var(--gradient-gold) 1;
}

.stat {
  text-align: center;
}

.stat__number {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 4vw, 3rem);
  font-weight: 700;
  background: var(--gradient-gold-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat__plus {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  background: var(--gradient-gold-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat__label {
  display: block;
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  margin-top: var(--space-xs);
  font-weight: 500;
}

/* ========================================
   EXPERIENCE / TIMELINE
   ======================================== */
.timeline {
  position: relative;
  padding: var(--space-xl) 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gradient-gold);
  border-radius: 2px;
  opacity: 0.4;
}

.timeline__item {
  position: relative;
  padding-left: var(--space-2xl);
  margin-bottom: var(--space-3xl);
}

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

.timeline__dot {
  position: absolute;
  left: -8px;
  top: 8px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--gradient-gold);
  border: 3px solid var(--color-bg-alt);
  box-shadow: 0 0 0 3px rgba(255, 179, 0, 0.3), var(--shadow-gold);
  transition: all var(--transition-base);
}

.timeline__item:hover .timeline__dot {
  transform: scale(1.3);
  box-shadow: 0 0 0 5px rgba(255, 179, 0, 0.2), var(--shadow-gold-lg);
}

.timeline__card {
  background: var(--gradient-card);
  padding: var(--space-xl) var(--space-xl) var(--space-xl) var(--space-xl);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  border: 1px solid rgba(255, 179, 0, 0.08);
  position: relative;
  overflow: hidden;
}

.timeline__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-gold);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.timeline__card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: rgba(255, 179, 0, 0.15);
}

.timeline__card:hover::before {
  opacity: 1;
}

.timeline__date {
  font-size: 0.8125rem;
  font-weight: 700;
  background: var(--gradient-gold-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.timeline__company {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-top: var(--space-xs);
}

.timeline__role {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-top: var(--space-xs);
}

.timeline__list {
  margin-top: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.timeline__list li {
  position: relative;
  padding-left: var(--space-lg);
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
}

.timeline__list li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gradient-gold);
  box-shadow: 0 0 6px rgba(255, 179, 0, 0.3);
}

/* ========================================
   EDUCATION
   ======================================== */
.edu-grid {
  display: grid;
  gap: var(--space-lg);
}

.edu-card {
  background: var(--gradient-card);
  padding: var(--space-xl) var(--space-xl) var(--space-xl) calc(var(--space-xl) + 4px);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  transition-delay: var(--delay, 0s);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 179, 0, 0.06);
}

.edu-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-gold);
}

.edu-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(255, 179, 0, 0.1);
}

.edu-card__badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  background: var(--gradient-gold-soft);
  color: var(--color-accent-hover);
  margin-bottom: var(--space-sm);
  border: 1px solid rgba(255, 179, 0, 0.2);
}

.edu-card__badge--active {
  background: var(--gradient-gold);
  color: var(--color-primary-dark);
  border-color: transparent;
  box-shadow: var(--shadow-gold);
}

.edu-card__badge--pending {
  background: rgba(13, 27, 62, 0.08);
  color: var(--color-primary);
  border-color: rgba(13, 27, 62, 0.15);
}

.edu-card__degree {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary);
}

.edu-card__school {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  margin-top: var(--space-xs);
}

.edu-card__date {
  font-size: 0.8125rem;
  color: var(--color-accent-hover);
  margin-top: var(--space-sm);
  font-weight: 600;
}

/* ========================================
   CERTIFICATIONS
   ======================================== */
.cert-grid {
  display: grid;
  gap: var(--space-lg);
}

.cert-card {
  background: var(--gradient-card);
  padding: var(--space-xl) var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  transition-delay: var(--delay, 0s);
  text-align: center;
  border: 1px solid rgba(255, 179, 0, 0.06);
  position: relative;
  overflow: hidden;
}

.cert-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--gradient-gold);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.cert-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.cert-card:hover::after {
  opacity: 1;
}

.cert-card__icon {
  font-size: 1.75rem;
  margin-bottom: var(--space-sm);
  background: var(--gradient-gold-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 4px rgba(255, 179, 0, 0.3));
}

.cert-card__title {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.4;
}

.cert-card__org {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  margin-top: var(--space-sm);
}

.cert-card__year {
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: var(--space-xs);
  background: var(--gradient-gold-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cert-note {
  text-align: center;
  margin-top: var(--space-2xl);
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  font-style: italic;
}

/* ========================================
   SKILLS
   ======================================== */
.skills-grid {
  display: grid;
  gap: var(--space-2xl);
}

.skills-group__title {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-sm);
  border-bottom: 3px solid transparent;
  border-image: var(--gradient-gold) 1;
  display: inline-block;
}

.skills-group__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.tag {
  padding: 0.5rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary);
  background: var(--color-white);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.tag:hover {
  border-color: var(--color-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
  background: rgba(255, 179, 0, 0.06);
  color: var(--color-primary-dark);
}

/* ========================================
   CONTACT
   ======================================== */
.contact {
  background: var(--gradient-dark);
  color: var(--color-white);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 179, 0, 0.06) 0%, transparent 60%);
  border-radius: 50%;
}

.contact::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 202, 40, 0.04) 0%, transparent 60%);
  border-radius: 50%;
}

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

.contact__text {
  font-size: 1.0625rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  margin-bottom: var(--space-2xl);
}

.contact__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.contact__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  transition: all var(--transition-base);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
}

.contact__link:hover {
  color: var(--color-accent-light);
  background: rgba(255, 179, 0, 0.08);
  transform: translateX(4px);
}

.contact__link--static {
  cursor: default;
}

.contact__link--static:hover {
  transform: none;
  background: transparent;
}

.contact__link svg {
  flex-shrink: 0;
  color: var(--color-accent);
}

.contact__cv-btn {
  font-size: 1.05rem;
  padding: 1.1rem 2.75rem;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.4);
  padding: var(--space-lg) 0;
  font-size: 0.8125rem;
  border-top: 1px solid rgba(255, 179, 0, 0.1);
}

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

.back-to-top {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--color-accent);
  border: 1.5px solid rgba(255, 179, 0, 0.3);
  transition: all var(--transition-base);
}

.back-to-top:hover {
  background: var(--gradient-gold);
  color: var(--color-primary-dark);
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}

/* ========================================
   REVEAL ANIMATIONS
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
  transition-delay: var(--delay, 0s);
  will-change: transform, opacity;
}

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

.reveal-left {
  transform: translateX(-50px) translateY(0);
}

.reveal-left.active {
  transform: translateX(0) translateY(0);
}

.reveal-right {
  transform: translateX(50px) translateY(0);
}

.reveal-right.active {
  transform: translateX(0) translateY(0);
}

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

@keyframes drawLine {
  from { width: 0; }
  to { width: 80px; }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(10px); }
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* ========================================
   SECTION DECORATIVE DIVIDERS
   ======================================== */
.section--alt::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 2px;
  background: var(--gradient-gold);
  opacity: 0.3;
}

/* ========================================
   RESPONSIVE — TABLET (768px)
   ======================================== */
@media (min-width: 768px) {
  .about__grid {
    grid-template-columns: 2fr 3fr;
  }

  .edu-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .skills-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact__links {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ========================================
   RESPONSIVE — DESKTOP (1024px)
   ======================================== */
@media (min-width: 1024px) {
  .navbar__links {
    display: flex;
  }

  .navbar__actions .btn--small {
    display: inline-flex;
  }

  .hamburger {
    display: none;
  }

  /* Timeline centered */
  .timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .timeline__item {
    width: 50%;
    padding-left: 0;
  }

  .timeline__item--left {
    padding-right: var(--space-2xl);
    text-align: right;
  }

  .timeline__item--left .timeline__dot {
    left: auto;
    right: -10px;
  }

  .timeline__item--left .timeline__card::before {
    left: auto;
    right: 0;
  }

  .timeline__item--left .timeline__list li {
    padding-left: 0;
    padding-right: var(--space-lg);
  }

  .timeline__item--left .timeline__list li::before {
    left: auto;
    right: 2px;
  }

  .timeline__item--right {
    margin-left: 50%;
    padding-left: var(--space-2xl);
  }

  .timeline__item--right .timeline__dot {
    left: -10px;
  }

  .cert-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .skills-grid {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .section {
    padding: 7rem 0;
  }
}

/* ========================================
   RESPONSIVE — LARGE (1280px)
   ======================================== */
@media (min-width: 1280px) {
  .cert-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}
