.section-header[data-aos] { opacity: 0; transform: translateY(30px); }
.section-header[data-aos].visible { opacity: 1; transform: translateY(0); }

.skill-bars-wrapper { display: none; }

.sw-panel { display: none; animation: none; }
.sw-panel.active { display: block; animation: fadeUp 0.4s ease; }
@keyframes fadeUp { from { opacity:0; transform: translateY(12px); } to { opacity:1; transform: translateY(0); } }

.cert-marquee-wrapper { display: none; }

.contact-section { position: relative; }
.contact-section::before {
  content: '🌸';
  position: absolute; top: 3rem; right: 3rem; font-size: 4rem; opacity: 0.08;
  animation: floatDrift 6s ease-in-out infinite;
  pointer-events: none;
}
.contact-section::after {
  content: '✿';
  position: absolute; bottom: 8rem; left: 2rem; font-size: 5rem; opacity: 0.06;
  animation: floatDrift 8s ease-in-out infinite reverse;
  pointer-events: none;
}

.sw-card:hover {
  box-shadow: 0 10px 30px rgba(195,99,141,0.15);
}

[data-aos]:nth-child(1) { transition-delay: 0ms; }
[data-aos]:nth-child(2) { transition-delay: 100ms; }
[data-aos]:nth-child(3) { transition-delay: 200ms; }
[data-aos]:nth-child(4) { transition-delay: 300ms; }

@keyframes floatDrift {
  0%,100% { transform: translate(0,0) rotate(0deg); }
  33% { transform: translate(8px,-12px) rotate(8deg); }
  66% { transform: translate(-6px,6px) rotate(-4deg); }
}

.nav-links a.active { color: var(--mauve); }
.nav-links a.active::after { width: 100%; }

@media (max-width: 768px) {
  .project-card-new {
    padding: 1.5rem;
    gap: 1.5rem;
  }
  .pcn-info h3 { font-size: 1.4rem; }
  .slider-btn {
    width: 36px;
    height: 36px;
    font-size: 0.75rem;
  }
  .slider-prev { left: -4px; }
  .slider-next { right: -4px; }
}

@media (min-width: 769px) {
  .cert-slide { min-width: calc(100% / 3); }
}
@media (min-width: 481px) and (max-width: 768px) {
  .cert-slide { min-width: 50%; }
}
@media (max-width: 480px) {
  .cert-slide { min-width: 100%; }
}

.contact-right-col {
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.contact-right-col .contact-form-card {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.contact-wrapper {
  overflow: visible;
}

.contact-left-col {
  min-width: 0;
  width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.contact-info-card {
  overflow: hidden;
  word-break: break-word;
  box-sizing: border-box;
}

.contact-info-card p {
  white-space: normal;
  overflow-wrap: break-word;
  word-break: break-word;
}

@media (max-width: 768px) {
  .contact-info-card {
    width: 100%;
    max-width: 100%;
    padding: 1.5rem;
  }

  .contact-info-card p {
    font-size: 0.88rem;
    line-height: 1.65;
  }
}

body * { transition-property: background-color, border-color, color, box-shadow; transition-duration: 0.3s; }

.skill-card, .sw-card, .aqi-card, .etag, .sdock-item, .cert-card-new, .ast-card, .project-card-new, .btn-ghost, .btn-download, .btn-send, .theme-toggle, .audio-toggle, .sw-tab, .slider-btn {
  transition: all 0.35s cubic-bezier(0.16,1,0.3,1);
}
.lang-wrapper {
  position: relative;
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 40px;
  border-radius: 20px;
  padding: 0 12px;
  border: 2px solid rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.1);
  cursor: pointer;
  color: rgba(255,255,255,0.9);
  font-size: 0.8rem;
  transition: var(--transition, all 0.35s cubic-bezier(0.16,1,0.3,1));
}

.navbar.scrolled .lang-toggle {
  border-color: var(--border);
  background: var(--surface);
  color: var(--mauve);
}

.lang-toggle:hover {
  background: var(--mauve);
  color: white;
  border-color: var(--mauve);
}

.lang-flag {
  font-size: 1rem;
  line-height: 1;
}

.lang-chevron {
  font-size: 0.6rem;
  transition: transform 0.3s ease;
}

.lang-dropdown.open + .lang-chevron,
.lang-wrapper:has(.lang-dropdown.open) .lang-chevron {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.18);
  min-width: 155px;
  z-index: 9999;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.lang-dropdown.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.lang-item {
  padding: 9px 16px;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text);
  transition: background 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-item:hover {
  background: rgba(195,99,141,0.12);
  color: var(--mauve);
}

.lang-item.active {
  color: var(--mauve);
  font-weight: 700;
  background: rgba(195,99,141,0.12);
}

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

[dir="rtl"] .nav-links,
[dir="rtl"] .hero-content,
[dir="rtl"] .about-right,
[dir="rtl"] .contact-left-col,
[dir="rtl"] .contact-form-card {
  text-align: right;
}

[dir="rtl"] .about-tags {
  justify-content: flex-end;
}

[dir="rtl"] .hero-pills {
  justify-content: flex-end;
}

[dir="rtl"] .hero-stats {
  justify-content: flex-end;
}

[dir="rtl"] .hero-ctas {
  justify-content: flex-end;
}
