/* Base Styles */
:root {
  /* Primary brand colors */
  --primary-color: #500DB2;      /* Main purple - unchanged */
  --primary-light: #7B3FE4;      /* Lighter purple for hover states */
  --primary-dark: #3A0A8F;       /* Darker purple for active states */
  --primary-fade: rgba(80, 13, 178, 0.1);  /* Very light purple for backgrounds */
  
  /* Secondary and accent colors */
  --secondary-color: #2D2B55;    /* Deep navy-purple for text and headings */
  --accent-color: #FF6B35;       /* Warm orange for CTAs and highlights */
  --accent-light: #FF8B5E;       /* Lighter orange for hover states */
  --accent-dark: #E54D1B;        /* Darker orange for active states */
  
  /* Neutral colors */
  --text-color: #2D2B55;         /* Deep navy-purple for main text */
  --text-light: #6B6A8F;         /* Muted purple for secondary text */
  --text-muted: #9B9AB0;         /* Even lighter purple for less important text */
  --light-text: #FFFFFF;         /* White text - unchanged */
  --background-color: #F8F7FC;   /* Very light purple tint for background */
  --card-background: #FFFFFF;    /* White - unchanged */
  --border-color: #E5E3F2;       /* Light purple tint for borders */
  --hover-background: #F0EEF9;   /* Light purple for hover states */
  
  /* Semantic colors */
  --footer-background: #4A3B8C;  /* Lighter purple for footer */
  --footer-text: #E5E3F2;        /* Light purple for footer text */
  --footer-link: #FFFFFF;        /* White for footer links */
  --footer-link-hover: #FF8B5E;  /* Accent color for footer link hover */
  --success-color: #00BFA5;      /* Teal for success states */
  --success-light: #E6F7F5;      /* Light teal for success backgrounds */
  --error-color: #FF4B4B;        /* Bright red for errors */
  --error-light: #FFE8E8;        /* Light red for error backgrounds */
  --warning-color: #FFB74D;      /* Amber for warnings */
  --warning-light: #FFF4E6;      /* Light amber for warning backgrounds */
  
  /* Effects */
  --box-shadow: 0 4px 12px rgba(80, 13, 178, 0.08);  /* Softer purple-tinted shadow */
  --box-shadow-hover: 0 6px 16px rgba(80, 13, 178, 0.12);  /* Stronger shadow for hover */
  --transition-speed: 0.3s;
  --font-primary: 'Montserrat', 'Segoe UI', sans-serif;
}

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

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  overflow-x: hidden;
  font-weight: 400;
}

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

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

img {
  max-width: 100%;
  height: auto;
}

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

h1 {
  font-size: 2.5rem;
  letter-spacing: -0.5px;
}

h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  letter-spacing: -0.3px;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

p {
  margin-bottom: 1rem;
}

/* Layout */
.container {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}

section {
  padding: 3rem 1rem;
}

/* Header and Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--light-text);
  padding: 1rem;
  box-shadow: var(--box-shadow);
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.logo-container {
  position: absolute;
  top: 2rem;
  left: 2rem;
  width: 160px;
  z-index: 2;
}

.logo {
  width: 100%;
  height: auto;
  display: block;
}

.nav-mobile {
  position: relative;
}

.menu-toggle {
  display: block;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px 0;
  background-color: var(--secondary-color);
  transition: transform var(--transition-speed) ease;
}

.menu-toggle span.active:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle span.active:nth-child(2) {
  opacity: 0;
}

.menu-toggle span.active:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-menu {
  position: absolute;
  right: 0;
  top: 100%;
  background-color: var(--card-background);
  border-radius: 4px;
  box-shadow: var(--box-shadow);
  padding: 1rem;
  width: 200px;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-speed) ease;
  opacity: 0;
  visibility: hidden;
  list-style: none;
}

.nav-menu.open,
.nav-menu.active {
  max-height: 300px;
  opacity: 1;
  visibility: visible;
}

.nav-menu li {
  margin-bottom: 0.5rem;
}

.nav-menu a {
  display: block;
  padding: 0.5rem;
  color: var(--secondary-color);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-menu a:hover {
  background-color: var(--hover-background);
  color: var(--primary-color);
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--light-text);
  overflow: hidden;
  margin-top: 0;
}

.video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
}

.background-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translateX(-50%) translateY(-50%);
  object-fit: cover;
}

.hero-content {
  max-width: 90%;
  padding: 2rem;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  z-index: 1;
}

.hero-content h1 {
  color: var(--light-text);
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.cta-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: var(--light-text);
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all var(--transition-speed) ease;
  box-shadow: var(--box-shadow);
}

.cta-button:hover {
  background-color: var(--primary-light);
  box-shadow: var(--box-shadow-hover);
  transform: translateY(-2px);
}

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

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.feature-card {
  background-color: var(--card-background);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: var(--box-shadow);
  text-align: center;
  transition: all var(--transition-speed) ease;
}

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

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* Benefits Section */
.benefits {
  background-color: var(--background-color);
}

.benefits-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.benefit {
  background-color: var(--card-background);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: var(--box-shadow);
}

/* Compliance Section */
.compliance {
  background-color: var(--card-background);
  text-align: center;
}

.compliance > p {
  max-width: 600px;
  margin: 0 auto 2rem;
}

.compliance-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.compliance-feature {
  background-color: var(--background-color);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: var(--box-shadow);
}

/* Contact Section */
.contact {
  background-color: var(--background-color);
  text-align: center;
}

.contact-form {
  max-width: 500px;
  margin: 0 auto;
  background-color: var(--card-background);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  border: 1px solid var(--border-color);
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
  font-weight: 500;
}

input, textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 1rem;
  transition: border-color var(--transition-speed) ease;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px var(--primary-fade);
}

.submit-button {
  background-color: var(--primary-color);
  color: var(--light-text);
  border: none;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  box-shadow: var(--box-shadow);
}

.submit-button:hover {
  background-color: var(--primary-light);
  box-shadow: var(--box-shadow-hover);
}

/* Footer */
.footer {
  background-color: var(--footer-background);
  color: var(--footer-text);
  padding: 3rem 1rem 1rem;
}

.footer-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.footer-logo {
  text-align: center;
  background-color: rgba(255, 255, 255, 0.15);  /* Slightly more visible background */
  width: 140px;  /* Fixed width for square */
  height: 140px;  /* Fixed height for square */
  padding: 1.5rem;
  border-radius: 16px;  /* Increased border radius for more rounded corners */
  display: flex;  /* Changed to flex for better centering */
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}

.logo-small {
  max-width: 100%;  /* Logo will fill the container while maintaining aspect ratio */
  max-height: 100%;
  filter: brightness(1.2);
  object-fit: contain;  /* Ensures logo maintains aspect ratio */
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.footer-links a {
  color: var(--footer-link);
  opacity: 0.9;
  transition: color var(--transition-speed) ease, opacity var(--transition-speed) ease;
  font-weight: 500;  /* Make links slightly bolder */
}

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

.footer-contact {
  text-align: center;
  background-color: rgba(255, 255, 255, 0.08);  /* Slightly more visible background */
  padding: 1.5rem;
  border-radius: 8px;
}

.footer-contact p {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;  /* Slightly larger text */
}

.footer-contact a {
  color: var(--footer-link);
  font-weight: 500;
  transition: color var(--transition-speed) ease;
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--footer-link-hover);
}

.copyright {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(229, 227, 242, 0.2);
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Tablet Styles (768px and up) */
@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
  
  section {
    padding: 4rem 2rem;
  }
  
  h1 {
    font-size: 3rem;
  }
  
  h2 {
    font-size: 2.5rem;
  }
  
  .features-grid,
  .benefits-container,
  .compliance-features {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-content {
    max-width: 70%;
  }
  
  .footer-container {
    grid-template-columns: repeat(3, 1fr);
    text-align: left;
    align-items: start;
  }
  
  .footer-logo {
    margin: 0;  /* Remove center margin on larger screens */
    width: 120px;  /* Slightly smaller on desktop */
    height: 120px;
  }
  
  .footer-links ul {
    justify-content: flex-start;
    flex-direction: column;
  }
  
  .footer-contact {
    text-align: left;
  }
  
  .terms-section,
  .privacy-section {
    padding: 2rem;
    max-width: 90%;
    margin: 0 auto;
  }
}

/* Desktop Styles (992px and up) */
@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
  
  section {
    padding: 5rem;
  }
  
  .menu-toggle {
    display: none;
  }
  
  .nav-menu {
    position: static;
    background: none;
    box-shadow: none;
    max-height: initial;
    opacity: 1;
    visibility: visible;
    width: auto;
    padding: 0;
    display: flex;
  }
  
  .nav-menu li {
    margin: 0 0 0 1.5rem;
  }
  
  .nav-menu a {
    padding: 0;
  }
  
  .nav-menu a:hover {
    background: none;
  }
  
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .benefits-container,
  .compliance-features {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .hero-content {
    max-width: 60%;
  }
  
  .hero-content h1 {
    font-size: 3.5rem;
  }
}

/* Large Desktop Styles (1200px and up) */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* Main content spacing */
main {
  padding-top: 100px; /* Ensure enough space for header always */
}

.terms-section,
.privacy-section {
  padding: 1.5rem 1rem; /* Default padding for mobile */
  background-color: var(--card-background);
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  margin: 0 auto 2rem auto; /* Center and add bottom margin */
  max-width: 95%; /* Slightly wider on mobile */
  overflow-wrap: break-word; /* Ensure text wraps */
  word-wrap: break-word;
}

.terms-section h1,
.privacy-section h1 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 1.5rem;
}

.terms-section h2,
.privacy-section h2 {
  text-align: left;
  margin-top: 1.5rem;
}

/* Tablet and Larger Screen Adjustments */
@media (min-width: 768px) {
  .terms-section,
  .privacy-section {
    padding: 2rem; /* Increase padding */
    max-width: 90%; /* Narrower on larger screens */
  }
}

/* Success and error states */
.success-message {
  background-color: var(--success-light);
  color: var(--success-color);
  border: 1px solid var(--success-color);
}

.error-message {
  background-color: var(--error-light);
  color: var(--error-color);
  border: 1px solid var(--error-color);
}

.warning-message {
  background-color: var(--warning-light);
  color: var(--warning-color);
  border: 1px solid var(--warning-color);
} 