/* style.css - Main CSS for Gain Wave App */
:root {
  --primary-color: #008080;
  --secondary-color: #FFD700;
  --accent-color: #20b2aa;
  --dark-color: #2c5282;
  --light-color: #EBFEFE;
  --text-dark: #333;
  --text-light: #fff;
  --gradient-primary: linear-gradient(to right, #FFD700, #008080);
  --gradient-dark: linear-gradient(to right, #1e3c72, #2a5298);
  --gradient-accent: linear-gradient(to right, #008080, #20b2aa);
  --shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
  --border-radius: 12px;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f8f9fa;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Loading Spinner */
#loading-spinner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--primary-color);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.3s ease;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: var(--secondary-color);
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(50px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes shine {
  0% { transform: translateX(-100%) rotate(45deg); }
  100% { transform: translateX(100%) rotate(45deg); }
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(20, 20);
    opacity: 0;
  }
}

/* Header & Navigation */
header {
  background: var(--gradient-primary);
  color: var(--text-light);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  animation: fadeIn 0.8s ease;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.logo {
  font-size: 26px;
  font-weight: 800;
  background: linear-gradient(to right, #fff, #FFD700);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: slideInLeft 0.8s ease;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 20px;
  align-items: center;
}

nav a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 25px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: var(--secondary-color);
  transition: var(--transition);
}

nav a:hover::after {
  left: 0;
}

nav a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.menu-toggle {
  display: none;
  font-size: 26px;
  cursor: pointer;
  color: white;
  background: none;
  border: none;
  padding: 5px;
}

/* Hero Sections */
.hero {
  padding: 100px 20px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0, 128, 128, 0.85), rgba(0, 128, 128, 0.85));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  animation: slideInLeft 1s ease 0.2s both;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: 0 auto 30px;
  animation: slideInRight 1s ease 0.4s both;
}

/* Section Common Styles */
section {
  padding: 80px 20px;
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

section.animated {
  animation-delay: 0.2s;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
  animation: fadeIn 0.8s ease;
}

.section-title h2 {
  color: var(--primary-color);
  font-size: 2.5rem;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--secondary-color);
  border-radius: 2px;
}

/* Cards & Grids */
.about-grid,
.features-grid,
.values-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.about-card,
.feature-card,
.value-box,
.contact-info,
.contact-form {
  background: white;
  padding: 35px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  animation: fadeIn 0.6s ease;
  opacity: 0;
  animation-fill-mode: forwards;
}

.about-card:hover,
.feature-card:hover,
.value-box:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.about-card:nth-child(1) { animation-delay: 0.2s; }
.about-card:nth-child(2) { animation-delay: 0.4s; }
.about-card:nth-child(3) { animation-delay: 0.6s; }

.about-card i,
.feature-icon {
  font-size: 48px;
  color: var(--primary-color);
  margin-bottom: 20px;
  animation: float 3s ease-in-out infinite;
}

/* About Grid Specific */
.about-card {
  text-align: center;
}

.about-card h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.about-card p {
  color: #666;
  line-height: 1.6;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.feature-card {
  text-align: center;
  border-top: 5px solid var(--primary-color);
}

.feature-card h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.feature-card p {
  color: #666;
  line-height: 1.6;
}

/* Values Section */
.values {
  background: #f8f9fa;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.value-box {
  text-align: center;
}

.value-box h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.3rem;
}

.value-box p {
  color: #666;
}

/* Contact Grid */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.contact-info {
  background: #f8f9fa;
}

.contact-info h3 {
  color: var(--primary-color);
  margin-bottom: 30px;
  font-size: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px solid #eee;
}

.contact-item i {
  font-size: 24px;
  color: var(--primary-color);
  margin-right: 15px;
  min-width: 40px;
  text-align: center;
  padding-top: 5px;
}

.contact-item h4 {
  color: var(--primary-color);
  margin-bottom: 5px;
  font-size: 1.1rem;
}

.contact-item p {
  color: #666;
  line-height: 1.6;
}

.contact-form {
  background: white;
}

.contact-form h3 {
  color: var(--primary-color);
  margin-bottom: 30px;
  font-size: 1.5rem;
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  padding: 16px;
  border-radius: 8px;
  border: 2px solid #e0e0e0;
  font-size: 1rem;
  width: 100%;
  transition: var(--transition);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(0, 128, 128, 0.1);
}

.contact-form button {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 16px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.contact-form button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%);
  transform-origin: 50% 50%;
}

.contact-form button:focus:not(:active)::after {
  animation: ripple 1s ease-out;
}

.contact-form button:hover {
  background: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 128, 128, 0.3);
}

/* Referral System */
.referral {
  background: var(--gradient-dark);
  color: white;
  position: relative;
  overflow: hidden;
}

.referral::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
  animation: pulse 4s ease-in-out infinite;
}

.referral-flow {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
  animation: fadeIn 1s ease;
}

.level-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--secondary-color);
  color: #000;
  font-weight: 800;
  font-size: 1.2rem;
  box-shadow: 0 8px 25px rgba(255, 215, 0, 0.3);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  animation: fadeIn 0.6s ease;
}

.level-circle::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transform: rotate(45deg);
  animation: shine 3s infinite linear;
}

.level-circle:hover {
  transform: scale(1.1);
  animation: pulse 1s ease-in-out;
}

.level-circle span {
  font-size: 0.9rem;
  opacity: 0.9;
  font-weight: 600;
}

/* Table */
.referral-table {
  overflow-x: auto;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  animation: slideInRight 0.8s ease;
}

.referral-table table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
}

.referral-table th,
.referral-table td {
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid #eee;
}

.referral-table th {
  background: var(--primary-color);
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
}

.referral-table tr {
  transition: var(--transition);
}

.referral-table tr:hover {
  background: rgba(0, 128, 128, 0.05);
}

.referral-table td:last-child {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.1rem;
}

/* Video Section */
.video-section {
  background: #f0f8ff;
}

.video-wrapper {
  position: relative;
  max-width: 900px;
  margin: auto;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: fadeIn 1s ease;
}

.video-wrapper video {
  width: 100%;
  display: block;
  transition: var(--transition);
}

.mute-btn {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 20px;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
}

.mute-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
}

/* CTA Section */
.cta {
  background: var(--gradient-accent);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: pulse 4s ease-in-out infinite;
}

.cta h2 {
  margin-bottom: 20px;
  animation: fadeIn 0.8s ease;
}

.cta p {
  margin-bottom: 30px;
  font-size: 1.1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta a {
  display: inline-block;
  background: white;
  color: var(--primary-color);
  padding: 16px 40px;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  animation: pulse 2s ease-in-out infinite;
}

.cta a:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
  background: var(--dark-color);
  color: white;
  padding: 60px 20px 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-content h3 {
  color: var(--secondary-color);
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-content p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 15px;
  line-height: 1.6;
}

.footer-content ul {
  list-style: none;
}

.footer-content ul li {
  margin-bottom: 10px;
}

.footer-content ul li a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: var(--transition);
}

.footer-content ul li a:hover {
  color: var(--secondary-color);
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icons a {
  background: var(--primary-color);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: var(--transition);
}

.social-icons a:hover {
  background: var(--secondary-color);
  transform: translateY(-5px);
  color: #000;
}

.copyright {
  text-align: center;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  opacity: 0.8;
}

/* Download Buttons */
.download-btn-large {
  background: white;
  color: var(--primary-color);
  padding: 16px 40px;
  border-radius: 30px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: var(--transition);
  border: 2px solid white;
  animation: pulse 2s ease-in-out infinite;
}

.download-btn-large:hover {
  background: transparent;
  color: white;
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Utility Classes */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
}

.btn-secondary {
  background: var(--secondary-color);
  color: #000;
}

.btn-large {
  padding: 16px 40px;
  font-size: 1.1rem;
}

.fade-in {
  animation: fadeIn 0.8s ease forwards;
}

.slide-in-left {
  animation: slideInLeft 0.8s ease forwards;
}

.slide-in-right {
  animation: slideInRight 0.8s ease forwards;
}

.float-animation {
  animation: float 3s ease-in-out infinite;
}

.pulse-animation {
  animation: pulse 2s ease-in-out infinite;
}

/* ================= RESPONSIVE DESIGN ================= */
@media (max-width: 1024px) {
  .hero h1 {
    font-size: 2.8rem;
  }
  
  .section-title h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  /* Navigation */
  .menu-toggle {
    display: block;
  }
  
  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--primary-color);
    padding: 20px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }
  
  nav ul.show {
    display: flex;
  }
  
  nav ul li {
    width: 100%;
    text-align: center;
  }
  
  nav a {
    display: block;
    padding: 12px;
  }
  
  /* Hero */
  .hero {
    padding: 80px 20px;
  }
  
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  /* Sections */
  section {
    padding: 60px 20px;
  }
  
  .section-title h2 {
    font-size: 1.8rem;
  }
  
  /* Cards */
  .about-card,
  .feature-card,
  .value-box,
  .contact-info,
  .contact-form {
    padding: 25px;
  }
  
  /* Referral Circles */
  .level-circle {
    width: 80px;
    height: 80px;
    font-size: 1rem;
  }
  
  .level-circle span {
    font-size: 0.8rem;
  }
  
  /* Table */
  .referral-table th,
  .referral-table td {
    padding: 12px;
    font-size: 0.9rem;
  }
  
  /* Footer */
  .footer-content {
    gap: 30px;
  }
  
  /* Contact Items */
  .contact-item {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }
  
  .contact-item i {
    margin-right: 0;
    margin-bottom: 10px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .section-title h2 {
    font-size: 1.5rem;
  }
  
  .level-circle {
    width: 65px;
    height: 65px;
    font-size: 0.9rem;
  }
  
  .cta a,
  .download-btn-large {
    padding: 14px 30px;
    font-size: 0.9rem;
  }
  
  .contact-form input,
  .contact-form textarea {
    padding: 14px;
  }
  
  .about-grid,
  .features-grid,
  .values-grid,
  .contact-grid {
    gap: 20px;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print Styles */
@media print {
  header, footer, .cta, .video-section, #loading-spinner {
    display: none;
  }
  
  body {
    color: #000;
    background: #fff;
  }
  .video-wrapper.youtube-video {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 ratio */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.video-wrapper.youtube-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
  a {
    color: #000;
    text-decoration: underline;
  }
  
  .hero {
    background: none !important;
    color: #000;
  }
  
  .hero::before {
    display: none;
  }

}
