/**
 * Orgbon Hero Section - Main Styles
 * 
 * A modern, animated hero section for Elementor
 * @version 1.0.0
 */

/* ==========================================================================
   BASE LAYOUT
   ========================================================================== */

.orgbon-hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.orgbon-hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 900px;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.orgbon-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    pointer-events: none;
}

/* ==========================================================================
   HEADLINE STYLES
   ========================================================================== */

.orgbon-hero-headline {
    margin: 0 0 20px 0;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

@media (max-width: 768px) {
    .orgbon-hero-headline {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .orgbon-hero-headline {
        font-size: 2rem;
    }
}

/* ==========================================================================
   ROTATING TEXT
   ========================================================================== */

.orgbon-rotating-wrapper {
    font-size: 1.75rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 20px;
    min-height: 2.5em;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.25em;
}

.orgbon-rotating-prefix,
.orgbon-rotating-suffix {
    display: inline;
}

.orgbon-rotating-text {
    display: inline;
    font-weight: 600;
    position: relative;
}

/* Typed.js Cursor */
.typed-cursor {
    font-weight: 400;
    animation: blink 1s infinite;
    opacity: 1;
}

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

/* Fade Animation (non-typed) */
.orgbon-rotating-text.fade-animation {
    animation: fadeInOut var(--pause-duration, 3000ms) infinite;
}

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

/* Slide Animation */
.orgbon-rotating-text.slide-animation {
    animation: slideUp var(--pause-duration, 3000ms) infinite;
}

@keyframes slideUp {
    0%, 100% { 
        opacity: 0; 
        transform: translateY(100%);
    }
    20%, 80% { 
        opacity: 1; 
        transform: translateY(0);
    }
}

/* Clip Animation */
.orgbon-rotating-text.clip-animation {
    overflow: hidden;
    animation: clipReveal var(--pause-duration, 3000ms) infinite;
}

@keyframes clipReveal {
    0%, 100% { 
        clip-path: inset(0 100% 0 0);
    }
    20%, 80% { 
        clip-path: inset(0 0 0 0);
    }
}

@media (max-width: 768px) {
    .orgbon-rotating-wrapper {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .orgbon-rotating-wrapper {
        font-size: 1rem;
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   TAGLINE
   ========================================================================== */

.orgbon-hero-tagline {
    margin: 0 0 30px 0;
    font-size: 1.125rem;
    font-weight: 400;
    line-height: 1.6;
    max-width: 600px;
    opacity: 0.9;
}

@media (max-width: 768px) {
    .orgbon-hero-tagline {
        font-size: 1rem;
    }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.orgbon-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

.orgbon-hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 40px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.orgbon-hero-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.orgbon-hero-button:hover::before {
    left: 100%;
}

.orgbon-hero-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.orgbon-hero-button:active {
    transform: translateY(0);
}

.orgbon-primary-button {
    background-color: #E65100;
    color: #ffffff;
}

.orgbon-primary-button:hover {
    background-color: #BF360C;
    color: #ffffff;
}

.orgbon-secondary-button {
    background-color: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.orgbon-secondary-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

.button-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.button-icon svg,
.button-icon i {
    width: 1em;
    height: 1em;
    font-size: 1em;
}

.button-icon-before {
    margin-right: 10px;
}

.button-icon-after {
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.orgbon-hero-button:hover .button-icon-after {
    transform: translateX(5px);
}

@media (max-width: 480px) {
    .orgbon-hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .orgbon-hero-button {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   SCROLL INDICATOR
   ========================================================================== */

.orgbon-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    z-index: 10;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.orgbon-scroll-indicator:hover {
    opacity: 0.7;
}

.orgbon-scroll-text {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Mouse Style */
.orgbon-scroll-mouse {
    width: 26px;
    height: 40px;
    border: 2px solid currentColor;
    border-radius: 20px;
    position: relative;
}

.orgbon-scroll-mouse-wheel {
    width: 4px;
    height: 8px;
    background: currentColor;
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0%, 100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 0;
        transform: translateX(-50%) translateY(12px);
    }
}

/* Arrow Style */
.orgbon-scroll-arrow {
    animation: bounceArrow 2s infinite;
}

.orgbon-scroll-arrow svg {
    width: 24px;
    height: 24px;
}

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

/* Chevron Style */
.orgbon-scroll-chevron {
    display: flex;
    flex-direction: column;
    gap: -8px;
}

.orgbon-scroll-chevron svg {
    width: 24px;
    height: 24px;
    animation: chevronBounce 2s infinite;
}

.orgbon-scroll-chevron svg:nth-child(2) {
    margin-top: -12px;
    animation-delay: 0.2s;
    opacity: 0.5;
}

@keyframes chevronBounce {
    0%, 100% {
        opacity: 0.3;
        transform: translateY(-5px);
    }
    50% {
        opacity: 1;
        transform: translateY(5px);
    }
}

/* Line Style */
.orgbon-scroll-line {
    width: 1px;
    height: 60px;
    position: relative;
    overflow: hidden;
}

.orgbon-scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: currentColor;
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}

/* ==========================================================================
   BACKGROUND STYLES
   ========================================================================== */

/* Animated Gradient Background */
.orgbon-animated-gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
}

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

/* Particles Canvas */
.orgbon-particles-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Geometric Background */
.orgbon-geometric-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    overflow: hidden;
}

.orgbon-geometric-bg::before,
.orgbon-geometric-bg::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: floatShape 20s infinite ease-in-out;
}

.orgbon-geometric-bg::before {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, rgba(255,255,255,0.3), transparent);
    top: -200px;
    right: -200px;
}

.orgbon-geometric-bg::after {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, transparent, rgba(255,255,255,0.2));
    bottom: -100px;
    left: -100px;
    animation-delay: -10s;
}

@keyframes floatShape {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(20px, -20px) rotate(5deg);
    }
    50% {
        transform: translate(0, -40px) rotate(0deg);
    }
    75% {
        transform: translate(-20px, -20px) rotate(-5deg);
    }
}

/* Additional geometric shapes */
.orgbon-bg-geometric .orgbon-hero-section::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    top: 20%;
    left: 10%;
    animation: pulse 4s infinite ease-in-out;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.2;
    }
}

/* Waves Background */
.orgbon-waves-bg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.orgbon-wave {
    width: 100%;
    height: auto;
    position: absolute;
    bottom: 0;
}

.orgbon-wave-2 {
    animation: waveMove 8s linear infinite;
}

@keyframes waveMove {
    0% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(-25%);
    }
    100% {
        transform: translateX(0);
    }
}

/* ==========================================================================
   ENTRANCE ANIMATIONS
   ========================================================================== */

.orgbon-hero-section.animate-entrance .orgbon-hero-headline {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.orgbon-hero-section.animate-entrance .orgbon-rotating-wrapper {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.orgbon-hero-section.animate-entrance .orgbon-hero-tagline {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

.orgbon-hero-section.animate-entrance .orgbon-hero-buttons {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease 0.6s forwards;
}

.orgbon-hero-section.animate-entrance .orgbon-scroll-indicator {
    opacity: 0;
    animation: fadeIn 0.8s ease 1s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================== */

@media (max-width: 1024px) {
    .orgbon-hero-content {
        max-width: 700px;
    }
}

@media (max-width: 768px) {
    .orgbon-hero-section {
        min-height: 90vh;
    }
    
    .orgbon-hero-content {
        padding: 60px 20px 80px;
    }
    
    .orgbon-scroll-indicator {
        bottom: 20px;
    }
}

@media (max-width: 480px) {
    .orgbon-hero-section {
        min-height: 100vh;
        min-height: -webkit-fill-available;
    }
    
    .orgbon-hero-content {
        padding: 40px 15px 60px;
    }
}

/* ==========================================================================
   ACCESSIBILITY
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .orgbon-animated-gradient-bg,
    .orgbon-scroll-mouse-wheel,
    .orgbon-scroll-arrow,
    .orgbon-scroll-chevron svg,
    .orgbon-scroll-line::after,
    .orgbon-geometric-bg::before,
    .orgbon-geometric-bg::after,
    .orgbon-wave-2,
    .typed-cursor {
        animation: none;
    }
    
    .orgbon-hero-section.animate-entrance .orgbon-hero-headline,
    .orgbon-hero-section.animate-entrance .orgbon-rotating-wrapper,
    .orgbon-hero-section.animate-entrance .orgbon-hero-tagline,
    .orgbon-hero-section.animate-entrance .orgbon-hero-buttons,
    .orgbon-hero-section.animate-entrance .orgbon-scroll-indicator {
        opacity: 1;
        transform: none;
        animation: none;
    }
}

/* Focus styles for accessibility */
.orgbon-hero-button:focus,
.orgbon-scroll-indicator:focus {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

.orgbon-hero-button:focus:not(:focus-visible),
.orgbon-scroll-indicator:focus:not(:focus-visible) {
    outline: none;
}

/* ==========================================================================
   DARK MODE SUPPORT
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    .orgbon-secondary-button {
        border-color: rgba(255, 255, 255, 0.3);
    }
}
