/* ===== Variables ===== */
:root {
  --primary: #4F46E5;
  --primary-dark: #3730A3;
  --primary-light: #818CF8;
  --accent: #06B6D4;
  --accent-light: #CFFAFE;
  --dark: #0F172A;
  --dark-soft: #1E293B;
  --bg: #F8FAFC;
  --bg-alt: #F1F5F9;
  --card: #FFFFFF;
  --text: #0F172A;
  --text-light: #64748B;
  --text-muted: #94A3B8;
  --border: #E2E8F0;
  --success: #25D366;
  --gradient: linear-gradient(135deg, #4F46E5 0%, #06B6D4 100%);
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 1px 3px rgba(15,23,42,0.08);
  --shadow-md: 0 4px 12px rgba(15,23,42,0.1);
  --shadow-lg: 0 10px 40px rgba(15,23,42,0.12);
  --max-w: 1200px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== Container ===== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Animations ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-align: center;
}
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 15px rgba(79,70,229,0.3);
}
.btn-primary:hover {
  box-shadow: 0 6px 25px rgba(79,70,229,0.45);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
}
.btn-sm {
  padding: 8px 18px;
  font-size: 13px;
  background: var(--gradient);
  color: #fff;
  border-radius: 8px;
}
.btn-sm:hover { transform: translateY(-1px); }
.btn-disabled {
  padding: 8px 18px;
  font-size: 13px;
  background: var(--bg-alt);
  color: var(--text-muted);
  border-radius: 8px;
  cursor: default;
}
.btn-block { width: 100%; }
.btn-whatsapp {
  background: var(--success);
  color: #fff;
  font-size: 16px;
  padding: 16px;
  border: none;
  cursor: pointer;
}
.btn-whatsapp:hover {
  background: #1fb855;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(37,211,102,0.3);
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.3s ease;
}
.navbar.scrolled {
  background: rgba(15,23,42,0.95);
  backdrop-filter: blur(10px);
  padding: 10px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,0.2);
}
.nav-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
}
.nav-logo span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  font-size: 15px;
  transition: color 0.3s;
}
.nav-links a:hover, .nav-links a.active {
  color: #fff;
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.lang-switcher {
  display: flex;
  gap: 6px;
}
.lang-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  padding: 4px 8px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1;
}
.lang-btn:hover { background: rgba(255,255,255,0.2); }
.lang-btn.active {
  background: var(--primary);
  border-color: var(--primary);
}

/* Nav toggle (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 120px 20px 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 50%, #0F172A 100%);
  z-index: 0;
}
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 40%, rgba(79,70,229,0.2) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(6,182,212,0.15) 0%, transparent 50%);
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}
.hero-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.hero-subtitle {
  font-size: clamp(16px, 2.5vw, 20px);
  color: rgba(255,255,255,0.7);
  margin-bottom: 36px;
  line-height: 1.6;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

/* Phone mockup */
.hero-mockup { perspective: 1000px; }
.phone-frame {
  width: 220px;
  height: 420px;
  margin: 0 auto;
  background: #1a1a2e;
  border-radius: 30px;
  border: 3px solid #333;
  padding: 12px;
  position: relative;
  transform: rotateY(-5deg) rotateX(5deg);
  box-shadow: 0 25px 60px rgba(0,0,0,0.4);
}
.phone-notch {
  width: 80px;
  height: 20px;
  background: #1a1a2e;
  border-radius: 0 0 12px 12px;
  margin: -12px auto 8px;
  position: relative;
  z-index: 2;
}
.phone-screen {
  background: #fff;
  border-radius: 18px;
  height: calc(100% - 16px);
  overflow: hidden;
  padding: 8px;
}
.mock-header {
  height: 32px;
  background: var(--gradient);
  border-radius: 10px 10px 0 0;
  margin-bottom: 6px;
}
.mock-hero-img {
  height: 80px;
  background: linear-gradient(135deg, #f97316, #ef4444);
  border-radius: 8px;
  margin-bottom: 8px;
}
.mock-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.mock-card {
  height: 60px;
  background: var(--bg-alt);
  border-radius: 8px;
}
.mock-card:nth-child(1) { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.mock-card:nth-child(2) { background: linear-gradient(135deg, #dbeafe, #bfdbfe); }
.mock-card:nth-child(3) { background: linear-gradient(135deg, #d1fae5, #a7f3d0); }
.mock-card:nth-child(4) { background: linear-gradient(135deg, #fce7f3, #fbcfe8); }

/* ===== Section titles ===== */
.section-title {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.section-subtitle {
  font-size: 17px;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 48px;
}

/* ===== Features ===== */
.features {
  padding: 100px 0;
  background: var(--bg);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}
.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, rgba(79,70,229,0.1), rgba(6,182,212,0.1));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}
.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== Portfolio ===== */
.portfolio {
  padding: 100px 0;
  background: var(--bg-alt);
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.portfolio-card {
  background: var(--card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}
.portfolio-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Browser frame */
.browser-frame {
  background: var(--dark-soft);
  overflow: hidden;
}
.browser-bar {
  height: 32px;
  background: #334155;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 6px;
}
.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.browser-dot.red { background: #EF4444; }
.browser-dot.yellow { background: #F59E0B; }
.browser-dot.green { background: #22C55E; }
.browser-url {
  font-size: 11px;
  color: var(--text-muted);
  margin-inline-start: 8px;
  background: rgba(255,255,255,0.05);
  padding: 2px 10px;
  border-radius: 4px;
}
.browser-content {
  height: 220px;
  background-size: cover;
  background-position: top center;
}

/* Portfolio mock backgrounds */
.portfolio-img-1 {
  background: linear-gradient(180deg, #c8102e 0%, #c8102e 30%, #faf8f5 30%, #faf8f5 100%);
  position: relative;
}
.portfolio-img-1::after {
  content: 'La Cucina';
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 1px;
}
.portfolio-img-2 {
  background: linear-gradient(180deg, #92400e 0%, #92400e 30%, #fffbeb 30%, #fffbeb 100%);
  position: relative;
}
.portfolio-img-2::after {
  content: 'Kebap House';
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 1px;
}
.portfolio-img-3 {
  background: linear-gradient(180deg, #166534 0%, #166534 30%, #f0fdf4 30%, #f0fdf4 100%);
  position: relative;
}
.portfolio-img-3::after {
  content: 'Cafe Bloom';
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 1px;
}

.portfolio-info {
  padding: 20px;
}
.portfolio-info h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}
.portfolio-info p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.5;
}

/* ===== Pricing ===== */
.pricing {
  padding: 100px 0;
  background: var(--bg);
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.pricing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  position: relative;
  transition: all 0.3s ease;
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.pricing-card.popular {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-lg);
  transform: scale(1.05);
}
.pricing-card.popular:hover {
  transform: scale(1.05) translateY(-4px);
}
.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
  white-space: nowrap;
}
.pricing-header {
  text-align: center;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.pricing-header h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.pricing-price {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.pricing-price span {
  font-size: 18px;
  font-weight: 600;
}
.pricing-period {
  font-size: 14px;
  color: var(--text-muted);
}
.pricing-extra {
  font-size: 14px;
  color: var(--primary);
  font-weight: 600;
  margin-top: 4px;
}
.pricing-features {
  margin-bottom: 28px;
}
.pricing-features li {
  padding: 8px 0;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
}
.pricing-features li:last-child { border-bottom: none; }
.check { color: var(--primary); font-weight: bold; font-size: 16px; }
.x { color: var(--text-muted); font-size: 16px; }

/* Pricing button overrides */
.pricing-card .btn-outline {
  color: var(--primary);
  border: 2px solid var(--primary);
}
.pricing-card .btn-outline:hover {
  background: var(--primary);
  color: #fff;
}
.pricing-card .btn-primary {
  box-shadow: 0 4px 15px rgba(79,70,229,0.3);
}

/* ===== Testimonials ===== */
.testimonials {
  padding: 100px 0;
  background: var(--dark);
  color: #fff;
}
.testimonials .section-title { color: #fff; }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--dark-soft);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.testimonial-stars {
  color: #F59E0B;
  font-size: 18px;
  margin-bottom: 16px;
  letter-spacing: 2px;
}
.testimonial-quote {
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  margin-bottom: 20px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.testimonial-author strong {
  display: block;
  font-size: 14px;
}
.testimonial-author span {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== Contact ===== */
.contact {
  padding: 100px 0;
  background: var(--bg-alt);
}
.contact-wrapper {
  max-width: 640px;
  margin: 0 auto;
}
.contact-form {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-group {
  margin-bottom: 16px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 15px;
  background: var(--bg);
  color: var(--text);
  transition: border-color 0.3s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  background: #fff;
}
.form-group textarea { resize: vertical; }
.form-group select { cursor: pointer; }
.contact-direct {
  text-align: center;
  margin-top: 24px;
}
.contact-direct p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.direct-link {
  font-size: 20px;
  font-weight: 700;
  color: var(--success);
  transition: opacity 0.3s;
}
.direct-link:hover { opacity: 0.8; }

/* ===== Footer ===== */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.6);
  padding: 40px 0;
}
.footer-content {
  text-align: center;
}
.footer-logo {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}
.footer-logo span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 20px;
}
.footer-links a {
  font-size: 14px;
  transition: color 0.3s;
}
.footer-links a:hover { color: #fff; }
.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

/* ===== WhatsApp Float ===== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 999;
  transition: all 0.3s;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37,211,102,0.5);
}

/* ===== RTL Support ===== */
[dir="rtl"] .nav-links { flex-direction: row-reverse; }
[dir="rtl"] .hero-content { direction: rtl; }
[dir="rtl"] .feature-card { text-align: right; }
[dir="rtl"] .pricing-features li { flex-direction: row-reverse; text-align: right; }
[dir="rtl"] .testimonial-author { flex-direction: row-reverse; text-align: right; }
[dir="rtl"] .whatsapp-float { right: auto; left: 24px; }
[dir="rtl"] .form-group input,
[dir="rtl"] .form-group select,
[dir="rtl"] .form-group textarea { text-align: right; direction: rtl; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .pricing-card.popular { transform: none; }
  .pricing-card.popular:hover { transform: translateY(-4px); }
  .testimonials-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15,23,42,0.98);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    z-index: 998;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 22px; color: #fff; }
  .nav-toggle { display: flex; z-index: 999; }

  .hero { padding: 100px 20px 60px; min-height: auto; }
  .hero-title { font-size: 28px; }
  .hero-subtitle { font-size: 16px; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .hero-ctas .btn { width: 100%; max-width: 300px; }
  .phone-frame { width: 180px; height: 340px; }

  .features, .portfolio, .pricing, .testimonials, .contact { padding: 60px 0; }
  .features-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .portfolio-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }

  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 20px; }

  .footer-links { flex-direction: column; align-items: center; gap: 12px; }
}

@media (max-width: 480px) {
  .section-title { font-size: 24px; }
  .section-subtitle { font-size: 15px; margin-bottom: 32px; }
  .browser-content { height: 160px; }
}
