/* Hero Section */
.hero {
    padding-top: 120px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, var(--light-gray) 0%, #E8EDF5 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(45deg, rgba(75, 190, 158, 0.1) 0%, rgba(27, 100, 164, 0.1) 100%);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 20% 100%);
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-xl);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
    position: relative;
}

.hero-text {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: var(--space-lg);
    color: var(--dark-gray);
    line-height: 1.2;
    position: relative;
}

.hero h1::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 80px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: var(--space-xl);
    color: var(--dark-gray);
    max-width: 500px;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-element {
    position: absolute;
    background: var(--primary);
    opacity: 0.1;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}

.floating-element:nth-child(1) {
    width: 120px;
    height: 104px;
    top: 10%;
    left: 5%;
    animation: float 20s infinite;
}

.floating-element:nth-child(2) {
    width: 60px;
    height: 52px;
    top: 20%;
    right: 10%;
    animation: float 15s infinite;
    animation-delay: -5s;
}

.floating-element:nth-child(3) {
    width: 90px;
    height: 78px;
    bottom: 15%;
    left: 15%;
    animation: float 18s infinite;
    animation-delay: -10s;
}

.floating-element:nth-child(4) {
    width: 70px;
    height: 61px;
    top: 35%;
    right: 25%;
    animation: float 22s infinite;
    animation-delay: -8s;
}

.floating-element:nth-child(5) {
    width: 45px;
    height: 39px;
    bottom: 30%;
    right: 15%;
    animation: float 17s infinite;
    animation-delay: -12s;
}

.floating-element:nth-child(6) {
    width: 85px;
    height: 74px;
    top: 60%;
    left: 30%;
    animation: float 19s infinite;
    animation-delay: -3s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(15px, 15px) rotate(8deg);
    }
    50% {
        transform: translate(-10px, 20px) rotate(-8deg);
    }
    75% {
        transform: translate(-15px, 8px) rotate(5deg);
    }
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    align-items: center;
}

/* Hero illustration and logo */
.hero-illustration {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
    max-width: 100%;
    overflow: visible;
}

.hero-logo-container {
    width: 330px;
    height: 330px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
    position: relative;
}

#hero-main-logo {
    width: 300px;
    height: 300px;
    object-fit: contain;
    position: relative;
    z-index: 2;
    animation: pulse 3s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: var(--space-2xl);
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h1::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .hero p {
        font-size: 1.1rem;
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-cta {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-logo-container {
        width: 220px;
        height: 220px;
    }
    
    #hero-main-logo {
        width: 200px;
        height: 200px;
    }
    
    .hero-illustration {
        order: -1;
        margin-bottom: var(--space-lg);
    }
    
    .floating-element {
        opacity: 0.05;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-cta .primary-button,
    .hero-cta .secondary-button {
        width: 100%;
        text-align: center;
    }
    
    .hero-logo-container {
        width: 165px;
        height: 165px;
    }
    
    #hero-main-logo {
        width: 150px;
        height: 150px;
    }
}
