/**
 * Hero Section - Exact Recreation with ASIVO Colors
 * 
 * @package Asivo
 * @version 1.0.0
 */

/* ================================
   Hero Section
   ================================ */

.hero {
    padding: 140px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: 
        radial-gradient(ellipse 1200px 800px at 50% 50%, rgba(79, 70, 229, 0.12), transparent),
        radial-gradient(ellipse 800px 600px at 80% 60%, rgba(0, 209, 255, 0.08), transparent),
        linear-gradient(180deg, #0a0f14 0%, #0d1014 100%);
}

.hero-grid {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 100px 100px;
    opacity: 1;
    z-index: 1;
    mask-image: linear-gradient(to bottom, 
        transparent 0%, 
        black 30%, 
        black 70%, 
        transparent 100%),
        linear-gradient(to right, 
        transparent 0%, 
        black 30%, 
        black 70%, 
        transparent 100%);
    mask-composite: intersect;
    -webkit-mask-image: linear-gradient(to bottom, 
        transparent 0%, 
        black 30%, 
        black 70%, 
        transparent 100%),
        linear-gradient(to right, 
        transparent 0%, 
        black 30%, 
        black 70%, 
        transparent 100%);
    -webkit-mask-composite: source-in;
}

.hero-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Hero Text */
.hero-eyebrow {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: #9ca3af;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 68px;
    line-height: 1;
    color: #ffffff;
    margin-bottom: 8px;
    font-weight: 500;
}

.hero-title-highlight {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    background: linear-gradient(135deg, #4F46E5 0%, #00D1FF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 400;
    display: block;
}

.hero-title-main {
    font-size: 52px;
    line-height: 1.1;
    color: #ffffff;
    font-weight: 500;
    margin-bottom: 16px;
}

.hero-subtitle {
    font-size: 14px;
    line-height: 1.6;
    color: #b3b8c4;
    max-width: 460px;
    margin: 0 auto 36px;
}

.hero-animated-word {
    color: #00D1FF;
    font-weight: 500;
    display: inline-block;
    position: relative;
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
}

.hero-animated-word.changing {
    animation: wordSwap 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes wordSwap {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    40% {
        opacity: 0;
        transform: translateY(-10px);
    }
    60% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    height: 320px;
}

/* Glow-Effekt hinter den Karten */
.hero-visual::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(
        circle at center,
        rgba(79, 70, 229, 0.35) 0%,
        rgba(79, 70, 229, 0.22) 25%,
        rgba(0, 209, 255, 0.15) 50%,
        transparent 75%
    );
    filter: blur(90px);
    z-index: 1;
    pointer-events: none;
}

/* Hero Card Stack */
.hero-card {
    position: relative;
    width: 220px;
    height: 280px;
    background: #ffffff;
    border-radius: 24px;
    padding: 10px;
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.1),
        0 20px 40px rgba(0, 0, 0, 0.6),
        0 0 80px rgba(79, 70, 229, 0.2);
    transform: rotate(-5deg);
    z-index: 5;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    transform-style: preserve-3d;
}

/* Hintere Karten - gestaffelt */
.hero-card::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #4F46E5;
    border-radius: 24px;
    top: -10px;
    left: 10px;
    z-index: -1;
    box-shadow: 
        0 10px 30px rgba(79, 70, 229, 0.35),
        0 0 60px rgba(79, 70, 229, 0.25);
    transform: rotate(4deg);
    backface-visibility: hidden;
}

.hero-card::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #4F46E5, #00D1FF);
    border-radius: 24px;
    top: -18px;
    left: 18px;
    z-index: -2;
    box-shadow: 
        0 15px 35px rgba(0, 209, 255, 0.3),
        0 0 70px rgba(0, 209, 255, 0.2);
    transform: rotate(8deg);
    backface-visibility: hidden;
}

.hero-card-inner {
    width: 100%;
    height: 100%;
    border-radius: 18px;
    overflow: hidden;
    background: #1a1a1a;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
}

/* Round CTA */
.hero-round-cta {
    position: relative;
    margin: 40px auto 0;
    width: 160px;
    height: 48px;
    border-radius: 999px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.12) 0%,
        rgba(255, 255, 255, 0.08) 100%);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 1px rgba(255, 255, 255, 0.25),
        inset 0 -1px 1px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 28px;
    overflow: hidden;
}

.hero-round-cta:hover {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.16) 0%,
        rgba(255, 255, 255, 0.12) 100%);
    transform: translateY(-2px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 1px rgba(255, 255, 255, 0.3);
}

.cta-text {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    line-height: 1;
    font-family: var(--font-ui);
    white-space: nowrap;
}

.cta-icon {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-round-cta:hover .cta-icon {
    transform: translateY(2px);
}

/* Portfolio Ribbon */
.portfolio-ribbon {
    position: absolute;
    width: 100vw;
    height: 50px;
    top: 50%;
    left: 50%;
    margin-left: -50vw;
    transform: translateY(-50%) rotate(-3deg);
    overflow: hidden;
    z-index: 3;
    pointer-events: auto;
}

.ribbon-track {
    position: absolute;
    width: fit-content;
    height: 100%;
    display: flex;
    align-items: center;
    animation: ribbon-scroll 35s linear infinite;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(79, 70, 229, 0.3) 2%,
        rgba(79, 70, 229, 0.4) 25%,
        rgba(0, 209, 255, 0.35) 50%,
        rgba(79, 70, 229, 0.4) 75%,
        rgba(79, 70, 229, 0.3) 98%,
        transparent 100%
    );
    padding: 14px 0;
    box-shadow: 
        0 0 40px rgba(79, 70, 229, 0.4),
        0 0 60px rgba(0, 209, 255, 0.3),
        inset 0 0 20px rgba(79, 70, 229, 0.3);
}

.ribbon-text {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    color: #FFFFFF;
    text-shadow: 
        0 0 20px rgba(255, 255, 255, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    padding: 0 30px;
    text-decoration: none;
    display: inline-block;
}

.ribbon-text--highlight {
    color: #F59E0B;
    text-shadow: 
        0 0 20px rgba(245, 158, 11, 0.6),
        0 0 30px rgba(245, 158, 11, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.5);
    font-weight: 800;
}

.ribbon-link {
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.ribbon-link:hover {
    color: #00D1FF;
    text-shadow: 
        0 0 20px rgba(0, 209, 255, 0.9),
        0 0 40px rgba(0, 209, 255, 0.7),
        0 0 60px rgba(0, 209, 255, 0.4);
    transform: scale(1.08) translateY(-1px);
    letter-spacing: 0.45em;
}

.ribbon-text--highlight.ribbon-link:hover {
    color: #FCD34D;
    text-shadow: 
        0 0 25px rgba(252, 211, 77, 0.9),
        0 0 45px rgba(245, 158, 11, 0.7),
        0 0 65px rgba(245, 158, 11, 0.5);
}

.ribbon-link:active {
    transform: scale(1.02);
    transition-duration: 0.1s;
}

@keyframes ribbon-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Floating Elements */
.floating-element {
    position: absolute;
    z-index: 2;
}

.float-circle-1 {
    bottom: 15%;
    left: 5%;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(20, 20, 20, 0.8);
    border: 2px solid rgba(79, 70, 229, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.float-icon {
    font-size: 24px;
    color: #ffffff;
}

.float-circle-2 {
    bottom: 12%;
    left: 12%;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: #000000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.float-circle-3 {
    bottom: 18%;
    left: 20%;
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4F46E5, #3730A3);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(79, 70, 229, 0.6);
}

.plus-icon {
    font-size: 48px;
    color: #ffffff;
    font-weight: 300;
}

.float-badge {
    bottom: 16%;
    left: 26%;
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #1a1a2e;
    border: 2px solid rgba(79, 70, 229, 0.3);
}

/* Responsive */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 58px;
    }

    .hero-title-main {
        font-size: 44px;
    }
    
    .hero-card {
        width: 200px;
        height: 260px;
    }
    
    .hero-visual {
        max-width: 280px;
        height: 280px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 130px 0 70px;
    }
    
    .hero-inner {
        padding: 0 24px;
    }
    
    .hero-eyebrow {
        font-size: 11px;
        margin-bottom: 16px;
    }

    .hero-title {
        font-size: 46px;
        margin-bottom: 6px;
    }

    .hero-title-main {
        font-size: 34px;
        margin-bottom: 12px;
    }
    
    .hero-subtitle {
        font-size: 13px;
        line-height: 1.5;
        margin-bottom: 32px;
        max-width: 340px;
    }

    .hero-card {
        width: 180px;
        height: 240px;
    }
    
    .hero-visual {
        max-width: 240px;
        height: 240px;
    }

    .floating-element {
        display: none;
    }

    .hero-round-cta {
        width: 55px;
        height: 55px;
        right: -5%;
    }
    
    .cta-text {
        font-size: 7px;
    }
    
    .cta-icon {
        font-size: 18px;
    }
    
    .ribbon-text {
        font-size: 13px;
    }
}

/* ================================
   Mission Statement Section
   ================================ */

.mission-statement {
    padding: 120px 0;
    background: linear-gradient(180deg, #0d1014 0%, #0a0e15 100%);
    border-top: 1px solid rgba(79, 70, 229, 0.1);
}

.mission-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.mission-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    max-width: 800px;
}

.mission-title {
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.2;
    color: #ffffff;
    font-weight: 400;
}

.mission-highlight {
    color: #4F46E5;
    font-weight: 500;
    position: relative;
    display: inline;
}

.animated-word {
    color: #00D1FF;
    font-weight: 500;
    display: inline-block;
    position: relative;
}

@keyframes wordSwap {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    45% {
        opacity: 0;
        transform: translateY(-8px);
    }
    55% {
        opacity: 0;
        transform: translateY(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animated-word.changing {
    animation: wordSwap 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.mission-cta {
    display: flex;
    justify-content: flex-end;
    flex-shrink: 0;
}

.mission-cta .btn {
    font-size: 14px;
    padding: 14px 28px;
    background: #4F46E5;
    color: #ffffff;
    border: none;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
    border-radius: 999px;
    text-transform: none;
    letter-spacing: 0;
}

.mission-cta .btn:hover {
    background: #4338CA;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.4);
}

/* Responsive */
@media (max-width: 1024px) {
    .mission-container {
        flex-direction: column;
        gap: 36px;
        text-align: center;
    }
    
    .mission-content {
        max-width: 100%;
    }
    
    .mission-cta {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .mission-statement {
        padding: 80px 0;
    }
    
    .mission-container {
        padding: 0 24px;
        gap: 36px;
    }
    
    .mission-title {
        font-size: 28px;
    }
    
    .mission-cta .btn {
        font-size: 15px;
        padding: 16px 32px;
    }
}
