/* Tailwind CSS Configuration */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&family=Inter:wght@400;500;600&display=swap');

/* Custom CSS Variables */
:root {
    --kasi-yellow: #F4B400;
    --deep-charcoal: #2B2B2B;
    --warm-orange: #E97428;
    --off-white: #FDF8F3;
    --light-gray: #F1F1F1;
}

/* Custom Font Classes */
.font-poppins {
    font-family: 'Poppins', sans-serif;
}

.font-inter {
    font-family: 'Inter', sans-serif;
}

/* Custom Color Classes */
.text-kasi-yellow {
    color: var(--kasi-yellow);
}

.bg-kasi-yellow {
    background-color: var(--kasi-yellow);
}

.text-deep-charcoal {
    color: var(--deep-charcoal);
}

.bg-deep-charcoal {
    background-color: var(--deep-charcoal);
}

.text-warm-orange {
    color: var(--warm-orange);
}

.bg-warm-orange {
    background-color: var(--warm-orange);
}

.text-off-white {
    color: var(--off-white);
}

.bg-off-white {
    background-color: var(--off-white);
}

.text-light-gray {
    color: var(--light-gray);
}

.bg-light-gray {
    background-color: var(--light-gray);
}

/* Custom Utility Classes */
.border-light-gray {
    border-color: var(--light-gray);
}

/* FAQ Specific Styles */
.faq-question {
    transition: all 0.3s ease;
}

.faq-question:hover {
    background-color: rgba(244, 180, 0, 0.1);
}

.faq-answer {
    transition: all 0.3s ease;
}

/* Custom Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 0.1;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(1.1);
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes bounce {
    0%, 20%, 53%, 80%, 100% {
        transform: translate3d(0,0,0);
    }
    40%, 43% {
        transform: translate3d(0, -30px, 0);
    }
    70% {
        transform: translate3d(0, -15px, 0);
    }
    90% {
        transform: translate3d(0, -4px, 0);
    }
}

@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

.animate-bounce {
    animation: bounce 1s infinite;
}

.animate-ping {
    animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.animation-delay-200 {
    animation-delay: 200ms;
}

.animation-delay-400 {
    animation-delay: 400ms;
}

.animation-delay-600 {
    animation-delay: 600ms;
}

.animation-delay-800 {
    animation-delay: 800ms;
}

/* Hero Background Animations */
.hero-bg {
    position: relative;
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--deep-charcoal) 0%, var(--deep-charcoal) 50%, #000 100%);
    z-index: 1;
}

/* Moving SVG Hero Styles */
.hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--deep-charcoal) 0%, var(--deep-charcoal) 50%, #000 100%);
}

.hero-section object,
.hero-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-section svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Ensure content is above the animated background */
.hero-content {
    position: relative;
    z-index: 10;
}

/* Animation classes for hero content */
.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Floating Elements */
.floating-element {
    position: absolute;
    border-radius: 50%;
    z-index: 3;
}

.floating-element:nth-child(1) {
    animation: float 8s ease-in-out infinite;
}

.floating-element:nth-child(2) {
    animation: float 6s ease-in-out infinite reverse;
}

.floating-element:nth-child(3) {
    animation: float 10s ease-in-out infinite;
}

/* Wave Animation */
.wave-container {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 8rem;
    overflow: hidden;
    z-index: 4;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0,0V46.29c47.79,22.2,103.59,32.17,158,28,70.36-5.37,136.33-33.31,206.8-37.5C438.64,32.43,512.34,53.67,583,72.05c69.27,18,138.3,24.88,209.4,13.08,36.15-6,69.85-17.84,104.45-29.34C989.49,25,1113-14.29,1200,52.47V0Z' opacity='.25' fill='%23F4B400'/%3E%3Cpath d='M0,0V15.81C13,36.92,27.64,56.86,47.69,72.05,99.41,111.27,165,111,224.58,91.58c31.15-10.15,60.09-26.07,89.67-39.8,40.92-19,84.73-46,130.83-49.67,36.26-2.85,70.9,9.42,98.6,31.56,31.77,25.39,62.32,62,103.63,73,40.44,10.79,81.35-6.69,119.13-24.28s75.16-39,116.92-43.05c59.73-5.85,113.28,22.88,168.9,38.84,30.2,8.66,59,6.17,87.09-7.5,22.43-10.89,48-26.93,60.65-49.24V0Z' opacity='.5' fill='%23E97428'/%3E%3Cpath d='M0,0V5.63C149.93,59,314.09,71.32,475.83,42.57c43-7.64,84.23-20.12,127.61-26.46,59-8.63,112.48,12.24,165.56,35.4C827.93,77.22,886,95.24,951.2,90c86.53-7,172.46-45.71,248.8-84.81V0Z' fill='%23F4B400'/%3E%3C/svg%3E");
    background-size: 50% 100%;
    animation: wave 25s linear infinite;
}

.wave:nth-child(2) {
    animation: wave 20s linear infinite reverse;
    opacity: 0.5;
}

.wave:nth-child(3) {
    animation: wave 15s linear infinite;
    opacity: 0.2;
}

@keyframes wave {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-25%);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Responsive Design Enhancements */
@media (max-width: 768px) {
    .mobile-hidden {
        display: none;
    }
    
    .mobile-full {
        width: 100%;
    }
    
    .floating-element {
        display: none;
    }
    
    .wave-container {
        height: 4rem;
    }
}

/* Custom Button Styles */
.btn-primary {
    background-color: var(--kasi-yellow);
    color: var(--deep-charcoal);
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: rgba(244, 180, 0, 0.9);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--kasi-yellow);
    border: 2px solid var(--kasi-yellow);
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--kasi-yellow);
    color: var(--deep-charcoal);
}

/* Card Styles */
.card {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Form Styles */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--light-gray);
    border-radius: 0.5rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--kasi-yellow);
    box-shadow: 0 0 0 3px rgba(244, 180, 0, 0.1);
}

/* Navigation Styles */
.nav-link {
    color: var(--deep-charcoal);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--kasi-yellow);
}

.nav-link.active {
    color: var(--kasi-yellow);
    font-weight: 600;
}

/* Footer Styles */
.footer-link {
    color: var(--light-gray);
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--kasi-yellow);
}

/* Icon Styles */
.icon-circle {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: var(--kasi-yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}

/* Enhanced moving.svg styles */
.hero-section object {
    opacity: 0.9;
    mix-blend-mode: screen;
}

.hero-section svg {
    opacity: 0.9;
    mix-blend-mode: screen;
}

/* Ensure text is readable over the animation - THUMA brand styling */
.hero-content .text-white {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    font-family: 'Poppins', sans-serif;
}

.hero-content h1 {
    font-weight: 700; /* Bold as per style guide */
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero-content p {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1.4;
    opacity: 0.95;
}

/* THUMA brand button styling */
.hero-content .bg-kasi-yellow {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    border-radius: 8px;
    padding: 16px 32px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(244, 180, 0, 0.3);
}

.hero-content .bg-kasi-yellow:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(244, 180, 0, 0.4);
    background-color: #E6A800 !important;
}

/* Secondary button styling */
.hero-content .border-white {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    border-radius: 8px;
    padding: 16px 32px;
    font-size: 16px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
}

.hero-content .border-white:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

/* Enhanced animations for THUMA brand */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.animate-fade-in {
    animation: fadeInUp 1s ease-out forwards;
}

.animation-delay-200 {
    animation-delay: 200ms;
}

.animation-delay-400 {
    animation-delay: 400ms;
}

.animation-delay-600 {
    animation-delay: 600ms;
}

/* THUMA brand overlay for better text readability */
.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(43, 43, 43, 0.7) 0%,
        rgba(43, 43, 43, 0.4) 50%,
        rgba(0, 0, 0, 0.8) 100%
    );
    z-index: 2;
    pointer-events: none;
}

.hero-content {
    z-index: 3;
}

/* SVG Animation Enhancements */
#svg-container svg {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 1;
}

/* Ensure animations work properly */
#road1, #road2, #terrain1, #terrain2, #mountains1, #mountains2, #clouds1, #clouds2, #van-body {
    animation-play-state: running !important;
}

/* Fallback animations if SVG doesn't load */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--deep-charcoal) 0%, var(--deep-charcoal) 50%, #000 100%);
    z-index: 0;
}

/* Additional animation classes */
@keyframes slide {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.animate-slide {
    animation: slide 10s linear infinite;
}

/* Responsive design for THUMA hero section */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 32px !important;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        font-size: 18px !important;
        line-height: 1.5;
        margin-bottom: 2rem;
    }
    
    .hero-content .flex {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-content .bg-kasi-yellow,
    .hero-content .border-white {
        padding: 14px 24px;
        font-size: 14px;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 28px !important;
    }
    
    .hero-content p {
        font-size: 16px !important;
    }
    
    .hero-content .bg-kasi-yellow,
    .hero-content .border-white {
        padding: 12px 20px;
        font-size: 14px;
        min-height: 44px; /* Touch target minimum */
    }
}

/* Enhanced mobile animations */
@media (max-width: 768px) {
    .animate-fade-in {
        animation: fadeInUp 0.8s ease-out forwards;
    }
    
    .animation-delay-200 {
        animation-delay: 100ms;
    }
    
    .animation-delay-400 {
        animation-delay: 200ms;
    }
} 