@import url('https://fonts.googleapis.com/css2?family=Noto+Serif:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --bg: #f4f6fb;
    --border: #000000;
    --hover: #d3d3d3;
    --text: #111717;
    --text-muted: #8b8b8b;
    --error: #ff6b6b;
    --success: hsl(162, 68%, 54%);
    --info: hsl(194, 68%, 50%);
    --warning: #fab005;
}

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--bg);
  font-family: 'Noto Serif', serif;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: auto;
}

a {
  text-decoration: none;
  color: var(--text);
}

ul {
  list-style: none;
}

textarea:focus,
input:focus {
  outline: none;
}

::selection {
  background: rgb(34, 34, 34);
  color: rgb(245, 245, 245); 
  text-shadow: none;
}

/* --------------------- LAYOUT --------------------- */
.layout {
  min-height: 100vh;
  overflow: visible;
  display: grid;
  grid-template-columns: 200px 1fr;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "navbar  navbar"
    "sidebar content";
  transition: all 0.3s ease;
  gap: 20px;
  padding: 10px;
}

.left-side {
  grid-area: sidebar;
  background: var(--bg);
  border-radius: 3px;
  padding: 5px 0 10px 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: none;
  height: calc(100vh - 65px);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 55px;
}

.main-side {
  grid-area: content;
  min-width: 0;
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
  
}

.navbar {
  grid-area: navbar;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 20px ;
  background-color: var(--bg);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 999;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  top: 0;
  left: 0;
  right: 0;
  border: none;
  padding: 0 10px 4px 10px;
}

.content-container{
  margin: 30px -10px 0 0;
  width: calc(100% - 10px);
}

.main-side .logout-container{
  margin: 50px -10px 0 10px;
  width: calc(100% - 30px);
  
}

/* ------------- Message Notifications Styles ------------- */
.messages-container {
  position: fixed;
  top: 10px;
  left: 50%;
  height: 43px;
  transform: translateX(-50%);
  z-index: 9999;
  max-width: 90%;
  min-width: 400px;
  text-align: center;
  padding: 0 1rem;
}

.alert {
  padding: 9px 15px 7px 15px;
  margin-bottom: 10px;
  border-radius: 3px;
  border: 1px solid var(--border);
}
.alert.success {
  background-color: var(--success);
  color: black;
}
.alert.error {
  background-color: var(--error);
  color: black;
}
.alert.warning {
  background-color: var(--warning);
  color: black;
}

/* ---------------------------- NAVBAR ---------------------------- */
.navbar .nav-left {
  display: flex;
  align-items: center;
}

.btn-toggel {
  border: none;
  display: block;
  background-color: transparent;
  z-index: 30;
  cursor: pointer;
  margin-top: 5px;
}

.navbar .nav-left .logo{
  font-size: 24px;
}

.navbar .nav-left img{
  height: 24px;
  width: 24px;
}

.navbar .nav-right {
  display: flex;
  align-items: center;
  gap: 25px;
  padding-top: 4px;
}

.dropdown-menu {
  position: absolute;
  right: 10px;
  top: 47px;
  min-width: 170px;
  background-color: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0;
  display: none;
  flex-direction: column;
  z-index: 2100;
}

.navbar .nav-right .dropdown-container .username img,
.navbar .nav-right .dropdown-container .username .placeholder{
    width: 33px;
    height: 33px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
    margin-right: 5px;
    flex-shrink: 0;
    background: var(--bg);
    cursor: pointer;
}

.navbar .nav-right .dropdown-container .username .placeholder{
  background-color: var(--bg);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text);
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
}

.navbar .nav-right .dropdown-menu.show {
  display: flex;
}

.dropdown-menu a,
.dropdown-menu .logout-btn {
  background-color: var(--bg);
  display: block;
  padding: 6px 20px;
  font-size: 13px;
  color: var(--text);
  background: none;
  border: none;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
}

.logout-btn {
  width: 100%;
  margin-bottom: 0;
}

.dropdown-menu a:hover,
.logout-btn:hover {
  background-color: black;
  color: white;
}

.logout-form {
  margin: 0;
}

.navbar .nav-right .link{
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
  }

.navbar .nav-right .link:hover{
    color: var(--text-muted);
}

/* ---------------------------- SIDEBAR ---------------------------- */
.sidebar-lists {
  background-color: var(--bg);
  list-style: none;
  display: flex;
  flex-direction: column;
  font-size: 14px;
  gap: 5px;
}

.sidebar-lists .sidebar-list{
  padding: 8px 10px;
  border: var(--border) 1px solid;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sidebar-lists .sidebar-list li{
  display: flex;
  align-items: center;
  gap: 5px;
  padding-left: 5px;
  font-size: 14px;
}

.sidebar-lists .sidebar-list:hover{
  border: 1px solid var(--hover);
  color: var(--text);
}

.sidebar-lists .sidebar-list.active{
  border-left: 10px solid var(--border);
  border-color: var(--border);
  color: var(--text-muted);
}

.side-buttom {
  padding: 5px 0 0 0;
  text-align: center;
  font-size: 12px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  margin-top: auto;
  bottom: 0;
}

.side-buttom a {
  margin: 0 5px;
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
}

.side-buttom a:hover {
  text-decoration: underline;
  color: var(--text-muted);
}

/* --------------------- Cards --------------------- */
.cards{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    padding: 0 ;
}

.cards .card{
  background-color: transparent;
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.cards .card .top{
    border-radius: 8px;
}

.cards .card .top img{
    aspect-ratio: 16 / 8;
    width: 100%; 
    object-fit: cover;
    border: 1px solid var(--border);
    border-radius: 8px;
}

.cards .card .buttom{
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    margin-left: 10px;
}

.cards .card .buttom img,
.cards .card .buttom .placeholder {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border);
    margin-right: 5px;
    flex-shrink: 0;
    background: var(--bg);
}

.cards .card .buttom .placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--text);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    user-select: none;
}

.cards .card .buttom .info{
    font-size: 14px;
    color: var(--text);
}

/* --------------------- Tags LISTS --------------------- */
.tags {
  align-items: center;
  border-block: 1px solid var(--text);
  padding: 3px 0;
  margin-bottom: 10px;
  overflow-x: auto;
  white-space: nowrap;
  user-select: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
  display: flex;
  flex-direction: row;
  gap: 5px;
}

.tags::-webkit-scrollbar {
  display: none;
}

.tags .tag{
  padding: 0 8px;
  font-size: 14px;
}

.tags .tag a:hover{
  color: var(--text-muted);
}

/* ------------------------------ Hero Carousel ---------------------------- */
.HeroCarousel{
  overflow: hidden;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 12px;
  background: var(--bg);
  position: relative;
}
.HeroCarousel .hero-track{
  display: flex;
  width: 100%;
  transition: transform 0.6s ease;
}
.HeroCarousel .hero-slide{
  min-width: 100%;
  display: flex;
  gap: 40px;
  padding: 10px 20px;
  justify-content: center;
  background: var(--hero-accent, #d6d6d6);
  align-items: center;
}
.HeroCarousel .hero-content{
  width: 55%;
  display:flex;
  flex-direction:column;
  gap:10px;
  justify-content: center;
}
.HeroCarousel .hero-img{
  display: flex;
  align-items: center;
  justify-content: center;
}
.HeroCarousel .hero-content h1{font-size: 24px; line-height: 1.15;}
.HeroCarousel .hero-cta{
  padding-top: 8px;
}
.HeroCarousel .hero-action{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--hero-accent, #111);
  color: #000;
  font-size: 15px;
  font-weight: 700;
  width: fit-content;
  text-decoration: none;
}
.HeroCarousel .hero-img img{
  width: 200px;
  height: 200px;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}
.HeroCarousel .hero-controls{
  position: absolute;
  right: 14px;
  bottom: 12px;
  display: flex;
  gap: 8px;
}
.HeroCarousel .hero-arrow{
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(0,0,0,0.05);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.HeroCarousel .hero-arrow:hover{
  background: rgba(0,0,0,0.12);
  transform: translateY(-1px);
}
.HeroCarousel .hero-arrow:active{
  transform: translateY(0);
}

/* --------------------- Static --------------------- */
.static-container{
  margin: 50px auto 0 auto;
  width: 100%;
  max-width: 950px;
  display: flex;
  flex-direction: column;
  margin-bottom: 70px;
}

.static-container .contact-container h1{
  font-size: 36px;
  margin-bottom: 15px;
  text-align: center;
}

.static-container a{
  color: var(--text);
  font-weight: bold;
  border-bottom: 1px solid var(--text);
}

.static-container .contact-container {
  min-height: calc(100vh - 160px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 15px;
}

.static-container .contents{
  padding: 0 25px;
}

.textinput {
  outline: none;
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  background-color: var(--bg);
  color: var(--text);
}

.textmessage {
  outline: none;
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  background-color: var(--bg);
  color: var(--text);
}

.Contact-btn {
  background-color: black;
  color: white;
  cursor: pointer;
  border: 2px solid var(--border);
  border-radius: 3px;
  padding: 8px;
  width: 100%;
  font-weight: bold;
}

.static-container h1{
  font-size: 32px;
  margin-bottom: 15px;
  text-align: center;
  border-bottom: 2px solid var(--border);
}

.static-container p{
  font-size: 16px;
  line-height: 1.6;
  text-align: justify;
}

.static-container h2{
  font-size: 24px;
  margin-top: 10px;
  margin-bottom: 10px;
}

.static-container ul{
  margin-left: 20px;
}
.static-container ul li{
  margin-bottom: 8px;
}

/* --------------------- Footer --------------------- */
footer {
  padding: 10px 0;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: center;
  text-align: center;
  font-size: 14px;
  color: var(--text);
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--bg);
  z-index: 100;
}

footer p a {
  color: var(--text);
  font-weight: bold;
  border-bottom: 1px solid var(--text);
}

/* --------------------- ANIMATIONS & MEDIA QUERIES --------------------- */
@keyframes scroll {
    to{
      transform: translateX(-100%);
    }
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@media (max-width: 880px) {
  .layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "navbar"
      "content";
  }

  .main-side {
    margin: 0;
    padding: 0;
  }

  .content-container{
    margin: 20px 0 0 0;
    width: 100%;
  }

  .navbar {
    top: 0;
    padding: 4px 10px;
    border-radius: 3px;
    align-items: center;
  }

  .navbar .nav-left {
    display: flex;
    align-items: center;
    gap: 2px;
  }

.navbar .nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .navbar .nav-right .dropdown-container .username img,
  .navbar .nav-right .dropdown-container .username .placeholder{
      width: 30px;
      height: 30px;
      margin-top: 3px;
  }

  .navbar .menu-icon {
    filter: var(--filter-hover);
    width: 20px;
    height: 20px;
  }

  .btn-toggel {
    display: block;
    background-color: transparent;
    border: none;
    cursor: pointer;
  }

  .navbar .nav-left .logo {
    font-size: 20px;
    font-weight: bold;
  }

  .navbar .nav-right .get-start{
      font-size: 14px;

  }

  .left-side {
    display: flex;
    flex-direction: column;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 40px;
    width: 200px;
    height: calc(100% - 40px);
    transition: transform 0.3s;
    transform: translateX(-100%);
    background-color: var(--bg);
  }

  .left-side.show {
    display: flex;
    transform: translateX(0);
    margin-left: 0;
    left: 0;
    padding: 10px ;
  }

  .sidebar-lists .sidebar-list{
    padding: 4px 6px;
    font-size: 13px;
  }

  .side-buttom {
    flex-shrink: 0;
    margin-top: auto;
    padding: 5px 0 0 0;
    border-top: 1px solid var(--border);
  }

  .icons-nav{
    width: 28px;
    height: 28px;
    margin-top: -2px;
  }

  .HeroCarousel{
    margin-bottom: 15px;
    border-radius: 8px;
  }

  .HeroCarousel .hero-slide{
    flex-direction: column;
    justify-content: flex-start;
    background: var(--hero-accent, #d6d6d6);
    align-items: center;
    height: auto;
    min-height: 150px;
    gap: 10px;
    padding: 15px;
    text-align: center;
  }

  .HeroCarousel .hero-content{
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 10px;
  }

  .HeroCarousel .hero-content h1{
    font-size: 20px;
    line-height: 1.2;
  }

  .HeroCarousel .hero-cta{
    padding-top: 8px;
    width: 100%;
    display: flex;
    justify-content: center;
  }

  .HeroCarousel .hero-action{
    font-size: 14px;
    padding: 6px 10px;
  }

  .HeroCarousel .hero-img{
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .HeroCarousel .hero-img img {
    width: 150px;
    height: 150px;
    aspect-ratio: 16 / 9;
  }

  .HeroCarousel .hero-controls{
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: flex;
    gap: 6px;
  }

  .HeroCarousel .hero-arrow{
    width: 28px;
    height: 28px;
    font-size: 14px;
  }
  
}

