:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --dark-blue: #0A192F;
    --light-blue: #F0F8FF;
    --text-dark: #333;
    --text-light: #f8f9fa;
    --success-light: #d4edda;
    --danger-light: #f8d7da;
}

* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--text-light);
    overflow-wrap: break-word;
}

html {
    scroll-behavior: smooth;
}

.fixed-top {
    z-index: 1030;
}

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

.bg-light-blue {
    background-color: var(--light-blue) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.btn-primary,
.custom-btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.btn-primary:hover,
.custom-btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-2px);
}

.btn-light,
.custom-btn-light {
    background-color: var(--text-light);
    border-color: var(--text-light);
    color: var(--primary-color);
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.btn-light:hover,
.custom-btn-light:hover {
    background-color: #e2e6ea;
    border-color: #e2e6ea;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-outline-primary {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.btn-outline-primary:hover,
.btn-outline-primary.active {
    background-color: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
}

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

.site-title {
    font-weight: 700;
    font-size: clamp(1.25rem, 1.0vw + 1rem, 1.5rem);
    color: var(--text-light);
}

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

.offcanvas-header {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.offcanvas-title {
    font-size: 1.5rem;
}

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

.nav-link {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75) !important;
    transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-light) !important;
}

.section-title {
    font-size: clamp(1.8rem, 2.5vw + 1rem, 2.5rem);
    font-weight: 700;
    color: var(--dark-blue);
}

.section-title.text-white {
    color: var(--text-light) !important;
}

@media (max-width: 767.98px) {
    .site-title {
        font-size: 1rem;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .navbar-brand .logo-img {
        height: 30px;
    }
}

@media (max-width: 400px) {
    .site-title {
        font-size: 0.8rem;
    }
}

@media (min-width: 768px) and (max-width: 1023.98px) {
    .site-title {
        font-size: 1.35rem;
    }
    .section-title {
        font-size: 2rem;
    }
}

.hero-section {
    min-height: 100vh;
    background-image: url('graphics/pics/real-estate-hero.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    padding-top: 100px;
    padding-bottom: 50px;
}

.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 0;
}

.hero-section h1 {
    font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
    font-weight: 700;
}

.hero-section .lead {
    font-size: clamp(1rem, 1.5vw + 0.5rem, 1.5rem);
}

.statistic-number {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px 30px;
    display: inline-block;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.statistic-number span {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(0, 123, 255, 0.5);
}

.about-feature {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

.about-feature i {
    transition: transform 0.3s ease;
}

.about-feature:hover i {
    transform: scale(1.1);
}

.services-section .service-item .problem-col .bg-danger-light {
    background-color: var(--danger-light);
}

.services-section .service-item .solution-col .bg-success-light {
    background-color: var(--success-light);
}

.services-section .service-item h3 {
    font-size: clamp(1.2rem, 1.5vw + 0.5rem, 1.8rem);
}

.features-section .img-fluid {
    max-height: 500px;
    object-fit: cover;
    width: 100%;
}

.feature-callout {
    position: absolute;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    transform: scale(0);
    opacity: 0;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.feature-callout-1 {
    top: 15%;
    left: 10%;
}

.feature-callout-2 {
    top: 35%;
    left: 5%;
}

.feature-callout-3 {
    top: 55%;
    left: 12%;
}

.feature-callout-4 {
    top: 75%;
    left: 8%;
}

.features-section .features-list li {
    background-color: rgba(255, 255, 255, 0.7);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.how-it-works-step {
    flex: 1;
    min-width: 280px;
    margin: 15px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.how-it-works-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

.how-it-works-step i {
    color: var(--primary-color);
}

.how-it-works-steps i.ri-arrow-right-line, .how-it-works-steps i.ri-arrow-down-line {
    color: var(--primary-color);
}

.industry-card-wrapper {
    height: auto;
}

.industry-card-wrapper .card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.industry-card-wrapper .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175) !important;
}

.team-member .team-img {
    filter: grayscale(100%);
    transition: filter 0.5s ease, transform 0.3s ease;
    height: 250px;
    object-fit: cover;
}

.team-member:hover .team-img {
    filter: grayscale(0%);
    transform: scale(1.03);
}

.team-member .card-body {
    background-color: var(--text-light);
}

.career-section {
    background-image: url('graphics/pics/career-background.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.career-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 0;
}

.career-section .container {
    position: relative;
    z-index: 1;
}

.impressum-section .card {
    border: 1px solid #e0e0e0;
}

.footer-section .footer-logo {
    filter: brightness(0) invert(1);
}

.footer-section .site-title {
    font-size: clamp(1.1rem, 1.2vw + 0.8rem, 1.3rem);
}

.footer-section .hover-link {
    position: relative;
    display: inline-block;
}

.footer-section .hover-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--text-light);
    transition: width 0.3s ease;
}

.footer-section .hover-link:hover::after {
    width: 100%;
}

.modal-header {
    background-color: var(--primary-color);
    color: var(--text-light);
}

.modal-body p.lead {
    color: var(--text-dark);
}

.modal-dialog-scrollable .modal-content {
    max-height: 80vh;
}

.modal-body {
    overflow-y: auto;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.fade-in {
    transform: translateY(0);
}

.animate-on-scroll.fade-in-down {
    transform: translateY(-20px);
}

.animate-on-scroll.fade-in-up {
    transform: translateY(20px);
}

.animate-on-scroll.slide-in-left {
    transform: translateX(-50px);
}

.animate-on-scroll.slide-in-right {
    transform: translateX(50px);
}

.animate-on-scroll.zoom-in {
    transform: scale(0.9);
}

.animate-on-scroll.animated.fade-in-down {
    transform: translateY(0);
}

.animate-on-scroll.animated.fade-in-up {
    transform: translateY(0);
}

.animate-on-scroll.animated.slide-in-left {
    transform: translateX(0);
}

.animate-on-scroll.animated.slide-in-right {
    transform: translateX(0);
}

.animate-on-scroll.animated.zoom-in {
    transform: scale(1);
}

.animate-on-scroll.animated.fade-in {
    opacity: 1;
}

.animate-on-scroll.delay-1 {
    transition-delay: 0.2s;
}

.animate-on-scroll.delay-2 {
    transition-delay: 0.4s;
}

.animate-on-scroll.delay-3 {
    transition-delay: 0.6s;
}

.animate-on-scroll.delay-4 {
    transition-delay: 0.8s;
}

.animate-on-scroll.delay-5 {
    transition-delay: 1s;
}

.service-item .slide-in-left-child {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.service-item .slide-in-right-child {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.service-item.animated .slide-in-left-child {
    opacity: 1;
    transform: translateX(0);
}

.service-item.animated .slide-in-right-child {
    opacity: 1;
    transform: translateX(0);
}

.feature-callout.animated {
    transform: scale(1);
    opacity: 1;
}

.feature-callout-1.animated { transition-delay: 0.5s; }
.feature-callout-2.animated { transition-delay: 0.7s; }
.feature-callout-3.animated { transition-delay: 0.9s; }
.feature-callout-4.animated { transition-delay: 1.1s; }

@media (max-width: 991.98px) {
    .how-it-works-steps {
        flex-direction: column;
    }
    .how-it-works-step {
        width: 100%;
        margin: 15px 0;
    }
    .how-it-works-steps i.ri-arrow-right-line {
        display: none !important;
    }
    .how-it-works-steps i.ri-arrow-down-line {
        display: block !important;
    }
    .features-section .img-fluid {
        max-height: 300px;
    }
    .feature-callout {
        position: static;
        margin: 10px auto;
        width: 30px;
        height: 30px;
        font-size: 1rem;
        display: none; /* Hide callouts on small screens if they overlap */
    }
    .features-section .col-lg-7 {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 1100px) {
    .navbar-collapse:not(.show) {
        display: none;
    }
    .navbar-toggler {
        display: block;
    }
}
/* Parent container for terms and conditions */
.termsCaveBox {
    margin-top: 3rem; /* Top margin for spacing from elements above */
    padding: 2rem; /* Internal padding for content on all sides */
    /* You might want to add a background or border here for visual separation, e.g.: */
    /* background-color: #f9f9f9; */
    /* border: 1px solid #e0e0e0; */
    /* border-radius: 8px; */
}

/* Heading 1 styles */
.termsCaveBox h1 {
    font-size: 2rem; /* Moderate size for main section titles */
    margin-top: 2.5rem; /* Space above the heading */
    margin-bottom: 1rem; /* Space below the heading */
    font-weight: 700; /* Bold font weight */
    line-height: 1.2; /* Tighter line height for headings */
}

/* Heading 2 styles */
.termsCaveBox h2 {
    font-size: 1.75rem; /* Slightly smaller than h1 */
    margin-top: 2rem;
    margin-bottom: 0.9rem;
    font-weight: 600;
    line-height: 1.25;
}

/* Heading 3 styles */
.termsCaveBox h3 {
    font-size: 1.5rem; /* Progressive decrease */
    margin-top: 1.75rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
    line-height: 1.3;
}

/* Heading 4 styles */
.termsCaveBox h4 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.7rem;
    font-weight: 500; /* Slightly less bold */
    line-height: 1.35;
}

/* Heading 5 styles */
.termsCaveBox h5 {
    font-size: 1.1rem; /* Closer to body text size */
    margin-top: 1.25rem;
    margin-bottom: 0.6rem;
    font-weight: 500;
    line-height: 1.4;
}

/* Paragraph styles */
.termsCaveBox p {
    font-size: 1rem; /* Standard body text size (e.g., 16px) */
    margin-bottom: 1rem; /* Space between paragraphs */
    line-height: 1.6; /* Good readability for body text */
}

/* Unordered list styles */
.termsCaveBox ul {
    margin-top: 1rem; /* Space above the list */
    margin-bottom: 1rem; /* Space below the list */
    padding-left: 1.8rem; /* Indentation for list items (for bullets) */
    list-style-type: disc; /* Default bullet style */
}

/* List item styles */
.termsCaveBox li {
    font-size: 1rem; /* Inherit or explicitly set for consistency */
    margin-bottom: 0.5rem; /* Space between individual list items */
    line-height: 1.6; /* Ensure good readability within list items */
}
