:root {
  --bg: #0a141f;
  --bg-deep: #060d15;
  --panel: #0f1d2c;
  --panel-2: #122236;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #e8eef4;
  --muted: #7d93a6;
  --muted-2: #5a6f80;
  --accent: #4fd6ff;
  --accent-dim: rgba(79, 214, 255, 0.14);
  --lime: #d8ff5c;
  --orange: #ff7a45;
  --nav-blue-active: #2f6fe0;
  --radius: 18px;
  --radius-sm: 10px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--text);
  font-family:
    "Montserrat",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  max-width: 100%;
  display: block;
}
::selection {
  background: var(--accent);
  color: #04131c;
}

/* ---------- Layout shell ---------- */
.shell {
  display: grid;
  grid-template-columns: 310px 1fr;
  min-height: 100vh;
  max-width: 1600px;
  margin: 0 auto;
}
@media (max-width: 960px) {
  .shell {
    grid-template-columns: 1fr;
  }
}

/* ---------- Sidebar ---------- */
.sidebar {
  background: var(--bg);
  border-right: 1px solid var(--line);
  padding: 12px 22px;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 22px;
  overflow-y: auto;
  scrollbar-width: none;
}
.sidebar::-webkit-scrollbar {
  display: none;
}
@media (max-width: 960px) {
  .sidebar {
    position: relative;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
}
.brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.profile-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  width: 100%;
  margin-bottom: 24px;
  padding: 18px;
}
.sidebar-me-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.sidebar-me-inner .img-box {
  width: 150px;
  height: 150px;
  border-radius: 18px;
  flex-shrink: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
}
.sidebar-me-inner .img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.sidebar-me-inner .content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2px;
}
.sidebar-me-inner .content h3,
.sidebar-me-inner .content p {
  margin: 0;
  line-height: 1.2;
}
.sidebar-me-inner .content p {
  color: var(--muted);
  font-size: 13px;
}

.sidebar-menu {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
}
.menu-lists ul,
.social-links {
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu-lists li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.menu-lists li:last-child {
  border-bottom: none;
}
.menu-parent {
  display: flex;
  align-items: stretch;
}
.menu-parent > a {
  flex: 1;
}
.menu-lists a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  background: #0a1826;
  color: #eaf2ff;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.menu-lists ul li.active-menu a {
  background: linear-gradient(
    -90deg,
    rgba(0, 170, 255, 0.04) 0%,
    rgba(0, 170, 255, 0.02) 100%
  );
  border: 0px solid rgba(251, 251, 251, 0.05);
  color: #ffffff;
}
.submenu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  flex-shrink: 0;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  background: #0a1826;
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    transform 0.2s ease;
}
.submenu-toggle:hover,
.has-submenu.is-open .submenu-toggle {
  background: #0a1826;
  color: var(--accent);
}
.submenu-toggle i {
  transition: transform 0.2s ease;
}
.has-submenu.is-open .submenu-toggle i {
  transform: rotate(180deg);
}
.submenu {
  display: none;
  background: rgba(6, 13, 21, 0.7);
}
.has-submenu.is-open .submenu {
  display: block;
}
.submenu li {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}
.menu-lists .submenu a {
  min-height: 42px;
  padding: 10px 16px 10px 50px;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
}
.menu-lists .submenu a:hover,
.menu-lists .submenu a:focus-visible,
.menu-lists .submenu li.active-menu a {
  background: var(--accent-dim);
  color: var(--accent);
}
.submenu-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  color: #00aaff;
  font-size: 20px;
}
.submenu-marker img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.menu-lists .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  color: #00aaff;
  font-size: 20px;
}
.menu-lists .title {
  flex: 1;
}
.sidebar-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted-2);
  font-size: 12px;
}
.social-links {
  display: flex;
  gap: 8px;
}
.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 20px;
  transition:
    border-color 0.15s ease,
    color 0.15s ease,
    background 0.15s ease;
}
.social-links a:hover,
.social-links a:focus-visible {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent);
}

/* ---------- Main ---------- */
main {
  padding: 28px 34px 60px;
  max-width: 1180px;
}
@media (max-width: 640px) {
  main {
    padding: 20px 16px 40px;
  }
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 7px 14px;
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 40px;
  margin-bottom: 22px;
}
.section-head p {
  color: var(--muted);
  font-size: 14px;
  max-width: 420px;
  margin: 0;
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr;
  gap: 16px;
  margin-bottom: 16px;
  height: 640px;
}
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 2fr;
  }
}

.hero-main {
  position: relative;
  overflow: hidden;
  background-color: var(--panel);
  background-image: url("../img/without\ wording.jpeg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: var(--radius);
  padding: 26px 26px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.hero-main::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: linear-gradient(
    100deg,
    rgba(5, 13, 22, 0.82) 0%,
    rgba(5, 13, 22, 0.54) 42%,
    rgba(5, 13, 22, 0.08) 100%
  );
}
.hero-main::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: repeating-linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.03) 0px,
    rgba(255, 255, 255, 0.03) 1px,
    transparent 1px,
    transparent 24px
  );
}
.hero-main > * {
  position: relative;
  z-index: 1;
}

.hero-main .hero-title {
  font-size: clamp(26px, 3vw, 34px);
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--nav-blue-active);
}
#typed-text {
  color: var(--accent);
}
.hero-main p {
  font-size: 14.5px;
  max-width: 46ch;
  margin: 0;
}
.hero-description p + p {
  margin-top: 0.8rem;
}
.typing-cursor {
  display: inline-block;
  width: 3px;
  height: 0.82em;
  margin-left: 8px;
  vertical-align: -0.04em;
  background: var(--accent);
  animation: typingCursorBlink 0.8s steps(1, end) infinite;
}
@keyframes typingCursorBlink {
  50% {
    opacity: 0;
  }
}
.btn {
  padding: 11px 20px;
  border-radius: 100px;
  font-size: 13.5px;
  font-weight: 600;
  border: 1px solid var(--line-strong);
  cursor: pointer;
}
.btn-solid {
  background: var(--accent);
  color: #03131c;
  border-color: var(--accent);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
}
.btn-ghost:hover {
  background: var(--panel-2);
}

/* ---------- About / Skills / Resume ---------- */
.panel-block {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.about-text {
  color: var(--muted);
  font-size: 15px;
  max-width: 90ch;
  margin: 0 0 30px;
}
.about-list {
  margin: 0 0 1rem;
  padding-left: 1.5rem;
}
.about-list li {
  padding-left: 0.25rem;
}

/* .subhead {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.subhead::before {
  content: "";
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: var(--accent);
  display: inline-block;
} */

.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px 34px;
  margin-bottom: 40px;
}
@media (max-width: 700px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
}
.skill-item {
  margin-bottom: 18px;
}
.skill-item:last-child {
  margin-bottom: 0;
}
.skill-top {
  display: flex;
  justify-content: space-between;
  font-size: 13.5px;
  margin-bottom: 7px;
}
.skill-top span:last-child {
  color: var(--accent);
  font-weight: 700;
}
.skill-bar {
  height: 7px;
  border-radius: 6px;
  background: var(--panel-2);
  overflow: hidden;
}
.skill-fill {
  height: 100%;
  width: 0;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--lime), var(--accent));
  transition: width 1.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.resume-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 700px) {
  .resume-grid {
    grid-template-columns: 1fr;
  }
}
.resume-panel {
  position: relative;
  overflow: hidden;
  padding: 18px 14px 8px;
  border: 1px solid var(--line);
  background: linear-gradient(
    160deg,
    rgba(15, 29, 44, 0.72),
    rgba(6, 13, 21, 0.72)
  );
}
.resume-heading {
  display: inline-block;
  margin: 0 0 28px;
  padding: 13px 24px;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  text-transform: capitalize;
}
.resume-entry {
  display: grid;
  grid-template-columns: 10px 76px minmax(0, 1fr);
  align-items: start;
  gap: 22px;
  position: relative;
  min-height: 128px;
  padding: 16px 0;
}
.resume-entry:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 27px;
  bottom: -28px;
  width: 1px;
  border-left: 1px dashed rgba(79, 214, 255, 0.34);
}
.resume-marker {
  align-self: start;
  position: relative;
  display: block;
  width: 10px;
  height: 10px;
  margin-top: 37px;
  background: var(--muted);
  z-index: 1;
}
/* .resume-entry:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 32px;
  bottom: -20px;
  width: 0;
  border-left: 1px dashed rgba(79, 214, 255, 0.34);
}
.resume-marker {
  position: absolute;
  left: 0;
  top: 20px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px var(--accent-dim);
  z-index: 1;
} */
.resume-entry-content {
  min-width: 400px;
}

.resume-entry-content ul {
  padding-left: 20px;
}
.resume-date {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}
.resume-entry h6 {
  margin: 0 0 4px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.25;
}
.resume-entry li {
  margin: 0;
  padding-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.resume-entry p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.certifications-block {
  margin-top: 56px;
}
.certifications-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.certifications-heading .subhead {
  margin: 8px 0 0;
}
.certifications-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.certification-card {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  min-height: 180px;
  padding: 22px 20px 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(
    145deg,
    rgba(15, 29, 44, 0.78),
    rgba(6, 13, 21, 0.78)
  );
  transition:
    border-color 180ms ease,
    transform 180ms ease;
}
.certification-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}
.certification-icon {
  position: absolute;
  top: 20px;
  right: 20px;
  color: rgba(79, 214, 255, 0.55);
  font-size: 25px;
}
.certification-content {
  grid-column: 1 / -1;
  padding-right: 34px;
}
.certification-card h4 {
  max-width: 40ch;
  margin: 0 0 9px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.25;
}
.certification-issuer,
.certification-description {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.certification-description {
  margin-top: 12px;
}
.publication-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  padding: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(
    145deg,
    rgba(15, 29, 44, 0.78),
    rgba(6, 13, 21, 0.78)
  );
}
.publication-year,
.publication-type {
  color: var(--lime);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}
.publication-content h3 {
  max-width: 25ch;
  margin: 0 0 7px;
  color: var(--text);
  font-size: clamp(20px, 2.5vw, 27px);
  line-height: 1.15;
}
.publication-source,
.publication-author,
.publication-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}
.publication-source {
  font-weight: 600;
}
.publication-author {
  margin-top: 4px;
  color: var(--text);
  font-size: 13px;
}
.publication-description {
  max-width: 75ch;
  margin-top: 10px;
  font-size: 13px;
}
.publication-year-bottom {
  margin-top: 14px;
}
@media (max-width: 760px) {
  .publication-card {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 18px;
  }
}
@media (max-width: 760px) {
  .certifications-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .certifications-heading {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }
}
@media (max-width: 560px) {
  .resume-entry {
    grid-template-columns: 10px 58px minmax(0, 1fr);
    gap: 14px;
  }
  .resume-entry h6 {
    font-size: 14px;
  }
  .resume-marker {
    margin-top: 35px;
  }
}

/* ---------- Grids ---------- */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 640px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ---------- Project Portfolio: filter gallery ---------- */
.filter-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.eael-filter-gallery-control {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--muted);
  padding: 9px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
}
.eael-filter-gallery-control:hover {
  color: var(--text);
}
.eael-filter-gallery-control.is-active {
  background: var(--accent);
  color: #04131c;
  border-color: var(--accent);
}

.eael-filter-gallery-container.eael-filter-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 760px) {
  .eael-filter-gallery-container.eael-filter-gallery-grid {
    grid-template-columns: 1fr;
  }
}
.filter-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 260px;
  background-color: var(--panel-2);
  background-image:
    linear-gradient(150deg, rgba(28, 47, 66, 0.28), rgba(10, 20, 31, 0.38)),
    url("../img/Slider_img-1-1-768x409.jpeg");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}
.filter-item.hidden {
  display: none;
}
.filter-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(4, 9, 15, 0.62) 5%,
    rgba(4, 9, 15, 0.08) 55%,
    transparent 85%
  );
}
.filter-item-body {
  position: relative;
  z-index: 1;
  padding: 22px;
}
.filter-item-body h3 {
  margin: 0 0 6px;
  font-size: 19px;
}
.filter-item-body p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 13px;
  max-width: 34ch;
}
.filter-icons {
  display: flex;
  gap: 10px;
}
.filter-icons a,
.filter-icons button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  border: 0;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
}
.filter-icons a:hover,
.filter-icons button:hover {
  background: var(--accent);
  color: #04131c;
  transform: translateY(-2px);
}
.project-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.project-modal.is-open {
  display: flex;
}
.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 14, 0.82);
  backdrop-filter: blur(5px);
}
.project-modal-content {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  padding: 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}
.project-modal-content img {
  width: 100%;
  max-height: 70vh;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.project-modal-content h2 {
  margin: 14px 4px 4px;
  font-size: 18px;
}
.project-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(6, 13, 21, 0.75);
  color: #fff;
  cursor: pointer;
}
.project-modal-close:hover {
  background: var(--accent);
  color: #04131c;
}

/* ---------- Events ---------- */
.event-card {
  display: flex;
  gap: 16px;
  align-items: flex-start; /* Tarix qutusu ilə məzmunun yuxarıdan düzülməsi üçün */
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}

.event-date {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: var(--panel-2);
  border: 1px solid var(--line-strong);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.event-date .d {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.event-date .m {
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

.event-body {
  display: flex;
  flex-direction: column;
  max-width: 100%;
  min-width: 0; /* Flexbox daxilində daşmanın qarşısını almaq üçün vacibdir */
}

.event-body h3 {
  margin: 0 0 4px;
  font-size: 15.5px;
}

.event-body p {
  color: var(--muted);
  font-size: 12.5px;
  margin: 0 0 10px 0; /* Link ilə mətn arasında boşluq */
  word-break: break-word; /* Uzun sözlərin aşağı sətirə düşməsini təmin edir */
  overflow-wrap: break-word;
}

.event-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  width: fit-content;
}

.event-link:hover {
  text-decoration: underline;
  opacity: 0.85;
}
/* .event-card {
  display: flex;
  gap: 16px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.event-date {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: var(--panel-2);
  border: 1px solid var(--line-strong);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.event-date .d {
  font-size: 20px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}
.event-date .m {
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.05em;
}
.event-body h3 {
  margin: 0 0 4px;
  font-size: 15.5px;
}
.event-body p {
  color: var(--muted);
  font-size: 12.5px;
} */

/* ---------- Social pages ---------- */
.social-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.social-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
}

/* Mətnlərin daşmasının qarşısını alan hissə */
.social-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  min-width: 0;
}

.social-card h3 {
  margin: 0 0 2px;
  font-size: 15px;
  color: var(--text);
}

.social-card span {
  color: var(--muted);
  font-size: 12.5px;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Artıq <a> tagi olan sağ hissənin dizaynı */
.social-action {
  margin-left: auto;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--panel-2, transparent);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-action:hover {
  background: var(--accent-dim);
  color: var(--accent);
  transform: scale(1.05);
}
/* .social-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.social-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  flex-shrink: 0;
}
.social-card h3 {
  margin: 0 0 2px;
  font-size: 15px;
}
.social-card span {
  color: var(--muted);
  font-size: 12.5px;
}
.social-card .followers {
  margin-left: auto;
  text-align: right;
  flex-shrink: 0;
}
.social-card .followers b {
  display: block;
  font-size: 16px;
  color: var(--text);
}
.social-card .followers small {
  color: var(--muted);
  font-size: 11px;
} */

/* ---------- Testimonials ---------- */
.slideshow-container {
  position: relative;
  max-width: 1000px;
  margin: auto;
  overflow: hidden;
}
.mySlides {
  display: none;
  padding: 40px;
  text-align: center;
}
.mySlides h2 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.mySlides .text {
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 15px;
  font-style: italic;
  line-height: 1.6;
  max-width: 60ch;
  margin-inline: auto;
}
.mySlides .designation {
  margin: 14px 0 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  font-style: normal;
}
.fade {
  animation-name: fade;
  animation-duration: 1.5s;
}
@keyframes fade {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}
.slideshow-container .testimonial-prev,
.slideshow-container .testimonial-next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  margin-top: -22px;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 18px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  background-color: rgba(0, 0, 0, 0.3);
  border: 0;
}
.slideshow-container .testimonial-next {
  right: 0;
  border-radius: 3px 0 0 3px;
}
.slideshow-container .testimonial-prev:hover,
.slideshow-container .testimonial-next:hover,
.slideshow-container .testimonial-prev:focus-visible,
.slideshow-container .testimonial-next:focus-visible {
  background-color: rgba(0, 0, 0, 0.8);
}
.testimonial-dots {
  text-align: center;
}
.testimonial-dots .dot {
  cursor: pointer;
  height: 13px;
  width: 13px;
  margin: 0 2px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}
.testimonial-dots .dot.active,
.testimonial-dots .dot:hover {
  background-color: #717171;
}

/* ---------- Contact ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
}
.contact-wrap form,
.contact-wrap form input,
.contact-wrap form textarea,
.contact-wrap form button {
  font-family: "Montserrat", sans-serif;
}
@media (max-width: 800px) {
  .contact-wrap {
    grid-template-columns: 1fr;
  }
}
.field {
  margin-bottom: 14px;
}
.field label {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 6px;
}
.field input,
.field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: 1px solid var(--accent);
  border-color: var(--accent);
}
.contact-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contact-line {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.contact-line .icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--panel-2);
  border: 1px solid var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 15px;
}
.contact-line h5 {
  margin: 0 0 3px;
  font-size: 14px;
}
.contact-line span {
  color: var(--muted);
  font-size: 12.5px;
}
.contact-map {
  margin-top: 16px;
  padding: 8px;
  overflow: hidden;
}
.contact-map iframe {
  display: block;
  width: 100%;
  min-height: 280px;
  border: 0;
  border-radius: var(--radius-sm);
  filter: grayscale(0.2) contrast(0.95);
}

section {
  margin-top: 56px;
}
section:first-of-type {
  margin-top: 0;
}

footer {
  margin-top: 60px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted-2);
  font-size: 12.5px;
}
.back-to-top {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: color 0.2s ease;
}
.back-to-top:hover,
.back-to-top:focus-visible {
  color: var(--accent);
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--accent);
  color: #04131c;
  padding: 12px 18px;
  border-radius: 100px;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 50;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}
.toast.error {
  background: #ff6b6b;
  color: #1c0808;
}

/* mobile nav toggle */
.nav-toggle {
  display: none;
  margin-left: auto;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}
.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #04131c;
}
@media (max-width: 960px) {
  .nav-toggle {
    display: flex;
  }
  .menu-lists {
    display: none;
    width: 100%;
    border-radius: var(--radius-sm);
    overflow: hidden;
  }
  .menu-lists.open {
    display: flex;
    flex-direction: column;
  }
  .menu-lists ul {
    width: 100%;
  }
  .menu-lists a {
    min-height: 48px;
  }
  .sidebar-collapsible {
    display: flex;
    flex-direction: column;
    gap: 22px;
  }
}

/* ---------- Service cards (Memberships) ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}
.service-card {
  background: linear-gradient(
    160deg,
    rgba(15, 29, 44, 0.72),
    rgba(6, 13, 21, 0.72)
  );
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px 28px;
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-card:hover {
  transform: translateY(-6px);
}
.service-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}
.service-card p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
  flex-grow: 1;
}
.service-card .tag {
  display: inline-block;
  align-self: flex-start;
  margin-top: 12px;
  padding: 6px 14px;
  background: var(--panel);
  color: var(--text);
  font-size: 12.5px;
  font-weight: 600;
  border-radius: 20px;
}

@media (max-width: 640px) {
  .service-card {
    padding: 24px 20px;
  }
}

/* ---------- Admin panel inteqrasiyası ---------- */
/* Məzmun yüklənənə qədər köhnə mətn görünməsin (maks. 2.5 san.) */
html.cl-pending main,
html.cl-pending .profile-card {
  opacity: 0;
}
main,
.profile-card {
  transition: opacity 0.25s ease;
}
/* Hero: paraqraflar arası məsafə əvvəlki kimi */
.hero-intro p {
  margin-top: 0.8rem;
}
/* Haqqında mətni paraqraflara bölündükdə */
.about-body p {
  margin: 0 0 1rem;
}
.about-closing {
  margin: 0;
}
/* Bacarıq adları böyük hərflə (əvvəlki görünüş) */
.skill-top span:first-child {
  text-transform: uppercase;
}
/* Filtr düymələri kateqoriya adlarından avtomatik yaranır */
.eael-filter-gallery-control {
  text-transform: uppercase;
}
.publication-card + .publication-card {
  margin-top: 18px;
}
.publication-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--accent);
  font-weight: 600;
}
.contact-line a.contact-value {
  color: var(--muted);
  font-size: 12.5px;
  text-decoration: none;
}
.contact-line a.contact-value:hover {
  color: var(--accent);
}
#contactForm button[disabled] {
  opacity: 0.6;
  cursor: wait;
}
