/* Fonts - Updated to Inter for SaaS Aesthetic */
:root {
    --default-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --heading-font: "Inter", system-ui, -apple-system, sans-serif;
    --nav-font: "Inter", system-ui, -apple-system, sans-serif;
}

/* Global Colors - Software/Tech Platform Theme */
:root {
    --background-color: #ffffff;
    --default-color: #334155; /* Slate Gray */
    --heading-color: #0f172a; /* Deep Navy */
    --accent-color: #2563eb; /* High-energy tech blue */
    --surface-color: #ffffff;
    --contrast-color: #ffffff;
}

/* Nav Menu Colors */
:root {
    --nav-color: #334155;
    --nav-hover-color: #2563eb;
    --nav-mobile-background-color: #ffffff;
    --nav-dropdown-background-color: #ffffff;
    --nav-dropdown-color: #334155;
    --nav-dropdown-hover-color: #2563eb;
}

/* Color Presets */
.light-background {
    --background-color: #f8fafc; /* Cool-toned light gray */
    --surface-color: #ffffff;
}

.dark-background {
    --background-color: #0f172a; /* Deep tech slate */
    --default-color: #cbd5e1;
    --heading-color: #ffffff;
    --surface-color: #1e293b;
    --contrast-color: #ffffff;
}

/* Smooth scroll */
:root {
    scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
    color: var(--default-color);
    background-color: var(--background-color);
    font-family: var(--default-font);
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: 0.3s;
}

a:hover {
    color: color-mix(in srgb, var(--accent-color), transparent 25%);
    text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--heading-color);
    font-family: var(--heading-font);
    font-weight: 700 !important;
    letter-spacing: -0.02em; /* Tighter letter spacing for tech feel */
}

/*--------------------------------------------------------------
# Global Header (Glassmorphism DataRobot Style)
--------------------------------------------------------------*/
.header {
    color: var(--default-color);
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 20px 0;
    transition: all 0.5s;
    z-index: 997;
    box-shadow: none;
}

.header .logo {
    line-height: 1;
}

.header .logo img {
    max-height: 36px;
    margin-right: 8px;
}

.header .btn-getstarted,
.header .btn-getstarted:focus {
    color: var(--contrast-color);
    background: var(--accent-color);
    font-size: 15px;
    padding: 8px 25px;
    margin: 0 0 0 30px;
    border-radius: 6px;
    transition: 0.3s;
    font-weight: 600;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.2);
}

.header .btn-getstarted:hover,
.header .btn-getstarted:focus:hover {
    background: #1d4ed8;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}

@media (max-width: 1200px) {
    .header .logo {
        order: 1;
    }
    .header .btn-getstarted {
        order: 2;
        margin: 0 15px 0 0;
        padding: 6px 15px;
    }
    .header .navmenu {
        order: 3;
    }
}

.scrolled .header {
    box-shadow: 0px 4px 20px rgba(15, 23, 42, 0.05);
}

.index-page .header {
    --background-color: rgba(255, 255, 255, 0);
}

.index-page.scrolled .header {
    --background-color: rgba(255, 255, 255, 0.85);
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/* Navmenu - Desktop */
@media (min-width: 1200px) {
    .navmenu {
        padding: 0;
    }
    .navmenu ul {
        margin: 0;
        padding: 0;
        display: flex;
        list-style: none;
        align-items: center;
    }
    .navmenu li {
        position: relative;
    }
    .navmenu a,
    .navmenu a:focus {
        color: var(--nav-color);
        padding: 18px 12px;
        font-size: 15px;
        font-family: var(--nav-font);
        font-weight: 500;
        display: flex;
        align-items: center;
        justify-content: space-between;
        white-space: nowrap;
        transition: 0.3s;
    }
    .navmenu a i,
    .navmenu a:focus i {
        font-size: 12px;
        line-height: 0;
        margin-left: 5px;
        transition: 0.3s;
    }
    .navmenu li:last-child a {
        padding-right: 0;
    }
    .navmenu li:hover > a,
    .navmenu .active,
    .navmenu .active:focus {
        color: var(--nav-hover-color);
    }
}

/* Navmenu - Mobile */
@media (max-width: 1199px) {
    .mobile-nav-toggle {
        color: var(--nav-color);
        font-size: 28px;
        line-height: 0;
        margin-right: 10px;
        cursor: pointer;
        transition: color 0.3s;
    }
    .navmenu {
        padding: 0;
        z-index: 9997;
    }
    .navmenu ul {
        display: none;
        list-style: none;
        position: absolute;
        inset: 60px 20px 20px 20px;
        padding: 10px 0;
        margin: 0;
        border-radius: 6px;
        background-color: var(--nav-mobile-background-color);
        overflow-y: auto;
        transition: 0.3s;
        z-index: 9998;
        box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
    }
    .navmenu a,
    .navmenu a:focus {
        color: var(--nav-dropdown-color);
        padding: 10px 20px;
        font-family: var(--nav-font);
        font-size: 17px;
        font-weight: 500;
        display: flex;
        align-items: center;
        justify-content: space-between;
        white-space: nowrap;
        transition: 0.3s;
    }
    .navmenu a:hover,
    .navmenu .active,
    .navmenu .active:focus {
        color: var(--nav-dropdown-hover-color);
    }
    .mobile-nav-active {
        overflow: hidden;
    }
    .mobile-nav-active .mobile-nav-toggle {
        color: #fff;
        position: absolute;
        font-size: 32px;
        top: 15px;
        right: 15px;
        margin-right: 0;
        z-index: 9999;
    }
    .mobile-nav-active .navmenu {
        position: fixed;
        overflow: hidden;
        inset: 0;
        background: rgba(15, 23, 42, 0.9);
        transition: 0.3s;
    }
    .mobile-nav-active .navmenu > ul {
        display: block;
    }
}

/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {
    color: var(--default-color);
    background-color: var(--background-color);
    font-size: 14px;
    padding-bottom: 50px;
    position: relative;
}

.footer .footer-top {
    padding-top: 50px;
}

.footer .social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background-color: var(--surface-color);
    border: 1px solid #e2e8f0;
    font-size: 16px;
    color: var(--default-color);
    margin-right: 10px;
    transition: 0.3s;
}

.footer .social-links a:hover {
    color: var(--contrast-color);
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.footer h4 {
    font-size: 16px;
    font-weight: bold;
    position: relative;
    padding-bottom: 12px;
}

.footer .footer-links {
    margin-bottom: 30px;
}
.footer .footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer .footer-links ul li {
    padding: 10px 0;
    display: flex;
    align-items: center;
}
.footer .footer-links ul a {
    display: inline-block;
    color: var(--default-color);
    line-height: 1;
}
.footer .footer-links ul a:hover {
    color: var(--accent-color);
}

.footer .copyright {
    padding-top: 25px;
    padding-bottom: 25px;
    border-top: 1px solid #f1f5f9;
}

.footer .copyright p {
    margin-bottom: 0;
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
    position: fixed;
    visibility: hidden;
    opacity: 0;
    right: 15px;
    bottom: 15px;
    z-index: 99999;
    background-color: var(--accent-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.4s;
}

.scroll-top i {
    font-size: 24px;
    color: var(--contrast-color);
    line-height: 0;
}

.scroll-top:hover {
    background-color: #1d4ed8;
}

.scroll-top.active {
    visibility: visible;
    opacity: 1;
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
    color: var(--default-color);
    background-color: var(--background-color);
    padding: 80px 0;
    scroll-margin-top: 98px;
    overflow: clip;
}

@media (max-width: 1199px) {
    section,
    .section {
        scroll-margin-top: 56px;
    }
}

.section-title {
    text-align: center;
    padding-bottom: 60px;
    position: relative;
}

.section-title h2 {
    font-size: 14px;
    letter-spacing: 1px;
    font-weight: 700;
    padding: 8px 20px;
    margin: 0;
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent-color);
    display: inline-block;
    text-transform: uppercase;
    border-radius: 50px;
}

.section-title p {
    color: var(--heading-color);
    margin: 10px 0 0 0;
    font-size: 32px;
    font-weight: 800;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
    width: 100%;
    min-height: 90vh;
    position: relative;
    padding: 120px 0 60px 0;
    display: flex;
    align-items: center;
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.05) 0%, rgba(255, 255, 255, 1) 60%);
}

.hero h1 {
    margin: 0;
    font-size: 48px;
    line-height: 1.2;
}

.hero p {
    color: var(--default-color);
    margin: 15px 0 30px 0;
    font-size: 20px;
    font-weight: 400;
}

.hero .btn-get-started {
    color: var(--contrast-color);
    background: var(--accent-color);
    font-weight: 600;
    font-size: 16px;
    padding: 12px 40px;
    border-radius: 6px;
    transition: 0.3s;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.2);
    display: inline-flex;
    align-items: center;
}

.hero .btn-get-started i {
    margin-left: 8px;
    transition: 0.3s;
}
.hero .btn-get-started:hover {
    background: #1d4ed8;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3);
}
.hero .btn-get-started:hover i {
    transform: translateX(5px);
}

.hero .btn-outline {
    border: 2px solid #e2e8f0;
    color: var(--heading-color);
    border-radius: 6px;
    padding: 10px 30px;
    font-weight: 600;
    transition: 0.2s;
}
.hero .btn-outline:hover {
    border-color: var(--heading-color);
}

.hero .animated {
    animation: up-down 2s ease-in-out infinite alternate-reverse both;
}

@keyframes up-down {
    0% {
        transform: translateY(10px);
    }
    100% {
        transform: translateY(-10px);
    }
}

@media (max-width: 640px) {
    .hero h1 {
        font-size: 32px;
    }
    .hero p {
        font-size: 18px;
    }
}

/*--------------------------------------------------------------
# Soft Shadow Cards (Services, Values, Features)
--------------------------------------------------------------*/
.card,
.service-item,
.feature-box,
.testimonial-item {
    border: 1px solid #f1f5f9 !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03) !important;
    border-radius: 12px !important;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease !important;
    background-color: var(--surface-color);
    height: 100%;
    padding: 40px 30px;
}

.card:hover,
.service-item:hover,
.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08) !important;
}

/*--------------------------------------------------------------
# Services & Values Specific Adjustments
--------------------------------------------------------------*/
.values .card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
}

.services .service-item .icon {
    font-size: 40px;
    color: var(--accent-color);
    margin-bottom: 20px;
}
.services .service-item h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
}

/*--------------------------------------------------------------
# Stats Section
--------------------------------------------------------------*/
.stats {
    padding: 80px 0;
}
.stats .stats-item {
    text-align: center;
}
.stats .stats-item span {
    font-size: 48px;
    display: inline-block;
    font-weight: 800;
}
.stats .stats-item p {
    font-size: 14px;
    letter-spacing: 1px;
}

/*--------------------------------------------------------------
# Clients Section
--------------------------------------------------------------*/
.clients .swiper-slide img {
    transition: 0.3s;
    filter: grayscale(100%);
    opacity: 0.6;
}
.clients .swiper-slide img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/*--------------------------------------------------------------
# Testimonials Section
--------------------------------------------------------------*/
.testimonials .testimonial-item p {
    color: var(--default-color);
    line-height: 1.6;
}
.testimonials .profile h3 {
    color: var(--heading-color);
}
.testimonials .swiper-pagination {
    margin-top: 30px;
}
.testimonials .swiper-pagination-bullet {
    background-color: #cbd5e1;
    opacity: 1;
}
.testimonials .swiper-pagination-bullet-active {
    background-color: var(--accent-color);
}
