/* ========================================
   HERO SECTION - CLEAN & PROFESSIONAL
   ======================================== */

/* CSS Variables for Consistent Styling */
:root {
    --primary-color: #2E7D32; /* Deeper green for professionalism */
    --primary-dark: #1B5E20;
    --primary-light: #E8F5E9;
    --text-light: #FFFFFF;
    --text-muted: rgba(255, 255, 255, 0.85);
    --transition: all 0.3s ease;
    --border-radius: 8px;
    --container-width: 1200px;
    --header-height: 80px;
}

/* Base Hero Styles */
.hero {
    position: relative;
    min-height: 100vh;
    max-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--text-light);
    text-align: left;
    padding: calc(var(--header-height) + 20px) 0 40px;
    background-color: #0A192F;
    will-change: transform;
    backface-visibility: hidden;
    box-sizing: border-box;
}

/* Hero Background */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: #0A192F;
}

/* Hero Slider - Optimized for Performance & Smoothness */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -webkit-transform: translateZ(0);
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
    will-change: opacity, transform;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    animation: slideShow 20s infinite;
}

.slide.active {
    opacity: 1;
    z-index: 2;
    animation: none;
}

.slide img.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1);
    transition: transform 16s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
    backface-visibility: hidden;
}

.slide.active img.slide-image {
    transform: scale(1.08);
}

/* Smoother slide animation */
@keyframes slideShow {
    0%, 15% { 
        opacity: 0; 
        transform: translateX(20px) scale(0.98);
        z-index: 1; 
    }
    4%, 20% { 
        opacity: 1; 
        transform: translateX(0) scale(1);
        z-index: 2; 
    }
    75% { 
        opacity: 1; 
        transform: translateX(0) scale(1);
        z-index: 2; 
    }
    90%, 100% { 
        opacity: 0; 
        transform: translateX(-20px) scale(0.98);
        z-index: 1; 
    }
}

/* Individual slide delays */
.slide:nth-child(1) { 
    animation-delay: 0s;
    z-index: 1;
}
.slide:nth-child(2) { 
    animation-delay: 5s;
    z-index: 0;
}
.slide:nth-child(3) { 
    animation-delay: 10s;
    z-index: 0;
}
.slide:nth-child(4) { 
    animation-delay: 15s;
    z-index: 0;
}

/* Hero Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(10, 25, 47, 0.95) 0%,
        rgba(10, 25, 47, 0.85) 50%,
        rgba(10, 25, 47, 0.6) 100%
    );
    z-index: 2;
    pointer-events: none;
}

/* Hero Content Container */
.hero .container {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
    height: 100%;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    overflow-y: auto;
    max-height: calc(100vh - var(--header-height) - 40px);
}

.hero-content {
    max-width: 680px;
    padding: 40px 0;
    position: relative;
    z-index: 4;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
    will-change: transform, opacity;
    backface-visibility: hidden;
    box-sizing: border-box;
    overflow: visible;
}

/* Hero Badge - Clean and Professional */
.hero-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 4px;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    opacity: 0;
    transform: translateY(10px);
    animation: fadeInUp 0.6s ease-out 0.4s forwards;
}

/* Hero Heading - Clean and Professional */
.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 20px;
    color: var(--text-light);
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
}

.hero h1 span {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.hero h1 span::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 5px;
    width: 100%;
    height: 8px;
    background: rgba(76, 175, 80, 0.3);
    z-index: -1;
    border-radius: 4px;
}

/* Hero Lead Text */
.hero-lead {
    font-size: 1.2rem;
    line-height: 1.7;
    margin: 0 0 32px;
    max-width: 600px;
    color: var(--text-muted);
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
    font-weight: 400;
}

/* Hero Buttons - Clean and Professional */
.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin: 32px 0 0;
    opacity: 0;
    transform: translateY(15px);
    animation: fadeInUp 0.8s ease-out 0.7s forwards;
}

.hero-buttons .btn {
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: 50px;
    letter-spacing: 0.3px;
}

.hero-buttons .btn i {
    font-size: 0.9em;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.hero-buttons .btn span {
    position: relative;
    z-index: 2;
}

.hero-buttons .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}

.hero-buttons .btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* Primary Button */
.hero-buttons .btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: 2px solid var(--primary-color);
}

.hero-buttons .btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Secondary Button */
.hero-buttons .btn-secondary {
    background-color: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.hero-buttons .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Button Icons */
.hero-buttons .btn i {
    font-size: 1em;
    transition: transform 0.2s ease;
}

.hero-buttons .btn:hover i {
    transform: translateX(3px);
}

.hero-buttons .btn-primary {
    color: white;
    border: 2px solid transparent;
}

.hero-buttons .btn-primary:hover {
    background: #43a047;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.4);
}

.hero-buttons .btn-primary:active {
    transform: translateY(-1px) scale(0.99);
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3);
}

.hero-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.hero-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.25);
}

.hero-buttons .btn-secondary:active {
    transform: translateY(-1px) scale(0.99);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Button hover effect */
.hero-buttons .btn:hover i {
    transform: translateX(3px);
}

/* Trust Indicators with Smoother Animation */
.trust-indicators {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateZ(0);
    will-change: transform, background, border-color;
}

.trust-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: rgba(255, 255, 255, 0.1);
}

.trust-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.trust-item:hover i {
    transform: scale(1.1);
    color: #66bb6a;
}

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

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

/* Additional Animation for Hero Content */
@keyframes scaleIn {
    from { 
        opacity: 0; 
        transform: scale(0.95) translateY(20px);
    }
    to { 
        opacity: 1; 
        transform: scale(1) translateY(0);
    }
}

/* Smooth fade-in for page load */
@keyframes pageLoad {
    from { 
        opacity: 0; 
    }
    to { 
        opacity: 1; 
    }
}

/* Apply smooth page load animation */
.hero {
    animation: pageLoad 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Animation Keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .hero-content {
        padding: 40px 35px;
    }
    
    .hero h1 {
        font-size: clamp(2.2rem, 5vw, 4rem);
    }
    
    .hero-lead {
        font-size: 1.2rem;
    }
}

@media (max-width: 992px) {
    .hero {
        min-height: auto;
        padding: 100px 0 60px;
        text-align: center;
    }
    
    .hero-content {
        margin: 0 auto;
        text-align: center;
        padding: 0 20px;
    }
    
    .hero h1 {
        font-size: 2.5rem;
        margin: 0 auto 20px;
    }
    
    .hero-lead {
        font-size: 1.1rem;
        margin: 0 auto 30px;
        max-width: 90%;
    }
    
    .hero-buttons {
        justify-content: center;
        gap: 12px;
    }
    
    .hero-badge {
        margin: 0 auto 20px;
    }
}

@media (max-width: 576px) {
    .hero {
        padding: 80px 0 50px;
    }
    
    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-lead {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    .hero-badge {
        font-size: 0.75rem;
        padding: 5px 14px;
    }
    
    .hero-overlay {
        background: linear-gradient(
            to right,
            rgba(10, 25, 47, 0.95) 0%,
            rgba(10, 25, 47, 0.9) 100%
        );
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
}

/* Additional styles for hero heading */
.hero h1 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 1.5rem;
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s both;
}

.hero h1::after {
    content: '';
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 4px;
    background: linear-gradient(90deg, var(--hero-accent), var(--hero-accent-light));
    border-radius: 4px;
    animation: slideIn 1s ease-out 1s both;
}

/* Enhanced Description */
.hero p {
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    max-width: 750px;
    margin: 0 auto 4rem;
    color: #e2e8f0;
    line-height: 1.8;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    font-weight: 400;
    letter-spacing: 0.3px;
    animation: fadeIn 1s ease-out 0.7s both;
}

/* Enhanced Button Container */
.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 3rem auto 0;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.9s;
    perspective: 1000px;
    max-width: 600px;
    margin-bottom: 4rem;
}

/* Enhanced Button Styles */
.hero .btn {
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: transform, box-shadow;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2), 0 6px 6px rgba(0, 0, 0, 0.1);
}

.hero .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%) skewX(-15deg);
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.hero .btn:hover {
    transform: translateY(-5px) translateZ(10px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 10px 10px rgba(0, 0, 0, 0.1);
}

.hero .btn:active {
    transform: translateY(0) scale(0.98) translateZ(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.hero .btn:hover::before {
    transform: translateX(200%) skewX(-15deg);
}

.hero .btn i {
    position: relative;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.hero .btn:hover i {
    transform: translateX(5px);
}

/* Primary Button */
.hero .btn-primary {
    background: linear-gradient(135deg, var(--hero-accent), var(--hero-accent-light));
    color: white;
    position: relative;
    z-index: 1;
}

.hero .btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--hero-accent-light), var(--hero-accent));
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
    border-radius: inherit;
}

.hero .btn-primary:hover::after {
    opacity: 1;
}

/* Secondary Button */
.hero .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.hero .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

/* Button Icons */
.hero .btn i {
    font-size: 1.1em;
    transition: transform 0.3s ease;
}

.hero .btn:hover i {
    transform: translateX(5px);
}

.hero .btn-primary:hover i {
    animation: bounceRight 0.6s ease infinite alternate;
}

.hero .btn-secondary:hover i {
    animation: bounceRight 0.6s ease infinite alternate;
}

@keyframes bounceRight {
    0% { transform: translateX(0); }
    100% { transform: translateX(5px); }
}

/* Trust Indicators */
.trust-indicators {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    margin-top: 3rem;
    animation: fadeIn 1s ease-out 1.1s both;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    transform-style: preserve-3d;
    will-change: transform, box-shadow, background;
    position: relative;
    overflow: hidden;
    cursor: default;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.trust-item i {
    font-size: 1.5rem;
    color: var(--hero-accent-light);
    transition: all 0.4s ease;
    position: relative;
    z-index: 1;
}

.trust-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transform: translateX(-100%) skewX(-15deg);
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.trust-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(124, 58, 237, 0.1));
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
    border-radius: 50px;
}

.trust-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px) translateZ(10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2), 0 5px 15px rgba(0, 0, 0, 0.1);
}

.trust-item:hover::before {
    transform: translateX(200%) skewX(-15deg);
}

.trust-item:hover::after {
    opacity: 1;
}

.trust-item:hover i {
    transform: scale(1.1) rotate(10deg);
    color: var(--hero-accent);
}

.trust-item:hover span {
    transform: translateX(3px);
    color: white;
}

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

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

@keyframes slideIn {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 150px;
        opacity: 1;
    }
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
    .hero {
        padding: 100px 20px;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .trust-indicators {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .trust-item {
        flex: 0 0 calc(50% - 1rem);
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 85vh;
        max-height: none;
        padding: 70px 15px 40px;
    }
    
    .hero-content {
        padding: 30px 20px;
        margin: 0 15px;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.2;
        margin-bottom: 1rem;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        padding: 12px 20px;
    }
    
    .trust-indicators {
        flex-direction: column;
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .trust-item {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        padding: 12px 15px;
    }
    
    .trust-item i {
        font-size: 1.5rem;
    }
    
    .trust-item span {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 85vh;
        padding: 70px 10px 50px;
    }
    
    .hero-content {
        padding: 25px 15px;
        margin: 0 10px;
    }
    
    .hero-subtitle {
        padding-left: 2.5rem;
        margin-bottom: 1.2rem;
    }
    
    .hero-subtitle::before {
        width: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }
    
    .trust-item {
        width: 100%;
        justify-content: center;
    }
}
