@import url('https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@100;300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Mulish:wght@200;300;400;500;600;700;800;900;1000&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Sorts+Mill+Goudy&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@100;200;300;400;500;600;700&display=swap');


/* TODO:
  1. Migrate the fonts to serving them locally
  2. Improve naming conventions for the variables
*/

:root {
  /* === Colors === */
  --color-bg-dark: #050608;
  --color-text-light: #D1D2D4;
  --color-accent: #D9B282;
  --color-gray: #6f6f6f;
  --color-grey-light: #a8a8a8;
  --color-white: #fff;
  --color-black: #000;
  --color-muted: #9ca3af;
  --color-dark-gray: #151A1E;
  --divider-color:  rgb(26 32 38 / 1);
  --sidebar-color: rgb(15 17 21 / 1);

  /* === Fonts === */
  --font-primary: 'Josefin Sans', sans-serif;
  --font-secondary: 'Mulish', sans-serif;
  --font-heading: 'Sorts Mill Goudy', serif;
  --font-condensed: 'Barlow Condensed', sans-serif;

  /* === Spacing === */
  --space-xs: 8px;    /* 0.5rem */
  --space-sm: 16px;   /* 1rem */
  --space-md: 24px;   /* 1.5rem */
  --space-lg: 32px;   /* 2rem */
  --space-xl: 48px;   /* 3rem */
}

@font-face {
  font-family: 'slick';
  font-style: normal;
  font-weight: normal;
  src: url('../fonts/slick.eot');
  src: url('../fonts/slick.eot?#iefix') format('embedded-opentype'),
       url('../fonts/slick.woff') format('woff'),
       url('../fonts/slick.ttf') format('truetype');
}

/* === Base Reset === */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 18px;
  font-family: var(--font-primary);
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
}

body {
  margin: 0;
  line-height: 1.6;
  letter-spacing: 0.25px;
  font-weight: 300;
  font-family: var(--font-primary);
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
}

.main {
  position: relative;
  padding: 0 50px;
  max-width: 100vw;
  margin: 0 auto;
  background-color: var(--color-bg-dark);
  z-index: 1;
}

.main::before,
.main::after {
  content: "";
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  background-repeat: no-repeat;
  background-size: cover;
  z-index: -1;
}

/* Left side */
.main::before {
  left: 0;
  background-image: url('/static/assets/img/left.png');
}

/* Right side */
.main::after {
  right: 0;
  background-image: url('/static/assets/img/right.png');
}

/* === Headings === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  margin-bottom: 16px;
  color: var(--color-white);
}

/* === Paragraph and Text === */
p {
  margin-bottom: 16px;
}

a {
  text-decoration: none;
}

/* === Lists === */
ul {
  padding-left: 20px;
  list-style-type: disc;
}

li {
  margin-bottom: 8px;
}

/* === Header === */
.main-header {
  position: fixed;
  padding: 10px 50px;
  width: 100%;
  top: 0;
  left: 0;
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1001;
  transition: background-color 0.3s ease;
}

.main-header.scrolled {
  background: var(--color-dark-gray);
}

.menu-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 20px;
  width: 30px;
  cursor: pointer;
  z-index: 1003;
}

.menu-icon .bar {
  height: 3px;
  width: 0%;
  background-color: var(--color-white);
  display: block;
  animation: fillBar 1.5s ease-in-out infinite;
  border-radius: 2px;
}

.menu-icon .bar1 { animation-delay: 0s; }
.menu-icon .bar2 { animation-delay: 0.3s; }
.menu-icon .bar3 { animation-delay: 0.6s; }

@keyframes fillBar {
  0% { width: 20%; opacity: 0.3; }
  50% { width: 100%; opacity: 1; }
  100% { width: 20%; opacity: 0.3; }
}

.logo img {
  height: 100px;
  width: 100%;
}

/* === Sidebar === */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  min-width: 240px;
  max-width: 440px;
  width: max(calc(100% - 15%), 240px);
  height: 100%;
  background-color: var(--sidebar-color);
  color: white;
  z-index: 1002;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.sidebar.show {
  transform: translateX(0);
}

.sidebar-header {
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 1px solid var(--divider-color);
}

.sidebar-title {
  font-size: 18px;
  font-family: var(--font-condensed);
  color: var(--color-accent)
}

.sidebar-header span {
  font-size: 32px;
  cursor: pointer;
}

.sidebar-links {
  list-style: none;
  padding: 0 20px;
}

.sidebar-links li {
  padding-bottom: 5px;
  border-bottom: 1px solid var(--divider-color);
}

.sidebar-links a:hover {
  color: var(--color-accent);
}

.sidebar-links a {
  color: var(--color-text-light);
  text-decoration: none;
  font-size: 18px;
  font-family: var(--font-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s ease;
  position: relative;
}

.sidebar-links .arrow {
  color: #eab676;
  font-size: 16px;
  opacity: 0;
  transform: translateX(-5px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.sidebar-links a:hover .arrow {
  opacity: 1;
  transform: translateX(0);
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(50, 50, 50, 0.4);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.show {
  opacity: 1;
  visibility: visible;
}

.sidebar-socials {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 100%;
  padding: 0 30px;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.sidebar-socials a {
  color: var(--color-accent);
  font-size: 18px;
  text-decoration: none;
}

.find-table {
    position: relative;
    display: block;
    padding: 20px 40px;
    text-align: center;
    font-size: 18px;
    color: var(--color-white);
    border: 2px solid var(--color-white);
    border-radius: 50%;
    display: inline-block;
    transition: all 0.5s ease;
}

.find-table:hover {
    color: var(--color-black);
    border-color: var(--color-accent);
}

.find-style-two {
    position: relative;
    display: inline-block;
    vertical-align: top;
    text-align: center;
    text-transform: uppercase;
    color: var(--color-black);
    letter-spacing: 3px;
    font-weight: 700;
    font-size: 12px;
    padding: 15px 30px;
    border: 2px solid var(--color-accent);
    background: var(--color-accent);
    border-radius: 0px;
    overflow: hidden;
    transition: all 0.5s ease;
}

.find-style-two:before {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    top: 200%;
    left: 50%;
    transform: translateX(-50%);
    border-bottom-right-radius: 50%;
    border-bottom-left-radius: 50%;
    z-index: 1;
    background: transparent;
    transition: all 0.5s ease;
}

.find-style-two:hover:before {
    top: 0%;
    background: transparent;
}

.find-style-two:hover {
    background: transparent;
    color: var(--color-accent);
    border-color: var(--color-accent);
}

.find-style-two .find-wrap {
    position: relative;
    z-index: 1;
    float: left;
    overflow: hidden;
    display: inline-block;
}

.find-style-two .find-wrap .text-one {
    position: relative;
    display: block;
    color: var(--color-black);
    transition: all 0.3s ease;
}

.find-style-two:hover .find-wrap .text-one-find:first-child {
    transform: translateY(-150%);
}

.find-style-two .find-wrap .text-two-find {
    position: absolute;
    top: 100%;
    display: block;
    color: var(--color-accent);
    transition: all 0.3s ease;
}

.find-style-two:hover .find-wrap .text-two-find {
    top: 50%;
    transform: translateY(-50%);
}

/* === Half Diamond Divider === */
.divider {
  width: 100%;
  max-width: 496px;
  margin: 0 auto 64px;
  position: relative;
  height: 1px;
}

@media screen and (max-width: 480px) {
  .divider { max-width: 70%; }
}

.divider--transparent::before,
.divider.div-transparent::before {
  content: "";
  position: absolute;
  top: 0;
  left: 5%;
  right: 5%;
  height: 1px;
  background-image: linear-gradient(
    to right,
    transparent 0%,
    var(--color-gray, #333) 20%,
    var(--color-accent, #D9B282) 49%,
    var(--color-accent, #D9B282) 51%,
    var(--color-gray, #333) 80%,
    transparent 100%
  );
  z-index: 1;
}

.divider--arrow-down::after,
.divider.div-arrow-down::after {
  content: "";
  position: absolute;
  top: -7px;
  left: calc(50% - 7px);
  width: 14px;
  height: 14px;
  transform: rotate(45deg);
  background-color: var(--color-bg-dark, #0A0D0F);
  border-right: 1px solid var(--color-accent, #D9B282);
  border-bottom: 1px solid var(--color-accent, #D9B282);
  box-sizing: border-box;
  z-index: 2;
}

.divider--stopper::after,
.divider.div-stopper::after {
  content: "";
  position: absolute;
  top: -6px;
  left: calc(50% - 6px);
  width: 12px;
  height: 12px;
  background-color: var(--color-bg-dark, #0A0D0F);
  z-index: 3;
}

.navbar-row {
  display: flex;
  flex-direction: row;
  gap: 5px;
  align-items: center;
}

/* RESPONSIVE TABLET (≤1024px) */
@media screen and (max-width: 1024px) {
  .main {
    padding: 0px 40px;
  }

  .main-header {
    padding: 10px 40px;
  }

  .main::before,
  .main::after {
    width: 50px;
  }
}

/* RESPONSIVE MOBILE (≤768px) */
@media screen and (max-width: 768px) {
  .main {
    padding: 0px 30px;
  }

  .main-header {
    padding: 10px 30px;
  }

  .find-table {
    padding: 14px 20px;
    font-size: 12px;
  }

  .main::before,
  .main::after {
    width: 20px;
  }
}

/* RESPONSIVE SMALL MOBILE (≤480px) */
@media screen and (max-width: 480px) {
  .main {
    padding: 0px 20px;
  }

  .main-header {
    padding: 10px 20px;
  }

  .find-table {
    padding: 10px;
    font-size: 10px;
    max-width: 150px; 
    white-space: normal;
    word-break: break-word;
  }

  .main::before,
  .main::after {
    display: none;
  }
}