/* =============================================
   CRUNCH & VIBE — Royal Edition (Final Accuracy)
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Pacifico&family=Poppins:wght@300;400;600;700&family=Montserrat:wght@400;700;900&display=swap');

:root {
  --primary-gold: #F2A900;
  --secondary-blue: #1E3A8A;
  --bg-dark: #121212;
  --text-light: #ffffff;
  --text-dark: #333333;
  --grey-light: #f9f9f9;
  --white: #ffffff;
  
  --font-royal: 'Pacifico', cursive;
  --font-main: 'Poppins', sans-serif;
  --font-heading: 'Montserrat', sans-serif;
  
  --transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
  --shadow-royal: 0 10px 30px rgba(0,0,0,0.1);
}
.waffle-diagram{
position:relative;
width:520px;
height:420px;
margin:auto;
}

.center-product{
position:absolute;
left:50%;
top:55%;
transform:translate(-50%,-50%);
z-index:2;
}

.center-product img{
width:260px;
animation:centerFloat 4s ease-in-out infinite;
}

.node{
position:absolute;
text-align:center;
font-weight:700;
color:#1d4ed8;
}

.node img{
width:90px;
margin-bottom:5px;
}

.waffles{
top:10px;
left:200px;
animation:float 3s infinite ease-in-out;
}

.shakes{
top:80px;
right:20px;
animation:float 3.5s infinite ease-in-out;
}

.pancakes{
bottom:80px;
left:10px;
animation:float 4s infinite ease-in-out;
}

.sticks{
bottom:20px;
right:150px;
animation:float 3.5s infinite ease-in-out;
}

@keyframes float{
0%{transform:translateY(0);}
50%{transform:translateY(-12px);}
100%{transform:translateY(0);}
}

@keyframes centerFloat{
0%{transform:translate(-50%,-50%) translateY(0);}
50%{transform:translate(-50%,-50%) translateY(-10px);}
100%{transform:translate(-50%,-50%) translateY(0);}
}

.best-waffle-layout{
display:flex;
align-items:center;
justify-content:space-between;
gap:60px;
}

.left-waffle{
position:relative;
width:520px;
height:420px;
}

.right-vector{
width:450px;
display:flex;
justify-content:center;
align-items:center;
}

/* Base Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: var(--font-main);
  color: var(--text-dark);
  background-color: var(--white);
  overflow-x: hidden;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; height:100%; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px 0;
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  background: var(--bg-dark);
  padding: 10px 0;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-family: var(--font-main);
  font-size: 1.5rem;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-logo img {
  height: 80px;
  width: 80px;
  object-fit: contain;
}

.nav-logo span { color: var(--primary-gold); }

.nav-links { display: flex; gap: 20px; align-items: center; }

.nav-links a {
  color: var(--text-light);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
  transition: var(--transition);
}

.nav-links a:hover { color: var(--primary-gold); }

/* --- Hero Section --- */
.hero {
  height: 100vh;
  display: flex;
  position: relative;
  overflow: hidden;
}

.hero-left {
  flex: 1;
  background-color: var(--bg-dark);
  background-image: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('images/maingate.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  padding-left: 10%;
  color: var(--text-light);
  position: relative;
  z-index: 2;
}

.hero-right {
  flex: 1;
  background-color: var(--primary-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Torn Edge Effect */
.hero-left::after {
  content: '';
  position: absolute;
  top: 0;
  right: -50px;
  width: 100px;
  height: 100%;
  background: inherit;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 1000' preserveAspectRatio='none'%3E%3Cpath d='M0 0 c10 50 40 100 50 150 c10 50 -30 100 -20 150 c10 50 40 100 50 150 c10 50 -30 100 -20 150 c10 50 40 100 50 150 c10 50 -30 100 -20 150 c10 50 40 100 50 150 c10 50 -30 100 -20 150 c10 50 40 100 50 150 c10 50 -30 100 -20 150 L0 1000' /%3E%3C/svg%3E");
  mask-size: 100% 100%;
  z-index: 1;
}

.hero-content { max-width: 500px; }

.hero-title {
  font-family: var(--font-royal);
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 20px;
  animation: slideLeft 1s ease forwards;
}

.hero-title-1{
  color: #F2A900;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

.hero-image-container {
  width: 80%;
  position: relative;
  z-index: 5;
}

.hero-image-container img {
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
}

.floating-waffle {
  animation: floatingWaffle 4s infinite ease-in-out;
}

@keyframes floatingWaffle {
  0%, 100% { transform: translateY(0) rotate(0); }
  50% { transform: translateY(-30px) rotate(3deg); }
}

.hero-decor {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background: var(--text-light);
  opacity: 0.1;
  z-index: 1;
}
.decor-1 { width: 100px; height: 100px; top: 20%; right: 10%; }
.decor-2 { width: 50px; height: 50px; bottom: 30%; left: 40%; }
.decor-3 { width: 150px; height: 150px; bottom: 10%; right: 20%; background: var(--secondary-blue); }

.hero-features { display: flex; gap: 30px; margin-top: 50px; }
.hero-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}
.hero-feature i { font-size: 2rem; color: var(--primary-gold); }
.hero-feature p { font-size: 0.85rem; font-weight: 600; max-width: 150px; }

.btn-royal {
  padding: 15px 35px;
  background: var(--primary-gold);
  color: var(--text-dark);
  font-family: var(--font-royal);
  font-size: 1.5rem;
  border-radius: 5px;
  display: inline-block;
  transition: var(--transition);
  border: none;
  cursor: pointer;
}
.btn-royal:hover { transform: translateY(-5px); background: white; }

/* --- Royal Invitation --- */
.invitation-section {
  padding: 120px 0;
  background: var(--white);
  text-align: center;
}

.invitation-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  align-items: flex-end;
  gap: 20px;
}

.royal-subtitle {
  font-family: var(--font-royal);
  color: var(--secondary-blue);
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.invitation-text h2 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-weight: 900;
  font-size: 2.5rem;
  margin-bottom: 30px;
  color: #1a1a1a;
  line-height: 1.2;
}
.invitation-text h2 span { color: var(--secondary-blue); }

.invitation-body {
  font-size: 1rem;
  color: #555;
  text-align: left;
  max-width: 650px;
  margin: 0 auto;
}
.invitation-body p { margin-bottom: 15px; }

.invitation-char img { filter: drop-shadow(0 10px 20px rgba(0,0,0,0.1)); }

/* --- Best Waffle Section --- */
.best-waffle-section {
    padding: 100px 0;
    background: var(--primary-gold);
}
.split-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 80px;
}
.split-text h2 {
    font-family: var(--font-royal);
    font-size: 3rem;
    color: #1a1a1a;
    margin-bottom: 25px;
}
.split-text h2 span { color: var(--secondary-blue); }
.split-text p {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.8;
}
.split-image img { filter: drop-shadow(0 30px 60px rgba(0,0,0,0.2));max-width: 120%; height:100%; }

.waffle-animation{
position:relative;
width:500px;
height:500px;
margin:auto;
}

.center-waffle{
position:absolute;
top:50%;
left:50%;
transform:translate(-50%,-50%);
z-index:2;
}

.center-waffle img{
width:260px;
animation: float 4s ease-in-out infinite;
}

.item{
position:absolute;
text-align:center;
font-weight:600;
color:#1e3a8a;
}

.item img{
width:90px;
}

.waffles{
top:20px;
left:180px;
animation: float 3s infinite ease-in-out;
}

.shakes{
top:120px;
right:0;
animation: float 4s infinite ease-in-out;
}

.pancakes{
bottom:120px;
left:0;
animation: float 3.5s infinite ease-in-out;
}

.sticks{
bottom:40px;
right:120px;
animation: float 4.5s infinite ease-in-out;
}

@keyframes float{
0%{transform:translateY(0px);}
50%{transform:translateY(-15px);}
100%{transform:translateY(0px);}
}

/* --- Category Section --- */
.category-section {
  padding: 100px 0;
  background: var(--white);
}
.category-title { text-align: center; margin-bottom: 80px; }
.category-title h2 {
    font-family: var(--font-royal);
    font-size: 3.2rem;
    color: #1a1a1a;
}
.category-title h2 span { color: var(--secondary-blue); }

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}
.category-item { text-align: center; position: relative; }
.category-img {
  width: 250px; height: 250px;
  margin: 0 auto 20px;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.category-img::before {
  content: '';
  position: absolute;
  width: 100%; height: 100%;
  background: var(--primary-gold);
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 500 500'%3E%3Cpath d='M438.3,278.2c16.1-40.8,40.1-137.9-20.3-203.2c-55.9-60.4-150-51.4-194.2-46c-48,5.9-106.3,13.1-150.3,56.7 C30,129.7,35,178.5,37.3,200.7c3.4,32.3,10.1,96.3,47.8,143.9c48.6,61.4,142.1,66.9,188,69.5c59.4,3.3,153.1,8.5,203.3-51.5 C495.6,339,454.4,287.9,438.3,278.2z'/%3E%3C/svg%3E");
  mask-size: contain; mask-repeat: no-repeat; z-index: 1; opacity: 0.9;
}
.category-img img {
  position: relative; z-index: 2; width: 200px;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.category-item:hover img { transform: scale(1.15) rotate(5deg); }
.category-item h3 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  color: var(--secondary-blue);
  font-weight: 800; font-size: 1.4rem;
}

/* --- System & Supports --- */
.system-supports-section { padding: 100px 0; background: #fff; overflow: hidden; }
.section-title-center { text-align: center; margin-bottom: 70px; }
.section-title-center h2 { font-family: var(--font-royal); font-size: 3.5rem; }
.section-title-center h2 span { color: var(--primary-gold); }

.support-layout {
    display: grid; grid-template-columns: 1fr 1fr 1fr;
    align-items: center; gap: 30px;
}
.support-column { display: flex; flex-direction: column; gap: 20px; }
.support-card {
    background: var(--primary-gold);
    padding: 15px 20px; border-radius: 12px;
    display: flex; align-items: center; justify-content: space-between;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
}
.support-card:hover { transform: translateX(10px); background: var(--secondary-blue); color: white; }
.right-col .support-card:hover { transform: translateX(-10px); }
.support-text { font-size: 0.9rem; font-weight: 600; flex: 1; }
.support-icon {
    width: 45px; height: 45px; background: var(--secondary-blue);
    color: white; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; margin-left: 15px;
}
.support-card:hover .support-icon { background: var(--primary-gold); color: var(--secondary-blue); }
.support-center { text-align: center; }
.center-logo { width: 300px; animation: floatingWaffle 5s infinite ease-in-out; }
.center-tagline { font-family: var(--font-royal); font-size: 1.8rem; color: var(--secondary-blue); margin-top: 20px; }

/* --- Reveal Animations --- */
.reveal-up, .reveal-left, .reveal-right {
    opacity: 0; transform: translateY(40px);
    transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
    transition-delay: var(--d, 0s);
}
.reveal-left { transform: translateX(-50px); }
.reveal-right { transform: translateX(50px); }
.reveal-visible { opacity: 1; transform: translate(0, 0) !important; }

/* --- Subscription & Footer --- */
.sub-bar {
  background: var(--primary-gold);
  padding: 40px 0; border-radius: 20px;
  max-width: 1100px; margin: -60px auto 0;
  position: relative; z-index: 10;
  display: flex; align-items: center; justify-content: space-around;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.sub-text h3 { font-family: var(--font-royal); font-size: 2.2rem; }
.sub-form { display: flex; gap: 15px; }
.sub-form input { padding: 15px 25px; border: none; border-radius: 5px; width: 300px; }
.sub-form button {
  padding: 15px 30px; background: var(--secondary-blue);
  color: white; border: none; border-radius: 5px; cursor: pointer;
}

.footer { padding: 120px 0 40px; margin-top: -60px; position: relative; }
.footer::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 60px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z' fill='%23121212'/%3E%3C/svg%3E");
  background-size: 100% 100%;
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 50px; }
.footer-brand h2 { font-family: var(--font-royal); font-size: 2.5rem; margin-bottom: 20px; }
.social-links { display: flex; gap: 15px; margin-top: 20px; }
.social-links a {
  width: 40px; height: 40px; background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
}
.social-links a:hover { background: var(--primary-gold); color: var(--text-dark); }
.link-col h4 { font-family: var(--font-heading); text-transform: uppercase; margin-bottom: 25px; color: var(--primary-gold); }
.link-col ul li { margin-bottom: 12px; }
.link-col ul li a { opacity: 0.7; }
.link-col ul li a:hover { opacity: 1; color: var(--primary-gold); padding-left: 5px; }

.footer-bottom { text-align: center; margin-top: 80px; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); opacity: 0.6; }

@keyframes slideLeft { from { transform: translateX(-50px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

@media (max-width: 991px) {
  .hero { flex-direction: column; height: auto  ; }
  .hero-left { padding: 50px 30px 50px; text-align: center; }
  .hero-left::after { display: none; }
  .hero-right { padding: 50px 0; }
  .invitation-grid { grid-template-columns: 1fr; }
  .support-layout { grid-template-columns: 1fr; }
  .split-container { grid-template-columns: 1fr; gap: 40px; }
}
