/* Base Styles */
:root {
  --primary-color: #5469d4;
  --secondary-color: #1a1f36;
  --accent-color: #00d4ff;
  --text-color: #333;
  --light-text: #666;
  --bg-color: #ffffff;
  --light-bg: #f7f9fc;
  --border-color: #e6e8eb;
  --success-color: #0acf83;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --radius: 8px;
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--bg-color);
}

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

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--secondary-color);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
  margin-top: 2rem;
}

h3 {
  font-size: 1.5rem;
  margin-top: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

section {
  margin: 4rem 0;
}

/* Header Styles */
header {
  background-color: var(--secondary-color);
  color: white;
  padding: 2rem 0;
  text-align: center;
}

header h1 {
  color: white;
  margin-bottom: 0.5rem;
}

.tagline {
  font-size: 1.25rem;
  opacity: 0.9;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  text-align: center;
  padding: 3rem 0;
}

.cta-banner h2 {
  color: white;
  font-size: 2rem;
  max-width: 800px;
  margin: 0 auto 2rem;
}

.cta-button {
  display: inline-block;
  background-color: white;
  color: var(--primary-color);
  font-weight: 600;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: var(--shadow);
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  color: var(--accent-color);
}

.cta-button i {
  margin-left: 0.5rem;
}

.cta-banner.secondary {
  background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.feature-card {
  background-color: var(--light-bg);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.feature-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin-top: 0;
}

.feature-card p {
  margin-bottom: 0;
  color: var(--light-text);
}

/* Step Layout */
.step-container {
  margin: 2rem 0;
}

.step {
  display: flex;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.step-number {
  background-color: var(--primary-color);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.25rem;
  margin-right: 1.5rem;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
}

.step-content h3 {
  margin-top: 0;
}

/* Code Examples */
.code-example {
  background-color: var(--secondary-color);
  border-radius: var(--radius);
  padding: 1rem;
  margin: 1.5rem 0;
  overflow: hidden;
}

.code-example h4 {
  color: white;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

pre {
  background-color: #1a1f36;
  border-radius: var(--radius);
  overflow-x: auto;
  padding: 1rem;
  font-family: 'Fira Code', 'Courier New', monospace;
  font-size: 0.9rem;
  color: #f8f8f2;
  line-height: 1.5;
}

code {
  white-space: pre;
}

/* Feature Sections */
.feature-section {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-color);
}

.feature-section:last-child {
  border-bottom: none;
}

/* Best Practices */
.best-practices-list {
  list-style: none;
}

.best-practices-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  background-color: var(--light-bg);
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
}

.best-practices-list li i {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-right: 1rem;
  margin-top: 0.25rem;
}

.best-practices-list li h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.best-practices-list li p {
  margin-bottom: 0;
}

/* Resources */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.resource-card {
  background-color: var(--light-bg);
  color: var(--text-color);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
  display: block;
}

.resource-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  color: var(--text-color);
}

.resource-card i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.resource-card h3 {
  margin-top: 0;
}

.resource-card p {
  margin-bottom: 0;
  color: var(--light-text);
}

/* Footer */
footer {
  background-color: var(--secondary-color);
  color: white;
  padding: 2rem 0;
  text-align: center;
  margin-top: 4rem;
}

footer p {
  margin-bottom: 0;
  opacity: 0.8;
}

/* Floating Preview Button */
.floating-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.floating-btn:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.floating-btn-text {
  position: absolute;
  background-color: var(--secondary-color);
  color: white;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  bottom: 70px;
  right: 0;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

.floating-btn:hover .floating-btn-text {
  opacity: 1;
  transform: translateY(0);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(84, 105, 212, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(84, 105, 212, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(84, 105, 212, 0);
  }
}

.floating-btn {
  animation: pulse 2s infinite;
}

/* Responsive Styles */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.75rem;
  }
  
  h3 {
    font-size: 1.25rem;
  }
  
  .cta-banner h2 {
    font-size: 1.5rem;
  }
  
  .cta-button {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
  
  .step {
    flex-direction: column;
  }
  
  .step-number {
    margin-bottom: 1rem;
  }
  
  .feature-card, .resource-card {
    padding: 1.5rem;
  }
  
  .floating-btn {
    width: 50px;
    height: 50px;
    font-size: 20px;
    bottom: 20px;
    right: 20px;
  }
}

/* Iframe and Video Container Styles */
.iframe-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  background: var(--light-bg);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 2rem 0;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.iframe-container:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

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

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  margin: 2rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--secondary-color);
  box-shadow: var(--shadow);
}

.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.iframe-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, var(--light-bg), white);
}

.iframe-section h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.iframe-section .description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 2rem;
  color: var(--light-text);
  font-size: 1.1rem;
  line-height: 1.6;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

@media (max-width: 768px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
  
  .iframe-container,
  .video-wrapper {
    margin: 1rem 0;
  }
}