/* style.css */

:root {
    --orange: #FF6700;
    --dark-bg: #110f1a; /* A darker, richer background */
    --text-light: #F0F0F0;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-light);
}

.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    text-align: center;
    padding: 2rem;
}

/* --- THE LIVE GRADIENT CANVAS --- */
#gradient-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Behind content */
}

/* --- HERO CONTENT --- */
.hero-content {
    position: relative;
    z-index: 2; /* Above canvas */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-headline {
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    font-weight: 700;
    line-height: 1.15;
    color: var(--text-light);
}

.hero-headline span {
    display: block;
}

/* --- CTA BUTTONS WITH CURVED FILL ANIMATION --- */
.hero-cta-container {
    display: flex;
    gap: 1.25rem;
    margin-top: 3.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-btn {
    position: relative; /* Required for the pseudo-element */
    padding: 18px 40px; /* A bit more spacious */
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    font-size: 1rem;
    overflow: hidden; /* This is CRITICAL to contain the fill effect */
    transition: color 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 1;
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Primary Button: Orange fill */
.hero-btn.primary {
    background-color: transparent;
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-btn.primary::before {
    background-color: var(--orange);
    /* Start the fill below the button */
    transform: translateY(101%);
}

.hero-btn.primary:hover {
    color: white;
}

.hero-btn.primary:hover::before {
    /* Move the fill into view on hover */
    transform: translateY(0);
}

/* Secondary Button: Reverse fill */
.hero-btn.secondary {
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--dark-bg);
    border: 1px solid transparent;
}

.hero-btn.secondary::before {
    background-color: transparent;
    border: 1px solid var(--orange);
    border-radius: 50px;
    /* This one scales up from the center */
    transform: scale(0);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.hero-btn.secondary:hover {
    color: var(--orange);
    background-color: #000000;
}

.hero-btn.secondary:hover::before {
    transform: scale(1);
    opacity: 1;
}







/* --- General Section Styling --- */
.about-section, .services-section {
    background-color: #f4f4f6; /* The off-white background */
    color: #111827;
    padding: 8rem 2rem;
}

.section-heading {
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 600;
}

/* ================================== */
/* == "WHO WE ARE" (ABOUT) SECTION == */
/* ================================== */
.about-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr; /* Creative two-column layout */
    gap: 4rem;
    align-items: flex-start;
}

.about-right {
    max-width: 600px; /* Constrain text width for readability */
}

.about-text {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.about-btn {
    font-weight: 600;
    color: #111827;
    text-decoration: none;
    position: relative;
    padding-bottom: 5px;
}
/* Cool underline effect */
.about-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}
.about-btn:hover::after {
    transform: scaleX(1);
}



/* ================================== */
/* == REWRITTEN "WHAT WE DO" (SERVICES) SECTION == */
/* ================================== */
.services-section {
    background-color: #f4f4f6;
    color: #111827;
    padding: 8rem 2rem;
}

.services-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
}

.services-right {
    width: 100%;
}

.services-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    border-top: 1px solid #d1d5db;
}

.service-item {
    border-bottom: 1px solid #d1d5db;
}

.service-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 0;
    cursor: pointer;
    width: 100%;
}

.service-number {
    background-color: #111827;
    color: #f4f4f6;
    height: 36px;
    width: 36px;
    min-width: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.3s;
}

.service-name {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 0;
    flex-grow: 1;
}

.service-arrow {
    font-size: 1.75rem;
    color: #111827;
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

/* --- The Dropdown Content --- */
.service-content {
    max-height: 0; /* Hidden by default */
    opacity: 0;
    overflow: hidden;
    padding-left: calc(36px + 1.5rem); /* Align with service name */
    transition: max-height 0.5s cubic-bezier(0.23, 1, 0.32, 1),
                opacity 0.4s ease-out,
                padding-bottom 0.5s ease;
}

.service-content p {
    margin: 0;
    max-width: 60ch; /* Optimal line length for readability */
    line-height: 1.6;
    color: #374151;
}

/* --- ACTIVE (OPEN) STATE --- */
.service-item.active .service-number {
    background-color: var(--orange); /* Highlight with brand color */
}

.service-item.active .service-arrow {
    transform: rotate(90deg); /* Rotate arrow to indicate open state */
}

.service-item.active .service-content {
    max-height: 200px; /* Reveal the content */
    opacity: 1;
    padding-bottom: 2rem; /* Add space when open */
}

/* --- Buttons at the bottom (no changes needed) --- */
.services-cta-container {
    margin-top: 3rem;
    display: flex;
    justify-content: flex-end; /* Right-aligns the content */
    gap: 1rem;
    align-items: center;
}

.services-btn {
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}
.services-btn.primary {
    background-color: var(--orange);
    color: white;
}
.services-btn.primary:hover {
    filter: brightness(110%);
    transform: translateY(-3px);
}


/* --- RESPONSIVE STYLES (no changes needed) --- */
@media (max-width: 768px) {
    .services-wrapper {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .section-heading {
        margin-bottom: 1rem;
    }
    .service-name {
        font-size: 1.5rem;
    }
}

/* --- RESPONSIVE STYLES --- */
@media (max-width: 768px) {
    .about-wrapper, .services-wrapper {
        grid-template-columns: 1fr; /* Stack the columns */
        gap: 2rem;
    }

    .section-heading {
        margin-bottom: 1rem;
    }

    .service-name {
        font-size: 1.5rem;
    }
}




/* projects.css (CSS for the project section without a modal) */

.projects-section {
    padding: 8rem 2rem;
    background-color: #ffffff;
    color: #111827;
}

.projects-container {
    max-width: 1200px;
    margin: 0 auto;
}

.projects-header {
    text-align: center;
    margin-bottom: 4rem;
}
.projects-header .section-heading {
    margin: 0;
    font-size: 2.5rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem 2rem;
}

/* The card is now an 'a' tag */
.project-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.project-image-wrapper {
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 4 / 3.5;
    box-shadow: 0 10px 20px -10px rgba(0,0,0,0.1);
    transition: box-shadow 0.3s ease;
}
.project-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}
.project-card:hover .project-image-wrapper img {
    transform: scale(1.05);
}
.project-card:hover .project-image-wrapper {
    box-shadow: 0 20px 40px -15px rgba(0,0,0,0.2);
}

.project-info {
    padding: 1rem 0.5rem;
}
.project-info h3 {
    font-size: 1.25rem;
    margin: 0;
    transition: color 0.3s ease;
}
.project-info p {
    color: #6b7280;
    margin-top: 0.25rem;
}
.project-card:hover .project-info h3 {
    color: var(--orange);
}

.projects-footer {
    text-align: center;
    margin-top: 4rem;
}
.show-more-btn {
    background-color: var(--orange);
    color: white;
    padding: 14px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}
.show-more-btn:hover {
    filter: brightness(110%);
}

/* --- RESPONSIVE STYLES --- */
@media (max-width: 992px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}





/* ================================== */
/* == FINAL "TRUSTED BY" SECTION == */
/* ================================== */
.trusted-by-section {
    padding: 8rem 0; /* No horizontal padding on the section itself */
    background-color: #f4f4f6;
    color: #111827;
}

.trusted-by-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.trusted-by-container .section-heading {
    margin-bottom: 4rem;
    padding: 0 2rem; /* Add padding here to keep text centered */
}

/* The scroller container */
.logo-scroller {
    overflow: hidden;
    /* This creates the fade-out effect on the edges for a seamless look */
    -webkit-mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
    mask-image: linear-gradient(to right, transparent, black 20%, black 80%, transparent);
}

.logo-list {
    display: flex;
    gap: 2.5rem;
    padding: 1rem 0;
    width: max-content; /* Allow the list to be as wide as its content */
    /* The animation magic! */
    animation: scroll 40s linear infinite;
}

/* Pause animation on hover for better UX */
.logo-scroller:hover .logo-list {
    animation-play-state: paused;
}

/* The orange rectangle card */
.logo-card {
    width: 200px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border: 2px solid var(--orange);
    border-radius: 16px;
    background-color: white;
    box-shadow: 0 4px 10px -5px rgba(0,0,0,0.05);
}

.logo-card img {
    max-width: 100%;
    max-height: 100%;
    /* To create a uniform, professional look */
    filter: grayscale(100%) opacity(70%);
    transition: filter 0.3s ease;
}

/* Bring logo to full color on hover */
.logo-item:hover .logo-card img {
    filter: grayscale(0%) opacity(100%);
}

/* The CSS animation keyframes */
@keyframes scroll {
    from {
        transform: translateX(0);
    }
    to {

        transform: translateX(calc(-50% - 1.25rem)); /* Half the width + half the gap */
    }
}