/* ========================================
   Leonardo Mascarenhas - Website Profissional
   ======================================== */

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #1a365d;
  --primary-light: #2a4a7f;
  --primary-dark: #0f2440;
  --accent: #c9a84c;
  --accent-light: #e0c068;
  --accent-dark: #a88a30;
  --text: #2d3748;
  --text-light: #718096;
  --text-lighter: #a0aec0;
  --bg: #ffffff;
  --bg-alt: #f7f8fa;
  --bg-dark: #edf0f4;
  --border: #e2e8f0;
  --shadow: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -1px rgba(0,0,0,.04);
  --shadow-lg: 0 10px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.05);
  --shadow-xl: 0 20px 40px -10px rgba(0,0,0,.12);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: .3s cubic-bezier(.4,0,.2,1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Playfair Display', Georgia, serif;
}

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

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

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

ul { list-style: none; }

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

/* ========================================
   Header / Navigation
   ======================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}

.header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -.5px;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-light);
  position: relative;
  padding: 4px 0;
}

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

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

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

.nav-cta {
  background: var(--primary) !important;
  color: #fff !important;
  padding: 10px 24px !important;
  border-radius: 50px;
  font-weight: 600 !important;
  font-size: .85rem !important;
  transition: all var(--transition) !important;
}

.nav-cta:hover {
  background: var(--primary-light) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26,54,93,.3);
}

.nav-cta::after { display: none !important; }

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  transition: all var(--transition);
  border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ========================================
   Hero Section
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  overflow: hidden;
  padding-top: 72px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: .5;
}

/* .hero::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(to top, var(--bg), transparent);
} */

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  color: #fff;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,168,76,.15);
  border: 1px solid rgba(201,168,76,.3);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--accent-light);
  margin-bottom: 28px;
  backdrop-filter: blur(4px);
}

.hero-badge svg {
  width: 16px;
  height: 16px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -.5px;
}

.hero h1 .accent {
  color: var(--accent-light);
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(255,255,255,.8);
  margin-bottom: 16px;
  max-width: 520px;
}

.hero-location {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.6);
  font-size: .9rem;
  margin-bottom: 36px;
}

.hero-location svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  font-family: var(--font);
}

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

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,.35);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.3);
}

.btn-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,.1);
  transform: translateY(-2px);
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* Hero Visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-avatar-wrapper {
  position: relative;
  width: 380px;
  height: 380px;
}

.hero-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 7rem;
  font-weight: 700;
  color: var(--primary-dark);
  box-shadow: 0 30px 60px rgba(0,0,0,.3);
  position: relative;
  z-index: 2;
}

.hero-avatar-ring {
  position: absolute;
  top: -15px;
  left: -15px;
  right: -15px;
  bottom: -15px;
  border-radius: 50%;
  border: 2px solid rgba(201,168,76,.3);
  animation: pulse-ring 3s ease-in-out infinite;
}

@keyframes pulse-ring {
  0%, 100% { transform: scale(1); opacity: .6; }
  50% { transform: scale(1.04); opacity: 1; }
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
  position: relative;
  z-index: 2;
}

.hero-stat {
  text-align: center;
  color: #fff;
}

.hero-stat .number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-light);
  line-height: 1;
}

.hero-stat .label {
  font-size: .78rem;
  color: rgba(255,255,255,.6);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Floating decorative cards */
.float-card {
  position: absolute;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  padding: 16px 20px;
  color: #fff;
  z-index: 3;
  animation: float 6s ease-in-out infinite;
}

.float-card-1 {
  top: 10%;
  right: -20px;
  animation-delay: 0s;
}

.float-card-2 {
  bottom: 20%;
  left: -10px;
  animation-delay: 2s;
}

.float-card .fc-icon {
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.float-card .fc-icon svg {
  width: 18px;
  height: 18px;
  color: var(--primary-dark);
}

.float-card .fc-label {
  font-size: .75rem;
  font-weight: 600;
  white-space: nowrap;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ========================================
   Section Base
   ======================================== */
section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-dark);
  margin-bottom: 16px;
}

.section-label::before,
.section-label::after {
  content: '';
  width: 30px;
  height: 2px;
  background: var(--accent);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ========================================
   About Section
   ======================================== */
.about {
  background: var(--bg-alt);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-content h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 20px;
}

.about-content p {
  color: var(--text-light);
  margin-bottom: 16px;
  font-size: 1rem;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 32px;
}

.highlight-card {
  background: var(--bg);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: all var(--transition);
  border: 1px solid var(--border);
}

.highlight-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.highlight-card .hc-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.highlight-card .hc-icon svg {
  width: 22px;
  height: 22px;
  color: #fff;
}

.highlight-card h4 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.highlight-card p {
  font-size: .82rem;
  color: var(--text-light);
  line-height: 1.5;
  margin: 0;
}

/* About Image Side */
.about-image-side {
  position: relative;
}

.about-image-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
}

.about-image-card .quote {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--primary);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 20px;
  position: relative;
  padding-left: 24px;
  border-left: 3px solid var(--accent);
}

.about-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.about-tag {
  background: var(--bg-alt);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 600;
  border: 1px solid var(--border);
}

/* ========================================
   Experience Section
   ======================================== */
.experience {
  background: var(--bg);
}

.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--primary), var(--accent));
}

.timeline-item {
  position: relative;
  padding-left: 72px;
  padding-bottom: 40px;
  opacity: 0;
  transform: translateY(30px);
  transition: all .6s cubic-bezier(.4,0,.2,1);
}

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

.timeline-item:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: 18px;
  top: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  border: 4px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent);
  z-index: 2;
}

.timeline-item.current .timeline-dot {
  animation: dot-pulse 2s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 2px var(--accent); }
  50% { box-shadow: 0 0 0 6px rgba(201,168,76,.3); }
}

.timeline-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}

.timeline-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.timeline-role {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
}

.timeline-company {
  font-size: .95rem;
  color: var(--accent-dark);
  font-weight: 600;
}

.timeline-period {
  font-size: .8rem;
  color: var(--text-lighter);
  background: var(--bg-alt);
  padding: 4px 12px;
  border-radius: 50px;
  white-space: nowrap;
}

.timeline-desc {
  color: var(--text-light);
  font-size: .9rem;
  line-height: 1.7;
}

.timeline-location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: .8rem;
  color: var(--text-lighter);
  margin-top: 10px;
}

.timeline-location svg {
  width: 14px;
  height: 14px;
}

/* ========================================
   Certifications Section
   ======================================== */
.certifications {
  background: var(--bg-alt);
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.cert-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.cert-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
}

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

.cert-issuer {
  font-size: .78rem;
  font-weight: 600;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.cert-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.4;
}

.cert-date {
  font-size: .8rem;
  color: var(--text-lighter);
  margin-bottom: 12px;
}

.cert-desc {
  font-size: .85rem;
  color: var(--text-light);
  line-height: 1.6;
}

.cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 6px 14px;
  background: rgba(201,168,76,.1);
  border: 1px solid rgba(201,168,76,.25);
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 600;
  color: var(--accent-dark);
}

.cert-badge svg {
  width: 14px;
  height: 14px;
}

/* ========================================
   Education Section
   ======================================== */
.education {
  background: var(--bg);
}

.edu-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}

.edu-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
}

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

.edu-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.edu-icon svg {
  width: 24px;
  height: 24px;
  color: #fff;
}

.edu-card h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.edu-card .edu-course {
  font-size: .9rem;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 8px;
}

.edu-card .edu-period {
  font-size: .8rem;
  color: var(--text-lighter);
}

/* ========================================
   Contact / CTA Section
   ======================================== */
.contact {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary), var(--primary-light));
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.contact .section-label { color: var(--accent-light); }
.contact .section-label::before,
.contact .section-label::after { background: var(--accent-light); }
.contact .section-title { color: #fff; }
.contact .section-desc { color: rgba(255,255,255,.7); }

.contact-content {
  position: relative;
  z-index: 2;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
  align-items: start;
}

.contact-info h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 20px;
}

.contact-info p {
  color: rgba(255,255,255,.7);
  font-size: .95rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-channel {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 18px 24px;
  transition: all var(--transition);
  color: #fff;
}

.contact-channel:hover {
  background: rgba(255,255,255,.14);
  transform: translateX(8px);
}

.contact-channel .cc-icon {
  width: 44px;
  height: 44px;
  background: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-channel .cc-icon svg {
  width: 22px;
  height: 22px;
  color: var(--primary-dark);
}

.contact-channel .cc-label {
  font-size: .78rem;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.contact-channel .cc-value {
  font-size: 1rem;
  font-weight: 600;
}

/* Contact Form */
.contact-form-card {
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 36px;
}

.contact-form-card h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: rgba(255,255,255,.7);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-sm);
  color: #fff;
  font-family: var(--font);
  font-size: .9rem;
  transition: all var(--transition);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255,255,255,.3);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  background: rgba(255,255,255,.12);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-submit {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: var(--primary-dark);
  border: none;
  border-radius: 50px;
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}

.form-submit:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201,168,76,.35);
}

/* ========================================
   Footer
   ======================================== */
.footer {
  background: var(--primary-dark);
  padding: 40px 0;
  border-top: 1px solid rgba(255,255,255,.08);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.footer-logo span { color: var(--accent); }

.footer-copy {
  font-size: .82rem;
  color: rgba(255,255,255,.4);
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.footer-social {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  color: rgba(255,255,255,.6);
}

.footer-social:hover {
  background: var(--accent);
  color: var(--primary-dark);
  transform: translateY(-3px);
}

.footer-social svg {
  width: 20px;
  height: 20px;
}

/* ========================================
   Scroll Animations
   ======================================== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all .7s cubic-bezier(.4,0,.2,1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: all .7s cubic-bezier(.4,0,.2,1);
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: all .7s cubic-bezier(.4,0,.2,1);
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ========================================
   Back to Top
   ======================================== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 90px;
  width: 52px;
  height: 52px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(37,211,102,.35);
  transition: all var(--transition);
  z-index: 999;
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 14px 30px rgba(37,211,102,.45);
  background: #20ba5a;
}

.whatsapp-float svg {
  width: 24px;
  height: 24px;
}

.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent);
  color: var(--primary-dark);
  transform: translateY(-3px);
}

.back-to-top svg {
  width: 22px;
  height: 22px;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-subtitle { margin: 0 auto 16px; }
  .hero-buttons { justify-content: center; }
  .hero-location { justify-content: center; }

  .hero-avatar-wrapper { width: 280px; height: 280px; }
  .hero-avatar { font-size: 5rem; }
  .hero-visual { order: -1; }

  .float-card { display: none; }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image-side { order: -1; }

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

@media (max-width: 768px) {
  section { padding: 72px 0; }

  .menu-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--bg);
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    gap: 24px;
    box-shadow: -4px 0 20px rgba(0,0,0,.1);
    transition: right var(--transition);
    z-index: 1000;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1.05rem;
  }

  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .hero-stat .number { font-size: 1.5rem; }
  .hero-stat .label { font-size: .7rem; }

  .about-highlights { grid-template-columns: 1fr; }

  .certs-grid { grid-template-columns: 1fr; }
  .edu-cards { grid-template-columns: 1fr; }

  .timeline::before { left: 16px; }
  .timeline-item { padding-left: 52px; }
  .timeline-dot { left: 6px; }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }

  .hero h1 { font-size: 2rem; }
  .hero-avatar-wrapper { width: 200px; height: 200px; }
  .hero-avatar { font-size: 3.5rem; }
  .hero-buttons { flex-direction: column; align-items: center; }

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

  .section-title { font-size: 1.8rem; }

  .contact-form-card { padding: 24px; }

  .whatsapp-float {
    right: 24px;
    bottom: 86px;
    width: 50px;
    height: 50px;
  }
}

/* ========================================
   Overlay for mobile menu
   ======================================== */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,.4);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}

.nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Print styles */
@media print {
  .header, .back-to-top, .contact-form-card, .menu-toggle, .nav-overlay { display: none; }
  section { padding: 40px 0; }
  .hero { min-height: auto; padding: 60px 0; }
}
