@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,500;0,600;0,700;1,600&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Colors matched to reference layout */
  --bg-canvas: #FAF7F2;
  --bg-white: #FFFFFF;
  --bg-navy: #15457A;
  --bg-navy-dark: #0E325B;
  --bg-slate-light: #EBF1F8;

  --text-navy: #122B55;
  --text-body: #3B485E;
  --text-muted: #6B7C96;
  --text-light: #F0F4F8;
  --text-red: #B83828;

  --primary-red: #B83828;
  --primary-red-hover: #A02E20;
  --primary-navy-btn: #1A467B;
  --primary-navy-btn-hover: #12335A;

  --border-light: #E6E1D8;
  --border-navy: rgba(255, 255, 255, 0.15);

  --font-serif: 'Lora', 'Georgia', serif;
  --font-sans: 'Plus Jakarta Sans', sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;

  --transition: all 0.25s ease-in-out;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-canvas);
  color: var(--text-body);
  line-height: 1.65;
  overflow-x: hidden;
}

/* Container */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 5.5rem;
  z-index: 100;
  background: var(--bg-canvas);
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  transition: var(--transition);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
}

.brand-logo-img {
  height: 82px;
  width: auto;
  object-fit: contain;
  display: block;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1px;
}

.brand-name {
  color: var(--text-navy);
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: 2.5px;
  line-height: 1.5;
}

.brand-tagline {
  font-size: 0.7rem;
  color: var(--text-navy);
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  line-height: 1.0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-navy);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: var(--transition);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Language Dropdown */
.lang-dropdown {
  position: relative;
  display: inline-block;
}

.lang-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  color: var(--text-navy);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.lang-dropdown-btn:hover,
.lang-dropdown:hover .lang-dropdown-btn,
.lang-dropdown.open .lang-dropdown-btn {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.15);
}

.lang-dropdown-btn i.fa-globe {
  font-size: 0.95rem;
  color: var(--text-navy);
}

.lang-dropdown-btn .lang-arrow {
  font-size: 0.65rem;
  transition: transform 0.2s ease;
}

.lang-dropdown:hover .lang-arrow,
.lang-dropdown:focus-within .lang-arrow,
.lang-dropdown.open .lang-arrow {
  transform: rotate(180deg);
}

.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 140px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 110;
}

.lang-dropdown:hover .lang-dropdown-menu,
.lang-dropdown:focus-within .lang-dropdown-menu,
.lang-dropdown.open .lang-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  color: var(--text-body);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.lang-option:hover {
  background: var(--bg-canvas);
  color: var(--text-navy);
}

.lang-option.active {
  color: var(--text-navy);
  font-weight: 700;
  background: rgba(0, 0, 0, 0.04);
}

.lang-check {
  font-size: 0.75rem;
  color: var(--text-navy);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-header {
  background: var(--primary-navy-btn);
  color: #FFFFFF;
}

.btn-header:hover {
  background: var(--primary-navy-btn-hover);
}

.btn-red {
  background: var(--primary-red);
  color: #FFFFFF;
}

.btn-red:hover {
  background: var(--primary-red-hover);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-navy);
  font-size: 1.4rem;
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding: 160px 0 100px;
  background: var(--bg-canvas);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: block;
  max-width: 820px;
  position: relative;
  z-index: 2;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3.6rem;
  font-weight: 700;
  color: var(--text-navy);
  line-height: 1.18;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
}

/* Scope line height and letter spacing for Chinese page */
html[lang="zh"] .hero-title {
  line-height: 1.5;
  letter-spacing: 3px;
}

.hero-title .underline-red {
  position: relative;
  display: inline-block;
}

.hero-title .underline-red::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-red);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-body);
  margin-bottom: 32px;
  max-width: 580px;
  line-height: 1.6;
}

.hero-cta-wrapper {
  margin-bottom: 24px;
}

.hero-tags {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-navy);
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

/* Faded Chinese Character Watermark */
.hero-watermark {
  position: absolute;
  top: 100px;
  right: -20px;
  font-family: serif, "Noto Serif SC", STSong;
  font-size: 16rem;
  font-weight: 900;
  line-height: 0.85;
  color: #E2E9F3;
  opacity: 0.65;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  text-align: right;
  letter-spacing: -10px;
}

/* Section Common Styling */
.section {
  padding: 90px 0;
  position: relative;
}

.section-tag-box {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-navy);
  margin-bottom: 12px;
}

/* Chinese-scoped tag box font size */
html[lang="zh"] .section-tag-box {
  font-size: 1.2rem;
}

.zh-symbol {
  color: var(--primary-red);
  font-weight: 700;
  font-size: 1.1rem;
}

.section-title-serif {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text-navy);
  line-height: 1.25;
  margin-bottom: 28px;
}

/* Section 2: Sorun / Çözüm (Deep Blue Background) */
.section-problem {
  background: var(--bg-navy);
  color: #FFFFFF;
}

.section-problem .section-tag-box {
  color: #F59E0B;
}

.section-problem .zh-symbol {
  color: #F87171;
}

.section-problem .section-title-serif {
  color: #FFFFFF;
}

.problem-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 720px;
  margin-bottom: 40px;
}

.problem-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1.05rem;
  color: #E0E7FF;
}

.problem-icon-box {
  width: 22px;
  height: 22px;
  background: var(--primary-red);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 3px;
}

.solution-box {
  max-width: 720px;
  font-size: 1.1rem;
  color: #E0E7FF;
  line-height: 1.6;
}

.solution-box strong {
  color: #FFFFFF;
  font-weight: 700;
}

/* Section 3: Hizmetlerimiz (3 Packages) */
.section-services {
  background: var(--bg-canvas);
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.package-card-ref {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-top: 4px solid transparent;
  border-radius: var(--radius-md);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.package-card-ref.featured {
  border-top-color: var(--primary-red);
}

/* Reset default featured red top border when hovering over the grid */
.packages-grid:hover .package-card-ref.featured {
  border-top-color: transparent;
}

/* Exclusively highlight the actively hovered card */
.package-card-ref:hover {
  transform: translateY(-6px);
  border-top-color: var(--primary-red) !important;
  box-shadow: 0 16px 32px rgba(200, 16, 46, 0.12), 0 6px 16px rgba(0, 0, 0, 0.06);
}

.package-zh-title {
  color: var(--primary-red);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 8px;
  font-family: serif, "Noto Serif SC";
}

.package-card-ref h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-navy);
  margin-bottom: 16px;
  line-height: 1.3;
}

.package-card-ref p {
  color: var(--text-body);
  font-size: 0.95rem;
  margin-bottom: 24px;
  line-height: 1.6;
}

.package-divider {
  border-top: 1px dotted #D1D5DB;
  margin-top: auto;
  padding-top: 16px;
}

.package-for-text {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Section 4: Neden Tughlan? (Slate Blue Background) */
.section-why {
  background: var(--bg-slate-light);
}

.why-grid-2x2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.why-item h4 {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-navy);
  margin-bottom: 8px;
}

.why-item p {
  font-size: 0.98rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* Section 5: Nasıl Çalışıyoruz? (3 Steps) */
.section-process {
  background: var(--bg-canvas);
}

.process-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.process-card-ref {
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 32px 24px;
}

.step-num-badge {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--text-navy);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.process-card-ref h4 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-navy);
  margin-bottom: 12px;
}

.process-card-ref p {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.55;
}

/* Section 6: Hakkımda (About Founder) */
.section-about {
  background: var(--bg-canvas);
}

.about-grid-ref {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: center;
}

.about-photo-box {
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 3px solid #FFFFFF;
  background: #FFFFFF;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-photo-box:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 42px rgba(200, 16, 46, 0.15), 0 8px 20px rgba(0, 0, 0, 0.08);
}

.about-photo-img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  object-position: center 20%;
  display: block;
}

.about-text-ref p {
  font-size: 1.05rem;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: 16px;
}

/* Section 7: İletişim / Contact & Footer */
.section-contact-ref {
  background: var(--bg-navy);
  color: #FFFFFF;
  text-align: center;
  padding: 80px 0;
}

.section-contact-ref h2 {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-contact-ref p {
  color: #D1D5DB;
  font-size: 1.15rem;
  margin-bottom: 36px;
}

.contact-links-inline {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.contact-link-item {
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.contact-link-item:hover {
  color: #F59E0B;
}

.footer-ref {
  background: var(--bg-navy-dark);
  color: #9CA3AF;
  text-align: center;
  padding: 32px 0;
  font-size: 0.88rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Modal Styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(18, 43, 85, 0.75);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: #FFFFFF;
  color: var(--text-navy);
  border-radius: var(--radius-md);
  padding: 36px;
  width: 90%;
  max-width: 520px;
  position: relative;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  margin-bottom: 8px;
}

.modal-desc {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 18px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  color: var(--text-navy);
  margin-bottom: 6px;
  font-weight: 600;
}

.form-input {
  width: 100%;
  background: var(--bg-canvas);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-navy);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
}

.form-input:focus {
  border-color: var(--primary-red);
}

textarea.form-input {
  resize: vertical;
  min-height: 90px;
}

/* Floating AI Chatbot Teaser Widget */
.chatbot-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
}

.chatbot-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--primary-red);
  color: #FFFFFF;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(184, 56, 40, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.chatbot-toggle:hover {
  transform: scale(1.06);
}

.chatbot-window {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 340px;
  height: 400px;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: var(--transition);
}

.chatbot-window.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.chat-header {
  background: var(--text-navy);
  color: #FFFFFF;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #10B981;
  border-radius: 50%;
}

.chat-messages {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-canvas);
}

.chat-msg {
  max-width: 85%;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  line-height: 1.4;
}

.chat-msg.bot {
  background: #FFFFFF;
  color: var(--text-navy);
  border: 1px solid var(--border-light);
  align-self: flex-start;
}

.chat-msg.user {
  background: var(--primary-red);
  color: #FFFFFF;
  align-self: flex-end;
}

.chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.chip-btn {
  background: #F3F4F6;
  color: var(--text-navy);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 5px 10px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
}

.chip-btn:hover {
  background: var(--primary-red);
  color: #FFFFFF;
  border-color: var(--primary-red);
}

.chat-input-area {
  padding: 10px;
  border-top: 1px solid var(--border-light);
  display: flex;
  gap: 6px;
  background: #FFFFFF;
}

.chat-input-area input {
  flex: 1;
  background: var(--bg-canvas);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  color: var(--text-navy);
  font-size: 0.82rem;
  outline: none;
}

.chat-send-btn {
  background: var(--primary-red);
  color: #FFFFFF;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--text-navy);
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 2000;
  transition: var(--transition);
}

.toast.active {
  transform: translateX(-50%) translateY(0);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-watermark {
    display: none;
  }
  .packages-grid,
  .process-grid-3 {
    grid-template-columns: 1fr;
  }
  .why-grid-2x2 {
    grid-template-columns: 1fr;
  }
  .about-grid-ref {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .brand-logo-img {
    height: 58px;
  }
  .nav-links {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .hero-title {
    font-size: 2.5rem;
  }
}