/* ========================================
   ENHANCED HERO SECTION STYLES
   Modern, Interactive, No Scrolling Issues
   ======================================== */

/* Hero Section Base - Compact, No Scrolling */
.hero-section {
    position: relative;
    min-height: auto;
    padding: 80px 0 50px;
    display: flex;
    align-items: center;
    /* Vibrant professional gradient for better UX */
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    overflow-x: hidden; /* Prevent horizontal scroll */
    overflow-y: visible; /* Allow natural vertical flow */
}

/* Dynamic Overlay for Interactive Feel */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(52, 152, 219, 0.15) 0%, rgba(44, 62, 80, 0.15) 100%);
    z-index: 1;
}

/* Animated Background Pattern - Interactive */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.18) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(52, 152, 219, 0.15) 0%, transparent 40%);
    z-index: 1;
    animation: pulseBackground 8s ease-in-out infinite;
}

@keyframes pulseBackground {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* LEFT CONTENT - Enhanced Animations */
.hero-left-content {
    color: #fff;
    animation: slideInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.hero-heading {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.4);
}

.hero-heading .highlight {
    color: #FFA500;
    position: relative;
    animation: textGlow 3s ease-in-out infinite;
}

@keyframes textGlow {
    0%, 100% {
        text-shadow: 0 0 10px rgba(255, 165, 0, 0.6),
                     0 0 20px rgba(255, 165, 0, 0.4),
                     0 0 30px rgba(255, 165, 0, 0.2);
    }
    50% {
        text-shadow: 0 0 20px rgba(255, 165, 0, 0.9),
                     0 0 30px rgba(255, 165, 0, 0.6),
                     0 0 40px rgba(255, 165, 0, 0.3);
    }
}

.hero-subheading {
    font-size: 17px;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 25px;
    color: rgba(255, 255, 255, 0.95);
    max-width: 540px;
}

/* Feature List - Interactive Hover Effects */
.hero-features {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
}

.hero-features li {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    font-size: 16px;
    color: #fff;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: fadeInLeft 0.6s ease-out backwards;
    cursor: default;
}

.hero-features li:nth-child(1) { animation-delay: 0.2s; }
.hero-features li:nth-child(2) { animation-delay: 0.3s; }
.hero-features li:nth-child(3) { animation-delay: 0.4s; }
.hero-features li:nth-child(4) { animation-delay: 0.5s; }

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

.hero-features li:hover {
    transform: translateX(12px);
    color: #FFA500;
}

.hero-features .feature-icon {
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #FFA500 0%, #ff8c00 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
    font-size: 13px;
    color: #fff;
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.35);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-features li:hover .feature-icon {
    transform: scale(1.15) rotate(360deg);
    box-shadow: 0 6px 25px rgba(255, 165, 0, 0.6);
}

/* CTA Button - Premium Interactive Design */
.hero-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 35px;
    background: linear-gradient(135deg, #FFA500 0%, #ff8c00 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(255, 165, 0, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    animation: bounceIn 1s ease-out 0.7s backwards;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Ripple Effect */
.hero-cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.hero-cta-button:hover::before {
    width: 350px;
    height: 350px;
}

.hero-cta-button:hover {
    background: linear-gradient(135deg, #ff8c00 0%, #FFA500 100%);
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 15px 40px rgba(255, 165, 0, 0.7);
    color: #fff;
    text-decoration: none;
}

.hero-cta-button:active {
    transform: translateY(-3px) scale(1.02);
}

.hero-cta-button i {
    transition: transform 0.4s ease;
    position: relative;
    z-index: 1;
}

.hero-cta-button:hover i {
    transform: translateX(8px);
    animation: arrowPulse 0.6s ease-in-out infinite;
}

@keyframes arrowPulse {
    0%, 100% {
        transform: translateX(8px);
    }
    50% {
        transform: translateX(14px);
    }
}

/* RIGHT CONTENT - Form Card Enhanced */
.hero-right-content {
    position: relative;
    animation: slideInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-form-card {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px 28px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
    animation: float 6s ease-in-out infinite;
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Animated Top Border */
.hero-form-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, #FFA500 50%, transparent 100%);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.hero-form-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.5);
}

.hero-form-card h3 {
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 8px;
    text-align: center;
    position: relative;
    padding-bottom: 12px;
}

.hero-form-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #FFA500 0%, #ff8c00 100%);
    border-radius: 2px;
}

.hero-form-card > p {
    font-size: 13px;
    color: #666;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Form Elements - Interactive */
.hero-form-group {
    margin-bottom: 16px;
    position: relative;
}

.hero-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 6px;
    transition: color 0.3s ease;
}

.hero-form-group input,
.hero-form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #fff;
    color: #333;
}

.hero-form-group input:hover,
.hero-form-group textarea:hover {
    border-color: #ffb733;
    background: #fafafa;
}

.hero-form-group input:focus,
.hero-form-group textarea:focus {
    outline: none;
    border-color: #FFA500;
    box-shadow: 0 0 0 4px rgba(255, 165, 0, 0.15);
    transform: translateY(-2px);
    background: #fff;
}

.hero-form-group input:focus + label,
.hero-form-group textarea:focus + label {
    color: #FFA500;
}

.hero-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Submit Button - Premium Design */
.hero-form-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #FFA500 0%, #ff8c00 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 6px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Button Ripple Effect */
.hero-form-submit::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.hero-form-submit:hover::before {
    width: 500px;
    height: 500px;
}

.hero-form-submit:hover {
    background: linear-gradient(135deg, #ff8c00 0%, #FFA500 100%);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 30px rgba(255, 165, 0, 0.6);
}

.hero-form-submit:active {
    transform: translateY(-2px) scale(0.98);
}

.hero-form-submit i {
    margin-left: 0;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.hero-form-submit:hover i {
    transform: translateX(6px) rotate(15deg);
    animation: planeFly 0.6s ease-in-out infinite;
}

@keyframes planeFly {
    0%, 100% {
        transform: translateX(6px) rotate(15deg) translateY(0);
    }
    50% {
        transform: translateX(10px) rotate(15deg) translateY(-4px);
    }
}

/* Trust Badges - Interactive */
.hero-trust-badges {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e0e0e0;
    animation: fadeIn 1s ease-out 0.9s backwards;
}

/* Form Success/Error Messages */
.hero-form-message {
    margin-top: 15px;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    animation: slideDown 0.4s ease-out;
    display: none;
}

.hero-form-message.show {
    display: block;
}

.hero-form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.hero-form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.trust-badge {
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 4px;
    font-size: 12px;
    color: #666;
    transition: all 0.3s ease;
    cursor: default;
    text-align: center;
    flex: 1;
}

.trust-badge:hover {
    transform: translateY(-5px);
    color: #2c3e50;
}

.trust-badge i {
    color: #FFA500;
    font-size: 20px;
    transition: all 0.4s ease;
}

.trust-badge:hover i {
    transform: scale(1.25) rotate(360deg);
    filter: drop-shadow(0 4px 8px rgba(255, 165, 0, 0.5));
}

.trust-badge span {
    font-weight: 600;
}

/* RESPONSIVE DESIGN - Enhanced */

/* Large Desktop */
@media (min-width: 1400px) {
    .hero-container {
        max-width: 1320px;
    }
    
    .hero-heading {
        font-size: 60px;
    }
}

/* Desktop/Laptop */
@media (max-width: 1199px) {
    .hero-heading {
        font-size: 48px;
    }
    
    .hero-subheading {
        font-size: 19px;
    }
}

/* Tablet */
@media (max-width: 991px) {
    .hero-section {
        min-height: auto;
        padding: 100px 0 60px;
        background-attachment: scroll; /* Fix mobile parallax issues */
    }
    
    .hero-content-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    
    .hero-left-content {
        text-align: center;
    }
    
    .hero-heading {
        font-size: 44px;
    }
    
    .hero-subheading {
        margin: 0 auto 35px;
    }
    
    .hero-features {
        max-width: 500px;
        margin: 0 auto 40px;
        text-align: left;
    }
    
    .hero-cta-button {
        display: inline-flex;
    }
    
    .hero-form-card {
        max-width: 600px;
        margin: 0 auto;
        padding: 42px 38px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .hero-section {
        padding: 90px 0 50px;
    }
    
    .hero-container {
        padding: 40px 15px;
    }
    
    .hero-heading {
        font-size: 36px;
    }
    
    .hero-subheading {
        font-size: 17px;
    }
    
    .hero-features li {
        font-size: 16px;
        margin-bottom: 16px;
    }
    
    .hero-features .feature-icon {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .hero-cta-button {
        width: 100%;
        justify-content: center;
        padding: 18px 35px;
        font-size: 16px;
    }
    
    .hero-form-card {
        padding: 35px 28px;
    }
    
    .hero-form-card h3 {
        font-size: 26px;
    }
    
    .hero-form-group {
        margin-bottom: 20px;
    }
    
    .hero-trust-badges {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }
    
    .trust-badge {
        min-width: 100px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-section {
        padding: 80px 0 40px;
    }
    
    .hero-heading {
        font-size: 30px;
    }
    
    .hero-subheading {
        font-size: 15px;
    }
    
    .hero-features li {
        font-size: 15px;
    }
    
    .hero-features .feature-icon {
        width: 28px;
        height: 28px;
        font-size: 13px;
        margin-right: 12px;
    }
    
    .hero-form-card {
        padding: 30px 22px;
    }
    
    .hero-form-card h3 {
        font-size: 23px;
    }
    
    .hero-form-group input,
    .hero-form-group textarea {
        padding: 14px 16px;
    }
    
    .hero-form-submit {
        padding: 16px;
        font-size: 16px;
    }
}

/* Loading State */
.hero-section.loading {
    opacity: 0;
}

.hero-section.loaded {
    opacity: 1;
    transition: opacity 0.6s ease-in;
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .hero-section,
    .hero-section::after,
    .hero-content-wrapper,
    .hero-left-content,
    .hero-right-content,
    .hero-features li,
    .hero-cta-button,
    .hero-form-card,
    .hero-trust-badges,
    .feature-icon,
    .trust-badge i {
        animation: none !important;
        transition: none !important;
    }
    
    .hero-form-card {
        animation: none;
    }
}

/* Print Styles */
@media print {
    .hero-section {
        background: none;
        min-height: auto;
    }
    
    .hero-section::before,
    .hero-section::after {
        display: none;
    }
    
    .hero-form-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
