/* CSS Variables for Light Theme */
:root {
  --primary-color: #9183EE;
  --primary-dark: #7668D6;
  --primary-light: #A89BF3;
  --gradient-start: #9183EE;
  --gradient-end: #7668D6;
  
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --bg-tertiary: #f0f4ff;
  
  --text-primary: #2d3748;
  --text-secondary: #4a5568;
  --text-muted: #718096;
  
  --border-color: #e2e8f0;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --shadow-color-strong: rgba(0, 0, 0, 0.15);
  
  --card-bg: #ffffff;
  --navbar-bg: #ffffff;
  --footer-bg: #f8f9fa;
  
  --success-color: #48bb78;
  --check-color: #48bb78;
  --cross-color: #cbd5e0;
}

/* CSS Variables for Dark Theme */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #1a202c;
    --bg-secondary: #2d3748;
    --bg-tertiary: #2a2f4a;
    
    --text-primary: #f7fafc;
    --text-secondary: #e2e8f0;
    --text-muted: #cbd5e0;
    
    --border-color: #4a5568;
    --shadow-color: rgba(0, 0, 0, 0.3);
    --shadow-color-strong: rgba(0, 0, 0, 0.5);
    
    --card-bg: #2d3748;
    --navbar-bg: #2d3748;
    --footer-bg: #2d3748;
    
    --success-color: #68d391;
    --check-color: #68d391;
    --cross-color: #4a5568;
  }
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 14px;
  scroll-behavior: smooth;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  transition: background-color 0.3s ease, color 0.3s ease;
  line-height: 1.5;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Grid System */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -0.5rem;
}

.col-2 {
  flex: 0 0 50%;
  max-width: 50%;
  padding: 0 0.5rem;
}

.col-3 {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
  padding: 0 0.5rem;
}

.col-4 {
  flex: 0 0 25%;
  max-width: 25%;
  padding: 0 0.5rem;
}

/* Utility Classes */
.text-center {
  text-align: center;
}

.mb-5 {
  margin-bottom: 3rem;
}

/* Navbar */
.navbar {
  background-color: var(--navbar-bg);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px var(--shadow-color);
  transition: background-color 0.3s ease;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-primary);
}

.navbar-brand-icon {
  height: 36px;
  width: auto;
}

.navbar-brand-text {
  height: 24px;
  width: auto;
}

.navbar-toggler {
  display: none;
  background: none;
  border: 1px solid var(--border-color);
  padding: 0.5rem;
  cursor: pointer;
  border-radius: 4px;
}

.navbar-toggler-icon {
  display: block;
  width: 1.5rem;
  height: 2px;
  background-color: var(--text-primary);
  position: relative;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after {
  content: '';
  display: block;
  width: 1.5rem;
  height: 2px;
  background-color: var(--text-primary);
  position: absolute;
  left: 0;
}

.navbar-toggler-icon::before {
  top: -0.5rem;
}

.navbar-toggler-icon::after {
  top: 0.5rem;
}

.navbar-collapse {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.navbar-nav {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.nav-item {
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--primary-color);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-outline-primary {
  background-color: transparent;
  color: white;
  border-color: white;
  border-width: 2px;
}

.btn-outline-primary:hover {
  background-color: white;
  color: var(--primary-color);
}

.btn-light {
  background-color: white;
  color: var(--primary-color);
  border-color: white;
}

.btn-light:hover {
  background-color: #f8f9fa;
}

.btn-outline-light {
  background-color: transparent;
  color: white;
  border-color: white;
  border-width: 2px;
}

.btn-outline-light:hover {
  background-color: white;
  color: var(--primary-color);
}

/* Footer */
.footer {
  background-color: var(--footer-bg);
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding: 2rem 0;
  margin-top: 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-col {
  flex: 1;
  min-width: 250px;
}

.footer-col h5 {
  margin-bottom: 1rem;
  font-weight: 900;
  letter-spacing: 1px;
}

.footer-col-right {
  text-align: right;
}

.footer a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer a:hover {
  color: var(--primary-color);
}

/* Hero Section */
.hero-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-cta {
    margin-top: 2rem;
}

.hero-image {
    position: relative;
}

.feature-preview {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.preview-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.preview-icon {
    width: 2.5rem;
    height: 2.5rem;
    flex-shrink: 0;
}

.preview-text {
    font-size: 1.1rem;
    font-weight: 500;
}

/* USP Section */
.usp-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
}

.usp-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.usp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.usp-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1rem;
    color: var(--primary-color);
    stroke-width: 1.5;
}

.usp-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.usp-description {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    background: var(--bg-primary);
}

.feature-item {
    text-align: center;
}

.feature-icon {
    width: 5rem;
    height: 5rem;
    margin: 0 auto 1.5rem;
    color: var(--primary-color);
    stroke-width: 1.5;
}

.feature-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    text-align: center;
}

.feature-list {
    list-style: none;
    padding: 0;
    text-align: left;
}

.feature-list li {
    padding: 0.75rem 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 2rem;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.25rem;
}

/* Comparison Section */
.comparison-section {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.comparison-table-wrapper {
    overflow-x: auto;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: 0 4px 6px var(--shadow-color);
}

.comparison-table {
    width: 100%;
    margin: 0;
}

.comparison-table thead {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white;
}

.comparison-table th {
    padding: 1.5rem;
    font-weight: 600;
    text-align: center;
}

.comparison-table td {
    padding: 1.25rem;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table td:first-child {
    text-align: left;
    font-weight: 500;
    color: var(--text-primary);
}

.highlight-col {
    background: var(--bg-tertiary);
}

.check {
    color: var(--check-color);
    font-size: 1.5rem;
    font-weight: bold;
}

.cross {
    color: var(--cross-color);
    font-size: 1.5rem;
}

/* Benefits Section */
.benefits-section {
    padding: 80px 0;
    background: var(--bg-primary);
}

.benefit-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.benefit-item {
    display: flex;
    gap: 1.5rem;
    align-items: start;
}

.benefit-icon {
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
    color: var(--primary-color);
    stroke-width: 1.5;
}

.benefit-content h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.benefit-content p {
    color: var(--text-muted);
    margin: 0;
}

.quote-box {
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(145, 131, 238, 0.3);
}

.quote-text {
    font-size: 1.15rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.quote-highlight {
    background: rgba(255, 255, 255, 0.2);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-buttons {
    margin-bottom: 1rem;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cta-feature-item {
    font-size: 1.1rem;
    opacity: 0.95;
}

/* About Page */
.about-hero {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white;
}

.about-section {
    padding: 80px 0;
    background: var(--bg-primary);
}

.about-values-bg {
    background: var(--bg-secondary);
}

.about-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.about-location-icon {
    width: 3rem;
    height: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Team Cards */
.team-row {
    justify-content: center;
}

.team-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--shadow-color);
}

.team-avatar {
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.25rem;
}

.team-name {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.team-role {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-bio {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.team-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.team-link:hover {
    color: var(--primary-dark);
}

.team-link-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.cta-email a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 1.1rem;
}

.cta-email a:hover {
    color: white;
    text-decoration: underline;
}

/* Contact Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-dialog {
    background: var(--card-bg);
    border-radius: 16px;
    width: 100%;
    max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-dialog {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem 0;
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    padding: 0 0.25rem;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 1rem 2rem 2rem;
}

.modal-description {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Form Styles */
.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}

.required {
    color: #e53e3e;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--bg-primary);
    color: var(--text-primary);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(145, 131, 238, 0.15);
}

.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
    border-color: #e53e3e;
}

.form-group input.invalid:focus,
.form-group select.invalid:focus,
.form-group textarea.invalid:focus {
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23718096' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.field-error {
    display: block;
    font-size: 0.8rem;
    color: #e53e3e;
    margin-top: 0.25rem;
    min-height: 1.2em;
}

/* Honeypot — visually hidden */
.form-group-hp {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
}

/* Consent checkbox */
.form-group-consent {
    margin-top: 0.5rem;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-weight: 400 !important;
    font-size: 0.9rem;
    cursor: pointer;
}

.consent-label input[type="checkbox"] {
    width: auto;
    margin-top: 0.2rem;
    accent-color: var(--primary-color);
}

.consent-label a {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Submit button */
.btn-block {
    display: block;
    width: 100%;
}

#submitBtn {
    margin-top: 0.5rem;
    position: relative;
}

#submitBtn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-spinner {
    display: inline-block;
    width: 1.2rem;
    height: 1.2rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success / Error messages */
.form-success {
    text-align: center;
    padding: 2rem 1rem;
}

.form-success-icon {
    width: 3rem;
    height: 3rem;
    color: var(--success-color);
    margin-bottom: 1rem;
}

.form-success h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-success p {
    color: var(--text-muted);
}

.form-error {
    background: #fff5f5;
    color: #e53e3e;
    border: 1px solid #fed7d7;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

@media (prefers-color-scheme: dark) {
    .form-error {
        background: rgba(229, 62, 62, 0.1);
        border-color: rgba(229, 62, 62, 0.3);
    }
}

/* Responsive Design */
@media (max-width: 991px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .quote-box {
        margin-top: 3rem;
    }
    
    .col-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 767px) {
    .navbar-toggler {
        display: block;
    }
    
    .navbar-collapse {
        display: none;
        flex-direction: column;
        width: 100%;
        padding-top: 1rem;
    }
    
    .navbar-collapse.active {
        display: flex;
    }
    
    .navbar-nav {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }
    
    .hero-section,
    .usp-section,
    .features-section,
    .comparison-section,
    .benefits-section,
    .cta-section,
    .about-hero,
    .about-section {
        padding: 50px 0;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .cta-title {
        font-size: 1.75rem;
    }
    
    .col-2,
    .col-3,
    .col-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 2rem;
    }

    .hero-cta {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-cta .btn,
    .cta-buttons .btn {
        display: block;
        width: 100%;
    }
    
    .cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-col-right {
        text-align: left;
    }

    /* Modal responsive */
    .modal-dialog {
        max-height: 95vh;
        border-radius: 12px;
    }

    .modal-header {
        padding: 1.25rem 1.25rem 0;
    }

    .modal-body {
        padding: 1rem 1.25rem 1.5rem;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }
}