/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

/* Base styles with UGA colors */
:root {
  /* UGA Color Palette */
  --primary-color: #BA0C2F; /* Bulldog Red */
  --primary-light: #d40e38; /* Lighter Bulldog Red */
  --primary-dark: #9a0a27; /* Darker Bulldog Red */
  --secondary-color: #000000; /* Arch Black */
  --secondary-light: #333333; /* Lighter Black */
  --accent-color: #FFFFFF; /* Chapel Bell White */
  --text-primary: #000000; /* Black text */
  --text-secondary: #333333; /* Dark gray text */
  --background-light: #f3f3f3; /* Light background */
  --card-background: #ffffff; /* White background */
  --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.08);
  --shadow-medium: 0 10px 25px rgba(0, 0, 0, 0.12);
  --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.18);
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
  --border-radius-small: 8px;
  --border-radius-medium: 16px;
  --border-radius-large: 24px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text-primary);
  background-color: var(--background-light);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* Card styles */
.card {
  background-color: var(--card-background);
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
  padding: 0;
  margin-bottom: 40px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.main-card {
  position: relative;
  border-top: 6px solid var(--primary-color);
}

/* Header section */
.header-section {
  position: relative;
  padding: 60px 40px 30px;
  text-align: center;
  background: linear-gradient(135deg, rgba(186, 12, 47, 0.05) 0%, rgba(0, 0, 0, 0.05) 100%);
  overflow: hidden;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(186, 12, 47, 0.2);
}

.title {
  font-family: 'Montserrat', sans-serif;
  font-size: 42px;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 15px;
  position: relative;
  z-index: 2;
}

.title-underline {
  width: 150px;
  height: 3px;
  background: var(--secondary-color);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Animated particles */
.animated-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.particle {
  position: absolute;
  border-radius: 50%;
  opacity: 0.4;
  transition: transform 0.8s var(--transition-medium);
}

.p1 {
  width: 25px;
  height: 25px;
  top: 20%;
  right: 15%;
  background: var(--primary-color);
  animation: float 12s infinite ease-in-out;
}

.p2 {
  width: 15px;
  height: 15px;
  top: 30%;
  right: 25%;
  background: var(--secondary-color);
  animation: float 10s infinite ease-in-out 1s;
}

.p3 {
  width: 40px;
  height: 40px;
  top: 15%;
  right: 35%;
  background: var(--primary-color);
  animation: float 14s infinite ease-in-out 2s;
}

.p4 {
  width: 20px;
  height: 20px;
  top: 40%;
  right: 45%;
  background: var(--secondary-color);
  animation: float 9s infinite ease-in-out 3s;
}

.p5 {
  width: 30px;
  height: 30px;
  top: 25%;
  left: 20%;
  background: var(--primary-color);
  animation: float 11s infinite ease-in-out 1.5s;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) translateX(0) rotate(0deg);
    opacity: 0.4;
  }
  25% {
    transform: translateY(-15px) translateX(10px) rotate(5deg);
    opacity: 0.6;
  }
  50% {
    transform: translateY(5px) translateX(-10px) rotate(-5deg);
    opacity: 0.3;
  }
  75% {
    transform: translateY(10px) translateX(5px) rotate(3deg);
    opacity: 0.5;
  }
}

/* Content sections */
.content-section {
  padding: 40px;
  position: relative;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.section-header {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
}

.section-icon {
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  font-size: 18px;
  box-shadow: 0 2px 8px rgba(186, 12, 47, 0.3);
  border: 2px solid white;
}

.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--secondary-color);
  position: relative;
  margin: 0;
}

.section-line {
  height: 3px;
  width: 100px;
  background-color: var(--primary-color);
  margin: 0 0 20px 55px;
}

.description {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 25px;
}

/* Examples grid */
.examples-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin: 30px 0;
}

/* Example boxes and videos */
.example-box {
  background-color: var(--card-background);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: all 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.example-box:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-color);
}

.example-video-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  background-color: #000;
  overflow: hidden;
}

.example-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.example-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.example-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.example-number {
  background-color: var(--primary-color);
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  margin-right: 12px;
}

.example-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--secondary-color);
  margin: 0;
}

.example-content p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-top: 10px;
  flex-grow: 1;
}

/* How to use section */
.usage-box {
  background-color: rgba(186, 12, 47, 0.03);
  border-radius: 16px;
  padding: 30px;
  box-shadow: var(--shadow-light);
  border-left: 4px solid var(--primary-color);
}

.usage-list {
  counter-reset: step;
  list-style-type: none;
  padding-left: 10px;
}

.usage-list li {
  position: relative;
  padding-left: 50px;
  margin-bottom: 20px;
  counter-increment: step;
}

.usage-list li:last-child {
  margin-bottom: 0;
}

.usage-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 36px;
  height: 36px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.step-text {
  display: block;
  padding-top: 5px;
  font-size: 16px;
  line-height: 1.6;
}

/* Simulator sample */
.simulator-sample {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-light);
  margin-top: 20px;
  transition: all 0.3s;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.simulator-sample:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary-color);
}

.simulator-sample img {
  width: 100%;
  height: auto;
  display: block;
}

.image-caption {
  padding: 15px;
  font-size: 14px;
  color: var(--text-secondary);
  background-color: rgba(0, 0, 0, 0.02);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Parameters section */
.section-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.parameter-box {
  border-radius: 16px;
  padding: 30px;
  position: relative;
  transition: all 0.3s;
  height: 100%;
}

.parameter-box:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.parameter-box.primary {
  background-color: rgba(186, 12, 47, 0.03);
  border-left: 4px solid var(--primary-color);
}

.parameter-box.secondary {
  background-color: rgba(0, 0, 0, 0.03);
  border-left: 4px solid var(--secondary-color);
}

.parameter-icon {
  position: absolute;
  top: -20px;
  left: 30px;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 8px rgba(186, 12, 47, 0.3);
}

.parameter-box.secondary .parameter-icon {
  background-color: var(--secondary-color);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.parameter-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--secondary-color);
  margin-bottom: 20px;
  padding-top: 10px;
}

.parameter-list {
  list-style-type: none;
}

.parameter-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
  line-height: 1.5;
}

.parameter-list li::before {
  content: "•";
  color: var(--primary-color);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.parameter-box.secondary .parameter-list li::before {
  color: var(--secondary-color);
}

.bold {
  font-weight: 600;
  color: var(--secondary-color);
}

.coming-soon {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px dashed rgba(0, 0, 0, 0.1);
  font-style: italic;
  color: var(--text-secondary);
  font-size: 14px;
}

/* CTA section */
.cta-section {
  padding: 0 40px 40px;
}

.cta-container {
  background-color: var(--primary-color);
  padding: 40px;
  border-radius: 20px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 5px 25px rgba(186, 12, 47, 0.3);
  border: 2px solid var(--secondary-color);
}

.cta-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 15px;
}

.cta-description {
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto 25px;
  opacity: 0.9;
}

/* Navigation buttons */
.navigation-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.back-button, 
.simulator-button {
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  position: relative;
  z-index: 10;
}

.back-button {
  background-color: var(--secondary-color);
  color: white;
  border: 2px solid white;
  position: relative;
  overflow: hidden;
}

.back-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.back-button:hover {
  background-color: var(--secondary-light);
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.back-button:hover::before {
  animation: button-shine 1.5s infinite;
}

@keyframes button-shine {
  100% {
    transform: translateX(100%);
  }
}

.simulator-button {
  background-color: var(--secondary-color);
  color: white;
  border: 2px solid white;
  position: relative;
  overflow: hidden;
}

.simulator-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: translateX(-100%);
}

.simulator-button:hover {
  background-color: var(--secondary-light);
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.simulator-button:hover::before {
  animation: button-shine 1.5s infinite;
}

/* Responsive styles */
@media (max-width: 992px) {
  .examples-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .title {
    font-size: 36px;
  }
  
  .section-title {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .content-section,
  .cta-section {
    padding: 30px;
  }
  
  .header-section {
    padding: 40px 20px 30px;
  }
  
  .title {
    font-size: 30px;
  }
  
  .section-title {
    font-size: 22px;
  }
  
  .description {
    font-size: 15px;
  }
  
  .examples-grid,
  .section-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .navigation-buttons {
    flex-direction: column;
  }
  
  .parameter-box {
    padding: 25px 20px;
  }
  
  .parameter-title {
    font-size: 18px;
  }
  
  .usage-list li {
    padding-left: 40px;
  }
  
  .usage-list li::before {
    width: 30px;
    height: 30px;
  }
  
  .cta-container {
    padding: 30px 20px;
  }
  
  .cta-title {
    font-size: 22px;
  }
  
  .cta-description {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .content-section,
  .cta-section {
    padding: 25px 20px;
  }
  
  .header-section {
    padding: 30px 15px 20px;
  }
  
  .title {
    font-size: 26px;
  }
  
  .section-icon {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
  
  .section-title {
    font-size: 20px;
  }
  
  .section-line {
    margin-left: 45px;
  }
  
  .example-title {
    font-size: 16px;
  }
  
  .example-content p {
    font-size: 14px;
  }
  
  .parameter-icon {
    width: 35px;
    height: 35px;
    font-size: 16px;
  }
  
  .parameter-box {
    padding: 25px 15px;
  }
  
  .simulator-button, .back-button {
    padding: 10px 20px;
    font-size: 14px;
    width: 100%;
  }
}