@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:wght@700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
}

.font-serif {
    font-family: 'Playfair Display', serif;
}

.pattern-dots {
    background-image: radial-gradient(circle at 2px 2px, rgba(255, 255, 255, 0.1) 1px, transparent 0);
    background-size: 40px 40px;
}

.gradient-bg {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
}

/* Animation for infinite scroll */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.animate-scroll {
    animation: scroll 40s linear infinite;
}

.animate-scroll:hover {
    animation-play-state: paused;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.modal-close:hover {
    background-color: #f3f4f6;
    color: #000;
}

/* FAQ Accordion */
.faq-item {
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 0.75rem 0;
    font-weight: 600;
    font-size: 1.rem;
    color: #111827;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s;
}

.faq-question:hover {
    color: #f59e0b;
}

.faq-icon {
    width: 20px;
    height: 20px;
    transition: transform 0.3s;
}

.faq-icon.active {
    transform: rotate(180px);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.6;
}

.faq-answer.active {
    max-height: 500px;
    padding: 0.75rem 0 1rem;
}

/* Expandable services */
.services-grid.expanded {
    max-height: 2000px;
}

.services-grid {
    max-height: 400px;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
}

/* Client logos */
.client-logo {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s;
}

.client-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Utility classes */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: #fbbf24;
    color: #111827;
}

.btn-primary:hover {
    background-color: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(251, 191, 36, 0.3);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}


/* Responsive utilities */
@media (max-width: 768px) {
    .modal-content {
        padding: 1.5rem;
    }

    .services-grid {
        max-height: 600px;
    }

    /* Compact mobile spacing */
    section {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }

    section .max-w-6xl,
    section .max-w-7xl,
    section .max-w-4xl {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* Compact desktop spacing */
@media (min-width: 769px) {
    section {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}

/* Reduce horizontal padding for all sections - very small gap */
section {
    padding-left: 5px !important;
    padding-right: 5px !important;
}