/* ===== Custom Fonts ===== */
@font-face {
    font-family: 'Cartridge Bold';
    src: url('../fonts/cartridge-bold.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cartridge Rough';
    src: url('../fonts/cartridge-rough.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cartridge Bold Rough';
    src: url('../fonts/cartridge-bold-rough.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: block;
}

/* ===== CSS Variables ===== */
:root {
    /* Colors */
    --primary-pink: #E72391;
    --primary-blue: #182B8D;
    --text-dark: #1a1a1a;
    --text-light: #666;
    --background: #fafafa;
    --white: #ffffff;
    --border-color: #b4b4b4;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    --font-cartridge: 'Cartridge Rough', sans-serif;
    --font-cartridge-bold: 'Cartridge Bold', sans-serif;
    --font-cartridge-bold-rough: 'Cartridge Bold Rough', sans-serif;
    --font-roboto-flex: 'Roboto Flex', sans-serif;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 13px;
    --radius-lg: 21px;
}

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-pink);
    text-decoration: underline;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-blue);
}

/* ===== Container ===== */
.container {
    max-width: 660px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* ===== Header ===== */
.header {
    padding: 35px 0 30px;
    background: var(--background);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

.logo {
    width: 100px;
    height: 100px;
}

.header-title {
    font-family: var(--font-cartridge-bold);
    font-size: 32px;
    letter-spacing: -0.03em;
    line-height: 1.1em;
    position: relative;
    top: -38px;
}

/* ===== Hero Section ===== */
.hero {
    padding: 10px var(--spacing-md) 40px;
    text-align: center;
}

.hero-title {
    font-family: var(--font-cartridge);
    font-size: clamp(2.5rem, 8vw, 55px);
    font-weight: 400;
    line-height: 1em;
    text-align: center;
}

.title-line {
    display: block;
}

.hero-cta {
    font-family: var(--font-cartridge-bold);
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2em;
    text-align: center;
    margin-top: var(--spacing-lg);
}

/* ===== Services Section ===== */
.services {
    padding: 20px 0 30px;
    background: var(--background);
}

.services-cloud {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-sm);
    max-width: 615px;
    margin: 0 auto;
    position: relative;
}

.service-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background-color: var(--primary-blue);
    color: var(--white);
    font-family: 'Cartridge', sans-serif;
    font-size: 20px;
    border-radius: var(--radius-lg);
    white-space: nowrap;
    transition: transform 0.3s ease;
}

.service-pill:hover {
    transform: translateY(-2px);
}

/* Kept for backward compatibility with grid layout */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-sm) 20px;
    margin-top: var(--spacing-md);
}

.service-item {
    padding: 12px 24px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: var(--radius-lg);
    text-align: center;
    font-family: 'Cartridge', sans-serif;
    font-size: 20px;
    transition: transform 0.3s ease;
}

.service-item:hover {
    transform: translateY(-2px);
}

/* ===== Section Title ===== */
.section-title {
    font-family: var(--font-cartridge-bold);
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2em;
    text-align: center;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
}

/* ===== Clients Section ===== */
.clients {
    padding: var(--spacing-lg) var(--spacing-md) 20px;
    background: var(--background);
    overflow: hidden;
}

/* Marquee animation for scrolling logos */
.clients-marquee {
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgb(0, 0, 0) 12.5%, rgb(0, 0, 0) 87.5%, rgba(0, 0, 0, 0) 100%);
    -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 0) 0%, rgb(0, 0, 0) 12.5%, rgb(0, 0, 0) 87.5%, rgba(0, 0, 0, 0) 100%);
    padding: 10px;
}

.clients-track {
    display: flex;
    gap: 12px;
    animation: scroll 30s linear infinite;
    width: max-content;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.client-card {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    height: 70px;
    padding: 10px;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.client-card-dark {
    background: #000;
}

.client-card-orange {
    background: #f7a100;
}

.client-card-yellow {
    background: #f4b740;
}

/* Grid layout for clients (backward compatibility) */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.client-logo {
    width: 100%;
    height: 80px;
    object-fit: contain;
    padding: var(--spacing-sm);
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.client-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* ===== About Section ===== */
.about {
    padding: var(--spacing-lg) var(--spacing-md) 20px;
    background: var(--background);
}

.about-content {
    max-width: 80%;
    margin: 0 auto;
    font-family: 'Roboto Flex', var(--font-family);
    font-size: 28px;
    line-height: 1.2em;
    text-align: center;
    color: var(--text-dark);
}

.about-content strong {
    font-weight: 700;
}

.about-content a {
    color: var(--primary-pink);
    text-decoration: underline;
}

.about-content a:hover {
    color: #0088ff;
}

/* ===== Contact Section ===== */
.contact {
    padding: 100px var(--spacing-md) 60px;
    background: var(--background);
    text-align: center;
}

.contact-title {
    font-family: var(--font-cartridge-bold);
    font-size: 32px;
    font-weight: 400;
    line-height: 1.2em;
    text-align: center;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
}

.contact-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.contact-photo {
    width: 89px;
    height: 90px;
    border-radius: 80px;
    border: 2px solid var(--primary-blue);
    object-fit: cover;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: center;
}

.contact-name {
    font-family: var(--font-family);
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.5px;
    line-height: 1.4em;
    color: #001122;
    margin-bottom: var(--spacing-xs);
}

.contact-link {
    font-family: var(--font-family);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5em;
    color: #666;
    text-decoration: none;
}

.contact-link:hover {
    color: var(--primary-pink);
    text-decoration: underline;
}

/* ===== Footer ===== */
.footer {
    padding: var(--spacing-md) 0;
    background: var(--text-dark);
    color: var(--white);
    text-align: center;
}

.footer p {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* ===== Responsive Design ===== */
@media (max-width: 659px) {
    .container {
        padding: 0 30px;
    }

    .hero-title {
        width: 101%;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 20px;
    }

    .clients-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: var(--spacing-sm);
    }

    .client-logo {
        height: 60px;
    }

    .about-content {
        font-size: 1.1rem;
        width: 100%;
        max-width: 100%;
    }

    .contact {
        padding: 60px 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }

    .logo {
        width: 80px;
        height: 80px;
    }

    .header-title {
        font-size: 24px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .clients-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-card {
        flex-direction: column;
    }
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero,
.services,
.clients,
.about,
.contact {
    animation: fadeIn 0.6s ease-out;
}

/* ===== Floating Animation for Service Pills ===== */
@keyframes float {
    0%, 100% {
        transform: translate(var(--x, 0), var(--y, 0));
    }
    50% {
        transform: translate(calc(var(--x, 0) * -1), calc(var(--y, 0) * -1));
    }
}

.service-pill {
    animation: float 3s ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}
