/* ========================================
   Abdulrasol Portfolio - Design System
   ======================================== */

/* CSS Variables */
:root {
  --primary: #36ADA3;
  --primary-dark: #2A8F87;
  --secondary: #2F578A;
  --accent: #4FD1C5;

  /* Light mode */
  --bg: #F7F9FC;
  --bg-alt: #FFFFFF;
  --surface: rgba(255, 255, 255, 0.8);
  --surface-hover: rgba(255, 255, 255, 0.95);
  --text: #0F172A;
  --text-muted: #64748B;
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.15);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 40px rgba(54, 173, 163, 0.15);

  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --container-width: 1200px;
  --header-height: 80px;

  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark mode */
[data-theme="dark"] {
  --bg: #0B0F1F;
  --bg-alt: #111827;
  --surface: rgba(17, 24, 39, 0.7);
  --surface-hover: rgba(17, 24, 39, 0.9);
  --text: #F8FAFC;
  --text-muted: #94A3B8;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 60px rgba(54, 173, 163, 0.2);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  font-family: 'Inter', 'Cairo', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

html[dir="rtl"] body {
  font-family: 'Cairo', 'Inter', sans-serif;
}

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

a:hover {
  color: var(--primary-dark);
}

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

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

ul {
  list-style: none;
}

/* Utility */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(54, 173, 163, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(54, 173, 163, 0.45);
  color: white;
}

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

.btn-secondary:hover {
  background: rgba(54, 173, 163, 0.1);
  color: var(--primary);
}

.btn-full {
  width: 100%;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  display: flex;
  align-items: center;
  background: transparent;
  transition: var(--transition);
}

.site-header.scrolled {
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 1.25rem;
}

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

.logo img {
  border-radius: 10px;
}

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

.desktop-nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 8px 0;
}

.desktop-nav a:hover,
.desktop-nav a:focus {
  color: var(--primary);
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.desktop-nav a:hover::after,
.desktop-nav a:focus::after {
  width: 100%;
}

.nav-resume {
  background: rgba(54, 173, 163, 0.1);
  color: var(--primary);
  padding: 8px 18px;
  border-radius: 50px;
  font-weight: 600;
}

.nav-resume:hover {
  background: rgba(54, 173, 163, 0.2);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle,
.lang-toggle,
.mobile-menu-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  transition: var(--transition);
}

.theme-toggle:hover,
.lang-toggle:hover,
.mobile-menu-toggle:hover {
  background: var(--surface-hover);
  border-color: var(--primary);
  color: var(--primary);
}

.lang-toggle {
  width: auto;
  padding: 0 16px;
  gap: 8px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
}

.mobile-menu-toggle {
  display: none;
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: absolute;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: var(--surface);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 24px;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow-lg);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 1.1rem;
  padding: 12px;
  border-radius: var(--radius-sm);
}

.mobile-nav a:hover {
  background: rgba(54, 173, 163, 0.1);
  color: var(--primary);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
  animation: float-orb 20s ease-in-out infinite;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: var(--primary);
  top: -100px;
  inset-inline-start: -100px;
}

.orb-2 {
  width: 400px;
  height: 400px;
  background: var(--secondary);
  bottom: -100px;
  inset-inline-end: -100px;
  animation-delay: -7s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: var(--accent);
  top: 40%;
  inset-inline-start: 40%;
  opacity: 0.3;
  animation-delay: -14s;
}

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, -30px) scale(1.1); }
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(54, 173, 163, 0.12);
  color: var(--primary);
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 24px;
  border: 1px solid rgba(54, 173, 163, 0.25);
  width: fit-content;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.hero-social {
  display: flex;
  gap: 12px;
}

.hero-social a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 1.1rem;
}

.hero-social a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.hero-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.image-frame {
  position: relative;
  width: 320px;
  height: 320px;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--surface);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
}

.image-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  opacity: 0.3;
  filter: blur(40px);
  z-index: 1;
  animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.05); }
}

.floating-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-weight: 700;
  color: var(--text);
  z-index: 3;
  animation: float-card 6s ease-in-out infinite;
}

.floating-card i {
  color: var(--primary);
  font-size: 1.2rem;
}

.card-1 {
  top: 20px;
  inset-inline-end: -20px;
  animation-delay: 0s;
}

.card-2 {
  bottom: 40px;
  inset-inline-start: -30px;
  animation-delay: -3s;
}

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

/* Sections */
.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.section-label {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(54, 173, 163, 0.1);
  color: var(--primary);
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

html[dir="rtl"] .section-label {
  letter-spacing: 0;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text);
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
}

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

.about-text .lead {
  font-size: 1.25rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 28px;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}

.stat-value {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.stat-label {
  color: var(--text-muted);
  font-weight: 500;
}

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

.skill-category {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}

.skill-category:hover {
  box-shadow: var(--shadow);
  border-color: var(--border-strong);
}

.category-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text);
}

.skill-item {
  margin-bottom: 18px;
}

.skill-item:last-child {
  margin-bottom: 0;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.skill-name {
  font-weight: 600;
  color: var(--text);
}

.skill-level {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.9rem;
}

.skill-bar {
  height: 8px;
  background: var(--border);
  border-radius: 50px;
  overflow: hidden;
}

.skill-progress {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 50px;
  transition: width 1s ease-out;
}

/* Experience */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-start: 12px;
  width: 2px;
  background: var(--border-strong);
}

html[dir="rtl"] .timeline::before {
  inset-inline-start: auto;
  inset-inline-end: 12px;
}

.timeline-item {
  position: relative;
  padding-inline-start: 48px;
  margin-bottom: 40px;
}

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

.timeline-marker {
  position: absolute;
  inset-inline-start: 0;
  top: 4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  border: 4px solid var(--bg);
  box-shadow: 0 0 0 2px var(--primary);
}

.timeline-content {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.timeline-period {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(54, 173, 163, 0.1);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.timeline-role {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.timeline-company {
  color: var(--text-muted);
  font-weight: 500;
  display: block;
  margin-bottom: 12px;
}

.timeline-content p {
  color: var(--text-muted);
}

/* Projects */
.project-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 10px 22px;
  border-radius: 50px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 600;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

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

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.project-card.hidden {
  display: none;
}

.project-image {
  position: relative;
  height: 200px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border-bottom: 1px solid var(--border);
}

.project-image img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: var(--transition);
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-badge {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  padding: 6px 12px;
  background: var(--primary);
  color: white;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
}

.project-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.project-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 16px;
  flex: 1;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tech-tag {
  padding: 4px 10px;
  background: rgba(54, 173, 163, 0.1);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

.project-links {
  display: flex;
  gap: 10px;
}

.project-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 1rem;
}

.project-link:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}

.testimonial-card:hover {
  box-shadow: var(--shadow);
}

.testimonial-stars {
  color: #E2E8F0;
  margin-bottom: 16px;
}

[data-theme="dark"] .testimonial-stars {
  color: rgba(255, 255, 255, 0.15);
}

.testimonial-stars .active {
  color: #F59E0B;
}

.testimonial-text {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.7;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.author-info h4 {
  font-size: 1rem;
  margin-bottom: 2px;
}

.author-info span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}

.contact-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}

.contact-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(54, 173, 163, 0.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contact-details h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.contact-details a,
.contact-details span {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-details a:hover {
  color: var(--primary);
}

.contact-form-wrapper {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
}

.form-group input,
.form-group textarea {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-alt);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(54, 173, 163, 0.15);
}

.form-status {
  min-height: 24px;
  font-size: 0.9rem;
  font-weight: 600;
}

.form-status.success {
  color: #10B981;
}

.form-status.error {
  color: #EF4444;
}

/* Footer */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 16px;
  max-width: 300px;
}

.footer-links h4,
.footer-contact h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.footer-links a,
.footer-contact a {
  display: block;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--primary);
}

.footer-contact a i {
  margin-inline-end: 8px;
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  inset-inline-end: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-2px);
  color: white;
  box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 92px;
  inset-inline-end: 24px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: var(--shadow);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

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

/* Scroll animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Responsive */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions,
  .hero-social {
    justify-content: center;
  }

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

  .about-stats {
    max-width: 500px;
    margin: 0 auto;
  }

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

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  .desktop-nav,
  .header-actions .theme-toggle,
  .header-actions .lang-toggle {
    display: none;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .hero {
    padding-top: calc(var(--header-height) + 40px);
  }

  .hero-title {
    font-size: 2.25rem;
  }

  .image-frame {
    width: 260px;
    height: 260px;
  }

  .floating-card {
    display: none;
  }

  .section {
    padding: 70px 0;
  }

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

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .whatsapp-float,
  .back-to-top {
    inset-inline-end: 16px;
  }

  .whatsapp-float {
    bottom: 16px;
  }

  .back-to-top {
    bottom: 84px;
  }
}

/* Resume Page */
.resume-page {
  padding-top: calc(var(--header-height) + 60px);
  padding-bottom: 80px;
}

.resume-actions {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 40px;
}

.resume-container {
  max-width: 900px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 60px;
  box-shadow: var(--shadow);
}

.resume-header {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  align-items: center;
  padding-bottom: 32px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 32px;
}

.resume-photo img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary);
}

.resume-intro h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.resume-title {
  font-size: 1.25rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 10px;
}

.resume-location {
  color: var(--text-muted);
  margin-bottom: 14px;
}

.resume-location .separator {
  margin: 0 10px;
}

.resume-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.resume-contacts a {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.resume-contacts a:hover {
  color: var(--primary);
}

.resume-contacts i {
  margin-inline-end: 6px;
}

.resume-section {
  margin-bottom: 32px;
}

.resume-section:last-child {
  margin-bottom: 0;
}

.resume-section h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.resume-skills {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
}

.resume-skill-group h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.resume-skill-group ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.resume-skill-group li {
  background: rgba(54, 173, 163, 0.1);
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 500;
}

.resume-item {
  margin-bottom: 20px;
}

.resume-item:last-child {
  margin-bottom: 0;
}

.resume-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 4px;
}

.resume-item-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.resume-period {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
}

.resume-company {
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 8px;
}

.resume-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.resume-tech span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .resume-page {
    padding-top: calc(var(--header-height) + 30px);
  }

  .resume-container {
    padding: 32px 24px;
  }

  .resume-header {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .resume-photo {
    display: flex;
    justify-content: center;
  }

  .resume-contacts {
    justify-content: center;
  }

  .resume-item-header {
    flex-direction: column;
    gap: 4px;
  }
}

/* Print styles for resume */
@media print {
  .site-header,
  .site-footer,
  .whatsapp-float,
  .back-to-top,
  .no-print {
    display: none !important;
  }

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

  .resume-page {
    padding-top: 0;
    padding-bottom: 0;
  }

  .resume-container {
    max-width: 100%;
    box-shadow: none;
    border: none;
    padding: 0;
    background: white;
  }

  .resume-section {
    break-inside: avoid;
    margin-bottom: 24px;
  }

  .resume-item {
    break-inside: avoid;
  }

  a {
    color: black !important;
    text-decoration: none !important;
  }

  .resume-photo img {
    border-color: #36ADA3;
  }
}

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