/* "Aero-Elegant" Hero Section - Optimized */
.hero-dynamic {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    margin-top: 0;
    overflow: hidden;
}

/* Enhanced Gradient Overlay */
.hero-dynamic::before {
    content: "";
    position: absolute;
    inset: 0;
    /* Richer gradient for depth */
    background: linear-gradient(90deg,
            rgba(9, 33, 43, 1) 0%,
            rgba(9, 33, 43, 0.95) 40%,
            rgba(9, 33, 43, 0.5) 75%,
            rgba(9, 33, 43, 0.1) 100%);
    z-index: 1;
}

/* Animated Particles */
.hero-dynamic::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.1;
    z-index: 1;
    pointer-events: none;
}

.hero-content-wrapper {
    position: relative;
    z-index: 5;
    /* No side padding: the hero copy lines up with the logo and the container edge. */
    padding: 60px 0;
    max-width: 850px;
}

/* Entrance Animations */
.hero-tagline {
    font-size: 0.9rem;
    font-weight: 700;
    color: #33BDFF;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    animation: slideInLeft 0.8s ease-out forwards 0.2s;
}

.hero-tagline::before {
    content: "";
    display: block;
    width: 30px;
    height: 2px;
    background: #33BDFF;
    border-radius: 2px;
}

.hero-heading {
    font-family: 'DM Serif Display', serif;
    /* Reduced size for elegance */
    font-size: clamp(2.5rem, 4.5vw, 4.5rem);
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards 0.4s;
}

.hero-heading span {
    display: inline-block;
}

.hero-heading .highlight {
    color: #33BDFF;
    position: relative;
    white-space: nowrap;
}

/* Underline effect */
.hero-heading .highlight::after {
    content: "";
    position: absolute;
    bottom: 6px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(51, 189, 255, 0.25);
    z-index: -1;
    transform: skewX(-20deg);
}

.hero-description {
    font-size: clamp(0.95rem, 1.1vw, 1.15rem);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: 35px;
    max-width: 550px;
    border-left: 3px solid #33BDFF;
    padding-left: 20px;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards 0.6s;
}

/* Background Text */
.hero-bg-text {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    font-size: 15vw;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.015);
    text-transform: uppercase;
    line-height: 1;
    z-index: 0;
    pointer-events: none;
    white-space: nowrap;
    animation: fadeIn 2s ease-out forwards;
}

/* Buttons */
.hero-action-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards 0.8s;
}

.btn-modern {
    padding: 14px 35px;
    /* Reduced Size */
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff;
    background: linear-gradient(135deg, #33BDFF 0%, #009ce3 100%);
    border: none;
    border-radius: 4px;
    box-shadow: 0 10px 20px rgba(51, 189, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 160px;
    justify-content: center;
}

.btn-modern:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(51, 189, 255, 0.4);
    color: #fff;
}

/* Pulsing Animation for CTA */
.btn-pulse {
    animation: pulse-blue 2s infinite;
}

@keyframes pulse-blue {
    0% {
        box-shadow: 0 0 0 0 rgba(51, 189, 255, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(51, 189, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(51, 189, 255, 0);
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 10;
    cursor: pointer;
    opacity: 0;
    animation: bounce 2s infinite, fadeIn 1s forwards 1.2s;
}

.scroll-indicator i {
    font-size: 1.5rem;
    margin-top: 5px;
    color: #33BDFF;
}

/* Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}


/* --- Mobile Responsive Enhancements --- */
@media (max-width: 991px) {
    .hero-dynamic {
        text-align: center;
        /* Increase spacing to prevent overlap */
        padding-top: 100px;
        padding-bottom: 90px;
        align-items: center;
        /* Center Vertically */
    }

    .hero-dynamic::before {
        /* Bottom-up gradient for visibility */
        background: linear-gradient(0deg, #09212b 0%, rgba(9, 33, 43, 0.98) 60%, rgba(9, 33, 43, 0.4) 100%);
    }

    .hero-bg-text {
        display: none;
    }

    .hero-content-wrapper {
        padding: 0 4px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-tagline {
        justify-content: center;
        font-size: 0.8rem;
    }

    .hero-heading {
        font-size: 2.5rem;
        /* Still impressive but smaller */
        margin-bottom: 20px;
    }

    .hero-description {
        border-left: none;
        border-bottom: 3px solid #33BDFF;
        padding-left: 0;
        padding-bottom: 15px;
        font-size: 0.95rem;
        margin-bottom: 30px;
        line-height: 1.5;
    }

    /* Button Specifics for Mobile */
    .btn-modern {
        width: auto;
        min-width: 180px;
        font-size: 0.95rem;
        padding: 14px 30px;
    }

    .scroll-indicator {
        bottom: 20px;
        font-size: 0.7rem;
    }
}