/* Gemini Language Learning Marketing Site Styles */

:root {
  --accent-color: #6366f1; /* indigo-500 */
  --bg-color: #ffffff;
  --text-color: #1f2937; /* gray-800 */
  --light-gray: #f3f4f6;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-color);
  background: var(--bg-color);
  line-height: 1.6;
}

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Navbar */
.navbar {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.2rem 0;
  position: relative;
}

.language-selector {
  position: relative;
  flex-shrink: 0;
}

.language-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  background: white;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-color);
  cursor: pointer;
  transition: all 0.2s ease;
  min-width: 140px;
  white-space: nowrap;
}

.language-btn:hover {
  border-color: var(--accent-color);
  background: #f8fafc;
}

.language-btn:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.language-btn-icon {
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.language-btn[aria-expanded="true"] .language-btn-icon {
  transform: rotate(180deg);
}

.language-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.25rem;
  background: white;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  min-width: 280px;
  max-height: 400px;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 9999;
}

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

.language-search {
  padding: 0.75rem;
  border-bottom: 1px solid #e5e7eb;
}

.language-search input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  background: #f9fafb;
  transition: border-color 0.2s ease;
}

.language-search input:focus {
  outline: none;
  border-color: var(--accent-color);
  background: white;
}

.language-list {
  max-height: 300px;
  overflow-y: auto;
  padding: 0.25rem;
}

.language-option {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  background: transparent;
  text-align: left;
  font-size: 0.875rem;
  color: var(--text-color);
  cursor: pointer;
  border-radius: 0.375rem;
  transition: background-color 0.2s ease;
}

.language-option:hover {
  background: #f1f5f9;
}

.language-option.selected {
  background: var(--accent-color);
  color: white;
}

.language-option.hidden {
  display: none;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
}

.logo .accent {
  color: var(--accent-color);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  margin-left: auto;
  margin-right: 1rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links .cta {
  color: var(--accent-color);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1000;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-color);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero */
.hero {
  position: relative;
  background: url('assets/camlingo-horizontal.jpg') center center no-repeat;
  background-size: 100% 100%;
  padding: 5rem 0;
  min-height: 66.67vh;
  text-align: center;
  color: #ffffff;
}

.hero::before {
  display: none;
}

.hero > * {
  position: relative;
  z-index: 1;
}

/* Site header */
.site-header {
  position: relative;
  z-index: 1000;
}

/* Hero navigation glass background */
.site-header .navbar {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  padding: 0.8rem 1.5rem;
  border-radius: 0.75rem;
  position: relative;
  z-index: 1000;
}

.site-header .logo, .site-header .nav-links a {
  color: var(--text-color);
  text-shadow: none;
}

.site-header .nav-links a:hover {
  color: var(--accent-color);
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-content .accent {
  color: var(--accent-color);
}

.subtitle {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn-primary {
  background: var(--accent-color);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
  display: inline-block;
}

.btn-primary:hover {
  background: #4f46e5;
}

/* Hero body layout */
.hero-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.hero-image {
  display: none; /* hidden on mobile */
}

.hero-image img {
  width: 100%;
  height: auto;
}

/* Banner section */
.banner {
  position: relative;
  overflow: hidden;
}

.banner img {
  width: 100%;
  height: auto;
  display: block;
}

.banner-caption {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
  background: rgba(0, 0, 0, 0.45);
  padding: 1rem 2rem;
  border-radius: 0.5rem;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.alt-bg {
  background: var(--light-gray);
}

.section-title {
  font-size: 2rem;
  margin-bottom: 2.5rem;
  text-align: center;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  max-width: 100%;
}

/* Limit maximum columns to 3 */
@media (min-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-item h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

/* Pricing */
.pricing-table {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
}

.pricing-plan {
  background: #fff;
  padding: 2rem 2.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  width: 280px;
  text-align: center;
  flex: 1;
  min-width: 280px;
  max-width: 320px;
}

.plan-highlight {
  border: 2px solid var(--accent-color);
  transform: scale(1.05);
}

.plan-name {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.plan-price {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
  white-space: nowrap;
}

.plan-features {
  list-style: none;
  text-align: left;
  margin-top: 1rem;
  line-height: 1.5;
}

.plan-features li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.plan-features li:last-child {
  border-bottom: none;
}

/* FAQ */
.faq-list details {
  background: #fff;
  padding: 1rem 1.25rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.faq-list summary {
  font-weight: 600;
}

/* Footer */
.footer {
  background: #111827;
  color: #a1a1aa;
  padding: 2.5rem 0 2rem;
  font-size: 0.875rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer .logo {
  color: #fff;
}

.footer-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: #a1a1aa;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.text-center {
  text-align: center;
}

.small-print {
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

/* Intro below hero */
.intro {
  background: var(--bg-color);
  text-align: center;
  padding-top: 3rem;
}

.intro-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.intro-subtitle {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 2rem;
}

/* Download section refine */
#download .container {
  max-width: 600px;
}

#download .btn-primary {
  font-size: 1rem;
  padding: 0.75rem 2rem;
  border-radius: 0.65rem;
}

#download .section-title {
  margin-bottom: 1.5rem;
}

#download p {
  margin-bottom: 1.25rem;
}

/* Pricing note */
.pricing-note {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--text-color);
  font-size: 0.9rem;
} 

/* Moments section */
.moments {
  background: var(--light-gray);
  text-align: center;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.moments-quote {
  margin: 0 auto 1.5rem;
  max-width: 650px;
  font-style: italic;
  font-size: 1.125rem;
  border-left: 4px solid var(--accent-color);
  padding-left: 1rem;
  color: var(--text-color);
}

.moments-quote p {
  margin-bottom: 0.75rem;
}

.moments-summary {
  font-weight: 600;
  color: var(--text-color);
} 

#download .small-print {
  margin-top: 1rem;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Mobile First - Small devices (phones, 320px and up) */
@media (max-width: 480px) {
  .container {
    width: 95%;
    padding: 0 0.5rem;
  }
  
  .navbar {
    padding: 1rem 0;
  }
  
  .logo {
    font-size: 1.25rem;
  }
  
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 1rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 0.5rem 0.5rem;
    z-index: 999;
  }
  .nav-links.active {
    display: flex;
  }
  .nav-links li {
    margin: 0.5rem 0;
  }
  .nav-links a {
    display: block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.25rem;
    margin: 0 1rem;
  }
  .nav-links a:hover {
    background: rgba(99, 102, 241, 0.1);
  }
  .mobile-menu-toggle {
    display: flex;
  }
  
  .language-selector {
    margin-left: auto;
  }
  
  .language-btn {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    min-width: 110px;
  }
  
  .language-dropdown {
    min-width: 220px;
    right: -0.5rem;
  }
  
  .hero {
    padding: 3rem 0;
    min-height: 50vh;
  }
  
  .hero-content h1 {
    font-size: 1.75rem;
    line-height: 1.2;
  }
  
  .subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }
  
  .btn-primary {
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }
  
  .section {
    padding: 2.5rem 0;
  }
  
  .section-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .pricing-table {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  
  .pricing-plan {
    width: 100%;
    max-width: 300px;
    padding: 1.5rem 1.5rem;
  }
  
  .plan-highlight {
    transform: none;
  }
  
  .plan-name {
    font-size: 1.25rem;
  }
  
  .plan-price {
    font-size: 1.75rem;
  }
  
  .intro-title {
    font-size: 1.75rem;
  }
  
  .moments-quote {
    font-size: 1rem;
    padding-left: 0.75rem;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 0.75rem;
  }
}

/* Medium devices (tablets, 481px and up) */
@media (min-width: 481px) and (max-width: 768px) {
  .container {
    width: 92%;
    padding: 0 1rem;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .subtitle {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  
  .pricing-table {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  
  .pricing-plan {
    width: 100%;
    max-width: 350px;
  }
  
  .plan-highlight {
    transform: none;
  }
  
  .nav-links {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: flex;
  }
  
  .language-btn {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
    min-width: 120px;
  }
  
  .language-dropdown {
    min-width: 240px;
    right: -0.5rem;
  }
}

/* Large devices (tablets, 769px and up) */
@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    width: 90%;
    padding: 0 1.5rem;
  }
  
  .hero-content h1 {
    font-size: 2.25rem;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .pricing-table {
    gap: 1.5rem;
  }
  
  .pricing-plan {
    width: 280px;
    padding: 2rem 2rem;
  }
  
  .plan-highlight {
    transform: scale(1.02);
  }
  
  .nav-links {
    display: flex;
  }
  
  .mobile-menu-toggle {
    display: none;
  }
}

/* Extra large devices (desktops, 1025px and up) */
@media (min-width: 1025px) {
  .container {
    width: 90%;
    max-width: 1200px;
    padding: 0 2rem;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
  }
  
  .pricing-table {
    gap: 2rem;
  }
  
  .pricing-plan {
    width: 300px;
    padding: 2.5rem 2.5rem;
  }
  
  .plan-highlight {
    transform: scale(1.05);
  }
  
  .hero-body {
    flex-direction: row;
    align-items: center;
  }
  
  .hero-content {
    width: 55%;
  }
  
  .hero-image {
    display: block;
    width: 45%;
  }
  
  .nav-links {
    display: flex;
  }
  
  .mobile-menu-toggle {
    display: none;
  }
}

/* Ultra wide screens (1400px and up) */
@media (min-width: 1400px) {
  .container {
    max-width: 1400px;
  }
  
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .section-title {
    font-size: 2.5rem;
  }
  
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Landscape orientation adjustments for mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    min-height: 40vh;
    padding: 2rem 0;
  }
  
  .hero-content h1 {
    font-size: 1.5rem;
  }
  
  .section {
    padding: 2rem 0;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero {
    background-image: url('assets/camlingo-horizontal@2x.jpg');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
  }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #1f2937;
    --text-color: #f9fafb;
    --light-gray: #374151;
  }
  
  .pricing-plan,
  .faq-list details {
    background: #374151;
    color: #f9fafb;
  }
  
  .language-btn {
    background: #374151;
    color: #f9fafb;
    border-color: #4b5563;
  }
  
  .language-dropdown {
    background: #374151;
    border-color: #4b5563;
  }
  
  .language-search input {
    background: #1f2937;
    color: #f9fafb;
    border-color: #4b5563;
  }
  
  .language-option {
    color: #f9fafb;
  }
  
  .language-option:hover {
    background: #4b5563;
  }
} 