:root {
    --primary-color: #0052CC;
    --secondary-color: #52CC00;
    --text-color: #1A1F36;
    --background-start: #fff;
    --background-end: #f6f9fc;
    --max-width: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

audio {
    width: 100%;
}

summary {
    cursor: pointer;
    text-decoration: underline;
}

.navbar-wrapper {
    position: fixed;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.navbar {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.language-switcher a, .logo-link {
    line-height: 0;
}

.logo {
    height: 64px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a[href^="#"] {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a[href^="#"]::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
    bottom: 0;
    left: 0;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-links a[href^="#"]:hover {
    color: var(--primary-color);
}

.nav-links a[href^="#"]:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Language switcher styling */
.language-switcher {
    display: flex;
    gap: 1rem;
    margin-left: 2rem;
    padding-left: 2rem;
    border-left: 1px solid rgba(0, 0, 0, 0.1);
}

.language-switcher img {
    width: 24px;
    height: 16px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.language-switcher img:hover {
    opacity: 1;
}

.hero {
    /* min-height: 100vh; */
    background: linear-gradient(150deg, var(--background-start) 15%, var(--background-end) 85%);
    position: relative;
    overflow: hidden;
    padding-top: 80px;
}

.hero-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 2rem;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, #1a1f36 0%, #0052CC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    max-width: 800px;
    padding-bottom: 0.5rem;
}

.hero p {
    font-size: 1.5rem;
    color: #425466;
    max-width: 600px;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

.floating-elements {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    border-radius: 15px;
    animation: float 20s infinite;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(30px, 20px) rotate(5deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

/* Add multiple floating elements with different sizes and positions */
.floating-element:nth-child(1) {
    width: 200px;
    height: 200px;
    top: 20%;
    right: 38%;
    background: linear-gradient(45deg, rgba(0, 82, 204, 0.05), rgba(0, 82, 204, 0.5));
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 40%;
    background: linear-gradient(45deg, rgba(82, 204, 0, 0.05), rgba(82, 204, 0, 0.5));
    animation-delay: -5s;
}

.floating-element:nth-child(3) {
    width: 100px;
    height: 100px;
    top: 70%;
    right: 42%;
    background: linear-gradient(45deg, rgba(0, 82, 204, 0.05), rgba(0, 82, 204, 0.5));
    animation-delay: -10s;
}

@media (max-width: 4000px) {
    .floating-element:nth-child(1) {
        right: 35%;
    }

    .floating-element:nth-child(2) {
        right: 38%;
    }

    .floating-element:nth-child(3) {
        right: 40%;
    }
}

@media (max-width: 3000px) {
    .floating-element:nth-child(1) {
        right: 30%;
    }

    .floating-element:nth-child(2) {
        right: 35%;
    }

    .floating-element:nth-child(3) {
        right: 38%;
    }
}

@media (max-width: 2400px) {
    .floating-element:nth-child(1) {
        right: 25%;
    }

    .floating-element:nth-child(2) {
        right: 30%;
    }

    .floating-element:nth-child(3) {
        right: 35%;
    }
}

@media (max-width: 1800px) {
    .floating-element:nth-child(1) {
        right: 20%;
    }

    .floating-element:nth-child(2) {
        right: 27%;
    }

    .floating-element:nth-child(3) {
        right: 33%;
    }
}

@media (max-width: 1400px) {
    .floating-element:nth-child(1) {
        right: 10%;
    }

    .floating-element:nth-child(2) {
        right: 20%;
    }

    .floating-element:nth-child(3) {
        right: 25%;
    }
}

.overview-section {
    background: white;
    padding-top: 3rem;
    padding-bottom: 0rem;
    padding-left: 2rem;
    padding-right: 2rem;
}

.overview-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}

.overview-card {
    padding: 2rem;
    background: white;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.overview-card:hover {
    transform: translateY(-4px);
}

.overview-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.overview-text {
    color: #425466;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.overview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
}

.feature-card {
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.feature-card h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.95rem;
    color: #64748b;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10;
}

.mobile-menu-btn span {
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

@media (max-width: 880px) {
    .nav-links {
        gap: 1rem;
    }
    .language-switcher {
        margin-left: 0rem;
        padding-left: 1rem;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: flex;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: white;
        padding: 1rem;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11);
    }

    .nav-links.active {
        display: flex;
    }

    .language-switcher {
        margin: 1rem 0;
        padding: 1rem 0;
        border-left: none;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
    }

    .overview-content {
        grid-template-columns: 1fr;
    }
    
    .overview-grid {
        grid-template-columns: 1fr;
    }
}

.services-section {
    background: #f8fafc;
    padding: 3rem 2rem;
}

.services-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.services-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    background: linear-gradient(90deg, #1a1f36 0%, #0052CC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 48px rgba(50, 50, 93, 0.1), 0 6px 12px rgba(0, 0, 0, 0.08);
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.service-description {
    color: #425466;
    line-height: 1.7;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.service-link {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    background: var(--secondary-color);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
}

.service-link:hover {
    background: #47b300;
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

.service-footer {
    text-align: center;
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .services-section {
        padding: 2rem 1rem;
    }

    .services-title {
        font-size: 2rem;
        margin-bottom: 3rem;
    }
}

.service-detail-section {
    padding: 3rem 2rem;
    background: linear-gradient(150deg, var(--background-start) 15%, var(--background-end) 85%);
}

.service-detail-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.service-detail-header {
    text-align: center;
    margin-bottom: 4rem;
}

.service-detail-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: linear-gradient(90deg, #1a1f36 0%, #0052CC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-detail-intro {
    font-size: 1.5rem;
    color: #425466;
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

.service-detail-content {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
}

.service-nav {
    position: sticky;
    top: 100px; /* Adjust based on your navbar height */
    height: fit-content;
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.service-nav-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.service-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-nav li {
    margin-bottom: 0.75rem;
}

.service-nav a {
    color: #425466;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: block;
    padding: 0.5rem;
    border-radius: 6px;
}

.service-nav a:hover {
    background: #f8fafc;
    color: var(--primary-color);
}

.service-nav a.active {
    background: #f0f4ff;
    color: var(--primary-color);
    font-weight: 500;
}

.service-main-content {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.service-main-content div {
    padding-bottom: 0.5rem;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
    margin: auto;
    display: block;
    width: auto;
    height: auto;
    max-width: 1677px;
    /* max-height: none; */
    position: relative;
    top: 0;
    transform: translateY(100px);
}

.modal {
    overflow-y: auto;
}

.modal-caption {
    margin: auto;
    display: block;
    width: 80%;
    text-align: center;
    color: #fff;
    padding: 10px 0;
    height: 150px;
}

.close {
    position: fixed; /* Fixed to viewport */
    right: 20px;
    top: 20px;
    color: #f1f1f1;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1004; /* Highest priority */
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    text-align: center;
    line-height: 50px;
    transition: all 0.3s ease;
}

.close:hover {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
}

.comparison-container {
    margin: 2rem 0;
}

.comparison-container figure {
    margin: 0;
    position: relative;
}

.comparison-image {
    width: 100%;
    height: auto;
    /* aspect-ratio: 1677 / 1387; */
    cursor: zoom-in;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.comparison-image:hover {
    transform: scale(1.01);
}

.comparison-container figcaption {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: #64748b;
    font-size: 0.95rem;
}

.before-caption {
    color: #CC0000;
}

.before-caption::before {
    /* content: "←";
    margin-right: 0.5rem;*/
}

.after-caption {
    color: #52CC00;
}

.after-caption::after {
    /*content: "→";
    margin-left: 0.5rem;*/
}

.zoom-btn {
    background: none;
    border: none;
    color: #0052CC;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.25rem 0.5rem;
    transition: transform 0.3s ease;
}

.zoom-btn:hover {
    transform: scale(1.1);
}

.service-main-content h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin: 0rem 0 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f4ff;
}

.service-main-content h4 {
    font-size: 1.4rem;
    margin: 2rem 0 1.0rem;
}

.service-main-content .lead {
    font-size: 1.1rem;
    color: #425466;
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.service-main-content ol {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
    counter-reset: item;
}

.service-main-content ol > li {
    margin-bottom: 1.2rem;
    color: #1A1F36;
    padding-left: 2rem;
    position: relative;
}

.service-main-content ol > li::before {
    content: counter(item);
    counter-increment: item;
    position: absolute;
    left: 0;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
}

.service-main-content ul {
    list-style: none;
    padding-left: 0;
    margin: 0.5rem 0;
}

.service-main-content ul li {
    margin-bottom: 0.5rem;
    color: #425466;
    padding-left: 1.5rem;
    position: relative;
}

.service-main-content ul li::before {
    font-family: "Font Awesome 6 Free";
    content: "\f058";
    font-weight: 400;
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    opacity: 0.8;
}

.service-main-content ul ul li::before {
    content: "\f105";
    color: var(--primary-color);
    font-weight: 900;
}

.service-main-content ul ul ul li::before {
    content: "\f0da";
    color: var(--secondary-color);
    font-weight: 900;
    background: none;
}

.service-main-content strong {
    color: var(--text-color);
    font-weight: 600;
}

.service-main-content #overview {
    margin-bottom: 3rem;
}

.service-main-content blockquote {
    background: #f8fafc;
    border-left: 4px solid var(--primary-color);
    margin: 1.5rem 0;
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
}

.service-main-content blockquote p {
    color: #425466;
    font-style: italic;
    margin-bottom: 0.5rem;
}

.service-main-content blockquote p:last-child {
    color: #64748b;
    font-size: 0.9rem;
    margin-top: 1rem;
    margin-bottom: 0;
}

.service-main-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.service-main-content th {
    background: var(--secondary-color);
    color: white;
    font-weight: 600;
    text-align: left;
    padding: 1rem;
    border-bottom: 2px solid #e2e8f0;
}

.service-main-content td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    color: #425466;
    word-break: break-word;
}

.service-main-content tr:last-child td {
    border-bottom: none;
}

.service-main-content tr:nth-child(even) {
    background: #f8fafc;
}

.service-main-content tr:hover {
    background: #f0f4ff;
}

.service-detail-cta {
    text-align: center;
}

.service-detail-cta h4 {
    margin: 0;
}

.service-detail-cta a {
    margin-top: 1.5rem;
}

i.x-large {
    font-size: x-large;
}

.flow-chart {
   max-width: 750px;
}

.flow-chart img {
    width: 100%;
    height: auto;
    max-width: 100%;
}

.referrals-section {
    background: white;
    padding: 5rem 2rem;
}

.referrals-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.referrals-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    background: linear-gradient(90deg, #1a1f36 0%, #0052CC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.referrals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.referral-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    border-left: 4px solid var(--secondary-color);
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.referral-item {
    margin-bottom: 1rem;
}

.referral-company {
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.referral-website {
    color: #64748b;
    font-size: 0.9rem;
}

.text-center {
    text-align: center;
}

@media (max-width: 1024px) {
    .referrals-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .referrals-grid {
        grid-template-columns: 1fr;
    }

    .service-detail-section {
        padding: 2rem 0.75rem;
    }

    .service-main-content {
        padding: 2rem 1rem;
    }

    .service-main-content td {
        padding: 0.5rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 1024px) {
    .service-detail-content {
        grid-template-columns: 1fr;
    }

    .service-nav {
        position: relative;
        top: 0;
        margin-bottom: 2rem;
    }
}

.founders-section {
    background: #f8fafc;
    padding: 5rem 2rem;
}

.founders-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.founders-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    background: linear-gradient(90deg, #1a1f36 0%, #0052CC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.founders-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    max-width: 800px;
    margin: 0 auto;
}

.founder-card {
    text-align: center;
}

.founder-img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    border: 4px solid white;
}

.founder-img:hover {
    transform: scale(1.05);
}

.founder-card h3 {
    font-size: 1.5rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.founder-card p {
    color: #64748b;
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .founders-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Contact Section */
.contact-section {
    background: white;
    padding: 5rem 2rem;
    position: relative;
}

.contact-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 4rem;
    background: linear-gradient(90deg, #1a1f36 0%, #0052CC 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-form-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-input {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(0, 82, 204, 0.1);
}

textarea.form-input {
    min-height: 150px;
    resize: vertical;
}

.form-submit {
    text-align: center;
}

.submit-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-button:hover {
    background: #0047b3;
    transform: translateY(-2px);
    box-shadow: 0 7px 14px rgba(50, 50, 93, 0.1), 0 3px 6px rgba(0, 0, 0, 0.08);
}

.submit-button:disabled {
    background: #a0a0a0;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Notification styles */
#notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 2rem;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    display: none;
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

.notification-success {
    background: #52CC00;
}

.notification-error {
    background: #CC0000;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 3rem 1rem;
    }
    
    .contact-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
}

/* Back to top button */
.back-to-top-container {
    position: fixed;
    bottom: 20px;
    left: 0;
    right: 0;
    margin-left: auto;
    margin-right: auto;
    max-width: var(--max-width);
    pointer-events: none;
    z-index: 999;
}

.back-to-top {
    position: absolute;
    bottom: 0;
    right: 20px;
    pointer-events: auto;
    background: var(--primary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    z-index: 999;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.back-to-top:hover {
    background: #0047b3;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.back-to-top.show {
    display: flex;
}

/* Footer styles */
.footer {
    background: #1A1F36;
    color: white;
    padding: 4rem 2rem 2rem;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #f0f4ff;
}

.footer-section p {
    color: #c9d1db;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.footer-section a {
    color: #c9d1db;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: white;
}

.footer-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 2rem 0;
}

.footer-copyright {
    text-align: center;
    color: #a2aebf;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer {
        padding: 3rem 1rem 2rem;
    }
}

/* Before/After Gallery Styles */
.before-after-gallery {
    margin: 2rem 0;
    background: var(--background-start);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.2rem;
}

.gallery-header h4 {
    margin: 0rem 0 1.0rem;
}

.gallery-counter {
    color: #64748b;
    font-weight: 500;
}

.gallery-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-slides {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-slide {
    flex: 0 0 100%;
    width: 100%;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.gallery-nav:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.gallery-nav.prev {
    left: 20px;
}

.gallery-nav.next {
    right: 20px;
}

.gallery-nav i {
    font-size: 1.2rem;
    color: var(--text-color);
}

.gallery-indicators {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator:hover,
.indicator.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.indicator:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Enhanced comparison styles for gallery */
.before-after-gallery .comparison-container {
    margin: 0;
}

.before-after-gallery .comparison-image {
    width: 100%;
    height: auto;
    /* aspect-ratio: 1677 / 1387; */
    cursor: zoom-in;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(50, 50, 93, 0.11), 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.before-after-gallery .comparison-image:hover {
    transform: scale(1.02);
}

.before-after-gallery figcaption {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #64748b;
    font-size: 0.95rem;
    width: 100%;
    min-width: 0;
}

.before-after-gallery .zoom-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.before-after-gallery .zoom-btn:hover {
    background: #003d99;
    transform: translateY(-1px);
}

.before-after-gallery .zoom-btn:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.before-after-gallery .after-caption {
    color: var(--secondary-color);
    font-weight: 500;
}

.gallery-slide-link {
    text-align: center;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.gallery-slide-link a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 82, 204, 0.2);
}

.gallery-slide-link a:hover {
    background: #003d99;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 82, 204, 0.3);
}

.gallery-slide-link a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.gallery-slide-link i {
    font-size: 0.8rem;
}

.before-after-gallery .before-caption,
.before-after-gallery .after-caption {
    min-width: 0; /* Allow shrinking below content width */
    overflow-wrap: break-word; /* Allow text to wrap if needed */
    word-wrap: break-word; /* Legacy support */
}

.before-after-gallery .before-caption {
    text-align: left;
    justify-self: start; /* Grid alignment */
}

.before-after-gallery .after-caption {
    text-align: right;
    justify-self: end; /* Grid alignment */
}

.before-after-gallery .zoom-btn {
    justify-self: center; /* Center the button in the grid */
}

/* Modal navigation buttons */
.modal-nav {
    position: fixed; /* Fixed to viewport, not absolute to modal */
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: none; /* Hidden by default, shown by JavaScript when needed */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1003; /* Higher than modal content */
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.modal-nav:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transform: translateY(-50%) scale(1.1);
}

.modal-nav:focus {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.modal-nav.prev {
    left: 30px;
}

.modal-nav.next {
    right: 30px;
}

.modal-nav i {
    font-size: 1.4rem;
    color: var(--text-color);
}

.modal-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.modal-nav:disabled:hover {
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
}

/* Enhanced modal for gallery */
.modal-caption {
    position: fixed; /* Fixed to viewport */
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 600px;
    text-align: center;
    color: #fff;
    padding: 1rem;
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 8px;
    z-index: 1003;
    display: none; /* Hidden by default, shown when needed */
}

/* Responsive gallery styles */
@media (max-width: 768px) {
    .before-after-gallery {
        margin: 1rem 0;
        padding: 1rem;
    }

    .gallery-header {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .gallery-header h4 {
        font-size: 1.1rem;
    }

    .gallery-nav {
        width: 40px;
        height: 40px;
    }

    .gallery-nav.prev {
        left: 10px;
    }

    .gallery-nav.next {
        right: 10px;
    }

    .gallery-nav i {
        font-size: 1rem;
    }

    .before-after-gallery figcaption {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 0.75rem;
        text-align: center;
        width: 100%;
    }

    .before-after-gallery .before-caption,
    .before-after-gallery .after-caption {
        text-align: center;
        justify-self: center;
    }

    .before-after-gallery .zoom-btn {
        justify-self: center;
    }

    .before-after-gallery .zoom-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .gallery-slide-link {
        margin-top: 0.75rem;
        padding-top: 0.75rem;
    }

    .gallery-slide-link a {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    .indicator {
        width: 10px;
        height: 10px;
    }

    .gallery-indicators {
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .before-after-gallery {
        padding: 0.75rem;
    }

    .gallery-nav {
        width: 35px;
        height: 35px;
    }

    .gallery-nav.prev {
        left: 5px;
    }

    .gallery-nav.next {
        right: 5px;
    }

    .gallery-header h4 {
        font-size: 1rem;
    }

    .gallery-counter {
        font-size: 0.8rem;
    }

    .modal-nav {
        width: 50px;
        height: 50px;
    }

    .modal-nav.prev {
        left: 15px;
    }

    .modal-nav.next {
        right: 15px;
    }

    .modal-nav i {
        font-size: 1.2rem;
    }

    .close {
        right: 15px;
        top: 15px;
        width: 45px;
        height: 45px;
        font-size: 24px;
        line-height: 45px;
    }

    .modal-caption {
        bottom: 15px;
        width: 90%;
        font-size: 0.9rem;
        padding: 0.75rem;
    }
}

@media (max-width: 380px) {
    .before-after-gallery figcaption {
        font-size: 0.85rem;
    }

    .before-after-gallery .before-caption,
    .before-after-gallery .after-caption {
        overflow-wrap: anywhere; /* More aggressive wrapping */
        hyphens: auto; /* Allow hyphenation */
        word-break: break-word; /* Break long words if needed */
    }

    .before-after-gallery .zoom-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }

    .gallery-header {
        margin-bottom: 0.5rem;
    }

    .gallery-header h3 {
        font-size: 0.95rem;
    }
}
