/* ===================================
   HERO SECTION STYLES
   Based on One Screen 02 template
   =================================== */

/* --- HERO SECTION --- */
.hero {
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 120px 5% 140px;
    overflow: hidden;
    /* background: linear-gradient(135deg, #0E7490 0%, #06B6D4 50%, #0891B2 100%); */
    background-color: #4dd0e1;
}

/* Background Decorations */
.hero-bg-gradient {
    position: absolute;
    inset: 0;
    /* background: linear-gradient(135deg, var(--color-deep-sea) 0%, var(--accent-blue) 50%, #0891B2 100%); */
    background: radial-gradient(circle at top left, #26c6da, transparent 50%),
              radial-gradient(circle at top right, #00acc1, transparent 50%),
              radial-gradient(circle at bottom, #ffffff, #80deea);
    z-index: 0;
}

.hero-decorations {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.sun-glow {
    position: absolute;
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 193, 7, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(60px);
    animation: pulseSun 8s infinite alternate;
}

/* Rising Sun (Top Right Corner) */
.rising-sun {
    position: absolute;
    top: -80px;
    right: -80px;
    width: 200px;
    height: 200px;
    z-index: 5;
}

.sun-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, #FFD700 0%, #FFA500 100%);
    border-radius: 50%;
    box-shadow:
        0 0 30px rgba(255, 215, 0, 0.6),
        0 0 60px rgba(255, 165, 0, 0.4);
}

/* Sun Rays */
.sun-rays {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    animation: rotateSun 20s linear infinite;
}

.sun-ray {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 4px;
    height: 50px;
    background: linear-gradient(to bottom, #FFD700, transparent);
    border-radius: 2px;
    transform-origin: center -50px;
    opacity: 0.8;
}

.sun-ray:nth-child(1) { transform: translate(-50%, -50%) rotate(0deg); }
.sun-ray:nth-child(2) { transform: translate(-50%, -50%) rotate(30deg); }
.sun-ray:nth-child(3) { transform: translate(-50%, -50%) rotate(60deg); }
.sun-ray:nth-child(4) { transform: translate(-50%, -50%) rotate(90deg); }
.sun-ray:nth-child(5) { transform: translate(-50%, -50%) rotate(120deg); }
.sun-ray:nth-child(6) { transform: translate(-50%, -50%) rotate(150deg); }
.sun-ray:nth-child(7) { transform: translate(-50%, -50%) rotate(180deg); }
.sun-ray:nth-child(8) { transform: translate(-50%, -50%) rotate(210deg); }
.sun-ray:nth-child(9) { transform: translate(-50%, -50%) rotate(240deg); }
.sun-ray:nth-child(10) { transform: translate(-50%, -50%) rotate(270deg); }
.sun-ray:nth-child(11) { transform: translate(-50%, -50%) rotate(300deg); }
.sun-ray:nth-child(12) { transform: translate(-50%, -50%) rotate(330deg); }

.wave-pattern {
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 10;
    color: var(--white);
    max-width: 600px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-icon {
    font-size: 1.1rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 25px;
    color: var(--color-deep-sea);
}

.hero-title .handwritten {
    display: inline-block;
    font-size: 4rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.6;
    opacity: 1;
    margin-bottom: 25px;
    color: var(--color-deep-sea);
}

.hero-features {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.feature-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 12px 20px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.95rem;
}

.pill-icon {
    font-size: 1.2rem;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 35px;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
    color: var(--white);
}

.stat-label {
    font-size: 0.85rem;
    opacity: 1;
}

.hero-cta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Hero Image Wrapper with Overlapping Form */
.hero-image-wrapper {
    position: relative;
    z-index: 10;
}

/* Hero Image Container */
.hero-image-container {
    position: relative;
    height: 600px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

/* Legacy support for smaller image container */
.hero-image-container-small {
    position: relative;
    height: 350px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.floating-trust-badge {
    position: absolute;
    bottom: 30px;
    left: 30px;
    background: var(--white);
    padding: 20px 25px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    animation: float 4s ease-in-out infinite;
}

.badge-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.badge-icon-large {
    width: 50px;
    height: 50px;
    background: var(--color-deep-sea);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.badge-content strong {
    display: block;
    color: var(--color-deep-sea);
    font-size: 1rem;
    margin-bottom: 3px;
}

.badge-content p {
    font-size: 0.85rem;
    color: var(--text-light);
    margin: 0;
}

/* Overlapping Quick Contact Form */
.hero-quick-form-overlap {
    position: absolute;
    bottom: -60px;
    right: -50px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    padding: 25px 30px;
    border-radius: var(--radius-md);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
    width: 85%;
    max-width: 450px;
    z-index: 20;
}

.hero-quick-form-overlap h3 {
    font-size: 1.4rem;
    color: var(--color-deep-sea);
    margin-bottom: 20px;
    text-align: center;
}

/* Legacy support for non-overlapping form */
.hero-quick-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.hero-quick-form h3 {
    font-size: 1.5rem;
    color: var(--color-deep-sea);
    margin-bottom: 20px;
    text-align: center;
}

.quick-contact-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quick-contact-form .form-group {
    margin: 0;
}

.quick-contact-form input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: var(--radius-sm);
    font-family: 'Be Vietnam Pro', sans-serif;
    font-size: 0.9rem;
    color: var(--text-main);
    transition: border-color 0.3s;
}

.quick-contact-form input:focus {
    outline: none;
    border-color: var(--color-deep-sea);
}

.quick-contact-form input::placeholder {
    color: var(--text-light);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--color-deep-sea);
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 10;
    opacity: 0.8;
}

.scroll-arrow {
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

@keyframes rotateSun {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* --- RESPONSIVE HERO --- */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .hero-title .handwritten {
        font-size: 3.5rem;
    }

    .hero-image-container {
        height: 500px;
    }

    .rising-sun {
        width: 160px;
        height: 160px;
        top: -60px;
        right: -60px;
    }

    .sun-core {
        width: 80px;
        height: 80px;
    }

    .sun-ray {
        height: 40px;
    }
}

@media (max-width: 968px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 100px 5% 120px;
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
        margin-bottom: 40px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-title .handwritten {
        font-size: 2.8rem;
    }

    .hero-features,
    .hero-stats,
    .hero-cta {
        justify-content: center;
    }

    .hero-image-container,
    .hero-image-container-small {
        height: 400px;
    }

    .hero-quick-form-overlap {
        padding: 25px 20px;
        bottom: -55px;
        width: 90%;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .hero-quick-form-overlap h3 {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    .hero-quick-form {
        padding: 25px;
    }

    .scroll-indicator {
        display: none;
    }

    .rising-sun {
        width: 120px;
        height: 120px;
        top: -40px;
        right: -40px;
    }

    .sun-core {
        width: 60px;
        height: 60px;
    }

    .sun-ray {
        height: 30px;
        width: 3px;
    }
}

@media (max-width: 640px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-title .handwritten {
        font-size: 2.3rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-stats {
        gap: 25px;
    }

    .stat-value {
        font-size: 2rem;
    }

    .hero-image-container,
    .hero-image-container-small {
        height: 300px;
    }

    .hero-quick-form-overlap {
        padding: 20px 18px;
        bottom: -50px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .hero-quick-form-overlap h3 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

    .hero-quick-form {
        padding: 20px;
    }

    .hero-quick-form h3 {
        font-size: 1.3rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
        text-align: center;
    }

    .rising-sun {
        width: 100px;
        height: 100px;
        top: -30px;
        right: -30px;
    }

    .sun-core {
        width: 50px;
        height: 50px;
    }

    .sun-ray {
        height: 25px;
        width: 2px;
    }
}
