/* HOME.CSS - Complete Responsive Styling */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.6;
    background: #fff;
}

/* ========================================
   HERO CAROUSEL SECTION
======================================== */
.hero-carousel {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 660px;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

/* Overlay */
.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

/* Content Container */
.hero-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 6%;
    z-index: 2;
}

.hero-text {
    max-width: 600px;
    margin-right: auto;
}

/* Animations */
.hero-slide.active .hero-text h1 {
    animation: slideUp 0.8s ease forwards;
}

.hero-slide.active .hero-text p {
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero-slide.active .hero-buttons {
    animation: slideUp 0.8s ease forwards;
    animation-delay: 0.4s;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Text Styling */
.hero-text h1 {
    font-size: 2.5rem;
    color: #000000;
    margin-bottom: 1.5rem;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -0.5px;
    opacity: 0;
}

.hero-text p {
    color: #000000;
    margin-bottom: 2.5rem;
    font-size: 1rem;
    line-height: 1.8;
    opacity: 0;
}

/* Buttons */
.hero-buttons {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    opacity: 0;
    flex-wrap: wrap;
}

.hero-btn {
    background: #1e4d6b;
    color: white;
    padding: 0.9rem 2.2rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
}

.hero-btn:hover {
    background: #163d54;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(30, 77, 107, 0.3);
}

.hero-link {
    color: #163d54;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 2px solid #163d54;
    padding-bottom: 2px;
    transition: all 0.3s;
}

.hero-link:hover {
    color: #1e4d6b;
    border-bottom-color: #1e4d6b;
}

/* Navigation Arrows */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(30, 77, 107, 0.7);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-nav:hover {
    background: rgba(30, 77, 107, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: 30px;
}

.carousel-nav.next {
    right: 30px;
}

/* Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid #ffffff;
    cursor: pointer;
    transition: all 0.3s;
}

.indicator.active {
    background: #ffffff;
    width: 35px;
    border-radius: 6px;
}

/* ========================================
   ABOUT SECTION
======================================== */
.about {
    padding: 5rem 6%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 5rem;
    align-items: center;
    background: #fff;
}

.about-content {
    flex: 1;
}

.about-badge {
    display: inline-block;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    color: #1e4d6b;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.about h2 {
    font-size: 2.2rem;
    color: #1e4d6b;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.about p {
    color: #5a6c7d;
    margin-bottom: 1rem;
    line-height: 1.8;
    font-size: 0.95rem;
}

.about-btn {
    background: #1e4d6b;
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    margin-top: 1rem;
    transition: all 0.3s;
    display: inline-block;
    text-decoration: none;
}

.about-btn:hover {
    background: #163d54;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(30, 77, 107, 0.3);
}

/* Image Grid */
.about-images {
    flex: 1;
}

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

.about-img-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.about-img-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.about-img-card.large {
    grid-row: span 2;
}

.about-img-card.wide {
    grid-column: span 2;
}

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

.img-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    padding: 1.5rem 1rem 1rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.about-img-card:hover .img-overlay {
    opacity: 1;
}

.img-overlay span {
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
}

/* ========================================
   SERVICES SECTION
======================================== */
.services {
    padding: 5rem 6%;
    background: linear-gradient(180deg, #f8f9fa 0%, #e9ecef 100%);
}

.services-container {
    max-width: 1400px;
    margin: 0 auto;
}

.services h2 {
    text-align: center;
    font-size: 2rem;
    color: #1e4d6b;
    margin-bottom: 3.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-card {
    position: relative;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
    transition: background 0.3s;
}

.service-card:hover::before {
    background: rgba(0, 0, 0, 0.5);
}

.service-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(30, 77, 107, 0.95);
    color: white;
    padding: 1.5rem;
    text-align: center;
    z-index: 2;
}

.service-overlay h3 {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* ========================================
   TESTIMONIALS SECTION
======================================== */
.testimonials {
    padding: 5rem 6%;
    max-width: 1400px;
    margin: 0 auto;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
}

.testimonials-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.testimonials-header h2 {
    font-size: 2rem;
    color: #1e4d6b;
    margin-bottom: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.testimonials-header p {
    color: #5a6c7d;
    font-size: 1rem;
}

/* FILTER */
.testimonial-filter {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 20px 0 30px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.filter-btn:hover {
    border-color: #1e4d6b;
    color: #1e4d6b;
}

.filter-btn.active {
    background: #1e4d6b;
    color: #fff;
    border-color: #1e4d6b;
}

/* TESTIMONIALS GRID */
/* Horizontal scroll testimonials */
.testimonials-wrapper{
    overflow-x:auto;
    padding-bottom:10px;
    scroll-behavior:smooth;
}

.testimonials-wrapper::-webkit-scrollbar{
    height:6px;
}

.testimonials-wrapper::-webkit-scrollbar-thumb{
    background:#ccc;
    border-radius:10px;
}

.testimonials-grid{
    display:flex;
    gap:20px;
    flex-wrap:nowrap;
}

/* Card width */
.testimonial-card{
    min-width:380px;
    flex-shrink:0;
}


/* CARD */
.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border: 1px solid #e9ecef;
    display: flex;
    gap: 1.5rem;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border-color: #1e4d6b;
}

/* HIDDEN UNTUK FILTER */
.testimonial-card.hidden {
    display: none;
}

/* IMAGE - FIXED: Hilangkan background biru */
.testimonial-image {
    width: 120px;
    min-height: 180px;
    overflow: hidden;
    background: #f5f5f5;
    flex-shrink: 0;
    border-radius: 8px;
}

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

.testimonial-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.testimonial-content.no-image {
    padding: 0;
}

.testimonial-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e4d6b;
    margin-bottom: 0.5rem;
}

.stars {
    color: #ffa726;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.testimonial-text {
    color: #5a6c7d;
    font-size: 0.9rem;
    line-height: 1.7;
}

/* EMPTY */
.no-testimonial {
    padding: 40px;
    text-align: center;
    color: #888;
    font-style: italic;
    grid-column: 1 / -1;
}

/* ========================================
   RESPONSIVE DESIGN - TABLET
   (max-width: 968px)
======================================== */
@media (max-width: 968px) {
    /* Hero */
    .hero-carousel {
        height: 80vh;
        min-height: 550px;
    }

    .hero-content {
        padding: 0 5%;
    }

    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 0.9rem;
        margin-bottom: 2rem;
    }

    .hero-btn {
        padding: 0.8rem 1.8rem;
        font-size: 0.85rem;
    }

    .carousel-nav {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

    .carousel-nav.prev {
        left: 20px;
    }

    .carousel-nav.next {
        right: 20px;
    }

    /* About */
    .about {
        flex-direction: column;
        gap: 3rem;
        padding: 4rem 5%;
    }

    .about h2 {
        font-size: 2rem;
    }

    .image-grid {
        grid-template-rows: repeat(3, 160px);
    }

    /* Services */
    .services {
        padding: 4rem 5%;
    }

    .services h2 {
        font-size: 1.8rem;
        margin-bottom: 2.5rem;
    }

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

    .service-card {
        height: 280px;
    }

    /* Testimonials */
    .testimonials {
        padding: 4rem 5%;
    }

    .testimonials-header h2 {
        font-size: 1.8rem;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .testimonial-card {
        padding: 1.5rem;
    }
}

/* ========================================
   RESPONSIVE DESIGN - MOBILE
   (max-width: 640px)
======================================== */
@media (max-width: 640px) {
    /* Hero */
    .hero-carousel {
        height: 70vh;
        min-height: 500px;
    }

    .hero-content {
        padding: 0 5%;
        align-items: flex-start;
        padding-top: 20%;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-text h1 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
        line-height: 1.4;
    }

    .hero-text p {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
        line-height: 1.6;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        width: 100%;
    }

    .hero-btn {
        width: 100%;
        text-align: center;
        padding: 0.9rem 1.5rem;
        font-size: 0.85rem;
    }

    .hero-link {
        text-align: center;
        width: 100%;
    }

    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .carousel-nav.prev {
        left: 15px;
    }

    .carousel-nav.next {
        right: 15px;
    }

    .carousel-indicators {
        bottom: 20px;
        gap: 8px;
    }

    .indicator {
        width: 10px;
        height: 10px;
    }

    .indicator.active {
        width: 28px;
    }

    /* About */
    .about {
        padding: 3rem 5%;
        gap: 2.5rem;
    }

    .about-badge {
        font-size: 0.8rem;
        padding: 0.4rem 1rem;
    }

    .about h2 {
        font-size: 1.6rem;
        margin-bottom: 1rem;
    }

    .about p {
        font-size: 0.9rem;
    }

    .about-btn {
        width: 100%;
        text-align: center;
        padding: 0.9rem 2rem;
        font-size: 0.85rem;
    }

    .image-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 200px);
        gap: 0.8rem;
    }

    .about-img-card.large,
    .about-img-card.wide {
        grid-row: span 1;
        grid-column: span 1;
    }

    .img-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
    }

    /* Services */
    .services {
        padding: 3rem 5%;
    }

    .services h2 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
        letter-spacing: 1px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 1rem;
    }

    .service-card {
        height: 250px;
    }

    .service-overlay {
        padding: 1.2rem;
    }

    .service-overlay h3 {
        font-size: 0.95rem;
    }

    /* Testimonials */
    .testimonials {
        padding: 3rem 5%;
    }

    .testimonials-header {
        margin-bottom: 2rem;
    }

    .testimonials-header h2 {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
        letter-spacing: 1px;
    }

    .testimonials-header p {
        font-size: 0.9rem;
    }

    .testimonial-filter {
        gap: 8px;
        margin: 15px 0 20px;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .testimonials-grid {
        gap: 1.2rem;
    }

    .testimonial-card {
        flex-direction: column;
        padding: 1.2rem;
        gap: 1rem;
    }

    .testimonial-image {
        width: 100%;
        height: 200px;
        min-height: 200px;
    }

    .testimonial-name {
        font-size: 1rem;
    }

    .stars {
        font-size: 0.85rem;
    }

    .testimonial-text {
        font-size: 0.85rem;
        line-height: 1.6;
    }
}

/* ========================================
   RESPONSIVE DESIGN - SMALL MOBILE
   (max-width: 480px)
======================================== */
@media (max-width: 480px) {

    /* Container */
    .container {
        padding: 0 4%;
    }

    /* ================= HERO ================= */
    .hero-carousel {
        height: 65vh;
        min-height: 450px;
    }

    .hero-text h1 {
        font-size: 1.4rem;
    }

    .hero-text p {
        font-size: 0.8rem;
    }

    .carousel-nav {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }

    .carousel-nav.prev {
        left: 10px;
    }

    .carousel-nav.next {
        right: 10px;
    }

    /* ================= ABOUT ================= */
    .about {
        padding: 2.5rem 4%;
    }

    .about h2 {
        font-size: 1.4rem;
    }

    .image-grid {
        grid-template-rows: repeat(4, 180px);
    }

    /* ================= SERVICES ================= */
    .services {
        padding: 2.5rem 4%;
    }

    .services h2 {
        font-size: 1.3rem;
    }

    .service-card {
        height: 220px;
    }

    /* ================= TESTIMONIALS ================= */
    .testimonials {
        padding: 2.5rem 4%;
    }

    .testimonials-header h2 {
        font-size: 1.3rem;
    }

    .testimonials-wrapper {
        overflow-x: auto;
    }

    .testimonials-grid {
        display: flex;
        gap: 16px;
        flex-wrap: nowrap;
    }

    .testimonial-card {
        min-width: 85vw;
        flex-direction: column;
        padding: 1.2rem;
    }

    .testimonial-image {
        height: 180px;
        min-height: 180px;
    }

    .testimonial-image img {
        height: 140px;
    }

    .testimonial-name {
        font-size: 0.95rem;
    }

    .testimonial-text {
        font-size: 0.8rem;
    }
}