/* hero.css - Enhanced Hero Section with Pastel Background Image */

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #FFF8F5 0%, #F8F4FF 50%, #F0F9FF 100%);
}

/* Hero Background Image */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center; /* Details on right, space on left */
    filter: brightness(1.2) saturate(0.9) contrast(1.1);
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.98) 0%,
        rgba(15, 23, 42, 0.95) 20%,
        rgba(15, 23, 42, 0.8) 35%,
        rgba(30, 41, 59, 0.6) 50%,
        rgba(51, 65, 85, 0.4) 70%,
        rgba(71, 85, 105, 0.1) 85%,
        transparent 100%
    );
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align content to left */
    text-align: left; /* Left-aligned text */
}

/* Hero Content */
.hero-content {
    z-index: 3;
    animation: slideInUp 0.8s ease-out;
    max-width: 600px; /* Constrain width to left side */
    margin: 0; /* Remove auto centering */
}

.greeting-text {
    display: inline-block;
    margin-bottom: 20px;
    position: relative;
}

.hello-text {
    color: #fbbf24;
    font-size: 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    padding-right: 20px;
    text-shadow: 0 2px 4px rgba(251, 191, 36, 0.3);
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.animated-line {
    position: absolute;
    bottom: -8px;
    left: 0; /* Align to left */
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    animation: expandLine 2s ease-out forwards;
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.4);
}

@keyframes expandLine {
    from {
        width: 0;
    }
    to {
        width: 120px;
    }
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem); /* Much smaller */
    font-weight: 700; /* Reduced weight */
    margin-bottom: 20px;
    line-height: 1.2;
    pointer-events: none;
    color: #ffffff;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.3),
        0 0 15px rgba(255, 255, 255, 0.1);
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--accent-primary), #1e40af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.hero-title .glow-text {
    position: relative;
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-secondary), #be185d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 16px; /* Much smaller */
    line-height: 1.6;
    opacity: 1;
    margin-bottom: 30px;
    max-width: 500px; /* Constrain width */
    color: #e2e8f0;
    font-weight: 400; /* Normal weight */
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.2),
        0 0 8px rgba(255, 255, 255, 0.1);
}

/* CTA Buttons */
.hero-cta-group {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
    justify-content: flex-start; /* Left align */
    flex-wrap: wrap;
}

.primary-cta {
    padding: 12px 24px; /* Much smaller */
    font-size: 14px; /* Smaller font */
    background: linear-gradient(135deg,
        rgba(59, 130, 246, 0.9),
        rgba(37, 99, 235, 0.9)
    ) !important;
    border: 2px solid rgba(59, 130, 246, 0.3) !important;
    color: white !important;
    backdrop-filter: blur(10px);
    box-shadow:
        0 4px 16px rgba(59, 130, 246, 0.2),
        0 0 10px rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
    font-weight: 500; /* Reduced weight */
    border-radius: 25px; /* Smaller radius */
}

.primary-cta:hover {
    background: linear-gradient(135deg,
        rgba(37, 99, 235, 0.95),
        rgba(29, 78, 216, 0.95)
    ) !important;
    transform: translateY(-2px);
    box-shadow:
        0 6px 20px rgba(59, 130, 246, 0.3),
        0 0 15px rgba(59, 130, 246, 0.2);
    color: white !important;
}

.secondary-cta {
    padding: 12px 24px; /* Much smaller */
    font-size: 14px; /* Smaller font */
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    border-radius: 25px; /* Smaller radius */
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px; /* Smaller gap */
    backdrop-filter: blur(10px);
    font-weight: 500; /* Reduced weight */
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.1),
        0 0 10px rgba(255, 255, 255, 0.1);
}

.secondary-cta:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.15),
        0 0 15px rgba(255, 255, 255, 0.15);
}

.secondary-cta i {
    font-size: 12px; /* Smaller icon */
    transition: transform 0.3s ease;
}

.secondary-cta:hover i {
    transform: scale(1.1);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 20px; /* Adjusted gap for horizontal layout */
    justify-content: flex-start; /* Left align */
    flex-wrap: nowrap; /* Keep cards in same line */
    margin-bottom: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 4px; /* Smaller gap */
    align-items: center;
    padding: 12px 16px; /* Much smaller padding */
    background: linear-gradient(135deg,
        rgba(244, 114, 182, 0.25),
        rgba(244, 114, 182, 0.20),
        rgba(244, 114, 182, 0.15)
    ) !important;
    border-radius: 12px; /* Smaller radius */
    backdrop-filter: blur(10px) !important;
    border: 2px solid rgba(244, 114, 182, 0.4) !important;
    box-shadow:
        0 0 25px rgba(244, 114, 182, 0.3) !important;
    transition: all 0.3s ease;
    min-width: 80px; /* Much smaller */
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow:
        0 20px 50px rgba(244, 114, 182, 0.4) !important;
    border-color: rgba(244, 114, 182, 0.6) !important;
    background: linear-gradient(135deg,
        rgba(244, 114, 182, 0.35),
        rgba(244, 114, 182, 0.30),
        rgba(244, 114, 182, 0.25)
    ) !important;
}

.stat-number {
    font-size: 36px; /* Much smaller */
    font-weight: 700; /* Reduced weight */
    color: #f5f5dc !important; /* Beige color */
    font-family: var(--font-display);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}


.stat-item:first-child .stat-number::after {
    content: '+';
    margin-left: 2px;
    color: #f5f5dc !important;
}

.stat-item:nth-child(2) .stat-number::after,
.stat-item:nth-child(3) .stat-number::after {
    content: '%';
    margin-left: 2px;
    color: #f5f5dc !important;
}

.stat-label {
    font-size: 11px; /* Much smaller */
    opacity: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #f5f5dc !important; /* Beige color for labels */
    font-weight: 600;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

/* Ensure all text inside stat items is beige */
.stat-item,
.stat-item *,
.stat-item span,
.stat-item div,
.stat-item p,
.stat-item h1,
.stat-item h2,
.stat-item h3,
.stat-item h4,
.stat-item h5,
.stat-item h6 {
    color: #f5f5dc !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.float-element {
    position: absolute;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(30, 41, 59, 0.8);
    border-radius: 20px;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    animation: floatElement 6s ease-in-out infinite;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(15, 23, 42, 0.3);
    transition: all 0.3s ease;
}

.float-element i {
    color: #f5f5dc;
    font-size: 22px;
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.3));
}

.element-1 {
    top: 8%;
    right: 18%;
    animation-delay: 0s;
}

.element-2 {
    top: 30%;
    right: -2%;
    animation-delay: 1.5s;
}

.element-3 {
    bottom: 45%;
    right: 28%;
    animation-delay: 3s;
}

.element-4 {
    bottom: 8%;
    right: 8%;
    animation-delay: 4.5s;
}

@keyframes floatElement {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-15px) rotate(1deg) scale(1.02);
    }
    50% {
        transform: translateY(-25px) rotate(-1deg) scale(1.05);
    }
    75% {
        transform: translateY(-15px) rotate(1deg) scale(1.02);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .floating-elements {
        display: none;
    }

    .hero-stats {
        gap: 15px;
    }

    .stat-item {
        min-width: 90px;
        padding: 10px 14px;
    }

    .stat-number {
        font-size: 28px;
    }

    .stat-label {
        font-size: 10px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 90px 0 50px; /* Reduced padding */
        min-height: 85vh; /* Reduced height */
    }

    .hero-overlay {
        background: linear-gradient(
            180deg,
            rgba(30, 41, 59, 0.3) 0%,
            rgba(15, 23, 42, 0.8) 30%,
            rgba(0, 0, 0, 0.95) 50%,
            rgba(15, 23, 42, 0.8) 70%,
            rgba(30, 41, 59, 0.3) 100%
        );
    }

    .hero-container {
        padding: 0 15px;
        align-items: center;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
        margin: 0 auto;
    }

    .hero-title {
        font-size: clamp(1.8rem, 5vw, 2.5rem); /* Much smaller */
        margin-bottom: 12px;
    }

    .hero-description {
        font-size: 13px; /* Reduced from 14px */
        margin-bottom: 20px;
        max-width: 350px; /* Reduced from 400px */
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta-group {
        justify-content: center;
        gap: 8px; /* Reduced gap */
        margin-bottom: 25px;
    }

    .primary-cta,
    .secondary-cta {
        padding: 8px 16px; /* Smaller padding */
        font-size: 11px; /* Smaller font */
        border-radius: 20px; /* Smaller radius */
    }

    /* Compact stats - no horizontal scroll */
    .hero-stats {
        justify-content: center; /* Center the stats */
        gap: 8px; /* Much smaller gap */
        margin-bottom: 20px;
        flex-wrap: nowrap;
        overflow: visible; /* Remove scroll */
    }

    .stat-item {
        min-width: 60px; /* Much smaller */
        padding: 8px 10px; /* Compact padding */
        border-radius: 8px; /* Smaller radius */
    }

    .stat-number {
        font-size: 16px; /* Much smaller */
        font-weight: 600;
    }

    .stat-label {
        font-size: 8px; /* Much smaller */
        letter-spacing: 0.3px;
    }

    .animated-line {
        left: 50%;
        transform: translateX(-50%);
        width: 50px; /* Smaller line */
    }

    .hello-text {
        font-size: 14px; /* Smaller greeting */
        letter-spacing: 1px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 80px 0 40px;
        min-height: 80vh;
    }

    .hero-container {
        padding: 0 12px;
    }

    .hero-title {
        font-size: 1.6rem; /* Even smaller */
        line-height: 1.1;
        margin-bottom: 10px;
    }

    .hero-description {
        font-size: 12px; /* Smaller text */
        line-height: 1.5;
        max-width: 300px;
        margin-bottom: 18px;
    }

    .primary-cta,
    .secondary-cta {
        padding: 7px 14px;
        font-size: 10px;
    }

    /* Ultra-compact stats */
    .hero-stats {
        gap: 6px; /* Minimal gap */
        margin-bottom: 18px;
    }

    .stat-item {
        min-width: 50px; /* Very small */
        padding: 6px 8px; /* Minimal padding */
        border-radius: 6px;
    }

    .stat-number {
        font-size: 14px; /* Very small */
    }

    .stat-label {
        font-size: 7px; /* Very small */
        letter-spacing: 0.2px;
    }

    .hello-text {
        font-size: 12px;
        letter-spacing: 0.5px;
    }

    .animated-line {
        width: 40px;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .hero-title {
        font-size: 1.4rem;
    }

    .hero-description {
        font-size: 11px;
        max-width: 280px;
    }

    .stat-item {
        min-width: 45px;
        padding: 5px 6px;
    }

    .stat-number {
        font-size: 12px;
    }

    .stat-label {
        font-size: 6px;
    }
}

/* Animation keyframes */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* High contrast mode support */
@media (prefers-contrast: more) {
    .hero-overlay {
        background: rgba(255, 255, 255, 0.9);
    }

    .hero-title {
        color: #000000;
    }

    .hero-description {
        color: #333333;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .hero-title,
    .hero-content,
    .float-element,
    .animated-line {
        animation: none !important;
    }

    .floating-elements {
        display: none;
    }
}