:root{
  --accent:#00b8f1; /* yellow background */
  --dark:#222; /* top bar color */
  --muted:#f7f0d1;
}
*{box-sizing:border-box}
html,body{height:100%;margin:0;font-family:Montserrat,system-ui,Arial,sans-serif}

/* thin top info bar */
.topbar{
  background:var(--dark);
  color:#fff;
  font-size:13px;
  padding:12px 18px;
  text-align:center;
  letter-spacing:0.6px;
}

header{
  background:var(--accent);
  min-height:calc(100vh - 44px);
  display:flex;
  align-items:center;
  justify-content:center;
  position:relative;
  overflow:hidden;
}

/* logo centered at top */
.logo{
  position:absolute;
  top:-20px;
  left:50%;
  transform:translateX(-50%);
  font-family:Playball, cursive;
  font-size:40px;
  color:var(--dark);
  letter-spacing:1px;
}

.logo img {
  max-width: 220px; /* Adjust the size of the logo */
  height: auto;
}

/* hero content */
.hero{
  text-align:center;
  width:100%;
  max-width:1200px;
  padding:40px 24px 120px;
}

.scoop-wrap{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  max-width: 400px;
  width: 40vw;
  min-width: 100px;
}

.scoop-wrap img{
  display:block;
  width:100%;
  height:auto;
  object-fit:contain;
  filter:drop-shadow(0 18px 28px rgba(0,0,0,0.18));
}

.handcrafted {
  position: absolute;
  top: 57%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: 600;
  letter-spacing: 6px;
  color: #fff;
  z-index: 3;
  font-size: 22px;
  mix-blend-mode: normal;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.05);
  text-align: center;
  white-space: nowrap;
}

.big-title {
  position: absolute;
  top: 65%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  font-size: 110px;
  font-weight: 800;
  margin: 0;
  padding: 0;
  color: #fff;
  letter-spacing: 18px;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.cta {
  position: absolute;
  top: 90%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  display: inline-block;
  border: 3px solid rgba(0,0,0,0.6);
  padding: 10px 26px;
  background: transparent;
  font-weight: 600;
  text-decoration: none;
  color: var(--dark);
  border-radius: 4px;
  box-shadow: 0 6px 0 rgba(0,0,0,0.03);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.cta:hover {
  background: rgba(0,0,0,0.1);
}

/* subtle bottom curve */
.curved{
  position:absolute;
  bottom:-60px;
  left:0;right:0;
  height:120px;
  background:linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.03));
  border-top-left-radius:40px;
  border-top-right-radius:40px;
  transform:scaleX(1.06);
  pointer-events:none;
}

/* responsiveness */
@media (max-width:1000px){
  .big-title{
    font-size:64px;
    letter-spacing:10px;
    top: 65%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  .handcrafted{
    font-size:16px;
    top: 57%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  .scoop-wrap{
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  .cta{
    top: 87%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

/* Flavors Section */
.flavors-section {
  width: 100%;
  background: #fff;
  position: relative;

}

.flavors-container {
  display: flex;
  width: 100%;
  min-height: 500px;
  position: relative;
}

.flavors-image {
  width: 50%;
  position: relative;
  overflow: hidden;
  min-height: 500px;
  height: 100%;
}

.flavors-image img {
  width: 100%;
  height: 100%;
  min-height: 500px;
  object-fit: cover;
  display: block;
}

.flavors-content {
  width: 50%;
  background: #fff;
  padding: 60px 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.flavors-heading {
  font-size: 48px;
  font-weight: 800;
  color: #222;
  margin: 0 0 20px 0;
  text-align: center;
  width: 100%;
  letter-spacing: 2px;
}

.flavors-subheading {
  font-family: 'Playball', cursive;
  font-size: 32px;
  color: #222;
  margin: 0 0 30px 0;
  text-align: center;
  width: 100%;
}

.flavors-text {
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  margin: 0 0 40px 0;
  text-align: left;
  max-width: 100%;
  width: 100%;
}

.menu-button {
  display: inline-block;
  border: 2px solid #222;
  padding: 12px 40px;
  background: transparent;
  font-weight: 600;
  text-decoration: none;
  color: #222;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  margin: 0 auto;
}

.menu-button:hover {
  background: #222;
  color: #fff;
}

.flavors-bottom-line {
  width: 100%;
  height: 3px;
  background: #a8e6cf; /* mint green */
  margin-top: 0;
}

/* Ice Cream Carousel Section */
.ice-cream-carousel-section {
  width: 100%;
  background: var(--accent);
  padding: 80px 0;
  overflow: hidden;
  position: relative;
}

.carousel-container {
  width: 100%;
  position: relative;
  overflow: hidden;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-track {
  display: flex;
  align-items: center;
  gap: 40px;
  transition: transform 0.8s ease-in-out;
  will-change: transform;
}

.carousel-item {
  flex-shrink: 0;
  width: 250px;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.5s ease;
  position: relative;
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.carousel-item.center-item {
  transform: scale(1.5);
  z-index: 10;
}

/* Contact Section */
.contact-section {
  background: linear-gradient(180deg, #fff 0%, var(--muted) 100%);
  padding: 60px 20px;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-wrapper{
  width: 100%;
  max-width: 1200px;
  aspect-ratio: 16/9;
  display: flex;
  flex-direction: column;
  gap: 32px;
  justify-content: center;
  margin: 0 auto;
  padding: 40px;
  background: rgba(255,255,255,0.7);
  border-radius: 40px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.08);
}

.contact-intro {
  text-align: center;
  margin-bottom: 0;
}

.contact-eyebrow {
  font-family: Playball, cursive;
  font-size: 26px;
  color: var(--dark);
  margin: 0;
  letter-spacing: 1px;
}

.contact-intro h2 {
  font-size: 48px;
  margin: 10px 0;
  color: var(--accent);
  font-weight: 800;
}

.contact-divider {
  display: inline-block;
  width: 60px;
  height: 4px;
  background: var(--accent);
  border-radius: 999px;
}

.contact-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  width: 100%;
  align-items: stretch;
}

@media (max-width: 900px){
  .contact-wrapper{
    aspect-ratio: auto;
    padding: 30px 20px;
    border-radius: 24px;
  }
}

.contact-card {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.contact-image {
  background: rgba(0, 184, 241, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 30px 0;
}

.contact-image img {
  width: 100%;
  max-width: 320px;
  height: auto;
  filter: drop-shadow(0 18px 28px rgba(0,0,0,0.08));
}

.contact-info {
  padding: 36px 40px 48px;
  text-align: left;
}

.contact-info h3{
  margin: 0;
  font-size: 28px;
  color: var(--dark);
}

.contact-subtitle{
  margin: 8px 0 20px;
  font-size: 15px;
  color: rgba(0,0,0,0.6);
}

.contact-info-divider{
  display: block;
  width: 100%;
  height: 1px;
  background: rgba(0,0,0,0.08);
  margin: 20px 0 30px;
}

.contact-list{
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-item{
  background: rgba(0, 184, 241, 0.06);
  border-radius: 16px;
  padding: 20px 22px;
}

.contact-label {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(0,0,0,0.6);
  margin: 0 0 6px;
}

.contact-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #222;
}

.contact-text a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.contact-text a:hover {
  text-decoration: underline;
}

.contact-map {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0,0,0,0.12);
  background: linear-gradient(145deg, #fff, rgba(0, 184, 241, 0.1));
  min-height: 420px;
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* small footer */
footer {
  position: relative;
  width: 100%;
  text-align: center;
  font-size: 14px;
  color: rgba(0,0,0,0.65);
  padding: 24px 20px;
  background: #fff;
  border-top: 1px solid rgba(0,0,0,0.05);
}

.footer-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.footer-socials {
  display: flex;
  gap: 18px;
  font-weight: 600;
  flex-wrap: wrap;
}

.footer-socials a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.footer-socials a:hover {
  opacity: 0.7;
}

.footer-socials svg{
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Enhanced responsiveness */
@media (max-width: 1000px) {
  .big-title {
    font-size: 64px;
    letter-spacing: 10px;
  }
  .handcrafted {
    font-size: 16px;
  }
  .flavors-content {
    padding: 50px 50px;
  }
  .flavors-heading {
    font-size: 36px;
  }
  .flavors-subheading {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .flavors-container {
    flex-direction: column;
    min-height: auto;
  }
  
  .flavors-image {
    width: 100%;
    height: 300px;
    min-height: 300px;
    overflow: hidden;
  }
  
  .flavors-image img {
    min-height: 300px;
    height: 100%;
  }
  
  .flavors-content {
    width: 100%;
    padding: 40px 30px;
    align-items: center;
  }
  
  .flavors-heading {
    font-size: 32px;
    text-align: center;
  }
  
  .flavors-subheading {
    font-size: 24px;
    text-align: center;
  }
  
  .flavors-text {
    text-align: center;
    margin-bottom: 30px;
  }
  
  .scoop-wrap {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50vw;
    max-width: 350px;
  }
  
  .handcrafted {
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    letter-spacing: 4px;
  }
  
  .big-title {
    top: 63%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    letter-spacing: 8px;
  }
  
  .cta {
    top: 85%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 520px) {
  .logo {
    font-size: 28px;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
  }
  .logo img {
    max-width: 150px;
  }
  
  .scoop-wrap {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    max-width: 280px;
    min-width: 200px;
  }
  
  .handcrafted {
    top: 53%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
    letter-spacing: 3px;
    white-space: nowrap;
  }
  
  .big-title {
    top: 61%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 36px;
    letter-spacing: 4px;
    white-space: nowrap;
  }
  
  .cta {
    top: 83%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 8px 20px;
    font-size: 13px;
    white-space: nowrap;
  }
  
  .topbar {
    font-size: 11px;
    padding: 7px 12px;
    line-height: 1.4;
  }
  
  .flavors-content {
    padding: 30px 20px;
  }
  .flavors-heading {
    font-size: 28px;
    letter-spacing: 1px;
  }
  .flavors-subheading {
    font-size: 22px;
  }
  .flavors-text {
    font-size: 14px;
  }
  .menu-button {
    padding: 10px 30px;
    font-size: 14px;
  }
  .contact-intro h2 {
    font-size: 36px;
  }
  .contact-section {
    padding: 80px 16px;
  }
  .contact-info {
    padding: 30px;
  }
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  .footer-socials {
    justify-content: center;
  }
  
  .ice-cream-carousel-section {
    padding: 50px 0;
  }
  
  .carousel-container {
    height: 300px;
  }
  
  .carousel-item {
    width: 180px;
    height: 220px;
  }
  
  .carousel-track {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .ice-cream-carousel-section {
    padding: 40px 0;
  }
  
  .carousel-container {
    height: 250px;
  }
  
  .carousel-item {
    width: 150px;
    height: 180px;
  }
  
  .carousel-track {
    gap: 15px;
  }
}

/* The container that covers the whole screen */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #00b8f1; /* Change to match your site background */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999; /* High z-index ensures it sits on top */
  transition: opacity 0.5s ease; /* Smooth fade out */
}

/* Class to hide the preloader */
.hidden {
  opacity: 0;
  pointer-events: none; /* Allows clicking through after it fades */
}
