/* ===== CSS VARIABLES ===== */
:root {
  /* Colors - Dark Mode (Default) */
  --bg-primary: #0a0e27;
  --bg-secondary: #151a30;
  --bg-card: #1a1f38;
  --text-primary: #e4e4e7;
  --text-secondary: #a1a1aa;
  --accent-primary: #6366f1;
  --accent-secondary: #8b5cf6;
  --accent-hover: #7c3aed;
  --border-color: rgba(255, 255, 255, 0.1);
  --shadow: rgba(0, 0, 0, 0.3);
  
  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  /* Font Sizes */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;
  --fs-2xl: 1.5rem;
  --fs-3xl: 1.875rem;
  --fs-4xl: 2.25rem;
  --fs-5xl: 3rem;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 0.75rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;
  
  /* Layout */
  --container-width: 1200px;
  --header-height: 70px;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  
  /* Z-index */
  --z-fixed: 100;
  --z-modal: 1000;
}

/* Light Mode Variables */
body.light-mode {
  --bg-primary: #ffffff;
  --bg-secondary: #f5f5f7;
  --bg-card: #ffffff;
  --text-primary: #1a1a1a;
  --text-secondary: #6b6b6b;
  --accent-primary: #4f46e5;
  --accent-secondary: #7c3aed;
  --accent-hover: #6366f1;
  --border-color: rgba(0, 0, 0, 0.1);
  --shadow: rgba(0, 0, 0, 0.1);
}

/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: var(--font-primary);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-primary);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* ===== REUSABLE CLASSES ===== */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.section {
  padding: var(--spacing-3xl) 0;
}

.section__title {
  font-size: var(--fs-3xl);
  margin-bottom: var(--spacing-2xl);
  text-align: center;
  position: relative;
  color: var(--text-primary);
}

.section__title::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  border-radius: var(--radius-sm);
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-sm) var(--spacing-xl);
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: var(--fs-base);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.btn--secondary {
  background: transparent;
  color: var(--text-primary);
  border: 2px solid var(--border-color);
}

.btn--secondary:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* ===== HEADER & NAVIGATION ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(10, 14, 39, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px var(--shadow);
  z-index: var(--z-fixed);
  transition: background-color var(--transition-normal);
}

body.light-mode .header {
  background-color: rgba(255, 255, 255, 0.95);
}

.nav {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-size: var(--fs-xl);
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media screen and (max-width: 768px) {
  .nav__logo {
    font-size: var(--fs-base);
  }
}

.nav__list {
  display: flex;
  gap: var(--spacing-xl);
}

.nav__link {
  position: relative;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  transition: width var(--transition-fast);
}

.nav__link:hover {
  color: var(--accent-primary);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

/* Language Toggle */
.lang-toggle {
  min-width: 95px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  padding: 0 12px;
  border: 2px solid var(--border-color);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.lang-toggle:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: var(--accent-secondary);
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.25);
}

.lang-icon {
  color: var(--accent-secondary);
  flex-shrink: 0;
  opacity: 0.8;
}

.lang-toggle:hover .lang-icon {
  opacity: 1;
  transform: rotate(15deg);
}

.lang-separator {
  width: 1px;
  height: 20px;
  background: var(--border-color);
  margin: 0 2px;
}

.lang-toggle span {
  font-size: var(--fs-sm);
  font-weight: 700;
  transition: all var(--transition-fast);
  color: var(--text-secondary);
  letter-spacing: 0.5px;
}

.lang-divider {
  color: var(--border-color);
  font-weight: 300;
  opacity: 0.5;
}

.lang-toggle .lang-pt {
  color: var(--accent-primary);
  transform: scale(1.1);
}

.lang-toggle .lang-en {
  opacity: 0.4;
}

html[lang="en"] .lang-toggle .lang-pt {
  opacity: 0.4;
  color: var(--text-secondary);
  transform: scale(1);
}

html[lang="en"] .lang-toggle .lang-en {
  opacity: 1;
  color: var(--accent-primary);
  transform: scale(1.1);
}

/* Theme Toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.theme-toggle:hover {
  background: var(--accent-primary);
  transform: scale(1.05);
}

.theme-toggle svg {
  position: absolute;
  transition: all var(--transition-fast);
}

.sun-icon {
  opacity: 0;
  transform: rotate(180deg) scale(0);
}

.moon-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

body.light-mode .sun-icon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

body.light-mode .moon-icon {
  opacity: 0;
  transform: rotate(-180deg) scale(0);
}

/* Mobile Navigation */
.nav__toggle,
.nav__close {
  display: none;
  cursor: pointer;
  color: var(--text-primary);
}

/* ===== HERO SECTION ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.1); opacity: 0.3; }
}

.hero__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-2xl);
}

.hero__content {
  flex: 1;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__greeting {
  font-size: var(--fs-lg);
  color: var(--accent-primary);
  font-weight: 500;
  display: block;
  margin-bottom: var(--spacing-sm);
}

.hero__name {
  font-size: var(--fs-5xl);
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  background: linear-gradient(135deg, var(--text-primary), var(--accent-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__title {
  font-size: var(--fs-2xl);
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: var(--spacing-md);
}

.hero__location {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xl);
  font-size: var(--fs-base);
}

.hero__location svg {
  color: var(--accent-primary);
}

.hero__cta {
  display: flex;
  gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
}

.hero__social {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.hero__social-link {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.hero__social-link:hover {
  background: var(--accent-primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3);
}

/* ===== ABOUT SECTION ===== */
.about {
  background: var(--bg-secondary);
  position: relative;
  overflow: visible;
  isolation: isolate;
  padding: var(--spacing-3xl) 0;
}

/* Floating Shapes */
.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
  animation: floatAround 25s infinite ease-in-out;
}

.shape-1 {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, var(--accent-primary), transparent);
  top: 15%;
  left: 5%;
  animation-delay: 0s;
}

.shape-2 {
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, var(--accent-secondary), transparent);
  top: 50%;
  right: 8%;
  animation-delay: 8s;
}

.shape-3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, #6366f1, transparent);
  bottom: 15%;
  left: 25%;
  animation-delay: 16s;
}

.shape-4 {
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, #8b5cf6, transparent);
  top: 35%;
  right: 35%;
  animation-delay: 12s;
}

@keyframes floatAround {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(20px, -20px) scale(1.05);
  }
  50% {
    transform: translate(-15px, 15px) scale(0.95);
  }
  75% {
    transform: translate(15px, 20px) scale(1.02);
  }
}

.about .container {
  position: relative;
  z-index: 1;
}

.about__container {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2xl);
}

@media screen and (min-width: 1024px) {
  .about__container {
    display: flex;
    flex-direction: row;
    gap: var(--spacing-3xl);
    align-items: flex-start;
  }
  
  .about__content {
    flex: 0 0 55%;
  }
  
  .about__competencies {
    flex: 1 1 45%;
    min-height: 500px;
  }
}

.about__content {
  width: 100%;
}

.about__description {
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
  line-height: 1.8;
}

.about__subtitle {
  font-size: var(--fs-xl);
  margin-bottom: var(--spacing-lg);
  color: var(--text-primary);
}

.about__competencies {
  width: 100%;
}

.competencies__grid {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-lg);
  min-height: 100%;
}

.competency__item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 70px;
}

.competency__item::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
  transition: left 0.5s;
}

.competency__item:hover::before {
  left: 100%;
}

.competency__item:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
  box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.competency__item svg {
  color: var(--accent-primary);
  flex-shrink: 0;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.competency__item span {
  font-weight: 600;
  font-size: var(--fs-base);
  color: var(--text-primary);
}


/* ===== EXPERIENCE SECTION (TIMELINE) ===== */
.timeline {
  position: relative;
  padding-left: var(--spacing-2xl);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
}

.timeline__item {
  position: relative;
  margin-bottom: var(--spacing-3xl);
  opacity: 1;
  transform: translateX(0);
  animation: fadeInLeft 0.6s ease-out backwards;
}

.timeline__item.visible {
  opacity: 1;
  transform: translateX(0);
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.timeline__marker {
  position: absolute;
  left: calc(-1 * var(--spacing-2xl) - 6px);
  top: 0;
  width: 14px;
  height: 14px;
  background: var(--accent-primary);
  border: 3px solid var(--bg-primary);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--accent-primary);
  opacity: 0.3;
}

.timeline__item:hover .timeline__marker {
  opacity: 1;
  transform: scale(1.2);
  transition: all var(--transition-fast);
}

.timeline__content {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  transition: all var(--transition-fast);
}

.timeline__content:hover {
  border-color: var(--accent-primary);
  box-shadow: 0 8px 30px var(--shadow);
  transform: translateY(-2px);
}

.timeline__company {
  font-size: var(--fs-2xl);
  color: var(--accent-primary);
  margin-bottom: var(--spacing-xs);
}

.timeline__position {
  font-size: var(--fs-xl);
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
}

.timeline__date {
  display: block;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xs);
}

.timeline__location {
  display: block;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-md);
}

.timeline__duration {
  display: inline-block;
  font-size: var(--fs-sm);
  color: var(--accent-secondary);
  background: rgba(139, 92, 246, 0.1);
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--radius-sm);
  margin-top: var(--spacing-xs);
}

.timeline__description {
  color: var(--text-secondary);
  line-height: 1.7;
}

.timeline__description p {
  margin-bottom: var(--spacing-md);
}

.timeline__description p:last-child {
  margin-bottom: 0;
}

.timeline__role {
  margin-top: var(--spacing-xl);
  padding-top: var(--spacing-xl);
  border-top: 1px solid var(--border-color);
}

.timeline__role:first-of-type {
  margin-top: var(--spacing-lg);
}

/* ===== EDUCATION SECTION ===== */
.education {
  background: var(--bg-secondary);
}

.education__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-xl);
}

.education__card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  transition: all var(--transition-fast);
  opacity: 1;
  transform: translateY(0);
  animation: fadeInUp 0.6s ease-out backwards;
}

.education__card:nth-child(1) { animation-delay: 0s; }
.education__card:nth-child(2) { animation-delay: 0.1s; }
.education__card:nth-child(3) { animation-delay: 0.2s; }
.education__card:nth-child(4) { animation-delay: 0.3s; }

.education__card.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.education__card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
  box-shadow: 0 10px 40px var(--shadow);
}

.education__icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-lg);
}

.education__icon svg {
  color: white;
}

.education__field {
  font-size: var(--fs-xl);
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
  font-weight: 600;
}

.education__degree {
  font-size: var(--fs-base);
  color: var(--accent-primary);
  margin-top: var(--spacing-md);
  font-weight: 500;
}

.education__school {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-sm);
  font-size: var(--fs-base);
}

.education__date {
  display: inline-block;
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  background: var(--bg-secondary);
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--radius-sm);
}

/* ===== SKILLS SECTION ===== */
.skills__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-2xl);
}

.skills__group {
  opacity: 1;
  transform: translateY(0);
  animation: fadeInUp 0.6s ease-out backwards;
}

.skills__group.visible {
  opacity: 1;
  transform: translateY(0);
}

.skills__subtitle {
  font-size: var(--fs-2xl);
  margin-bottom: var(--spacing-xl);
  color: var(--text-primary);
}

/* Certifications */
.certifications__grid {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.certification__badge {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.certification__badge:hover {
  transform: translateX(5px);
  border-color: var(--accent-secondary);
  box-shadow: 0 5px 20px rgba(139, 92, 246, 0.2);
}

.certification__badge svg {
  color: var(--accent-secondary);
  flex-shrink: 0;
}

.certification__badge span {
  font-weight: 500;
  color: var(--text-primary);
}

/* Languages */
.languages__grid {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.language__item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
}

.language__item:hover {
  transform: translateX(5px);
  border-color: var(--accent-primary);
}

.language__item svg {
  color: var(--accent-primary);
  flex-shrink: 0;
}

.language__item > div {
  display: flex;
  flex-direction: column;
}

.language__name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: var(--fs-lg);
}

.language__level {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
}

/* ===== CONTACT SECTION ===== */
.contact {
  background: var(--bg-secondary);
}

.contact__text {
  text-align: center;
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-2xl);
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-xl);
}

.contact__card {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
  padding: var(--spacing-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: all var(--transition-fast);
  opacity: 1;
  transform: translateY(0);
  animation: fadeInUp 0.6s ease-out backwards;
}

.contact__card:nth-child(1) { animation-delay: 0s; }
.contact__card:nth-child(2) { animation-delay: 0.1s; }
.contact__card:nth-child(3) { animation-delay: 0.2s; }

.contact__card.visible {
  opacity: 1;
  transform: translateY(0);
}

.contact__card:hover {
  transform: translateY(-5px);
  border-color: var(--accent-primary);
  box-shadow: 0 10px 40px var(--shadow);
}

.contact__card svg {
  color: var(--accent-primary);
  flex-shrink: 0;
}

.contact__card h4 {
  font-size: var(--fs-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-xs);
}

.contact__card p {
  font-size: var(--fs-lg);
  font-weight: 500;
  color: var(--text-primary);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: var(--spacing-xl) 0;
}

.footer__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__copy {
  color: var(--text-secondary);
  font-size: var(--fs-sm);
}

.footer__scroll-top {
  width: 45px;
  height: 45px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  opacity: 0;
  visibility: hidden;
}

.footer__scroll-top.show {
  opacity: 1;
  visibility: visible;
}

.footer__scroll-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(99, 102, 241, 0.4);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet */
@media screen and (max-width: 1024px) {
  :root {
    --fs-5xl: 2.5rem;
    --fs-4xl: 2rem;
    --fs-3xl: 1.75rem;
  }
  
  .about__container {
    flex-direction: column;
  }
  
  .hero__container {
    flex-direction: column;
    text-align: center;
  }
  
  .hero__social {
    flex-direction: row;
  }
  
  .hero__cta {
    justify-content: center;
  }
}

/* Mobile */
@media screen and (max-width: 768px) {
  :root {
    --fs-5xl: 2rem;
    --fs-3xl: 1.5rem;
    --fs-2xl: 1.25rem;
    --spacing-3xl: 2.5rem;
    --spacing-2xl: 2rem;
  }
  
  .container {
    padding: 0 var(--spacing-md);
  }
  
  /* Mobile Navigation */
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    height: 100vh;
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    padding: var(--spacing-3xl) var(--spacing-xl);
    transition: right var(--transition-normal);
    box-shadow: -5px 0 20px var(--shadow);
    z-index: 200;
  }
  
  .nav__menu.show {
    right: 0;
  }
  
  /* Ensure buttons are behind menu when open */
  .nav__actions {
    position: relative;
    z-index: 50;
  }
  
  .nav__close {
    z-index: 201;
  }
  
  .nav__list {
    flex-direction: column;
    gap: var(--spacing-xl);
  }
  
  .nav__link {
    font-size: var(--fs-lg);
  }
  
  .nav__close {
    display: block;
    position: absolute;
    top: var(--spacing-xl);
    right: var(--spacing-xl);
  }
  
  .nav__toggle {
    display: block;
  }
  
  /* Hero */
  .hero {
    min-height: auto;
    padding: calc(var(--header-height) + var(--spacing-2xl)) 0 var(--spacing-2xl);
  }
  
  .hero__name {
    font-size: var(--fs-4xl);
  }
  
  .hero__cta {
    flex-direction: column;
    width: 100%;
  }
  
  .hero__cta .btn {
    width: 100%;
    justify-content: center;
  }
  
  /* Timeline */
  .timeline {
    padding-left: var(--spacing-lg);
  }
  
  .timeline__marker {
    left: calc(-1 * var(--spacing-lg) - 6px);
  }
  
  /* Cards Grid */
  .education__grid,
  .contact__cards {
    grid-template-columns: 1fr;
  }
  
  .skills__container {
    grid-template-columns: 1fr;
  }
  
  /* Footer */
  .footer__container {
    flex-direction: column;
    gap: var(--spacing-md);
    text-align: center;
  }
}

/* Small Mobile */
@media screen and (max-width: 480px) {
  :root {
    --fs-5xl: 1.75rem;
    --fs-3xl: 1.25rem;
  }
  
  .hero__social {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .section__title {
    font-size: var(--fs-2xl);
  }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Print Styles */
@media print {
  .header,
  .theme-toggle,
  .footer__scroll-top,
  .hero__cta {
    display: none;
  }
  
  .section {
    page-break-inside: avoid;
  }
  
  body {
    background: white;
    color: black;
  }
}

/* Accessibility - Focus Styles */
*:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

/* ===== PARTICLES CANVAS ===== */
#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  opacity: 0.6;
}

/* ===== SCROLL PROGRESS BAR ===== */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  z-index: calc(var(--z-fixed) + 1);
  transition: width 0.1s ease-out;
  box-shadow: 0 0 10px var(--accent-primary);
}


/* ===== ANIMATED GRADIENT HERO ===== */
.hero::before {
  animation: gradientMove 8s ease-in-out infinite;
}

@keyframes gradientMove {
  0%, 100% {
    transform: scale(1) translate(0, 0);
    opacity: 0.5;
  }
  25% {
    transform: scale(1.1) translate(5%, 5%);
    opacity: 0.3;
  }
  50% {
    transform: scale(1.05) translate(-5%, 5%);
    opacity: 0.4;
  }
  75% {
    transform: scale(1.15) translate(5%, -5%);
    opacity: 0.35;
  }
}

/* Add secondary gradient blob */
.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: gradientMove2 10s ease-in-out infinite;
}

@keyframes gradientMove2 {
  0%, 100% {
    transform: scale(1) translate(0, 0);
    opacity: 0.4;
  }
  33% {
    transform: scale(1.2) translate(-10%, -10%);
    opacity: 0.25;
  }
  66% {
    transform: scale(0.9) translate(10%, -10%);
    opacity: 0.35;
  }
}

/* ===== 3D CARD EFFECTS ===== */
.timeline__content,
.education__card,
.contact__card {
  transform-style: preserve-3d;
  perspective: 1000px;
  will-change: transform;
}

.timeline__content.tilt,
.education__card.tilt,
.contact__card.tilt {
  transition: transform 0.1s ease-out;
}

/* ===== TIMELINE DRAWING ANIMATION ===== */
.timeline::before {
  transform-origin: top;
}

@keyframes drawLine {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}

.timeline__marker {
  transform: scale(1);
  opacity: 1;
}

@keyframes markerPop {
  0% {
    transform: scale(0);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* ===== TYPING CURSOR ===== */
.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 1.2em;
  background: var(--accent-primary);
  margin-left: 4px;
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ===== HOVER GLOWS ===== */
.btn--primary {
  position: relative;
  overflow: hidden;
}

.btn--primary::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn--primary:hover::before {
  width: 300px;
  height: 300px;
}

/* ===== SKILL BADGES PULSE ===== */
.competency__item,
.certification__badge,
.language__item {
  animation: subtlePulse 3s ease-in-out infinite;
}

@keyframes subtlePulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(99, 102, 241, 0);
  }
  50% {
    box-shadow: 0 0 20px 0 rgba(99, 102, 241, 0.2);
  }
}

/* Stagger animation delays */
.competency__item:nth-child(1) { animation-delay: 0s; }
.competency__item:nth-child(2) { animation-delay: 0.3s; }
.competency__item:nth-child(3) { animation-delay: 0.6s; }
.competency__item:nth-child(4) { animation-delay: 0.9s; }

.certification__badge:nth-child(1) { animation-delay: 0s; }
.certification__badge:nth-child(2) { animation-delay: 0.3s; }
.certification__badge:nth-child(3) { animation-delay: 0.6s; }

/* ===== SMOOTH REVEAL ANIMATIONS ===== */
.timeline__item,
.education__card,
.contact__card {
  will-change: opacity, transform;
}

/* Add stagger effect to timeline items */
.timeline__item:nth-child(1) { animation-delay: 0s; }
.timeline__item:nth-child(2) { animation-delay: 0.1s; }
.timeline__item:nth-child(3) { animation-delay: 0.2s; }
.timeline__item:nth-child(4) { animation-delay: 0.3s; }

/* ===== RIPPLE EFFECT ===== */
.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.5);
  transform: scale(0);
  animation: ripple-animation 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple-animation {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.btn, .competency__item, .certification__badge {
  position: relative;
  overflow: hidden;
}

/* ===== TEXT FADE IN ===== */
.about__description {
  opacity: 1;
  transition: opacity 0.8s ease, transform 0.8s ease;
}


/* ===== GRADIENT TEXT ANIMATION ===== */
.hero__name {
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* ===== WAVE BACKGROUND ===== */
.hero::after {
  z-index: 0;
}

.hero .hero__container {
  position: relative;
  z-index: 1;
}


.experience {
  position: relative;
}

.education {
  position: relative;
}

/* ===== GLOWING BADGES ===== */
.certification__badge,
.language__item {
  position: relative;
}

.certification__badge::before,
.language__item::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-lg);
  background: linear-gradient(45deg, var(--accent-primary), var(--accent-secondary), var(--accent-primary));
  background-size: 300% 300%;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
  animation: glowPulse 3s ease infinite;
}

.certification__badge:hover::before,
.language__item:hover::before {
  opacity: 0.5;
}

@keyframes glowPulse {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* ===== ENHANCED HOVER EFFECTS ===== */
.nav__link {
  position: relative;
}

.nav__link::before {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width 0.3s ease;
}

.nav__link:hover::before {
  width: 80%;
}

/* ===== SCROLL SNAP FOR SMOOTH SECTIONS ===== */
@media screen and (min-width: 1024px) {
  .main {
    scroll-snap-type: y proximity;
  }
  
  .section {
    scroll-snap-align: start;
  }
}

/* ===== ICON GLOW ===== */
.hero__social-link svg,
.contact__card svg {
  filter: drop-shadow(0 0 5px var(--accent-primary));
  transition: filter 0.3s;
}

.hero__social-link:hover svg,
.contact__card:hover svg {
  filter: drop-shadow(0 0 15px var(--accent-primary));
}

/* ===== TIMELINE ENHANCED ===== */
.timeline__marker {
  box-shadow: 0 0 0 4px var(--accent-primary);
  animation: markerGlow 2s ease-in-out infinite;
}

@keyframes markerGlow {
  0%, 100% {
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.3);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(99, 102, 241, 0.1);
  }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

