/* Home Page Specific Styles */

/* --- General Section Styles --- */
.section {
    padding: 6rem 0;
}

.section-light {
    background-color: var(--color-bg-body);
}

.section-gray {
    background-color: #f8fafc; /* Slate 50 */
}

.section-dark {
    background-color: var(--color-bg-footer);
    color: var(--color-text-light);
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: inherit;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--color-text-muted);
}
.section-dark .section-header p {
    color: #9ca3af;
}

/* --- 1. Hero Section --- */
.hero {
    padding: clamp(2rem, 5vw + 1rem, 6rem) 0 clamp(4rem, 5vw + 2rem, 6rem);
    display: flex;
    align-items: center;
    min-height: calc(100vh - var(--nav-height) - 2rem);
    position: relative;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: clamp(3rem, 5vw, 6rem);
    align-items: center;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: 1.25rem;
    padding: 0.5rem 1rem;
    background-color: rgba(37, 99, 235, 0.08);
    border-radius: 2rem;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 4vw + 1rem, 4.25rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #0f172a; /* Slate 900 */
    letter-spacing: -0.03em;
}

.hero-content h1 span {
    color: var(--color-primary);
}

.hero-content p {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    color: var(--color-text-muted);
    margin-bottom: 2.5rem;
    max-width: 540px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.btn-secondary {
    background-color: transparent;
    color: var(--color-text-main);
    border: 1px solid var(--color-border);
}
.btn-secondary:hover {
    background-color: #f1f5f9; /* Slate 100 */
    border-color: #cbd5e1;
}

.hero-visual {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.15);
    border: 1px solid rgba(0,0,0,0.05);
    aspect-ratio: 4/3;
    display: flex;
}
.hero-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- 2. Value Proposition --- */
.value-prop-section {
    padding: 8rem 0;
    background-color: #ffffff;
    border-top: 1px solid rgba(0,0,0,0.03); /* Subtle separation from hero */
}

.value-prop-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 4rem;
    align-items: start;
}

.value-prop-label {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.vp-eyebrow {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-muted);
}

.vp-line {
    width: 40px;
    height: 2px;
    background-color: var(--color-primary);
}

.value-prop-content h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1.3;
    color: #1e293b;
    font-weight: 500;
    letter-spacing: -0.02em;
    max-width: 900px;
}

.value-prop-content h2 span {
    color: var(--color-primary);
    font-weight: 600;
}

/* --- 3. Layanan (Services) --- */
.services-section {
    padding: 8rem 0;
    background-color: #f8fafc; /* Slate 50 */
}

.services-header-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 5rem;
    align-items: end;
}

.sh-eyebrow {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.sh-title h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.1;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin-bottom: 0;
}

.sh-desc p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--color-text-muted);
    margin-bottom: 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}


.service-card {
    background: #ffffff;
    padding: 3.5rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(0,0,0,0.06);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0,0,0,0.08);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.05);
}

.service-icon {
    width: 64px;
    height: 64px;
    background-color: #f1f5f9;
    color: var(--color-primary);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    transition: background-color 0.4s ease, color 0.4s ease;
}

.service-card:hover .service-icon {
    background-color: var(--color-primary);
    color: #ffffff;
}

.service-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #0f172a;
}
.service-content p {
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

.services-footer {
    text-align: center;
    margin-top: 4rem;
}

.btn-services-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-services-cta .arrow {
    transition: transform 0.3s ease;
}

.btn-services-cta:hover {
    color: #1d4ed8;
}

.btn-services-cta:hover .arrow {
    transform: translateX(4px);
}

/* --- 4. Portfolio --- */
.portfolio-section {
    padding: 8rem 0;
    background-color: var(--color-bg-body);
}

.portfolio-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 5rem;
}

.ph-eyebrow {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.portfolio-header h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    line-height: 1.1;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

.portfolio-header p {
    font-size: 1.125rem;
    color: var(--color-text-muted);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.portfolio-item {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    background: #e2e8f0;
    display: block;
    aspect-ratio: 4/3;
    isolation: isolate;
}

.portfolio-item.featured {
    grid-column: span 2;
    aspect-ratio: 21/9;
}

.portfolio-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    background: #e2e8f0;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    object-fit: cover;
}

.portfolio-item:hover .portfolio-image {
    transform: scale(1.05);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 40%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 3rem;
    z-index: 10;
}

.portfolio-category {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    transform: translateY(10px);
    opacity: 0;
    transition: all 0.4s ease 0.1s;
}

.portfolio-title {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 0;
    transform: translateY(10px);
    opacity: 0.9;
    transition: all 0.4s ease;
}

.portfolio-item:hover .portfolio-category,
.portfolio-item:hover .portfolio-title {
    transform: translateY(0);
    opacity: 1;
}

/* --- 5. Mengapa kawanweb.id (Features) --- */
.features-section {
    padding: 8rem 0;
    background-color: #ffffff;
}

.features-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 6rem;
    align-items: start;
}

.features-intro {
    position: sticky;
    top: 150px;
}

.f-eyebrow {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.features-intro h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1.15;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.features-intro p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--color-text-muted);
}

.features-list {
    display: flex;
    flex-direction: column;
}

.feature-block {
    display: flex;
    gap: 3rem;
    padding: 4rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.feature-block:first-child {
    padding-top: 0;
    border-top: none;
}

.f-number {
    font-size: 4rem;
    line-height: 1;
    font-weight: 300;
    color: rgba(37, 99, 235, 0.15); /* primary color with low opacity */
    flex-shrink: 0;
    font-family: monospace;
    letter-spacing: -0.05em;
}

.f-content h3 {
    font-size: 1.5rem;
    color: #0f172a;
    margin-bottom: 1rem;
}

.f-content p {
    color: var(--color-text-muted);
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* --- 6. Proses Kerja --- */
.workflow-section {
    padding: 8rem 0;
    background-color: var(--color-bg-body);
}

.workflow-header-container {
    max-width: 700px;
    margin-bottom: 5rem;
}

.w-eyebrow {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.workflow-header-container h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    line-height: 1.15;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.workflow-header-container p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--color-text-muted);
}

.workflow-list {
    display: flex;
    flex-direction: column;
}

.workflow-row {
    display: grid;
    grid-template-columns: 80px 1fr 2fr;
    gap: 3rem;
    padding: 3.5rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.workflow-row:first-child {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.w-num {
    font-family: monospace;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--color-primary);
    padding-top: 0.25rem;
}

.w-title {
    font-size: 1.5rem;
    color: #0f172a;
    font-weight: 500;
    margin-bottom: 0;
}

.w-desc {
    color: var(--color-text-muted);
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 0;
}

/* --- 7. Final CTA --- */
.cta-section {
    padding: 10rem 0;
    background-color: #0f172a; /* Slate 900 */
    color: #ffffff;
}

.cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: end;
}

.cta-eyebrow {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8; /* Slate 400 */
    margin-bottom: 1.5rem;
}

.cta-title-area h2 {
    font-size: clamp(2.5rem, 4vw, 4.5rem);
    line-height: 1.1;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin-bottom: 0;
    color: #ffffff;
}

.cta-action-area {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    padding-bottom: 0.5rem; /* Optical alignment */
}

.cta-action-area p {
    font-size: 1.25rem;
    line-height: 1.6;
    color: #cbd5e1; /* Slate 300 */
    margin-bottom: 0;
    max-width: 500px;
}

.cta-button-wrap {
    display: flex;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 500;
    border-radius: 4rem; /* Pill shape */
    transition: all 0.3s ease;
}

/* --- Recent Articles Section --- */
.home-recent-articles {
    padding: 6rem 0;
    background-color: var(--color-bg-light);
}

.hra-header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
}

.hra-header {
    max-width: 600px;
}

.hra-eyebrow {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.hra-header h2 {
    font-size: clamp(2rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
    color: var(--color-text-dark);
}

.hra-header p {
    font-size: 1.125rem;
    color: var(--color-text-muted);
}

.hra-view-all {
    display: inline-flex;
    align-items: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.hra-view-all:hover {
    color: var(--color-primary);
}

.hra-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.hra-card {
    background: #ffffff;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.hra-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px -10px rgba(15, 23, 42, 0.1);
}

.hra-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.hra-thumbnail {
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background-color: var(--color-gray-100);
}

.hra-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hra-card:hover .hra-thumbnail img {
    transform: scale(1.05);
}

.hra-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.hra-content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.hra-category {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 0.75rem;
}

.hra-title {
    font-size: 1.25rem;
    line-height: 1.4;
    font-weight: 600;
    color: var(--color-text-dark);
    margin: 0 0 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hra-excerpt {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin: 0 0 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hra-meta {
    margin-top: auto;
    font-size: 0.875rem;
    color: #94a3b8;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1023px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .value-prop-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .value-prop-label {
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }
    
    .vp-line {
        flex-grow: 1; /* Line expands to fill space on mobile/tablet */
        height: 1px;
        background-color: rgba(0,0,0,0.1);
    }
    .services-header-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-bottom: 3.5rem;
        text-align: left;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .portfolio-item.featured {
        grid-column: span 1;
        aspect-ratio: 4/3;
    }
    
    .portfolio-overlay {
        padding: 2rem;
    }
    
    .portfolio-title {
        font-size: 1.5rem;
        opacity: 1;
        transform: none;
    }
    
    .portfolio-category {
        opacity: 1;
        transform: none;
    }
    
    .hero-content p {
        margin: 0 auto 2rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .features-layout {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .features-intro {
        position: static;
    }
    
    .feature-block {
        gap: 1.5rem;
        padding: 2.5rem 0;
    }
    
    .f-number {
        font-size: 2.5rem;
    }
    
    .workflow-row {
        grid-template-columns: 80px 1fr;
    }
    
    .w-title {
        grid-column: 2 / -1;
        margin-bottom: 1rem;
    }
    
    .w-desc {
        grid-column: 2 / -1;
    }
    
    .cta-section {
        padding: 6rem 0;
    }
    
    .cta-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        align-items: start;
    }
    
    .cta-action-area {
        padding-bottom: 0;
    }
}

@media (max-width: 767px) {
    .home-cta-inner {
        padding: 4rem 2rem;
    }
    
    .hra-header-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .hra-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .section {
        padding: 4rem 0;
    }
    
    .hero {
        min-height: auto;
    }
    
    .value-prop-section {
        padding: 5rem 0;
    }
    
    .services-section {
        padding: 5rem 0;
    }
    
    .features-section {
        padding: 5rem 0;
    }
    
    .feature-block {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .f-number {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    
    .portfolio-section {
        padding: 5rem 0;
    }
    
    .portfolio-item {
        aspect-ratio: 1/1; /* More square on very small screens */
    }
    
    .portfolio-item.featured {
        aspect-ratio: 4/3; /* Keeps featured slightly wider on mobile */
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .workflow-section {
        padding: 5rem 0;
    }
    
    .workflow-row {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 2.5rem 0;
    }
    
    .w-title, .w-desc {
        grid-column: 1 / -1;
    }
    
    .cta-button-wrap {
        display: block;
    }
    
    .cta-button-wrap .btn {
        width: 100%;
        text-align: center;
    }
    
    .hra-grid {
        grid-template-columns: 1fr;
    }
    
    .home-recent-articles {
        padding: 4rem 0;
    }
}
