/* Fire Effect for Hero Section */
.hero-fire-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 45%;
    height: 100%;
    overflow: visible;
    pointer-events: none;
    z-index: 5;
}

.hero-fire-container::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -15%;
    width: 80%;
    height: 120%;
    background: linear-gradient(165deg, 
        rgba(255, 215, 0, 0.15) 0%,
        rgba(255, 165, 0, 0.12) 25%,
        rgba(255, 140, 0, 0.1) 50%,
        rgba(255, 69, 0, 0.07) 75%,
        transparent 100%);
    border-radius: 50% 40% 60% 50%;
    transform: rotate(15deg);
    animation: flame-pulse-right 9s ease-in-out infinite;
    filter: blur(55px);
}

.hero-fire-container::after {
    content: '';
    position: absolute;
    bottom: -15%;
    right: -20%;
    width: 70%;
    height: 110%;
    background: linear-gradient(195deg,
        rgba(255, 140, 0, 0.12) 0%,
        rgba(255, 99, 71, 0.1) 40%,
        rgba(220, 20, 60, 0.06) 70%,
        transparent 100%);
    border-radius: 40% 50% 50% 60%;
    transform: rotate(-20deg);
    animation: flame-wave 11s ease-in-out infinite;
    filter: blur(50px);
}

.flame-accent-1 {
    position: absolute;
    top: 20%;
    right: 5%;
    width: 50%;
    height: 55%;
    background: radial-gradient(ellipse at center,
        rgba(255, 215, 0, 0.1) 0%,
        rgba(255, 165, 0, 0.08) 30%,
        rgba(255, 140, 0, 0.05) 60%,
        transparent 100%);
    border-radius: 50% 50% 40% 60%;
    transform: rotate(-15deg);
    animation: flame-flicker 7s ease-in-out infinite;
    filter: blur(45px);
}

.flame-accent-2 {
    position: absolute;
    bottom: 15%;
    right: 0%;
    width: 55%;
    height: 50%;
    background: radial-gradient(circle at center,
        rgba(255, 69, 0, 0.08) 0%,
        rgba(220, 20, 60, 0.05) 50%,
        transparent 100%);
    border-radius: 50%;
    animation: flame-glow-pulse 8s ease-in-out infinite;
    filter: blur(42px);
}

@keyframes flame-pulse-right {
    0%, 100% {
        transform: rotate(15deg) translateY(0) translateX(0) scale(1);
        opacity: 1;
    }
    25% {
        transform: rotate(18deg) translateY(-30px) translateX(10px) scale(1.06);
        opacity: 0.88;
    }
    50% {
        transform: rotate(12deg) translateY(-15px) translateX(-8px) scale(1.03);
        opacity: 0.94;
    }
    75% {
        transform: rotate(16deg) translateY(-22px) translateX(12px) scale(1.05);
        opacity: 0.9;
    }
}

@keyframes flame-wave {
    0%, 100% {
        transform: rotate(-20deg) translateX(0) translateY(0) scale(1);
        opacity: 1;
    }
    30% {
        transform: rotate(-23deg) translateX(18px) translateY(-15px) scale(1.07);
        opacity: 0.86;
    }
    60% {
        transform: rotate(-17deg) translateX(-12px) translateY(10px) scale(1.09);
        opacity: 0.92;
    }
    80% {
        transform: rotate(-21deg) translateX(10px) translateY(-8px) scale(1.05);
        opacity: 0.88;
    }
}

@keyframes flame-flicker {
    0%, 100% {
        transform: rotate(-15deg) scale(1) translateX(0);
        opacity: 0.82;
    }
    33% {
        transform: rotate(-18deg) scale(1.1) translateX(8px);
        opacity: 0.95;
    }
    66% {
        transform: rotate(-12deg) scale(1.05) translateX(-5px);
        opacity: 0.88;
    }
}

@keyframes flame-glow-pulse {
    0%, 100% {
        opacity: 0.68;
        transform: scale(1) translateY(0) translateX(0);
    }
    40% {
        opacity: 0.95;
        transform: scale(1.12) translateY(-18px) translateX(-10px);
    }
    70% {
        opacity: 0.8;
        transform: scale(1.08) translateY(-10px) translateX(8px);
    }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .hero-fire-container {
        top: auto;
        bottom: 0;
        right: 0;
        width: 100%;
        height: 45%;
        overflow: visible;
    }

    .hero-fire-container::before {
        top: auto;
        bottom: -20%;
        right: -10%;
        left: auto;
        width: 100%;
        height: 100%;
        filter: blur(40px);
        animation: flame-mobile-rise 10s ease-in-out infinite;
    }

    .hero-fire-container::after {
        bottom: -25%;
        right: auto;
        left: -15%;
        width: 90%;
        height: 95%;
        filter: blur(38px);
        animation: flame-mobile-wave 12s ease-in-out infinite;
    }

    .flame-accent-1 {
        top: auto;
        bottom: 10%;
        right: 15%;
        width: 60%;
        height: 50%;
        filter: blur(35px);
        animation: flame-mobile-flicker 8s ease-in-out infinite;
    }

    .flame-accent-2 {
        bottom: 5%;
        right: auto;
        left: 20%;
        width: 65%;
        height: 45%;
        filter: blur(33px);
        animation: flame-mobile-glow 9s ease-in-out infinite;
    }
}

@keyframes flame-mobile-rise {
    0%, 100% {
        transform: rotate(0deg) translateY(0) scale(1);
        opacity: 1;
    }
    50% {
        transform: rotate(5deg) translateY(-25px) scale(1.08);
        opacity: 0.85;
    }
}

@keyframes flame-mobile-wave {
    0%, 100% {
        transform: rotate(-5deg) translateX(0) scale(1);
        opacity: 1;
    }
    50% {
        transform: rotate(3deg) translateX(20px) scale(1.06);
        opacity: 0.88;
    }
}

@keyframes flame-mobile-flicker {
    0%, 100% {
        transform: scale(1) translateY(0);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.1) translateY(-15px);
        opacity: 0.95;
    }
}

@keyframes flame-mobile-glow {
    0%, 100% {
        opacity: 0.7;
        transform: scale(1) translateX(0);
    }
    50% {
        opacity: 0.92;
        transform: scale(1.12) translateX(-15px);
    }
}

@media (max-width: 480px) {
    .hero-fire-container {
        height: 40%;
    }

    .hero-fire-container::before,
    .hero-fire-container::after {
        filter: blur(32px);
    }

    .flame-accent-1,
    .flame-accent-2 {
        filter: blur(28px);
    }
}

/* Hero CTA Animation - triggered after splash */
.hero-cta {
    opacity: 0;
    transform: translateY(50px);
}

.hero-cta.animate {
    animation: slideInUp 1s ease forwards;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation for form elements */
.hero-cta.animate .cta-title {
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.8s ease forwards;
    animation-delay: 0.2s;
}

.hero-cta.animate .hero-form input {
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.8s ease forwards;
}

.hero-cta.animate .hero-form input:nth-child(1) {
    animation-delay: 0.4s;
}

.hero-cta.animate .hero-form input:nth-child(2) {
    animation-delay: 0.6s;
}

.hero-cta.animate .hero-form input:nth-child(3) {
    animation-delay: 0.8s;
}

.hero-cta.animate .hero-form button {
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.8s ease forwards;
    animation-delay: 1s;
}

.hero-cta.animate .immediate-enquiry {
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.8s ease forwards;
    animation-delay: 1.2s;
}

.hero-form textarea {
    width: 100%;
    padding: 1rem;
    margin-bottom: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: 'TASA Explorer', sans-serif;
    font-weight: 500;
    transition: all 0.3s ease;
    resize: vertical;
    min-height: 80px;
    background: #ffffff;
    color: #001f3f;
}

.hero-form textarea:focus {
    outline: none;
    border-color: #FFA500;
    box-shadow: 0 0 0 3px rgba(255, 165, 0, 0.1);
    transform: translateY(-2px);
}

.hero-form textarea::placeholder {
    color: #999;
    font-weight: 500;
    transition: all 0.3s ease;
}

.hero-form textarea:focus::placeholder {
    color: #ccc;
    transform: translateY(-2px);
}

/* Responsive textarea */
@media (max-width: 768px) {
    .hero-form textarea {
        font-size: 0.9rem;
        padding: 0.9rem;
        min-height: 70px;
    }
}

@media (max-width: 480px) {
    .hero-form textarea {
        font-size: 0.85rem;
        padding: 0.85rem;
        min-height: 65px;
    }
}
