@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --primary: #c7c0b9; /* R:199,G:192,B:185 */
  --secondary: #ffffff; /* R:255,G:255,B:255 */
  --tertiary: #ece7e4; /* R:236,G:231,B:228 */
  --text: #333333;
  --text-light: #666666;
  --border: #e0e0e0;
  --accent: #333333;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 8rem;
}

@font-face { 
  font-family: 'Choco'; 
  src: url('font/Choco-Zp7X3.ttf') format('truetype');
  font-weight: normal; 
  font-style: normal;
}


/* ==========================
   PRELOADER STYLING
========================== */

#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.loader-text {
  font-family: 'Choco', sans-serif;
  font-size: 3rem;
  color: #212121;
  letter-spacing: 2px;
  animation: fadePulse 1.8s infinite ease-in-out;
}

@keyframes fadePulse {
  0% { opacity: 0.4; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1); }
  100% { opacity: 0.4; transform: scale(0.98); }
}



/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--secondary);
  color: var(--text);
  line-height: 1.6;
  scroll-behavior: smooth;
  font-weight: 400;
}

.hamburger{
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
}

.menu-close{
  display: none;
}

/* Top bar */
.top-bar{
  position: relative;
  background: #000;
  color: var(--secondary);
  text-align: center;
  padding: 0.5rem 0;
  font-size: 0.9rem;
  font-weight: 500;
}

/* HEADER - Fixed for proper desktop layout */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--secondary);
  border-bottom: 1px solid var(--border);
  height: auto;
}

/* Logo section */
.name {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.site-title {
  font-family: 'Choco', sans-serif;
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--text);
  letter-spacing: 1px;
}

/* Navigation - centered */
nav {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: center;
  flex: 1;
  max-width: 400px;
  margin: 0 auto;
}

nav a {
  text-decoration: none;
  font-weight: 400;
  color: var(--text);
  font-size: 0.9rem;
  position: relative;
  transition: color 0.2s ease;
  white-space: nowrap;
}

nav a:hover {
  color: var(--accent);
}

nav a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 1px;
  left: 0;
  bottom: -4px;
  background: var(--text);
  transition: width 0.3s;
}

nav a:hover::after {
  width: 100%;
}

/* Right side icons */
.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex: 0 0 auto;
}

/* Cart link */
.cart-link {
  font-size: 1.2rem;
  color: var(--text);
  position: relative;
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: color 0.2s ease;
  top: 4px;
}

.cart-link:hover {
  color: var(--accent);
}

#cart-count {
  background: var(--text);
  color: var(--secondary);
  padding: 0.2rem 0.5rem;
  border-radius: 50%;
  font-size: 0.7rem;
  position: absolute;
  top: -8px;
  right: -10px;
}

/* Desktop profile icon styling */
.desktop-profile-icon {
  display: flex;
  align-items: center;
}

.desktop-profile-icon a {
  text-decoration: none;
  color: var(--text);
  font-size: 1.5rem;
  transition: color 0.2s ease;
}

.desktop-profile-icon a:hover {
  color: var(--accent);
}

/* Hamburger (hidden on desktop) */
.hamburger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text);
  position: relative;
  z-index: 1001;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.hamburger.active {
  transform: rotate(90deg);
}

/* Hide mobile profile by default */
.mobile-profile {
  display: none;
}

/* Animations for mobile menu */
.menu-overlay {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Blur effect for content when menu is open */
body.menu-open main {
  filter: blur(5px);
  transition: filter 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Discover Section */
.discover {
  margin: 0;
  text-align: center;
  background: var(--secondary);
}

.discover h2 {
  font-family: 'Choco', sans-serif;
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--text);
  margin-bottom: 0.7rem;
  padding-top: 50px;
  letter-spacing: 1px;
}

.discover h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2rem;
  color: var(--text);
  font-weight: 400;
}
.discover p {
  font-family: 'Source Sans Pro', sans-serif;
  color: var(--text-light);
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 3rem;
}

/* Overlay content */
.discover-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  text-align: center;
  padding: 1rem;
  padding-bottom: 50px;
  transition: background 0.3s ease;
}

.discover-content h3 {
  font-size: 1.7rem;
  margin-bottom: 1rem;
  font-weight: 500;
  color: var(--secondary);
}

.discover-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0rem;
  max-width: 1700px;
  margin: 0 auto;
}

.discover-card {
  position: relative;
  overflow: hidden;
  border: 1px ;
  background: #000;
}

.discover-card video,
.discover-card img {
  width: 100%;
  height: 700px;
  object-fit: cover;
  display: block;
}

.discover-card .btn2 {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.85);
  border: 1px solid var(--text);
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
}

/* HERO */
.hero {
  height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  background: var(--tertiary);
  color: var(--text);
  position: relative;
  overflow: hidden;
  object-fit: cover;
}

.hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.hero-video {
 position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 100vh;
  min-width: 100%;
  min-height: 100%;
  transform: translate(-50%, -50%);
  object-fit: cover;
  object-position: center center;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
}

.hero h1 {
  font-family: 'choco', sans-serif;
  font-size: 2.5rem;
  font-weight: bolder;
  margin-bottom: 1rem;
  letter-spacing: 1px;
  line-height: 1;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 2.5rem;
  color: var(--text-light);
  font-weight: 400;
}

/*button 1 */
.btn {
  display: inline-block;
  background: var(--text);
  color: var(--secondary);
  padding: 1rem 2rem;
  margin-bottom: 10px;
  border: 1px solid var(--text);
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  font-weight: 400;
}

.btn:hover {
  background: #ffffff00;
  color: var(--text);
}

/* button 2 - Secondary Style */
.btn2 {
  display: inline-block;
  background: transparent;
  color: var(--text);
  padding: 0.9rem 1.8rem;
  border: 1px solid var(--text);
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  font-weight: 400;
}

.btn2:hover {
  background: var(--text);
  color: var(--secondary);
}

/* ABOUT */
.about {
  padding: var(--spacing-xl) var(--spacing-sm);
  text-align: center;
  max-width: 700px;
  margin: auto;
  color: var(--text);
}

.about h2 {
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  letter-spacing: -0.5px;
}

.about p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* PRODUCTS */
.products {
  padding: var(--spacing-xl) var(--spacing-sm);
  background: var(--secondary);
}

.products h2 {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  font-size: 1.8rem;
  font-weight: 500;
  letter-spacing: -0.5px;
}

.product-slider {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 0;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 10;
  font-size: 1rem;
  color: var(--text);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide-btn:hover {
  background: var(--text);
  color: var(--secondary);
  border-color: var(--text);
}

.slide-btn.left {
  left: -20px;
}

.slide-btn.right {
  right: -20px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.product-card {
  background: var(--secondary);
  padding: 0;
  text-align: center;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}

.product-card img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  margin-bottom: 1rem;
  transition: opacity 0.3s ease;
}

.product-card:hover img {
  opacity: 0.9;
}

.product-card h3 {
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 0.5rem;
  padding: 0 1rem;
}

.product-card p {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 1.5rem;
  padding: 0 1rem;
}

.product-card .btn2 {
  margin-top: auto;
  margin-bottom: 1.5rem;
  align-self: center;
}

/* IMPACT */
.impact {
  padding: 20px;
  background: var(--tertiary);
  color: var(--text);
  text-align: center;
  font-size: 1rem;
  font-weight: 400;
}

/* FOOTER*/
footer {
  padding: var(--spacing-md);
  background: var(--secondary);
  color: var(--text);
  text-align: center;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
}

footer a {
  color: var(--text);
  text-decoration: underline;
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--accent);
}

/* RESPONSIVE DESIGN for product */
@media (max-width: 992px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    display: flex;           
    flex-wrap: nowrap;       
    overflow-x: auto;         
    gap: 1rem;               
    scroll-behavior: smooth;
  }
  
  .product-card {
    flex: 0 0 80%; 
    min-width: 250px; 
  }

  .hero h1 {
    font-size: 2rem;
  }
  
  .slide-btn {
    display: none;
  }
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
  .hamburger {
    display: block;
    position: absolute;
    left: 1rem;
    z-index: 1001;
  }
  
  header {
    padding: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 70px;
  }
  
  .name {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .site-title {
    font-size: 2rem;
    padding: 0;
    margin: 0;
    text-align: center;
    white-space: nowrap;
  }
  
  .header-right {
    position: absolute;
    right: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 1002;
  }
  
  .cart-link {
    margin-left: 0;
  }
  
  .mobile-profile {
    display: block;
  }

  .desktop-profile-icon {
    display: none;
  }

  nav {
    display: none;
  }

  .nav-links {
    display: flex;
    flex-direction: column;
    background: var(--secondary);
    position: fixed;
    top: 0;
    right: 0;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    padding: 5rem 1.5rem 2rem;
    box-shadow: -4px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    visibility: visible;
  }

  .nav-links:not(.show) {
    pointer-events: none;
  }

  .nav-links.show {
    transform: translateX(0);
    pointer-events: auto;
  }

  .nav-links a {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 1.1rem;
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  }

  .nav-links.show a {
    opacity: 1;
    transform: translateX(0);
  }

  /* Stagger the menu item animations */
  .nav-links.show a:nth-child(1) { transition-delay: 0.1s; }
  .nav-links.show a:nth-child(2) { transition-delay: 0.15s; }
  .nav-links.show a:nth-child(3) { transition-delay: 0.2s; }
  .nav-links.show a:nth-child(4) { transition-delay: 0.25s; }

  /* Close button for menu */
  .menu-close {
    display: block;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--text);
    opacity: 0;
    transform: rotate(-90deg);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  }

  .nav-links.show .menu-close {
    opacity: 1;
    transform: rotate(0deg);
    transition-delay: 0.35s;
  }



  /* Adjust hero for mobile */
  .hero {
    height: 70vh;
    padding: 5rem 1.5rem 1.5rem 1.5rem;
  }
  
  .hero h1 {
    font-size: 1.75rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .product-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .about, .products {
    padding: var(--spacing-lg) var(--spacing-sm);
  }
  
  .slide-btn {
    display: none;
  }

  /* Draggable slider enhancements */
  .product-grid {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .product-grid::-webkit-scrollbar {
    display: none;
  }

  .product-grid.active {
    cursor: grabbing;
    cursor: -webkit-grabbing;
  }

  /* Hero video adjustments for mobile */
  .hero-video {
    width: auto;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center top;
  }

  /* Responsive for discover*/
  @media (max-width: 992px) {
    .discover-grid {
      grid-template-columns: 1fr 1fr;
    }
    .discover-card video,
    .discover-card img {
      height: 250px;
    }
  }

  @media (max-width: 767px) {
    .discover-grid {
      grid-template-columns: 1fr;
    }

    .discover h2 {
      font-size: 2rem;
    }
    .discover h3 {
      font-size: 1.5rem;
      margin-bottom: 0.5rem;
    }
    .discover p {
      font-size: 1rem;
      margin-bottom: 3rem;
    }

    .discover-card {
      width: auto;
      height: 100%;
      min-width: 100%;
      max-height: 100%;
    }

    .discover-card video,
    .discover-card img {
      height: 500px;
      object-fit: cover;
      width: 100%;
    }
  }

  .impact{
    font-size: 0.8rem;
  }

  .footer {
    font-size: 0.9rem;
    padding: 10px;
  }
}

/* Desktop view for profile*/
@media screen and (min-width: 769px) {
  .desktop-profile {
    display: inline-block;
  }
  .mobile-profile {
    display: none;
  }
  .desktop-profile-icon {
    display: flex;
  }
  nav {
    display: flex;
  }
}

/* Mobile view for profile icon*/
@media screen and (max-width: 767px) {
  .nav-links a.desktop-profile {
    display: none;
  }
  
  .desktop-profile-icon {
    display: none;
  }
  
  .mobile-profile {
    display: block;
  }

  .mobile-profile a:visited,
  .mobile-profile a:active,
  .mobile-profile a:hover {
    color: inherit;
    text-decoration: none;
  }

  .mobile-profile i {
    font-size: 1.5rem;
    color: var(--text);
  }
}