/* ============================================
 Hero Section - FlexoFlash Design
 Color Scheme: Purple/Blue Gradient
 ============================================ */

/* Hero Container */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #E8EEFF 0%, #F0E8FF 25%, #E8F4FF 50%, #F0ECFF 75%, #E8EEFF 100%);
    position: relative;

    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 24px;
}

/* 3D Shapes */
.shape-left,
.shape-right {
    position: absolute;
    z-index: 5;
}

.shape-left {
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
}

.shape-right {
    right: 5%;
    bottom: 15%;
}

.shape-3d {
    width: 200px;
    height: 200px;
    border-radius: 0;
    position: relative;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 20px 40px rgba(56, 131, 244, 0.2));
}

.shape-3d-left {
    background-image: url(' ../images/index/half-torus-1.png.png');
    animation: floatLeft 8s cubic-bezier(0.42, 0, 0.58, 1) infinite;
}

.shape-3d-right {
    background-image: url('../images/index/torus-1.png.png');
    animation: floatRight 9s cubic-bezier(0.42, 0, 0.58, 1) infinite;
}

@keyframes floatLeft {
    0% {
        transform: translateY(0) translateX(0) rotate(-25deg) scale(1);
    }
    25% {
        transform: translateY(-40px) translateX(-15px) rotate(-20deg) scale(1.05);
    }
    50% {
        transform: translateY(-60px) translateX(0) rotate(-25deg) scale(1);
    }
    75% {
        transform: translateY(-40px) translateX(15px) rotate(-30deg) scale(1.05);
    }
    100% {
        transform: translateY(0) translateX(0) rotate(-25deg) scale(1);
    }
}

@keyframes floatRight {
    0% {
        transform: translateY(0) translateX(0) rotate(15deg) scale(1);
    }
    25% {
        transform: translateY(-50px) translateX(20px) rotate(20deg) scale(1.08);
    }
    50% {
        transform: translateY(-70px) translateX(0) rotate(15deg) scale(1);
    }
    75% {
        transform: translateY(-50px) translateX(-20px) rotate(10deg) scale(1.08);
    }
    100% {
        transform: translateY(0) translateX(0) rotate(15deg) scale(1);
    }
}

/* Hero Content */
.hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    text-align: center;
    margin-top: 10%;
}

/* Hero Alerts */
.hero-alerts {
    margin-bottom: 32px;
}

/* Rating Badge */
.rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    /* background: white; */
    padding: 12px 24px;
    border-radius: 50px;
    /* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08); */
    /* margin-bottom: 32px; */
    animation: slideUp 0.6s ease-out;
}

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

.avatars {
    display: flex;
    margin-left: -8px;
}

/* Arabic RTL - Large screens only */
@media (min-width: 768px) {
    [dir="rtl"] .avatars {
        margin-left: -208px;
    }
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 3px solid white;
    margin-left: -12px;
    background-size: cover;
    background-position: center;
    object-fit: cover;
    display: block;
}

.avatar-1,
.avatar-2,
.avatar-3 {
    background: none;
}

.rating-text {
    text-align: left;
}

.stars {
    color: #1E293B;
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 2px;
}

.loved-text {
    font-size: 12px;
    color: #64748B;
    font-weight: 500;
}

/* Hero Heading */
.hero-heading {
    font-size: 72px;
    font-weight: 800;
    line-height: 1.2;
    color: #1E293B;
    margin-bottom: 24px;
    letter-spacing: -1px;
    animation: slideUp 0.6s ease-out 0.1s both;
}

.hero-heading .heading-main {
    color: #113967;
    display: block;
    font-size: 72px;
    font-weight: 800;
}


.hero-heading .heading-highlight {
    color: #7340DE;
    display: block;
    font-size: 72px;
    font-weight: 800;
    background: linear-gradient(135deg, #7340DE 0%, #7143DF 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-heading .text-primary {
    color: #113967 !important;
    -webkit-text-fill-color: #113967 !important;
}

/* Hero Description */
.hero-description {
    font-size: 20px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 40px;
    font-weight: 400;
    animation: slideUp 0.6s ease-out 0.2s both;
}

@media (max-width: 1024px) {
    .hero-heading {
        font-size: 56px;
        margin-bottom: 20px;
    }

    .hero-heading .heading-main {
        font-size: 56px;
    }

    .hero-heading .heading-highlight {
        font-size: 56px;
    }

    .hero-description {
        font-size: 18px;
        margin-bottom: 32px;
    }
}

@media (max-width: 768px) {
    .hero-heading {
        font-size: 42px;
        margin-bottom: 16px;
        line-height: 1.3;
    }

    .hero-heading .heading-main {
        font-size: 42px;
    }

    .hero-heading .heading-highlight {
        font-size: 42px;
    }

    .hero-description {
        font-size: 16px;
        margin-bottom: 24px;
        line-height: 1.5;
    }
}

@media (max-width: 576px) {
    .hero-heading {
        font-size: 28px;
        margin-bottom: 12px;
        line-height: 1.3;
        letter-spacing: -0.5px;
    }

    .hero-heading .heading-main {
        font-size: 28px;
    }

    .hero-heading .heading-highlight {
        font-size: 28px;
    }

    .hero-description {
        font-size: 14px;
        margin-bottom: 20px;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .hero-heading {
        font-size: 24px;
        margin-bottom: 10px;
        line-height: 1.25;
    }

    .hero-heading .heading-main {
        font-size: 24px;
    }

    .hero-heading .heading-highlight {
        font-size: 24px;
    }

    .hero-description {
        font-size: 13px;
        margin-bottom: 16px;
        line-height: 1.4;
    }
}

/* Hero Actions */
.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
    animation: slideUp 0.6s ease-out 0.3s both;
}

/* Email Form */
.hero-email-form {
    width: 100%;
    max-width: 500px;
}

.email-input-wrapper {
    display: flex;
    gap: 0;
    background: white;
    border-radius: 50px;
    padding: 4px;
    box-shadow: 0 8px 24px rgba(56, 131, 244, 0.15);
    transition: all 0.3s ease;
}

.email-input-wrapper:focus-within {
    box-shadow: 0 12px 32px rgba(56, 131, 244, 0.25);
}

.email-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 12px 20px;
    font-size: 15px;
    color: #1E293B;
    outline: none;
    font-family: inherit;
}

.email-input::placeholder {
    color: #94A3B8;
}

.email-input-wrapper .btn-get-started {
    margin: 0;
    padding: 12px 28px;
    border-radius: 50px;
    box-shadow: none;
    background: linear-gradient(135deg, #3883F4 0%, #7143DF 100%);
    white-space: nowrap;
    flex-shrink: 0;
}

.email-input-wrapper .btn-get-started:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(56, 131, 244, 0.3);
}

@media (max-width: 768px) {
    .hero-actions {
        gap: 12px;
        margin-bottom: 40px;
        /* flex-direction: column; */
    }

    .hero-email-form {
        width: 100%;
    }

    .email-input-wrapper {
        /* flex-direction: column; */
        border-radius: 30px;
        padding: 6px;
    }

    .email-input {
        padding: 12px 16px;
        font-size: 14px;
        width: 100%;
        margin-bottom: 8px;
    }

    .email-input-wrapper .btn-get-started {
        padding: 1px 20px;
        font-size: 14px;
        width: 42%;
        /* justify-content: center; */
    }

    .btn-example {
        width: 100%;
        /* justify-content: center; */
    }
}

@media (max-width: 480px) {
    .hero-actions {
        gap: 10px;
        margin-bottom: 32px;
    }

    .email-input-wrapper {
        /* flex-direction: column; */
        border-radius: 15px;
        padding: 5px;
    }

    .email-input {
        padding: 10px 12px;
        font-size: 13px;
        margin-bottom: 6px;
    }

    .email-input-wrapper .btn-get-started {
        padding: 10px 16px;
        font-size: 13px;
        width: 33%;
    }

    .btn-example {
        width: 100%;
        padding: 12px 16px;
        font-size: 13px;
    }
}

/* Get Started Button */
.btn-get-started {
    background: linear-gradient(135deg, #3883F4 0%, #7143DF 100%);
    border: none;
    color: white;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(56, 131, 244, 0.35);
    text-decoration: none;
    white-space: nowrap;
}

.btn-get-started:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(56, 131, 244, 0.5);
    color: white;
    text-decoration: none;
}

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

/* Example Button */
.btn-example {
    background: transparent;
    border: 2px solid #3883F4;
    color: #3883F4;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn-example:hover {
    background: #3883F4;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(56, 131, 244, 0.35);
    text-decoration: none;
}

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

/* Hero Image Container */
.hero-image-container {
    position: relative;
    z-index: 10;
    animation: slideUp 0.6s ease-out 0.4s both;
}

.hero-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.2);
    display: block;
    margin: 0 auto;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .shape-left,
    .shape-right {
        display: none;
    }

    .hero-section {
        min-height: auto;
        padding: 60px 24px;
    }

    .hero-heading {
        font-size: 56px;
    }

    .hero-description {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 40px 16px;
    }

    .hero-heading {
        font-size: 42px;
        margin-bottom: 20px;
    }

    .hero-description {
        font-size: 16px;
        margin-bottom: 32px;
    }

    .rating-badge {
        padding: 10px 20px;
        gap: 10px;
        margin-bottom: 24px;
    }

    .avatar {
        width: 28px;
        height: 28px;
    }

    .hero-actions {
        gap: 12px;
        margin-bottom: 40px;
    }

    .btn-get-started,
    .btn-example {
        padding: 14px 24px;
        font-size: 14px;
    }

    .hero-image {
        border-radius: 16px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 30px 12px;
    }

    .hero-heading {
        font-size: 32px;
        margin-bottom: 16px;
    }

    .hero-description {
        font-size: 15px;
        margin-bottom: 24px;
    }

    .rating-badge {
        flex-direction: column;
        padding: 12px 16px;
        gap: 8px;
    }

    .rating-text {
        text-align: center;
    }

    .hero-actions {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 32px;
    }

    .btn-get-started,
    .btn-example {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 13px;
    }

    .hero-image {
        border-radius: 12px;
    }
}

/* Dark Mode Support */
[data-theme-style="dark"] .hero-section {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 25%, #0f3460 50%, #1a1a2e 100%);
}

/* [data-theme-style="dark"] .rating-badge {
  background: rgba(42, 42, 62, 0.8);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
} */

[data-theme-style="dark"] .stars {
  color: #e0e0e0;
}

[data-theme-style="dark"] .loved-text {
  color: #a0a0b0;
}

[data-theme-style="dark"] .hero-heading {
  color: #ffffff;
}

[data-theme-style="dark"] .hero-heading .heading-main {
  color: #ffffff;
}

[data-theme-style="dark"] .hero-heading .heading-highlight {
  background: linear-gradient(135deg, #9d7ce8 0%, #a78ef5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

[data-theme-style="dark"] .hero-heading .text-primary {
  color: #b8d4f1 !important;
  -webkit-text-fill-color: #b8d4f1 !important;
}

[data-theme-style="dark"] .hero-description {
  color: #b0b0c0;
}

[data-theme-style="dark"] .hero-image {
  box-shadow: 0 20px 60px rgba(99, 102, 241, 0.3);
}

[data-theme-style="dark"] .btn-get-started {
  background: linear-gradient(135deg, #5a9dff 0%, #8b5cf6 100%);
  box-shadow: 0 8px 24px rgba(90, 157, 255, 0.25);
}

[data-theme-style="dark"] .btn-get-started:hover {
  box-shadow: 0 16px 36px rgba(90, 157, 255, 0.35);
}

[data-theme-style="dark"] .email-input {
  background: transparent;
  color: #e0e0e0;
}

[data-theme-style="dark"] .email-input::placeholder {
  color: #fafafa;
}

[data-theme-style="dark"] .email-input-wrapper {
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 8px 24px rgba(90, 157, 255, 0.1);
}

[data-theme-style="dark"] .btn-example {
  border-color: #5a9dff;
  color: #5a9dff;
}

[data-theme-style="dark"] .btn-example:hover {
  background: #5a9dff;
  color: white;
}

/* Print Styles */
@media print {
    .hero-section {
        background: white;
        min-height: auto;
    }

    .shape-left,
    .shape-right {
        display: none;
    }

    .btn-get-started,
    .btn-example {
        border: 1px solid #999;
        color: #000;
        background: white;
    }
}