/* ===================================
   CSS Variables
   =================================== */
:root {
  /* Colors - Casual Döner Restaurant Theme */
  --primary-color: #e74c3c;
  --primary-dark: #c0392b;
  --primary-light: #ff6b6b;
  --secondary-color: #f39c12;
  --secondary-dark: #d68910;
  --accent-color: #27ae60;

  --text-dark: #2c3e50;
  --text-light: #7f8c8d;
  --text-white: #ffffff;

  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --bg-dark: #34495e;

  --border-color: #ecf0f1;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.16);

  /* Typography */
  --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-heading: 'Georgia', 'Times New Roman', serif;

  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-full: 50%;
}

/* ===================================
   Reset & Base Styles
   =================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-primary);
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--bg-white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* ===================================
   Utilities
   =================================== */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: var(--spacing-sm);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-top: var(--spacing-md);
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition-normal);
  text-align: center;
  cursor: pointer;
}

.btn--primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  color: var(--text-white);
  box-shadow: var(--shadow-md);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--secondary {
  background: transparent;
  color: var(--text-white);
  border: 2px solid var(--text-white);
}

.btn--secondary:hover {
  background: var(--text-white);
  color: var(--primary-color);
}

/* Rating Stars */
.rating-stars {
  display: inline-flex;
  gap: 2px;
}

.star {
  color: #ddd;
  font-size: 1.2rem;
}

.star.filled {
  color: var(--secondary-color);
}

.star.half {
  position: relative;
  color: #ddd;
}

.star.half::before {
  content: '★';
  position: absolute;
  left: 0;
  color: var(--secondary-color);
  width: 50%;
  overflow: hidden;
}

/* ===================================
   Header & Navigation
   =================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--bg-white);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal);
}

.header.hidden {
  transform: translateY(-100%);
}

.nav__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem var(--spacing-md);
}

.nav__logo-text {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}

.nav__toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition-normal);
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-weight: 500;
  color: var(--text-dark);
  transition: color var(--transition-fast);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width var(--transition-normal);
}

.nav__link:hover,
.nav__link.active {
  color: var(--primary-color);
}

.nav__link:hover::after {
  width: 100%;
}

.nav__link--cta {
  background: var(--primary-color);
  color: var(--text-white);
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-md);
}

.nav__link--cta::after {
  display: none;
}

.nav__link--cta:hover {
  background: var(--primary-dark);
  color: var(--text-white);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero__image-slider {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero__slide.active {
  opacity: 1;
}

.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0,0,0,0.7), rgba(231,76,60,0.3));
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--text-white);
  animation: fadeInUp 1s ease;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: 4rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.hero__subtitle {
  font-size: 1.5rem;
  margin-bottom: var(--spacing-md);
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.hero__rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.rating-text {
  font-size: 1rem;
}

.hero__buttons {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-white);
  font-size: 0.9rem;
  animation: bounce 2s infinite;
}

.hero__scroll-arrow {
  width: 24px;
  height: 24px;
  border-left: 2px solid var(--text-white);
  border-bottom: 2px solid var(--text-white);
  transform: rotate(-45deg);
}

/* ===================================
   About Section
   =================================== */
.about {
  padding: var(--spacing-xl) 0;
  background: var(--bg-light);
}

.about__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

.about__headline {
  font-family: var(--font-heading);
  font-size: 2rem;
  margin-bottom: var(--spacing-md);
  color: var(--primary-color);
}

.about__description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: var(--spacing-md);
}

.about__features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.feature-item {
  display: flex;
  gap: var(--spacing-sm);
  padding: var(--spacing-md);
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal);
}

.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.feature-content h4 {
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text-dark);
}

.feature-content p {
  font-size: 0.9rem;
  color: var(--text-light);
}

.about__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.about__image:hover img {
  transform: scale(1.05);
}

/* ===================================
   Services Section
   =================================== */
.services {
  padding: var(--spacing-xl) 0;
  background: var(--bg-white);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
}

.service-card {
  text-align: center;
  padding: var(--spacing-lg);
  background: var(--bg-light);
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  background: var(--bg-white);
}

.service-card__icon {
  font-size: 4rem;
  margin-bottom: var(--spacing-md);
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: var(--spacing-sm);
  color: var(--text-dark);
}

.service-card__description {
  color: var(--text-light);
  line-height: 1.6;
}

/* ===================================
   Gallery Section
   =================================== */
.gallery {
  padding: var(--spacing-xl) 0;
  background: var(--bg-light);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
}

.gallery__item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius-md);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.gallery__item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.3);
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: 1;
}

.gallery__item:hover::before {
  opacity: 1;
}

.gallery__item::after {
  content: '🔍';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 3rem;
  color: var(--text-white);
  transition: transform var(--transition-normal);
  z-index: 2;
}

.gallery__item:hover::after {
  transform: translate(-50%, -50%) scale(1);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery__item:hover img {
  transform: scale(1.1);
}

/* ===================================
   Reviews Section
   =================================== */
.reviews {
  padding: var(--spacing-xl) 0;
  background: var(--bg-white);
}

.reviews__summary {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-lg);
  background: var(--bg-light);
  border-radius: var(--radius-lg);
}

.reviews__overall {
  text-align: center;
}

.reviews__score {
  font-size: 4rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}

.reviews__count {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-top: var(--spacing-sm);
}

.reviews__distribution {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.distribution-bar {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.distribution-label {
  min-width: 50px;
  font-size: 0.9rem;
  color: var(--text-light);
}

.distribution-track {
  flex: 1;
  height: 8px;
  background: #e0e0e0;
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.distribution-fill {
  height: 100%;
  background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
  transition: width var(--transition-slow);
}

.distribution-count {
  min-width: 30px;
  text-align: right;
  font-size: 0.9rem;
  color: var(--text-light);
}

.reviews__carousel {
  position: relative;
  padding: 0 3rem;
}

.reviews__slider {
  display: flex;
  gap: var(--spacing-md);
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.reviews__slider::-webkit-scrollbar {
  display: none;
}

.review-card {
  flex: 0 0 calc(33.333% - var(--spacing-md));
  scroll-snap-align: start;
  background: var(--bg-light);
  padding: var(--spacing-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.review-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.review-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-md);
}

.review-card__date {
  font-size: 0.85rem;
  color: var(--text-light);
}

.review-card__text {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-dark);
  margin-bottom: var(--spacing-md);
}

.review-card__ratings {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
  margin-bottom: var(--spacing-md);
}

.rating-badge {
  font-size: 0.8rem;
  padding: 0.25rem 0.5rem;
  background: var(--accent-color);
  color: var(--text-white);
  border-radius: var(--radius-sm);
}

.review-card__context {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-xs);
}

.context-tag {
  font-size: 0.8rem;
  padding: 0.25rem 0.5rem;
  background: var(--bg-white);
  color: var(--text-light);
  border-radius: var(--radius-sm);
}

.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: var(--bg-white);
  color: var(--primary-color);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.carousel__btn:hover {
  background: var(--primary-color);
  color: var(--text-white);
  transform: translateY(-50%) scale(1.1);
}

.carousel__btn--prev {
  left: 0;
}

.carousel__btn--next {
  right: 0;
}

/* ===================================
   Contact Section
   =================================== */
.contact {
  padding: var(--spacing-xl) 0;
  background: var(--bg-light);
}

.contact__content {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: var(--spacing-lg);
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.info-card {
  display: flex;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: var(--bg-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.info-card__icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.info-card__title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.info-card__text {
  color: var(--text-light);
  line-height: 1.6;
}

.info-card__text a {
  color: var(--primary-color);
  font-weight: 600;
}

.info-card__text a:hover {
  text-decoration: underline;
}

.hours-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hours-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
  background: var(--bg-light);
  border-radius: var(--radius-sm);
}

.hours-day {
  font-weight: 500;
  color: var(--text-dark);
}

.hours-time {
  color: var(--accent-color);
  font-weight: 600;
}

.hours-item--closed .hours-time {
  color: var(--text-light);
}

.contact__map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  min-height: 400px;
}

/* ===================================
   Footer
   =================================== */
.footer {
  background: var(--bg-dark);
  color: var(--text-white);
  padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer__content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
}

.footer__tagline {
  color: #bdc3c7;
  margin-bottom: var(--spacing-md);
}

.footer__rating {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.footer__heading {
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  color: var(--text-white);
}

.footer__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__list li {
  color: #bdc3c7;
  transition: color var(--transition-fast);
}

.footer__list a:hover {
  color: var(--primary-color);
}

.footer__bottom {
  text-align: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255,255,255,0.1);
  color: #95a5a6;
}

/* ===================================
   Lightbox
   =================================== */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.lightbox.active {
  display: flex;
}

.lightbox__image {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
  position: absolute;
  color: var(--text-white);
  font-size: 3rem;
  background: rgba(255,255,255,0.1);
  width: 50px;
  height: 50px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
  background: var(--primary-color);
}

.lightbox__close {
  top: 2rem;
  right: 2rem;
}

.lightbox__prev {
  left: 2rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__next {
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__counter {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-white);
  font-size: 1.2rem;
  background: rgba(0,0,0,0.5);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
}

/* ===================================
   Animations
   =================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===================================
   Responsive Design
   =================================== */

/* Tablet */
@media (max-width: 1023px) {
  .container {
    padding: 0 var(--spacing-md);
  }

  .section-title {
    font-size: 2rem;
  }

  .hero__title {
    font-size: 3rem;
  }

  .about__content {
    grid-template-columns: 1fr;
  }

  .about__features {
    grid-template-columns: 1fr;
  }

  .services__grid {
    grid-template-columns: 1fr;
  }

  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .reviews__summary {
    grid-template-columns: 1fr;
  }

  .review-card {
    flex: 0 0 calc(50% - var(--spacing-md));
  }

  .contact__content {
    grid-template-columns: 1fr;
  }

  .footer__content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* Mobile */
@media (max-width: 767px) {
  .nav__toggle {
    display: flex;
  }

  .nav__menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    flex-direction: column;
    background: var(--bg-white);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-md);
    transition: left var(--transition-normal);
  }

  .nav__menu.active {
    left: 0;
  }

  .hero {
    min-height: 500px;
  }

  .hero__title {
    font-size: 2rem;
  }

  .hero__subtitle {
    font-size: 1.2rem;
  }

  .hero__buttons {
    flex-direction: column;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .about__headline {
    font-size: 1.5rem;
  }

  .about__description {
    font-size: 1rem;
  }

  .gallery__grid {
    grid-template-columns: 1fr;
  }

  .review-card {
    flex: 0 0 100%;
  }

  .carousel__btn {
    width: 35px;
    height: 35px;
    font-size: 1.5rem;
  }

  .lightbox__close,
  .lightbox__prev,
  .lightbox__next {
    width: 40px;
    height: 40px;
    font-size: 2rem;
  }

  .lightbox__close {
    top: 1rem;
    right: 1rem;
  }

  .lightbox__prev {
    left: 1rem;
  }

  .lightbox__next {
    right: 1rem;
  }
}