/* ==========================================================================
   Kitap Notlarım - Landing Page Stylesheet
   Color Palette Matched Perfectly to Logo & App Screenshots
   ========================================================================== */

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

:root {
  /* Logo Matched Color Palette */
  --primary: #2C80EF;
  --primary-hover: #1A6CD6;
  --primary-dark: #1656B8;
  --primary-light: #EBF3FE;
  
  --accent-gold: #F5B938;
  --accent-gold-light: #FFF8E6;
  
  --gradient-primary: linear-gradient(135deg, #429BF7 0%, #1D6EDB 100%);
  --gradient-logo-bg: linear-gradient(135deg, #3A96F5 0%, #1E5FD8 100%);
  --gradient-hero-bg: linear-gradient(180deg, #E6F1FE 0%, #F5F9FF 60%, #FFFFFF 100%);
  --gradient-cta: linear-gradient(135deg, #2D83F0 0%, #195BC9 100%);

  --dark-900: #0F172A;
  --dark-800: #1E293B;
  --dark-700: #334155;
  --gray-600: #475569;
  --gray-500: #64748B;
  --gray-400: #94A3B8;
  --gray-200: #E2E8F0;
  --gray-100: #F1F5F9;
  --white: #FFFFFF;

  /* Spacing & Layout */
  --container-max: 1240px;
  --header-height: 80px;

  /* Elevation / Shadows */
  --shadow-sm: 0 2px 8px rgba(44, 128, 239, 0.08);
  --shadow-md: 0 10px 25px -5px rgba(27, 90, 216, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 40px -15px rgba(44, 128, 239, 0.25);
  --shadow-phone: 0 25px 60px -15px rgba(27, 90, 216, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.3);
  --shadow-glow: 0 0 30px rgba(66, 155, 247, 0.3);

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--dark-800);
  background-color: #F8FAFC;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--dark-900);
  font-weight: 700;
  line-height: 1.25;
}

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

ul {
  list-style: none;
}

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

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 6rem 0;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Section Header Component */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 4rem auto;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(44, 128, 239, 0.15);
}

.section-title {
  font-size: 2.5rem;
  letter-spacing: -0.02em;
  margin-bottom: 1.2rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--gray-600);
}

/* ==========================================================================
   Header & Navbar
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 4px 20px rgba(27, 90, 216, 0.08);
  height: 70px;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--dark-900);
}

.logo-img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 14px rgba(44, 128, 239, 0.28);
  transition: var(--transition);
}

.logo:hover .logo-img {
  transform: scale(1.06);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark-700);
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.8rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: 0 8px 22px rgba(44, 128, 239, 0.32);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(44, 128, 239, 0.42);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--dark-800);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--primary-light);
  color: var(--primary);
  border-color: rgba(44, 128, 239, 0.3);
  transform: translateY(-2px);
}

/* Language Switcher Pill Toggle */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background-color: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 50px;
  padding: 3px;
  gap: 2px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--gray-600);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.35rem 0.65rem;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
}

.lang-btn:hover {
  color: var(--primary);
}

.lang-btn.active {
  background: var(--gradient-primary);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(44, 128, 239, 0.35);
}

/* Mobile Menu Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--dark-900);
  cursor: pointer;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 2rem);
  padding-bottom: 5rem;
  background: var(--gradient-hero-bg);
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Dynamic Wave Background SVGs */
.hero-bg-waves {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.wave-shape {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  fill: #FFFFFF;
  opacity: 0.95;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 580px;
}

.hero-title {
  font-size: 3.4rem;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--gray-600);
  margin-bottom: 2.25rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.store-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: var(--dark-900);
  color: var(--white);
  padding: 0.7rem 1.4rem;
  border-radius: 12px;
  transition: var(--transition);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
}

.store-btn:hover {
  transform: translateY(-3px);
  background-color: #1E293B;
  box-shadow: 0 12px 25px rgba(44, 128, 239, 0.25);
}

.store-btn svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.store-btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.store-btn-subtitle {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
}

.store-btn-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.1;
}

/* Phone Mockup Styling */
.hero-mockup-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  position: relative;
  width: 310px;
  height: 630px;
  background-color: #0F172A;
  border-radius: 46px;
  padding: 12px;
  box-shadow: var(--shadow-phone);
  border: 4px solid #2C80EF;
  transition: var(--transition);
}

.phone-mockup:hover {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow: 0 30px 70px -10px rgba(44, 128, 239, 0.45);
}

/* Notch & Camera */
.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: #FFFFFF;
  border-radius: 36px;
  overflow: hidden;
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 20px;
  background-color: #0F172A;
  border-radius: 20px;
  z-index: 10;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Floating Glass Cards around Phone */
.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem 1.25rem;
  border-radius: 18px;
  box-shadow: 0 15px 35px rgba(44, 128, 239, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  z-index: 15;
  animation: float 4s ease-in-out infinite;
}

.floating-card-1 {
  top: 15%;
  left: -40px;
  animation-delay: 0s;
}

.floating-card-2 {
  bottom: 20%;
  right: -30px;
  animation-delay: 2s;
}

.floating-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.floating-icon.blue {
  background: #EBF3FE;
  color: var(--primary);
}

.floating-icon.gold {
  background: #FFF8E6;
  color: #D97706;
}

.floating-text h5 {
  font-size: 0.9rem;
  font-weight: 700;
}

.floating-text p {
  font-size: 0.75rem;
  color: var(--gray-500);
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features {
  background-color: #FFFFFF;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.feature-card {
  background-color: var(--white);
  padding: 2.5rem 2rem;
  border-radius: 24px;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(44, 128, 239, 0.25);
}

.feature-icon-box {
  width: 60px;
  height: 60px;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.feature-card:hover .feature-icon-box {
  background: var(--gradient-primary);
  color: var(--white);
  transform: scale(1.08);
}

.feature-title {
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
}

.feature-desc {
  color: var(--gray-600);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* ==========================================================================
   Screenshots Showcase Grid (Logo Matched Aesthetic)
   ========================================================================== */
.screens-gallery {
  margin-top: 5rem;
}

.screens-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  align-items: center;
}

.screen-card {
  background: linear-gradient(180deg, #F0F6FE 0%, #FFFFFF 100%);
  border: 1px solid rgba(44, 128, 239, 0.15);
  border-radius: 28px;
  padding: 1.25rem 1rem 1.75rem 1rem;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.screen-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(44, 128, 239, 0.35);
}

.screen-phone-frame {
  width: 100%;
  max-width: 220px;
  height: 440px;
  margin: 0 auto 1.25rem auto;
  border-radius: 34px;
  border: 3px solid var(--primary);
  background-color: #0F172A;
  box-shadow: 0 12px 30px rgba(44, 128, 239, 0.2);
  overflow: hidden;
  padding: 6px;
}

.screen-phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
}

.screen-card h4 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}

.screen-card p {
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* ==========================================================================
   CTA Banner & Footer
   ========================================================================== */
.cta-section {
  padding: 5rem 0;
}

.cta-box {
  background: var(--gradient-cta);
  border-radius: 36px;
  padding: 4.5rem 3rem;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta-box h2 {
  color: var(--white);
  font-size: 2.8rem;
  margin-bottom: 1.25rem;
}

.cta-box p {
  font-size: 1.2rem;
  opacity: 0.92;
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
}

.footer {
  background-color: var(--dark-900);
  color: var(--gray-400);
  padding: 4rem 0 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 320px;
}

.footer-column h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

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

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.75rem;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .cta-box h2 {
    font-size: 2.4rem;
  }
}

@media (max-width: 768px) {
  .header {
    height: 70px;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: var(--white);
    flex-direction: column;
    justify-content: flex-start;
    padding: 3rem 2rem;
    gap: 1.5rem;
    transition: var(--transition);
  }

  .nav-menu.open {
    left: 0;
  }

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

  .hero-title {
    font-size: 2.25rem;
  }

  .hero-content {
    margin: 0 auto;
  }

  .hero-actions, .store-buttons {
    justify-content: center;
  }

  .features-grid, .footer-grid, .screens-grid {
    grid-template-columns: 1fr;
  }

  .cta-section {
    padding: 3.5rem 0;
  }

  .cta-box {
    padding: 3rem 1.5rem;
    border-radius: 28px;
  }

  .cta-box h2 {
    font-size: 1.85rem;
    line-height: 1.25;
    overflow-wrap: break-word;
  }

  .cta-box p {
    font-size: 1.05rem;
  }

  .floating-card-1 {
    left: 10px;
  }

  .floating-card-2 {
    right: 10px;
  }

  .btn-header {
    display: none;
  }
}

/* ==========================================================================
   Header Download Button (Compact & Usable)
   ========================================================================== */
.btn-header {
  padding: 0.5rem 1.15rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 50px;
  box-shadow: 0 4px 14px rgba(44, 128, 239, 0.25);
  gap: 0.45rem;
  white-space: nowrap;
}

.btn-header:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(44, 128, 239, 0.38);
}

.btn-header .btn-icon {
  width: 15px;
  height: 15px;
  transition: transform 0.2s ease;
}

.btn-header:hover .btn-icon {
  transform: translateY(2px);
}

@media (max-width: 480px) {
  .btn-header {
    padding: 0.45rem 0.85rem;
    font-size: 0.8rem;
  }

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

  .hero-description {
    font-size: 1rem;
  }

  .cta-box {
    padding: 2.25rem 1.25rem;
    border-radius: 20px;
  }

  .cta-box h2 {
    font-size: 1.45rem;
    line-height: 1.3;
    overflow-wrap: break-word;
  }

  .cta-box p {
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
  }

  .cta-box .store-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .cta-box .store-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }

  .phone-mockup {
    width: 270px;
    height: 550px;
  }

  .floating-card {
    display: none;
  }
}

/* ==========================================================================
   Quick Download Modal Overlay & Content
   ========================================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.modal-card {
  background: #FFFFFF;
  border-radius: 24px;
  width: 100%;
  max-width: 420px;
  padding: 2.25rem 2rem 2rem 2rem;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.35);
  transform: scale(0.9) translateY(20px);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.modal-overlay.active .modal-card {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--gray-100);
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--gray-500);
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--gray-200);
  color: var(--dark-900);
}

.modal-header {
  text-align: center;
  margin-bottom: 1.75rem;
}

.modal-logo {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  margin: 0 auto 1rem auto;
  box-shadow: 0 8px 20px rgba(44, 128, 239, 0.25);
}

.modal-header h3 {
  font-size: 1.4rem;
  margin-bottom: 0.4rem;
  color: var(--dark-900);
}

.modal-header p {
  font-size: 0.9rem;
  color: var(--gray-500);
}

.modal-store-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.modal-store-btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.25rem;
  border-radius: 16px;
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid var(--gray-200);
}

.modal-store-btn.store-ios {
  background: var(--dark-900);
  color: var(--white);
  border-color: var(--dark-900);
}

.modal-store-btn.store-ios:hover {
  background: #1E293B;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.25);
}

.modal-store-btn.store-android {
  background: #FFFFFF;
  color: var(--dark-900);
  border-color: var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.modal-store-btn.store-android:hover {
  background: var(--primary-light);
  border-color: rgba(44, 128, 239, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(44, 128, 239, 0.15);
}

.modal-store-btn .store-svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.modal-store-info {
  display: flex;
  flex-direction: column;
}

.modal-store-info .sub {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.75;
}

.modal-store-info .title {
  font-size: 1rem;
  font-weight: 700;
}

