/* Presto Design Language - Portfolio Styles */

:root {
  /* Colors - Light Mode */
  --primary: #FF4E02;
  --primary-hover: #e04402;
  --primary-light: rgba(255, 78, 2, 0.1);
  --secondary: #4981B8;
  --background: #F5F6F8;
  --surface: #FFFFFF;
  --heading: #23272E;
  --body: #343A46;
  --muted: #68798F;
  --border: #E5EAEF;

  /* Feedback */
  --success: #0EAA14;
  --error: #E82626;
  --info: #539BFF;

  /* Typography */
  --font-family: 'Google Sans Text', 'Roboto', sans-serif;

  /* Spacing */
  --radius-card: 12px;
  --radius-sm: 6px;
  --radius-lg: 20px;

  /* Enhanced Shadows for Premium Look */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 4px 20px rgba(255, 78, 2, 0.25);

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
  --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode */
[data-theme="dark"] {
  --background: #0d1117;
  --surface: #161b22;
  --heading: #f0f6fc;
  --body: #c9d1d9;
  --muted: #8b949e;
  --border: #30363d;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .glass-panel {
  background: rgba(22, 27, 34, 0.8);
  border: 1px solid rgba(48, 54, 61, 0.5);
}

[data-theme="dark"] .site-header {
  background: rgba(13, 17, 23, 0.95);
  border-bottom: 1px solid var(--border);
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #ff8a50);
  z-index: 10000;
  transition: width 0.1s ease-out;
}

/* Custom Cursor */
.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--primary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s ease;
}

.cursor-outline {
  width: 35px;
  height: 35px;
  border: 2px solid var(--primary);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: all 0.15s ease-out;
  opacity: 0.5;
}

.cursor-outline.hover {
  width: 50px;
  height: 50px;
  border-color: var(--primary);
  opacity: 1;
}

/* Dark Mode Toggle Button */
.theme-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--body);
  transition: var(--transition);
}

.theme-toggle:hover {
  color: var(--primary);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--background);
  color: var(--body);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading);
  line-height: 1.2;
  margin-bottom: 1rem;
  font-weight: 700;
}

p {
  margin-bottom: 1rem;
}

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

ul {
  list-style: none;
}

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

/* Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  /* For z-index context */
}

.section {
  padding: 6rem 0;
  position: relative;
}

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

.muted {
  color: var(--muted);
}

/* Glassmorphism */
.glass-panel {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  letter-spacing: 0.3px;
}

.btn.primary {
  background: linear-gradient(135deg, var(--primary) 0%, #ff6b2b 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 78, 2, 0.3);
  position: relative;
  overflow: hidden;
}

.btn.primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: var(--transition-slow);
}

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

.btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 78, 2, 0.4);
}

.btn.ghost {
  background-color: transparent;
  color: var(--body);
  border-color: var(--border);
}

.btn.ghost:hover {
  background-color: rgba(255, 255, 255, 0.5);
  color: var(--heading);
  border-color: var(--secondary);
  backdrop-filter: blur(4px);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  border-bottom: 1px solid rgba(229, 234, 239, 0.5);
  height: 80px;
  display: flex;
  align-items: center;
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--heading);
  letter-spacing: -0.5px;
}

.logo-dot {
  width: 14px;
  height: 14px;
  background-color: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255, 78, 2, 0.1);
}

.nav-actions {
  display: flex;
  gap: 1rem;
}

/* Hero Section */
.hero {
  padding-top: 160px;
  padding-bottom: 8rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
}

#network-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.6;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-text h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  letter-spacing: -1px;
}

.hero-text .highlight {
  background: linear-gradient(120deg, var(--primary) 0%, #ff8a50 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text p.lead {
  font-size: 1.35rem;
  color: var(--muted);
  margin-bottom: 2.5rem;
  max-width: 550px;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}

.social_links {
  display: flex;
  gap: 1.5rem;
}

.social_links a {
  color: var(--muted);
  transition: var(--transition);
  padding: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}

.social_links a:hover {
  color: var(--primary);
  background: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.hero-media {
  position: relative;
  display: flex;
  justify-content: center;
}

.profile-img-wrap {
  position: relative;
  width: 440px;
  height: 440px;
  border-radius: 40px;
  /* Slightly squircle */
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 10;
  animation: float 6s ease-in-out infinite;
  transform: rotate(-2deg);
  border: 4px solid white;
}

.profile-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg-shape {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 78, 2, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
  z-index: 1;
  border-radius: 50%;
}

@keyframes float {
  0% {
    transform: translateY(0px) rotate(-2deg);
  }

  50% {
    transform: translateY(-20px) rotate(-1deg);
  }

  100% {
    transform: translateY(0px) rotate(-2deg);
  }
}

/* Stats Section (Live Counter) */
.stats-section {
  margin-top: -60px;
  /* Overlap hero */
  position: relative;
  z-index: 20;
  padding-bottom: 4rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 3rem;
  border-radius: 24px;
  text-align: center;
}

.stat-item h3 {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--heading);
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--heading) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.stat-item p {
  color: var(--muted);
  font-size: 1.1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* About Section */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 5rem;
  align-items: start;
}

.about-text {
  text-align: justify;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--body);
  margin-bottom: 1.5rem;
}

/* Contributions Stats (Inline in About) */
.contributions-title {
  font-size: 1.3rem;
  color: var(--heading);
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.stats-inline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1.5rem;
}

.stat-inline-item {
  text-align: center;
  padding: 1.5rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.stat-inline-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.stat-inline-item h4 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-family: 'Roboto Mono', 'Google Sans Text', monospace;
  /* Monospaced for ticker stability */
  font-variant-numeric: tabular-nums;
  /* Prevents jitter */
}

.stat-inline-item p {
  color: var(--body);
  font-size: 0.95rem;
  font-weight: 500;
}

/* Impact Cards (Formerly Highlights) */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.impact-card {
  border-radius: 20px;
  overflow: hidden;
  /* For image zoom */
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.impact-card:hover {
  transform: translateY(-8px);
}

.impact-img {
  height: 200px;
  overflow: hidden;
  background-color: #0b0b0b;
  /* Dark bg for the assets */
  position: relative;
}

.impact-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  opacity: 0.9;
}

.impact-card:hover .impact-img img {
  transform: scale(1.05);
  opacity: 1;
}

.impact-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.impact-content h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--heading);
}

/* Remove old card styles if necessary, but keep for legacy unless replaced */
.card {
  padding: 1.5rem;
  border-radius: var(--radius-card);
  transition: var(--transition);
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  /* Glass style default for cards now */
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

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

.card-icon {
  color: var(--primary);
  background-color: rgba(255, 78, 2, 0.1);
  padding: 10px;
  border-radius: 8px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.card-content p {
  font-size: 0.9rem;
  margin: 0;
  color: var(--muted);
}

/* Skills Section */
.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.skill-tag {
  background-color: var(--surface);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 500;
  color: var(--body);
  transition: var(--transition);
}

.skill-tag:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: scale(1.05);
}

/* Tools Grid */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.tool-category {
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  transition: var(--transition);
}

.tool-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.tool-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary) 0%, #ff6b2b 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin: 0 auto 1rem;
}

.tool-icon svg {
  width: 28px;
  height: 28px;
}

.tool-category h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 1rem;
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.tool-tag {
  background: rgba(255, 78, 2, 0.1);
  color: var(--primary);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
}

/* LinkedIn Section */
.linkedin-section {
  background: linear-gradient(135deg, #0077b5 0%, #00a0dc 100%);
  padding: 4rem 0;
  margin: 3rem 0;
  border-radius: 24px;
}

.linkedin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.linkedin-intro h3 {
  color: white;
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.linkedin-intro p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  line-height: 1.6;
}

.linkedin-badge-wrapper {
  background: white;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.linkedin-post-wrapper {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.linkedin-post-wrapper iframe {
  width: 100%;
  max-width: 100%;
  border: none;
}

/* LinkedIn CTA Card (replaces broken iframe) */
.linkedin-cta-card {
  background: white;
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.linkedin-cta-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #0077b5 0%, #00a0dc 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 1.5rem;
}

.linkedin-cta-icon svg {
  width: 40px;
  height: 40px;
}

.linkedin-cta-card h4 {
  font-size: 1.5rem;
  color: var(--heading);
  margin-bottom: 0.75rem;
}

.linkedin-cta-card p {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  max-width: 280px;
}

.linkedin-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #0077b5 0%, #00a0dc 100%);
  color: white;
  padding: 0.875rem 2rem;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 119, 181, 0.3);
}

.linkedin-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 119, 181, 0.4);
}

.linkedin-cta-btn svg {
  width: 18px;
  height: 18px;
}

/* Highlights */
.highlights-list {
  background-color: var(--surface);
  border-radius: var(--radius-card);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.highlights-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1.25rem;
  color: var(--body);
}

.highlights-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary);
}

.highlights-list li:last-child {
  margin-bottom: 0;
}

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

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 30px;
  width: 2px;
  background-color: var(--border);
}

.timeline-item {
  position: relative;
  padding-left: 80px;
  padding-bottom: 3rem;
}

.timeline-badge {
  position: absolute;
  left: 10px;
  top: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: var(--surface);
  border: 2px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  z-index: 2;
  box-shadow: 0 0 0 4px var(--background);
}

.timeline-content {
  background-color: var(--surface);
  padding: 2rem;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-card {
  background-color: var(--surface);
  padding: 2rem;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background-color: var(--background);
  font-weight: 500;
}

.contact-link:hover {
  background-color: rgba(255, 78, 2, 0.1);
  color: var(--primary);
}

/* Contact Section Redesign */
.contact-grid-unified {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.contact-card-premium {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(12px);
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  gap: 1rem;
}

.contact-card-premium:hover {
  transform: translateY(-8px);
  background: white;
  box-shadow: 0 10px 40px rgba(255, 78, 2, 0.15);
  /* Orange glow */
  border-color: var(--primary);
}

.contact-card-premium .icon-box {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(255, 78, 2, 0.1) 0%, rgba(255, 78, 2, 0.05) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 0.5rem;
  transition: transform 0.3s ease;
}

.contact-card-premium:hover .icon-box {
  transform: scale(1.1) rotate(5deg);
  background: var(--primary);
  color: white;
}

.contact-card-premium h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--heading);
  margin: 0;
}

.contact-card-premium span {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 500;
}

/* Contact Form */
.contact-form-wrapper {
  max-width: 700px;
  margin: 0 auto;
  padding: 3rem;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

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

.form-group input,
.form-group textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 1rem 1.25rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-card);
  font-family: var(--font-family);
  font-size: 1rem;
  color: var(--body);
  background: var(--surface);
  transition: var(--transition);
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(255, 78, 2, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--muted);
}

.form-submit {
  align-self: flex-start;
  margin-top: 1rem;
}

.form-status {
  text-align: center;
  margin-top: 1rem;
  font-weight: 500;
}

.form-status.success {
  color: var(--success);
}

.form-status.error {
  color: var(--error);
}

/* Share Buttons */
.share-section {
  text-align: center;
}

.share-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.share-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.share-btn svg {
  width: 22px;
  height: 22px;
}

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

.share-btn.twitter {
  background: #1DA1F2;
}

.share-btn.facebook {
  background: #1877F2;
}

.share-btn.linkedin {
  background: #0A66C2;
}

.share-btn.whatsapp {
  background: #25D366;
}

.share-btn.copy {
  background: var(--primary);
}

.share-btn.copy.copied {
  background: var(--success);
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 2rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  /* Softer border */
  background-color: transparent;
  /* Cleaner look */
  margin-top: 6rem;
}

/* Animations (Intersection Observer) */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

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

/* RTL Support */
[dir="rtl"] {
  font-family: 'Tajawal', sans-serif;
}

[dir="rtl"] .timeline::before {
  left: auto;
  right: 30px;
}

[dir="rtl"] .timeline-item {
  padding-left: 0;
  padding-right: 80px;
}

[dir="rtl"] .timeline-badge {
  left: auto;
  right: 10px;
}

[dir="rtl"] .highlights-list li {
  padding-left: 0;
  padding-right: 2rem;
}

[dir="rtl"] .highlights-list li::before {
  left: auto;
  right: 0;
}

[dir="rtl"] .nav-actions {
  flex-direction: row-reverse;
}

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

  .hero-media {
    order: -1;
    /* Image first on tablet */
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

  .stats-inline {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

@media (max-width: 768px) {

  /* Header */
  .site-header {
    height: 70px;
    padding: 0 0.5rem;
  }

  .brand {
    font-size: 1.2rem;
  }

  .nav-actions {
    gap: 0.5rem;
  }

  .nav-actions .btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }

  /* Hero */
  .hero {
    padding-top: 120px;
    padding-bottom: 4rem;
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero-actions {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 280px;
  }

  .social_links {
    justify-content: center;
  }

  .profile-img-wrap {
    width: 240px;
    height: 240px;
    margin: 0 auto;
  }

  .hero-text h1 {
    font-size: 1.85rem;
    line-height: 1.2;
  }

  .hero-text p.lead {
    font-size: 1.1rem;
  }

  /* Sections */
  .section {
    padding: 4rem 0;
  }

  .container {
    padding: 0 1rem;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Stats */
  .stats-inline {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat-inline-item {
    padding: 1.25rem 1rem;
  }

  .stat-inline-item h4 {
    font-size: 2rem;
  }

  .contributions-title {
    font-size: 1.1rem;
    text-align: center;
  }

  /* Impact Cards */
  .impact-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .impact-content {
    padding: 1.5rem;
  }

  .impact-content h3 {
    font-size: 1.25rem;
  }

  /* Skills */
  .skills-list {
    justify-content: center;
  }

  .skill-tag {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
  }

  /* Timeline / Experience */
  .timeline::before {
    left: 15px;
  }

  .timeline-item {
    padding-left: 50px;
    padding-bottom: 2rem;
  }

  .timeline-badge {
    left: 0;
    width: 32px;
    height: 32px;
  }

  .timeline-content {
    padding: 1.25rem;
  }

  /* Tools Grid Mobile */
  .tools-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .tool-category {
    padding: 1.5rem;
  }

  .tool-icon {
    width: 50px;
    height: 50px;
  }

  /* LinkedIn Section Mobile */
  .linkedin-section {
    padding: 2.5rem 1rem;
    margin: 2rem 0;
    border-radius: 16px;
  }

  .linkedin-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .linkedin-intro h3 {
    font-size: 1.4rem;
  }

  .linkedin-intro p {
    font-size: 1rem;
  }

  .linkedin-badge-wrapper {
    padding: 1rem;
  }

  .linkedin-post-wrapper iframe {
    height: 450px;
  }

  /* Contact */
  .contact-grid-unified {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .contact-card-premium {
    padding: 1.5rem 1rem;
  }

  .contact-card-premium .icon-box {
    width: 50px;
    height: 50px;
  }

  .contact-card-premium h3 {
    font-size: 1.1rem;
  }

  .contact-card-premium span {
    font-size: 0.85rem;
  }

  /* About Text Mobile */
  .about-text {
    font-size: 1rem;
    line-height: 1.7;
    text-align: justify;
  }

  /* Contact Form Mobile */
  .contact-form-wrapper {
    padding: 2rem 1.5rem;
    margin-top: 2rem;
  }

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

  .form-group input,
  .form-group textarea {
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
  }

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

  /* Share Buttons Mobile */
  .share-section {
    margin-top: 2rem;
  }

  .share-btn {
    width: 45px;
    height: 45px;
  }

  .share-btn svg {
    width: 20px;
    height: 20px;
  }

  /* Footer */
  .site-footer {
    padding: 1.5rem 0;
    margin-top: 3rem;
  }

  .site-footer p {
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {

  /* Extra small screens */
  .hero-text h1 {
    font-size: 1.5rem;
  }

  .profile-img-wrap {
    width: 200px;
    height: 200px;
  }

  .stat-inline-item h4 {
    font-size: 1.75rem;
  }

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

  .nav-actions .btn.ghost {
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    /* Keep language toggle visible but compact */
  }

  .btn.primary {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
  }
}

/* RTL Mobile Adjustments */
[dir="rtl"] .timeline::before {
  left: auto;
  right: 15px;
}

[dir="rtl"] .timeline-item {
  padding-left: 0;
  padding-right: 50px;
}

[dir="rtl"] .timeline-badge {
  left: auto;
  right: 0;
}