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

:root {
  /* Colors from extension design */
  --primary-green: #4CAF50;
  --primary-green-hover: #43a047;
  --highlight-yellow: #ffeb3b;
  --highlight-yellow-dark: #fbc02d;
  --highlight-yellow-hover: #f9a825;
  --purple: #ba68c8;
  --header-bg: #ecd9c9;
  --card-bg: #f8f9fa;
  --border-color: #e0e0e0;
  --text-primary: #333;
  --text-secondary: #666;
  --text-muted: #888;
  --bg-white: #fff;
  --bg-light: #fafafa;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  
  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-base: 16px;
  --font-size-sm: 14px;
  --font-size-lg: 18px;
  --font-size-xl: 24px;
  --font-size-2xl: 32px;
  --font-size-3xl: 48px;
  --font-size-4xl: 64px;
  
  /* Border radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  width: 100%;
}

/* Navigation */
.navbar {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md) 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  text-decoration: none;
  color: var(--text-primary);
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
}

.logo-text {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

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

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

/* Buttons */
.btn-primary-small {
  background: var(--primary-green);
  color: white !important;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--font-size-sm);
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary-small:hover {
  background: var(--primary-green-hover);
  transform: translateY(-1px);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  background: var(--primary-green);
  color: white !important;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--font-size-base);
  transition: all 0.2s;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--primary-green-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-primary-large {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-sm);
  background: var(--primary-green);
  color: white;
  padding: 18px 36px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--font-size-lg);
  transition: all 0.2s;
  box-shadow: var(--shadow-lg);
}

.btn-primary-large:hover {
  background: var(--primary-green-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  background: var(--bg-white);
  color: var(--text-primary);
  padding: 14px 28px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--font-size-base);
  transition: all 0.2s;
  border: 2px solid var(--border-color);
  cursor: pointer;
  font-family: inherit;
}

.btn-secondary:hover {
  border-color: var(--text-primary);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  padding: var(--spacing-2xl) 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-2xl);
  align-items: center;
}

.hero-title {
  font-size: var(--font-size-4xl);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
}

.hero-title .highlight {
  color: var(--primary-green);
  display: block;
}

.hero-description {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: var(--spacing-xl);
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--border-color);
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: var(--spacing-xs);
}

.stat-label {
  font-size: var(--font-size-sm);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Hero Visual - Note Demo */
.hero-visual {
  position: relative;
  height: 500px;
  overflow: hidden; /* Prevent demo elements from extending outside */
}

.note-demo {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden; /* Ensure all demo elements stay within bounds */
}

.demo-note {
  position: absolute;
  background: var(--highlight-yellow);
  border: 2px solid var(--highlight-yellow-dark);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  min-width: 200px;
  max-width: 250px;
  animation: float 3s ease-in-out infinite;
}

.note-1 {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.note-2 {
  top: 50%;
  right: 15%;
  animation-delay: 1s;
}

.note-header {
  background: var(--highlight-yellow-dark);
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  cursor: move;
}

.note-title {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--text-primary);
}

.note-controls {
  display: flex;
  gap: 8px;
}

.note-minimize,
.note-close {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  font-size: 14px;
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.2s;
}

.note-minimize:hover,
.note-close:hover {
  background: rgba(0, 0, 0, 0.1);
}

.note-content {
  padding: 12px;
  font-size: var(--font-size-sm);
  color: var(--text-primary);
  line-height: 1.5;
}

.demo-highlight {
  position: absolute;
  bottom: 5%;
  left: 10%;
  max-width: 250px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  line-height: 1.6;
}

.demo-highlight .demo-text {
  color: #333;
  font-size: 14px;
  display: inline;
}

.demo-highlight .highlighted-portion {
  background: rgba(255, 235, 59, 0.5);
  padding: 2px 4px;
  border-radius: 3px;
  font-weight: 500;
}

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

@keyframes pulse {
  0%, 100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.7;
  }
}

/* Features Section */
.features {
  padding: var(--spacing-2xl) 0;
  background: var(--bg-white);
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.section-title {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
}

.section-description {
  font-size: var(--font-size-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  transition: all 0.3s;
}

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

.feature-icon {
  width: 64px;
  height: 64px;
  background: var(--primary-green);
  color: white;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-md);
}

.feature-icon.highlight-icon {
  background: linear-gradient(135deg, var(--highlight-yellow) 0%, var(--highlight-yellow-dark) 100%);
  color: var(--text-primary);
}

.feature-title {
  font-size: var(--font-size-xl);
  font-weight: 600;
  margin-bottom: var(--spacing-sm);
  color: var(--text-primary);
}

.feature-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

/* How It Works Section */
.how-it-works {
  padding: var(--spacing-2xl) 0;
  background: var(--bg-light);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-xl);
  max-width: 1000px;
  margin: 0 auto;
}

.step {
  display: flex;
  gap: var(--spacing-md);
  align-items: flex-start;
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--primary-green);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xl);
  font-weight: 700;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.step-title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  margin-bottom: var(--spacing-xs);
  color: var(--text-primary);
}

.step-description {
  color: var(--text-secondary);
  line-height: 1.6;
}

.step-description a {
  color: var(--primary-green);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.step-description a:hover {
  color: var(--primary-green-hover);
  text-decoration: underline;
}

/* Install Section */
.install {
  padding: var(--spacing-2xl) 0;
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-hover) 100%);
  color: white;
}

.install-content {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--spacing-2xl);
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.install-icon {
  width: 128px;
  height: 128px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
}

.install-title {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  color: white;
}

.install-description {
  font-size: var(--font-size-lg);
  margin-bottom: var(--spacing-lg);
  opacity: 0.95;
  line-height: 1.7;
}

.install-cta {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.install-note {
  font-size: var(--font-size-sm);
  opacity: 0.9;
  margin-top: var(--spacing-xs);
}

/* FAQ Section */
.faq {
  padding: var(--spacing-2xl) 0;
  background: var(--bg-light);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
  overflow: hidden;
  transition: all 0.3s;
}

.faq-item:hover {
  box-shadow: var(--shadow-md);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-lg);
  background: transparent;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--text-primary);
  transition: color 0.2s;
}

.faq-question:hover {
  color: var(--primary-green);
}

.faq-question span {
  flex: 1;
  margin-right: var(--spacing-md);
}

.faq-icon {
  flex-shrink: 0;
  transition: transform 0.3s;
  color: var(--text-secondary);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-item.active .faq-question {
  color: var(--primary-green);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  transition: max-height 0.5s ease-in;
}

.faq-answer p {
  padding: 0 var(--spacing-lg) var(--spacing-lg);
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

.faq-answer a {
  color: var(--primary-green);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.faq-answer a:hover {
  color: var(--primary-green-hover);
  text-decoration: underline;
}

/* Footer */
.footer {
  background: var(--text-primary);
  color: white;
  padding: var(--spacing-2xl) 0 var(--spacing-lg);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--spacing-2xl);
  margin-bottom: var(--spacing-xl);
}

.footer-brand .logo {
  margin-bottom: var(--spacing-sm);
}

.footer-brand .logo-text {
  color: white;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--font-size-sm);
  margin-bottom: var(--spacing-md);
}

.btn-footer {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  background: var(--primary-green);
  color: white !important;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  font-size: var(--font-size-sm);
  transition: all 0.2s;
  margin-top: var(--spacing-sm);
}

.btn-footer:hover {
  background: var(--primary-green-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
}

.footer-column h4 {
  font-size: var(--font-size-base);
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  color: white;
}

.footer-column a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: var(--font-size-sm);
  margin-bottom: var(--spacing-xs);
  transition: color 0.2s;
}

.footer-column a:hover {
  color: white;
}

.footer-bottom {
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--font-size-sm);
}

/* Responsive Design */
@media (max-width: 968px) {
  .container {
    padding: 0 var(--spacing-sm);
  }
  
  .hero {
    padding: var(--spacing-xl) 0;
    margin-bottom: var(--spacing-xl); /* More spacing before features section */
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
  }
  
  .hero-visual {
    height: 400px;
    margin-bottom: var(--spacing-lg); /* Extra margin on mobile */
    /* Hero text comes first, then visual */
  }
  
  .note-demo {
    padding: var(--spacing-md);
  }
  
  .hero-title {
    font-size: var(--font-size-3xl);
  }
  
  .hero-description {
    font-size: var(--font-size-base);
  }
  
  .note-demo {
    padding: var(--spacing-md);
  }
  
  .demo-note {
    min-width: 180px;
    max-width: 220px;
  }
  
  .demo-highlight {
    max-width: 200px;
    font-size: 12px;
  }
  
  .features {
    padding: var(--spacing-xl) 0;
    padding-top: var(--spacing-2xl); /* Extra top padding to prevent overlap */
  }
  
  .features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-md);
  }
  
  .install-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }
  
  .video-modal-content {
    width: 95%;
    padding: var(--spacing-md);
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 var(--spacing-sm);
  }
  
  /* Navigation */
  .nav-content {
    padding: var(--spacing-sm) 0;
  }
  
  .logo-icon {
    width: 28px;
    height: 28px;
  }
  
  .logo-text {
    font-size: var(--font-size-base);
  }
  
  .nav-links {
    gap: var(--spacing-xs);
  }
  
  .nav-links a:not(.btn-primary-small) {
    display: none;
  }
  
  .btn-primary-small {
    padding: 6px 12px;
    font-size: 12px;
  }
  
  /* Hero Section */
  .hero {
    padding: var(--spacing-lg) 0;
    margin-bottom: var(--spacing-xl); /* Extra spacing on very small screens */
  }
  
  .hero-title {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-sm);
  }
  
  .hero-description {
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-md);
  }
  
  .hero-cta {
    flex-direction: column;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
  }
  
  .btn-primary,
  .btn-secondary,
  .btn-primary-large {
    width: 100%;
    justify-content: center;
    padding: 12px 24px;
    font-size: var(--font-size-sm);
  }
  
  .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    justify-content: center;
  }
  
  .stat {
    flex: 1;
    min-width: 80px;
  }
  
  .stat-number {
    font-size: var(--font-size-xl);
  }
  
  .stat-label {
    font-size: 11px;
  }
  
  /* Hero Visual */
  .hero-visual {
    height: 300px;
    margin-bottom: var(--spacing-xl); /* More margin on smaller screens */
  }
  
  .note-demo {
    padding: var(--spacing-sm);
  }
  
  /* Adjust demo element positions to keep them more contained */
  .note-2 {
    top: 40%;
    right: 5%;
  }
  
  .demo-highlight {
    bottom: 8%;
    left: 5%;
  }
  
  .demo-note {
    min-width: 150px;
    max-width: 180px;
    font-size: 11px;
  }
  
  .note-1 {
    top: 10%;
    left: 5%;
  }
  
  .note-2 {
    top: 45%;
    right: 5%;
  }
  
  .demo-highlight {
    bottom: 10%;
    left: 5%;
    max-width: 180px;
    padding: 6px 10px;
    font-size: 11px;
  }
  
  .demo-highlight .demo-text {
    font-size: 11px;
  }
  
  /* Sections */
  .section-header {
    margin-bottom: var(--spacing-lg);
  }
  
  .section-title {
    font-size: var(--font-size-2xl);
  }
  
  .section-description {
    font-size: var(--font-size-sm);
  }
  
  .features {
    padding: var(--spacing-lg) 0;
    padding-top: var(--spacing-2xl); /* Extra top padding to prevent overlap */
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .feature-card {
    padding: var(--spacing-md);
  }
  
  .feature-icon {
    width: 48px;
    height: 48px;
  }
  
  .feature-title {
    font-size: var(--font-size-lg);
  }
  
  .feature-description {
    font-size: var(--font-size-sm);
  }
  
  /* How It Works */
  .how-it-works {
    padding: var(--spacing-lg) 0;
  }
  
  .steps {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .step {
    padding: var(--spacing-md);
  }
  
  .step-number {
    width: 48px;
    height: 48px;
    font-size: var(--font-size-xl);
  }
  
  .step-title {
    font-size: var(--font-size-lg);
  }
  
  .step-description {
    font-size: var(--font-size-sm);
  }
  
  /* Install Section */
  .install {
    padding: var(--spacing-lg) 0;
  }
  
  .faq {
    padding: var(--spacing-lg) 0;
  }
  
  .faq-question {
    padding: var(--spacing-md);
    font-size: var(--font-size-base);
  }
  
  .faq-answer p {
    padding: 0 var(--spacing-md) var(--spacing-md);
    font-size: var(--font-size-sm);
  }
  
  .install-content {
    gap: var(--spacing-lg);
  }
  
  .install-icon {
    width: 80px;
    height: 80px;
  }
  
  .install-title {
    font-size: var(--font-size-2xl);
  }
  
  .install-description {
    font-size: var(--font-size-sm);
  }
  
  .install-cta {
    flex-direction: column;
    gap: var(--spacing-sm);
  }
  
  /* Footer */
  .footer {
    padding: var(--spacing-lg) 0;
  }
  
  .footer-content {
    gap: var(--spacing-lg);
  }
  
  .footer-links {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .footer-column {
    margin-bottom: var(--spacing-md);
  }
  
  .btn-footer {
    width: 100%;
    justify-content: center;
  }
  
  /* Video Modal */
  .video-modal-content {
    width: 95%;
    padding: var(--spacing-sm);
    margin: var(--spacing-sm);
  }
  
  .video-modal-close {
    top: -8px;
    right: -8px;
    width: 32px;
    height: 32px;
  }
  
  .video-container {
    padding-bottom: 56.25%;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: var(--font-size-xl);
  }
  
  .hero-visual {
    height: 250px;
  }
  
  /* Hide second note on very small screens - show only one note and one highlight */
  .note-1 {
    display: none;
  }
  
  .demo-note {
    min-width: 120px;
    max-width: 150px;
    font-size: 10px;
  }
  
  .demo-highlight {
    max-width: 150px;
    font-size: 10px;
    padding: 4px 8px;
  }
  
  .section-title {
    font-size: var(--font-size-xl);
  }
  
  .btn-primary,
  .btn-secondary,
  .btn-primary-large {
    padding: 10px 20px;
    font-size: 13px;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Selection */
::selection {
  background: var(--highlight-yellow);
  color: var(--text-primary);
}

/* Video Modal */
.video-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.video-modal.active {
  display: flex;
}

.video-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

.video-modal-content {
  position: relative;
  width: 90%;
  max-width: 900px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-xl);
  animation: slideUp 0.3s ease;
  z-index: 10001;
}

.video-modal-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 40px;
  height: 40px;
  background: var(--bg-white);
  border: 2px solid var(--border-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10002;
  color: var(--text-primary);
}

.video-modal-close:hover {
  background: var(--primary-green);
  border-color: var(--primary-green);
  color: white;
  transform: rotate(90deg);
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #000;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  border: none;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

/* Prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden;
}
