/* Hero Section Styles */
:root {
    --hero-green: #018a42;
    --hero-blue: #0242a4;
    --hero-light-blue: rgba(2, 66, 164, 0.1);
    --hero-light-green: rgba(1, 138, 66, 0.1);
}

.hero-section {
    padding: 100px 0 60px;
    background: linear-gradient(135deg, 
        var(--hero-light-green) 0%, 
        var(--hero-light-blue) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(2, 66, 164, 0.05) 0%, transparent 70%);
    z-index: 0;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(circle, rgba(1, 138, 66, 0.05) 0%, transparent 70%);
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

/* Hero Content Layout */
.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Hero Text Styles */
.hero-text {
    max-width: 600px;
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.95);
    padding: 12px 24px;
    border-radius: 30px;
    border: 1px solid rgba(2, 66, 164, 0.15);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--hero-blue);
    backdrop-filter: blur(10px);
}

.trust-badge i {
    color: var(--hero-green);
    font-size: 1.1rem;
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #0A1E3C;
}

.highlight {
    background: linear-gradient(135deg, var(--hero-green), var(--hero-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.6;
    color: #5D6D7E;
    margin-bottom: 40px;
    max-width: 540px;
}

/* CTA Buttons */
.hero-actions {
    display: flex;
    gap: 20px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--hero-green), var(--hero-blue));
    color: white;
    box-shadow: 0 4px 15px rgba(1, 138, 66, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(1, 138, 66, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--hero-blue);
    border: 2px solid var(--hero-blue);
}

.btn-outline:hover {
    background: var(--hero-blue);
    color: white;
    transform: translateY(-3px);
}

/* Trust Indicators */
.trust-indicators {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #5D6D7E;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.trust-item i {
    color: var(--hero-green);
    font-size: 1.1rem;
}

/* Hero Visual - Graph Container */
.hero-visual {
    position: relative;
}

.graph-container {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.08),
        inset 0 0 0 1px rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(2, 66, 164, 0.1);
    position: relative;
    overflow: hidden;
}

.graph-box {
    position: relative;
    width: 100%;
    height: 300px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 0 20px 40px 20px;
    background: linear-gradient(180deg, 
        rgba(1, 138, 66, 0.03) 0%, 
        rgba(2, 66, 164, 0.03) 100%);
    border-radius: 12px;
    overflow: visible;
}

/* Graph Bars */
.graph-bar {
    position: relative;
    width: 40px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

.bar-fill {
    width: 100%;
    background: linear-gradient(180deg, 
        var(--hero-green) 0%, 
        var(--hero-blue) 100%);
    border-radius: 6px 6px 0 0;
    animation: growBar 1s ease-out forwards;
    animation-delay: calc(var(--i, 0) * 0.2s);
    transform-origin: bottom;
    opacity: 0.8;
    transition: all 0.3s ease;
}

.graph-bar:hover .bar-fill {
    opacity: 1;
    transform: scaleY(1.05);
}

.bar-value {
    position: absolute;
    top: -30px;
    width: 100%;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--hero-green);
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
    animation-delay: calc(var(--i, 0) * 0.2s + 0.5s);
}

/* Bar Animations */
.bar-1 .bar-fill { animation-delay: 0.2s; }
.bar-1 .bar-value { animation-delay: 0.7s; }

.bar-2 .bar-fill { animation-delay: 0.4s; }
.bar-2 .bar-value { animation-delay: 0.9s; }

.bar-3 .bar-fill { animation-delay: 0.6s; }
.bar-3 .bar-value { animation-delay: 1.1s; }

.bar-4 .bar-fill { animation-delay: 0.8s; }
.bar-4 .bar-value { animation-delay: 1.3s; }

.bar-5 .bar-fill { animation-delay: 1s; }
.bar-5 .bar-value { animation-delay: 1.5s; }

/* Graph Line */
.graph-line {
    position: absolute;
    bottom: 40px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(2, 66, 164, 0.3) 50%, 
        transparent 100%);
}

/* Floating Icons */
.floating-icon {
    position: absolute;
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hero-blue);
    font-size: 1.1rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(2, 66, 164, 0.1);
    animation: float 6s ease-in-out infinite;
    opacity: 0;
    animation-fill-mode: forwards;
}

.icon-1 {
    top: 20%;
    left: 15%;
    animation-delay: 0.5s;
    background: linear-gradient(135deg, rgba(1, 138, 66, 0.1), white);
}
.icon-2 {
    top: 60%;
    right: 20%;
    animation-delay: 1s;
    background: linear-gradient(135deg, white, rgba(2, 66, 164, 0.1));
}
.icon-3 {
    bottom: 30%;
    left: 25%;
    animation-delay: 1.5s;
    background: linear-gradient(135deg, rgba(1, 138, 66, 0.1), rgba(2, 66, 164, 0.1));
}
.icon-4 {
    top: 40%;
    right: 30%;
    animation-delay: 2s;
    background: linear-gradient(135deg, rgba(2, 66, 164, 0.1), white);
}

/* Growth Label */
.growth-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    border: 1px solid rgba(1, 138, 66, 0.2);
    max-width: fit-content;
}

.growth-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--hero-green);
}

.growth-arrow {
    color: var(--hero-blue);
    font-size: 1.2rem;
    animation: bounce 2s infinite;
}

/* Testimonial Badge */
.testimonial-badge {
    position: absolute;
    bottom: -30px;
    right: 30px;
    background: white;
    padding: 20px;
    border-radius: 16px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    max-width: 280px;
    border: 1px solid rgba(2, 66, 164, 0.1);
    animation: slideIn 0.8s ease-out 0.5s forwards;
    opacity: 0;
    transform: translateY(20px);
}

.testimonial-content .rating {
    color: #FFC107;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.testimonial-content p {
    font-size: 0.9rem;
    color: #5D6D7E;
    margin-bottom: 10px;
    font-style: italic;
    line-height: 1.4;
}

.client-info {
    display: flex;
    flex-direction: column;
    font-size: 0.8rem;
}

.client-info strong {
    color: #0A1E3C;
}

.client-info span {
    color: #8A94A6;
}

/* Animations */
@keyframes growBar {
    from { height: 0; }
    to { height: var(--height); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    50% { transform: translateY(-20px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(0deg); opacity: 1; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

@keyframes slideIn {
    to { opacity: 1; transform: translateY(0); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-text {
        max-width: 100%;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .trust-indicators {
        justify-content: center;
    }
    
    .graph-container {
        max-width: 600px;
        margin: 0 auto;
    }
    
    .graph-box {
        height: 250px;
    }
    
    .graph-bar {
        width: 35px;
    }
    
    .testimonial-badge {
        position: relative;
        bottom: 0;
        right: 0;
        margin: 30px auto 0;
        max-width: 100%;
    }
    
    .growth-label {
        margin: 20px auto 0;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 80px 0 40px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .trust-indicators {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .graph-box {
        height: 220px;
        padding: 0 15px 30px 15px;
    }
    
    .graph-bar {
        width: 30px;
    }
    
    .bar-value {
        font-size: 0.75rem;
        top: -25px;
    }
    
    .floating-icon {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .trust-badge {
        font-size: 0.85rem;
        padding: 10px 18px;
    }
    
    .graph-container {
        padding: 20px;
    }
    
    .graph-box {
        height: 200px;
        padding: 0 10px 25px 10px;
    }
    
    .graph-bar {
        width: 25px;
    }
    
    .bar-value {
        font-size: 0.7rem;
        top: -22px;
    }
    
    .floating-icon {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .testimonial-badge {
        padding: 15px;
    }
}
/* Updated Graph Bar Styles */
.bar-fill {
    width: 100%;
    background: linear-gradient(180deg, var(--hero-green) 0%, var(--hero-blue) 100%);
    border-radius: 6px 6px 0 0;
    
    /* Ensure the bar stays at its final height after animation */
    height: var(--height, 70%); 
    
    /* Use transform for better performance and to prevent "flicker/disappear" issues */
    transform-origin: bottom;
    animation: growBar 1.2s cubic-bezier(0.17, 0.67, 0.83, 0.67) forwards;
    
    animation-delay: calc(var(--i, 0) * 0.15s);
    opacity: 0.8;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Keyframe fix: Animate scaleY instead of height for smoother loading */
@keyframes growBar {
    0% {
        transform: scaleY(0);
        opacity: 0;
    }
    100% {
        transform: scaleY(1);
        opacity: 0.8;
    }
}

/* Ensure values appear after bars grow */
.bar-value {
    position: absolute;
    top: -30px;
    width: 100%;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--hero-green);
    opacity: 0;
    animation: fadeIn 0.5s ease-out forwards;
    animation-delay: calc(var(--i, 0) * 0.15s + 0.8s);
}

/* Optimized Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-text {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0 40px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    /* Make the graph container adapt to mobile */
    .graph-container {
        padding: 40px 15px 20px 15px; /* Extra top padding for bar values */
        margin: 0 10px;
    }

    .graph-box {
        height: 200px;
        padding: 0 10px 30px 10px;
        gap: 8px; /* Space between bars */
    }

    .graph-bar {
        width: 100%; /* Allow bars to share space equally */
        max-width: 35px; 
    }

    .bar-value {
        font-size: 0.75rem;
        top: -25px;
    }

    /* Hide floating icons on small mobile to reduce clutter */
    .floating-icon {
        display: none;
    }

    .testimonial-badge {
        position: relative;
        bottom: 0;
        right: 0;
        margin: 20px auto;
        width: 90%;
        transform: none !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-actions {
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .graph-box {
        height: 180px;
    }

    .graph-bar {
        max-width: 25px;
    }
    
    .trust-indicators {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
}