/* Hero Section Styles */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 50%, #f0fdf4 100%);
    padding: 100px 0 80px;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

/* Hero Shapes Background */
.hero-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    background: var(--primary-color);
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: -150px;
    right: -100px;
    background: var(--primary-color);
}

[dir="ltr"] .shape-1 {
    right: auto;
    left: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    bottom: -100px;
    left: -80px;
    background: var(--accent-color);
}

[dir="ltr"] .shape-2 {
    left: auto;
    right: -80px;
}

.shape-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    right: 20%;
    background: var(--primary-light);
}

[dir="ltr"] .shape-3 {
    right: auto;
    left: 20%;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

[dir="rtl"] .hero-content {
    direction: rtl;
}

[dir="ltr"] .hero-content {
    direction: ltr;
}

/* Hero Text */
.hero-text {
    max-width: 100%;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -0.5px;
}

.hero-title span {
    color: var(--primary-color);
    display: block;
}

.hero-subtitle {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 90%;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 2px solid transparent;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(11, 106, 50, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(11, 106, 50, 0.35);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

.btn-primary i {
    font-size: 14px;
}

[dir="rtl"] .btn-primary i {
    transform: rotate(180deg);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(11, 106, 50, 0.25);
}

.btn-secondary i {
    font-size: 16px;
}

/* Hero Image/Visual */
.hero-image {
    position: relative;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-visual {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 500px;
}

.hero-icon {
    position: absolute;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 32px;
    box-shadow: 0 8px 24px rgba(11, 106, 50, 0.2);
    animation: circularFloatRTL 25s linear infinite;
    z-index: 2;
    transition: filter 0.4s ease, box-shadow 0.4s ease;
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

[dir="ltr"] .hero-icon {
    filter: brightness(1) drop-shadow(0 4px 12px rgba(11, 106, 50, 0.2));
}

/* Icon hover effects - pause animation slightly */
.hero-icon:hover {
    animation-play-state: paused;
    filter: brightness(1.2);
    box-shadow: 0 12px 32px rgba(11, 106, 50, 0.4);
    z-index: 3;
}

[dir="ltr"] .hero-icon:hover {
    filter: brightness(1.3) saturate(1.2);
}

.hero-icon-1 {
    top: 50%;
    right: 50%;
    animation-delay: 0s;
}

.hero-icon-2 {
    top: 50%;
    right: 50%;
    animation-delay: 2.857s;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
}

.hero-icon-3 {
    top: 50%;
    right: 50%;
    animation-delay: 5.714s;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
}

.hero-icon-4 {
    top: 50%;
    right: 50%;
    animation-delay: 8.571s;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
}

.hero-icon-5 {
    top: 50%;
    right: 50%;
    animation-delay: 11.428s;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.hero-icon-6 {
    top: 50%;
    right: 50%;
    animation-delay: 14.285s;
    background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent-color) 100%);
}

.hero-icon-7 {
    top: 50%;
    right: 50%;
    animation-delay: 17.142s;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%);
    width: 70px;
    height: 70px;
    font-size: 28px;
}

.hero-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.15;
    animation: pulse 5s ease-in-out infinite;
}

.hero-circle-1 {
    width: 200px;
    height: 200px;
    background: var(--primary-color);
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
    animation-delay: 0s;
    animation-name: pulse;
}

.hero-circle-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-color);
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
    animation-delay: 1.5s;
    animation-name: pulse;
}

.hero-circle-3 {
    width: 400px;
    height: 400px;
    background: var(--primary-light);
    top: 50%;
    right: 50%;
    transform: translate(50%, -50%);
    animation-delay: 3s;
    animation-name: pulse;
}

/* Enhanced pulse animation with rotation for LTR */
[dir="ltr"] .hero-circle {
    animation-name: pulseRotateLTR;
}

[dir="ltr"] .hero-circle-1 {
    animation-delay: 0s;
}

[dir="ltr"] .hero-circle-2 {
    animation-delay: 1.5s;
}

[dir="ltr"] .hero-circle-3 {
    animation-delay: 3s;
}

/* Animations - Circular Motion */
/* RTL Circular Motion - Clockwise */
@keyframes circularFloatRTL {
    0% {
        transform: translate(50%, -50%) rotate(0deg) translateX(180px) rotate(0deg);
    }
    100% {
        transform: translate(50%, -50%) rotate(360deg) translateX(180px) rotate(-360deg);
    }
}

/* LTR Circular Motion - Counter-clockwise starting from top */
@keyframes circularFloatLTR {
    0% {
        transform: translate(-50%, -50%) rotate(-90deg) translateX(180px) rotate(90deg);
        filter: brightness(1) drop-shadow(0 4px 12px rgba(11, 106, 50, 0.2));
    }
    12.5% {
        filter: brightness(1.08) drop-shadow(0 6px 16px rgba(11, 106, 50, 0.25));
    }
    25% {
        filter: brightness(1.15) drop-shadow(0 8px 20px rgba(11, 106, 50, 0.3));
    }
    37.5% {
        filter: brightness(1.08) drop-shadow(0 6px 16px rgba(11, 106, 50, 0.25));
    }
    50% {
        transform: translate(-50%, -50%) rotate(-270deg) translateX(180px) rotate(270deg);
        filter: brightness(1) drop-shadow(0 4px 12px rgba(11, 106, 50, 0.2));
    }
    62.5% {
        filter: brightness(1.08) drop-shadow(0 6px 16px rgba(11, 106, 50, 0.25));
    }
    75% {
        filter: brightness(1.15) drop-shadow(0 8px 20px rgba(11, 106, 50, 0.3));
    }
    87.5% {
        filter: brightness(1.08) drop-shadow(0 6px 16px rgba(11, 106, 50, 0.25));
    }
    100% {
        transform: translate(-50%, -50%) rotate(-450deg) translateX(180px) rotate(450deg);
        filter: brightness(1) drop-shadow(0 4px 12px rgba(11, 106, 50, 0.2));
    }
}

[dir="rtl"] .hero-icon {
    animation-name: circularFloatRTL;
    animation-duration: 25s;
    animation-timing-function: linear;
    will-change: transform;
}

[dir="ltr"] .hero-icon {
    animation-name: circularFloatLTR;
    animation-duration: 20s;
    animation-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform, filter;
}

/* RTL Pulse Animation */
@keyframes pulse {
    0%, 100% {
        transform: translate(50%, -50%) scale(1) rotate(0deg);
        opacity: 0.15;
    }
    50% {
        transform: translate(50%, -50%) scale(1.15) rotate(180deg);
        opacity: 0.25;
    }
}

/* LTR Enhanced Pulse with Rotation */
@keyframes pulseRotateLTR {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 0.15;
    }
    25% {
        transform: translate(-50%, -50%) scale(1.1) rotate(90deg);
        opacity: 0.22;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2) rotate(180deg);
        opacity: 0.28;
    }
    75% {
        transform: translate(-50%, -50%) scale(1.1) rotate(270deg);
        opacity: 0.22;
    }
}

/* Enhanced circle animation for LTR */
[dir="ltr"] .hero-circle {
    animation-duration: 6s;
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
}

/* LTR Circle positioning */
[dir="ltr"] .hero-circle-1,
[dir="ltr"] .hero-circle-2,
[dir="ltr"] .hero-circle-3 {
    transform: translate(-50%, -50%);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .hero-section {
        padding: 20px 0;
        min-height: 100vh;
        min-height: 100dvh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        gap: 50px;
        text-align: center;
        min-height: calc(100vh - 40px);
        min-height: calc(100dvh - 40px);
        justify-content: center;
        align-items: center;
    }

    .hero-text {
        order: 1;
    }

    .hero-image {
        order: 2;
        height: 350px;
        flex-shrink: 0;
    }

    .hero-title {
        font-size: 38px;
    }

    .hero-subtitle {
        font-size: 16px;
        max-width: 100%;
        margin: 0 auto 35px;
    }

    .hero-buttons {
        justify-content: center;
    }

    [dir="rtl"] .hero-content,
    [dir="ltr"] .hero-content {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 20px 0;
        min-height: 100vh;
        min-height: 100dvh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        gap: 40px;
        min-height: calc(100vh - 40px);
        min-height: calc(100dvh - 40px);
        justify-content: center;
        align-items: center;
    }

    .hero-title {
        font-size: 32px;
        margin-bottom: 20px;
    }

    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 30px;
    }

    .hero-image {
        height: 300px;
        flex-shrink: 0;
    }

    .hero-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
        border-radius: 15px;
    }

    [dir="ltr"] .hero-icon {
        animation-duration: 18s;
    }

    [dir="rtl"] .hero-icon {
        animation-duration: 22s;
    }

    .hero-icon-7 {
        width: 55px;
        height: 55px;
        font-size: 22px;
    }

    /* Adjust circle animation for tablet */
    [dir="ltr"] .hero-circle {
        animation-duration: 5s;
    }

    .btn {
        padding: 12px 24px;
        font-size: 15px;
    }

    .hero-circle-1 {
        width: 150px;
        height: 150px;
    }

    .hero-circle-2 {
        width: 220px;
        height: 220px;
    }

    .hero-circle-3 {
        width: 300px;
        height: 300px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 15px 0;
        min-height: 100vh;
        min-height: 100dvh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        gap: 30px;
        min-height: calc(100vh - 30px);
        min-height: calc(100dvh - 30px);
        justify-content: center;
        align-items: center;
        padding: 10px 0;
    }

    .hero-title {
        font-size: 28px;
        margin-bottom: 16px;
    }

    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 25px;
        line-height: 1.7;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 14px;
    }

    .hero-image {
        height: 250px;
        flex-shrink: 0;
    }

    .hero-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
        border-radius: 12px;
    }

    [dir="ltr"] .hero-icon {
        animation-duration: 16s;
    }

    [dir="rtl"] .hero-icon {
        animation-duration: 20s;
    }

    .hero-icon-7 {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    /* Adjust circle animation for mobile */
    [dir="ltr"] .hero-circle {
        animation-duration: 4.5s;
    }

    .shape-1 {
        width: 250px;
        height: 250px;
    }

    .shape-2 {
        width: 200px;
        height: 200px;
    }

    .shape-3 {
        width: 150px;
        height: 150px;
    }
}

