/* =============================================
   PROFESSIONAL HERO WIDGET - ENHANCED STYLES
   ============================================= */

/* === ANIMATED BACKGROUND EFFECTS === */

/* Gradient Orbs Animation */
.hero-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    will-change: transform;
}

.hero-bg-orb-1 {
    width: 40%;
    height: 40%;
    top: -10%;
    left: -5%;
    background: radial-gradient(circle, var(--orb-color, #6366f1) 0%, transparent 70%);
    animation: orb-float-1 var(--orb-speed, 8s) ease-in-out infinite;
}

.hero-bg-orb-2 {
    width: 35%;
    height: 35%;
    top: 50%;
    right: -10%;
    background: radial-gradient(circle, var(--orb-color, #8b5cf6) 0%, transparent 70%);
    animation: orb-float-2 var(--orb-speed, 10s) ease-in-out infinite;
}

.hero-bg-orb-3 {
    width: 45%;
    height: 45%;
    bottom: -15%;
    left: 30%;
    background: radial-gradient(circle, var(--orb-color, #ec4899) 0%, transparent 70%);
    animation: orb-float-3 var(--orb-speed, 7s) ease-in-out infinite;
}

@keyframes orb-float-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(10%, 15%) scale(1.1); }
    50% { transform: translate(5%, 10%) scale(0.95); }
    75% { transform: translate(-5%, 5%) scale(1.05); }
}

@keyframes orb-float-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-15%, -10%) scale(1.1); }
    66% { transform: translate(-5%, 15%) scale(0.9); }
}

@keyframes orb-float-3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-10%, -20%) scale(1.15); }
}

/* Pulse Animation */
.hero-bg-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle at center, var(--pulse-color, #6366f1) 0%, transparent 50%);
    opacity: 0.4;
    animation: pulse-glow var(--pulse-speed, 8s) ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(0.8);
    }
    50% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* Wave Animation */
.hero-bg-wave {
    position: absolute;
    width: 200%;
    height: 200%;
    opacity: 0.15;
    will-change: transform;
}

.hero-bg-wave-1 {
    top: -50%;
    left: -50%;
    background:
        radial-gradient(ellipse 50% 30% at 30% 50%, var(--wave-color, #6366f1) 0%, transparent 50%),
        radial-gradient(ellipse 40% 25% at 70% 60%, var(--wave-color, #6366f1) 0%, transparent 50%);
    animation: wave-flow-1 var(--wave-speed, 8s) ease-in-out infinite;
}

.hero-bg-wave-2 {
    top: -30%;
    left: -30%;
    background:
        radial-gradient(ellipse 45% 35% at 50% 40%, var(--wave-color, #8b5cf6) 0%, transparent 50%),
        radial-gradient(ellipse 35% 20% at 40% 70%, var(--wave-color, #8b5cf6) 0%, transparent 50%);
    animation: wave-flow-2 var(--wave-speed, 12s) ease-in-out infinite;
}

.hero-bg-wave-3 {
    top: -40%;
    left: -40%;
    background:
        radial-gradient(ellipse 55% 40% at 60% 55%, var(--wave-color, #ec4899) 0%, transparent 50%);
    animation: wave-flow-3 var(--wave-speed, 6s) ease-in-out infinite;
}

@keyframes wave-flow-1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(5%, 3%) rotate(5deg); }
}

@keyframes wave-flow-2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-3%, 5%) rotate(-3deg); }
}

@keyframes wave-flow-3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(4%, -2%) rotate(2deg); }
    66% { transform: translate(-2%, 4%) rotate(-2deg); }
}

/* Particle Shapes */
.particle-star {
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.particle-dot {
    border-radius: 50%;
    box-shadow: 0 0 6px currentColor;
}

/* Float animation for hero particles (renamed to avoid conflict with shape-widget animate-float) */
@keyframes hero-particle-float {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-20px) translateX(10px);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-10px) translateX(-5px);
        opacity: 0.2;
    }
    75% {
        transform: translateY(-30px) translateX(5px);
        opacity: 0.4;
    }
}

.hero-particle-float {
    animation: hero-particle-float 8s ease-in-out infinite;
}

/* === 3D TILT EFFECT === */
.hero-tilt-container {
    perspective: 1000px;
    transform-style: preserve-3d;
}

.hero-tilt-card {
    transition: transform 0.4s ease-out;
    transform-style: preserve-3d;
    will-change: transform;
}

.hero-tilt-card .tilt-content {
    transform: translateZ(50px);
}

.hero-tilt-glare {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.25) 0%,
        rgba(255, 255, 255, 0) 50%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 100;
}

.hero-tilt-card:hover .hero-tilt-glare {
    opacity: 1;
}

/* === ANIMATED GRADIENT TEXT === */
@keyframes gradient-flow-horizontal {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

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

.gradient-text {
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
}

.gradient-text-horizontal {
    animation: gradient-flow-horizontal var(--gradient-speed, 3s) ease infinite;
}

.gradient-text-vertical {
    animation: gradient-flow-vertical var(--gradient-speed, 3s) ease infinite;
}

.gradient-text-diagonal {
    animation: gradient-flow-diagonal var(--gradient-speed, 3s) ease infinite;
}

/* === GLASSMORPHISM === */
.glass-container {
    backdrop-filter: blur(var(--glass-blur, 10px));
    -webkit-backdrop-filter: blur(var(--glass-blur, 10px));
    background: rgba(255, 255, 255, var(--glass-opacity, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.glass-container-dark {
    background: rgba(0, 0, 0, var(--glass-opacity, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* === VIDEO BACKGROUND === */
.hero-video-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.hero-video-background video,
.hero-video-background iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* === COUNTDOWN TIMER === */
.countdown-container {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.countdown-container.countdown-left {
    justify-content: flex-start;
}

.countdown-container.countdown-right {
    justify-content: flex-end;
}

.countdown-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 80px;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
}

.countdown-value {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.countdown-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 0.5rem;
    opacity: 0.8;
}

/* Countdown Inline Style */
.countdown-inline {
    display: flex;
    gap: 0.5rem;
    align-items: baseline;
    font-size: 1.5rem;
    font-weight: 600;
}

.countdown-inline .countdown-box {
    flex-direction: row;
    gap: 0.25rem;
    padding: 0;
    min-width: auto;
    background: transparent !important;
}

.countdown-inline .countdown-value {
    font-size: inherit;
}

.countdown-inline .countdown-label {
    font-size: 0.65em;
    margin-top: 0;
    text-transform: lowercase;
}

.countdown-inline .separator {
    opacity: 0.5;
}

/* Countdown Minimal Style */
.countdown-minimal {
    font-size: 1.25rem;
    font-weight: 600;
}

.countdown-minimal .countdown-box {
    padding: 0;
    min-width: auto;
    background: transparent !important;
}

/* Countdown Expired */
.countdown-expired {
    font-size: 1.5rem;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    animation: hero-countdown-pulse 2s infinite;
}

@keyframes hero-countdown-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* === TYPING ANIMATION === */
.typing-container {
    display: inline;
}

.typing-cursor {
    display: inline-block;
    animation: cursor-blink 0.7s step-end infinite;
    font-weight: 100;
    margin-left: 2px;
}

@keyframes cursor-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.typing-text {
    border-right: none;
}

/* === HERO IMAGE LAYOUTS === */
.hero-with-image {
    display: grid;
    align-items: center;
    gap: 3rem;
}

.hero-image-left {
    grid-template-columns: 1fr 1fr;
}

.hero-image-right {
    grid-template-columns: 1fr 1fr;
}

.hero-image-left .hero-content {
    order: 2;
}

.hero-image-left .hero-image {
    order: 1;
}

.hero-image-right .hero-content {
    order: 1;
}

.hero-image-right .hero-image {
    order: 2;
}

/* Hero Image Sizes */
.hero-image-small img {
    max-height: 300px;
}

.hero-image-medium img {
    max-height: 450px;
}

.hero-image-large img {
    max-height: 600px;
}

.hero-image-full img {
    max-height: none;
}

.hero-image img {
    width: 100%;
    object-fit: contain;
    max-width: 100%;
}

/* Hero Image Parallax */
.hero-image-parallax {
    transform: translateY(var(--parallax-offset, 0));
    transition: transform 0.1s ease-out;
}

/* Hero Image Animation */
.hero-image-animated {
    animation: float-gentle 6s ease-in-out infinite;
}

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

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .hero-with-image {
        grid-template-columns: 1fr !important;
        gap: 2rem;
    }

    .hero-image-right .hero-content,
    .hero-image-right .hero-image,
    .hero-image-left .hero-content,
    .hero-image-left .hero-image {
        order: unset;
    }

    .hero-image {
        order: 2 !important;
    }

    .hero-content {
        order: 1 !important;
    }
}

@media (max-width: 768px) {
    .countdown-box {
        min-width: 60px;
        padding: 0.75rem;
    }

    .countdown-value {
        font-size: 1.75rem;
    }

    .countdown-label {
        font-size: 0.65rem;
    }

    .glass-container {
        padding: 1.5rem !important;
        border-radius: 1rem;
    }

    .hero-image-small img,
    .hero-image-medium img,
    .hero-image-large img {
        max-height: 250px;
    }
}

/* === REDUCED MOTION SUPPORT === */
@media (prefers-reduced-motion: reduce) {
    .gradient-text,
    .hero-tilt-card,
    .hero-image-animated,
    .countdown-expired {
        animation: none !important;
        transition: none !important;
    }

    .typing-cursor {
        animation: none !important;
        opacity: 1;
    }

    .hero-image-parallax {
        transform: none !important;
    }
}

/* === THEME SPECIFIC STYLES === */
.professional-hero.theme-dark .glass-container {
    background: rgba(0, 0, 0, var(--glass-opacity, 0.3));
    border-color: rgba(255, 255, 255, 0.1);
}

.professional-hero.theme-light .glass-container {
    background: rgba(255, 255, 255, var(--glass-opacity, 0.7));
    border-color: rgba(0, 0, 0, 0.1);
}

.professional-hero.theme-gradient .glass-container {
    background: rgba(255, 255, 255, var(--glass-opacity, 0.15));
    border-color: rgba(255, 255, 255, 0.2);
}

.professional-hero.theme-cyber .glass-container {
    background: rgba(6, 182, 212, var(--glass-opacity, 0.1));
    border-color: rgba(6, 182, 212, 0.3);
}

/* Countdown theme colors */
.professional-hero.theme-dark .countdown-box {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.professional-hero.theme-light .countdown-box {
    background: rgba(0, 0, 0, 0.05);
    color: #1f2937;
}

.professional-hero.theme-gradient .countdown-box {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.professional-hero.theme-cyber .countdown-box {
    background: rgba(6, 182, 212, 0.2);
    color: #06b6d4;
    border: 1px solid rgba(6, 182, 212, 0.3);
}
