/* --- CSS Variables --- */
:root {
    /* Adjusted Color Palette */
    --primary-dark: #263238;         /* A darker blue-gray for headings and text */
    --accent-orange: #ff9800;        /* A bright, saturated orange */
    --accent-cyan: #ff5e89;          /* A contrasting cyan for highlights */
    --light-background: #f5f5f5;     /* A light, neutral background */
    --primary-text: #37474f;         /* Darker text for primary content */
    --secondary-text: #607d8b;       /* Muted text for secondary elements */
    --white: #ffffff;

    --font-primary: 'Poppins', sans-serif; /* Headings */
    --font-secondary: 'Inter', sans-serif; /* Body text */

    --border-radius: 8px;
}

/* --- Base & Reset --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-secondary);
    line-height: 1.6;
    color: var(--primary-dark);
    background-color: var(--white);
}

.top-navbar {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75em;
    color: var(--primary-dark); /* Default heading color */
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; text-align: center; margin-bottom: 1.5em;}
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p {
    margin-bottom: 1em;
    color: var(--secondary-text); /* Slightly muted paragraph text */
}

a {
    color: var(--accent-orange);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    display: block;
}

/* --- Utility Classes --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 60px 0;
}

.bg-light {
    background-color: var(--light-background);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--accent-orange);
    color: var(--white);
    border-color: var(--accent-orange);
}

.btn-primary:hover {
    background-color: darken(var(--accent-orange), 10%);
    border-color: darken(var(--accent-orange), 10%);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.btn-secondary {
    background-color: transparent;
    color: var(--accent-cyan); /*-orange*/
    border: 2px solid var(--accent-cyan); /*-orange*/

}

.btn-secondary:hover {
    background-color: var(--accent-cyan); /*-orange*/
    color: var(--white);
    transform: translateY(-2px);
}

.btn-large {
    padding: 15px 35px;
    font-size: 1.1rem;
}

/* --- Hero Section --- */
.hero {
    min-height: 80vh;
    display: flex; /* Use flexbox for vertical alignment */
    align-items: center; /* Vertically center content */
    /* background: linear-gradient(135deg, var(--primary-dark), var(--accent-orange)); */ /* Keep your gradient */
    background: linear-gradient(135deg, #0a192f, #4e2a77); /* Adjusted example gradient */
    padding: 60px 0; /* Reduced padding slightly */
    overflow: hidden; /* Prevent potential overflow issues */
}

.hero h1 {
    text-shadow: 2px 0 #f00, -2px 0 #f00, 0 2px #f00, 0 -2px #f00,
                1px 1px #f00, -1px -1px #f00, 1px -1px #f00, -1px 1px #f00;
}

/* NEW: Style the container within the hero */
.hero-container {
    display: flex;
    align-items: center; /* Align items vertically */
    justify-content: space-between; /* Space between text and video */
    gap: 40px; /* Gap between text and video */
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}

/* NEW: Style the text content area */
.hero-content {
    flex: 1 1 500px; /* Allow content to grow/shrink, base width 500px */
    text-align: left; /* Align text left on wider screens */
    color: var(--white);
    padding-right: 20px; /* Add some space from the video */
}

.hero-content h1 {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 0.5em;
}

.hero-content .subheading {
    font-size: 1.2rem;
    color: var(--primary-text);
    max-width: 550px; /* Adjust max-width if needed */
    margin: 0 0 2em 0; /* Remove auto margins for left alignment */
}

.hero {
    background: linear-gradient(135deg, rgb(246, 143, 68) 0%, rgb(251, 212, 184) 100%);
}

.hero-content .cta-buttons {
    margin-top: 1.5em; /* Adjust spacing */
    text-align: left; /* Keep buttons left aligned */
}

.hero-content .cta-buttons .btn {
    margin-right: 15px; /* Space between buttons */
    margin-bottom: 10px; /* Add bottom margin for potential wrapping */
}
.hero-content .cta-buttons .btn:last-child {
    margin-right: 0;
}


/* Styles for Hero Buttons (keep these or adjust as needed) */
.hero .btn-primary {
    background-color: var(--accent-cyan);
    color: var(--primary-dark);
    border-color: var(--accent-cyan);
}
.hero .btn-primary:hover {
    background-color: var(--white);
    border-color: var(--white);
    color: var(--primary-dark);
}

.hero .btn-secondary {
    color: var(--white);
    border-color: var(--white);
}
.hero .btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-dark);
}


/* NEW: Style the video wrapper */
.hero-video-wrapper {
    flex: 1 1 450px; /* Allow video area to grow/shrink, base width 450px */
    max-width: 550px; /* Max width for the video */
    margin: 0 auto; /* Center if it wraps below */
}

/* NEW: Style the video element itself */
.hero-video-placeholder {
    width: 100%; /* Make video responsive */
    height: auto; /* Maintain aspect ratio */
    border-radius: var(--border-radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); /* Add some depth */
    background-color: var(--primary-dark); /* Fallback bg if poster fails */
    display: block; /* Ensure it takes up block space */
}



/* --- Features Section --- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.feature-item .feature-icon {
    font-size: 2.5rem;
    color: var(--accent-orange);
    margin-bottom: 0.5em;
}

.feature-item h3 {
    margin-bottom: 0.5em;
}

/* --- How It Works Section --- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    text-align: center;
}

.step-item .step-icon-placeholder {
    width: 60px;
    height: 60px;
    background-color: var(--accent-orange);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1em auto;
    /* Replace with actual illustration styles */
}

.step-item h4 {
    margin-bottom: 0.5em;
    color: var(--primary-dark);
}


/* --- Testimonials Section --- */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background-color: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee; /* Subtle border */
    text-align: center;
}

.testimonial-img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 1em auto;
    object-fit: cover;
}

.testimonial-card blockquote {
    font-style: italic;
    color: var(--primary-dark);
    margin-bottom: 1em;
    position: relative;
    padding: 0 10px; /* Add some space for quotes */
}

/* Optional: Add quote marks */
.testimonial-card blockquote::before {
    content: '“';
    font-size: 2em;
    color: var(--accent-orange);
    opacity: 0.5;
    position: absolute;
    left: -10px;
    top: -10px;
}
.testimonial-card blockquote::after {
    content: '”';
    font-size: 2em;
    color: var(--accent-orange);
    opacity: 0.5;
    position: absolute;
    right: -10px;
    bottom: -10px;
}

.testimonial-card cite {
    font-weight: 600;
    color: var(--secondary-text);
    font-style: normal;
}


/* --- Final CTA Section --- */
.cta-final {
    background-color: var(--primary-dark);
    color: var(--white);
    text-align: center;
}

.cta-final h2 {
    color: var(--white);
    margin-bottom: 1em;
}

.cta-final .btn-primary {
     background-color: var(--accent-cyan);
    color: var(--primary-dark);
    border-color: var(--accent-cyan);
}
.cta-final .btn-primary:hover {
    background-color: var(--white);
    border-color: var(--white);
     color: var(--primary-dark);
}


/* --- Footer --- */
.footer {
    background-color: var(--light-background);
    color: var(--secondary-text);
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-nav a {
    color: var(--secondary-text);
    margin: 0 10px;
    font-weight: 600;
}
.footer-nav a:hover {
    color: var(--accent-orange);
}

.footer-social a {
    color: var(--secondary-text);
    margin: 0 10px;
    font-size: 1.4rem;
}
.footer-social a:hover {
    color: var(--accent-orange);
}

.footer-copy {
    margin-top: 10px; /* Small space before copyright */
    margin-bottom: 0;
}


/* --- Responsive Design --- */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

    .hero {
        min-height: auto; /* Let height be determined by content */
        padding: 50px 0;
    }

     .hero-content h1 { font-size: 2.5rem; }
    .hero .cta-buttons { display: flex; flex-direction: column; align-items: center; gap: 15px; }
    .hero .cta-buttons .btn { width: 80%; max-width: 300px; margin: 0;}


    .feature-grid,
    .steps-grid,
    .testimonial-grid {
        grid-template-columns: 1fr; /* Stack columns */
    }

    .section-padding { padding: 40px 0; }
    .footer-container { gap: 15px; }
    .footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;}
}

@media (max-width: 480px) {
     h1 { font-size: 2rem; }
     h2 { font-size: 1.75rem; }
     .hero .subheading { font-size: 1rem; }
     .btn { padding: 10px 20px; font-size: 0.9rem;}
     .btn-large { padding: 12px 25px; font-size: 1rem;}
     .hero-content h1 { font-size: 2rem; }
     .hero-content .subheading { font-size: 1rem; }
     .hero-content .cta-buttons .btn { width: 85%; } 
}


/* --- Updated Modal Styles --- */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* slightly transparent to match design */
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .modal-content {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  }
  
  .modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: var(--primary-dark);
  }
  
  .modal-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
  }
  
  .modal-tabs button {
    background: none;
    border: none;
    font-size: 18px;
    padding: 10px 20px;
    cursor: pointer;
    color: var(--primary-dark);
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
  }
  
  .modal-tabs button.active {
    border-color: var(--accent-orange);
  }
  
  .modal-body form {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .modal-body form input {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
  }
  
  .modal-body form button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: var(--accent-orange);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
  }
  
  .modal-body form button:hover {
    background-color: darken(var(--accent-orange), 10%);
    transform: translateY(-2px);
  }

/* --- End of Modal Styles --- */
