/* Minimal High-Contrast CSS Reset and Variables */
@import url('https://fonts.googleapis.com/css2?family=Figtree:wght@300;400;500;600;700&display=swap');

:root {
    /* Color Palette - Minimal High-Contrast */
    --c-black: #000000;
    --c-dark-charcoal: #111111;
    --c-white: #ffffff;
    --c-off-white: #f6f6f6;

    --accent-primary: #4d68da;
    /* Logo Blue (R: 0.302, G: 0.408, B: 0.855) */
    --accent-hover: #3b52ba;

    /* Typography */
    --font-main: 'Figtree', sans-serif;

    /* Spacing */
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 3rem;
    --space-xl: 4rem;
    --space-xxl: 5rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 9999px;

    /* Transitions */
    --trans-fast: 0.2s ease;
    --trans-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    /* offset for sticky navbar */
}

body {
    font-family: var(--font-main);
    background-color: var(--c-white);
    color: var(--c-dark-charcoal);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography Utility */
h1,
h2,
h3,
h4 {
    line-height: 1.1;
    margin-bottom: var(--space-md);
    font-weight: 700;
    letter-spacing: -1px;
}

p {
    margin-bottom: var(--space-md);
    opacity: 0.8;
}

.lead {
    font-size: 1.5rem;
    font-weight: 500;
}

.accent-text {
    color: var(--accent-primary);
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.mb-5 {
    margin-bottom: 3rem;
}

.mt-5 {
    margin-top: 3rem;
}

.pb-5 {
    padding-bottom: 3rem;
}

/* Sections Block System */
.section {
    padding: var(--space-xxl) 0;
}

.section-dark {
    background-color: var(--c-black);
    color: var(--c-white);
}

.section-light {
    background-color: var(--c-off-white);
    color: var(--c-dark-charcoal);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-family: var(--font-main);
    text-decoration: none;
    cursor: pointer;
    transition: var(--trans-smooth);
    border: 2px solid transparent;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent-primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.btn-outline:hover {
    background: var(--accent-primary);
    color: #fff;
    transform: translateY(-2px);
}

.section-dark .btn-outline {
    border-color: var(--c-white);
    color: var(--c-white);
}

.section-dark .btn-outline:hover {
    background: var(--c-white);
    color: var(--c-black);
}

.btn-sm {
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
}

.w-100 {
    width: 100%;
}

/* Minimal Cards */
.minimal-card {
    background: var(--c-white);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    /* Very subtle shadow */
}

.minimal-card-dark {
    background: var(--c-dark-charcoal);
    box-shadow: none;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Navigation */
.minimal-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: transparent;
    transition: var(--trans-smooth);
    padding: var(--space-md) 0;
    color: var(--c-white);
    /* Assumes hero is dark */
}

.minimal-nav.scrolled {
    background: rgba(0, 0, 0, 0.95);
    padding: var(--space-sm) 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: inherit;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 36px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--space-lg);
    align-items: center;
}

.nav-links a.nav-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-weight: 500;
    transition: var(--trans-fast);
}

.nav-links a.nav-link:hover,
.nav-links a.nav-link.active {
    color: var(--c-white);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.menu-toggle span {
    width: 30px;
    height: 2px;
    background: var(--c-white);
    transition: var(--trans-fast);
}

/* Hero Section */
.hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--c-white);
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: var(--space-md);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 5rem);
    letter-spacing: -2px;
    margin-bottom: var(--space-md);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.2vw, 1.5rem);
    margin-bottom: var(--space-xl);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.7;

    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    padding-bottom: var(--space-xl);
}

/* Product Section */
.section-header {
    text-align: left;
    max-width: 800px;
    margin-bottom: var(--space-xl);
}

.section-header h2 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    letter-spacing: -1.5px;
    line-height: 1.1;
}

.features-wrapper {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.features-wrapper.row-reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-text h3 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -1px;
}

.feature-list {
    list-style: none;
    margin-top: var(--space-md);
}

.feature-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--accent-primary);
}

.feature-visual {
    flex: 1;
    height: 450px;
    min-height: 450px;
    display: flex;
    align-items: stretch;
    justify-content: center;
    transition: transform var(--trans-smooth);
    background-color: var(--c-white);
    overflow: hidden;
    padding: 0;
    /* override .minimal-card padding */
}

.feature-img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    display: block;
    flex-shrink: 0;
}

.placeholder-visual {
    color: var(--c-dark-charcoal);
    font-size: 1.5rem;
    opacity: 0.3;
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-lg);
}

.service-icon {
    color: var(--accent-primary);
    margin-bottom: var(--space-md);
    line-height: 1;
}

.service-card h3 {
    font-size: 1.75rem;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.5px;
}

/* Clients Marquee */
.clients-marquee {
    overflow: hidden;
    position: relative;
    white-space: nowrap;
    padding: var(--space-lg) 0;
}

.clients-marquee::before,
.clients-marquee::after {
    content: "";
    position: absolute;
    top: 0;
    width: 200px;
    height: 100%;
    z-index: 2;
}

.clients-marquee::before {
    left: 0;
    background: linear-gradient(to right, var(--c-off-white) 0%, transparent 100%);
}

.clients-marquee::after {
    right: 0;
    background: linear-gradient(to left, var(--c-off-white) 0%, transparent 100%);
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
}

.client-logo {
    display: inline-block;
    margin: 0 4rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--c-dark-charcoal);
    opacity: 0.3;
    transition: var(--trans-fast);
}

.client-logo:hover {
    opacity: 1;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* About Us */
.about-intro {
    max-width: 820px;
    margin-bottom: var(--space-xl);
    color: var(--c-white);
}

.about-intro h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

.about-tech {
    margin-bottom: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-lg);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: var(--space-md);
}

.tech-tag {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-pill);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--c-white);
    letter-spacing: 0.3px;
    transition: var(--trans-fast);
}

.tech-tag:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.about-tagline {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--c-white);
    opacity: 1;
    margin-bottom: 0;
    letter-spacing: -0.3px;
}

.about-why {
    margin-bottom: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-lg);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-md);
}

.why-card {
    padding: var(--space-lg);
}

.why-icon {
    color: var(--accent-primary);
    margin-bottom: var(--space-md);
    line-height: 1;
}

.why-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.3px;
}

.why-card p {
    margin-bottom: 0;
    opacity: 0.7;
}

.about-serve {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-lg);
}

.serve-inner {
    max-width: 680px;
    padding: var(--space-lg);
}

.serve-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 2rem;
}

.serve-list li {
    position: relative;
    padding-left: 1.25rem;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--c-white);
    opacity: 0.85;
}

.serve-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-primary);
}

/* Contact Form */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    padding: var(--space-lg);
    margin-top: var(--space-md);
}

.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 1.1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: var(--c-off-white);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--c-dark-charcoal);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: border-radius var(--trans-fast);
    resize: vertical;
    max-width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--accent-primary);
}

/* Footer */
.minimal-footer {
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
}

.footer-links {
    display: flex;
    gap: var(--space-md);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--trans-fast);
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--c-white);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-md) 0;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.875rem;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s ease-out, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 992px) {

    .features-wrapper,
    .features-wrapper.row-reverse {
        flex-direction: column;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        text-align: center;
    }

    .stat {
        border-bottom: none;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
    }

    .stat:last-child {
        border-right: none;
    }
}

@media (max-width: 768px) {
    :root {
        --space-lg: 2rem;
        --space-xl: 4rem;
        --space-xxl: 5rem;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--c-black);
        flex-direction: column;
        justify-content: center;
        transition: right var(--trans-smooth);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: var(--space-md);
        font-size: 1.5rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .section-header h2 {
        font-size: 2.5rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .stat {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .stat:last-child {
        border-bottom: none;
    }

    .contact-form {
        padding: var(--space-sm);
    }
}