* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Outfit", "Inter", sans-serif;
}

:root {
  --primary: #f5a623;
  --primary-dark: #cc8400;
  --bg-dark: #0a0a0a;
  --bg-card: #151515;
  --text-white: #ffffff;
  --text-gray: #b0b0b0;
  --accent-red: #e74c3c;
  --glass: rgba(255, 255, 255, 0.05);
}

body {
  background-color: var(--bg-dark);
  color: var(--text-white);
  overflow-x: hidden;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slowGlow {
  0%,
  100% {
    filter: drop-shadow(0 0 10px rgba(245, 166, 35, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 25px rgba(245, 166, 35, 0.6));
  }
}

@keyframes rotate3DSteady {
  0% {
    transform: perspective(1000px) rotateY(0deg);
  }
  100% {
    transform: perspective(1000px) rotateY(360deg);
  }
}

@keyframes dosaDash {
  0% {
    top: 20%;
    left: -20%;
    transform: perspective(1000px) rotateX(45deg) rotateY(-45deg) rotateZ(0deg) scale(0.6);
    opacity: 0;
  }
  20% {
    opacity: 1;
    left: 10%;
  }
  50% {
    top: 50%;
    left: 50%;
    transform: perspective(1000px) rotateX(10deg) rotateY(180deg) rotateZ(360deg) scale(1.5);
  }
  80% {
    opacity: 1;
    left: 90%;
  }
  100% {
    top: 100%;
    left: 120%;
    transform: perspective(1000px) rotateX(45deg) rotateY(360deg) rotateZ(720deg) scale(0.6);
    opacity: 0;
  }
}

/* Rolling Dosa Animation */
.rolling-dosa {
  position: absolute;
  top: 95px; /* Adjusted to align better with left text */
  left: -150px; /* Start off-screen */
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid var(--primary);
  box-shadow: 0 0 20px rgba(245, 166, 35, 0.5);
  background: var(--bg-card);
  overflow: hidden;
  z-index: 10;
  opacity: 0;
  transition: all 1s ease-out;
}

.rolling-dosa img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rolling-dosa.active {
  animation: rollAndStop 3.5s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

@keyframes rollAndStop {
  0% {
    left: -150px;
    transform: perspective(800px) rotateY(-90deg) rotate(0deg);
    opacity: 1;
  }
  100% {
    left: 15px; /* Moved slightly further left */
    transform: perspective(800px) rotateY(0deg) rotate(720deg);
    opacity: 1;
  }
}

/* Menu Scatter Animation */
.menu-card {
  opacity: 0; /* Hidden initially */
}

.menu-card.scatter-active {
  animation: assemble 2.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes assemble {
  0% {
    opacity: 0;
    transform: translate(var(--tx), var(--ty)) rotateY(90deg) rotateX(45deg) rotate(var(--tr)) scale(0.5);
  }
  60% {
    opacity: 0.8;
  }
  100% {
    opacity: 1;
    transform: translate(0, 0) rotateY(0deg) rotateX(0deg) rotate(0) scale(1);
  }
}

.running-dosa-container {
  position: fixed;
  top: 50%;
  left: -20%;
  width: 200px;
  height: auto;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
}

.running-dosa-container.active {
  animation: dosaDash 4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.running-dosa-img {
  width: 100%;
  filter: drop-shadow(0 0 20px rgba(245, 166, 35, 0.6));
}

.profile-container {
  margin-bottom: 30px;
  animation: fadeInUp 1s ease-out;
}

.profile-img {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 4px solid var(--primary);
  padding: 5px;
  background: var(--bg-card);
  box-shadow: 0 0 40px rgba(245, 166, 35, 0.6);
  animation: rotate3DSteady 8s linear infinite;
  object-fit: contain;
}

/* Navbar */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(10, 10, 10, 0.8);
  backdrop-filter: blur(15px);
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.logo img {
  height: 50px;
  border-radius: 50%;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  color: var(--text-white);
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
  font-size: 16px;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-white);
  transition: 0.3s;
}

.menu-toggle:hover {
  color: var(--primary);
}

/* Hero Section */
.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 5%;
  background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url("hero-bg.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
}

.hero h1 {
  font-size: clamp(40px, 8vw, 90px);
  font-weight: 900;
  margin-bottom: 10px;
  line-height: 1.1;
  text-transform: uppercase;
  animation: fadeInUp 1s ease-out;
}

.hero h1 span {
  color: var(--primary);
}

.hero p {
  font-size: 20px;
  color: var(--text-gray);
  max-width: 600px;
  margin-bottom: 30px;
  animation: fadeInUp 1s ease-out 0.2s backwards;
}

.btn-primary {
  padding: 15px 40px;
  background: var(--primary);
  color: #000;
  text-decoration: none;
  font-weight: 700;
  border-radius: 50px;
  font-size: 18px;
  transition: 0.4s;
  box-shadow: 0 10px 20px rgba(245, 166, 35, 0.3);
  animation: fadeInUp 1s ease-out 0.4s backwards;
}

.btn-primary:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(245, 166, 35, 0.5);
  background: #fff;
}

/* Menu Section */
.section {
  padding: 100px 8%;
  position: relative; /* For absolute positioning of rolling dosa */
  overflow: hidden; /* Hide rolling dosa when outside */
}

.section-title {
  text-align: left; /* Changed from center to left */
  margin-bottom: 60px;
  padding-left: 120px; /* Added room for the rolling sticker */
  position: relative;
}

.section-title h2 {
  font-size: 44px; /* Slightly larger for premium look */
  margin-bottom: 10px;
  text-transform: uppercase;
  font-weight: 900;
}

.section-title .line {
  width: 80px;
  height: 4px;
  background: var(--primary);
  margin: 10px 0; /* Changed from 0 auto to align left */
  border-radius: 2px;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.menu-card {
  background: var(--bg-card);
  padding: 30px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: 0.4s;
  position: relative;
  overflow: hidden;
  /* Remove default opacity transition to let animation take over */
  /* transition: 0.4s; kept for hover */
}

.menu-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  background: #1a1a1a;
}

.menu-card h3 {
  font-size: 24px;
  margin-bottom: 10px;
  color: var(--primary);
}

.menu-image {
  width: 100%;
  height: 200px;
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid rgba(245, 166, 35, 0.2);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.menu-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.5s;
}

.menu-card:hover .menu-image img {
  transform: scale(1.1);
}

.menu-card p {
  color: var(--text-gray);
  line-height: 1.6;
  font-size: 16px;
}

.price {
  display: block;
  margin-top: 15px;
  font-weight: 700;
  color: var(--text-white);
  font-size: 20px;
}

/* Location/Contact */
.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  background: var(--bg-card);
  padding: 40px;
  border-radius: 30px;
}

.contact-info {
  flex: 1;
  min-width: 300px;
}

.info-item {
  margin-bottom: 25px;
}

.info-item h4 {
  color: var(--primary);
  margin-bottom: 5px;
  font-size: 18px;
}

.info-item p {
  font-size: 17px;
  color: var(--text-gray);
}

.mapcontainer {
  flex: 1;
  min-width: 300px;
  height: 300px;
  background: #222;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #444;
}

/* Footer */
footer {
  padding: 50px 8%;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-gray);
}

.social-links {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.social-links a {
  color: var(--text-white);
  font-size: 24px;
  transition: 0.3s;
}

.social-links a:hover {
  color: var(--primary);
}

@media (max-width: 768px) {
  nav {
    padding: 15px 5%;
  }
  
  .logo {
      font-size: 18px;
  }
  
  .logo img {
      height: 40px;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
    padding: 50px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .nav-links a {
    font-size: 24px;
    font-weight: 700;
  }

  .hero h1 {
    font-size: 45px;
  }
  
  #order-link {
      padding: 8px 15px !important;
      font-size: 12px !important;
  }
}

/* Admin Panel UI */
.admin-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
    transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-overlay.active {
    display: flex;
}

.admin-panel {
    width: 90%;
    max-width: 1000px;
    height: 85vh;
    background: var(--bg-card);
    border: 1px solid rgba(245, 166, 35, 0.2);
    border-radius: 30px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 50px 100px rgba(0, 0, 0, 0.5);
    animation: panelEnter 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes panelEnter {
    from { opacity: 0; transform: scale(0.9) translateY(40px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.admin-sidebar {
    width: 250px;
    background: rgba(255, 255, 255, 0.03);
    padding: 40px 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.admin-sidebar h2 {
    color: var(--primary);
    font-size: 20px;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-btn {
    width: 100%;
    padding: 15px 20px;
    background: transparent;
    border: none;
    color: var(--text-gray);
    text-align: left;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
    margin-bottom: 10px;
    transition: 0.3s;
}

.sidebar-btn.active, .sidebar-btn:hover {
    background: var(--primary);
    color: #000;
}

.admin-content {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
}

.admin-section {
    display: none;
}

.admin-section.active {
    display: block;
}

.input-group {
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-gray);
    font-size: 14px;
}

.input-group input, .input-group textarea, .input-group select {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #fff;
    outline: none;
    transition: 0.3s;
}

.input-group input:focus {
    border-color: var(--primary);
}

.admin-item-row {
    background: rgba(255, 255, 255, 0.03);
    padding: 15px;
    border-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.delete-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}

.btn-save {
    background: var(--primary);
    color: #000;
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.3s;
}

.btn-save:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(245, 166, 35, 0.3);
}

.close-admin {
    position: absolute;
    top: 30px;
    right: 30px;
    background: transparent;
    border: none;
    color: var(--text-gray);
    font-size: 30px;
    cursor: pointer;
}

.login-form {
    width: 400px;
    padding: 40px;
    background: var(--bg-card);
    border-radius: 30px;
    text-align: center;
}

