/* CSS Reset & Core Structure */
body,
html {
    margin: 0;
    padding: 0;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
    /* Updated background to the new dark color (#262626) */
    background-color: #262626;
}

/* --- Vanta Background Container --- */
#vanta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
}

/* --- Hero Text Custom Styling (Using Lekton for dramatic effect) --- */
.hero-text h1 {
    font-family: 'Raleway', monospace;
    font-weight: 700;
    font-size: 3rem;
    /* Default mobile size */
    letter-spacing: -1px;
    text-transform: none;
}

.hero-text p {
    font-family: 'Raleway', monospace;
    font-weight: 400;
}

/* Adjust size for large screens */
@media (min-width: 1024px) {
    .hero-text h1 {
        font-size: 5.5rem;
        letter-spacing: -3px;
    }
}

/* --- Logo Scroll Animation --- */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Scrolls the entire duplicated set to the left */
}

.logo-scroll-container {
    /* Create space for the duplicated items */
    width: 200%;
    display: flex;
    animation: scroll-left 20s linear infinite;
    /* Control speed here */
}

/* Stop animation on hover */
.logo-track:hover .logo-scroll-container {
    animation-play-state: paused;
}

.logo-item {
    width: calc(100% / 10);
    /* Assuming 10 unique logos */
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* End Logo Scroll Animation */


/* --- Work Card Animation --- */
.work-card {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.work-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.work-card:hover .work-image {
    transform: scale(1.05);
}

.work-image {
    transition: transform 0.5s ease-out;
}

/* --- Bento Grid Layout --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1rem;
    grid-auto-rows: 280px;
}

@media (max-width: 1023px) {
    .bento-grid {
        grid-template-columns: repeat(6, 1fr);
        grid-auto-rows: 250px;
    }
}

@media (max-width: 640px) {
    .bento-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-auto-rows: 220px;
    }
}

.work-card-1 {
    grid-column: span 7;
    grid-row: span 2;
}

.work-card-2 {
    grid-column: span 5;
    grid-row: span 1;
}

.work-card-3 {
    grid-column: span 5;
    grid-row: span 1;
}

.work-card-4 {
    grid-column: span 4;
    grid-row: span 2;
}

.work-card-5 {
    grid-column: span 8;
    grid-row: span 2;
}

@media (max-width: 1023px) {
    .work-card-1 {
        grid-column: span 6;
        grid-row: span 2;
    }

    .work-card-2 {
        grid-column: span 3;
        grid-row: span 1;
    }

    .work-card-3 {
        grid-column: span 3;
        grid-row: span 1;
    }

    .work-card-4 {
        grid-column: span 6;
        grid-row: span 2;
    }

    .work-card-5 {
        grid-column: span 6;
        grid-row: span 2;
    }
}

@media (max-width: 640px) {

    .work-card-1,
    .work-card-2,
    .work-card-3,
    .work-card-4,
    .work-card-5 {
        grid-column: span 4;
        grid-row: span 2;
    }
}

.work-overlay {
    background: linear-gradient(180deg, transparent 0%, rgba(38, 38, 38, 0.8) 70%);
}

/* --- Services Section (Accordion Styles - Minimal Design) --- */
.service-category-box {
    border-bottom: 1px solid #3d3d3d;
    /* Dark gray border line */
    padding: 1.5rem 0;
    /* Vertical padding for breathing room */
    transition: background-color 0.3s ease;
    opacity: 0;
    /* Used for scroll animation */
    transform: translateY(20px);
    /* Used for scroll animation */
    transition: all 0.5s ease-out;
    /* Used for scroll animation */
}

.service-category-box.visible {
    opacity: 1;
    transform: translateY(0);
}

#services-accordion .service-category-box:first-child {
    border-top: 1px solid #3d3d3d;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, padding 0.5s ease-in-out;
    padding-top: 0;
    padding-left: 1rem;
    /* Indent the list slightly */
}

.accordion-content.open {
    max-height: 500px;
    padding-top: 1.5rem;
    padding-bottom: 0.5rem;
}

.service-item {
    position: relative;
    padding-left: 1.5rem;
}

.service-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    opacity: 1;
}

.accordion-icon {
    transition: transform 0.3s ease;
    color: #ffffff;
}

.accordion-icon.rotate {
    transform: rotate(180deg);
    /* Changed to rotate 180 (down arrow becomes up arrow) for a clean look */
}

.how-we-work-container {
    height: 1000px;
}

.how-we-work-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    gap: 0;
}

.image-side {
    width: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.text-side {
    width: 50%;
    padding: 6rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
}

.text-side-inner {
    overflow-y: scroll;
    padding-right: 1rem;
}

.text-side-inner::-webkit-scrollbar {
    width: 4px;
}

.text-side-inner::-webkit-scrollbar-track {
    background: transparent;
}

.text-side-inner::-webkit-scrollbar-thumb {
    background: #366294;
    border-radius: 2px;
}

.step {
    margin-bottom: 8rem;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out forwards;
}

.step:nth-child(1) {
    animation-delay: 0.1s;
}

.step:nth-child(2) {
    animation-delay: 0.3s;
}

.step:nth-child(3) {
    animation-delay: 0.5s;
}

.step:nth-child(4) {
    animation-delay: 0.7s;
}

.step:nth-child(5) {
    animation-delay: 0.9s;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-number {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Raleway', monospace;
    line-height: 1;
    margin-bottom: 1rem;
}

.step-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #366294;
    font-family: 'Raleway', monospace;
}

.step-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    max-width: 400px;
}

@media (max-width: 768px) {
    .how-we-work-container {
        height: auto;
    }

    .how-we-work-sticky {
        position: relative;
        height: auto;
        flex-direction: column;
    }

    .image-side {
        width: 100%;
        height: 300px;
    }

    .text-side {
        width: 100%;
        padding: 3rem 1.5rem;
        overflow: visible;
    }

    .text-side-inner {
        overflow-y: visible;
    }

    .step {
        margin-bottom: 4rem;
    }

    .step-number {
        font-size: 2rem;
    }

    .step-title {
        font-size: 1.5rem;
    }
}