/* ═════════════════════════════════════════════════════════════
   RESTAURANT REPORTS - PERFECT NAVBAR + RESPONSIVE CSS
   Mobile-First Design - NAVBAR MÜKƏMMƏL!
   ═════════════════════════════════════════════════════════════ */

:root {
  --primary: #2563eb;
  --primary-dark: #1e40af;
  --primary-light: #60a5fa;
  --secondary: #10b981;
  --dark: #1f2937;
  --light: #f9fafb;
  --gray: #6b7280;
  --white: #ffffff;
  --shadow: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.12);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: var(--light);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

img {
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  user-select: none;
}

/* ═════════════════════════════════════════════════════════════
   PERFECT NAVBAR - MOBILE FIRST
   ═════════════════════════════════════════════════════════════ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  z-index: 1000;
  transition: var(--transition);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo + Brand (SOL) */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  z-index: 1001;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.brand-text {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  display: none; /* Mobilde gizlət */
}

/* Desktop Menu (ORTA) - Mobilde gizli */
.nav-links {
  display: none;
  list-style: none;
  gap: 28px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
}

.nav-links a:hover::after {
  width: 100%;
}

/* Right Side (SAĞ) */
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Language Switcher */
.lang-switcher {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--white);
  border: 2px solid var(--primary);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  color: var(--primary);
  transition: var(--transition);
  font-size: 0.85rem;
}

.lang-btn:hover {
  background: var(--primary);
  color: var(--white);
}

.flag {
  font-size: 1.1rem;
}

.lang-code {
  font-size: 0.85rem;
}

.lang-btn i {
  font-size: 0.7rem;
  transition: transform 0.3s;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: var(--transition);
  min-width: 160px;
  z-index: 1002;
}

.lang-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  width: 100%;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark);
  text-align: left;
}

.lang-item:hover {
  background: var(--primary);
  color: var(--white);
}

.lang-item.active {
  background: var(--primary-light);
  color: var(--white);
}

/* Hamburger Menu (SAĞ) */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 8px;
  z-index: 1001;
}

.hamburger span {
  width: 24px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu (BASANDA AÇILIR) */
.mobile-menu {
  position: fixed;
  top: 60px;
  left: 0;
  width: 100%;
  max-height: 0;
  background: var(--white);
  overflow: hidden;
  transition: max-height 0.4s ease;
  box-shadow: var(--shadow-lg);
}

.mobile-menu.show {
  max-height: calc(100vh - 60px);
}

.mobile-link {
  display: block;
  padding: 16px 20px;
  color: var(--dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: var(--transition);
}

.mobile-link:hover,
.mobile-link:active {
  background: var(--primary);
  color: var(--white);
}

/* ═════════════════════════════════════════════════════════════
   HERO - MOBILE FIRST
   ═════════════════════════════════════════════════════════════ */

.hero {
  padding: 100px 0 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="white" opacity="0.3"/></svg>') repeat;
  animation: float 20s linear infinite;
}

@keyframes float {
  0% { transform: translateY(0); }
  100% { transform: translateY(-100px); }
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-text {
  color: var(--white);
  animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: 1.05rem;
  opacity: 0.95;
  margin-bottom: 24px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-direction: column;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1rem;
  width: 100%;
  max-width: 280px;
}

.btn-primary {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  background: rgba(255,255,255,0.2);
  color: var(--white);
  border: 2px solid var(--white);
  backdrop-filter: blur(10px);
}

.btn-secondary:active {
  background: var(--white);
  color: var(--primary);
}

.hero-image {
  animation: fadeIn 0.8s ease-out 0.3s both;
}

.app-mockup {
  position: relative;
  animation: float-mockup 3s ease-in-out infinite;
}

@keyframes float-mockup {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.app-mockup img {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  display: block;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

.mockup-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
  z-index: -1;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 0.8; }
}

/* ═════════════════════════════════════════════════════════════
   SECTIONS
   ═════════════════════════════════════════════════════════════ */

section {
  padding: 60px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--gray);
  max-width: 600px;
  margin: 0 auto;
}

/* Features */
.features {
  background: var(--white);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.feature-card {
  background: var(--light);
  padding: 28px;
  border-radius: 15px;
  transition: var(--transition);
  border: 2px solid transparent;
}

.feature-card:active {
  transform: scale(0.98);
  border-color: var(--primary);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--white);
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--gray);
  line-height: 1.6;
}

/* Roles */
.roles {
  background: var(--light);
}

.roles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.role-card {
  background: var(--white);
  padding: 30px;
  border-radius: 20px;
  border: 2px solid transparent;
  transition: var(--transition);
  position: relative;
}

.role-card:active {
  transform: scale(0.98);
  border-color: var(--primary);
}

.role-card.featured {
  border-color: var(--primary);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--white);
}

.role-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255,255,255,0.2);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
}

.role-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 16px;
}

.role-icon.kassir {
  background: linear-gradient(135deg, #10b981, #34d399);
  color: var(--white);
}

.role-icon.mudir {
  background: rgba(255,255,255,0.2);
  color: var(--white);
}

.role-icon.viewer {
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: var(--white);
}

.role-card h3 {
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.role-features {
  list-style: none;
  margin: 16px 0;
}

.role-features li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  font-size: 0.9rem;
}

.role-card.featured .role-features li {
  border-bottom-color: rgba(255,255,255,0.1);
}

/* Download */
.download {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: var(--white);
}

.download-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  text-align: center;
}

.download-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  background: var(--white);
  color: var(--dark);
  border-radius: 12px;
  text-decoration: none;
  transition: var(--transition);
  font-weight: 600;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.store-btn:active {
  transform: scale(0.98);
}

.store-btn i {
  font-size: 2.2rem;
}

.phone-mockup img {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  display: block;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

/* FAQ */
.faq {
  background: var(--white);
}

.faq-item {
  background: var(--light);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: var(--transition);
}

.faq-item:active {
  border-color: var(--primary);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  cursor: pointer;
}

.faq-question h3 {
  font-size: 1rem;
  font-weight: 600;
}

.faq-question i {
  color: var(--primary);
  transition: transform 0.3s;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 400px;
}

.faq-answer p {
  padding: 0 16px 16px;
  color: var(--gray);
}

/* Contact */
.contact {
  background: var(--light);
}

.contact-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.contact-card {
  background: var(--white);
  padding: 32px;
  border-radius: 20px;
  text-align: center;
  text-decoration: none;
  transition: var(--transition);
  border: 2px solid transparent;
}

.contact-card:active {
  transform: scale(0.98);
  border-color: var(--primary);
}

.contact-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
}

.contact-card.whatsapp .contact-icon {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: var(--white);
}

.contact-card.email .contact-icon {
  background: linear-gradient(135deg, #ea4335, #c5221f);
  color: var(--white);
}

.contact-card h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.contact-card p {
  color: var(--gray);
  margin-bottom: 16px;
}

.contact-arrow {
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  align-items: center;
  justify-content: center;
}

/* Footer */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 50px 0 25px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 30px;
  text-align: center;
}

.footer-brand img {
  width: 45px;
  height: 45px;
  border-radius: 10px;
  margin: 0 auto 12px;
}

.footer-brand h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.footer-brand p {
  color: var(--gray);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.footer-column h4 {
  margin-bottom: 16px;
}

.footer-column a {
  display: block;
  color: var(--gray);
  text-decoration: none;
  margin-bottom: 10px;
  transition: var(--transition);
}

.footer-column a:active {
  color: var(--primary-light);
}

.footer-bottom {
  padding-top: 25px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  color: var(--gray);
  font-size: 0.9rem;
}

.copyright-link {
  color: var(--gray);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  cursor: pointer;
}

.copyright-link:hover {
  color: var(--primary-light);
  border-bottom-color: var(--primary-light);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.7);
}

.modal.show {
  display: block;
}

.modal-content {
  background-color: var(--white);
  margin: 5% auto;
  padding: 25px;
  border-radius: 15px;
  width: 92%;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  color: var(--gray);
  float: right;
  font-size: 32px;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
}

.modal-content h2 {
  color: var(--primary);
  margin-bottom: 16px;
}

.copyright-text p {
  margin-bottom: 14px;
  color: var(--gray);
}

.copyright-text ul {
  margin: 16px 0;
  padding-left: 20px;
}

.copyright-text li {
  margin-bottom: 10px;
  color: var(--gray);
}

/* Scroll to Top */
.scroll-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
  z-index: 999;
}

.scroll-to-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:active {
  transform: scale(0.95);
}

/* ═════════════════════════════════════════════════════════════
   TABLET (768px+)
   ═════════════════════════════════════════════════════════════ */

@media (min-width: 768px) {
  .brand-text {
    display: inline; /* Tabletdə göstər */
  }
  
  .nav-links {
    display: flex; /* Desktop menyu göstər */
  }
  
  .hamburger {
    display: none; /* Hamburger gizlət */
  }
  
  .mobile-menu {
    display: none; /* Mobile menyu gizlət */
  }
  
  .hero {
    padding: 120px 0 80px;
  }
  
  .hero-content {
    flex-direction: row;
    text-align: left;
    align-items: center;
    gap: 60px;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-buttons {
    flex-direction: row;
    justify-content: flex-start;
  }
  
  .btn {
    width: auto;
  }
  
  .app-mockup img {
    max-width: 350px;
  }
  
  section {
    padding: 80px 0;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  
  .roles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .download-content {
    flex-direction: row;
    text-align: left;
    align-items: center;
  }
  
  .download-buttons {
    flex-direction: row;
    justify-content: flex-start;
  }
  
  .store-btn {
    margin: 0;
  }
  
  .contact-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-content {
    grid-template-columns: 2fr 1fr;
    text-align: left;
  }
  
  .footer-brand img {
    margin: 0 0 12px 0;
  }
  
  .footer-links {
    flex-direction: row;
    gap: 60px;
  }
}

/* ═════════════════════════════════════════════════════════════
   DESKTOP (1024px+)
   ═════════════════════════════════════════════════════════════ */

@media (min-width: 1024px) {
  .nav-container {
    height: 70px;
  }
  
  .brand-logo {
    width: 40px;
    height: 40px;
  }
  
  .brand-text {
    font-size: 1.1rem;
  }
  
  .hero-title {
    font-size: 3.2rem;
  }
  
  .app-mockup img {
    max-width: 400px;
  }
  
  .section-title {
    font-size: 2.5rem;
  }
  
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
  }
  
  .roles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
  }
  
  .role-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
  }
  
  .store-btn:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
  }
  
  .contact-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
  }
}