/* Modern Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Import Inter Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    /* Black & White Theme */
    --primary-color: #000000;
    --secondary-color: #333333;
    --text-color: #1a1a1a;
    --bg-color: #ffffff;
    --white: #ffffff;
    --gray-light: #f5f5f5;
    --gray-medium: #e5e5e5;
    --font-main: 'Inter', sans-serif;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header & Navigation */
header {
    background-color: var(--primary-color);
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav {
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-wa {
    background-color: var(--white);
    color: var(--primary-color) !important;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease;
    margin-left: 1.5rem;
    margin-right: 0;
}

.nav-wa:hover {
    transform: scale(1.05);
}

.nav-wa i {
    font-size: 1.1rem;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

@media (max-width: 768px) {
    .logo-img {
        height: 35px;
    }
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
    margin-left: auto;
}

.nav-links a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    cursor: pointer;
}

/* Mega Menu Styles */
.mega-menu {
    display: none;
    position: absolute;
    background-color: var(--white);
    min-width: 400px;
    box-shadow: 0px 15px 35px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-radius: 12px;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem;
    border: 1px solid var(--gray-medium);
}

/* Hover Bridge: Connects nav item to menu to prevent closing */
.mega-menu::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 25px;
    background: transparent;
}

.mega-menu-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.mega-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    text-decoration: none;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.mega-item:hover {
    background-color: var(--bg-color);
    border-color: var(--gray-medium);
}

.mega-item i {
    font-size: 1.5rem;
    color: var(--secondary-color);
}

.mega-text span {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-color);
    white-space: nowrap;
}

.dropdown:hover .mega-menu {
    display: block;
}

.nav-links a:hover {
    color: var(--gray-medium);
    text-decoration: underline;
}

/* Hamburger Icon Styles */
.hamburger {
    display: none;
    cursor: pointer;
    font-size: 1.5rem;
    color: var(--white);
    padding: 1rem;
    margin-right: -1rem;
}

/* Off-canvas Mobile Menu */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    /* Hidden by default */
    width: 280px;
    height: 100%;
    background-color: #000;
    /* Black bg */
    z-index: 2000;
    padding: 2rem 1.5rem;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid #333;
    padding-bottom: 1rem;
}

.mobile-nav-header .logo {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
}

.close-menu {
    font-size: 1.5rem;
    color: var(--white);
    cursor: pointer;
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
}

.mobile-nav-links>li {
    margin-bottom: 1rem;
}

.mobile-nav-links a {
    text-decoration: none;
    color: var(--white);
    /* White text */
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
}

/* Submenu Styles */
.mobile-submenu {
    list-style: none;
    padding-left: 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.mobile-submenu.active {
    max-height: 200px;
    margin-top: 0.5rem;
}

.mobile-submenu a {
    font-size: 0.95rem;
    font-weight: 400;
    color: #ccc;
    padding: 0.4rem 0;
}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
        /* Reduced from 1.5rem */
    }

    nav {
        height: auto;
        padding: 0.5rem 1rem;
        /* Reduced from 1.5rem */
    }

    .nav-wa {
        width: 40px;
        height: 40px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
        margin-right: 1rem;
        margin-left: auto;
        order: 2;
    }

    .nav-wa span {
        display: none;
    }

    .nav-wa i {
        font-size: 1.3rem;
    }

    .nav-links {
        display: none !important;
    }

    .hamburger {
        display: block;
        padding: 0.5rem;
        /* Reduced from 1rem */
        order: 3;
    }
}

.btn {
    /* Re-adding button style just in case */
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: var(--white) !important;
    text-decoration: none;
    border-radius: 15px;
    /* Rounded corners as requested */
    font-weight: 500;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.btn:hover {
    background-color: var(--secondary-color);
    color: var(--white);
}

header .btn {
    background-color: var(--white);
    color: var(--primary-color) !important;
}

header .btn:hover {
    background-color: var(--gray-medium);
}

/* Custom CTA Button Colors */
.btn-orange {
    background-color: #ff8c00 !important;
    /* Vibrant Orange */
    color: var(--white) !important;
    border: none;
}

.btn-black {
    background-color: #000000 !important;
    color: var(--white) !important;
    border: none;
}

.btn-white {
    background-color: #ffffff !important;
    color: var(--primary-color) !important;
    border: 1px solid var(--primary-color) !important;
}

.btn-orange:hover,
.btn-black:hover,
.btn-white:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* Main Content */
main {
    flex: 1;
    padding-bottom: 2rem;
}

/* Hero Banner Slider */
.hero-slider {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 0.5rem;
    position: relative;
    padding: 0 2rem;
    /* Keep alignment padding */
    /* overflow: hidden; Removed from here to prevent padding leak */
}

.hero-mask {
    width: 100%;
    overflow: hidden;
    /* Clip functionality moved here */
    border-radius: 12px;
}

.slider-container {
    display: flex;
    width: 100%;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    width: 100%;
    /* Explicit width */
    flex: 0 0 100%;
    /* Rigid flex basis */
    box-sizing: border-box;
    padding: 0;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensure image covers the area without distortion */
    border-radius: 12px;
    display: block;
}

/* Remove old slide-content styles if no longer needed, or keep for fallback */

/* Old slide text styles removed */

.btn-sm {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background-color: var(--white);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .hero-slider {
        padding: 0;
        /* Full width edge-to-edge */
        margin: 0;
        /* Remove top/bottom spacing */
    }

    .hero-mask {
        border-radius: 0;
        /* Sharp corners on mobile */
    }

    .slide-image {
        border-radius: 0;
        /* Ensure images also have sharp corners */
    }

    .slide-content {
        height: auto;
        /* Auto height for mobile */
        aspect-ratio: 16/9;
        /* Taller for mobile */
    }

    .slide-text h2 {
        font-size: 1.25rem;
    }
}

/* Supported By Section */
.supported-by {
    width: 100%;
    background-color: var(--primary-color);
    /* Black */
    color: var(--white);
    padding: 0.25rem 0;
    /* Even more compact */
    overflow: hidden;
    margin: 0;
    /* Remove margin to flush with banner? Or keep small gap */
    display: flex;
    align-items: center;
}

/* .section-header rule removed as it was empty */

.supported-by .section-header {
    background-color: var(--white);
    color: var(--primary-color);
    padding: 0.35rem 0.5rem;
    /* Equalized padding for balanced look */
    margin: 0 0 0 1.5rem;
    /* Standardized mobile margin */
    border-radius: 4px;
    white-space: nowrap;
    z-index: 2;
    flex-shrink: 0;
    margin-bottom: 0;
    /* Remove bottom margin */
}

.supported-by .section-header h2 {
    font-size: 0.65rem;
    /* Increased slightly from 0.5rem */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
    line-height: 1;
}

/* Desktop: Limit width */
@media (min-width: 1024px) {
    .supported-by {
        max-width: 1200px;
        margin: 0 auto 1rem;
        /* Center and add bottom gap */
        border-radius: 8px;
        /* Rounded corners because it's not full bleed */
    }
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 0.25rem 0;
    /* Compact */
    /* Mask adjusted for black bg */
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    flex-grow: 1;
}

.marquee-content {
    display: flex;
    gap: 3rem;
    width: max-content;
    animation: scroll 20s linear infinite;
    align-items: center;
}

@media (max-width: 768px) {
    .supported-by {
        padding: 0.1rem 0;
    }

    .supported-by .section-header {
        padding: 0.2rem 0.4rem;
        margin-left: 0.75rem;
    }

    .supported-by .section-header h2 {
        font-size: 0.55rem;
    }

    .brand-logo img {
        height: 20px;
    }

    .marquee-container {
        padding: 0.1rem 0;
    }

    .marquee-content {
        gap: 2rem;
    }
}

.brand-logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.8;
}

.brand-logo img {
    height: 30px;
    /* Smaller icons */
    width: auto;
    /* No filter needed as images are now generated with correct colors */
    transition: opacity 0.3s ease;
}

.brand-logo:hover {
    opacity: 1;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Move half way because duplication */
}

/* About Us Section */
.about-us {
    padding: 4rem 1rem;
    /* More breathing room for the box */
    text-align: center;
    background-color: var(--white);
}

.about-us .container {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
    border: 1px solid var(--primary-color);
    /* Thin black outline */
    border-radius: 12px;
}

.about-us h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-transform: capitalize;
    color: var(--primary-color);
}

.about-us p {
    font-size: 1rem;
    color: #444;
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-action {
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .about-us {
        padding: 2rem 1.5rem;
        /* This creates the consistent 'margin' for the card */
    }

    .about-us .container {
        padding: 2rem 1.25rem;
        /* Internal padding of the card */
        border-radius: 8px;
    }

    .about-us h1 {
        font-size: 1.5rem;
    }

    .about-us p {
        font-size: 0.95rem;
    }
}

/* Start Project Section */
.start-project {
    padding: 3rem 0;
    background-color: var(--bg-color);
}

.start-project .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
}

.start-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.start-header p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 2rem;
}

.project-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    /* Tight gap as per 'slash' feel */
    margin: 0 auto 2.5rem;
    max-width: 1200px;
    /* Increased to fill more space on desktop */
    position: relative;
}

.project-card {
    aspect-ratio: 16/9;
    /* Default to landscape-ish */
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    text-decoration: none;
    transition: transform 0.3s ease, filter 0.3s ease;
    border: none;
    /* Shadow/Images handle the look now */
}

@media (min-width: 1024px) {
    .project-card {
        aspect-ratio: 21/9;
        /* Even more elongated on desktop to fill width */
    }
}

@media (max-width: 767px) {
    .start-project {
        padding: 1.5rem 0;
        /* More compact */
    }

    .start-header h2 {
        margin-bottom: 0.25rem;
        /* Tighter title-subtitle gap */
    }

    .start-header p {
        margin-bottom: 1.5rem;
        /* Reduced space before cards */
    }

    .project-card {
        aspect-ratio: 3/4;
        /* Keep portrait on mobile as requested */
    }
}

.project-card:hover {
    transform: scale(1.02);
}

.project-card .card-content {
    position: relative;
    z-index: 2;
    width: 100%;
    text-align: left;
}

.project-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.diagonal-divider {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(15deg);
    font-size: 5rem;
    font-weight: 200;
    color: var(--white);
    z-index: 3;
    pointer-events: none;
    opacity: 0.6;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

/* Hide original divider if it's still in HTML (I replaced it with diagonal-divider) */
.divider {
    display: none;
}

.project-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .project-actions {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
    }
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color) !important;
    border: 1px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white) !important;
}

@media (max-width: 768px) {
    .project-cards {
        gap: 0.25rem;
        padding: 0 0.5rem;
    }

    .project-card h3 {
        font-size: 0.9rem;
        /* Smaller icons on narrow mobile cards */
    }

    .diagonal-divider {
        font-size: 3rem;
    }
}

@media (max-width: 600px) {

    /* Overriding previous stack logic to maintain 2 columns as requested */
    .project-cards {
        grid-template-columns: 1fr 1fr;
        flex-direction: row;
    }

    .project-actions {
        flex-direction: column;
    }

    .project-actions .btn {
        width: 100%;
    }
}

/* Desktop Padding Overrides */
@media (min-width: 1024px) {

    .category-header,
    .popular-categories {
        padding: 0 2rem;
    }
}

/* Category Slider Styles - Consolidated & Resized */
.category-slider {
    padding: 1.5rem 0;
    /* Increased vertical padding */
    background-color: var(--white);
    border-bottom: 1px solid var(--gray-medium);
    width: 100%;
}

.category-header {
    max-width: 1200px;
    margin: 0 auto 1rem;
    padding: 0 1.5rem;
    /* Standardized mobile padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.category-header a {
    font-size: 0.85rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.category-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0.75rem;
    padding: 0.5rem 0;
    /* Remove horizontal padding for full bleed */
    scroll-padding: 0 1.5rem;
    /* Standardized mobile snap padding */
    /* Ensure snap points respect the margin */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    align-items: flex-start;
    max-width: 100%;
    /* Full width */
    margin: 0;
    /* Remove auto margin as we handle alignment inside */
}

/* Popular Weekly Scrollable Portrait Cards */
.popular-weekly {
    padding: 1.5rem 0;
    background-color: var(--white);
    border-bottom: 1px solid var(--gray-medium);
}

.popular-weekly-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding: 0.5rem 0;
    scroll-padding: 0 1.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.popular-weekly-container::-webkit-scrollbar {
    display: none;
}

.popular-weekly-card {
    flex: 0 0 160px;
    /* Portrait width */
    aspect-ratio: 3/4;
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    scroll-snap-align: start;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.popular-weekly-card:hover {
    transform: scale(1.03);
}

.popular-weekly-card .card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1rem;
    text-align: left;
}

.popular-weekly-card h3 {
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.popular-weekly-card:first-child {
    margin-left: 1.5rem;
}

.popular-weekly-card:last-child {
    margin-right: 1.5rem;
}

@media (min-width: 1240px) {
    .popular-weekly-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0.5rem 0;
    }

    .popular-weekly-card:first-child {
        margin-left: 0;
    }

    .popular-weekly-card:last-child {
        margin-right: 0;
    }
}

/* Hide scrollbar for Chrome, Safari and Opera */
.category-container::-webkit-scrollbar {
    display: none;
}

.category-item {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-color);
    scroll-snap-align: start;
    transition: opacity 0.2s ease;
    width: 72px;
    text-align: center;
}

.category-item:first-child {
    margin-left: 1.5rem;
    /* Standardized mobile start margin */
    /* Aligns with page content (header) */
}

.category-item:last-child {
    margin-right: 1.5rem;
    /* Standardized mobile end margin */
    /* Matches left margin */
    padding-right: 0;
    /* Reset padding */
}

/* Desktop Alignment: Revert to centered container */
@media (min-width: 1240px) {
    .category-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0.5rem 2rem;
        /* Restore padding */
    }

    .category-item:first-child {
        margin-left: 0;
        /* Reset margin */
    }

    .category-item:last-child {
        margin-right: 0;
        padding-right: 0;
    }
}

.category-item:hover {
    opacity: 0.7;
    transform: none;
    /* Removed bounce for cleaner feel */
}

.icon-circle {
    width: 45px;
    /* Reduced size */
    height: 45px;
    /* Reduced size */
    background-color: var(--gray-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    /* Reduced font size */
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    border: 1px solid var(--gray-medium);
    /* Added border definition */
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.category-item:hover .icon-circle {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.category-item span {
    font-size: 0.7rem;
    /* Smaller font */
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

/* Popular Categories Section */
.popular-categories {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    /* Standardized mobile padding */
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.section-header a {
    font-size: 0.85rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.popular-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 columns mobile */
    gap: 1rem;
}

@media (min-width: 768px) {
    .popular-grid {
        grid-template-columns: repeat(4, 1fr);
        /* 4 columns tablet */
    }
}

@media (min-width: 1024px) {
    .popular-grid {
        grid-template-columns: repeat(6, 1fr);
        /* 6 columns desktop */
    }
}

/* Projects Header Center */
.proyek-minggu {
    padding: 3rem 0;
    background-color: var(--bg-color);
}

.section-header-center {
    text-align: center;
    margin-bottom: 2rem;
}

.section-header-center h2 {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: capitalize;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.section-header-center p {
    font-size: 1rem;
    color: #666;
    margin: 0;
}

/* Seamless Puzzle Grid: Proyek Minggu Ini */
.puzzle-grid-joined {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    width: 100%;
}

.puzzle-item {
    position: relative;
    overflow: hidden;
    height: 350px;
    /* Fixed height for consistent rows */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

/* Width Staggering: Black (Long 65%) | White (Short 35%) */
.puzzle-item.black-theme {
    width: calc(65% - 0.125rem);
    /* Adjust for gap */
}

.puzzle-item.white-theme {
    width: calc(35% - 0.125rem);
    /* Adjust for gap */
}

/* Border Radius for Outer Corners */
.puzzle-item:nth-child(1) {
    border-radius: 12px 0 0 0;
}

.puzzle-item:nth-child(2) {
    border-radius: 0 12px 0 0;
}

.puzzle-item:nth-child(3) {
    border-radius: 0 0 0 12px;
}

.puzzle-item:nth-child(4) {
    border-radius: 0 0 12px 0;
}

.puzzle-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.puzzle-item:hover img {
    transform: scale(1.1);
}

.puzzle-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    padding: 1rem;
    text-align: center;
}

.puzzle-item:hover .puzzle-overlay {
    opacity: 1;
}

.puzzle-overlay h3 {
    color: var(--white);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0;
}

/* Black & White Themes */
.black-theme {
    background-color: var(--primary-color);
}

.white-theme {
    background-color: var(--gray-medium);
}

@media (max-width: 768px) {
    .puzzle-grid-joined {
        width: 100%;
        margin: 0 auto;
        gap: 0.15rem;
    }

    .puzzle-item {
        height: 250px;
        /* Shorter for mobile */
    }

    .puzzle-item.black-theme {
        width: calc(65% - 0.075rem);
    }

    .puzzle-item.white-theme {
        width: calc(35% - 0.075rem);
    }

    .puzzle-overlay {
        opacity: 1;
        background: rgba(0, 0, 0, 0.3);
    }

    .puzzle-overlay h3 {
        font-size: 0.75rem;
    }
}

/* Custom Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}

.lightbox.show {
    display: flex;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: var(--white);
    font-size: 32px;
    cursor: pointer;
    transition: transform 0.3s ease, color 0.3s ease;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-close:hover {
    color: #ccc;
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 40px;
    transform: translateY(-50%);
    pointer-events: none;
    /* Let clicks pass through to empty space */
}

.lightbox-nav button {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--white);
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 50%;
    pointer-events: auto;
    /* Active for buttons */
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.puzzle-item {
    cursor: pointer;
    /* Feedback for interactive cards */
}

@media (max-width: 768px) {
    .lightbox-nav {
        padding: 0 15px;
    }

    .lightbox-nav button {
        padding: 10px 15px;
        font-size: 18px;
    }

    .lightbox-close {
        top: 15px;
        right: 20px;
        font-size: 32px;
    }
}

.popular-card {
    background-color: var(--white);
    border-radius: 8px;
    /* Rounded corners */
    overflow: hidden;
    text-decoration: none;
    color: var(--text-color);
    border: 1px solid var(--gray-medium);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
}

.popular-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border-color: var(--primary-color);
}

.card-image {
    width: 100%;
    aspect-ratio: 3/4;
    /* Portrait aspect ratio */
    display: flex;
    /* Center placeholder icon */
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 2rem;
}

.card-info {
    padding: 1rem;
}

.card-info h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

.card-info p {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

/* Features Section */
.features {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border: 1px solid var(--gray-medium);
    /* Border instead of shadow */
    border-radius: 8px;
    box-shadow: none;
    /* Flat design */
    transition: border-color 0.3s ease;
}

.feature-card:hover {
    border-color: var(--primary-color);
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
}

.feature-card p {
    font-size: 0.95rem;
    color: #666;
}

/* Service Detail Page Styles */
.service-hero {
    height: 40vh;
    min-height: 250px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    color: var(--white);
    position: relative;
    padding: 0 1.5rem;
}

.service-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.service-hero .container {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.service-hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-section {
    padding: 3rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-intro {
    margin-bottom: 3rem;
}

.service-intro h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.service-intro h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--secondary-color);
}

.service-intro p {
    line-height: 1.7;
    color: #444;
    font-size: 1.05rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.info-card {
    background: var(--white);
    border: 1px solid var(--gray-medium);
    padding: 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.info-card h3 {
    font-size: 1.15rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.info-card p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.info-card ul {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

.info-card li {
    font-size: 0.9rem;
    color: #444;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.info-card li::before {
    content: '→';
    margin-right: 10px;
    color: var(--secondary-color);
    font-weight: bold;
}

@media (max-width: 768px) {
    .service-hero {
        height: 30vh;
        min-height: 200px;
    }

    .service-hero h1 {
        font-size: 1.6rem;
    }

    .service-section {
        padding: 1.5rem 1.25rem;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .info-card {
        padding: 1.5rem;
    }

    .info-card h3 {
        font-size: 1.1rem;
    }
}

/* Request Custom Section */
.request-custom {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5rem 0;
}

.request-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.outlined-img {
    width: 100%;
    height: auto;
    border: 2px solid var(--white);
    padding: 10px;
    border-radius: 20px;
    display: block;
}

.request-title {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.request-desc {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.request-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.step-num {
    width: 35px;
    height: 35px;
    background-color: var(--white);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.step-text {
    font-size: 1rem;
    font-weight: 500;
}

.request-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-wa {
    background-color: #25d366 !important;
    /* WhatsApp Green */
    color: white !important;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-wa:hover {
    background-color: #128c7e !important;
    transform: translateY(-2px);
}

.btn-outline-white {
    background-color: transparent !important;
    color: white !important;
    border: 1px solid white !important;
}

.btn-outline-white:hover {
    background-color: white !important;
    color: var(--primary-color) !important;
    transform: translateY(-2px);
}

@media (max-width: 991px) {
    .request-custom {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .request-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .request-content {
        text-align: left;
    }

    .request-title {
        font-size: 1.5rem;
    }

    .step-item {
        justify-content: flex-start;
        text-align: left;
    }

    .request-actions {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .request-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .step-text {
        font-size: 0.85rem;
    }
}

/* Why Choose Us Section */
.why-choose-us {
    padding: 6rem 0;
    background-color: var(--white);
}



.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.why-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    padding: 2.5rem 2rem;
    background: #fff;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.why-item:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.why-icon {
    width: 50px;
    height: 50px;
    background-color: #f8f9fa;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.4rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.why-item:hover .why-icon {
    background-color: var(--primary-color);
    color: var(--white);
}

.why-text h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.why-text p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.5;
}

@media (max-width: 991px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 576px) {
    .why-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .why-choose-us {
        padding: 4rem 1.5rem;
    }

    .why-item {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        padding: 1.5rem;
        gap: 1.25rem;
    }

    .why-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
        border-radius: 10px;
    }

    .why-text h3 {
        font-size: 1rem;
        margin-bottom: 0.25rem;
    }

    .why-text p {
        font-size: 0.85rem;
    }
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 5rem 0 0;
    /* Top padding, footer-bottom handles bottom */
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    padding-bottom: 4rem;
}

.footer-col h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--white);
    opacity: 0.3;
}

.footer-desc {
    font-size: 0.9rem;
    line-height: 1.7;
    opacity: 0.8;
    margin: 1.5rem 0;
}

.footer-links,
.contact-info {
    list-style: none;
    padding: 0;
}

.footer-links li,
.contact-info li {
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    gap: 0.75rem;
    opacity: 0.8;
}

.contact-info i {
    width: 20px;
    margin-top: 4px;
}

.footer-logo {
    height: 35px !important;
    /* Fixed height for footer brand */
}

.footer-col.about .social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-col.about .social-links a {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-col.about .social-links a:hover {
    background-color: var(--white);
    color: var(--primary-color);
    border-color: var(--white);
}

.footer-bottom {
    background-color: #0a0a0a;
    /* Slightly darker */
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    opacity: 0.5;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background-color: #0c0c0c;
    /* Deep Dark */
    color: #fff;
    border-top: 1px solid #1a1a1a;
}

.faq-section .section-header-center h2 {
    color: #fff;
}

.faq-section .section-header-center p {
    color: #888;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.faq-item {
    background: #181818;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    border: 1px solid #2a2a2a;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.faq-item:hover {
    border-color: #444;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.faq-question {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.3s ease;
    border-radius: 12px;
}

.faq-question h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
    line-height: 1.4;
}

.faq-toggle {
    width: 32px;
    height: 32px;
    background: #2a2a2a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #fff;
    transition: all 0.4s ease;
    flex-shrink: 0;
    margin-left: 1.5rem;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    opacity: 0;
}

.faq-answer p {
    padding: 0 2rem 1.75rem;
    margin: 0;
    color: #aaa;
    line-height: 1.8;
    font-size: 1rem;
}

/* Active State */
.faq-item.active {
    border-color: #444;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    background: #1e1e1e;
}

.faq-item.active .faq-question {
    background-color: #222;
}

.faq-item.active .faq-answer {
    max-height: 800px;
    /* Increased for safety */
    opacity: 1;
}

/* Testimonial Marquee */
.testimonials-section {
    padding: 80px 0;
    overflow: hidden;
    background-color: #fff;
    border-top: 1px solid #f0f0f0;
}

.testimonial-marquee-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-top: 2rem;
}

.marquee-track {
    display: flex;
    overflow: hidden;
    user-select: none;
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.marquee-content {
    display: flex;
    flex-shrink: 0;
    gap: 1.5rem;
    padding: 1rem 0;
}

/* Track Animations */
.marquee-left .marquee-content {
    animation: marquee-scroll-left 50s linear infinite;
}

.marquee-right .marquee-content {
    animation: marquee-scroll-right 50s linear infinite;
}

@keyframes marquee-scroll-left {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-50% - 0.75rem));
    }
}

@keyframes marquee-scroll-right {
    from {
        transform: translateX(calc(-50% - 0.75rem));
    }

    to {
        transform: translateX(0);
    }
}

/* Testimonial Card */
.testimonial-card {
    flex-shrink: 0;
    width: 350px;
    padding: 2rem;
    background: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    background: #fff;
}

.stars {
    color: #ffc107;
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.testi-text {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testi-info {
    display: flex;
    flex-direction: column;
}

.testi-info strong {
    font-size: 1rem;
    color: var(--primary-color);
}

.testi-info span {
    font-size: 0.8rem;
    color: #888;
}

/* Blog Section */
.blog-section {
    padding: 80px 0;
    background-color: #fcfcfc;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 3.5rem;
}

.blog-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #eee;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.blog-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-image img {
    transform: scale(1.1);
}

.blog-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: var(--primary-color);
    color: #fff;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.blog-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-date {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.75rem;
    display: block;
}

.blog-content h3 {
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 700;
}

.blog-content p {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-more {
    margin-top: auto;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-more i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.blog-more:hover i {
    transform: translateX(5px);
}

.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
}

.blog-header .section-header-left {
    margin-bottom: 0;
}

.btn-view-all {
    padding: 0.8rem 2rem;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-view-all:hover {
    background: var(--primary-color);
    color: #fff;
}

@media (max-width: 1200px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .testimonial-card {
        width: 300px;
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    footer {
        padding: 3rem 1rem 0;
        /* Reduced top and horizontal padding */
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding-bottom: 3rem;
    }

    .footer-col h3 {
        margin-bottom: 1rem;
    }
}