/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #1B5E20;
  --secondary-color: #2E7D32;
  --accent-color: #66BB6A;
  --dark-green: #0D3B0D;
  --light-green: #81C784;
  --text-dark: #1D1D1F;
  --text-light: #5D6D5D;
  --bg-light: #F1F8F4;
  --white: #FFFFFF;
  --shadow: 0 4px 6px rgba(27, 94, 32, 0.1);
  --shadow-lg: 0 10px 30px rgba(27, 94, 32, 0.15);
}

html {
  scroll-behavior: smooth;
  height: 100%;
  width: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--white);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  z-index: 1000;
  animation: slideDown 0.5s ease-out;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.nav-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.nav-menu {
  display: flex;
  gap: 30px;
}

.nav-link {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

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

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 50%, #0D3B0D 100%);
  position: relative;
  overflow: hidden;
  padding-top: 60px;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 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.1"/></svg>');
  animation: float 20s infinite linear;
}

.hero-content {
  text-align: center;
  color: var(--white);
  z-index: 1;
  padding: 40px 20px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 40px;
  opacity: 0.95;
}

.app-store-button {
  display: inline-block;
  transition: transform 0.3s ease;
}

.app-store-button:hover {
  transform: scale(1.05);
}

.app-store-badge {
  height: 60px;
  width: auto;
}

.app-store-note {
  margin-top: 20px;
  font-size: 0.9rem;
  opacity: 0.8;
  font-style: italic;
}

/* Animations */
@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes float {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-100px);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 1s ease-out;
}

.fade-in-delay-1 {
  animation: fadeIn 1s ease-out 0.2s both;
}

.fade-in-delay-2 {
  animation: fadeIn 1s ease-out 0.4s both;
}

/* Section Styles */
section {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 60px;
  color: var(--text-dark);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: var(--primary-color);
  margin: 20px auto 0;
  border-radius: 2px;
}

/* Features Section */
.features {
  background-color: var(--bg-light);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--white);
  padding: 40px 30px;
  border-radius: 20px;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
  border: 2px solid transparent;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-color);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.feature-card p {
  color: var(--text-light);
  line-height: 1.8;
}

/* Technology Section */
.technology {
  background: var(--white);
}

.technology-content {
  max-width: 900px;
  margin: 0 auto;
}

.tech-intro {
  margin-bottom: 40px;
}

.tech-intro p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 20px;
}

.factors-section {
  background: var(--bg-light);
  padding: 40px;
  border-radius: 20px;
  margin-bottom: 40px;
}

.factors-section h3 {
  color: var(--primary-color);
  font-size: 1.8rem;
  margin-bottom: 25px;
}

.factors-list {
  list-style: none;
  padding: 0;
}

.factors-list li {
  padding: 12px 0;
  padding-left: 30px;
  position: relative;
  color: var(--text-light);
  line-height: 1.8;
}

.factors-list li::before {
  content: '⛳';
  position: absolute;
  left: 0;
  top: 12px;
}

.example-section h3 {
  color: var(--primary-color);
  font-size: 1.8rem;
  margin-bottom: 25px;
}

.example-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.example-card {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: var(--white);
  padding: 30px;
  border-radius: 15px;
  box-shadow: var(--shadow);
}

.example-card .highlight {
  color: var(--accent-color);
  font-weight: 700;
  font-size: 1.2em;
}

.example-note {
  color: var(--text-light);
  font-style: italic;
  line-height: 1.8;
  padding: 20px;
  background: var(--bg-light);
  border-left: 4px solid var(--primary-color);
  border-radius: 5px;
}

/* Screenshots Section */
.screenshots {
  background: var(--bg-light);
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.screenshot-card {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease;
  border: 3px solid var(--accent-color);
}

.screenshot-card:hover {
  transform: scale(1.05);
}

.screenshot-img {
  width: 100%;
  height: auto;
  display: block;
  background: var(--white);
  object-fit: cover;
}

/* Contact Section */
.contact {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-green) 100%);
  color: var(--white);
}

.contact .section-title {
  color: var(--white);
}

.contact .section-title::after {
  background: var(--accent-color);
}

.contact-content {
  max-width: 800px;
  margin: 0 auto;
}

.contact-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
  border-color: var(--accent-color);
}

.contact-icon {
  font-size: 2rem;
}

.contact-item h3 {
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.contact-item p {
  opacity: 0.9;
}

/* Privacy Section */
.privacy {
  background: var(--bg-light);
}

.privacy-content {
  max-width: 900px;
  margin: 0 auto;
  background: var(--white);
  padding: 50px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  border: 2px solid var(--accent-color);
}

.privacy-content h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-top: 30px;
  margin-bottom: 15px;
}

.privacy-content h4 {
  font-size: 1.2rem;
  color: var(--secondary-color);
  margin-top: 20px;
  margin-bottom: 10px;
}

.privacy-content a {
  color: var(--primary-color);
  text-decoration: underline;
}

.privacy-content a:hover {
  color: var(--accent-color);
}

.privacy-content p {
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.8;
}

.privacy-content ul {
  margin-left: 30px;
  margin-bottom: 20px;
}

.privacy-content li {
  color: var(--text-light);
  margin-bottom: 10px;
  line-height: 1.8;
}

.privacy-update {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--bg-light);
  font-style: italic;
  color: var(--text-light);
}

/* Footer */
.footer {
  background: var(--dark-green);
  color: var(--white);
  padding: 40px 0;
  text-align: center;
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 30px;
}

.footer-links a {
  color: var(--white);
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

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

/* Mobile Menu */
.hamburger {
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
  color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }
  
  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    padding: 20px;
    box-shadow: var(--shadow);
  }
  
  .nav-menu.mobile-open {
    display: flex;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .screenshots-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-info {
    grid-template-columns: 1fr;
  }
  
  .privacy-content {
    padding: 30px 20px;
  }
  
  .footer .container {
    flex-direction: column;
  }

  .example-cards {
    grid-template-columns: 1fr;
  }

  .factors-section {
    padding: 25px 20px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .app-store-badge {
    height: 50px;
  }
  
  .feature-card {
    padding: 30px 20px;
  }

  .tech-intro p {
    font-size: 1rem;
  }

  .factors-section h3,
  .example-section h3 {
    font-size: 1.5rem;
  }
}

/* Scroll Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
