:root {
    --primary-color: #6A1B9A; /* Deep Purple */
    --secondary-color: #FFC107; /* Amber Gold */
    --accent-color: #00BCD4; /* Cyan */
    --dark-bg: #1A1A2E; /* Dark Blue-Purple */
    --light-bg: #F0F2F5; /* Light Gray */
    --text-color: #E0E0E0; /* Light Gray for dark backgrounds */
    --dark-text-color: #333333; /* Dark Gray for light backgrounds */
    --heading-color: #FFFFFF; /* White for headings on dark */
    --gradient-start: #2C004F; /* Darker Purple */
    --gradient-end: #4A0070; /* Lighter Purple */
    --hero-overlay: rgba(0, 0, 0, 0.6);

    /* Theme specific variables */
    --hero-gradient-1: var(--gradient-start);
    --hero-gradient-2: var(--gradient-end);
    --hero-cta-bg: var(--secondary-color);
    --hero-cta-color: var(--dark-text-color);
}

/* Fantasy Theme */
.theme-fantasy {
    --primary-color: #8B0000; /* Dark Red */
    --secondary-color: #FFD700; /* Gold */
    --accent-color: #228B22; /* Forest Green */
    --dark-bg: #360000; /* Very Dark Red */
    --light-bg: #FFF8DC; /* Cornsilk */
    --text-color: #F5DEB3; /* Wheat */
    --dark-text-color: #4A0000; /* Darker Red */
    --heading-color: #FFFAF0; /* Floral White */
    --gradient-start: #4A0000;
    --gradient-end: #6A0000;
    --hero-overlay: rgba(0, 0, 0, 0.7);

    --hero-gradient-1: var(--gradient-start);
    --hero-gradient-2: var(--gradient-end);
    --hero-cta-bg: var(--secondary-color);
    --hero-cta-color: var(--dark-text-color);
}

/* Sci-Fi Theme */
.theme-sci-fi {
    --primary-color: #00FFFF; /* Aqua */
    --secondary-color: #FF4500; /* OrangeRed */
    --accent-color: #00FF00; /* Lime Green */
    --dark-bg: #0A0A1A; /* Very Dark Blue */
    --light-bg: #E0FFFF; /* Light Cyan */
    --text-color: #BBFFFF; /* Pale Turquoise */
    --dark-text-color: #001F3F; /* Dark Blue */
    --heading-color: #FFFFFF; /* White */
    --gradient-start: #000033;
    --gradient-end: #000066;
    --hero-overlay: rgba(0, 0, 0, 0.75);

    --hero-gradient-1: var(--gradient-start);
    --hero-gradient-2: var(--gradient-end);
    --hero-cta-bg: var(--secondary-color);
    --hero-cta-color: var(--dark-text-color);
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark-text-color); /* Default text color for light sections */
    background-color: var(--light-bg);
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--dark-text-color);
    font-weight: 600;
}

/* General Section Styling */
section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--dark-text-color);
    max-width: 800px;
    margin: 0 auto 60px auto;
}

/* Navbar */
.navbar {
    transition: background-color 0.3s ease;
    background-color: rgba(26, 26, 46, 0.8); /* Default dark-bg with transparency */
    backdrop-filter: blur(5px);
}

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

.navbar-brand .brand-text {
    font-size: 1.7rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}
@media (max-width:575px) {
    .brand-text{
        font-size: 14px!important;
    }
}
.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    padding: 0.5rem 1.2rem;
    transition: color 0.3s ease, transform 0.3s ease;
}
.navbar-nav{
    flex-wrap: wrap;
      justify-content: flex-end;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--secondary-color);
    transform: translateY(-2px);
}
.carousel-inner{
    width: 90%;
        margin: 0 auto;
}
@media (max-width:450px) {
    .carousel-control-next, .carousel-control-prev{
    display: none;
}
}
.carousel-control-next, .carousel-control-prev{
    width: 0;
}
.navbar-toggler {
    border: none;
}

.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.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    background-image: linear-gradient(135deg, var(--hero-gradient-1), var(--hero-gradient-2)), url('pictures/graphics/Table_Dominoes_A_Game_Being_Is_Played_On_A_Of.jpg');
    background-size: cover;
    background-position: center;
    background-blend-mode: multiply;
    transition: background-image 0.5s ease, background-color 0.5s ease;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--hero-overlay);
    z-index: 1;
}

.hero-section .container {
    z-index: 2;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--heading-color);
    text-shadow: 3px 3px 6px rgba(0,0,0,0.4);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    background-color: var(--hero-cta-bg);
    color: var(--hero-cta-color);
    border: none;
    padding: 15px 40px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.hero-cta:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.theme-switcher {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.theme-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    margin: 0 5px;
    transition: all 0.3s ease;
    opacity: 0.8;
}

.theme-btn:hover {
    opacity: 1;
    transform: scale(1.1);
}

.theme-btn.active {
    border-color: var(--secondary-color);
    transform: scale(1.15);
    opacity: 1;
}

.theme-btn[data-theme="default"] {
    background: linear-gradient(135deg, #2C004F, #4A0070);
}

.theme-btn[data-theme="fantasy"] {
    background: linear-gradient(135deg, #4A0000, #6A0000);
}

.theme-btn[data-theme="sci-fi"] {
    background: linear-gradient(135deg, #000033, #000066);
}

/* About Us Section */
.about-section {
    background-color: var(--light-bg);
}

.team-member-card {
    background-color: #fff;
    border-radius: 15px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

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

.team-avatar {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    margin: 0 auto 15px auto;
}

.team-name {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.team-role {
    color: var(--accent-color);
    font-weight: 500;
    margin-bottom: 15px;
}

.team-quote {
    font-style: italic;
    color: var(--dark-text-color);
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Our Services Section */
.services-section {
    background-color: var(--dark-bg);
    color: var(--text-color);
}

.services-section .section-title,
.services-section .section-subtitle {
    color: var(--heading-color);
}

.service-item {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    height: 100%; /* Ensure equal height */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--secondary-color);
}

.service-icon {
    font-size: 3.5rem;
    color: var(--secondary-color);
    display: block;
    margin-bottom: 20px;
}

.service-title {
    color: var(--heading-color);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.service-description {
    color: var(--text-color);
    font-size: 1rem;
}

/* Key Features Section */
.features-section {
    background-color: var(--light-bg);
}

.feature-cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.feature-card {
    background-color: #fff;
    border-radius: 15px;
    padding: 30px;
    transition: all 0.3s ease;
    border: 1px solid #eee;
    height: 100%; /* Ensure equal height */
    position: relative;
    z-index: 1;
}

.feature-card-wrapper {
    position: relative;
}

.feature-card-wrapper.highlighted .feature-card {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    opacity: 1;
    z-index: 10;
    border-color: var(--primary-color);
}

.feature-cards-container.dimmed .feature-card:not(.highlighted) {
    opacity: 0.4;
    transform: scale(0.95);
    box-shadow: none;
}

.feature-card:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    border-color: var(--primary-color);
    z-index: 10;
}

.feature-card:hover ~ .feature-card {
    opacity: 0.4;
    transform: scale(0.95);
    box-shadow: none;
}

.feature-icon {
    font-size: 3.5rem;
    color: var(--primary-color);
    display: block;
    margin-bottom: 20px;
}

.feature-title {
    color: var(--dark-text-color);
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.feature-description {
    color: var(--dark-text-color);
    font-size: 1rem;
}

/* Our Portfolio Section */
.portfolio-section {
    background-color: var(--dark-bg);
    color: var(--text-color);
}

.portfolio-section .section-title,
.portfolio-section .section-subtitle {
    color: var(--heading-color);
}

.portfolio-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%; /* Ensure equal height */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
    border-radius: 15px;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 15px;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
}

/* Portfolio Modal */
.modal-content {
    border-radius: 15px;
    background-color: var(--light-bg);
    color: var(--dark-text-color);
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    background-color: var(--primary-color);
    color: #fff;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

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

.modal-title {
    color: #fff;
    font-weight: 600;
}

#modalPortfolioTitle {
    color: var(--primary-color);
    font-weight: 600;
    margin-top: 15px;
}

#modalPortfolioDescription {
    color: var(--dark-text-color);
}

/* Game Genres Section */
.genres-section {
    background-color: var(--light-bg);
}

.nav-tabs {
    border-bottom: none;
}

.nav-tabs .nav-link {
    border: none;
    border-radius: 10px 10px 0 0;
    color: var(--dark-text-color);
    font-weight: 500;
    padding: 15px 25px;
    margin: 0 5px;
    background-color: #e9ecef;
    transition: all 0.3s ease;
}

.nav-tabs .nav-link:hover {
    background-color: #dee2e6;
    color: var(--primary-color);
}

.nav-tabs .nav-link.active {
    background-color: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.nav-tabs .nav-link.active:hover {
    color: #fff;
}

.tab-content .tab-pane {
    background-color: #fff;
    border-radius: 0 0 15px 15px;
    border: 1px solid #e9ecef;
    border-top: none;
    color: var(--dark-text-color);
    transition: opacity 0.5s ease-in-out;
}

.tab-title {
    color: var(--primary-color);
    font-size: 2rem;
    margin-bottom: 15px;
}

.tab-pane ul {
    list-style: none;
    padding-left: 0;
    margin-top: 20px;
}

.tab-pane ul li {
    margin-bottom: 10px;
    color: var(--dark-text-color);
}

.tab-pane ul li i {
    color: var(--accent-color);
}

/* How It Works Section */
.howitworks-section {
    background-color: var(--dark-bg);
    color: var(--text-color);
}

.howitworks-section .section-title,
.howitworks-section .section-subtitle {
    color: var(--heading-color);
}

.process-flow {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    padding: 40px 0;
}



.process-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 0 20px;
}

.step-icon-wrapper {
    width: 80px;
    height: 80px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
    border: 3px solid var(--secondary-color);
    transition: all 0.4s ease;
}

.step-icon {
    font-size: 3rem;
    color: #fff;
}

.step-title {
    color: var(--heading-color);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.step-description {
    color: var(--text-color);
    font-size: 0.95rem;
}

.process-step .step-line {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
    transform: translate(-50%, -50%);
    z-index: -1;
    opacity: 0;
    transition: width 0.6s ease-out, opacity 0.6s ease-out;
}

.process-step:last-child .step-line {
    display: none;
}

.process-step.active .step-icon-wrapper {
    background-color: var(--secondary-color);
    border-color: var(--accent-color);
    transform: scale(1.1);
}

.process-step.active .step-line {
    opacity: 1;
    width: calc(100% - 40px); /* Adjust based on padding */
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--light-bg);
}

.testimonial-card {
    background-color: #fff;
    border-radius: 15px;
    overflow: hidden;
    text-align: center;
    border: 1px solid #eee;
    min-height: 250px; /* Ensure consistent height */
}

.testimonial-card .before-section,
.testimonial-card .after-section {
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.testimonial-card .before-section {
    background-color: #f8f9fa;
    border-right: 1px solid #eee;
    color: var(--dark-text-color);
}

.testimonial-card .after-section {
    background-color: #fff;
    color: var(--dark-text-color);
}

.testimonial-card .before-section i,
.testimonial-card .after-section i {
    font-size: 3rem;
    margin-bottom: 15px;
}

.testimonial-card .before-section i {
    color: #dc3545; /* Red for frown */
}

.testimonial-card .after-section i {
    color: #28a745; /* Green for smile */
}

.testimonial-card .bi-emoji-neutral {
    color: #ffc107; /* Amber for neutral */
}

.testimonial-card .card-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.testimonial-card p {
    font-size: 1rem;
    margin-bottom: 15px;
}

.testimonial-card .author {
    font-weight: 600;
    color: var(--accent-color);
    margin-top: auto; /* Push author to bottom */
}

.carousel-control-prev-icon, .carousel-control-next-icon {
    background-color: var(--primary-color);
    border-radius: 50%;
    padding: 15px;
}

/* Contact Us Section */
.contact-section {
    background-color: var(--dark-bg);
    color: var(--text-color);
}

.contact-section .section-title,
.contact-section .section-subtitle {
    color: var(--heading-color);
}

.contact-form-side,
.contact-info-side {
    background-color: rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-title,
.info-title {
    color: var(--heading-color);
    font-size: 2rem;
}

.form-label {
    color: var(--text-color);
    font-weight: 500;
}

.form-control {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    padding: 12px 15px;
    border-radius: 8px;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-control:focus {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25);
    color: #fff;
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}

.invalid-feedback {
    color: #dc3545;
    font-size: 0.875em;
}

textarea.form-control {
    resize: vertical;
}

.submit-btn {
    background-color: var(--secondary-color);
    color: var(--dark-text-color);
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-decoration: none;
}

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

.contact-item {
    color: var(--text-color);
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: 15px;
}

.contact-description {
    color: rgba(255, 255, 255, 0.8);
    font-style: italic;
}

.contact-info-side img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

/* Footer */
.footer-section {
    background-color: var(--primary-color);
    color: #fff;
    padding-top: 60px;
    padding-bottom: 40px;
}

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

.footer-brand .brand-text {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
}

.footer-tagline {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-heading {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.footer-nav-links,
.footer-legal-links {
    padding-left: 0;
}

.footer-nav-links li a,
.footer-legal-links li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
    padding: 5px 0;
}

.footer-nav-links li a:hover,
.footer-legal-links li a:hover {
    color: var(--accent-color);
    transform: translateX(5px);
}

/* Cookie Consent Modal */
.cookie-consent-modal {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cookie-consent-modal.show {
    opacity: 1;
    visibility: visible;
}

.cookie-consent-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: left;
    color: var(--dark-text-color);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.cookie-consent-modal.show .cookie-consent-content {
    transform: translateY(0);
}

.cookie-consent-content h4 {
    color: var(--primary-color);
    font-weight: 700;
}

.cookie-consent-content p {
    font-size: 0.95rem;
    line-height: 1.5;
}

.cookie-policy-link {
    color: var(--primary-color);
    text-decoration: underline;
}

.cookie-categories .form-check,
.cookie-customize-options .form-check {
    margin-bottom: 10px;
}

.cookie-categories .form-check-input:disabled + .form-check-label {
    opacity: 0.7;
    cursor: not-allowed;
}

.cookie-buttons button {
    margin-right: 10px;
    border-radius: 50px;
    padding: 8px 20px;
    font-weight: 500;
    text-decoration: none; /* Remove underline */
}

.cookie-buttons .btn-success {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

.cookie-buttons .btn-success:hover {
    background-color: #5a1482;
    border-color: #5a1482;
}

.cookie-buttons .btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: #fff;
}

.cookie-buttons .btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
}

.cookie-buttons .btn-info {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
}

.cookie-buttons .btn-info:hover {
    background-color: #00a0b2;
    border-color: #00a0b2;
}

.cookie-customize-options .btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    border-radius: 50px;
    padding: 8px 20px;
    font-weight: 500;
    text-decoration: none; /* Remove underline */
}

.cookie-customize-options .btn-primary:hover {
    background-color: #5a1482;
    border-color: #5a1482;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.8rem;
    }
    .hero-subtitle {
        font-size: 1.3rem;
    }
    .section-title {
        font-size: 2.5rem;
    }
    .section-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 992px) {
    .navbar-brand .brand-text {
        font-size: 1.5rem;
    }
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
    }
    .hero-title {
        font-size: 3rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .hero-cta {
        padding: 12px 30px;
        font-size: 1rem;
    }
    .process-flow {
        flex-direction: column;
        align-items: center;
    }
    .process-flow::before {
        top: 0;
        left: 50%;
        width: 2px;
        height: 100%;
        transform: translateX(-50%);
    }
    .process-step {
        width: 100%;
        max-width: 400px;
        margin-bottom: 40px;
    }
    .process-step:last-child {
        margin-bottom: 0;
    }
    .process-step .step-line {
        width: 2px;
        height: calc(100% + 40px);
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        opacity: 0;
    }
    .process-step.active .step-line {
        height: calc(100% + 40px);
        opacity: 1;
    }
    .testimonial-card {
        flex-direction: column;
    }
    .testimonial-card .before-section {
        border-right: none;
        border-bottom: 1px solid #eee;
    }
    .footer-section .col-lg-4 {
        margin-bottom: 30px;
    }
    .footer-section .col-lg-4:last-child {
        margin-bottom: 0;
    }
    .footer-brand, .footer-nav-links, .footer-legal-links {
        text-align: center !important;
        justify-content: center !important;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .section-subtitle {
        font-size: 1rem;
    }
    .navbar-nav {
        text-align: center;
    }
    .nav-tabs .nav-link {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    .tab-title {
        font-size: 1.5rem;
    }
    .contact-form-side, .contact-info-side {
        padding: 30px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 0.9rem;
    }
    .hero-cta {
        padding: 10px 25px;
        font-size: 0.9rem;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .section-subtitle {
        font-size: 0.9rem;
    }
    .theme-btn {
        width: 25px;
        height: 25px;
    }
    .team-avatar {
        width: 100px;
        height: 100px;
    }
    .service-icon, .feature-icon {
        font-size: 3rem;
    }
    .portfolio-title {
        font-size: 1.2rem;
    }
    .nav-tabs .nav-link {
        margin: 0 2px;
        padding: 8px 10px;
        font-size: 0.85rem;
    }
    .process-step {
        padding: 0 10px;
    }
    .step-icon-wrapper {
        width: 70px;
        height: 70px;
    }
    .step-icon {
        font-size: 2.5rem;
    }
    .contact-form-side, .contact-info-side {
        padding: 20px;
    }
    .form-title, .info-title {
        font-size: 1.8rem;
    }
    .footer-brand .brand-text {
        font-size: 1.6rem;
    }
    .footer-heading {
        font-size: 1.2rem;
    }
}
/* Styles for the consent tunnel grid container */
.consentTunnelGrid {
    padding-top: 60px; /* Top padding for the grid container */
    padding-left: 30px; /* Left padding for the grid container */
    padding-right: 30px; /* Right padding for the grid container */
    margin-left: auto; /* Center the grid container horizontally */
    margin-right: auto; /* Center the grid container horizontally */
    max-width: 960px; /* Max width for content within the grid */
    color: var(--dark-text-color); /* Default text color for the grid */
}

/* Heading 1 styles within the consent tunnel grid */
.consentTunnelGrid h1 {
    font-size: 2.2rem; /* Moderate font size for H1 */
    font-weight: 700; /* Bold font weight */
    line-height: 1.2; /* Standard line height */
    margin-bottom: 0.8em; /* Bottom margin for spacing */
    color: var(--primary-color); /* Use primary color for headings */
}

/* Heading 2 styles within the consent tunnel grid */
.consentTunnelGrid h2 {
    font-size: 1.8rem; /* Moderate font size for H2 */
    font-weight: 600; /* Semi-bold font weight */
    line-height: 1.3; /* Standard line height */
    margin-bottom: 0.7em; /* Bottom margin for spacing */
    color: var(--dark-text-color); /* Use dark text color for sub-headings */
}

/* Heading 3 styles within the consent tunnel grid */
.consentTunnelGrid h3 {
    font-size: 1.5rem; /* Moderate font size for H3 */
    font-weight: 600; /* Semi-bold font weight */
    line-height: 1.4; /* Standard line height */
    margin-bottom: 0.6em; /* Bottom margin for spacing */
    color: var(--dark-text-color); /* Use dark text color for sub-headings */
}

/* Heading 4 styles within the consent tunnel grid */
.consentTunnelGrid h4 {
    font-size: 1.3rem; /* Moderate font size for H4 */
    font-weight: 500; /* Medium font weight */
    line-height: 1.5; /* Standard line height */
    margin-bottom: 0.5em; /* Bottom margin for spacing */
    color: var(--dark-text-color); /* Use dark text color for sub-headings */
}

/* Heading 5 styles within the consent tunnel grid */
.consentTunnelGrid h5 {
    font-size: 1.1rem; /* Moderate font size for H5 */
    font-weight: 500; /* Medium font weight */
    line-height: 1.5; /* Standard line height */
    margin-bottom: 0.4em; /* Bottom margin for spacing */
    color: var(--dark-text-color); /* Use dark text color for sub-headings */
}

/* Paragraph styles within the consent tunnel grid */
.consentTunnelGrid p {
    font-size: 1rem; /* Standard paragraph font size */
    line-height: 1.7; /* Increased line height for readability */
    margin-bottom: 1em; /* Bottom margin for paragraph spacing */
    color: var(--dark-text-color); /* Use dark text color for paragraphs */
}

/* Unordered list styles within the consent tunnel grid */
.consentTunnelGrid ul {
    list-style: disc; /* Default disc bullet style */
    padding-left: 25px; /* Indentation for list items */
    margin-bottom: 1.5em; /* Bottom margin for list spacing */
    color: var(--dark-text-color); /* Use dark text color for lists */
}

/* List item styles within the consent tunnel grid */
.consentTunnelGrid li {
    font-size: 1rem; /* Standard list item font size */
    line-height: 1.6; /* Standard line height for list items */
    margin-bottom: 0.5em; /* Bottom margin for spacing between list items */
    color: var(--dark-text-color); /* Use dark text color for list items */
}

/* Responsive adjustments for consentTunnelGrid padding */
@media (max-width: 768px) {
    .consentTunnelGrid {
        padding-top: 40px; /* Adjust top padding for smaller screens */
        padding-left: 20px; /* Adjust side padding for smaller screens */
        padding-right: 20px; /* Adjust side padding for smaller screens */
    }
    .consentTunnelGrid h1 {
        font-size: 2rem; /* Smaller H1 on mobile */
    }
    .consentTunnelGrid h2 {
        font-size: 1.6rem; /* Smaller H2 on mobile */
    }
    .consentTunnelGrid h3 {
        font-size: 1.3rem; /* Smaller H3 on mobile */
    }
}

@media (max-width: 576px) {
    .consentTunnelGrid {
        padding-top: 30px; /* Further adjust top padding for very small screens */
        padding-left: 15px; /* Further adjust side padding for very small screens */
        padding-right: 15px; /* Further adjust side padding for very small screens */
    }
    .consentTunnelGrid h1 {
        font-size: 1.8rem; /* Even smaller H1 on very small screens */
    }
    .consentTunnelGrid h2 {
        font-size: 1.4rem; /* Even smaller H2 on very small screens */
    }
    .consentTunnelGrid h3 {
        font-size: 1.2rem; /* Even smaller H3 on very small screens */
    }
    .consentTunnelGrid p,
    .consentTunnelGrid ul,
    .consentTunnelGrid li {
        font-size: 0.95rem; /* Slightly smaller text on very small screens */
    }
}
