/*
====================================
HERO — animated photo & unified brand colors
====================================
*/

/* Hero uses same palette as theme.css */
.gradient-bg {
    background: #09090b;
    background-image:
        radial-gradient(ellipse 80% 60% at 20% 20%, rgba(255, 255, 255, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse 60% 50% at 80% 80%, rgba(255, 255, 255, 0.04) 0%, transparent 50%),
        linear-gradient(180deg, #09090b 0%, #111113 100%);
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-text-gradient {
    background: linear-gradient(135deg, #ffffff 0%, #d4d4d8 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Animated hero photo — full image visible */
.hero-photo-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 480px;
    min-height: 420px;
    padding: 1.5rem;
}

.hero-photo-ring {
    position: absolute;
    inset: 0;
    border-radius: 2rem;
    background: conic-gradient(
        from 0deg,
        rgba(255, 255, 255, 0.5),
        rgba(255, 255, 255, 0.1),
        rgba(255, 255, 255, 0.4),
        rgba(255, 255, 255, 0.1)
    );
    animation: hero-ring-spin 10s linear infinite;
    opacity: 0.7;
}

.hero-photo-ring::after {
    content: '';
    position: absolute;
    inset: 3px;
    border-radius: calc(2rem - 3px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
}

@keyframes hero-ring-spin {
    to { transform: rotate(360deg); }
}

.hero-photo-glow {
    position: absolute;
    width: 90%;
    height: 90%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, transparent 70%);
    animation: hero-glow-pulse 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes hero-glow-pulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.08); opacity: 1; }
}

.hero-photo-frame {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 400px;
    padding: 10px;
    border-radius: 1.75rem;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    animation: hero-photo-float 5s ease-in-out infinite;
}

@keyframes hero-photo-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-14px) rotate(0.5deg); }
    50% { transform: translateY(-6px) rotate(0deg); }
    75% { transform: translateY(-18px) rotate(-0.5deg); }
}

.hero-photo-frame img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: contain;
    object-position: center bottom;
    border-radius: 1.25rem;
    animation: hero-photo-breathe 6s ease-in-out infinite;
}

@keyframes hero-photo-breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.btn-primary-gradient {
    background: #ffffff;
    color: #09090b;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.btn-primary-gradient:hover {
    background: #e4e4e7;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* Floating shapes & tech icons */
.floating-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.12), rgba(255,255,255,0.04));
    backdrop-filter: blur(10px);
    animation: float-shape 20s infinite ease-in-out;
}

.shape-1 { width: 200px; height: 200px; top: 10%; left: 10%; animation-delay: 0s; }
.shape-2 { width: 150px; height: 150px; top: 60%; right: 15%; animation-delay: 5s; }
.shape-3 { width: 100px; height: 100px; bottom: 20%; left: 20%; animation-delay: 10s; }
.shape-4 { width: 120px; height: 120px; top: 30%; right: 30%; animation-delay: 15s; }
.shape-5 { width: 80px; height: 80px; bottom: 30%; right: 10%; animation-delay: 7s; }

@keyframes float-shape {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.3; }
    25% { transform: translateY(-20px) rotate(90deg); opacity: 0.5; }
    50% { transform: translateY(10px) rotate(180deg); opacity: 0.3; }
    75% { transform: translateY(-15px) rotate(270deg); opacity: 0.5; }
}

.floating-tech {
    position: absolute;
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: float-tech 4s infinite ease-in-out;
    z-index: 5;
}

.tech-1 { top: 5%; right: 0; animation-delay: 0s; }
.tech-2 { bottom: 10%; left: -5%; animation-delay: 1s; }
.tech-3 { top: 15%; left: 0; animation-delay: 2s; }
.tech-4 { bottom: 20%; right: 0; animation-delay: 3s; }

@keyframes float-tech {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(5deg); }
}

@media (max-width: 1024px) {
    .hero-photo-stage {
        max-width: 340px;
        min-height: 320px;
        padding: 1rem;
    }
    .hero-photo-frame {
        max-width: 300px;
    }
    .hero-photo-frame img {
        max-height: 380px;
    }
}

@media (max-width: 768px) {
    .floating-shape { display: none; }
    .floating-tech { width: 36px; height: 36px; }
    .hero-text-gradient { font-size: 2.5rem; }
}

/* Hero CTA — responsive, no text clipping on mobile */
#hero .hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

#hero .hero-cta-btn {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 3rem;
    height: auto;
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.9375rem;
    line-height: 1.2;
    white-space: nowrap;
    text-decoration: none;
    flex: 0 1 auto;
    max-width: 100%;
    overflow: visible;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    box-sizing: border-box;
}

#hero .hero-cta-btn span {
    white-space: nowrap;
}

#hero .hero-cta-btn--whatsapp {
    background: #25d366;
    color: #fff;
}

#hero .hero-cta-btn--whatsapp:hover {
    background: #1ebe57;
    color: #fff;
}

#hero .hero-cta-btn--primary {
    background: #ffffff;
    color: #09090b;
}

#hero .hero-cta-btn--primary:hover {
    background: #e4e4e7;
}

#hero .hero-cta-btn--ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
}

#hero .hero-cta-btn--ghost:hover {
    background: #fff;
    color: #09090b;
}

#hero .hero-cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    background: rgba(9, 9, 11, 0.12);
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    #hero .hero-cta-group {
        flex-direction: column;
        align-items: stretch;
    }

    #hero .hero-cta-btn {
        width: 100%;
        flex: 1 1 auto;
    }
}

@media (max-width: 480px) {
    #hero .hero-cta-btn {
        font-size: 0.875rem;
        padding: 0.7rem 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-photo-frame,
    .hero-photo-frame img,
    .hero-photo-ring,
    .hero-photo-glow,
    .gradient-bg,
    .floating-shape,
    .floating-tech {
        animation: none !important;
    }
}
