* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'poppins', sans-serif;
}

body {
  background-image: url(img/ilustration/decoration-pattern.svg);
  background-repeat: no-repeat;
  background-attachment: static;
  background-size: 30%;
  background-position: -10% -5%;
  transition: background 0.3s, color 0.3s;
}
body .text-success{
   color: #09B850 !important;
}
body .text-success-emphasis{
   color: #198754 !important;
}
/* Navigator */
.navigator {
  width: 100%;
  height: 12vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: top 0.5s ease, background-color 0.5s ease;
  background: transparent; /* ilk görünüşdə şəffaf */
  box-shadow: 0 5px 10px rgba(231, 231, 231, 0.1);
}

.brand {
  height: 8vh;
  margin-left: 2rem;
  transition: opacity 0.5s;
}

.navigator-nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-size: 1.1rem;
  color: #838484;
  text-decoration: none;
  transition: 0.3s;
}
.nav-link:hover {
  color: #09B850;
  transform: scale(1.1);
}
.header.hidden {
  top: -100px; /* yuxarı çəkirik */
}

/* Scroll sonrası görünəndə */
.header.scrolled {
  background: #ffffff; /* ağ fon */
  box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* kiçik kölgə effekt */
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.burger span {
  display: block;
  height: 3px;
  background: #838484;
  border-radius: 2px;
}

/* Mode buttons */
.mode {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.btn-mode {
  background: none;
  border: none;
  font-size: 1rem;
  color: #838484;
  cursor: pointer;
}
.btn-mode:hover {
  color: #09B850;
  transform: scale(1.1);
}

/* Custom dropdown */
.dropdown-custom {
  position: relative;
}
.dropdown-menu-custom {
  position: absolute;
  top: 120%;
  left: 0;
  background: #fff;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  list-style: none;
  padding: 5px 0;
  display: none;
  min-width: 140px;
  z-index: 2000;
}
.dropdown-menu-custom li {
  padding: 6px 10px;
  cursor: pointer;
  font-size: 0.95rem;
}
.dropdown-menu-custom li:hover {
  background: #f1f1f1;
}

/* Offcanvas */
.offcanvas {
  position: fixed;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(10px);
  background-color: rgba(255,255,255,0.9);
  color: #1d1d1d;
  transition: left 0.4s ease;
  display: flex;
  flex-direction: column;
  padding: 4rem;
  z-index: 1000;
}
.offcanvas nav {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 3rem;
}
.offcanvas.show {
  left: 0;
}
.close-offcanvas {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 992px) {
  .navigator-nav {
    display: none;
  }
  .burger {
    display: flex;
  }
}
@media (max-width: 576px) {
  .section h5.slogan {
    font-size: 1.2rem;
    width: 100%;
  }
}

/* Dark theme */
body.dark {
  background: #1d1d1d;
  color: #f5f5f5;
}
body.dark .nav-link {
  color: #f5f5f5;
}
body.dark .dropdown-menu-custom {
  background: #333;
  color: #fff;
}

/* Main section */
.section {
  padding: 2rem 0;
}
.span-slogan{
   width: fit-content;
   max-width: 100%;
   display: inline-flex;
   justify-content: center;
   align-items: center;
   background: #FAFAFA;
   border-radius: 5px;
}
.span-slogan .slogan{
   font-size: 1.5rem;
   font-weight: 600;
   padding: 0;
   margin: 0;
   color: #09B850;
}
.cover-image{
   width: 100%;
   height: 400px;
   border-radius: 10px;
   box-shadow: 0 4px 8px rgba(0,0,0,0.1);
   margin-top: 1rem;
   transition: transform 0.3s, box-shadow 0.3s;
   object-fit: cover;
}
.cover-image img{
   width: 100%;
   height: 100%;
   border-radius: 10px;
   object-fit: cover;
}
#typingText {
  min-height: 80px; /* чтобы блок не прыгал */
  border-right: 2px solid #09B850;
  white-space: pre-wrap;
  overflow: hidden;
}

/* мигающий курсор */
@keyframes blink {
  0%,100% {border-color: transparent;}
  50% {border-color: #09B850;}
}
#typingText {
  animation: blink 0.8s infinite;
}

/* About section */
#about .card {
   display: flex;
   flex-direction: column;
   justify-content: center;
   align-items: center;
   width: 200px;
   height: 200px;
   border: none;
   border-radius: 10px;
   transition: transform 0.3s, box-shadow 0.3s;
   padding: 1.5rem;
   background: #fff; 
   box-shadow: 0 4px 8px rgba(0,0,0,0.1);
   border-radius: 100px;
   padding: 3rem 1.5rem;
   text-align: center;
}



/* =====  тёмный режим ===== */

/* Общий фон */
body.dark {
  background-color: #1d1d1d !important;
  color: #f5f5f5 !important;
}

/* Заголовки */
body.dark h1,
body.dark h2,
body.dark h3,
body.dark h4,
body.dark h5,
body.dark h6 {
  color: #f5f5f5 !important;
}

/* Светлые секции (чтобы не оставались белыми) */
body.dark .bg-light,
body.dark .bg-light-subtle {
  background-color: #222 !important;
  color: #f5f5f5 !important;
}

/* Тёмные секции (чтобы не были чисто чёрными) */
body.dark .bg-dark,
body.dark .bg-black {
  background-color: #2a2a2a !important;
  color: #f5f5f5 !important;
}

/* Карточки */
body.dark .card {
  background-color: #2a2a2a !important;
  color: #f5f5f5 !important;
  border-color: #444 !important;
}

/* Тексты в карточках */
body.dark .card-title,
body.dark .card-text {
  color: #f5f5f5 !important;
}

/* Посты (например, блог) */
body.dark .badge {
  color: #fff !important;
}

/* Инпуты и кнопки */
body.dark .btn,
body.dark .form-control {
  background-color: #2a2a2a !important;
  color: #f5f5f5 !important;
  border-color: #555 !important;
}

/* Навигация */
body.dark .nav-link {
  color: #ddd !important;
}
body.dark .nav-link:hover {
  color: #09B850 !important;
}

/* Dropdown */
body.dark .dropdown-menu-custom {
  background: #333 !important;
  color: #f5f5f5 !important;
}
body.dark .dropdown-menu-custom li:hover {
  background: #444 !important;
}
body.dark .span-slogan {
  background: #2A2A2A;
  color: #f5f5f5;
}

