:root {
    --primary-color: #6a11cb; /* Deep Purple */
    --secondary-color: #2575fc; /* Bright Blue */
    --accent-color: #ffc107; /* Gold/Yellow for highlights */
    --dark-bg: #1a0f2b; /* Very dark purple/blue */
    --dark-alt-bg: #2a1f3c; /* Slightly lighter dark for cards/elements */
    --text-light: #e0e0e0; /* Light gray for general text */
    --text-muted: #a0a0a0; /* Muted gray */
    --border-color: #443355; /* Subtle border for dark elements */
    --gradient-primary: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    --gradient-secondary: linear-gradient(45deg, var(--secondary-color), #00d4ff);
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll from AOS animations */
}
main {
    overflow: hidden;
}

/* Global Styles */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-light);
    font-weight: 700;
}

p {
    color: var(--text-light);
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.section-title {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block; /* To make gradient apply only to text */
    font-size: clamp(2.5rem, 5vw, 4rem);
}

.bg-dark-alt {
    background-color: var(--dark-alt-bg) !important;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
    background: var(--gradient-secondary);
}

.btn-secondary {
    background-color: var(--dark-alt-bg);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--border-color);
    border-color: var(--secondary-color);
    color: var(--accent-color);
}

.btn-outline-light {
    color: var(--text-light);
    border-color: var(--text-light);
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.form-control, .form-range, .form-check-input {
    background-color: #3a2e4c;
    border-color: var(--border-color);
    color: var(--text-light);
}

.form-control:focus, .form-range:focus, .form-check-input:focus {
    background-color: #4a3e5c;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.25rem rgba(37, 117, 252, 0.25);
    color: var(--text-light);
}

.form-control::placeholder {
    color: var(--text-muted);
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.icon-lg {
    font-size: 3.5rem;
    color: var(--accent-color);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.icon-xl {
    font-size: 4.5rem;
    color: var(--accent-color);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-primary-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Navbar */
.navbar {
    background-color: rgba(26, 15, 43, 0.9); /* Slightly transparent dark-bg */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(68, 51, 85, 0.5);
}

.navbar-brand .logo-img {
    height: 40px;
    width: auto;
}

.navbar-nav .nav-link {
    color: var(--text-light) !important;
    font-weight: 600;
    padding: 0.5rem 1rem;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0%;
    height: 2px;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 70%;
}

/* Hero Section */
.hero-section {
    position: relative;
    background-color: var(--dark-bg);
    overflow: hidden;
    padding-top: 80px; /* Offset for fixed navbar */
    height: 100vh;
}
@media screen and (width <576px) {
    .hero-section {
        padding-top: 150px; /* Offset for fixed navbar */
        padding-bottom: 40px;
        height: unset;
    }
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(26, 15, 43, 0.8) 0%, rgba(26, 15, 43, 0.95) 70%, var(--dark-bg) 100%);
    z-index: 0;
}

.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(5px) brightness(0.6);
    transform: scale(1.05);
    transition: transform 0.5s ease;
    z-index: -1;
}

.hero-section:hover .hero-bg-image {
    transform: scale(1);
}

.hero-section h1 {
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1.1;
}

.typed-text-effect {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.animated-button {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* About Section */
.about-section {
    background-color: var(--dark-alt-bg);
    padding-top: 80px; /* Ensure content is below navbar */
}

.map-container {
    height: 400px;
    width: 100%;
    background-color: var(--dark-bg);
    border: 2px solid var(--border-color);
    overflow: hidden;
}

.leaflet-container {
    background-color: var(--dark-bg);
}

.leaflet-popup-content-wrapper, .leaflet-popup-tip {
    background-color: var(--dark-alt-bg);
    color: var(--text-light);
    border-radius: 0.5rem;
}

.leaflet-popup-content a {
    color: var(--secondary-color);
}

/* Services Section */
.services-section {
    padding-top: 80px;
}

.service-card {
    background-color: var(--dark-alt-bg);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.service-card video, .service-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
}

.service-card .card-title {
    color: var(--accent-color);
}

/* How It Works Section */
.how-it-works-section {
    background-color: var(--dark-bg);
    padding-top: 80px;
}

.process-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    padding: 2rem 0;
}

.process-step {
    background-color: var(--dark-alt-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 10;
    max-width: 300px;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.process-step .step-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.process-line {
    position: absolute;
    background: var(--gradient-primary);
    width: 4px;
    height: calc(100% - 6rem);
    left: 50%;
    transform: translateX(-50%);
    top: 3rem;
    z-index: 5;
}

@media (min-width: 768px) {
    .process-diagram {
        flex-direction: row;
        justify-content: space-between;
        padding: 0 2rem;
    }
    .process-step {
        margin-bottom: 0;
        max-width: 22%;
    }
    .process-line {
        height: 4px;
        width: calc(100% / 3 - 100px); /* Adjust based on step width */
        left: auto;
        top: 50%;
        transform: translateY(-50%);
        position: relative;
        margin: 0 -2rem; /* Overlap slightly with steps */
    }
    .process-diagram > .process-line:first-of-type { margin-left: -1rem; }
    .process-diagram > .process-line:last-of-type { margin-right: -1rem; }
}

/* Features Section */
.features-section {
    background-color: var(--dark-alt-bg);
    padding-top: 80px;
}

.feature-item {
    margin-bottom: 6rem;
}

.feature-item:last-child {
    margin-bottom: 0;
}

.feature-item .feature-icon {
    color: var(--secondary-color);
}

.feature-item h4 {
    color: var(--accent-color);
}

.feature-img {
    max-width: 80%;
    height: auto;
    border: 2px solid var(--border-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.feature-tag {
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-block;
    margin-top: 1rem;
}

/* Pricing Section */
.pricing-section {
    background-color: var(--dark-bg);
    padding-top: 80px;
}

.pricing-section .card {
    border: 2px solid var(--border-color);
}

.form-label {
    color: var(--accent-color);
}

#budgetRange {
    accent-color: var(--primary-color);
}

/* FAQ Section */
.faq-section {
    background-color: var(--dark-alt-bg);
    padding-top: 80px;
}

.faq-questions .list-group-item {
    background-color: var(--dark-alt-bg);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    margin-bottom: 0.5rem;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.faq-questions .list-group-item:hover {
    background-color: var(--border-color);
    border-color: var(--secondary-color);
    color: var(--accent-color);
}

.faq-questions .list-group-item.active {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
    color: #fff;
    font-weight: 600;
}

.faq-questions .list-group-item.active:hover {
    background: var(--gradient-secondary);
    border-color: var(--secondary-color);
}

.faq-answers {
    min-height: 300px; /* Ensure consistent height */
    position: relative;
    overflow: hidden;
    border: 2px solid var(--border-color);
}

.faq-answer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none; /* Allow clicks to pass through hidden answers */
}

.faq-answer.active {
    opacity: 1;
    pointer-events: auto;
    position: relative; /* Take up space when active */
}

/* Team Section */
.team-section {
    background-color: var(--dark-bg);
    padding-top: 80px;
}

.team-card {
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.team-avatar {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: 0 0 15px rgba(106, 17, 203, 0.5);
}

.team-card .fun-fact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(var(--primary-color-rgb), 0.95); /* Using RGB for transparency */
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 0.4s ease, transform 0.4s ease;
    border-radius: 1rem;
    font-style: italic;
    font-size: 0.95rem;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.team-card:hover .fun-fact-overlay {
    opacity: 1;
    transform: translateY(0%);
    background: #2a1f3ce8;
}

.team-card .social-icons a {
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.team-card .social-icons a:hover {
    color: var(--secondary-color);
}

/* Footer Section */
.footer-section {
    background-color: var(--dark-alt-bg);
    border-top: 1px solid var(--border-color);
    padding-top: 80px;
}

.footer-links li a {
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.footer-links li a:hover {
    color: var(--accent-color);
}

.social-icons-footer a {
    color: var(--text-muted);
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons-footer a:hover {
    color: var(--secondary-color);
    transform: translateY(-3px);
}

/* Cookie Banner */
.cookie-banner {
    z-index: 1050;
    background-color: rgba(26, 15, 43, 0.95) !important;
    border-top: 1px solid var(--border-color);
}

.cookie-banner p {
    color: var(--text-light);
    margin-bottom: 0;
}

.cookie-banner a {
    color: var(--accent-color);
    font-weight: 600;
}

.cookie-banner .btn {
    min-width: 120px;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2.3rem;
    }
    .hero-section p {
        font-size: 1.1rem !important;
    }
    .section-title {
        font-size: 2.2rem;
    }
    .feature-item {
        text-align: center;
    }
    .feature-item .col-md-6:nth-child(even) {
        order: -1; /* Stack image above text on small screens */
    }
    .feature-img {
        margin-top: 2rem;
        max-width: 100%;
    }
    .process-diagram {
        align-items: center;
    }
    .process-line {
        height: 4rem;
        width: 4px;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
    }
    .process-step {
        margin-bottom: 2rem;
    }
    .faq-questions, .faq-answers {
        margin-top: 2rem;
    }
    .cookie-banner {
        flex-direction: column;
        text-align: center;
    }
    .cookie-banner .d-flex {
        width: 100%;
        justify-content: center;
    }
    .cookie-banner .btn {
        flex: 1;
    }
}/* New styles for .secureTermsHub and its children */

.secureTermsHub {
    /* Padding for the main content area */
    padding: 3rem 1.5rem; /* Top/bottom and left/right padding */
    max-width: 1200px; /* Max width for content readability */
    margin-left: auto; /* Center the content */
    margin-right: auto; /* Center the content */
}

.secureTermsHub h1 {
    /* Heading 1 styles */
    font-size: clamp(2rem, 4vw, 2.8rem); /* Responsive font size, not too large */
    margin-bottom: 1.5rem; /* Spacing below the heading */
    line-height: 1.2; /* Line height for readability */
    color: var(--text-light); /* Inherit from theme */
}

.secureTermsHub h2 {
    /* Heading 2 styles */
    font-size: clamp(1.8rem, 3.5vw, 2.4rem); /* Responsive font size */
    margin-bottom: 1.2rem; /* Spacing below the heading */
    line-height: 1.3; /* Line height for readability */
    color: var(--text-light); /* Inherit from theme */
}

.secureTermsHub h3 {
    /* Heading 3 styles */
    font-size: clamp(1.6rem, 3vw, 2rem); /* Responsive font size */
    margin-bottom: 1rem; /* Spacing below the heading */
    line-height: 1.4; /* Line height for readability */
    color: var(--text-light); /* Inherit from theme */
}

.secureTermsHub h4 {
    /* Heading 4 styles */
    font-size: clamp(1.4rem, 2.5vw, 1.8rem); /* Responsive font size */
    margin-bottom: 0.8rem; /* Spacing below the heading */
    line-height: 1.5; /* Line height for readability */
    color: var(--text-light); /* Inherit from theme */
}

.secureTermsHub h5 {
    /* Heading 5 styles */
    font-size: clamp(1.2rem, 2vw, 1.6rem); /* Responsive font size */
    margin-bottom: 0.6rem; /* Spacing below the heading */
    line-height: 1.5; /* Line height for readability */
    color: var(--text-light); /* Inherit from theme */
}

.secureTermsHub p {
    /* Paragraph styles */
    font-size: 1.1rem; /* Base font size for paragraphs */
    margin-bottom: 1rem; /* Spacing below paragraphs */
    line-height: 1.7; /* Line height for readability */
    color: var(--text-light); /* Inherit from theme */
}

.secureTermsHub ul {
    /* Unordered list styles */
    list-style-type: disc; /* Default disc bullet */
    padding-left: 1.5rem; /* Indentation for list items */
    margin-bottom: 1rem; /* Spacing below the list */
    color: var(--text-light); /* Inherit from theme */
}

.secureTermsHub ol {
    /* Ordered list styles */
    list-style-type: decimal; /* Default decimal numbering */
    padding-left: 1.5rem; /* Indentation for list items */
    margin-bottom: 1rem; /* Spacing below the list */
    color: var(--text-light); /* Inherit from theme */
}

.secureTermsHub li {
    /* List item styles */
    font-size: 1.1rem; /* Font size for list items */
    margin-bottom: 0.5rem; /* Spacing between list items */
    line-height: 1.6; /* Line height for readability */
    color: var(--text-light); /* Inherit from theme */
}

.secureTermsHub li:last-child {
    margin-bottom: 0; /* No margin for the last list item */
}

/* Responsive adjustments for secureTermsHub padding */
@media (min-width: 768px) {
    .secureTermsHub {
        padding: 4rem 3rem; /* More padding on larger screens */
    }
}

@media (min-width: 1200px) {
    .secureTermsHub {
        padding: 5rem 0; /* Remove side padding when max-width is hit, let margin auto handle it */
    }
}
.form-check-label {
    color: var(--text-light);
}
@media (min-width: 992px) {
    .navbar-expand-lg .navbar-nav {
        flex-wrap: wrap;
    }
}