/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

/* Background Elements */
.hero-bg-circles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.bg-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.05;
}

.circle-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #007bff 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation: pulse 15s ease-in-out infinite;
}

.circle-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #48bb78 0%, transparent 70%);
    bottom: -50px;
    left: -50px;
    animation: pulse 15s ease-in-out infinite 5s;
}

.circle-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #f6ad55 0%, transparent 70%);
    top: 50%;
    right: 30%;
    animation: pulse 15s ease-in-out infinite 10s;
}

/* Decorative Elements */
.hero-decorations {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.decoration-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #007bff;
    opacity: 0.2;
}

.dot-1 {
    top: 20%;
    left: 10%;
    animation: float 6s ease-in-out infinite;
}

.dot-2 {
    top: 60%;
    right: 15%;
    animation: float 6s ease-in-out infinite 2s;
}

.dot-3 {
    bottom: 30%;
    left: 20%;
    animation: float 6s ease-in-out infinite 4s;
}

.decoration-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, #007bff, transparent);
    height: 1px;
    opacity: 0.1;
}

.line-1 {
    width: 150px;
    transform: rotate(45deg);
    top: 30%;
    right: 10%;
}

.line-2 {
    width: 100px;
    transform: rotate(-45deg);
    bottom: 40%;
    left: 15%;
}

/* Content Styles */
.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    opacity: 0;
    animation: fadeUp 0.5s ease forwards;
}

.hero-title span {
    display: block;
    color: #007bff;
    font-size: 3rem;
    margin-top: 0.5rem;
    opacity: 0;
    animation: fadeUp 0.5s ease forwards 0.3s;
}

.hero-description {
    font-size: 1.125rem;
    color: #718096;
    margin-bottom: 2rem;
    line-height: 1.6;
    opacity: 0;
    animation: fadeUp 0.5s ease forwards 0.6s;
}

/* Search Form */
.search-form {
    max-width: 600px;
    margin-bottom: 2rem;
    position: relative;
    opacity: 0;
    animation: fadeUp 0.5s ease forwards 0.9s;
}

.search-form .input-group {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.search-form .input-group:focus-within {
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0,123,255,0.1);
}

.search-form .form-control {
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1.125rem;
    background: transparent;
}

.search-form .form-control:focus {
    box-shadow: none;
}

.search-form .btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

/* Animation Container */
.hero-animation {
    position: relative;
    height: 400px;
    width: 100%;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards 1.2s;
}

.comparison-container {
    position: relative;
    height: 100%;
    width: 100%;
}

/* Store Cards */
.store-card {
    position: absolute;
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    width: 200px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: slideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.store-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.store-card-1 {
    top: 10%;
    right: 10%;
    animation-delay: 1.5s;
}

.store-card-2 {
    top: 40%;
    right: 25%;
    animation-delay: 1.8s;
}

.store-card-3 {
    top: 70%;
    right: 15%;
    animation-delay: 2.1s;
    background: #f8f9fa;
    border: 2px solid #48bb78;
}

/* Connection Lines */
.connection-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.connection-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawPath 1.5s ease forwards;
}

.path-1 { animation-delay: 2.4s; }
.path-2 { animation-delay: 2.7s; }
.path-3 { animation-delay: 3s; }

/* Floating Elements */
.floating-element {
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transform: translateY(10px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    animation: floatElement 3s ease-in-out infinite;
}

.floating-element.discount {
    background: #f6ad55;
    top: 20%;
    right: 40%;
    animation-delay: 3.3s;
}

.floating-element.chart {
    background: #4299e1;
    top: 50%;
    right: 60%;
    animation-delay: 3.6s;
}

.floating-element.bell {
    background: #9f7aea;
    top: 80%;
    right: 45%;
    animation-delay: 3.9s;
}

/* Animations */
@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.05;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.08;
    }
    100% {
        transform: scale(1);
        opacity: 0.05;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes drawPath {
    0% {
        stroke-dashoffset: 1000;
    }
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes floatElement {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    20% {
        opacity: 1;
        transform: translateY(0);
    }
    80% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 4rem 0 3rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-title span {
        font-size: 2.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .search-form .form-control {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }
}
