/* Hero Section - Desktop Only */
.hero-section-desktop {
    display: none;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    padding: 2rem;
}

/* Show on all desktop screens (1024px+) */
@media (min-width: 1024px) {
    .hero-section-desktop {
        display: flex;
    }
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
    height: 100%;
    z-index: 5;
    padding: 2rem 0;
}
/* Text Content */
.hero-text {
    padding-right: 2rem;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-family: 'Poppins', sans-serif;
}

.hero-title .brand-name {
    color: var(--eco-green);
    display: block;
    margin-bottom: 0.5rem;
}

.hero-title .static-text {
    color: var(--text-dark);
    font-weight: 500;
    display: block;
    margin-bottom: 0.5rem;
}

/* Rotating Text Container */
.rotating-text-container {
    display: inline-block;
    position: relative;
    height: 2.4em;
    overflow: hidden;
    vertical-align: top;
    min-width: 450px;
    width: 100%;
}

.rotating-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-weight: 700;
    white-space: normal;
    line-height: 1.2;
}

.rotating-text.active {
    opacity: 1;
    transform: translateY(0);
}

.rotating-text.exit {
    opacity: 0;
    transform: translateY(-100%);
}

/* Color-coded rotating words */
.rotating-text.sustainable { color: var(--eco-green); }
.rotating-text.eco-friendly { color: var(--eco-accent); }
.rotating-text.convenient { color: var(--eco-blue); }
.rotating-text.community { color: var(--eco-dark-green); }
.rotating-text.iot { color: #8b5cf6; }

#hero-desktop .hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    font-weight: 400;
    max-width: 500px;
    text-align: justify;
    position: relative;
    padding-top: 1rem;
}

#hero-desktop .hero-subtitle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--eco-green) 0%, var(--eco-accent) 100%);
    border-radius: 2px;
    animation: lineGrow 1.5s ease-out 0.5s both;
}

@keyframes lineGrow {
    0% {
        width: 0;
        opacity: 0;
    }
    100% {
        width: 80px;
        opacity: 1;
    }
}

.hero-cta {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cta-button {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.cta-primary {
    background: linear-gradient(135deg, var(--eco-green) 0%, var(--eco-accent) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(5, 111, 55, 0.3);
}

.cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(5, 111, 55, 0.4);
}

.cta-secondary {
    background: white;
    color: var(--eco-green);
    border: 2px solid var(--eco-green);
}

.cta-secondary:hover {
    background: var(--eco-green);
    color: white;
    transform: translateY(-2px);
}

/* Image Gallery */
.hero-images {
    position: relative;
    height: 100%;
    max-height: 600px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}
.image-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.image-slide.active {
    opacity: 1;
    transform: translateY(0);
}

.image-slide.exit {
    opacity: 0;
    transform: translateY(-100%);
}

/* Image backgrounds */
.image-slide.sustainable {
    background-image: url('/asset/image/index/Hero/sustain.jpg');
}

.image-slide.eco-friendly {
    background-image: url('/asset/image/index/Hero/ecofriendly.png');
}

.image-slide.convenient {
    background-image: url('/asset/image/index/Hero/Convenient.png');
}

.image-slide.community {
    background-image: url('/asset/image/index/Hero/Community-Focused.png');
}

.image-slide.iot {
    background-image: url('/asset/image/index/Hero/IoT-Enabled.png');
}

/* Image overlay for better text contrast */
.image-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.image-slide.sustainable::before {
    background: rgba(5, 111, 55, 0.7);
}

.image-slide.eco-friendly::before {
    background: rgba(45, 143, 95, 0.7);
}

.image-slide.convenient::before {
    background: rgba(75, 161, 248, 0.7);
}

.image-slide.community::before {
    background: rgba(3, 74, 36, 0.7);
}

.image-slide.iot::before {
    background: rgba(139, 92, 246, 0.7);
}

/* Progress indicators */
.progress-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 15;
}

.progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    cursor: pointer;
}

.progress-dot.active {
    background: white;
    transform: scale(1.2);
}

/* Background decorative elements */
.hero-bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(5, 111, 55, 0.05) 0%, transparent 70%);
}

.bg-circle-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    right: 10%;
    animation: float 6s ease-in-out infinite;
}

.bg-circle-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    left: 5%;
    animation: float 4s ease-in-out infinite reverse;
}

.bg-circle-3 {
    width: 150px;
    height: 150px;
    top: 60%;
    right: 30%;
    animation: float 5s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}