/* ==========================================
   1. БАЗОВЫЕ СТИЛИ (Typography & UI)
   ========================================== */

h1 {
  font-size: 64px;
  font-weight: 800;
  line-height: 1.2;
}

.display-hero {
  font-family: 'Fraunces', serif;
  font-size: 72px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--bs-body-color);
}

.H1-Heading {
  font-family: 'Fraunces', serif;
  font-size: 41px;
  font-weight: 600;
  line-height: 1.1;
  color: #3D3B40;
  margin-bottom: 20px;
}

.h2-title {
  font-family: 'Inter', sans-serif;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.28;
  color: #3D3B40;
}

.h3-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  color: #3D3B40;
}

.navbar, .navbar-brand, .nav-link, .navbar-text, .navbar .btn {
  font-family: 'Inter', sans-serif !important;
  border-style: none;
}

.navbar .nav-link:hover {
  color: var(--bs-primary) !important;
}

.body-main {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
  color: #3D3B40;
  margin-bottom: 20px;
}

.body-main-bold {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--bs-body-color);
}

.my-hero-btn, .my-second-btn, .my-third-btn, .my-four-btn {
  border-radius: 176px !important;
  min-width: 190px !important;
  padding: 10px 25px !important;
  transition: all 0.3s ease !important;
  display: inline-flex !important;
  justify-content: center;
  align-items: center;
  text-decoration: none !important;
  font-family: Inter, sans-serif;
  font-weight: bold;
  font-size: 16px;
}

.my-hero-btn {
  color: var(--bs-body-color);
  background: var(--bs-primary);
  border: 0px solid var(--bs-primary);
  height: 48px;
}

.my-second-btn {
  background: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

/* 3. Убираем системный синий/черный контур при клике (Focus) */

#tabs-years .nav-link:focus, #tabs-years .nav-link:focus-visible, #tabs-years .nav-link:active {
  outline: none !important;
  box-shadow: none !important;
  background-color: transparent !important;
  border-color: transparent !important;
}

/* 4. Если рамки нужны только при наведении (hover), добавь это: */

#tabs-years .nav-link:hover:not(.active) {
  border: 2px solid #d3e1fd !important;
  border-bottom: none !important;
}

/* 1. Обычные табы с твоим градиентом */

#tabs-years .nav-link {
  border-radius: 30px 30px 0 0 !important;
  margin: 0 2px;
  font-style: italic;
  transition: color 0.3s ease;
  border: 2px solid #d3e1fd;
  border-top-color: rgb(255,255,255);
  border-right-color: rgb(255,255,255);
  border-bottom-width: 0px;
  border-bottom-color: rgb(255,255,255);
  border-left-color: rgb(255,255,255);
  font-size: 14px;
}

/* 2. Активный таб: чистый текст, без фона и рамок */

#tabs-years .nav-link.active {
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  font-style: italic;
  box-shadow: none !important;
}

/* 3. Очистка системных стилей Bootstrap для активного состояния */

#tabs-years .nav-tabs .nav-link.active {
  background-color: transparent !important;
  border: none !important;
}

#tabs-years .tab-content {
  max-width: 900px;
  margin: 0 auto;
}

.my-third-btn {
  background: transparent;
  color: var(--bs-body-color);
  border: 2px solid var(--bs-body-color);
}

.my-four-btn {
  background: transparent;
  color: var(--bs-primary);
  border: 2px solid var(--bs-primary);
}

.my-four-btn:hover {
  background: var(--bs-link-color);
  color: #ffffff;
}

.my-five-btn {
  background: transparent !important;
  color: var(--bs-primary) !important;
  border: 2px solid var(--bs-primary) !important;
  font-family: Inter, sans-serif;
  font-weight: bold;
  border-radius: 168px;
  width: fit-content;
  display: inline-block !important;
  transition: all 0.3s ease-in-out !important;
}

/* Ролловер (эффект при наведении) */

.my-five-btn:hover {
  background-color: var(--bs-primary) !important;
  color: #ffffff !important;
  transform: scale(1.05);
}

.my-hero-btn:hover {
  background: var(--bs-link-color);
  color: #ffffff;
}

.my-second-btn:hover, .my-third-btn:hover {
  color: var(--bs-primary);
  border-color: var(--bs-primary);
}

.icon-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 20px 0;
}

.icon-item {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

/* ==========================================
   2. ОБЩАЯ АДАПТИВНОСТЬ (Typography)
   ========================================== */

@media (min-width: 992px) {
  .display-hero {
    font-size: 80px !important;
    line-height: 1.1;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .display-hero {
    font-size: 61px !important;
    line-height: 1.1;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .display-hero {
    font-size: 40px !important;
    line-height: 1.1;
    text-align: center;
  }
}

@media (max-width: 575px) {
  .display-hero {
    font-size: 36px !important;
    line-height: 1.1;
  }
}

@media (max-width: 576px) {
  .H1-Heading {
    font-size: 40px;
  }
}

@media (max-width: 576px) {
  .h2-title {
    font-size: 20px;
    line-height: 1.2;
  }
}

@media (min-width: 768px) {
  .h3-subtitle {
    font-size: 20px !important;
  }
}

@media (max-width: 576px) {
  .h3-subtitle {
    font-size: 16px !important;
  }
}

@media (max-width: 575px) {
  .h3-subtitle {
    font-size: 14px !important;
  }
}

@media (max-width: 576px) {
  .body-main {
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  .body-main-bold {
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  .icon-container {
    gap: 10px;
  }
}

/* ==========================================
   3. SWIPER & CARDS SETTINGS
   ========================================== */

.swiper-slide-shadow, .swiper-slide-shadow-left, .swiper-slide-shadow-right, .swiper-slide-shadow-coverflow {
  display: none !important;
}

.swiper-slide {
  filter: none !important;
}

/* 1. Задние карточки с градиентом */

.swiper-slide .mycard {
  background: linear-gradient(180deg, #fdfdfd 0%, #9DA3F0 100%) !important;
  opacity: 1;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  transition: all 0.4s ease;
  border-radius: 0 103px 103px 103px !important;
}

/* 2. Активная карточка — строго белая */

.swiper-slide-active .mycard {
  background: #ffffff !important;
  opacity: 1;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.swiper-pagination {
  bottom: -40px !important;
}

.swiper-pagination-bullet {
  background: #979DF3 !important;
  opacity: 1;
  transition: transform 0.3s ease;
}

.swiper-pagination-bullet-active {
  background: #ff8b86 !important;
  transform: scale(1.5) !important;
}

.swiper {
  margin-bottom: 50px !important;
  overflow: visible !important;
}

/* ==========================================
   4. SWIPER MOBILE ADAPTIVITY (< 768px)
   ========================================== */

@media (max-width: 768px) {
  .swiper-slide .mycard {
    width: 290px !important;
    height: 450px !important;
    border-radius: 0 90px 90px 90px !important;
    padding: 20px !important;
  }
}

/* --- Стилизация стрелок навигации Swiper --- */

/* Контейнер стрелки (общие стили для обеих) */

.swiper-button-next, .swiper-button-prev {
  background: none !important;
  background-image: none !important;
  width: 60px !important;
  height: 80px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0px 4px 12px rgba(0, 0, 0, 0.3)) !important;
  transition: all 0.3s ease !important;
}

/* Стилизация самой иконки стрелки (внутри контейнера) */

.swiper-button-next::after, .swiper-button-prev::after {
  font-size: 40px !important;
  font-weight: bold;
  color: #FF8B86 !important;
}

/* Эффект при наведении (hover) */

.swiper-button-next:hover, .swiper-button-prev:hover {
  transform: scale(1.1);
  filter: drop-shadow(0px 6px 16px rgba(0, 0, 0, 0.4)) !important;
}

/* Смещение стрелок, чтобы они не налезали на карточки (по желанию) */

.swiper-button-prev {
  left: 20px !important;
}

.swiper-button-next {
  right: 20px !important;
}

/* Фиксация стрелок начиная с 992px */

@media (min-width: 992px) {
  .swiper-button-prev {
    left: calc(50% - 400px) !important;
    right: auto !important;
  }
}

@media (min-width: 992px) {
  .swiper-button-next {
    right: calc(50% - 400px) !important;
    left: auto !important;
  }
}

/* Дополнительное сужение для очень широких экранов */

@media (min-width: 1400px) {
  .swiper-button-prev {
    left: calc(50% - 450px) !important;
  }
}

@media (min-width: 1400px) {
  .swiper-button-next {
    right: calc(50% - 450px) !important;
  }
}

/* Базовый стиль (для всех экранов) */

#LastYear {
  background: #D3E1FD;
  padding: 25px;
  border-top-left-radius: 130px;
  width: auto;
  margin-left: 74px;
  height: fit-content;
}

/* Адаптация для экранов МЕНЬШЕ 768px (Планшеты и телефоны) */

@media (max-width: 768px) {
  #LastYear {
    margin-left: 0px !important;
    width: auto !important;
    padding: 20px !important;
    border-top-left-radius: 130px !important;
  }
}

.modal-content {
  background-color: #d3e1fd;
  color: #ffffff;
  border: none;
}

#links-modal-nav {
  font-family: Inter, sans-serif;
  font-size: 16px;
  color: var(--bs-body-color);
}

.body-main-link {
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
}

html {
  scroll-behavior: smooth;
}

.navbar-dark, .navbar[data-bs-theme=dark] {
  --bs-navbar-color: rgba(255, 255, 255, 0.55);
  --bs-navbar-hover-color: rgba(255, 255, 255, 0.75);
  --bs-navbar-disabled-color: rgba(255, 255, 255, 0.25);
  --bs-navbar-active-color: #fff;
  --bs-navbar-brand-color: #fff;
  --bs-navbar-brand-hover-color: #fff;
  --bs-navbar-toggler-border-color: rgba(255, 255, 255, 0.1);
  --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  color: #3d3b40;
  background: #3d3b40;
}

/* Если хочешь, чтобы это работало ТОЛЬКО на мобильных (когда меню под гамбургером) */

@media (max-width: 767px) {
  .navbar-collapse {
    padding-bottom: 25px !important;
  }
}

/* 1. Базовое состояние блока с твоей картинкой */

.mycard {
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
  opacity: 1;
  overflow: hidden;
}

/* 2. Эффект Ролловера (наведение мыши) */

.mycard:hover {
  opacity: 0.3 !important;
  transform: scale(1.02);
  box-shadow: inset 3px 3px 150px #525ceb, 3px 3px 150px #525ceb !important;
  filter: brightness(1.5);
  transform: scale(0.90);
  opacity: 1 !important;
}

/* 3. Настройка невидимой ссылки-пленки внутри блока */

/* Убедись, что у твоей ссылки внутри Div есть класс stretched-link */

.mycard .stretched-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
}

@media (max-width: 767px) {
  .nav-cta-button {
    margin-top: 25px !important;
    border: 2px solid var(--bs-primary) !important;
    border-radius: 77px;
    color: var(--bs-primary);
    width: 100%;
  }
}

.nav-cta-button {
  border: 2px solid var(--bs-primary) !important;
  border-radius: 77px;
  color: var(--bs-primary);
  width: 100%;
}

.nav-cta-button:hover {
  color: #ffffff;
  background: var(--bs-primary);
  border-color: var(--bs-danger);
}

/* Применяем ко всем секциям с ID */

section[id] {
  scroll-margin-top: 63px;
}

/* Перечисляем твои ID через запятую */

@media (max-width: 768px) {
  #About, #Portfolio, #Contact, #Experience {
    scroll-margin-top: 260px !important;
  }
}

/* Исходное состояние (увеличь значения, если хочешь, чтобы в начале он был выше) */

.navbar {
  transition: all 0.3s ease-in-out !important;
  padding-top: 15px !important;
  padding-bottom: 15px !important;
}

/* Состояние при скролле (уменьшенное) */

.navbar.navbar-shrink {
  padding-top: 5px !important;
  padding-bottom: 5px !important;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Если у Body есть класс .is-portfolio-page, меняем стиль ссылки .nav-portfolio-link */

.is-portfolio-page .nav-portfolio-link {
  color: var(--bs-primary) !important;
  font-weight: bold !important;
  border-bottom: 2px solid var(--bs-primary);
}

/* Применяем к секциям, на которые ведут кнопки из Hero */

@media (max-width: 768px) {
  #About, #Portfolio {
    display: block;
    position: relative;
    padding-top: 55px !important;
    scroll-margin-top: 55px !important;
  }
}

.custom-nav {
  background-color: #000000 !important;
  height: 60px !important;
  display: flex;
  align-items: center;
  border: none !important;
}

.logo-font {
  font-family: 'Dancing Script', cursive !important;
  font-size: 28px !important;
  color: #ffffff !important;
  text-decoration: none !important;
  padding-left: 20px !important;
}

.custom-nav .nav-link {
  color: #ffffff !important;
  padding: 0 35px !important;
  font-family: 'Inter', sans-serif !important;
}

@media (max-width: 991px) {
  .offcanvas.offcanvas-end {
    background-color: #000000 !important;
    width: 60% !important;
    height: 100vh !important;
    border: none !important;
  }
}

@media (max-width: 991px) {
  .btn-close {
    filter: invert(1);
    opacity: 1;
    margin-right: 20px !important;
    margin-top: 20px !important;
  }
}

@media (max-width: 991px) {
  .offcanvas-body {
    display: block !important;
    padding: 0 !important;
    height: auto !important;
  }
}

@media (max-width: 991px) {
  .offcanvas .nav-link {
    text-align: right !important;
    color: #ffffff !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 24px !important;
    font-weight: 400 !important;
    border: none !important;
    padding-top: 60px !important;
    padding-bottom: 60px !important;
    padding-right: 30px !important;
    line-height: normal !important;
    transition: 0.3s;
    text-decoration: none !important;
  }
}

@media (max-width: 991px) {
  .offcanvas .nav-link:hover {
    color: #B19CD9 !important;
  }
}

@media (min-width: 992px) {
  .offcanvas {
    position: static !important;
    visibility: visible !important;
    background: transparent !important;
    transform: none !important;
    display: flex !important;
  }
}

.mycard {
  background: #ffffff;
  width: 300px;
  height: 450px;
  border-top-right-radius: 103px;
  border-bottom-right-radius: 105px;
  border-bottom-left-radius: 105px;
  position: relative;
}

.mycard:hover {
  background: #D3E1FD;
}

.navbar-toggler {
  border-color: var(--bs-primary) !important;
  transform: scale(1.1);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23FF8B86' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

@media (max-width: 767.98px) {
  .navbar-collapse {
    margin-top: 30px !important;
  }
}

@media (max-width: 767.98px) {
  .navbar-collapse .my-five-btn {
    margin-top: 30px !important;
  }
}

.cardnames {
  font-family: Inter, sans-serif;
  color: #ffffff;
  font-size: 40px;
  font-weight: 500;
  text-shadow: 0px 0px 7px var(--bs-black);
}

.sticky-under-navbar {
  position: -webkit-sticky;
  position: sticky;
  top: 56px;
  z-index: 500;
  padding-top: 10px;
  padding-bottom: 10px;
  background: var(--bs-secondary);
  margin-right: 0px;
  margin-left: 0px;
  padding-right: 9%;
  padding-left: 9%;
}

.subsection_link {
  font-family: Inter, sans-serif;
  font-size: 14px;
  color: #d3e1fd;
}

#project-title {
  font-size: 24px;
  color: #3d3b40;
  margin-bottom: 22px;
}

.project-title {
  font-size: 24px;
  color: #3d3b40;
  margin-bottom: 14px;
  padding-top: 20px;
}

.proj-description {
  font-size: 14px;
  font-family: Inter, sans-serif;
}

.design-category {
  font-family: Fraunces, serif;
  color: #3d3b40;
  font-size: 30px;
  font-weight: 400;
}

.project-number {
  color: rgb(255,255,255);
  font-size: 140px;
  font-family: Inter, sans-serif;
  font-weight: 200 !important;
  -webkit-font-smoothing: antialiased;
}

.portfolio_section_name {
  font-family: Inter, sans-serif !important;
  font-size: 12px;
  color: #3d3b40;
  font-weight: 500;
}

.portfolio_bignumbers {
  color: #3d3b40;
  font-family: Inter, sans-serif;
  font-size: 13px;
  font-weight: 500;
  margin-right: 7px;
}

.nextproject_btn {
  color: #3d3b40;
  background: var(--bs-primary);
  border-radius: 7px;
  width: 34px;
  height: 43px;
  font-family: Inter, sans-serif;
  font-size: 18px;
  margin-right: 7px;
  margin-left: 7px;
  border: 2px solid var(--bs-primary);
  border-top-right-radius: 0px;
  border-top-left-radius: 11px;
  border-bottom-right-radius: 0px;
  border-bottom-left-radius: 0px;
}

.nextproject_btn:hover {
  color: var(--bs-primary);
  transition: 0.3s;
  cursor: pointer;
  border: 2px solid var(--bs-primary);
}

/* Стиль для кнопки текущей страницы */

.nextproject_btn.active-page {
  background: #e0e0e0 !important;
  color: #9e9e9e !important;
  cursor: default;
  pointer-events: none;
  opacity: 0.7;
}

/* Если на странице с классом .page-shorashim есть кнопка .btn-shorashim — выключи её */

/* Исправленные селекторы: везде сначала .page- (body), затем .btn- (кнопка) */

.page-project01 .btn-project01, .page-project02 .btn-project02, .page-project03 .btn-project03, .page-project04 .btn-project04, .page-project05 .btn-project05 {
  background-color: transparent !important;
  color: #3d3b40 !important;
  pointer-events: none !important;
  cursor: default !important;
  border-color: #3d3b40 !important;
}

.portfolio-sectionpage-title {
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 300;
}

/* Максимально жесткое переопределение стилей для заблокированных кнопок */

a.nextproject_btn#next-project-btn.active-page, a.nextproject_btn#prev-project-btn.active-page {
  background-color: #e0e0e0 !important;
  color: #9e9e9e !important;
  opacity: 0.6 !important;
  border-color: #e0e0e0 !important;
  cursor: default !important;
  pointer-events: none !important;
}

/* Убираем эффекты наведения для заблокированной кнопки */

a.nextproject_btn#next-project-btn.active-page:hover, a.nextproject_btn#prev-project-btn.active-page:hover {
  background-color: #e0e0e0 !important;
  color: #9e9e9e !important;
}

.transparent-col {
  background-color: rgba(255, 255, 255, 0.2) !important;
  box-shadow: inset 0 0 30px 5px rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

