:root {
    --driva-blue: #004080;
    --driva-teal: #00A3CC;
    --driva-light-blue: #E0F2F7;
    --driva-dark-grey: #333333;
    --driva-light-grey: #F8F9FA;
    --driva-white: #FFFFFF;
    --driva-accent-green: #28A745;
    --driva-accent-red: #DC3545;
    --text-color-default: #333333; /* Standard text color for readability */
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color-default);
    line-height: 1.6;
    overflow-x: hidden; /* Prevent horizontal scroll due to animations */
}

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

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

.btn-primary {
    background-color: var(--driva-teal);
    border-color: var(--driva-teal);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--driva-blue);
    border-color: var(--driva-blue);
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--driva-teal);
    border-color: var(--driva-teal);
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--driva-teal);
    color: var(--driva-white);
    transform: translateY(-2px);
}

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

.btn-outline-light:hover {
    background-color: var(--driva-white);
    color: var(--driva-blue);
    transform: translateY(-2px);
}

.section-heading {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-heading::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--driva-teal);
    border-radius: 2px;
}

/* Navbar */
.navbar {
    transition: background-color 0.3s ease-in-out, padding 0.3s ease-in-out;
}

.navbar.scrolled {
    background-color: var(--driva-blue) !important;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.navbar-brand .logo-img {
    height: 40px;
    transition: height 0.3s ease;
}

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

.navbar-brand .logo-text {
    color: var(--driva-white);
    font-weight: 700;
    font-size: 1.5rem;
    margin-left: 0.5rem;
}

.navbar-nav .nav-link {
    color: var(--driva-white) !important;
    font-weight: 400;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--driva-teal) !important;
    transform: translateY(-2px);
}

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

.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 {
    background-color: var(--driva-blue);
    overflow: hidden;
}

.hero-section .carousel-item img {
    filter: brightness(0.5);
}

.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 64, 128, 0.7) 0%, rgba(0, 163, 204, 0.5) 100%);
    z-index: 0;
}

.hero-content {
    z-index: 1;
}

.hero-content h1 {
    color: #fff;
    font-size: 3.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-content p {
    color: #fff;
    font-size: 1.3rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.text-muted{
    color: unset !important;
}

/* About Section */
.about-section {
    background-color: var(--driva-white);
    position: relative;
}

.map-container {
    max-width: 900px;
    margin: 0 auto;
}

.map-container img {
    width: 100%;
    height: auto;
}

.story-pin {
    position: absolute;
    cursor: pointer;
    z-index: 10;
}

.story-pin .pin-icon {
    font-size: 2.5rem;
    color: #fff;
    transition: transform 0.3s ease, color 0.3s ease;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.3));
}

.story-pin:hover .pin-icon {
    transform: scale(1.2);
    opacity: 0.7;
}

.story-pin .info-box {
    display: none;
    position: absolute;
    z-index: 20;
    background-color: var(--driva-white);
    border: 1px solid var(--driva-light-blue);
    border-radius: 8px;
    padding: 15px;
    width: 250px;
    z-index: 100;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    animation: fadeInDown 0.4s ease-out;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Pin positioning (adjust based on actual map image) */
.pin-1 { top: 15%; left: 20%; }
.pin-2 { top: 40%; left: 55%; }
.pin-3 { top: 60%; left: 30%; }
.pin-4 { top: 80%; left: 70%; }

.pin-1 .info-box { top: 100%; left: 0; }
.pin-2 .info-box { top: 100%; right: 0; }
.pin-3 .info-box { bottom: 100%; left: 0; }
.pin-4 .info-box { bottom: 100%; right: 0; }

@media (max-width: 768px) {
    .pin-1 { top: 5%; left: 10%; }
    .pin-2 { top: 25%; left: 60%; }
    .pin-3 { top: 50%; left: 20%; }
    .pin-4 { top: 75%; left: 80%; }
    .story-pin .info-box { width: 200px; padding: 10px; font-size: 0.9rem; }
}

/* Services Section */
.services-section {
    background-color: var(--driva-light-grey);
}

.service-card {
    border: none;
    transition: all 0.3s ease;
    cursor: default;
}

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

.service-icon {
    font-size: 3.5rem;
    color: var(--driva-teal);
    transition: color 0.3s ease;
}

.service-card:hover .service-icon {
    color: var(--driva-blue);
}

/* Pricing Section */
.pricing-section {
    background-color: var(--driva-white);
}

.timeline-container {
    gap: 30px;
    padding: 20px 0;
    position: relative;
}

.timeline-line {
    position: absolute;
    height: 4px;
    background-color: var(--driva-light-blue);
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 1;
}

.pricing-step {
    background-color: var(--driva-white);
    border: 1px solid var(--driva-light-blue);
    flex: 1;
    max-width: 300px;
    min-width: 250px;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.pricing-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15) !important;
    border-color: var(--driva-teal);
}

.pricing-step .step-icon {
    font-size: 3rem;
    color: var(--driva-blue);
    margin-bottom: 15px;
}

.pricing-step .price {
    color: var(--driva-teal);
}

.pricing-step ul li {
    margin-bottom: 8px;
}

.pricing-step .btn {
    width: 80%;
}

@media (max-width: 768px) {
    .timeline-container {
        flex-direction: column;
        align-items: center;
    }
    .timeline-line {
        width: 4px;
        height: calc(100% - 40px);
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
    }
    .pricing-step {
        margin-bottom: 30px;
        max-width: none;
    }
}

/* Industries Section */
.industries-section {
    overflow: hidden;
}

.industries-section .carousel-item {
    height: 600px; /* Fixed height for industry slides */
    position: relative;
}

.industries-section .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4);
}

.industries-section .carousel-caption {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3); /* Darker overlay for text readability */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

.industries-section .carousel-caption h3 {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--driva-white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
}

.industries-section .carousel-caption p {
    font-size: 1.5rem;
    color: var(--driva-white);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

/* Stats Section */
.stats-section {
    background-color: var(--driva-white);
}

.stat-block {
    height: 100%;
    background-color: var(--driva-white);
    border: 1px solid var(--driva-light-blue);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: default;
}

.stat-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15) !important;
}

.stat-illustration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    transition: transform 0.4s ease;
}

.stat-block:hover .stat-illustration {
    transform: scale(1.05);
}

.stat-illustration-1 { background-image: url('graphics/graphics/stat-icon-projects_4.webp'); }
.stat-illustration-2 { background-image: url('graphics/graphics/stat-icon-experience_4.jpg'); }
.stat-illustration-3 { background-image: url('graphics/graphics/stat-icon-satisfaction_3.webp'); }
.stat-illustration-4 { background-image: url('graphics/graphics/stat-icon-team_3.webp'); }

.stat-number {
    color: var(--driva-teal);
    position: relative;
    z-index: 2;
}

.stat-block p {
    color: var(--driva-dark-grey);
    position: relative;
    z-index: 2;
}

/* How It Works Section */
.how-it-works-section {
    background-color: var(--driva-light-grey);
}

.process-flow {
    justify-content: space-around;
    align-items: flex-start;
    position: relative;
    gap: 20px;
}

.process-line {
    position: absolute;
    background-color: var(--driva-light-blue);
    height: 4px;
    width: calc(100% - 200px); /* Adjust based on step width */
    top: 50px;
    left: 100px; /* Half of step width */
    z-index: 0;
    transition: width 0.8s ease-out;
}

.process-step {
    flex: 1;
    max-width: 250px;
    padding: 20px;
    background-color: var(--driva-white);
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: -webkit-fill-available;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.process-step .step-icon {
    font-size: 3rem;
    color: var(--driva-blue);
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .process-flow {
        flex-direction: column;
        align-items: center;
    }
    .process-line {
        display: none; /* Hide horizontal line on small screens */
    }
    .process-step {
        margin-bottom: 30px;
        max-width: none;
    }
}

/* Contact Section */
.contact-section {
    background-color: var(--driva-white);
}

.contact-form {
    background-color: var(--driva-light-grey);
    border: 1px solid var(--driva-light-blue);
    transition: all 0.5s ease-out;
}

.contact-form.d-none {
    opacity: 0;
    transform: translateY(20px);
}

.contact-form.d-block {
    opacity: 1;
    transform: translateY(0);
}

.form-control:focus {
    border-color: var(--driva-teal);
    box-shadow: 0 0 0 0.25rem rgba(0, 163, 204, 0.25);
}

.form-control.is-invalid {
    border-color: var(--driva-accent-red);
}

.form-control.is-valid {
    border-color: var(--driva-accent-green);
}

.invalid-feedback {
    color: var(--driva-accent-red);
}

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

.testimonial-card {
    border: none;
    transition: all 0.3s ease;
    cursor: default;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15) !important;
}

.testimonial-avatar {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border: 3px solid var(--driva-teal);
    transition: transform 0.3s ease;
}

.testimonial-card:hover .testimonial-avatar {
    transform: scale(1.05);
}

.quote-icon {
    font-size: 2.5rem;
    color: var(--driva-light-blue);
    float: left;
    margin-right: 10px;
    margin-top: -10px;
}

/* Footer Section */
.footer-section {
    background-color: var(--driva-blue) !important;
    color: var(--driva-white) !important;
}

.footer-section .logo-img {
    height: 35px;
}

.footer-section .logo-text {
    color: var(--driva-white);
    font-weight: 700;
}

.footer-section a {
    color: var(--driva-white-50);
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--driva-teal);
}

.fab-button {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
    background-color: var(--driva-teal);
    border-color: var(--driva-teal);
    z-index: 1050;
    transition: all 0.3s ease;
}

.fab-button:hover {
    background-color: var(--driva-blue);
    border-color: var(--driva-blue);
    transform: scale(1.1);
}

/* General utility classes */
.object-cover {
    object-fit: cover;
}

.vh-100 {
    height: 100vh;
}

.py-lg-6 {
    padding-top: 6rem !important;
    padding-bottom: 6rem !important;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--driva-blue);
        margin-top: 10px;
        border-radius: 8px;
        padding: 10px;
    }
    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        text-align: center;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .hero-content p {
        font-size: 1.1rem;
    }
    .industries-section .carousel-item {
        height: 400px;
    }
    .industries-section .carousel-caption h3 {
        font-size: 2.5rem;
    }
    .industries-section .carousel-caption p {
        font-size: 1.1rem;
    }
    .py-lg-6 {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }
}.termsCaveBox {
    padding-top: 4rem; /* Верхний отступ */
    padding-left: 2rem; /* Левый отступ */
    padding-right: 2rem; /* Правый отступ */
    margin-bottom: 3rem; /* Отступ снизу для разделения секций */
}

.termsCaveBox h1,
.termsCaveBox h2,
.termsCaveBox h3,
.termsCaveBox h4,
.termsCaveBox h5 {
    font-size: 1.8rem; /* Уменьшенный размер для заголовков */
    margin-bottom: 1rem; /* Отступ после заголовка */
    color: var(--driva-blue); /* Цвет заголовков */
}

.termsCaveBox h2 {
    font-size: 1.6rem;
}

.termsCaveBox h3 {
    font-size: 1.4rem;
}

.termsCaveBox h4 {
    font-size: 1.2rem;
}

.termsCaveBox h5 {
    font-size: 1.1rem;
}

.termsCaveBox p {
    font-size: 1rem; /* Стандартный размер шрифта для параграфов */
    margin-bottom: 1.2rem; /* Отступ после параграфа */
    color: var(--text-color-default); /* Цвет текста */
}

.termsCaveBox ul,
.termsCaveBox ol {
    margin-bottom: 1.2rem; /* Отступ после списков */
    padding-left: 25px; /* Отступ для маркеров списка */
}

.termsCaveBox li {
    margin-bottom: 0.6rem; /* Отступ между элементами списка */
    line-height: 1.5; /* Межстрочный интервал для лучшей читаемости */
}

.termsCaveBox li:last-child {
    margin-bottom: 0; /* Убираем отступ после последнего элемента списка */
}
