body {
    font-family: 'Poppins', sans-serif;
    background-color: #1a0f1a; /* Dark Burgundy/Deep Red base */
    color: #e0e0e0; /* Light grey for general text */
    line-height: 1.6;
    box-sizing: border-box;
}

*, *::before, *::after {
    box-sizing: border-box;
}

h1, h2, h3, h4, h5, h6 {
    color: #f8f9fa; /* White for headings */
    font-weight: 700;
}

.section-title {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #8B0000; /* Darker Burgundy accent */
    border-radius: 2px;
}

.navbar {
    background-color: rgba(26, 15, 26, 0.95); /* Semi-transparent dark background */
    border-bottom: 1px solid rgba(139, 0, 0, 0.3); /* Subtle border */
    padding: 1rem 0;
    transition: background-color 0.3s ease;
}

.navbar-brand .header-logo {
    height: 35px;
    width: auto;
}

.navbar-brand .site-name {
    color: #f8f9fa;
    font-weight: 700;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    text-decoration: none;
}

.navbar-nav .nav-link {
    color: #e0e0e0 !important;
    font-weight: 600;
    margin-right: 1.5rem;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #c0c0c0 !important; /* Lighter grey on hover/active */
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.1);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.offcanvas {
    background-color: #1a0f1a;
    color: #e0e0e0;
}

.offcanvas-header {
    border-bottom: 1px solid rgba(139, 0, 0, 0.3);
}

.offcanvas-title {
    color: #f8f9fa;
}

.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1a0f1a 0%, #3a1e3a 100%); /* Dark gradient background */
    padding-top: 10rem;
    padding-bottom: 8rem;
    min-height: 80vh;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: #ffffff;
    line-height: 1.2;
}

.hero-section p {
    color: #c0c0c0;
    font-size: clamp(1rem, 2vw, 1.3rem);
}

.btn-primary-custom {
    background-color: #8B0000; /* Darker Burgundy accent */
    border-color: #8B0000;
    color: #ffffff;
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
}

.btn-primary-custom:hover {
    background-color: #6a0000;
    border-color: #6a0000;
    color: #ffffff;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* About Section - Vertical Timeline */
.about-section {
    background-color: #2a152a; /* Slightly lighter dark background */
    position: relative;
    overflow: hidden;
}

.timeline {
    position: relative;
    padding: 1rem 0;
    margin: 0 1rem;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: #8B0000;
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    margin-bottom: 3rem;
    position: relative;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-item:nth-child(even) {
    flex-direction: row;
}

.timeline-icon {
    width: 30px;
    height: 30px;
    background-color: #8B0000;
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    font-size: 20px;
    box-shadow: 0 0 0 6px #2a152a;
}

.timeline-content {
    background-color: #3a1e3a;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    width: calc(50% - 40px);
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: 40px;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 40px;
}

.timeline-content h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.timeline-content p {
    color: #c0c0c0;
}

/* Services Section */
.services-section {
    background-color: #1a0f1a;
}

.service-card {
    background-color: #2a152a;
    border: 1px solid rgba(139, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-icon {
    font-size: 3rem;
    color: #8B0000; /* Darker Burgundy accent */
}

.service-card .card-title {
    font-size: 1.6rem;
    color: #ffffff;
}

.service-card .card-text {
    color: #c0c0c0;
}

/* Features Section */
.features-section {
    background-color: #2a152a;
}

.feature-card {
    background-color: #3a1e3a;
    border: 1px solid rgba(139, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    padding-top: 3rem; /* Space for the number */
}

.feature-number {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 3rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

.icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid #8B0000;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 1.5rem auto;
    font-size: 2.5rem;
    color: #8B0000;
    position: relative;
    z-index: 1;
    background-color: #2a152a;
}

.feature-card .card-title {
    font-size: 1.4rem;
    color: #ffffff;
}

.feature-card .card-text {
    color: #c0c0c0;
}

/* Portfolio Section */
.portfolio-section {
    background-color: #1a0f1a;
}

.horizontal-scroll-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: #8B0000 #2a152a; /* Firefox */
}

.horizontal-scroll-wrapper::-webkit-scrollbar {
    height: 8px;
}

.horizontal-scroll-wrapper::-webkit-scrollbar-track {
    background: #2a152a;
    border-radius: 10px;
}

.horizontal-scroll-wrapper::-webkit-scrollbar-thumb {
    background-color: #8B0000;
    border-radius: 10px;
    border: 2px solid #2a152a;
}

.project-card {
    width: 350px;
    background-color: #2a152a;
    border: 1px solid rgba(139, 0, 0, 0.3);
    flex: 0 0 auto;
    height: auto; /* Ensure cards adjust height based on content */
}

.project-card img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.project-card .card-title {
    font-size: 1.4rem;
    color: #ffffff;
}

.project-card .card-text {
    color: #c0c0c0;
}

/* Stats Section */
.stats-section {
    background-color: #2a152a;
}

.stat-circle {
    width: 180px;
    height: 180px;
    background-color: #3a1e3a;
    border: 3px solid #8B0000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.stat-circle h2 {
    color: #ffffff;
    font-weight: 700;
}

.stat-circle p {
    color: #c0c0c0;
    font-size: 1rem;
    margin-top: 0.5rem;
}

/* How It Works Section */
.how-it-works-section {
    background-color: #1a0f1a;
}

.accordion-item {
    background-color: #2a152a;
    border: 1px solid rgba(139, 0, 0, 0.3);
    margin-bottom: 1rem;
    border-radius: 0.5rem;
}

.accordion-header {
    background-color: #3a1e3a;
    border-radius: 0.5rem;
}

.accordion-button {
    background-color: #3a1e3a !important;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 1.2rem;
    padding: 1.2rem 1.5rem;
    border-radius: 0.5rem;
}

.accordion-button:not(.collapsed) {
    background-color: #8B0000 !important;
    color: #ffffff !important;
    box-shadow: none;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.accordion-button::after {
    filter: invert(1);
}

.accordion-body {
    background-color: #2a152a;
    color: #c0c0c0;
    padding: 1.5rem;
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

/* Contact Form Section */
.contact-form-section {
    background-color: #2a152a;
}

.contact-card {
    background-color: #3a1e3a;
    border: 1px solid rgba(139, 0, 0, 0.3);
}

.contact-form-section .form-label {
    color: #f8f9fa;
    font-weight: 600;
}

.contact-form-section .form-control,
.contact-form-section .form-select {
    background-color: #1a0f1a;
    border: 1px solid #8B0000;
    color: #e0e0e0;
}

.contact-form-section .form-control::placeholder {
    color: #a0a0a0;
}

.contact-form-section .form-control:focus,
.contact-form-section .form-select:focus {
    background-color: #1a0f1a;
    border-color: #c0c0c0;
    box-shadow: 0 0 0 0.25rem rgba(139, 0, 0, 0.25);
    color: #e0e0e0;
}

.contact-form-section .form-select option {
    background-color: #1a0f1a;
    color: #e0e0e0;
}

/* Footer Section */
.footer-section {
    background-color: #1a0f1a;
    border-top: 1px solid rgba(139, 0, 0, 0.3);
    color: #c0c0c0;
}

.footer-brand .footer-logo {
    height: 30px;
    width: auto;
}

.footer-brand .site-name {
    color: #f8f9fa;
    font-weight: 700;
    font-size: 1.5rem;
    text-decoration: none;
}

.footer-section h5 {
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-section p {
    color: #c0c0c0;
}

.footer-link {
    color: #c0c0c0;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0.2rem 0;
    display: inline-block;
}

.footer-link:hover {
    color: #ffffff;
}

.newsletter-form .form-control {
    background-color: #2a152a;
    border: 1px solid #8B0000;
    color: #e0e0e0;
}

.newsletter-form .form-control::placeholder {
    color: #a0a0a0;
}

.btn-secondary-custom {
    background-color: #6a0000;
    border-color: #6a0000;
    color: #ffffff;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
}

.btn-secondary-custom:hover {
    background-color: #8B0000;
    border-color: #8B0000;
    color: #ffffff;
}

.copyright-text {
    color: #a0a0a0;
    border-color: rgba(139, 0, 0, 0.3) !important;
}

/* Cookie Consent Modal */
#cookieConsentModal .modal-content {
    background-color: #2a152a;
    color: #e0e0e0;
    border: 1px solid rgba(139, 0, 0, 0.5);
    border-radius: 0.75rem;
}

#cookieConsentModal .modal-header {
    border-bottom: 1px solid rgba(139, 0, 0, 0.3);
}

#cookieConsentModal .modal-title {
    color: #f8f9fa;
}

#cookieConsentModal .modal-body p {
    color: #c0c0c0;
}

#cookieConsentModal .form-check-label {
    color: #f8f9fa;
}

#cookieConsentModal .form-check-input:checked {
    background-color: #8B0000;
    border-color: #8B0000;
}

#cookieConsentModal .form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(139, 0, 0, 0.25);
}

#cookieConsentModal .modal-footer {
    border-top: 1px solid rgba(139, 0, 0, 0.3);
}

#cookieConsentModal .btn-primary {
    background-color: #8B0000;
    border-color: #8B0000;
    color: #ffffff;
}

#cookieConsentModal .btn-primary:hover {
    background-color: #6a0000;
    border-color: #6a0000;
}

#cookieConsentModal .btn-outline-primary {
    color: #8B0000;
    border-color: #8B0000;
}

#cookieConsentModal .btn-outline-primary:hover {
    background-color: #8B0000;
    color: #ffffff;
}

#cookieConsentModal .btn-secondary {
    background-color: #4a2d4a;
    border-color: #4a2d4a;
    color: #e0e0e0;
}

#cookieConsentModal .btn-secondary:hover {
    background-color: #3a1e3a;
    border-color: #3a1e3a;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .navbar-nav .nav-link {
        margin-right: 1rem;
    }
}

@media (max-width: 1100px) {
    .offcanvas-end {
        width: 75%;
    }
}

@media (max-width: 991.98px) {
    .navbar-nav {
        overflow-x: auto;
        flex-wrap: nowrap;
    }
    .navbar-nav .nav-item {
        flex: 0 0 auto;
    }

    .hero-section {
        text-align: center;
        padding-top: 8rem;
        padding-bottom: 6rem;
    }
    .hero-image {
        margin-top: 2rem;
    }

    .timeline::before {
        left: 20px;
        margin-left: 0;
    }

    .timeline-item {
        flex-direction: column !important;
        align-items: flex-start;
    }

    .timeline-icon {
        left: 6px;
        transform: translateX(0);
        margin-top: 0;
        top: 0;
    }

    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 40px !important;
        margin-right: 0 !important;
        padding: 1rem;
    }

    .timeline-content h3 {
        font-size: 1.3rem;
    }

    .project-card {
        width: 300px;
    }

    .stat-circle {
        width: 150px;
        height: 150px;
    }
    .stat-circle h2 {
        font-size: 2.5rem;
    }
    .stat-circle p {
        font-size: 0.9rem;
    }
}

@media (max-width: 767.98px) {
    .hero-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
    }
    .hero-section p {
        font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    }
    .btn-primary-custom {
        font-size: 1rem;
        padding: 0.7rem 1.5rem;
    }

    .section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }

    .navbar-brand .site-name {
        font-size: clamp(1rem, 3vw, 1.25rem);
    }

    .navbar-brand .header-logo {
        height: 30px;
    }

    .footer-brand .site-name {
        font-size: 1.25rem;
    }

    .footer-brand .footer-logo {
        height: 25px;
    }

    .stat-circle {
        width: 120px;
        height: 120px;
    }
    .stat-circle h2 {
        font-size: 2rem;
    }
    .stat-circle p {
        font-size: 0.8rem;
    }

    .accordion-button {
        font-size: 1rem;
        padding: 1rem 1.2rem;
    }
}
.termsCaveBox {
    /* Padding for the main container to create space around its content */
    padding: 30px 25px;
}

.termsCaveBox h1 {
    /* Heading 1 styles: moderately sized font for main sections */
    font-size: 1.6em; /* Slightly smaller than default browser H1 */
    margin-top: 1.5em; /* Space above the heading */
    margin-bottom: 0.8em; /* Space below the heading */
    line-height: 1.2; /* Tighter line spacing for headings */
    font-weight: bold; /* Standard bold weight */
}

.termsCaveBox h2 {
    /* Heading 2 styles: secondary section titles */
    font-size: 1.4em;
    margin-top: 1.5em;
    margin-bottom: 0.7em;
    line-height: 1.2;
    font-weight: bold;
}

.termsCaveBox h3 {
    /* Heading 3 styles: sub-section titles */
    font-size: 1.2em;
    margin-top: 1.2em;
    margin-bottom: 0.6em;
    line-height: 1.3;
    font-weight: bold;
}

.termsCaveBox h4 {
    /* Heading 4 styles: smaller sub-headings */
    font-size: 1.1em;
    margin-top: 1em;
    margin-bottom: 0.5em;
    line-height: 1.3;
    font-weight: bold;
}

.termsCaveBox h5 {
    /* Heading 5 styles: very minor headings, almost like emphasized paragraphs */
    font-size: 1em; /* Similar to paragraph text size */
    margin-top: 1em;
    margin-bottom: 0.4em;
    line-height: 1.4;
    font-weight: bold;
}

.termsCaveBox p {
    /* Paragraph styles: standard body text */
    margin-bottom: 1em; /* Space between paragraphs for readability */
    line-height: 1.6; /* Optimal line spacing for body text */
}

.termsCaveBox ul,
.termsCaveBox ol {
    /* Unordered and ordered list container styles */
    margin-top: 1em; /* Space above the list */
    margin-bottom: 1em; /* Space below the list */
    padding-left: 25px; /* Indentation for list markers (bullets/numbers) */
}

.termsCaveBox li {
    /* List item styles */
    margin-bottom: 0.5em; /* Space between individual list items */
    line-height: 1.6; /* Consistent line spacing with paragraphs */
}


#cookieConsentModal{
    .text-muted{
        color: #fff !important;
    }

    button{
        font-size: 15px !important;
    }
}

.form-text{
    color: #fff;
}

#hero{
    height: auto !important;
    padding: 130px 0px 50px !important;
}

@media (max-width: 767px){
    .contact-card{
        padding: 15px !important;
    }
}