/* ========================================
   HERO SECTION (Existing)
   ======================================== */

.hero {
    min-height: 100vh;
    width: 100%;
    position: relative;
    background-image: url('../../image/bg/hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    display: flex;
    align-items: flex-start;
    padding-top: 8vh;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.03'/%3E%3C/svg%3E");
    z-index: 2;
    pointer-events: none;
}

.container {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 5%;
    align-items: start;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 70px;
}

.hero-title {
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 700;
    color: var(--text-light);
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-title span {
    color: var(--accent-primary);
}

.hero-description {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--text-light-soft);
    line-height: 1.6;
    margin-bottom: 25px;
    max-width: 90%;
}

.cta-button {
    display: inline-block;
    padding: 18px 45px;
    background-color: var(--accent-primary);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.3);
    border: none;
    cursor: pointer;
    width: fit-content;
}

.cta-button:hover {
    transform: translateY(-3px);
    background-color: var(--accent-hover);
    box-shadow: 0 15px 40px rgba(245, 158, 11, 0.4);
}

.hero-image-wrapper {
    position: relative;
    transform: rotate(-6deg) translateY(-20px);
    transition: transform 0.4s ease;
    padding-top: 5rem;
}

.hero-image {
    width: 120%;
    height: auto;
    border-radius: 20px;
    position: relative;
    z-index: 1;
}

/* ========================================
   MIDDLE SECTION WITH CARDS
   ======================================== */

.middle-section {
    min-height: 100vh;
    width: 100%;
    position: relative;
    background-image: url('../../image/bg/middle-home.png');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 5%;
}

.cards-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.cards-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(201, 161, 74, 0.5);
}

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .card-image img {
    transform: scale(1.1);
}

.card-content {
    padding: 20px;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 8px;
}

.card-description {
    font-size: 0.9rem;
    color: var(--text-light-soft);
    line-height: 1.5;
}

/* ========================================
   RESPONSIVE HERO
   ======================================== */

@media (max-width: 968px) {

    .container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 5%;
    }

    .hero {
        padding-top: 12vh;
        align-items: center;
    }

    .hero-content {
        text-align: center;
        padding-top: 0;
        order: 1;
    }

    .hero-description {
        max-width: 100%;
    }

    .cta-button {
        margin: 0 auto;
    }

    .hero-image-wrapper {
        order: 2;
        transform: none;
        max-width: 500px;
        margin: 0 auto;
    }

    .hero-image-wrapper:hover {
        transform: scale(1.05);
    }
}

@media (max-width: 768px) {
    .hero-image-wrapper {
        margin-bottom: 4.5rem;
    }

    .hero-content {
        margin-top: 4.5rem;
    }
}

@media (max-width: 480px) {

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-description {
        font-size: 1rem;
    }

    .cta-button {
        padding: 15px 35px;
        font-size: 1rem;
    }
}

/* ========================================
   RESPONSIVE CARDS / MIDDLE SECTION
   ======================================== */

@media (max-width: 1024px) {

    .cards-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .card-image {
        height: 180px;
    }

    .card-title {
        font-size: 1.1rem;
    }

    .card-description {
        font-size: 0.85rem;
    }
}

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */

.testimonials-section {
    padding: 60px 0;
    background: #f8f9fa;
}

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */

.testimonials-section {
    padding: 60px 0;
    background: #f8f9fa;
}

@media (max-width: 768px) {

    .middle-section {
        padding: 40px 4%;
    }

    .cards-container {
        gap: 30px;
    }

    .cards-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .card {
        border-radius: 12px;
    }

    .card-image {
        height: 150px;
    }

    .card-content {
        padding: 16px;
    }

    .card-title {
        font-size: 1rem;
    }

    .card-description {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {

    .middle-section {
        min-height: auto;
        padding: 30px 4%;
    }

    .cards-container {
        gap: 20px;
    }

    .cards-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .card {
        border-radius: 10px;
    }

    .card-image {
        height: 180px;
    }

    .card-content {
        padding: 14px;
    }

    .card-title {
        font-size: 1rem;
    }

    .card-description {
        font-size: 0.85rem;
    }
}
