/* ===========================================
   Link Puerto Rico - Modern Liquid Glass Design
   Inspired by Apple's glassmorphism aesthetic
   =========================================== */

/* CSS Variables for consistent theming */
:root {
  /* Brand Palette - Official Guidelines */
  --brand-blue: #009CD8;
  --brand-red: #FF0000;
  --brand-slate: #343636;
  --brand-blue-medium: #086A97;
  --brand-blue-navy: #0E2755;
  --brand-off-white: #F8F8F8;

  /* Primary Gradients & Gradients */
  --primary-gradient: linear-gradient(135deg, var(--brand-blue) 0%, #4facfe 100%);
  --accent-gradient: linear-gradient(135deg, var(--brand-red) 0%, #ff5e62 100%);
  --dark-gradient: linear-gradient(180deg, #050510 0%, var(--brand-blue-navy) 50%, #0a0a15 100%);
  --gradient-text: linear-gradient(135deg, var(--brand-blue) 0%, #4facfe 100%);

  /* Primary Brand Colors */
  --primary-color: var(--brand-blue);
  --link-blue: var(--brand-blue);
  --link-red: var(--brand-red);

  /* Glass Colors - More subtle and premium */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-bg-light: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);

  /* Text Colors */
  --text-white: #ffffff;
  --text-light: rgba(255, 255, 255, 0.95);
  --text-muted: rgba(255, 255, 255, 0.65);
  --text-dark: var(--brand-slate);

  /* Sizing */
  --nav-height: 90px;
  --section-padding: clamp(80px, 12vw, 140px);
  --container-max: 1240px;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  --transition-slow: 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Scroll Progress Bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 4px;
  background: var(--primary-gradient);
  z-index: 2000;
  transition: width 0.1s ease-out;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:focus-visible,
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.lang-btn:focus-visible,
.menu-toggle:focus-visible {
  outline: 2px solid var(--link-blue);
  outline-offset: 2px;
}

section:focus {
  outline: none;
}

body {
  font-family: 'Roboto', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--dark-gradient);
  color: var(--text-light);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  letter-spacing: -0.01em;
}

body.menu-open {
  overflow: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-white);
}

h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
}

h2 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

h4 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
  font-size: 1.125rem;
  color: var(--text-muted);
  font-weight: 400;
}

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

/* Container */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
}

/* ===========================================
   Glass Effect Components
   =========================================== */

.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
}

.glass-card {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(40px);
  backdrop-filter: blur(40px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--glass-shadow);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

.glass-card:hover,
.glass-card:focus-within {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--glass-bg-light);
}

/* ===========================================
   Navigation
   =========================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background var(--transition-smooth), backdrop-filter var(--transition-smooth), height var(--transition-smooth);
}

.navbar.scrolled {
  background: rgba(5, 5, 16, 0.8);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  height: 70px;
}

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

.navbar-brand img {
  height: 40px;
  width: auto;
  transition: height var(--transition-smooth);
}

.navbar-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.navbar-menu a {
  padding: 8px 16px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text-muted);
  position: relative;
}

.navbar-menu a:not(.navbar-cta):hover,
.navbar-menu a:not(.navbar-cta).active {
  color: var(--text-white);
}

.navbar-menu a:not(.navbar-cta)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 1px;
  background: var(--text-white);
  transition: all var(--transition-fast);
  transform: translateX(-50%);
}

.navbar-menu a:not(.navbar-cta):hover::after,
.navbar-menu a:not(.navbar-cta).active::after {
  width: 20px;
}

.navbar-cta {
  background: var(--text-white);
  color: var(--text-dark) !important;
  padding: 10px 24px !important;
  font-weight: 600 !important;
}

.navbar-cta:hover {
  transform: scale(1.02);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
  background: white;
}

/* Language Toggle */
.lang-toggle-container {
  display: flex;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  padding: 4px;
  gap: 4px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-btn.active {
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--text-white);
}

/* Spinner Animation */
@keyframes spin {
  to { transform: rotate(360deg); }
}

.spinner {
  animation: spin 1s linear infinite;
}

.lang-btn:hover:not(.active) {
  color: var(--text-white);
}

/* ===========================================
   Hero Section
   =========================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: var(--nav-height) 0 80px;
  overflow: hidden;
  background: linear-gradient(-45deg, #050510, #1a1a2e, #16213e, #0f3460);
  background-size: 400% 400%;
  animation: liquid-bg 15s ease infinite;
}

@keyframes liquid-bg {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Glass Shapes for Hero */
.hero-shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  z-index: 0;
  pointer-events: none;
}

.shape-1 {
  width: 300px;
  height: 300px;
  top: 10%;
  left: -5%;
  animation: float 8s ease-in-out infinite;
}

.shape-2 {
  width: 400px;
  height: 400px;
  bottom: 0%;
  right: -10%;
  animation: float 10s ease-in-out infinite reverse;
}

.shape-3 {
  width: 150px;
  height: 150px;
  top: 40%;
  right: 15%;
  animation: float 6s ease-in-out infinite 1s;
}

.hero-content {
  text-align: center;
  max-width: 900px;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.hero h1 {
  margin-bottom: 24px;
  line-height: 1.05;
}

.gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.hero-subtitle {
  font-size: 1.35rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 56px;
  line-height: 1.5;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 36px;
  border-radius: 50px;
  font-weight: 500;
  font-size: 1.05rem;
  cursor: pointer;
  border: none;
  transition: all var(--transition-smooth);
  letter-spacing: -0.01em;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(0, 156, 216, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--text-white);
  border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ===========================================
   Stats Section
   =========================================== */

.stats {
  padding: 80px 0;
  position: relative;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-item {
  text-align: center;
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.stat-number {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  background: linear-gradient(to bottom, #fff, rgba(255, 255, 255, 0.5));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* ===========================================
   Services Section (Icons Fixed)
   =========================================== */

.services {
  padding: var(--section-padding) 0;
}

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

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.25rem;
  font-weight: 300;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.service-card {
  text-align: center;
  padding: 48px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Center horizontally */
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 32px;
  /* Center with auto margins */
  display: flex !important;
  /* Force flex */
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  font-size: 2.5rem;
  border: 1px solid var(--glass-border);
}

.service-card h3 {
  margin-bottom: 16px;
  font-size: 1.5rem;
}

.service-card p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* Featured Services (Software & Consulting) */
.featured-services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.featured-service {
  padding: 56px 40px;
  position: relative;
  overflow: hidden;
}

.featured-tag {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 32px;
  color: var(--text-white);
}

.featured-service h3 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.featured-service ul {
  list-style: none;
  margin-top: 32px;
}

.featured-service li {
  padding: 16px 0;
  padding-left: 32px;
  position: relative;
  color: var(--text-muted);
  border-bottom: 1px solid var(--glass-border);
  font-size: 1.05rem;
}

.featured-service li:last-child {
  border-bottom: none;
}

.featured-service li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--text-white);
  font-weight: 300;
}

/* ===========================================
   Donation Section
   =========================================== */

.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--glass-border), transparent);
  margin: 0 auto;
  position: relative;
}

.section-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: var(--brand-blue);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--brand-blue);
}

.donate-section {
  padding: 80px 0 var(--section-padding);
}

.donate-card {
  background: linear-gradient(135deg, rgba(79, 172, 254, 0.1) 0%, rgba(240, 147, 251, 0.1) 100%);
  backdrop-filter: blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 40px;
  padding: 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.donate-card h2 {
  font-size: 3rem;
  margin-bottom: 24px;
}

.donate-card p {
  max-width: 600px;
  margin: 0 auto 40px;
  font-size: 1.25rem;
}

/* Impact Card Variant */
.glass-card-impact {
  padding: 64px;
  text-align: center;
}

.glass-card-impact p {
  max-width: 800px;
  margin: 24px auto;
  font-size: 1.35rem;
  line-height: 1.8;
  font-weight: 300;
}

/* ===========================================
   Team Section
   =========================================== */

.team {
  padding: 100px 0;
  position: relative;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.team-card {
  text-align: center;
  padding: 40px 30px;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

.team-card:focus-within {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--glass-bg-light);
}

.team-card:focus-within {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--glass-bg-light);
}

.team-card:focus-within .team-photo {
  transform: scale(1.05);
  border-color: var(--primary-color);
  filter: grayscale(0%);
}

.team-card:focus-within .team-social {
  opacity: 1;
}

.team-photo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 24px;
  border: 4px solid rgba(255, 255, 255, 0.1);
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), filter var(--transition-smooth);
  filter: grayscale(100%);
  /* Moved from inline style */
}

.team-card:hover .team-photo,
.team-card:focus-within .team-photo {
  transform: scale(1.05);
  border-color: var(--link-blue);
  filter: grayscale(0%);
}

.team-card h4 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--text-white);
}

.team-card .role {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 16px;
  opacity: 0.7;
  transition: opacity var(--transition-smooth);
}

.team-card:hover .team-social,
.team-card:focus-within .team-social {
  opacity: 1;
}

.team-social a img {
  width: 20px;
  height: 20px;
  filter: invert(1);
  transition: transform var(--transition-fast);
}

.team-social a:hover img {
  transform: translateY(-3px);
}

/* ===========================================
   Partners Section
   =========================================== */

.partners {
  padding: 100px 0;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--glass-border);
}

.partners h2 {
  text-align: center;
  margin-bottom: 24px;
  font-size: 3rem;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.2em;
  /* Prevent descender clipping */
}

.partners .section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto 60px;
  letter-spacing: 0.5px;
}

.partners-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.partner-logo {
  width: 180px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  transition: all var(--transition-smooth);
}

.partner-logo:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(76, 201, 240, 0.15);
  border-color: rgba(76, 201, 240, 0.3);
}

.partner-logo img {
  max-width: 100%;
  max-height: 100%;
  filter: brightness(0) invert(1);
  opacity: 0.6;
  transition: all var(--transition-smooth);
  object-fit: contain;
}

.partner-logo:hover img {
  opacity: 1;
  filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
  transform: scale(1.1);
}

/* ===========================================
   Contact Section
   =========================================== */

.spinner {
  animation: spin 1s linear infinite;
  margin-left: 8px;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

.contact-section {
  padding: 120px 0;
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 60px;
  align-items: start;
}

.contact-form-card {
  padding: 56px;
  background: rgba(255, 255, 255, 0.03);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 32px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

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

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-light);
  letter-spacing: 0.03em;
  opacity: 0.9;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 16px 20px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  color: var(--text-white);
  font-family: inherit;
  font-size: 1.05rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.25);
  font-weight: 300;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(79, 172, 254, 0.6);
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 0 4px rgba(79, 172, 254, 0.15);
  transform: translateY(-2px);
}

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

.contact-submit {
  width: 100%;
  margin-top: 12px;
  font-size: 1.1rem;
  padding: 20px 40px;
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  border: none;
  font-weight: 600;
  color: #000;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(79, 172, 254, 0.4);
}

.contact-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Spinner Animation */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.spinner {
  animation: spin 1s linear infinite;
  display: inline-block;
  margin-right: 8px;
}

/* Success State */
.contact-success {
  text-align: center;
  padding: 60px 20px;
}

.success-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(79, 172, 254, 0.1);
  border-radius: 50%;
  font-size: 3.5rem;
  color: #4facfe;
  border: 1px solid rgba(79, 172, 254, 0.3);
  box-shadow: 0 0 30px rgba(79, 172, 254, 0.2);
}

.contact-success h3 {
  margin-bottom: 16px;
  font-size: 2rem;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.contact-success p {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Contact Info Cards */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-item {
  padding: 32px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 24px;
  transition: all 0.3s ease;
}

.contact-info-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
}

.contact-info-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.contact-info-item h4 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--text-white);
}

.contact-info-item a {
  color: #4facfe;
  font-size: 1.1rem;
  transition: color var(--transition-fast);
  text-decoration: none;
}

.contact-info-item a:hover {
  color: #00f2fe;
  text-decoration: underline;
  text-decoration-color: rgba(0, 242, 254, 0.3);
}

.contact-info-item p {
  font-size: 1.1rem;
  color: var(--text-muted);
}

.contact-social-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 8px;
}

.contact-social-links a {
  color: var(--text-white);
  font-size: 0.9rem;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  text-decoration: none;
}

.contact-social-links a:hover {
  background: var(--text-white);
  color: #000;
  border-color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.15);
}

/* ===========================================
   Footer
   =========================================== */

.footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.2);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 64px;
  margin-bottom: 64px;
}

.footer-brand img {
  height: 40px;
  margin-bottom: 24px;
  opacity: 0.9;
}

.footer-links h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
  color: var(--text-white);
  opacity: 0.9;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 16px;
}

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

.footer-links a:hover {
  color: var(--text-white);
}

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

/* ===========================================
   Responsive Design
   =========================================== */

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .featured-services {
    grid-template-columns: 1fr;
  }

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

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

  .contact-info {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .contact-info-item {
    flex: 1;
    min-width: 200px;
  }
}

body.menu-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  :root {
    --section-padding: 80px;
    --nav-height: 70px;
  }

  .navbar-menu {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    flex-direction: column;
    background: #0a0a15;
    padding: 24px;
    border-bottom: 1px solid var(--glass-border);
    gap: 16px;
  }

  .navbar-menu.active {
    display: flex;
  }

  .navbar-menu a {
    width: 100%;
    text-align: center;
    padding: 12px;
  }

  /* Mobile Menu Styles */
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
    background: none;
    border: none;
    padding: 0;
  }

  .menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-white);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

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

  .menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .navbar-menu {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(5, 5, 16, 0.95);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
  }

  .navbar-menu.active {
    transform: translateX(0);
  }

  .navbar-menu a {
    font-size: 1.5rem;
  }

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

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

  .donate-card {
    padding: 40px 24px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand {
    align-items: center;
    display: flex;
    flex-direction: column;
  }

  .footer-social {
    justify-content: center;
  }

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

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

  .contact-section {
    padding: 80px 0;
  }

  .contact-info {
    flex-direction: column;
  }

  .lang-toggle-container {
    margin-top: 16px;
  }
}

@media (max-width: 480px) {
  .hero-content {
    padding: 0 20px;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .btn {
    width: 100%;
  }

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

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ===========================================
   Animations & Effects
   =========================================== */

/* Spinner utility */
.spinner {
  animation: spin 1s linear infinite;
  display: inline-block;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Intersection Observer Animations */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Floating Animation */
@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

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

.floating {
  animation: float 6s ease-in-out infinite;
}

/* Glow Effect */
.glow {
  position: relative;
}

.glow::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: inherit;
  filter: blur(40px);
  opacity: 0.3;
  z-index: -1;
}

/* Particle Background */
#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}

/* ===========================================
   Language Transition Animation (Liquid Fade)
   =========================================== */

@keyframes liquid-fade {
  0% {
    opacity: 1;
    filter: blur(0);
  }

  50% {
    opacity: 0;
    filter: blur(10px);
    transform: scale(0.98);
  }

  100% {
    opacity: 1;
    filter: blur(0);
  }
}

.lang-switching main,
.lang-switching section,
.lang-switching .navbar,
.lang-switching .footer {
  animation: liquid-fade 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* Liquid Glass Shimmer Effect (Subtle) */
@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  background: linear-gradient(105deg,
      transparent 20%,
      rgba(255, 255, 255, 0.03) 40%,
      rgba(255, 255, 255, 0.05) 50%,
      rgba(255, 255, 255, 0.03) 60%,
      transparent 80%);
  background-size: 200% 100%;
  animation: shimmer 15s infinite linear;
  /* Slower */
  pointer-events: none;
  z-index: 1;
  opacity: 0.6;
  /* Reduced visibility */
}

.glass-card:hover::before {
  animation-duration: 5s;
  /* Faster on hover */
  opacity: 1;
}
/* Skip Link for Accessibility */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--text-white);
  color: var(--text-dark);
  padding: 12px 20px;
  z-index: 9999;
  transition: top 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  font-weight: 600;
  border-radius: 0 0 8px 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.skip-link:focus {
  top: 0;
  outline: 2px solid var(--link-blue);
  outline-offset: -2px;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text-white);
  cursor: pointer;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

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

.back-to-top:hover {
  background: var(--text-white);
  color: var(--text-dark);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

.back-to-top:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.5);
}

@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
  }
}

/* ===========================================
   Language Switching Logic (Performance optimized)
   =========================================== */
html[lang="es"] .lang-en,
html[lang="en"] .lang-es {
  display: none !important;
}

html[lang="es"] .lang-es,
html[lang="en"] .lang-en {
  display: inline-block; /* or whatever the default was */
}

/* Active Language Button state based on html[lang] */
html[lang="es"] .lang-btn:nth-child(1),
html[lang="en"] .lang-btn:nth-child(2) {
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: var(--text-white);
}

/* ===========================================
   Spinner Animation
   =========================================== */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
