/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    overflow: visible;
    padding: 80px 0;
    min-height: calc(100vh - 76px);
    display: flex;
    align-items: center;
}

.row {
    display: flex;
    justify-content: space-between; /* Space between untuk distribusi elemen */
    align-items: center; /* Menjaga elemen sejajar secara vertikal */
    width: 100%;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(191, 134, 34, 0.08) 0%,
        rgba(191, 134, 34, 0.03) 100%
    );
    clip-path: polygon(100% 0, 100% 100%, 0 100%, 10% 0);
    z-index: 0;
}

.hero-section::after {
    content: "";
    position: absolute;
    top: 15%;
    left: 10%;
    width: 150px;
    height: 150px;
    background: linear-gradient(
        135deg,
        rgba(191, 134, 34, 0.05) 0%,
        rgba(191, 134, 34, 0.01) 100%
    );
    border-radius: 50%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding-right: 40px;
    flex: 1; /* Membuat konten teks fleksibel */
    max-width: 500px; /* Menetapkan lebar maksimal konten teks */
}

/* Title styles */
.hero-title {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: var(--secondary);
}

.hero-title .text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title .hero-subtitle {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary);
    margin-top: 8px;
    display: block;
}

/* Description */
.hero-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--tertiary);
    margin-bottom: 25px;
    max-width: 450px;
}

/* Buttons */
.hero-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.btn-gradient {
    background: var(--gradient-primary);
    color: var(--light);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.btn-gradient::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(191, 134, 34, 0.3);
}

.btn-gradient:hover::before {
    left: 100%;
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--light);
    transform: translateY(-3px);
}

/* Features badges */
.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.feature-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: rgba(191, 134, 34, 0.08);
    border-radius: 30px;
    font-size: 0.85rem;
    color: var(--secondary);
    font-weight: 500;
    transition: var(--transition);
}

.feature-badge:hover {
    background: rgba(191, 134, 34, 0.15);
    transform: translateY(-2px);
}

.feature-badge i {
    font-size: 0.9rem;
}

/* Hero Image Container - space between */
.hero-image-container {
    position: relative;
    display: flex;
    justify-content: flex-end; /* Mengatur posisi gambar di kanan */
    flex: 1; /* Membuat gambar fleksibel */
    max-width: 540px; /* Menetapkan lebar maksimal gambar */
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 520px;
}

/* Hero Image */
.hero-banner {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: contain;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    transform: perspective(1000px) rotateY(-3deg);
    transition: var(--transition);
    display: block;
}

.hero-image-wrapper:hover .hero-banner {
    transform: perspective(1000px) rotateY(0deg);
}

/* Floating elements - LEBIH BESAR */
.floating-element {
    position: absolute;
    background: var(--light);
    border-radius: var(--radius-lg);
    padding: 15px;
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 3;
    animation: float 6s ease-in-out infinite;
    transition: var(--transition);
    border: 1px solid rgba(191, 134, 34, 0.1);
    min-width: 140px;
}

/* Untuk masing-masing floating element */
.floating-1 {
    top: -20px;
    left: -30px;
}

.floating-2 {
    top: 45%;
    right: -25px;
    transform: translateY(-50%);
}

.floating-3 {
    bottom: 100px;
    left: -30px;
}

.floating-element:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(191, 134, 34, 0.15);
}

/* Floating 1 - TOEFL 500+ */
/* .floating-1 {
    top: -20px;
    left: -30px;
    animation-delay: 0s;
    border-left: 4px solid var(--accent-green);
} */

/* Floating 2 - 5 Star Rating */
/* .floating-2 {
    top: 45%;
    right: -25px;
    transform: translateY(-50%);
    animation-delay: 2s;
    border-left: 4px solid var(--accent-orange);
} */

/* Floating 3 - 500+ Students (LEBIH BESAR) */
/* .floating-3 {
    bottom: 100px;
    left: -30px;
    animation-delay: 4s;
    border-left: 4px solid var(--accent-blue);
    min-width: 150px;
} */

.floating-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-size: 1.2rem;
    flex-shrink: 0;
}

.floating-content {
    display: flex;
    flex-direction: column;
}

.floating-number {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 4px;
}

.floating-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--secondary);
    white-space: nowrap;
}

/* Floating animation */
@keyframes float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-12px);
    }
}

/* Floating 2 specific animation */
/* .floating-2 {
    0%, 100% {
        transform: translateY(-50%);
    }
    50% {
        transform: translateY(calc(-50% - 12px));
    }
} */

/* Responsive adjustments */
@media (max-width: 1200px) {
    .hero-content {
        padding-right: 30px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-title .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-image-wrapper {
        max-width: 480px;
    }

    .hero-banner {
        max-height: 380px;
    }

    .floating-element {
        min-width: 130px;
        padding: 12px;
    }

    .floating-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }

    .floating-number {
        font-size: 1.3rem;
    }
}

@media (max-width: 992px) {
    .hero-section {
        min-height: auto;
        padding: 60px 0;
    }

    .row {
        flex-direction: column;
    }

    .hero-content,
    .hero-image-container {
        flex: 0 1 100%; /* Membuat elemen full-width di perangkat kecil */
        max-width: 100%;
        text-align: center;
    }

    .hero-image-container {
        margin-top: 30px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-features {
        justify-content: center;
    }

    .hero-image-wrapper {
        max-width: 550px;
        margin: 0 auto;
    }

    .hero-banner {
        max-height: 380px;
        transform: none;
    }

    .hero-image-wrapper:hover .hero-banner {
        transform: none;
    }

    .floating-element {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        animation: none;
        min-width: 140px;
        margin: 10px;
        display: inline-flex;
    }

    .floating-wrapper {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 40px 0;
    }

    .hero-title {
        font-size: 1.7rem;
    }

    .hero-title .hero-subtitle {
        font-size: 1.05rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .btn-gradient,
    .btn-outline {
        width: 100%;
        max-width: 250px;
        justify-content: center;
    }

    .hero-image-wrapper {
        max-width: 450px;
    }

    .hero-image-container {
        max-width: 100%;
    }

    .hero-banner {
        max-height: 320px;
    }

    .floating-element {
        min-width: 130px;
        padding: 12px;
    }

    .floating-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .floating-number {
        font-size: 1.2rem;
    }

    .floating-text {
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .hero-title .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-description {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    .hero-features {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .feature-badge {
        font-size: 0.8rem;
        padding: 6px 14px;
    }

    .hero-image-wrapper {
        max-width: 380px;
    }

    .hero-banner {
        max-height: 280px;
    }

    .floating-wrapper {
        gap: 10px;
    }

    .floating-element {
        min-width: 110px;
        padding: 10px;
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .floating-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .floating-number {
        font-size: 1.1rem;
    }

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

@media (max-width: 400px) {
    .hero-title {
        font-size: 1.4rem;
    }

    .hero-title .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-description br {
        display: none;
    }

    .hero-image-wrapper {
        max-width: 320px;
    }

    .hero-banner {
        max-height: 240px;
    }

    .floating-element {
        min-width: 100px;
        padding: 8px;
    }

    .floating-icon {
        width: 32px;
        height: 32px;
    }

    .floating-number {
        font-size: 1rem;
    }
}
