/* Aryan Conference — modern minimal redesign (no external font CDN) */
:root {
  --color-primary: #0b1f33;
  --color-primary-soft: #16324d;
  --color-secondary: #2563eb;
  --color-accent: #b8860b;
  --color-accent-soft: #d4a84b;
  --color-bg: #eef2f6;
  --color-surface: #ffffff;
  --color-fg: #0f172a;
  --color-muted: #64748b;
  --color-border: #d8e0ea;
  --color-live: #0f766e;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px rgba(11, 31, 51, 0.08);
  --shadow-hover: 0 24px 60px rgba(11, 31, 51, 0.14);
  --font-fa: "IRANSans", "Tahoma", sans-serif;
  --font-en: "IRANSans", "Tahoma", system-ui, sans-serif;
  --space: clamp(1.25rem, 3vw, 2.5rem);
  --container: min(1120px, calc(100% - 2.5rem));
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.ac-body {
  margin: 0;
  font-family: var(--font-fa);
  color: var(--color-fg);
  background:
    radial-gradient(1200px 600px at 90% -10%, rgba(37, 99, 235, 0.08), transparent 55%),
    radial-gradient(900px 500px at 0% 20%, rgba(184, 134, 11, 0.07), transparent 50%),
    linear-gradient(180deg, #f7f9fc 0%, var(--color-bg) 40%, #f4f7fb 100%);
  line-height: 1.75;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
a,
.ac-btn {
  cursor: pointer;
}

.ac-container {
  width: var(--container);
  margin-inline: auto;
}

/* —— Nav: transparent until scroll —— */
.ac-nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    background 0.28s var(--ease),
    border-color 0.28s var(--ease),
    box-shadow 0.28s var(--ease),
    backdrop-filter 0.28s var(--ease);
}

.ac-nav.is-scrolled,
.ac-nav.is-open {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--color-border);
  box-shadow: 0 8px 28px rgba(11, 31, 51, 0.08);
  backdrop-filter: blur(12px);
}

.ac-nav__inner {
  width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ac-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.ac-brand__logo {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 14px rgba(11, 31, 51, 0.12);
  transition: box-shadow 0.25s ease;
}

.ac-brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.ac-brand__fa {
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(52vw, 220px);
  transition: color 0.25s ease;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.25);
}

.ac-brand__en {
  font-family: var(--font-en);
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.78);
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(52vw, 240px);
  transition: color 0.25s ease;
}

.ac-nav.is-scrolled .ac-brand__fa,
.ac-nav.is-open .ac-brand__fa {
  color: var(--color-primary);
  text-shadow: none;
}

.ac-nav.is-scrolled .ac-brand__en,
.ac-nav.is-open .ac-brand__en {
  color: var(--color-muted);
}

.ac-nav__links {
  display: none;
  align-items: center;
  gap: 0.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.ac-nav__links a {
  display: inline-flex;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s ease, background 0.2s ease;
}

.ac-nav__links a:hover,
.ac-nav__links a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  outline: none;
}

.ac-nav.is-scrolled .ac-nav__links a,
.ac-nav.is-open .ac-nav__links a {
  color: var(--color-muted);
}

.ac-nav.is-scrolled .ac-nav__links a:hover,
.ac-nav.is-scrolled .ac-nav__links a:focus-visible,
.ac-nav.is-open .ac-nav__links a:hover,
.ac-nav.is-open .ac-nav__links a:focus-visible {
  color: var(--color-primary);
  background: rgba(11, 31, 51, 0.05);
}

.ac-nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ac-nav.is-scrolled .ac-nav__toggle,
.ac-nav.is-open .ac-nav__toggle {
  border-color: var(--color-border);
  background: var(--color-surface);
  color: var(--color-primary);
}

.ac-nav__toggle svg {
  width: 22px;
  height: 22px;
}

.ac-mobile-panel {
  display: none;
  position: absolute;
  inset-inline: 0;
  top: var(--nav-h);
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  padding: 0.35rem 1.25rem 1.1rem;
  box-shadow: var(--shadow);
}

.ac-mobile-panel.is-open {
  display: block;
}

.ac-mobile-panel a {
  display: block;
  padding: 0.9rem 0.35rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-fg);
  font-weight: 600;
}

.ac-mobile-panel a:last-child {
  border-bottom: 0;
}

@media (min-width: 860px) {
  .ac-nav__links {
    display: flex;
  }
  .ac-nav__toggle,
  .ac-mobile-panel {
    display: none !important;
  }
  .ac-brand__fa {
    max-width: 300px;
  }
  .ac-brand__en {
    max-width: 340px;
  }
}

@media (max-width: 480px) {
  :root {
    --nav-h: 64px;
  }
  .ac-brand__en {
    display: none;
  }
  .ac-brand__fa {
    font-size: 0.86rem;
  }
}

/* —— Hero —— */
.ac-hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.ac-hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.ac-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: ac-kenburns 22s var(--ease) infinite alternate;
}

@keyframes ac-kenburns {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-1.5%, -1%, 0);
  }
}

.ac-hero__veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(11, 31, 51, 0.35) 0%, rgba(11, 31, 51, 0.55) 42%, rgba(11, 31, 51, 0.88) 100%),
    radial-gradient(800px 400px at 80% 20%, rgba(212, 168, 75, 0.18), transparent 60%);
}

.ac-hero__content {
  width: var(--container);
  max-width: min(1200px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: calc(var(--nav-h) + 2rem) 0 4.5rem;
  color: #fff;
}

.ac-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 1.1rem;
}

.ac-kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--color-accent-soft);
}

.ac-hero__title {
  margin: 0 0 1rem;
  font-size: clamp(1.45rem, 3.2vw, 2.55rem);
  font-weight: 800;
  line-height: 1.55;
  max-width: 100%;
  text-wrap: pretty;
}

.ac-hero__sub {
  margin: 0 0 1.85rem;
  font-family: var(--font-en);
  font-size: clamp(0.92rem, 1.4vw, 1.12rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.78);
  max-width: 100%;
  line-height: 1.6;
  direction: ltr;
  text-align: right;
}

@media (min-width: 900px) {
  .ac-hero__content {
    max-width: min(1180px, calc(100% - 3.5rem));
  }

  .ac-hero__title {
    font-size: clamp(2rem, 2.6vw, 2.65rem);
    max-width: 46rem;
    line-height: 1.5;
  }

  .ac-hero__sub {
    max-width: 46rem;
    font-size: 1.12rem;
  }
}

@media (min-width: 1200px) {
  .ac-hero__title,
  .ac-hero__sub {
    max-width: 52rem;
  }
}

.ac-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ac-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s var(--ease), background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.ac-btn:focus-visible {
  outline: 2px solid var(--color-accent-soft);
  outline-offset: 3px;
}

.ac-btn--primary {
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.ac-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

.ac-btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(8px);
}

.ac-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.16);
}

.ac-btn--dark {
  background: var(--color-primary);
  color: #fff;
}

.ac-btn--dark:hover {
  background: var(--color-primary-soft);
  transform: translateY(-1px);
}

.ac-btn--outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-border);
}

.ac-btn--outline:hover {
  border-color: var(--color-primary);
  background: rgba(11, 31, 51, 0.04);
}

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

/* —— Sections —— */
.ac-section {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.ac-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.ac-section__title {
  margin: 0;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.02em;
}

.ac-section__desc {
  margin: 0.45rem 0 0;
  color: var(--color-muted);
  font-size: 0.98rem;
  max-width: 40ch;
}

.ac-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--color-muted);
  background: rgba(255, 255, 255, 0.55);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius);
}

/* —— Live strip —— */
.ac-live {
  margin-top: -2.75rem;
  position: relative;
  z-index: 2;
}

.ac-live__card {
  display: grid;
  gap: 1.5rem;
  background: var(--color-surface);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
}

@media (min-width: 900px) {
  .ac-live__card {
    grid-template-columns: 1.05fr 1.2fr;
    align-items: stretch;
  }
}

.ac-live__media {
  position: relative;
  min-height: 240px;
  background: #0b1f33;
}

.ac-live__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 240px;
}

.ac-live__badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.95);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

.ac-live__badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5eead4;
  box-shadow: 0 0 0 0 rgba(94, 234, 212, 0.7);
  animation: ac-pulse 1.6s ease infinite;
}

@keyframes ac-pulse {
  70% {
    box-shadow: 0 0 0 8px rgba(94, 234, 212, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(94, 234, 212, 0);
  }
}

.ac-live__body {
  padding: 1.5rem 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.ac-live__title {
  margin: 0;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.45;
}

.ac-live__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.ac-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--color-muted);
  font-size: 0.8rem;
}

.ac-chip svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.ac-live__text {
  margin: 0;
  color: #334155;
  font-size: 0.95rem;
  text-align: justify;
}

.ac-live__actions {
  margin-top: auto;
  padding-top: 0.5rem;
}

/* —— Conference grid —— */
.ac-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .ac-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .ac-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.ac-event {
  display: flex;
  flex-direction: column;
  background: var(--color-surface);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(216, 224, 234, 0.9);
  box-shadow: 0 8px 28px rgba(11, 31, 51, 0.04);
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s ease;
  height: 100%;
}

.ac-event:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(11, 31, 51, 0.18);
}

.ac-event__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #0b1f33;
}

.ac-event__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease);
}

.ac-event:hover .ac-event__media img {
  transform: scale(1.06);
}

.ac-event__body {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.15rem 1.15rem 1.3rem;
  flex: 1;
}

.ac-event__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.55;
  color: var(--color-primary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 4.65em;
}

.ac-event__excerpt {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.88rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.ac-event__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
  margin-top: 0.25rem;
}

.ac-event__isc {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--color-muted);
  font-size: 0.78rem;
}

.ac-event__isc img {
  width: 42px;
  height: auto;
}

.ac-event__cta {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* —— About —— */
.ac-about {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .ac-about {
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
  }
}

.ac-about__panel {
  background: linear-gradient(145deg, var(--color-primary) 0%, #16324d 55%, #0b2740 100%);
  color: #fff;
  border-radius: calc(var(--radius) + 6px);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  position: relative;
  overflow: hidden;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.ac-about__panel::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  right: -80px;
  bottom: -100px;
  background: radial-gradient(circle, rgba(212, 168, 75, 0.22), transparent 70%);
  pointer-events: none;
}

.ac-about__panel h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 800;
  position: relative;
  z-index: 1;
}

.ac-about__panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  text-align: justify;
  font-size: 0.98rem;
  position: relative;
  z-index: 1;
}

.ac-about__side {
  display: grid;
  gap: 1rem;
}

.ac-stat {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  transition: transform 0.25s var(--ease);
}

.ac-stat:hover {
  transform: translateY(-3px);
}

.ac-stat__label {
  margin: 0 0 0.35rem;
  color: var(--color-muted);
  font-size: 0.85rem;
}

.ac-stat__value {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-primary);
}

/* —— Contact / Footer —— */
.ac-footer {
  margin-top: 1rem;
  background: var(--color-primary);
  color: rgba(255, 255, 255, 0.86);
  padding: 3.5rem 0 1.75rem;
  position: relative;
  overflow: hidden;
}

.ac-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 300px at 10% 0%, rgba(37, 99, 235, 0.2), transparent 60%),
    radial-gradient(500px 260px at 100% 100%, rgba(184, 134, 11, 0.12), transparent 55%);
  pointer-events: none;
}

.ac-footer__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .ac-footer__grid {
    grid-template-columns: 1.4fr 1fr;
  }
}

.ac-footer h3 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  color: #fff;
}

.ac-footer p {
  margin: 0 0 1.25rem;
  text-align: justify;
  font-size: 0.95rem;
}

.ac-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.ac-social a {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  transition: background 0.2s ease, transform 0.2s ease;
}

.ac-social a:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.ac-social svg {
  width: 18px;
  height: 18px;
}

.ac-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.ac-contact-list a {
  color: rgba(255, 255, 255, 0.86);
  transition: color 0.2s ease;
}

.ac-contact-list a:hover {
  color: #fff;
}

.ac-footer__bottom {
  position: relative;
  z-index: 1;
  margin-top: 2.75rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

.ac-footer__bottom a,
.ac-footer__bottom .company-link {
  color: #fff;
  font-weight: 600;
  transition: color 0.2s ease;
}

.ac-footer__bottom a:hover,
.ac-footer__bottom .company-link:hover {
  color: var(--color-accent-soft);
}

.footer-area__copyright {
  margin: 0;
}

/* —— Reveal motion —— */
.ac-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.ac-reveal.is-in {
  opacity: 1;
  transform: none;
}

.ac-reveal-delay-1 {
  transition-delay: 0.08s;
}
.ac-reveal-delay-2 {
  transition-delay: 0.16s;
}
.ac-reveal-delay-3 {
  transition-delay: 0.24s;
}

.ac-grid .ac-event:nth-child(3n + 2).ac-reveal {
  transition-delay: 0.08s;
}
.ac-grid .ac-event:nth-child(3n + 3).ac-reveal {
  transition-delay: 0.16s;
}
