/* Hero CSS */
.hero {
    height: 80vh;
     min-height: unset; /* or use a media query */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #0b131f; /* Dark background for blending */
    padding: 0 20px;
    margin-bottom: 0;
      overflow: hidden; /* important! */
    
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/background.png') no-repeat center center;
    background-size: cover; /* Fills section for larger screens */
    background-attachment: scroll; /* Avoids fixed positioning issues */
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Gradient overlay to blend wave image edges */
.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(11, 19, 31, 0.2),
        rgba(11, 19, 31, 0.6) 70%,
        rgba(11, 19, 31, 0.9)
    ); /* Softer gradient for seamless blending */
    z-index: 2;
}

/* Define float animation (kept but not applied to content) */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-30px) rotate(180deg);
        opacity: 0.3;
    }
}

.hero-content {
    position: relative;
    z-index: 10; /* Higher z-index to stay above pseudo-elements */
    text-align: center;
    max-width: 1200px;
    width: 100%;
    padding: 20px;
    margin: 0 auto;
    animation: none !important; /* Prevent any animations */
    pointer-events: none; /* Disable hover events */
}

.hero-text {
    animation: none !important; /* Prevent inherited animations */
    pointer-events: none; /* Disable hover events */
}

.hero-text h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: white;
    margin-top: clamp(2rem, 10vh, 8rem);
    margin-bottom: 1rem;
    line-height: 1.2;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    word-wrap: break-word;
    hyphens: auto;
    animation: none !important; /* Ensure no movement */
    pointer-events: none; /* Disable hover events */
    transition: none; /* No transitions on hover */
}

.hero-text h1:hover {
    transform: none !important; /* Explicitly prevent movement */
}

.hero-text h1 .highlight {
    color: #ffffff;
    position: relative;
}

.hero-text p {
    font-size: clamp(0.875rem, 2.5vw, 1rem);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: clamp(1.5rem, 4vh, 2.5rem);
    line-height: 1.6;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
    word-wrap: break-word;
    animation: none !important; /* Ensure no movement */
    pointer-events: none; /* Disable hover events */
    transition: none; /* No transitions on hover */
}

.hero-text p:hover {
    transform: none !important; /* Explicitly prevent movement */
}

.hero-text .cta-button {
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    padding: clamp(10px, 2vh, 14px) clamp(20px, 4vw, 28px);
    border-radius: 8px;
    background: #00d4aa;
    color: black;
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease, box-shadow 0.3s ease; /* Non-movement transitions */
    letter-spacing: 1px;
    display: inline-block;
    min-width: 120px;
    text-align: center;
    animation: none !important; /* Ensure no movement */
    pointer-events: auto; /* Enable interaction for button */
}

.hero-text .cta-button:hover {
    background: #00b894; /* Visual feedback */
    box-shadow: 0 8px 25px rgba(0, 212, 170, 0.4); /* Visual feedback */
    transform: none !important; /* Prevent movement */
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.hero-text .cta-button:active {
    background: #00b894; /* Consistent color */
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.3); /* Subtle shadow */
    transform: none !important; /* Prevent movement */
}

/* Decorative pseudo-element (animation disabled to avoid interference) */
.hero::before {
    content: '';
    position: absolute;
    top: 50px;
    right: 0;
    width: 100%;
    height: 100%;
    background: url('../images/Ellipse\ 3-1.png') no-repeat center right;
    background-size: contain;
    opacity: 0.8;
    z-index: 3; /* Below hero-content */
    animation: none; /* Disable float animation */
}

/* Additional decorative element (animation disabled) */
.hero-bg::after {
    content: '';
    position: absolute;
    bottom: 10%;
    left: 5%;
    width: 50%;
    height: 50%;
    background: url('../images/Ellipse\ 3-1.png') no-repeat center center;
    background-size: contain;
    opacity: 0.3;
    transform: rotate(45deg);
    z-index: 3; /* Below hero-content */
    animation: none; /* Disable float animation */
}




/* Tablet Styles */
@media (max-width: 1024px) {
    .hero {
        height: 80vh;
        min-height: 500px;
        padding: 0 15px;
    }
    
    .hero-content {
        max-width: 900px;
        padding: 15px;
    }
    
    .hero-bg {
        background-size: contain; /* Full visibility */
        background-position: center center;
    }
}

/* Mobile Landscape */
@media (max-width: 768px) {
    .hero {
        height: 100vh;
        min-height: 450px;
        padding: 0 10px;
    }
    
    .hero-content {
        padding: 10px;
    }
    
    .hero-text h1 {
        margin-top: clamp(1.5rem, 8vh, 4rem);
        line-height: 1.3;
    }
    
    .hero-text p {
        line-height: 1.5;
        margin-bottom: clamp(1.5rem, 3vh, 2rem);
    }
    
    .hero::before {
        background-size: 80% auto;
    }
    
    .hero-bg {
        background-size: contain; /* Full wave visibility */
        background-position: center center;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    .hero {
        min-height: 100vh;
        max-height: 100vh;
        padding: 0 5px;
    }
    
    .hero-content {
        padding: 5px;
        max-width: 100%;
    }
    
    .hero-text h1 {
        margin-top: clamp(1rem, 6vh, 3rem);
        line-height: 1.4;
        word-break: break-word;
    }
    
    .hero-text p {
        margin-bottom: clamp(1rem, 2vh, 1.5rem);
        padding: 0 5px;
    }
    
    .hero-text .cta-button {
        width: auto;
        max-width: 200px;
        margin: 0 auto;
        display: block;
    }
    
    .hero::before {
        background-size: 90% auto;
    }
    
    .hero-bg {
        background-size: contain; /* Scale to fit */
        background-position: center center;
    }
    
    .hero-bg::after {
        width: 60%;
        height: 60%;
        bottom: 5%;
        left: 2%;
    }
}

/* Extra Small Devices */
@media (max-width: 320px) {
    .hero {
        padding: 0 2px;
    }
    
    .hero-content {
        padding: 2px;
    }
    
    .hero-text h1 {
        margin-top: clamp(0.5rem, 4vh, 2rem);
    }
    
    .hero-text p {
        padding: 0 2px;
    }
    
    .hero::before {
        background-size: 100% auto;
    }
    
    .hero-bg {
        background-size: contain; /* Full visibility */
        background-position: center center;
    }
}

/* Landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
    }
    
    .hero-text h1 {
        margin-top: clamp(0.5rem, 2vh, 1rem);
        font-size: clamp(1.5rem, 4vw, 2.5rem);
    }
    
    .hero-text p {
        margin-bottom: clamp(0.5rem, 1vh, 1rem);
    }
    
    .hero-bg {
        background-size: contain;
        background-position: center center;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-bg {
        background-size: contain; /* Maintain clarity */
        background-position: center center;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .hero-text .cta-button {
        padding: clamp(12px, 3vh, 16px) clamp(24px, 5vw, 32px);
        min-height: 44px;
        min-width: 44px;
        font-size: clamp(0.85rem, 2.2vw, 1rem);
    }
    
    .hero-text .cta-button:hover {
        background: #00b894; /* Visual feedback */
        box-shadow: none; /* No shadow */
        transform: none !important;
    }
    
    .hero-text .cta-button:active {
        background: #00b894;
        box-shadow: none; /* No shadow */
        transform: none !important;
    }
}

/* Reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .hero-text .cta-button {
        transition: background-color 0.2s ease;
    }
    
    .hero-text .cta-button:hover {
        background: #00b894;
        box-shadow: none;
        transform: none !important;
    }
    
    /* @keyframes float {
        0%, 100% {
            transform: translateY(0px);
            opacity: 0.6;
        }
        50% {
            transform: translateY(-10px);
            opacity: 0.4;
        }
    } */

    
}
