/* ==========================================================================
   Base Styles & Fonts
   ========================================================================== */

/* Skip link for accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.sr-only:focus {
    position: fixed;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 9999;
    width: auto;
    height: auto;
    padding: 0.5rem 1rem;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background-color: var(--yellow);
    color: black;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: bold;
}

/* @import url('https://fonts.googleapis.com/css2?family=Ginger:ital,wght@0,100..900;1,100..900&display=swap'); */

:root {
    --yellow: #FCB600;
    --white: #fff;
}

/* Roaster Font Face */
@font-face {
    font-family: 'Ginger';
    src: 
        url('../fonts/Ginger.woff') format('woff'),
        url('../fonts/Ginger.ttf') format('truetype'),
        url('../fonts/Ginger.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Roaster';
    src: 
        url('../fonts/roaster.regular.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {

    h1,
    h2,
    h3,
    h5 {
        font-family: 'Roaster', sans-serif;
    }

    p,
    span,
    li,
    select,
    input,
    textarea {
        font-family: 'Poppins', sans-serif;
    }

    box-sizing: border-box;
}

.label .title {
    font-family: 'Roaster', sans-serif;
}

#synchronization {
    font-family: 'Roaster', sans-serif;
}

#start-project {
    font-family: 'Poppins', sans-serif;
}

#menu-button {
    font-family: 'Roaster', sans-serif;
}


/* Hero section styling - responsive positioning */
.herosection {
    position: relative; /* Changed from fixed to relative for responsive design */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 1;
}

/* Hero video container - can be hidden with opacity */
.herosection-bg-vedio {
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

/* Section-1 positioning - above hero */
.section-1 {
    position: relative;
    z-index: 10;
}

/* Section-1 video styles */
.section1-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Section-1 container styles */
.section-1-containter {
    position: relative;
    z-index: 10;
}

/* Section-1 content styles */
.section-1-containter-left {
    position: relative;
    z-index: 10;
}

/* Rocket image styles */
.section-1 img[alt="paper-plane"] {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    transition: all 0.3s ease;
}

/* Section-2 positioning - normal scroll behind section-1 */
.section-2 {
    position: relative;
    z-index: 1; /* Lower than homepage */
    background: #000;
    background-image: url('../images/bg-grid.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 0;
}

/* Ensure smooth transition between sections with proper z-index layering */
.section-3 {
    position: relative;
    z-index: 3;
    background: #fff !important;
    min-height: 100vh;
    width: 100%;
}

/* Mobile responsive services section */
@media (max-width: 767px) {
    .section-3 {
        min-height: auto !important;
        padding: 1rem 1rem !important;
    }
    
    .section-3-containter {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .section-3-containter-header {
        margin-bottom: 2rem !important;
    }
    
    .section-3-containter-header-content {
        width: 100% !important;
    }
    
    .section-3-containter-header h1 {
        font-size: 2rem !important;
    }
    
    .section-3-containter-header p {
        font-size: 1rem !important;
        margin-bottom: 0;
    }
    
    .section-3-containter-content {
        flex-direction: column !important;
        gap: 2rem !important;
    }
    
    .section-3-containter-content-left {
        display: none !important;
    }
    
    .section-3-containter-content-right {
        width: 100% !important;
        height: auto !important;
        padding: 0 !important;
    }
    
    .services-cards-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
        width: 100% !important;
    }
    
    .service-card {
        width: 100% !important;
        height: auto !important;
        min-height: 200px !important;
        margin: 0 !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
    }
    
    .service-card:hover {
        transform: translateY(-2px) !important;
    }
    
    .card-face {
        width: 100% !important;
        height: 100% !important;
    }

    /* Ensure service cards use background images on mobile */
    .card-front {
        background-size: contain !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
    }
    .card-front .full-card-image { display: none !important; }
    
    .card-front {
        border-radius: 12px !important;
        padding: 2rem !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 1rem !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
    }
    
    .card-front:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
    }
    
    .card-front {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 100% !important;
    }
    
    .full-card-image {
        width: 90% !important;
        height: 90% !important;
        object-fit: contain !important;
        max-width: 200px !important;
        max-height: 200px !important;
    }
    
    .card-back {
        background: white !important;
        border-radius: 12px !important;
        padding: 2rem !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    }
    
    .card-back-content p {
        font-size: 1rem !important;
        line-height: 1.5 !important;
        margin-bottom: 1.5rem !important;
    }
    
    .service-list {
        margin-bottom: 1.5rem !important;
    }
    
    .service-list li {
        font-size: 0.9rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .more-button {
        font-size: 1rem !important;
        padding: 0.75rem 1.5rem !important;
    }

    video {
        object-fit: cover !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .section-3 {
        min-height: auto !important;
        padding: 1rem 1rem !important;
    }
    
    .section-3-containter {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .section-3-containter-header {
        margin-bottom: 2rem !important;
    }
    
    .section-3-containter-header-content {
        width: 100% !important;
    }
    
    .section-3-containter-header h1 {
        font-size: 2.5rem !important;
    }
    
    .section-3-containter-header p {
        font-size: 1.125rem !important;
    }
    
    .section-3-containter-content {
        flex-direction: column !important;
        gap: 2rem !important;
    }
    
    .section-3-containter-content-left {
        display: none !important;
    }
    
    .section-3-containter-content-right {
        width: 100% !important;
        height: auto !important;
        padding: 0 !important;
    }
    
    .services-cards-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem !important;
        width: 100% !important;
    }
    
    .service-card {
        width: 100% !important;
        height: auto !important;
        min-height: 220px !important;
        margin: 0 !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
    }
    
    .service-card:hover {
        transform: translateY(-2px) !important;
    }
    
    .card-face {
        width: 100% !important;
        height: 100% !important;
    }
    
    .card-front {
        background-color: #f5f5f5 !important;
        border-radius: 12px !important;
        padding: 2.5rem !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 1.5rem !important;
        cursor: pointer !important;
        transition: all 0.3s ease !important;
    }
    
    .card-front:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
    }
    
    .card-front {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 100% !important;
    }
    
    .full-card-image {
        width: 95% !important;
        height: 95% !important;
        object-fit: contain !important;
        max-width: 250px !important;
        max-height: 250px !important;
    }
    
    .card-back {
        background: white !important;
        border-radius: 12px !important;
        padding: 2.5rem !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
    }
    
    .card-back-content p {
        font-size: 1.125rem !important;
        line-height: 1.5 !important;
        margin-bottom: 1.5rem !important;
    }
    
    .service-list {
        margin-bottom: 1.5rem !important;
    }
    
    .service-list li {
        font-size: 1rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .more-button {
        font-size: 1.125rem !important;
        padding: 0.875rem 1.75rem !important;
    }
}

@media (min-width: 1024px) {
    .section-3 {
        min-height: 100vh !important;
        padding: 2rem 0 !important;
    }
    .section-3-containter {
        width: 80% !important;
        max-width: 1280px !important;
        margin: 0 auto !important;
        padding: 0 !important;
    }
    .section-3-containter-content {
        flex-direction: row !important;
        align-items: stretch !important;
        gap: 2rem !important;
    }
    .section-3-containter-content-left {
        display: flex !important;
    }
    .section-3-containter-content-right {
        width: 55% !important;
        height: auto !important;
        padding: 2rem !important;
    }
    .services-cards-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        grid-auto-rows: minmax(260px, 1fr) !important;
        gap: 1.25rem !important;
        height: auto !important;
    }
    .service-card {
        width: 100% !important;
        height: 100% !important;
        min-height: 260px !important;
    }
}

.section-3-containter {
    background-image: url('../images/growth-line.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
}

@media (max-width: 767px) {
    .section-5 {
        height: 45dvh !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .section-5-container {
        padding: 1rem 0 0 0 !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        margin: 0 !important;
    }

    .section-5-header {
        margin-bottom: 0.75rem !important;
        padding: 0 1rem !important;
        flex-shrink: 0 !important;
        gap: 0.5rem !important;
    }

    .section-5-header h1 {
        font-size: 1.875rem !important;
        margin: 0.3rem 0 !important;
        line-height: 1.2 !important;
    }

    .section-5-header p {
        font-size: 0.75rem !important;
        line-height: 1.4 !important;
        max-width: 100% !important;
        padding: 0 !important;
    }

    .projects-container {
        height: 45dvh !important;
        flex-grow: 1 !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -ms-overflow-style: none !important;
        scrollbar-width: none !important;
    }

    .projects-container::-webkit-scrollbar {
        display: none !important;
    }

    .project-column {
        width: 160px !important;
        height: 70% !important;
        gap: 0.75rem !important;
    }

    .project-card {
        border-radius: 8px !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .section-5 {
        height: 70dvh !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .section-5-container {
        padding: 2rem 0 !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        margin: 0 !important;
    }

    .section-5-header {
        margin-bottom: 1rem !important;
        padding: 0 2rem !important;
        gap: 1rem !important;
    }

    .section-5-header h1 {
        font-size: 2.25rem !important; /* 36px */
        line-height: 1.2 !important;
    }

    .section-5-header p {
        font-size: 0.6rem !important; /* 16px */
        line-height: 1.5 !important;
        max-width: 100% !important;
    }

    .projects-container {
        height: calc(70dvh - 200px) !important; /* Adjust for header */
        flex-grow: 1 !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -ms-overflow-style: none !important;
        scrollbar-width: none !important;
    }

    .projects-container::-webkit-scrollbar {
        display: none !important;
    }

    /* Reduce card width for tablet */
    .project-column {
        width: 180px !important; /* Further reduced from 220px */
        gap: 1rem !important;
    }

    .project-card {
        border-radius: 10px !important;
    }
}

@media (min-width: 1024px) {
    .section-5 {
        height: auto !important;
        min-height: 100vh !important;
    }

    .section-5-container {
        padding: 3rem 0 !important;
    }

    .section-5-header {
        margin-bottom: 4rem !important;
    }

    .section-5-header h1 {
        font-size: 2.5rem !important;
    }

    .section-5-header p {
        font-size: 1.125rem !important;
    }

    .projects-container {
        height: 600px !important;
    }

    .project-column {
        width: 220px !important;
    }
}

@media (max-width: 767px) {
    .section-6 {
        height: 50dvh !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .section-6-container {
        padding: 1.5rem 0 !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        margin: 0 !important;
    }

    .section-6-header {
        margin-bottom: 1rem !important;
        padding: 0 1rem !important;
        flex-shrink: 0 !important;
        gap: 0.5rem !important;
    }

    .section-6-header h1 {
        font-size: 1.875rem !important; /* 24px */
        margin: 0.25rem 0 !important;
        line-height: 1.2 !important;
    }

    .section-6-header p {
        font-size: 0.75rem !important; /* 12px */
        line-height: 1.3 !important;
        max-width: 100% !important;
        padding: 0 !important;
    }

    .clients-wrapper {
        height: calc(50dvh - 120px) !important; /* Adjust for header */
        flex-grow: 1 !important;
        overflow: hidden !important;
    }

    .clients-container {
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0.5rem !important;
    }

    .clients-row {
        height: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.75rem !important;
        padding: 0.5rem 0 !important;
    }

    .clients-row img {
        max-width: 60px !important;
        max-height: 30px !important;
        object-fit: contain !important;
    }
}

/* Tablet Responsive for Clientele Section */
@media (min-width: 768px) and (max-width: 1023px) {
    .section-6 {
        height: 60dvh !important; /* Moderate height for tablet */
        padding: 0 !important;
        margin: 0 !important;
    }

    .section-6-container {
        padding: 2rem 0 !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        margin: 0 !important;
    }

    .section-6-header {
        margin-bottom: 1.5rem !important;
        padding: 0 2rem !important;
        gap: 1rem !important;
    }

    .section-6-header h1 {
        font-size: 2rem !important; /* 32px */
        line-height: 1.2 !important;
    }

    .section-6-header p {
        font-size: 0.875rem !important; /* 14px */
        line-height: 1.4 !important;
        max-width: 100% !important;
    }

    .clients-wrapper {
        height: calc(60dvh - 140px) !important; /* Adjust for header */
        flex-grow: 1 !important;
        overflow: hidden !important;
    }

    .clients-container {
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
    }

    .clients-row {
        height: auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 1rem !important;
        padding: 0.75rem 0 !important;
    }

    .clients-row img {
        max-width: 80px !important;
        max-height: 40px !important;
        object-fit: contain !important;
    }
}
/* 
@media (min-width: 1024px) {
    .section-6 {
        height: 100vh !important;
    }

    .section-6-container {
        padding: 3rem 0 !important;
    }

    .section-6-header {
        margin-bottom: 2rem !important;
    }

    .section-6-header h1 {
        font-size: 3.75rem !important;
    }

    .section-6-header p {
        font-size: 1.125rem !important;
    }

    .clients-wrapper {
        height: 60vh !important;
        flex-grow: 0 !important;
        display: flex !important;
        align-items: stretch !important;
    }

    .clients-container {
        height: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        gap: 0 !important;
        width: 100% !important;
    }

    .clients-row {
        flex: 1 1 33% !important;
        min-height: 90px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 2rem !important;
        padding: 0.5rem 0 !important;
        animation: scroll 30s linear infinite !important;
        white-space: nowrap !important;
        overflow: visible !important;
    }

    .clients-row-reverse {
        animation: scroll-reverse 30s linear infinite !important;
    }

    .clients-row:hover {
        animation-play-state: paused !important;
    }

    .clients-row-reverse:hover {
        animation-play-state: paused !important;
    }

    .clients-row img {
        max-width: 120px !important;
        max-height: 60px !important;
        object-fit: contain !important;
        display: block !important;
        opacity: 1 !important;
    }
} */

@media (max-width: 767px) {
    .questions {
        background: #000000 !important;
        min-height: 100vh !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        padding: 2rem 1rem !important;
        margin: 0 !important;
    }

    .questions-header {
        text-align: center !important;
        margin-bottom: 2rem !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding: 0 !important;
    }

    .questions-title {
        font-size: 1.5rem !important; /* 24px */
        font-weight: 400 !important;
        color: #ffffff !important;
        margin-bottom: 0.5rem !important;
        font-family: 'serif', Georgia, serif !important;
    }

    .questions-accent {
        width: 60px !important;
        height: 3px !important;
        background: #FCB600 !important;
        margin: 0 auto !important;
    }

    .faq-container {
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 0 !important;
    }

    .faq-item {
        background: #1a1a1a !important; /* Dark cards like desktop */
        border-radius: 12px !important;
        margin-bottom: 16px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
        overflow: hidden !important;
    }

    .faq-item:hover {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
    }

    .faq-question {
        padding: 16px 20px !important;
        cursor: pointer !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        border: none !important;
        background: transparent !important;
        width: 100% !important;
        transition: background 0.3s ease !important;
    }

    .faq-question:hover {
        background: #333 !important;
    }

    .faq-question-text {
        font-size: 0.875rem !important; /* 14px */
        font-weight: 600 !important;
        color: #ffffff !important;
        line-height: 1.4 !important;
        margin: 0 !important;
    }

    .faq-answer {
        padding: 0 20px !important;
        max-height: 0 !important;
        overflow: hidden !important;
        background: #1a1a1a !important;
        opacity: 0 !important;
        transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease !important;
    }

    .faq-item.active .faq-answer {
        padding: 0 20px 20px 20px !important;
        max-height: 500px !important;
        opacity: 1 !important;
    }

    .faq-answer-text {
        font-size: 0.75rem !important;
        color: #a0a0a0 !important;
        line-height: 1.4 !important;
        margin: 0 !important;
        padding-top: 12px !important;
    }

    .faq-icon {
        width: 24px !important;
        height: 24px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #333 !important;
        border-radius: 50% !important;
        position: relative !important;
        transition: all 0.3s ease !important;
    }

    .faq-icon:hover {
        background: #555 !important;
        transform: scale(1.05) !important;
    }

    .faq-icon.minus {
        background: #FCB600 !important;
    }

    .faq-icon.minus:hover {
        background: #e6a500 !important;
    }

    .faq-icon-plus,
    .faq-icon-minus {
        position: absolute;
        background: #ffffff;
        transition: opacity 0.3s ease;
    }

    .faq-icon-plus {
        width: 12px;
        height: 2px;
        border-radius: 1px;
    }

    .faq-icon-plus::after {
        content: '';
        position: absolute;
        width: 2px;
        height: 12px;
        background: #ffffff;
        top: -5px;
        left: 5px;
    }

    .faq-icon-minus {
        width: 12px;
        height: 2px;
        border-radius: 1px;
        opacity: 0;
    }

    .faq-icon.minus .faq-icon-plus {
        opacity: 0;
    }

    .faq-icon.minus .faq-icon-minus {
        opacity: 1;
    }
}

/* Tablet Responsive for Questions Section */
@media (min-width: 768px) and (max-width: 1023px) {
    .questions {
        background: #000000 !important; /* Dark background like desktop */
        min-height: 100vh !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        padding: 2.5rem 2rem !important;
        margin: 0 !important;
    }

    .questions-header {
        text-align: center !important;
        margin-bottom: 2.5rem !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding: 0 !important;
    }

    .questions-title {
        font-size: 2rem !important; /* 32px */
        font-weight: 400 !important;
        color: #ffffff !important;
        margin-bottom: 0.75rem !important;
        font-family: 'serif', Georgia, serif !important;
    }

    .questions-accent {
        width: 80px !important;
        height: 3px !important;
        background: #FCB600 !important;
        margin: 0 auto !important;
    }

    .faq-container {
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 0 !important;
    }

    .faq-item {
        background: #1a1a1a !important; /* Dark cards like desktop */
        border-radius: 12px !important;
        margin-bottom: 20px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
        overflow: hidden !important;
    }

    .faq-item:hover {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
    }

    .faq-question {
        padding: 20px 24px !important;
        cursor: pointer !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        border: none !important;
        background: transparent !important;
        width: 100% !important;
        transition: background 0.3s ease !important;
    }

    .faq-question:hover {
        background: #333 !important;
    }

    .faq-question-text {
        font-size: 1rem !important; /* 16px */
        font-weight: 600 !important;
        color: #ffffff !important;
        line-height: 1.4 !important;
        margin: 0 !important;
    }

    .faq-answer {
        padding: 0 24px !important;
        max-height: 0 !important;
        overflow: hidden !important;
        background: #1a1a1a !important;
        opacity: 0 !important;
        transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease !important;
    }

    .faq-item.active .faq-answer {
        padding: 0 24px 24px 24px !important;
        max-height: 500px !important;
        opacity: 1 !important;
    }

    .faq-answer-text {
        font-size: 0.875rem !important; /* 14px */
        color: #a0a0a0 !important;
        line-height: 1.5 !important;
        margin: 0 !important;
        padding-top: 16px !important;
    }

    .faq-icon {
        width: 28px !important;
        height: 28px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #333 !important;
        border-radius: 50% !important;
        position: relative !important;
        transition: all 0.3s ease !important;
    }

    .faq-icon:hover {
        background: #555 !important;
        transform: scale(1.05) !important;
    }

    .faq-icon.minus {
        background: #FCB600 !important;
    }

    .faq-icon.minus:hover {
        background: #e6a500 !important;
    }

    .faq-icon-plus,
    .faq-icon-minus {
        position: absolute;
        background: #ffffff;
        transition: opacity 0.3s ease;
    }

    .faq-icon-plus {
        width: 14px;
        height: 2px;
        border-radius: 1px;
    }

    .faq-icon-plus::after {
        content: '';
        position: absolute;
        width: 2px;
        height: 14px;
        background: #ffffff;
        top: -6px;
        left: 6px;
    }

    .faq-icon-minus {
        width: 14px;
        height: 2px;
        border-radius: 1px;
        opacity: 0;
    }

    .faq-icon.minus .faq-icon-plus {
        opacity: 0;
    }

    .faq-icon.minus .faq-icon-minus {
        opacity: 1;
    }
}

/* Desktop - Maintain Original Functionality */
@media (min-width: 1024px) {
    .questions {
        background: #000000 !important;
        min-height: 100vh !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .questions-header {
        text-align: center !important;
        margin-bottom: 60px !important;
        max-width: 800px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding: 0 20px !important;
    }

    .questions-title {
        font-size: 3rem !important;
        font-weight: 400 !important;
        color: #ffffff !important;
        margin-bottom: 20px !important;
        font-family: 'serif', Georgia, serif !important;
    }

    .questions-accent {
        width: 60px !important;
        height: 3px !important;
        background: #FCB600 !important;
        margin: 0 auto !important;
    }

    .faq-container {
        max-width: 800px !important;
        margin: 0 auto !important;
        padding: 0 20px !important;
    }

    .faq-item {
        background: #1a1a1a !important;
        border-radius: 12px !important;
        margin-bottom: 16px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
        overflow: hidden !important;
    }

    .faq-item:hover {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
    }

    .faq-question {
        padding: 20px 24px !important;
        cursor: pointer !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        border: none !important;
        background: transparent !important;
        width: 100% !important;
        transition: background 0.3s ease !important;
    }

    .faq-question:hover {
        background: #333 !important;
    }

    .faq-question-text {
        font-size: 1.2rem !important;
        font-weight: 600 !important;
        color: #ffffff !important;
        line-height: 1.4 !important;
        margin: 0 !important;
    }

    .faq-answer {
        padding: 0 24px !important;
        max-height: 0 !important;
        overflow: hidden !important;
        background: #1a1a1a !important;
        opacity: 0 !important;
        transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease !important;
    }

    .faq-item.active .faq-answer {
        padding: 0 24px 24px 24px !important;
        max-height: 500px !important;
        opacity: 1 !important;
    }

    .faq-answer-text {
        font-size: 1rem !important;
        color: #a0a0a0 !important;
        line-height: 1.6 !important;
        margin: 0 !important;
        padding-top: 16px !important;
    }

    .faq-icon {
        width: 32px !important;
        height: 32px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: #333 !important;
        border-radius: 50% !important;
        position: relative !important;
        transition: all 0.3s ease !important;
    }

    .faq-icon:hover {
        background: #555 !important;
        transform: scale(1.05) !important;
    }

    .faq-icon.minus {
        background: #FCB600 !important;
    }

    .faq-icon.minus:hover {
        background: #e6a500 !important;
    }
}

@media (max-width: 767px) {
    .section-7 {
        height: auto !important; /* Auto height for mobile */
        padding: 0 !important;
        margin: 0 !important;
    }

    .section-7-container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 1rem !important;
        flex-direction: column !important;
    }

    .section-7-header {
        margin-bottom: 1.5rem !important;
        padding: 0 1rem !important;
        text-align: center !important;
    }

    .header-text {
        font-size: 1.5rem !important; /* 24px */
        line-height: 1.2 !important;
        margin-bottom: 0.5rem !important;
    }

    .amazing {
        color: #FCB600 !important;
    }

    .form-subtitle {
        font-size: 0.625rem !important; /* 14px */
        line-height: 1.4 !important;
        color: #ccc !important;
        max-width: 100% !important;
    }

    .section-7-content {
        width: 100% !important;
        height: auto !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .start-project {
        width: 100% !important;
        max-width: 400px !important;
    }

    .start-project .bg-white {
        padding: 1rem !important;
        margin: 0 !important;
    }

    #start-project {
        font-size: 1.5rem !important; /* 24px */
        margin-bottom: 1rem !important;
    }

    .form-group {
        margin-bottom: 0 !important;
    }

    .form-group.flex {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }

    .form-group .w-1\/2 {
        width: 100% !important;
    }

    .form-group label {
        font-size: 0.875rem !important; /* 14px */
        margin-bottom: 0.5rem !important;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.5rem !important;
        font-size: 0.875rem !important; /* 14px */
        border-radius: 8px !important;
    }

    .form-group textarea {
        min-height: 80px !important;
    }

    #submit-button {
        padding: 0.875rem 1.5rem !important;
        font-size: 0.875rem !important; /* 14px */
        border-radius: 8px !important;
    }

    .form-group p {
        font-size: 0.75rem !important; /* 12px */
    }
}

/* Tablet Responsive for Contact Section */
@media (min-width: 768px) and (max-width: 1023px) {
    .section-7 {
        height: auto !important; /* Auto height for tablet */
        padding: 3rem 0 !important;
        margin: 0 !important;
    }

    .section-7-container {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 2rem !important;
        flex-direction: column !important;
    }

    .section-7-header {
        margin-bottom: 2rem !important;
        padding: 0 2rem !important;
        text-align: center !important;
    }

    .header-text {
        font-size: 2rem !important; /* 32px */
        line-height: 1.2 !important;
        margin-bottom: 0.75rem !important;
    }

    .amazing {
        color: #FCB600 !important;
    }

    .form-subtitle {
        font-size: 1rem !important; /* 16px */
        line-height: 1.5 !important;
        color: #ccc !important;
        max-width: 100% !important;
    }

    .section-7-content {
        width: 100% !important;
        height: auto !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .start-project {
        width: 80% !important;
        max-width: 500px !important;
        height: auto !important;
    }

    .start-project .bg-white {
        padding: 2rem !important;
        margin: 0 !important;
    }

    #start-project {
        font-size: 2rem !important; /* 32px */
        margin-bottom: 2rem !important;
    }

    .form-group {
        margin-bottom: 1.25rem !important;
    }

    .form-group.flex {
        flex-direction: row !important;
        gap: 1rem !important;
    }

    .form-group .w-1\/2 {
        width: 50% !important;
    }

    .form-group label {
        font-size: 1rem !important; /* 16px */
        margin-bottom: 0.75rem !important;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.75rem !important;
        font-size: 1rem !important; /* 16px */
        border-radius: 10px !important;
    }

    .form-group textarea {
        min-height: 100px !important;
    }

    #submit-button {
        padding: 1rem 2rem !important;
        font-size: 1rem !important; /* 16px */
        border-radius: 10px !important;
    }

    .form-group p {
        font-size: 0.875rem !important; /* 14px */
    }
}

/* Mobile Responsive for Footer Section */
@media (max-width: 767px) {
    .section-8 {
        padding: 0 !important;
        margin: 0 !important;
        height: auto !important;
    }

    .footer-main {
        padding: 1rem 1rem 0.5rem 1rem !important; /* reduce bottom padding */
        gap: 0 !important;
    }

    .das-logo {
        height: 150px !important; /* smaller logo */
        margin-bottom: 0.5rem !important;
    }

    .das-logo img {
        max-width: 80vw !important;
        max-height: 200px !important;
        object-fit: contain !important;
    }

    .contact-info {
        width: 100% !important;
    }

    .contact-info .space-y-4 {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 0.25rem 0.75rem !important; /* row-gap col-gap */
        align-items: center !important;
        justify-content: flex-start !important;
        padding: 0 !important;
        margin: 0 !important;
        margin-bottom: 25px !important;
    }

    .contact-info .flex {
        flex-direction: row !important;
        align-items: center !important;
    }

    .contact-icon {
        width: 20px !important;
        height: 20px !important;
        flex-shrink: 0 !important;
    }

    .contact-icon svg {
        width: 12px !important;
        height: 12px !important;
    }

    .contact-info span {
        font-size: 0.875rem !important; /* 14px */
        line-height: 1.4 !important;
    }

    .footer-bottom {
        padding: 0.5rem !important; /* more compact bottom bar */
    }

    .footer-bottom .container {
        flex-direction: column !important;
        gap: 1rem !important;
        padding: 0 1rem !important;
    }

    .copyright p {
        font-size: 0.75rem !important; /* 12px */
        text-align: center !important;
    }

    .social-media {
        justify-content: center !important;
        gap: 0.75rem !important;
    }

    .social-icon {
        width: 32px !important;
        height: 32px !important;
    }

    .social-icon svg {
        width: 16px !important;
        height: 16px !important;
    }

    /* Ensure contact rows stack neatly and align left */
    .contact-info .space-y-4 {
        width: 100% !important;
        align-items: center !important;
    }
    .contact-info .space-y-4 > div {
        width: auto !important;
        max-width: 340px !important;
        display: flex !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        gap: 0.5rem !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    .contact-info .space-y-4 > div.flex.items-start {
        align-items: flex-start !important;
    }
    .contact-info .space-y-4 span {
        text-align: left !important;
        white-space: normal !important;
        word-break: break-word !important;
    }
}

/* Tablet Responsive for Footer Section */
@media (min-width: 768px) and (max-width: 1023px) {
    .section-8 {
        padding: 0 !important;
        margin: 0 !important;
    }

    .footer-main {
        padding: 3rem 2rem !important;
        gap: 1.5rem !important;
    }

    .das-logo {
        height: 250px !important;
        margin-bottom: 1.5rem !important;
    }

    .das-logo img {
        max-width: 70vw !important;
        max-height: 250px !important;
        object-fit: contain !important;
    }

    .contact-info {
        width: 100% !important;
    }

    .contact-info .space-y-4 {
        flex-direction: column !important;
        gap: 1.25rem !important;
        align-items: flex-start !important;
    }

    .contact-info .flex {
        flex-direction: row !important;
        align-items: center !important;
        gap: 1rem !important;
    }

    .contact-icon {
        width: 22px !important;
        height: 22px !important;
        flex-shrink: 0 !important;
    }

    .contact-icon svg {
        width: 14px !important;
        height: 14px !important;
    }

    .contact-info span {
        font-size: 1rem !important; /* 16px */
        line-height: 1.5 !important;
    }

    .footer-bottom {
        padding: 1.5rem !important;
    }

    .footer-bottom .container {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0 2rem !important;
    }

    .copyright p {
        font-size: 0.875rem !important; /* 14px */
    }

    .social-media {
        gap: 1rem !important;
    }

    .social-icon {
        width: 36px !important;
        height: 36px !important;
    }

    .social-icon svg {
        width: 18px !important;
        height: 18px !important;
    }

    /* Tidy tablet contact rows and center the block */
    .contact-info .space-y-4 {
        width: 100% !important;
        align-items: center !important;
        justify-content: flex-start !important;
    }
    .contact-info .space-y-4 > div {
        width: 85% !important;
        max-width: 600px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 1rem !important;
    }
    .contact-info .space-y-4 > div.flex.items-start {
        align-items: flex-start !important;
    }
}

@media (min-width: 1024px) {
    .section-7 {
        height: auto !important;
        padding: 2rem 0 !important;
    }

    .section-7-container {
        width: 90% !important;
        max-width: 1200px !important;
        margin: 0 auto !important;
        padding: 2rem 0 !important;
    }

    .section-7-header {
        margin-bottom: 3rem !important;
        text-align: center !important;
    }

    .header-text {
        font-size: 2.5rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1rem !important;
    }

    .amazing {
        color: #FCB600 !important;
    }

    .form-subtitle {
        font-size: 1.125rem !important;
        line-height: 1.6 !important;
        color: #ccc !important;
        max-width: 600px !important;
    }

    .section-7-content {
        width: 100% !important;
        height: auto !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .start-project {
        width: 50% !important;
        max-width: 600px !important;
    }

    .start-project .bg-white {
        padding: 1.5rem !important;
        margin: 0 !important;
    }

    #start-project {
        font-size: 2.5rem !important;
        margin-bottom: 1rem !important;
    }

    .form-group {
        margin-bottom: 1.25rem !important;
    }

    .form-group.flex {
        flex-direction: row !important;
    }

    .form-group .w-1\/2 {
        width: 50% !important;
    }

    .form-group label {
        font-size: 1.125rem !important;
        margin-bottom: 0.75rem !important;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.75rem !important;
        font-size: 1.125rem !important;
        border-radius: 12px !important;
    }

    .form-group textarea {
        min-height: 150px !important;
    }

    #submit-button {
        padding: 1.25rem 2.5rem !important;
        font-size: 1.125rem !important;
        border-radius: 12px !important;
    }

    .form-group p {
        font-size: 1rem !important;
    }
}

.section-4 {
    position: relative;
    z-index: 4;
    background: #fff;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2.5rem;
    padding: 4rem;
    margin: 0 auto;
    max-width: 90%;
    min-height: 80vh;
    padding-bottom: 0;
    transition: padding-bottom 0.3s ease;
}

.section-4 #section4-text {
    width: 33.33%;
}

.section-4 #section4-text .client-underline {
    height: 2px;
    width: 100px;
    background-color: #FCB600;
    margin-bottom: 1rem;
}

.section-4 #section4-text h1 {
    font-size: 2.625rem;
    color: black;
    font-weight: 300;
    margin-bottom: 1.5rem;
}

.section-4 #section4-text p {
    color: #4A5565;
    width: 80%;
    font-size: 1.125rem;
    line-height: 1.5;
}

.section-4 #section4-cards {
    width: 66.67%;
    display: flex;
    gap: 1rem;
}

.section-4 .phase-card {
    width: 15%;
}

.section-5 {
    position: relative;
    z-index: 5;
    background: #000;
    min-height: 100vh;
}

.section-6 {
    position: relative;
    z-index: 6;
    background: #fff;
    min-height: 100vh;
    padding: 4rem 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden; /* Prevent horizontal overflow */
}

/* Section 6 container adjustments */
.section-6-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0; /* Allow flex children to shrink */
    width: 100%;
    max-width: 100%;
    padding: 0 1rem;
}

/* Responsive adjustments for section 6 */
@media (max-width: 1024px) {
    .section-6-container {
        padding: 0 0.5rem;
    }
}

@media (max-width: 768px) {
    .section-6 {
        padding: 2rem 0;
        min-height: 80vh;
    }
    
    .section-6-container {
        padding: 0 0.25rem;
    }
}


.section-7 {
    position: relative;
    z-index: 7;
    background: #000;
    min-height: 100vh;
    /* background-image: url('../images/form-bg.svg'); */
    background-image: 
    linear-gradient(to bottom, #000000 0%, #00000000 65%),
    url('../images/form-bg.svg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.amazing {
    font-family: 'Roaster', sans-serif;
}

.header-text {
    font-size: 3rem;
}

.form-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 300;
    color: #fff;
    line-height: 1.6;
    margin: 0;
    width: 80%;
    text-align: center;
    font-family: 'Poppins', sans-serif;
}

.section-8 {
    position: relative;
    z-index: 8;
    background: #000;
    height: 100vh;
}

/* Smooth scroll behavior for the entire page */
html {
    scroll-behavior: smooth;
}

/* Optimize for smooth animations */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Menu Bar Animation */
.menubar-content {
    height: 0;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 100;
    opacity: 0;
    transform: translateY(-20px);
}

/* Make menubar content visible when herosection-footer is visible */
.herosection-footer:not(.hidden) .menubar-content {
    height: 50vh;
    opacity: 1;
    transform: translateY(0);
}

/* Ensure menubar content is hidden by default when herosection-footer is visible */
.herosection-footer:not(.hidden) .menubar-content:not(.open) {
    height: 0;
    opacity: 0;
    transform: translateY(-20px);
}

.menubar-content.open {
    height: 50vh;
    opacity: 1;
    transform: translateY(0);
    overflow-y: auto;
    max-height: 50vh;
    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
    /* Ensure proper scrolling */
    display: flex;
    flex-direction: column;
}

.menubar-content.open::-webkit-scrollbar {
    display: none;
}

/* Ensure menu items container allows scrolling */
.menubar-content .menu-items {
    flex: 1;
    min-height: 0; /* Allow shrinking */
}

.menu-item {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    transform: translateY(10px);
    opacity: 0;

    span {
        font-family: 'Roaster', sans-serif;
    }
}

.menubar-content.open .menu-item {
    transform: translateY(0);
    opacity: 1;
}

.menubar-content.open .menu-item:nth-child(1) {
    transition-delay: 0.1s;
}

.menubar-content.open .menu-item:nth-child(2) {
    transition-delay: 0.2s;
}

.menubar-content.open .menu-item:nth-child(3) {
    transition-delay: 0.3s;
}

.menubar-content.open .menu-item:nth-child(4) {
    transition-delay: 0.4s;
}

.menubar-content.open .menu-item:nth-child(5) {
    transition-delay: 0.5s;
}

.menubar-content.open .menu-item:nth-child(6) {
    transition-delay: 0.6s;
}

/* Directional prep classes for slide-in animation */
.menubar-content.prep-top {
    transform: translateY(-16px);
}

.menubar-content.prep-bottom {
    transform: translateY(16px);
}

.menu-item:hover .menu-icon {
    background-color: var(--yellow);
    transform: scale(1.1);
}

.menu-item:hover span {
    color: var(--yellow);
}

.menu-icon {
    transition: all 0.3s ease;
}

/* Hover line that extends from the menu icon */
.menu-icon {
    position: relative;
}

.menu-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: calc(100% + 12px);
    height: 2px;
    width: 0;
    background-color: var(--yellow);
    transform: translateY(-50%);
    transition: width 0.3s ease;
}

.menu-item:hover .menu-icon::after {
    width: 200px;
}


#scene-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

#scene {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: visible;
    /* Ensure proper positioning context for markers */
    transform: translateZ(0);
}

#bigSvg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    z-index: 10;
    visibility: hidden;
}

#motionPath {
    stroke: var(--yellow);
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.marker {
    position: absolute;
    width: 52px;
    height: 52px;
    transform: translate(-50%, -50%) scale(0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 30;
    opacity: 0;
    /* Ensure markers are positioned relative to scene container */
    left: 0;
    top: 0;
}

.marker .ring {
    position: absolute;
    border: 1.5px solid var(--yellow);
    border-radius: 50%;
    box-sizing: border-box;
}

.marker .ring-1 {
    width: 52px;
    height: 52px;
}

.marker .ring-2 {
    width: 42px;
    height: 42px;
}

.marker .ring-3 {
    width: 32px;
    height: 32px;
}

.marker .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--white);
    z-index: 3;
}

.label {
    position: absolute;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 28;
    opacity: 0;
    font-family: "Poppins", sans-serif;
}

.label .title {
    font-family: 'Roaster', sans-serif;
    font-weight: 400;
    font-size: 1.6rem;
    margin-bottom: 2px;
    color: var(--white);
}

.label .sub {
    font-weight: 300;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.45;
}

#pencilWrap {
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 112px;
    z-index: 45;
    visibility: hidden;
}

#pencil {
    display: block;
    width: 100%;
    height: 100%;
    will-change: transform;
}

@media (max-width: 900px) {
    .marker {
        width: 42px;
        height: 42px;
    }

    .marker .ring-1 {
        width: 42px;
        height: 42px;
    }

    .marker .ring-2 {
        width: 34px;
        height: 34px;
    }

    .marker .ring-3 {
        width: 26px;
        height: 26px;
    }

    .marker .dot {
        width: 10px;
        height: 10px;
    }

    #pencilWrap {
        width: 25px;
        height: 93px;
    }

    .label .title {
        font-size: 1.2rem;
    }

    .label .sub {
        font-size: 0.95rem;
    }
}

.section-5::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

/* Swiper Projects Styling */
.projects-swiper {
    width: 100%;
    overflow: hidden;
}

.projects-swiper .swiper-wrapper {
    transition-timing-function: linear;
}

.projects-swiper .swiper-slide {
    width: auto;
    height: auto;
}

/* Split Menu for Non-Hero Sections - Consolidated */
#split-menu {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    z-index: 100 !important;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

/* Split Menu - Top Menu with Logo+Button (Hidden by default, shown when scrolling) */
#split-menu.hidden {
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
}

#split-menu.visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.menu-link {
    font-family: 'Roaster', sans-serif;
}


/* Prevent horizontal overflow globally */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Hide scrollbar while maintaining scroll functionality */
/* For WebKit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* For Firefox */
html {
    scrollbar-width: none;
}

/* For Internet Explorer and Edge Legacy */
body {
    -ms-overflow-style: none;
}

/* Remove unwanted margin from GSAP pin-spacer div */
.pin-spacer {
    margin: 0 !important;
}

/* Menu Button Content (Overlay Menu) - Initial hidden state */
.menu-button-content {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    max-width: calc(100vw - 2.5rem); /* Ensure it doesn't overflow with right-10 */
}

/* Menu Button Content - Open state */
.menu-button-content.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    overflow-y: auto;
    max-height: 65vh;
    /* Hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.menu-button-content.open::-webkit-scrollbar {
    display: none;
}

/* Menu Button Content - Link styles */
.menu-button-content .menu-link {
    position: relative;
    overflow: visible;
    transition: all 0.3s ease-in-out;
    padding-left: 0;
}

.menu-button-content .menu-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 3px;
    background-color: #FCB600;
    transition: width 0.3s ease-in-out;
    z-index: 1;
    border-radius: 2px;
}

.menu-button-content .menu-link:hover::before {
    width: 55px !important;
}

.menu-button-content .menu-link:hover {
    background: white !important;
    color: #FCB600 !important;
    border-bottom: 3px solid #FCB600;
    border-radius: 8px;
    padding-left: 60px;
    transform: translateX(0);
}


#split-menu .logo-container {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Footer Menu Bar - Always Fixed at Bottom - Consolidated */
.herosection-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    transition: transform 2.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 1.8s ease-in-out, visibility 0.3s ease-in-out;
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    display: flex !important;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.herosection-footer:not(.hidden) {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
    transform: translateY(0) !important;
}

.herosection-footer.hidden {
    transform: translateY(100%);
    opacity: 0;
    visibility: hidden;
}

.herosection-footer-content {
    backdrop-filter: blur(64px);
    -webkit-backdrop-filter: blur(64px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    will-change: transform, opacity;
    backface-visibility: hidden;
    z-index: 1001;
}

/* Homepage animation styles */
#homepage {
    will-change: transform, opacity;
    backface-visibility: hidden;
    position: relative !important;
    z-index: 20 !important; /* Higher than section-2 */
    background: white !important;
    width: 100% !important;
    max-width: none !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important; /* Ensure it's displayed as block */
}

/* Better invisibility effect for the footer container */
.herosection-footer.animate-out {
    opacity: 0;
    visibility: hidden;
    transform: translateY(50px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}


/* Contact Section - Equal Height Columns */
.start-project {
    display: flex;
    flex-direction: column;
    height: 100%;
    align-items: stretch;
}

/* Menu Bar Animation */
.menubar-content {
    height: 0;
    overflow-y: auto;
    transition: height 0.4s ease-in-out;
    position: relative;
    z-index: 10;
}

.menubar-content.open {
    height: 70vh;
}


.connect-button {
    font-family: 'Roaster', sans-serif !important;
}

.menu-links,
.menu-link {
    font-family: 'Roaster', sans-serif !important;
}

.project-column {
    flex-shrink: 0;
    height: 600px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.project-card {
    width: 100%;
}

.project-card:first-child {
    height: 65%;
}

.project-card:last-child {
    height: 30%;
}

/* Fallback CSS Animation if Swiper fails */
@keyframes marquee {
    0% {
        transform: translateX(0);
    }

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

.projects-swiper .swiper-wrapper.fallback-animation {
    animation: marquee 20s linear infinite;
    display: flex;
    gap: 24px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-5-header h1 {
        font-size: 1.875rem;
    }

    .project-column {
        width: 280px;
        /* Smaller width for mobile */
        gap: 1rem;
    }

    .projects-grid {
        gap: 1rem;
    }
}


/* Clientele Section - Simple Infinite Scroll */
.clients-container {
    overflow: hidden;
    width: 100%;
}

.clients-row {
    display: flex;
    gap: 3rem;
    animation: scroll 30s linear infinite;
    white-space: nowrap;
}

.clients-row:hover {
    animation-play-state: paused;
}

.clients-row-reverse {
    animation: scroll-reverse 30s linear infinite;
}

.clients-row-reverse:hover {
    animation-play-state: paused;
}

.client-logo {
    font-size: 1.25rem;
    font-weight: 500;
    color: #374151;
    padding: 1rem 0;
    flex-shrink: 0;
}

.client-logo-img {
    width: 96px;
    /* 6rem */
    height: 64px;
    /* 4rem */
    object-fit: contain;
    filter: grayscale(100%);
    transition: all 0.3s ease;
}

.client-logo:hover .client-logo-img {
    filter: grayscale(0%);
    transform: scale(1.1);
}

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

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

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

    100% {
        transform: translateX(0);
    }
}

/* Projects Section - Smooth Infinite Scroll */
.projects-container {
    overflow-x: auto;
    overflow-y: hidden;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
    width: 100%;
    height: 600px;
}

.projects-container::-webkit-scrollbar {
    display: none;
}

.projects-row {
    display: flex;
    gap: 1.5rem;
    animation: scroll-projects 40s linear infinite;
    white-space: nowrap;
    height: 100%;
}

.projects-row:hover {
    animation-play-state: paused;
}

.project-column {
    flex-shrink: 0;
    height: 100%;
    width: 260px;
    /* Fixed width for consistent sizing */
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.project-card {
    flex: 1;
}

/* Default pattern: Tall top, Short bottom */
.project-column .project-card:first-child {
    flex: 0 0 55%;
}

.project-column .project-card:last-child {
    flex: 0 0 40%;
}

/* Alternating pattern: Short top, Tall bottom for even columns */
.project-column:nth-child(even) .project-card:first-child {
    flex: 0 0 40%;
}

.project-column:nth-child(even) .project-card:last-child {
    flex: 0 0 55%;
}

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

/* Bigger cards (55% height) - eliminate whitespaces while showing logos */
.project-column .project-card:first-child .project-image img,
.project-column:nth-child(even) .project-card:last-child .project-image img {
    object-fit: fill;
    width: 100%;
    height: 100%;
}

/* Smaller cards (40% height) - zoom to cover full container, no whitespaces */
.project-column .project-card:last-child .project-image img,
.project-column:nth-child(even) .project-card:first-child .project-image img {
    object-fit: cover;
    object-position: center center;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
}

/* Responsive adjustments for expanded state */
@media (max-width: 768px) {
    .section-4.expanded {
        padding: 2rem 0;
        min-height: 90vh;
    }
    
    .phase-card.expanded {
        min-height: 350px;
        padding: 24px 16px;
        margin-bottom: 1.5rem;
    }
}


/* Phase Cards Styling */
.phase-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 16px 6px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    min-height: 350px;
    margin: 0 auto; /* Center the cards */
    position: relative;
    z-index: 1; /* Ensure content is above the border */
}

.phase-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 8px;
    padding: 1px;
    background: linear-gradient(135deg, #FCB600, #FCB60000);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    z-index: -1;
}

/* Normal state - Phase at top, image at bottom */
.phase-card:not(.expanded) {
    justify-content: space-between;
}

.phase-card:not(.expanded) .phase-title {
    display: none; /* Hide title in normal state */
}

/* Expanded phase cards layout */
.phase-card.expanded {
    min-height: 400px;
    padding: 32px 20px;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex: 1; /* Ensure equal distribution */
    max-width: 25%; /* Prevent cards from getting too wide */
}

.phase-card.expanded .phase-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 8px;
    margin: 0;
    display: block;
}

/* Phase + Number row at top */
.phase-card.expanded .phase-label {
    display: inline;
    font-weight: 600;
}

/* Title at bottom */
.phase-card.expanded .phase-title {
    opacity: 1;
    font-size: 28px;
    font-weight: 500;
    text-align: center;
    font-family: 'Roaster', sans-serif;
    font-weight: 700;
}

/* Background images removed - using img elements instead */

/* General phase image styling */
.phase-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: block; /* Ensure image is always visible */
}

.phase-card.expanded .phase-title {
    opacity: 1;
}

/* Top row for expanded state - Phase + Number - moved above */

.phase-label {
    font-size: 120px;
    font-weight: 300;
    color: #ECECEC;
    font-family: 'Poppins', sans-serif;
    text-align: center;
    flex-shrink: 0;
    transition: opacity 0.3s ease;
    line-height: 1;
}

/* Phase Expanded Content Styles - REMOVED - using CSS-only approach */

.phase-top-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 0;
}

.phase-label-expanded {
    font-size: 30px;
    font-weight: 500;
    color: #D0D0D0;
    font-family: 'Poppins', sans-serif;
    white-space: nowrap;
}

.phase-title-expanded {
    font-size: 28px;
    font-weight: 700;
    color: #000;
    font-family: 'Roaster', sans-serif !important;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    line-height: 1.1;
    margin-bottom: 0;
    text-align: center;
    word-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
}

/* Ensure phase cards can contain absolute positioned content properly */
.phase-card {
    position: relative;
    overflow: hidden; /* Changed from visible to hidden to contain content */
    transition: all 0.3s ease;
    word-wrap: break-word;
    box-sizing: border-box;
}

/* When expanded, ensure proper text handling */
.phase-card.expanded {
    overflow: hidden; /* Keep content contained */
    min-height: 320px; /* Slightly more height for expanded state */
    max-width: 320px;
}

/* Main scrolling container and rows */

.clients-container {
    overflow: hidden;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.clients-row {
    display: flex;
    gap: 3rem;
    padding: 0.5rem 0;
    animation: scroll 40s linear infinite;
    white-space: nowrap;
    flex-shrink: 0;
    height: calc(33.33% - 0.5rem); /* Each row takes 1/3 of the height */
    min-height: 80px;
    width: 100%;
    align-items: center;
}

.clients-row:hover {
    animation-play-state: paused;
}

.clients-row-reverse {
    animation: scroll-reverse 40s linear infinite;
}

.clients-row-reverse:hover {
    animation-play-state: paused;
}

/* Responsive adjustments for clients rows */
@media (max-width: 1024px) {
    .clients-wrapper {
        height: 55vh;
    }
    
    .clients-row {
        gap: 2.5rem;
        padding: 0.25rem 0;
        min-height: 70px;
    }
}

@media (max-width: 768px) {
    .clients-wrapper {
        height: 50vh;
    }
    
    .clients-row {
        gap: 2rem;
        padding: 0.25rem 0;
        min-height: 60px;
    }
}

/* @media (max-width: 480px) {
    .clients-wrapper {
        height: 45vh;
    }
    
    .clients-row {
        gap: 1.5rem;
        padding: 0.25rem 0;
        min-height: 50px;
    }
} */

.client-logo {
    flex-shrink: 0;
    cursor: pointer;
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.client-logo-img {
    width: 128px;
    height: 80px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.client-logo:hover .client-logo-img,
.client-logo.active .client-logo-img {
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* Responsive client logo sizing */
@media (max-width: 1024px) {
    .client-logo-img {
        width: 100px;
        height: 60px;
    }
}

@media (max-width: 768px) {
    .client-logo-img {
        width: 80px;
        height: 50px;
    }
}


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

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

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

    100% {
        transform: translateX(0);
    }
}

/* Static Borders */
.clients-wrapper {
    position: relative;
    height: 60vh; /* Fixed height to ensure all 3 rows fit */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1rem 0;
    width: 100%;
    overflow: hidden;
}

.clients-wrapper::before,
.clients-wrapper::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background-color: #e5e7eb;
    z-index: 0;
}

.clients-wrapper::before {
    top: 33.33%;
}

.clients-wrapper::after {
    top: 66.66%;
}

/* Responsive adjustments for clients wrapper */
@media (max-width: 1024px) {
    .clients-wrapper {
        height: 55vh;
        padding: 0.5rem 0;
    }
    
    .clients-wrapper::before,
    .clients-wrapper::after {
        width: 85%;
    }
}

@media (max-width: 768px) {
    .clients-wrapper {
        height: 50vh;
        padding: 0.25rem 0;
    }
    
    .clients-wrapper::before,
    .clients-wrapper::after {
        width: 90%;
    }
}


/* Main Detail Card */
#client-detail-card {
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.4);
    height: 380px;
    position: fixed;
    z-index: 1000;
    pointer-events: auto;
}

#client-detail-card>.flex {
    height: 100%;
}

/* Connector SVG Animation Prep */
#top-left-connector,
#bottom-right-connector {
    transform-origin: center center;
}

#top-left-connector .line,
#bottom-right-connector .line {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
}

#top-left-connector .star,
#bottom-right-connector .star {
    opacity: 0;
    transform-origin: center center;
}

/* Dynamic Collage */
#detail-images-grid {
    display: grid;
    padding: 0.05rem;
}

#detail-images-grid>div {
    border-radius: 0.5rem;
    overflow: hidden;
}

#detail-images-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes marquee-vertical {
    0% {
        transform: translateY(0);
    }

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

.marquee-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    animation: marquee-vertical 20s linear infinite;
}

.marquee-wrapper:hover {
    animation-play-state: paused;
}

.marquee-wrapper>div {
    flex-shrink: 0;
}


.form-group {
    position: relative;
    padding-bottom: 1.25rem;
}

.form-group p[id$="-error"] {
    position: absolute;
    bottom: 0;
    left: 0;
}

.form-group #email-error {
    left: 52%;
}

select.invalid,
input.invalid,
textarea.invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
    background-color: #fef2f2;
}

select.invalid:focus,
input.invalid:focus,
textarea.invalid:focus {
    --tw-ring-color: #ef4444 !important;
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
    background-color: #fef2f2;
}

/* Smooth transitions for validation states */
input, textarea, select {
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}


.honeypot {
    position: absolute;
    left: -5000px;
    visibility: hidden;
}

.feedback {
    padding: 40px 120px;
    background-color: #F7F7FB;
    min-height: 100vh;
    position: relative;
    z-index: 9;
}

.feedback-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
    width: 100%;
}

.feedback-title {
    font-size: 36px;
    font-weight: 300;
    color: #1a1a1a;
    line-height: 1.2;
    text-align: left;
    font-family: 'Roaster', serif;
}

.feedback-underline {
    width: 100px;
    height: 3px;
    background-color: #FCB600;
    margin-bottom: 15px;
}

.feedback-right {
    position: relative;
    width: 100%;
}

.testimonials-slider {
    position: relative;
    overflow: hidden;
    min-height: 400px;
    width: 100%;
    perspective: 1200px;
    transform-style: preserve-3d;
}

.testimonials-page {
    display: none;
    gap: 30px;
    height: 100%;
    min-height: 400px;
    width: 100%;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.2s ease-in-out;
    transform-style: preserve-3d;
    perspective: 1000px;
    align-items: flex-start;
}

.testimonials-page.active {
    display: flex;
    gap: 40px;
    min-height: 700px;
    opacity: 1;
    transform: translateX(0);
    position: relative;
    align-items: flex-start;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.testimonial-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #FCB600;
}

.testimonial-card.large {
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-card.small {
    height: 320px;
    width: 350px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Two-column layout: Title+Card on left, 2 cards on right */
.testimonials-columns {
    display: flex;
    width: 90%;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
    gap: 60px;
}

.testimonials-left-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.testimonials-right-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
}


.company-logo {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.company-logo-img {
    max-height: 50px;
    max-width: 130px;
    object-fit: contain;
    width: auto;
    height: auto;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.6;
    color: #4b5563;
    flex-grow: 1;
}

.customer-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.customer-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.customer-details h4 {
    font-size: 16px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 4px 0;
}

.customer-details p {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

.testimonials-pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

.pagination-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #d1d5db;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.pagination-dot.active {
    background-color: #FCB600;
    transform: scale(1.2);
}

.pagination-dot:hover {
    background-color: #6b7280;
}

.testimonials-error {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
    color: #6b7280;
    font-size: 16px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .feedback-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .feedback-title {
        font-size: 36px;
    }
    
    .testimonials-page {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 20px;
    }
    
    .testimonial-card.large {
        grid-row: span 1;
    }
}

@media (max-width: 768px) {

    #feedback {
        padding: 40px 0;
    }

    .feedback {
        padding: 40px 0;
    }
    
    .feedback-container {
        padding: 0 15px;
    }
    
    .feedback-title {
        font-size: 1.5rem;
        text-align: center;
    }
    
    .testimonial-card {
        padding: 20px;
    }
    
    .testimonial-text {
        font-size: 14px;
    }
}


/* Card Container Styles - 2x2 Grid Layout */
.services-cards-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1rem;
    padding: 0 1.2rem;
    height: 100%;
    width: 100%;
    /* Grid positioning for A, B, C, D layout */
    grid-template-areas: 
        "A B"
        "C D";
}

/* Grid positioning for each card */
.service-card:nth-child(1) { grid-area: A; } /* Design - Top Left */
.service-card:nth-child(2) { grid-area: B; } /* Advertising - Top Right */
.service-card:nth-child(3) { grid-area: C; } /* Animation - Bottom Left */
.service-card:nth-child(4) { grid-area: D; } /* UI/UX - Bottom Right */

/* Individual Card Container - Based on sample code */
.service-card {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
    transform-style: preserve-3d;
    transform-origin: center center;
}

/* Card Face (Front and Back) - Based on sample code */
.card-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -ms-backface-visibility: hidden;
    border-radius: 16px;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); */
    transform-origin: center center;
}

/* Front of Card (Service Name Only) */
.card-front {
    background-color: #EDEDED;
    border: 1px solid #e9ecef;
    transform: rotateY(0deg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Service card background images - USE BACKGROUND ONLY */
.service-card:nth-child(1) .card-front { background-image: url('../images/service-design.svg') !important; }
.service-card:nth-child(2) .card-front { background-image: url('../images/service-advertising.svg') !important; }
.service-card:nth-child(3) .card-front { background-image: url('../images/service-animation.svg') !important; }
.service-card:nth-child(4) .card-front { background-image: url('../images/service-uiux.svg') !important; }

/* Hide inline images inside card-front to prevent duplicates */
.card-front .full-card-image { display: none !important; }

/* Back of Card (Full Content) */
.card-back {
    background: white;
    border: 2px solid #00000020;
    transform: rotateY(-180deg);
}

/* Front Card Content - Grid Layout */
.card-front-content {
    display: none; /* Hide text content, show only background images */
}


.card-front h1 {
    font-size: 2.5rem;
    font-weight: 300;
    color: #343a40;
    text-align: center;
    margin: 0;
    font-family: serif;
}

/* Back Card Content */
.card-back-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: space-between;
}

.card-back p {
    color: #343a40;
    font-size: 1.2rem;
    line-height: 22px;
    margin: 0;
    flex-shrink: 0;
}

/* Service List Styles */
.service-list {
    list-style: none;
    padding: 0;
    margin: 14px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    flex-grow: 1;
    justify-content: flex-start;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #343a40;
    font-size: 18px;
    font-weight: 500;
}

.service-list li svg {
    flex-shrink: 0;
}

#design,
#advertising,
#animation,
#uiux {
    font-size: 44px;
    line-height: 1;
    font-family: 'Roaster', sans-serif !important;
    font-weight: 500 !important;
}

/* More Button Styles */
.more-button {
    display: flex;
    align-items: center;
    gap: 0.1rem;
    border: 2px solid #00000040;
    border-radius: 50px;
    padding: 0.1rem 0.3rem;
    background: transparent;
    color: #343a40;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s ease;
    align-self: flex-end;
    margin-top: auto;
    flex-shrink: 0;
    width: fit-content;
}

/* More Button Hover States */
.more-button:hover {
    background: white;
    color: #FCB600;
    border-color: #FCB600;
    transform: translateX(4px);
    z-index: 10;
}

/* SVG Transitions */
.more-button svg {
    transition: all 0.3s ease;
}

/* SVG Hover Effects */
.more-button:hover svg {
    transform: translateX(2px);
    fill: #FCB600;
}


/* Responsive Design */
@media (max-width: 768px) {
    .services-cards-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr);
        gap: 1rem;
    }

    .card-face {
        padding: 0 !important;
    }

    .card-front h1 {
        font-size: 2rem;
    }

    .card-back p {
        font-size: 1rem;
    }

    .service-list li {
        font-size: 1rem;
    }
}

/* Test class for debugging */
.service-card.test-flip {
    transform: rotateY(180deg);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .service-card,
    .service-card .card-face,
    .service-card.sequential-flip,
    .service-card.sequential-flip .card-face {
        transition: none !important;
        animation: none !important;
    }
    
    .service-card.flipped .card-front {
        transform: rotateY(-180deg);
    }
    
    .service-card.flipped .card-back {
        transform: rotateY(0deg);
    }
}

/* Focus states for accessibility */
.service-card:focus {
    /* outline: 2px solid #FCB600; */
    outline-offset: 2px;
}

.service-card:focus-visible {
    /* outline: 2px solid #FCB600; */
    outline-offset: 2px;
}

/* Screen reader only utility class */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Hover Effects - Subtle effects for clickable cards */
.service-card:not(.flipped):hover .card-front {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.service-card.flipped:hover .card-back {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

/* Active state for click feedback */
.service-card:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
}

/* FAQ Accordion Styles */
.questions {
    background: #000000;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-image: url('../images/questions-line.svg');
    background-size: 100% 800%;
    background-position: center;
    background-repeat: no-repeat;
}

.questions-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 20px;
}

.questions-title {
    font-size: 3rem;
    font-weight: 400;
    color: #ffffff;
    margin-bottom: 20px;
    font-family: 'serif', Georgia, serif;
}

.questions-accent {
    width: 60px;
    height: 3px;
    background: #FCB600;
    margin: 0 auto;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.faq-item {
    background: #1a1a1a;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    /* Removed transform to prevent conflicts with GSAP */
}

.faq-question {
    padding: 20px 24px;
    cursor: default;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #1a1a1a;
    border: none;
    width: 100%;
    text-align: left;
    position: relative;
    z-index: 10;
    pointer-events: auto;
    transition: background-color 0.2s ease;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.faq-question:hover {
    background: #333;
}

.faq-question-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.4;
    margin: 0;
    flex: 1;
    padding-right: 20px;
    font-family: 'serif', Georgia, serif;
}

.faq-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    border-radius: 50%;
    background: #333;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-icon-plus,
.faq-icon-minus {
    position: absolute;
    background: #ffffff;
    transition: opacity 0.3s ease;
}

.faq-icon-plus {
    width: 16px;
    height: 2px;
    border-radius: 1px;
}

.faq-icon-plus::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 16px;
    background: #ffffff;
    border-radius: 1px;
    top: -7px;
    left: 7px;
}

.faq-icon-minus {
    width: 16px;
    height: 2px;
    border-radius: 1px;
    opacity: 0;
}

.faq-icon.minus {
    background: #FCB600;
}

.faq-icon.minus .faq-icon-plus {
    opacity: 0;
}

.faq-icon.minus .faq-icon-minus {
    opacity: 1;
}

.faq-icon:hover {
    background: #555;
    transform: scale(1.05);
}

.faq-icon.minus:hover {
    background: #e6a500;
}

.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    background: #1a1a1a;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 24px 24px 24px;
}

.faq-answer-text {
    font-size: 1rem;
    color: #a0a0a0;
    line-height: 1.6;
    margin: 0;
    padding-top: 16px;
    font-family: 'Poppins', sans-serif;
}

/* Responsive Design */
@media (max-width: 768px) {
    .questions {
        padding: 60px 0;
    }
    
    .questions-title {
        font-size: 2.2rem;
    }
    
    .questions-subtitle {
        font-size: 1.1rem;
    }
    
    .faq-container {
        padding: 0 15px;
    }
    
    .faq-question {
        padding: 20px 20px;
    }
    
    .faq-question-text {
        font-size: 1rem;
        padding-right: 15px;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 20px 20px 20px;
    }
    
    .faq-answer-text {
        font-size: 0.95rem;
    }
}


/* ==========================================================================
   Form Button Disabled State
   ========================================================================== */

#submit-button:disabled {
    background-color: #9CA3AF !important; /* Light gray background */
    color: #6B7280 !important; /* Gray text */
    cursor: not-allowed !important;
    opacity: 0.6;
    transform: none !important;
}

#submit-button:disabled:hover {
    background-color: #9CA3AF !important; /* Keep gray on hover when disabled */
    transform: none !important;
}

#submit-button:disabled svg {
    stroke: #6B7280 !important; /* Gray icon when disabled */
}

/* ==========================================================================
   Video Modal Popup Styles
   ========================================================================== */

.video-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.video-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.video-modal-container {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 80vh;
    max-height: 800px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.video-modal-overlay.show .video-modal-container {
    transform: scale(1);
}

.video-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #FCB600;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s ease;
}

.video-modal-close:active {
    transform: scale(0.95);
}

.video-modal-player {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

/* Responsive Design */
@media (max-width: 768px) {
    .video-modal-container {
        width: 95%;
        height: 70vh;
        margin: 20px;
    }
    
    .video-modal-close {
        width: 40px;
        height: 40px;
        top: 15px;
        right: 15px;
    }
    
    .video-modal-close svg {
        width: 20px;
        height: 20px;
    }
}


/* ==========================================================================
   Homepage Hero Section Mobile Responsive
   ========================================================================== */

/* Mobile Responsive Design (≤767px) */
@media (max-width: 767px) {
    /* Section-4 Phase Cards: disable animations on mobile */
    .section-4 .phase-card,
    .section-4 .phase-card * {
        animation: none !important;
        transition: none !important;
    }
    
    .section-4.expanded { 
        padding: 0 !important; 
        min-height: auto !important; 
    }
    
    .section-4 .phase-card.expanded { 
        min-height: auto !important; 
        padding: 12px 4px !important; 
        margin-bottom: 0 !important; 
    }
    
    /* Section-4 header mobile - reduce font sizes */
    .section-4 #section4-text h1 {
        font-size: 1.5rem !important; /* 24px - reduced from 42px */
    }
    
    .section-4 #section4-text p {
        font-size: 1rem !important; /* 14px - reduced from 18px */
        width: 100%;
    }
    
    /* Section-4 cards mobile - reduce height */
    .section-4 .phase-card {
        min-height: 120px !important; /* reduced height */
        padding: 8px 4px !important;
    }
    
    .section-4 .phase-label {
        font-size: 2rem !important; /* 32px - reduced from 120px */
    }
    
    .section-4 .phase-image {
        width: 60px !important;
        height: 60px !important;
    }
    
    .section-4 .phase-title {
        font-size: 0.75rem !important; /* 12px - reduced from 28px */
    }

    /* Section-4 cards grid layout on mobile */
    #section4-cards {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0.75rem !important;
        width: 100% !important;
        justify-items: center !important;
        align-items: stretch !important;
    }
    #section4-cards .phase-card {
        width: 100% !important;
        max-width: 100% !important;
    }
    /* Hide video on mobile */
    .section1-video {
        display: none !important;
    }

    /* Hero section mobile - reduce height */
    .herosection {
        height: 45dvh !important;
        min-height: 45dvh !important;
    }

    #homepage {
        width: 100% !important;
        min-height: 30dvh !important;
    }
    
    /* Section-1 mobile layout */
    .section-1 {
        background: white !important;
        width: 100% !important;
        height: 45dvh !important;
        min-height: 45dvh !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 1rem;
    }
    
    /* Rocket image mobile */
    .section-1 img[alt="paper-plane"] {
        position: absolute;
        top: 2rem;
        left: 2rem;
        width: 60px !important;
        height: auto !important;
        z-index: 10;
    }
    
    /* Content container mobile */
    .section-1-containter {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
        left: 0 !important;
        right: 0 !important;
    }
    
    /* Left content mobile */
    .section-1-containter-left {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 1.5rem !important;
    }
    
    /* Frame text mobile */
    .section-1-containter-left-t {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .section-1-containter-left-t img {
        width: 100% !important;
        height: auto !important;
        width: 50% !important;
    }
    
    /* Tagline mobile */
    .section-1-containter-left p {
        width: 100% !important;
        font-size: 1.125rem !important; /* 18px */
        line-height: 1.5 !important;
        color: #333 !important;
        text-align: center !important;
        margin: 0 !important;
        padding: 0 1rem !important;
    }
    
    /* Hide right container on mobile */
    .section-1-containter-right {
        display: none !important;
    }
}

/* Tablet Responsive Design (768px-1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    /* Section-4 Phase Cards: disable animations on tablet */
    .section-4 .phase-card,
    .section-4 .phase-card * {
        animation: none !important;
        transition: none !important;
    }
    
    .section-4.expanded { 
        padding: 0 !important; 
        min-height: auto !important; 
    }
    
    .section-4 .phase-card.expanded { 
        min-height: auto !important; 
        padding: 16px 8px !important;
        margin-bottom: 0 !important; 
    }
    
    /* Section-4 header tablet - reduce font sizes */
    .section-4 #section4-text h1 {
        font-size: 1.5rem !important; /* 32px - reduced from 42px */
    }
    
    .section-4 #section4-text p {
        font-size: 1rem !important; /* 16px - reduced from 18px */
    }
    
    /* Section-4 cards tablet - reduce height */
    .section-4 .phase-card {
        min-height: 140px !important; /* reduced height */
        padding: 12px 6px !important;
    }
    
    .section-4 .phase-label {
        font-size: 2.5rem !important; /* 40px - reduced from 120px */
    }
    
    .section-4 .phase-image {
        width: 80px !important;
        height: 80px !important;
    }
    
    .section-4 .phase-title {
        font-size: 0.875rem !important; /* 14px - reduced from 28px */
    }

    /* Section-4 cards grid layout on tablet (2 columns) */
    #section4-cards {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 1rem !important;
        width: 100% !important;
        justify-items: center !important;
        align-items: stretch !important;
    }
    #section4-cards .phase-card {
        width: 100% !important;
        max-width: 100% !important;
    }
    /* Hide video on tablet */
    .section1-video {
        display: none !important;
    }

    /* Hero section tablet - reduce height */
    .herosection {
        height: 30dvh !important;
        min-height: 30dvh !important;
    }
    
    /* Section-1 tablet layout */
    .section-1 {
        background: white !important;
        height: 45dvh !important;
        min-height: 45dvh !important;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 3rem 2rem;
    }
    
    /* Rocket image tablet */
    .section-1 img[alt="paper-plane"] {
        position: absolute;
        top: 3rem;
        left: 3rem;
        width: 80px !important;
        height: auto !important;
        z-index: 10;
    }
    
    /* Content container tablet */
    .section-1-containter {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 2rem !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
    }
    
    /* Left content tablet */
    .section-1-containter-left {
        width: 100% !important;
        max-width: 80% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 2.5rem !important;
    }
    
    /* Frame text tablet */
    .section-1-containter-left-t {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .section-1-containter-left-t img {
        max-width: 100% !important;
        height: auto !important;
        width: auto !important;
    }
    
    /* Tagline tablet */
    .section-1-containter-left p {
        width: 100% !important;
        font-size: 1.25rem !important; /* 20px */
        line-height: 1.6 !important;
        color: #333 !important;
        text-align: center !important;
        margin: 0 !important;
    }
    
    /* Hide right container on tablet */
    .section-1-containter-right {
        display: none !important;
    }
}

@media (min-width: 1024px) {
    .section1-video {
        display: block !important;
    }
    
    .section-1 {
        background: transparent !important;
        min-height: 100vh;
        position: relative;
    }
    
    .section-1 img[alt="paper-plane"] {
        position: absolute;
        top: 0;
        left: 0;
        width: auto !important;
        height: 120px !important;
        z-index: 10;
    }
    
    .section-1-containter {
        width: 80% !important;
        margin: 0 auto !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    
    .section-1-containter-left {
        width: 40% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem !important;
    }
    
    .section-1-containter-left-t {
        width: 70% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    .section-1-containter-left p {
        width: 70% !important;
        font-size: 1.5rem !important;
        line-height: 1.6 !important;
        color: white !important;
        text-align: left !important;
        margin: 0 !important;
    }
    
    .section-1-containter-right {
        width: 40% !important;
        display: block !important;
    }
}

/* Hard desktop safeguard for Services (section-3) to prevent mobile overrides */
@media (min-width: 1024px) {
    #services.section-3 { min-height: 100vh !important; }
    #services .section-3-containter { width: 80% !important; max-width: 1280px !important; margin: 0 auto !important; }
    #services .section-3-containter-content { display: flex !important; flex-direction: row !important; align-items: stretch !important; gap: 2rem !important; }
    #services .section-3-containter-content-left { display: flex !important; }
    #services .section-3-containter-content-right { width: 55% !important; height: auto !important; padding: 2rem !important; }
    #services .services-cards-grid { display: grid !important; grid-template-columns: 1fr 1fr !important; grid-auto-rows: minmax(300px, 1fr) !important; gap: 1.25rem !important; height: auto !important; }
    #services .service-card { width: 100% !important; height: 100% !important; min-height: 300px !important; }
    #services .card-face { width: 100% !important; height: 100% !important; }
}