/* Fonts */
@font-face {
  font-family: 'Kollektif';
  src: url('../fonts/Kollektif.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Czizh';
  src: url('../fonts/Czizh Body.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Czizh';
  src: url('../fonts/Czizh Feather.ttf') format('truetype');
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: 'Czizh';
  src: url('../fonts/Czizh Wing.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'KosolapaScript';
  src: url('../fonts/KosolapaScriptRegular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Kollektif', Arial, sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: #F3EFE4;
  overflow-x: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #F3EFE4;
}

::-webkit-scrollbar-thumb {
  background: #9FB6C4;
  border-radius: 6px;
  border: 2px solid #F3EFE4;
}

::-webkit-scrollbar-thumb:hover {
  background: #7E747F;
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #9FB6C4 #F3EFE4;
}

.HomePage {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  height: 4198px;
  background: #F3EFE4;
  position: relative;
  overflow: hidden;
}

/* Hide Figma absolute positioned navigation elements */
.Rectangle2,
.Line1,
.Group5,
.Hover {
  display: none !important;
}

/* Navigation container */
.nav-container {
  position: absolute;
  top: 68px;
  left: 73px;
  right: 73px;
  height: 79px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  background: #F3EFE4;
  border: 2px solid #020202;
  z-index: 100;
}

/* Logo section */
.logo-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-section img {
  width: 40px;
  height: 58px;
}

.logo-section .logo-text {
  font-family: 'Dishcek', cursive, serif;
  font-size: 40px;
  letter-spacing: 2px;
  color: #000;
  line-height: 1;
}

/* Navigation menu */
.nav-menu {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-menu a {
  font-family: 'Kollektif', Arial, sans-serif;
  font-size: 20px;
  color: #000;
  text-decoration: none;
  transition: opacity 0.3s;
  white-space: nowrap;
}

.nav-menu a:hover {
  opacity: 0.7;
}

/* Scrolling marquee sections */
.Frame31 {
  background: #9FB6C4 !important;
  position: absolute !important;
  overflow: hidden !important;
  width: 1440px !important;
  left: 0px !important;
  clip-path: inset(0 0 0 0) !important;
  -webkit-clip-path: inset(0 0 0 0) !important;
}

.Frame31 .Group19 {
  will-change: transform;
  transition: none;
}

.Frame31 .ScentopiaCandleCo {
  color: transparent !important;
  -webkit-text-stroke: 2px #F3EFE4 !important;
  text-stroke: 2px #F3EFE4 !important;
  paint-order: stroke fill;
}

/* Replace text content with КАМНИ&СВЕЧИ */
.Frame31 .ScentopiaCandleCo {
  font-size: 0 !important;
}

.Frame31 .ScentopiaCandleCo::before {
  content: 'КАМНИ&СВЕЧИ';
  font-size: 70px;
  color: transparent;
  -webkit-text-stroke: 2px #F3EFE4;
  text-stroke: 2px #F3EFE4;
  text-transform: uppercase;
  font-family: Kollektif;
  font-weight: 400;
}

/* Marquee scroll controlled by JavaScript */
.Frame31 .Group19 {
  will-change: transform;
  transition: none;
}

/* Fix image alignment */
img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Ensure all absolute positioned images are properly aligned */
[style*="position: absolute"] img {
  object-fit: cover;
}

/* Make all absolute elements responsive */
[data-layer][style*="position: absolute"] {
  max-width: 100%;
}

/* Typography fixes */
[data-layer*="SHOP YOUR FAVORITE" i] {
  font-family: 'Abril Fatface', serif !important;
}

/* Responsive wrapper */
@media (max-width: 1440px) {
  .HomePage {
    width: 100%;
    height: auto;
  }
}

/* ===== MOBILE RESPONSIVE STYLES ===== */

/* Tablet styles */
@media (max-width: 1024px) {
  .HomePage {
    height: auto !important;
    min-height: 100vh;
  }
  
  .nav-container {
    left: 20px !important;
    right: 20px !important;
    padding: 0 15px !important;
    height: 70px !important;
  }
  
  .nav-menu {
    gap: 15px;
  }
  
  .nav-menu a {
    font-size: 16px;
  }
  
  .logo-section .logo-text {
    font-size: 32px;
  }
  
  /* Scale down hero image */
  .Rectangle7 {
    width: 80% !important;
    height: auto !important;
    left: 10% !important;
    top: 250px !important;
  }
  
  .EscapeToTranquility {
    width: 80% !important;
    left: 10% !important;
    top: 150px !important;
  }
  
  .EscapeToTranquility span {
    font-size: 48px !important;
  }
}

/* Mobile styles */
@media (max-width: 768px) {
  .HomePage {
    width: 100% !important;
    height: auto !important;
    padding-bottom: 50px;
    position: relative !important;
  }
  
  /* Reset all absolute positioning for mobile */
  .HomePage > * {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 auto;
  }
  
  /* Mobile navigation - hamburger menu */
  .nav-container {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 60px !important;
    padding: 0 15px !important;
    flex-direction: row;
    z-index: 1000;
    margin: 0 !important;
  }
  
  .logo-section {
    gap: 8px;
  }
  
  .logo-section img {
    width: 30px !important;
    height: 44px !important;
  }
  
  .logo-section .logo-text {
    font-size: 20px !important;
  }
  
  /* Hide full nav menu on mobile, show burger icon */
  .nav-menu {
    display: none;
  }
  
  /* Mobile hamburger menu */
  .hamburger-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 101;
    width: 40px;
    height: 40px;
    justify-content: center;
    align-items: center;
  }
  
  .hamburger-menu span {
    display: block;
    width: 28px;
    height: 3px;
    background: #000;
    transition: all 0.3s ease;
    border-radius: 2px;
  }
  
  .hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
  }
  
  .hamburger-menu.active span:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
  }
  
  /* Mobile menu overlay */
  .nav-menu.active {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    width: 100%;
    background: #F3EFE4;
    border-bottom: 2px solid #020202;
    padding: 20px;
    gap: 15px;
    z-index: 999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  }
  
  .nav-menu.active a {
    font-size: 18px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    text-align: center;
  }
  
  .nav-menu.active a:last-child {
    border-bottom: none;
  }
  
  body.menu-open {
    overflow: hidden;
  }
  
  /* Add top padding to compensate for fixed nav */
  .HomePage::before {
    content: '';
    display: block;
    height: 80px;
  }
  
  /* Hero section */
  .EscapeToTranquility {
    width: 90% !important;
    max-width: 400px;
    padding: 20px 15px !important;
    text-align: center;
    margin: 20px auto !important;
  }
  
  .EscapeToTranquility span {
    display: block !important;
    font-size: 32px !important;
    line-height: 1.3 !important;
  }
  
  .EscapeToTranquility span:last-child {
    font-size: 38px !important;
  }
  
  /* Stars decoration */
  .Star2, .Star3 {
    width: 60px !important;
    height: 60px !important;
    position: absolute !important;
  }
  
  .Star2 {
    right: 20px !important;
    top: 100px !important;
    left: auto !important;
  }
  
  .Star3 {
    left: 20px !important;
    top: 100px !important;
  }
  
  .Star2 svg, .Star3 svg {
    width: 60px;
    height: 60px;
  }
  
  /* Main hero image */
  .Rectangle7 {
    width: 90% !important;
    max-width: 400px;
    height: 400px !important;
    border-top-left-radius: 200px !important;
    border-top-right-radius: 200px !important;
    object-fit: cover;
    margin: 30px auto !important;
  }
  
  /* Product section title */
  .ShopYourFavorite {
    width: 90% !important;
    padding: 20px 15px !important;
    text-align: center;
    font-size: 28px !important;
    line-height: 1.3 !important;
    margin: 40px auto 20px !important;
  }
  
  /* Candle products */
  .Rectangle19, .Rectangle17, .Rectangle18, .Rectangle10 {
    width: 85% !important;
    max-width: 300px;
    height: 350px !important;
    border-top-left-radius: 175px !important;
    border-top-right-radius: 175px !important;
    object-fit: cover;
    margin: 20px auto !important;
  }
  
  /* Category bar */
  .Rectangle8 {
    width: 100% !important;
    min-height: auto !important;
    padding: 20px 0 !important;
    margin: 40px 0 !important;
  }
  
  /* Category links */
  .ShopAll, .OurCollections, .CandleAccessories, .CustomCandles {
    width: 90% !important;
    max-width: 350px;
    padding: 15px 10px !important;
    text-align: center;
    font-size: 20px !important;
    margin: 15px auto !important;
  }
  
  /* Background image */
  .Rectangle13 {
    width: 100% !important;
    min-height: 300px !important;
    margin: 40px 0 !important;
  }
  
  /* About section container */
  .Rectangle14 {
    width: 90% !important;
    max-width: 500px;
    padding: 30px 20px 40px !important;
    border-radius: 20px !important;
    margin: -100px auto 30px !important;
  }
  
  .AboutUs {
    width: 100% !important;
    padding: 0 20px !important;
    text-align: center;
    font-size: 36px !important;
    margin: 20px auto !important;
  }
  
  .ScentopiaIsAnAmazingFragranceStudio {
    width: 100% !important;
    padding: 15px 20px !important;
    font-size: 16px !important;
    text-align: left !important;
    line-height: 1.6 !important;
    margin: 20px auto !important;
  }
  
  .Rectangle51 {
    width: 80% !important;
    max-width: 280px;
    height: 50px !important;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    margin: 30px auto 20px !important;
  }
  
  .Rectangle51:active {
    transform: scale(0.95);
  }
  
  .LearnMore {
    width: 100% !important;
    padding: 12px 0 !important;
    font-size: 22px !important;
    text-align: center;
    cursor: pointer;
    user-select: none;
    margin: -42px auto 0 !important;
  }
  
  /* Second category bar */
  .Rectangle16 {
    width: 100% !important;
    min-height: auto !important;
    padding: 20px 0 !important;
    margin: 40px 0 !important;
  }
  
  /* Connect section */
  .GetConnectWithUs {
    width: 90% !important;
    padding: 20px 15px !important;
    text-align: center;
    font-size: 32px !important;
    line-height: 1.3 !important;
    margin: 40px auto 30px !important;
  }
  
  /* Second hero image */
  .Rectangle15 {
    width: 90% !important;
    max-width: 400px;
    height: 400px !important;
    border-top-left-radius: 200px !important;
    border-top-right-radius: 200px !important;
    object-fit: cover;
    margin: 30px auto !important;
  }
  
  .Rectangle52 {
    width: 80% !important;
    max-width: 280px;
    height: 50px !important;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    margin: 40px auto 20px !important;
  }
  
  .Rectangle52:active {
    transform: scale(0.95);
  }
  
  .ContactUs {
    width: 100% !important;
    padding: 12px 0 !important;
    font-size: 22px !important;
    text-align: center;
    cursor: pointer;
    user-select: none;
    margin: -42px auto 0 !important;
  }
  
  /* Ellipses - hide on mobile as they don't work well */
  .Ellipse1, .Ellipse2 {
    display: none !important;
  }
  
  /* Footer */
  .Group10 {
    width: 90% !important;
    max-width: 500px;
    padding: 30px 20px !important;
    margin: 50px auto 30px !important;
  }
  
  .Rectangle65 {
    position: absolute !important;
    width: 100% !important;
    height: 100% !important;
    left: 0 !important;
    top: 0 !important;
  }
  
  .Group9 {
    width: 100% !important;
    text-align: center;
    position: relative !important;
    margin: 0 auto !important;
  }
  
  .FollowUs {
    width: 100% !important;
    font-size: 20px !important;
    margin-bottom: 20px !important;
  }
  
  .Group7 {
    position: relative !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    justify-content: center !important;
    gap: 20px !important;
  }
  
  /* Marquee sections */
  .Frame31 {
    width: 100% !important;
    height: 60px !important;
    margin: 30px 0 !important;
  }
  
  .Frame31 .Group19 {
    height: 60px !important;
  }
  
  .Frame31 .ScentopiaCandleCo {
    height: 60px !important;
  }
  
  .Frame31 .ScentopiaCandleCo::before {
    font-size: 40px !important;
    line-height: 60px !important;
  }
  
  .Frame31 .Star13 {
    display: none !important;
  }
}

/* Extra small mobile */
@media (max-width: 480px) {
  .logo-section .logo-text {
    font-size: 18px !important;
  }
  
  .EscapeToTranquility span:first-child {
    font-size: 28px !important;
  }
  
  .EscapeToTranquility span:last-child {
    font-size: 34px !important;
  }
  
  .ShopYourFavorite {
    font-size: 26px !important;
  }
  
  .AboutUs {
    font-size: 34px !important;
  }
  
  .GetConnectWithUs {
    font-size: 28px !important;
  }
  
  .ScentopiaIsAnAmazingFragranceStudio {
    font-size: 16px !important;
  }
  
  .Frame31 .ScentopiaCandleCo::before {
    font-size: 36px !important;
  }
  
  .ShopAll, .OurCollections, .CandleAccessories, .CustomCandles {
    font-size: 18px !important;
  }
}
