/* --- Global Styles & Variables --- */
:root {
    --primary-color: #6A0DAD; /* Royal Purple */
    --secondary-color: #FFD700; /* Gold */
    --accent-color: #4B0082; /* Dark Purple */
    --light-color: #F9F6FF;
    --dark-color: #2C2C2C;
    --text-color: #4D4D4D;
    --border-color: #E0D7F0;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4 {
    color: var(--dark-color);
    line-height: 1.2;
    font-weight: 700;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 3rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.1rem; }

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

ul {
    list-style: none;
}

section {
    padding: 100px 0;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    background-color: var(--primary-color);
    color: #fff;
}

.btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

.full-width {
    width: 100%;
}

/* --- Header --- */
#main-header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: background-color 0.3s ease, padding 0.3s ease;
}

#main-header.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

#main-header .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

#main-nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-right: 40px;
}

#main-nav ul {
    display: flex;
    gap: 30px;
}

#main-nav ul li a {
    color: #fff;
    font-weight: 500;
    position: relative;
}

#main-header.scrolled #main-nav ul li a {
    color: var(--dark-color);
}

#main-nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

#main-nav ul li a:hover::after {
    width: 100%;
}

.cta-button {
    padding: 10px 25px;
    border-radius: 50px;
}

/* --- Hero Section --- */
#hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: -1;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
    color: #fff;
    z-index: 1;
}

.hero-text h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: #fff;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.hero-form-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-form-container h3 {
    color: #fff;
    margin-bottom: 25px;
    text-align: center;
}

.hero-form-container .form-group {
    margin-bottom: 20px;
}

.hero-form-container input,
.hero-form-container select {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
}

.hero-form-container input::placeholder,
.hero-form-container select {
    color: rgba(255, 255, 255, 0.7);
}

/* --- About Section --- */
#about {
    background-color: var(--light-color);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.about-text h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}

.trust-badge {
    margin-top: 2rem;
    padding: 20px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 8px;
    text-align: center;
}

/* --- Why Choose Us (Timeline) --- */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    box-sizing: border-box;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -12px;
    background-color: white;
    border: 4px solid var(--primary-color);
    top: 35px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(odd) {
    left: 0;
}
.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item:nth-child(even)::after {
    left: -12px;
}

.timeline-content {
    padding: 30px;
    background-color: #fff;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.timeline-icon {
    position: absolute;
    top: 20px;
    right: -50px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.timeline-item:nth-child(even) .timeline-icon {
    left: -50px;
    right: auto;
}

/* --- Services Section --- */
#services {
    background-color: var(--light-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.service-card .icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    transition: var(--transition);
}

.service-card:hover .icon {
    color: var(--accent-color);
    box-shadow: 0 0 20px rgba(0, 128, 128, 0.4);
    border-radius: 50%;
}

/* --- Testimonials Section --- */
.testimonial-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-color);
    margin-top: -20px;
    margin-bottom: 40px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--primary-color);
}

.testimonial-card h4 {
    margin-top: 20px;
    color: var(--primary-color);
    font-style: italic;
}

/* --- FAQ Section --- */
#faq {
    background-color: var(--light-color);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.faq-question {
    width: 100%;
    padding: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background-color: #f8f9fa;
}

.faq-question::after {
    content: '\002B'; /* Plus sign */
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
    padding: 0 20px;
}

.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 0 20px 20px;
}

/* --- Contact Form (Two-Step) --- */
/* ===============================
    Contact Section
================================ */
#contact {
    padding: 80px 20px;
    background-color: #f4f4f4;
    font-family: 'Arial', sans-serif;
}

#contact .container {
    max-width: 700px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

#contact h2 {
    text-align: center;
    font-size: 2.2em;
    margin-bottom: 10px;
    color: #2c3e50;
}

#contact p {
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #555555;
}

/* ===============================
    Form Styles
================================ */
/* Container */
#contact {
    padding: 80px 20px;
    background-color: #f4f4f4;
    font-family: Arial, sans-serif;
}

.contact-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1100px;
    margin: 0 auto;
    gap: 40px;
}

/* Left Side: Contact Details */
.contact-details {
    flex: 1 1 40%;
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.contact-details h2 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.contact-details p {
    margin-bottom: 20px;
    color: #555;
}

.contact-details ul {
    list-style: none;
    padding: 0;
}

.contact-details ul li {
    margin-bottom: 12px;
    color: #333;
}

/* Right Side: Contact Form */
.contact-form {
    flex: 1 1 55%;
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.contact-form h2 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 1em;
    outline: none;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #6A0DAD;
}

button.btn {
    background-color: #6A0DAD;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
}

button.btn:hover {
    background-color: #6A0DAD;
}

/* Responsive */
@media (max-width: 900px) {
    .contact-container {
        flex-direction: column;
    }
}


/* ===============================
    Animations
================================ */
@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

/* ===============================
    Responsive
================================ */
@media (max-width: 768px) {
    #contact .container {
        padding: 30px 20px;
    }
    .btn {
        width: 100%;
    }
    .next-btn {
        float: none;
        margin-top: 10px;
    }
}

/* --- Footer --- */
#main-footer {
    background-color: var(--dark-color);
    color: #ccc;
    padding: 40px 0;
    text-align: center;
}

#main-footer nav {
    margin-bottom: 20px;
}

#main-footer nav a {
    color: #ccc;
    margin: 0 15px;
    font-size: 0.9rem;
}

#main-footer nav a:hover {
    color: var(--primary-color);
}

#main-footer p {
    font-size: 0.8rem;
    margin: 0;
}

/* --- Popup Modules (Slide from Right) --- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background-color: #fff;
    padding: 40px;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
    height: 100%;
    max-height: 100vh;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.popup-overlay.show .popup-content {
    transform: translateX(0);
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: var(--dark-color);
}

/* --- Responsive Design --- */
@media (max-width: 992px) {
    h1 { font-size: 3rem; }
    .hero-content { grid-template-columns: 1fr; }
    .about-container { grid-template-columns: 1fr; }
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    #main-nav { flex-direction: column; gap: 15px; }
    #main-nav ul { flex-direction: column; text-align: center; gap: 10px; }
    .logo { margin-right: 0; margin-bottom: 10px; }
    .cta-button { margin-top: 10px; }

    /* Timeline */
    .timeline::after { left: 31px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
    .timeline-item::after { left: 15px; }
    .timeline-item:nth-child(even) { left: 0; }
    .timeline-icon { left: 5px; right: auto; }
    .timeline-item:nth-child(even) .timeline-icon { left: 5px; }
    
    .testimonials-grid { grid-template-columns: 1fr; }
}

@media (max-width: 576px) {
    .hero-text h1 { font-size: 2rem; }
    .hero-form-container { padding: 25px; }
    #contact-form { height: auto; }
    .form-step { position: static; opacity: 1; transform: none; }
    .form-step:not(.active) { display: none; }
}