/* ===================================
   SPRnesia - Index Page Styles (OPTIMIZED)
   Khusus untuk halaman utama
   ================================ */

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    will-change: opacity;
}

.slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 0 var(--container-padding);
}

.hero-subtitle {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-white);
    margin-bottom: 24px;
    opacity: 0.9;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 400;
    color: var(--color-white);
    margin-bottom: 32px;
    line-height: 1.1;
    letter-spacing: -1px;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 48px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--color-white);
    opacity: 0.8;
}

.scroll-indicator span {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: var(--color-white);
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0%, 100% { transform: translateY(0); opacity: 0.8; }
    50% { transform: translateY(10px); opacity: 0.3; }
}

/* ===== SERVICES PREVIEW ===== */
.services-preview {
    padding: var(--section-padding) 0;
    background: var(--color-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.service-card {
    background: var(--color-white);
    border-radius: 0;
    overflow: hidden;
    transition: var(--transition-smooth);
    border: 1px solid var(--color-border);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.service-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    will-change: transform;
}

.service-card:hover .service-image img {
    transform: scale(1.08);
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.3) 100%);
}

.service-content {
    padding: 40px 32px;
}

.service-content h3 {
    font-size: clamp(1.5rem, 2vw, 1.75rem);
    margin-bottom: 16px;
    color: var(--color-primary);
}

.service-content p {
    margin-bottom: 24px;
    line-height: 1.8;
}

/* ===== PROJECTS PREVIEW - BENTO GRID ===== */
.projects-preview-new {
    padding: var(--section-padding) 0;
    background: var(--color-white);
}

.projects-bento {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.project-bento-item {
    position: relative;
    overflow: hidden;
    background: var(--color-light-gray);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.project-bento-item.featured {
    grid-column: span 2;
    grid-row: span 2;
}

.project-bento-item:not(.featured) {
    aspect-ratio: 1/1;
}

.project-bento-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.project-bento-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.project-bento-item:hover .project-bento-image img {
    transform: scale(1.08);
}

.project-bento-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
    color: var(--color-white);
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-bento-item:hover .project-bento-info {
    transform: translateY(0);
}

.project-cat {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 8px;
}

.project-bento-info h3 {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    color: var(--color-white);
    margin: 0;
}

.project-bento-item.featured .project-bento-info h3 {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
}

/* ===== VISION & MISSION ===== */
.vision-mission {
    background: var(--color-light-gray);
    padding: 2%;
}

.vision-mission .intro-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 60px 5%;
    background: var(--color-white);
}

.vision-mission .intro-content {
    text-align: center;
    max-width: 800px;
}

.vision-mission .intro-content h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 400;
    color: var(--color-primary);
    margin-bottom: 30px;
    line-height: 1.2;
}

.vision-mission .intro-content p {
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.8;
    color: var(--color-secondary);
    font-weight: 300;
}

.vm-field {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 70vh;
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.vm-field.visible {
    opacity: 1;
    transform: translateY(0);
}

.vm-image {
    position: relative;
    overflow: hidden;
}

.vm-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    will-change: transform;
}

.vm-field:hover .vm-image img {
    transform: scale(1.05);
}

.vm-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(40px, 8vw, 100px);
    background: var(--color-white);
}

.vm-field.reverse .vm-content {
    background: var(--color-light-gray);
}

.vm-content h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 400;
    margin-bottom: 30px;
    color: var(--color-primary);
    line-height: 1.3;
    letter-spacing: 0.5px;
}

.vm-content p {
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    line-height: 1.9;
    color: var(--color-secondary);
    max-width: 550px;
    font-weight: 300;
}

/* ===== ABOUT PREVIEW ===== */
.about-preview {
    padding: 0;
    background: var(--color-white);
}

.about-image-container {
    position: relative;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
}

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

.about-overlay-content {
    position: absolute;
    bottom: 80px;
    right: 80px;
    text-align: right;
    color: var(--color-white);
    max-width: 500px;
}

.about-overlay-content h2 {
    color: var(--color-white);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 16px;
}

.about-overlay-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 2vw, 1.125rem);
    margin-bottom: 32px;
}

/* ===== PARTNERS ===== */
.partners {
    padding: var(--section-padding) 0;
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 60px;
    align-items: center;
    justify-items: center;
}

.partner-logo {
    width: 100%;
    max-width: 140px;
    transition: var(--transition-smooth);
    filter: grayscale(100%) opacity(0.6);
}

.partner-logo:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.05);
}

.partner-logo img {
    width: 100%;
    height: auto;
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: var(--section-padding) 0;
    background: var(--color-primary);
    text-align: center;
}

.cta-content h2 {
    color: var(--color-white);
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 24px;
}

.cta-content p {
    color: rgba(255, 255, 255, 0.8);
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== RESPONSIVE ===== */

/* Large Desktop */
@media (min-width: 1400px) {
    .projects-bento {
        gap: 32px;
    }
}

/* Tablet Large - 992px */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .projects-bento {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .project-bento-item.featured {
        grid-column: span 2;
        grid-row: span 1;
    }

    .vm-field {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .vm-field .vm-image {
        order: 1; 
    }
    
    .vm-field .vm-content {
        order: 2; 
    }

    .vm-image {
        min-height: 400px;
    }

    .vm-content {
        padding: 60px 50px;
    }
    
    .about-overlay-content {
        bottom: 60px;
        right: 60px;
        left: 60px;
    }
}

/* Tablet - 768px */
@media (max-width: 768px) {
    .hero {
        min-height: 600px;
        height: 100dvh;
    }

    .hero-content {
        padding: 0 30px;
    }
    
    .hero-description {
        margin-bottom: 36px;
    }

    .projects-bento {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-bento-item.featured {
        grid-column: span 1;
        grid-row: span 1;
    }

    .project-bento-item:not(.featured) {
        aspect-ratio: 16/11;
    }

    .project-bento-info {
        padding: 24px;
        transform: translateY(0);
        background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 100%);
    }

    .vm-image {
        min-height: 350px;
    }

    .vm-content {
        padding: 50px 30px;
    }

    .about-overlay-content {
        bottom: 40px;
        right: 30px;
        left: 30px;
        text-align: center;
    }

    .partners-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 40px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-buttons .btn {
        width: 100%;
        max-width: 320px;
    }
}

/* Mobile - 576px */
@media (max-width: 576px) {
    .hero {
        min-height: 550px;
    }

    .hero-content {
        padding: 0 20px;
    }
    
    .hero-subtitle {
        font-size: 0.75rem;
        letter-spacing: 2px;
        margin-bottom: 16px;
    }

    .scroll-indicator {
        display: none;
    }

    .service-content {
        padding: 32px 24px;
    }
    
    .project-bento-info {
        padding: 20px;
    }

    .about-overlay-content {
        bottom: 30px;
        right: 20px;
        left: 20px;
    }

    .vm-content {
        padding: 40px 24px;
    }

    .partners-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .partner-logo {
        max-width: 120px;
    }
}

/* Extra Small - 375px */
@media (max-width: 375px) {
    .hero {
        min-height: 500px;
    }
    
    .service-content {
        padding: 28px 20px;
    }
    
    .vm-content {
        padding: 36px 20px;
    }
    
    .about-overlay-content {
        bottom: 20px;
        right: 15px;
        left: 15px;
    }
}