/* ============================================
   SHOWCASE PAGE - FLUID DESIGN STYLES
   ============================================ */

/* Main Container */
.showcase-main {
    position: relative;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
}

/* Global Fluid Background - flows through all sections */
.global-fluid-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.fluid-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: fluidFlow 25s ease-in-out infinite;
}

.fluid-blob-1 {
    width: 600px;
    height: 600px;
    background: var(--color-accent);
    top: -300px;
    left: -300px;
    animation-delay: 0s;
}

.fluid-blob-2 {
    width: 500px;
    height: 500px;
    background: rgba(99, 91, 255, 0.6);
    top: 20%;
    right: -200px;
    animation-delay: 5s;
}

.fluid-blob-3 {
    width: 700px;
    height: 700px;
    background: rgba(183, 148, 246, 0.5);
    bottom: -300px;
    left: 10%;
    animation-delay: 10s;
}

.fluid-blob-4 {
    width: 450px;
    height: 450px;
    background: rgba(255, 107, 107, 0.4);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 15s;
}

.fluid-blob-5 {
    width: 550px;
    height: 550px;
    background: rgba(99, 91, 255, 0.3);
    bottom: 20%;
    right: 10%;
    animation-delay: 20s;
}

@keyframes fluidFlow {
    0%, 100% {
        border-radius: 50%;
        transform: translate(0, 0) scale(1);
    }
    20% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: translate(200px, -150px) scale(1.2);
    }
    40% {
        border-radius: 40% 60% 70% 30% / 40% 70% 30% 60%;
        transform: translate(-150px, 200px) scale(0.9);
    }
    60% {
        border-radius: 50% 50% 50% 50% / 60% 40% 60% 40%;
        transform: translate(150px, 180px) scale(1.1);
    }
    80% {
        border-radius: 70% 30% 50% 50% / 50% 50% 70% 30%;
        transform: translate(-100px, -100px) scale(1.05);
    }
}

/* Showcase Sections - Seamless Transitions */
.showcase-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    opacity: 1;
    transition: opacity 1.5s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 1.5s cubic-bezier(0.4, 0, 0.2, 1),
                filter 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0) scale(1);
    filter: blur(0px);
    will-change: opacity, transform, filter;
    overflow: hidden;
    z-index: 1;
}

.showcase-section:not(.active) {
    opacity: 0.2;
    transform: translateY(30px) scale(0.98);
    filter: blur(3px);
}

.showcase-section.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
    z-index: 2;
}

/* Section 1: Hero - Fluid Text */
.showcase-hero-section {
    min-height: 100vh;
}

.showcase-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

/* Interactive 3D Objects */
.interactive-3d-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.cube-3d {
    position: absolute;
    width: 150px;
    height: 150px;
    transform-style: preserve-3d;
    animation: cubeFloat 8s ease-in-out infinite;
    cursor: grab;
    pointer-events: auto;
}

.cube-3d:active {
    cursor: grabbing;
}

#cube-1 {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

#cube-2 {
    bottom: 20%;
    right: 15%;
    animation-delay: 4s;
}

.cube-face {
    position: absolute;
    width: 150px;
    height: 150px;
    border: 2px solid var(--color-accent);
    background: linear-gradient(135deg, rgba(99, 91, 255, 0.2), rgba(183, 148, 246, 0.2));
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cube-face.front {
    transform: rotateY(0deg) translateZ(75px);
}

.cube-face.back {
    transform: rotateY(180deg) translateZ(75px);
}

.cube-face.right {
    transform: rotateY(90deg) translateZ(75px);
}

.cube-face.left {
    transform: rotateY(-90deg) translateZ(75px);
}

.cube-face.top {
    transform: rotateX(90deg) translateZ(75px);
}

.cube-face.bottom {
    transform: rotateX(-90deg) translateZ(75px);
}

@keyframes cubeFloat {
    0%, 100% {
        transform: translateY(0) rotateX(0deg) rotateY(0deg);
    }
    25% {
        transform: translateY(-30px) rotateX(10deg) rotateY(90deg);
    }
    50% {
        transform: translateY(0) rotateX(0deg) rotateY(180deg);
    }
    75% {
        transform: translateY(-20px) rotateX(-10deg) rotateY(270deg);
    }
}

.showcase-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.fluid-title {
    font-size: clamp(3rem, 10vw, 10rem);
    font-weight: 900;
    line-height: 0.9;
    margin: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.1em;
}

.fluid-letter {
    display: inline-block;
    color: var(--color-text);
    text-shadow: 
        0 0 30px rgba(99, 91, 255, 0.3),
        0 10px 40px rgba(0, 0, 0, 0.3);
    animation: fluidLetter 6s ease-in-out infinite;
    transform-origin: center;
}

.fluid-letter:nth-child(1) { animation-delay: 0s; }
.fluid-letter:nth-child(2) { animation-delay: 0.1s; }
.fluid-letter:nth-child(3) { animation-delay: 0.2s; }
.fluid-letter:nth-child(5) { animation-delay: 0.3s; }
.fluid-letter:nth-child(6) { animation-delay: 0.4s; }
.fluid-letter:nth-child(7) { animation-delay: 0.5s; }
.fluid-letter:nth-child(8) { animation-delay: 0.6s; }
.fluid-letter:nth-child(9) { animation-delay: 0.7s; }
.fluid-letter:nth-child(10) { animation-delay: 0.8s; }

@keyframes fluidLetter {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-10px) rotate(2deg) scale(1.05);
    }
    50% {
        transform: translateY(5px) rotate(-2deg) scale(0.98);
    }
    75% {
        transform: translateY(-5px) rotate(1deg) scale(1.02);
    }
}

.letter-space {
    width: 0.2em;
}

.fluid-subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: var(--color-text-light);
    margin-top: 2rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.8;
    animation: fluidSubtitle 4s ease-in-out infinite;
}

@keyframes fluidSubtitle {
    0%, 100% {
        opacity: 0.8;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-5px);
    }
}

/* Section 2: Morphing Text */
.showcase-morph-section {
    min-height: 100vh;
}

.showcase-morph {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    background: transparent;
}

.morph-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.morph-text {
    font-size: clamp(4rem, 12vw, 12rem);
    font-weight: 900;
    color: var(--color-text);
    margin: 0;
    line-height: 0.85;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    animation: morphText 8s ease-in-out infinite;
    text-shadow: 
        0 0 40px rgba(99, 91, 255, 0.4),
        0 15px 50px rgba(0, 0, 0, 0.4);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.morph-text:nth-child(2) {
    animation-delay: 2s;
    margin-top: -0.15em;
}

@keyframes morphText {
    0%, 100% {
        transform: rotateX(0deg) rotateY(0deg) translateZ(0) scale(1);
        filter: blur(0px);
    }
    25% {
        transform: rotateX(5deg) rotateY(-5deg) translateZ(30px) scale(1.05);
        filter: blur(1px);
    }
    50% {
        transform: rotateX(-5deg) rotateY(5deg) translateZ(-30px) scale(0.95);
        filter: blur(2px);
    }
    75% {
        transform: rotateX(3deg) rotateY(-3deg) translateZ(15px) scale(1.02);
        filter: blur(0.5px);
    }
}

.morph-subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: var(--color-text-light);
    margin-top: 2rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.8;
}

/* Section 3: Particle Text */
.showcase-particles-section {
    min-height: 100vh;
}

.showcase-particles {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.particle-text-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

/* Animated Text with Letter-by-Letter Animation */
.animated-text {
    font-size: clamp(3rem, 10vw, 10rem);
    font-weight: 900;
    color: var(--color-text);
    margin: 0.2em 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    justify-content: center;
    gap: 0.05em;
    text-shadow: 
        0 0 30px rgba(99, 91, 255, 0.3),
        0 10px 40px rgba(0, 0, 0, 0.3);
}

.text-letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(50px) rotateX(90deg);
    animation: letterReveal 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.text-letter:nth-child(1) { animation-delay: 0s; }
.text-letter:nth-child(2) { animation-delay: 0.05s; }
.text-letter:nth-child(3) { animation-delay: 0.1s; }
.text-letter:nth-child(4) { animation-delay: 0.15s; }
.text-letter:nth-child(5) { animation-delay: 0.2s; }
.text-letter:nth-child(6) { animation-delay: 0.25s; }
.text-letter:nth-child(7) { animation-delay: 0.3s; }
.text-letter:nth-child(8) { animation-delay: 0.35s; }
.text-letter:nth-child(9) { animation-delay: 0.4s; }
.text-letter:nth-child(10) { animation-delay: 0.45s; }

#innovation-text .text-letter {
    animation-delay: calc(var(--i, 0) * 0.05s + 1s);
}

#excellence-text .text-letter {
    animation-delay: calc(var(--i, 0) * 0.05s + 2s);
}

@keyframes letterReveal {
    0% {
        opacity: 0;
        transform: translateY(50px) rotateX(90deg) scale(0.5);
    }
    50% {
        opacity: 0.8;
        transform: translateY(-10px) rotateX(0deg) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0deg) scale(1);
    }
}

/* Hover effect for letters */
.animated-text:hover .text-letter {
    animation: letterBounce 0.5s ease-in-out;
}

@keyframes letterBounce {
    0%, 100% {
        transform: translateY(0) rotateZ(0deg);
    }
    25% {
        transform: translateY(-15px) rotateZ(-5deg);
    }
    75% {
        transform: translateY(-10px) rotateZ(5deg);
    }
}

/* Section 4: Liquid Waves */
.showcase-liquid-section {
    min-height: 100vh;
}

.showcase-liquid {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
}

.liquid-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.wave-title {
    font-size: clamp(4rem, 12vw, 12rem);
    font-weight: 900;
    color: var(--color-text);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    animation: waveTitle 6s ease-in-out infinite;
    text-shadow: 
        0 0 40px rgba(99, 91, 255, 0.4),
        0 15px 50px rgba(0, 0, 0, 0.4);
}

@keyframes waveTitle {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    25% {
        transform: translateY(-15px) scale(1.03);
    }
    50% {
        transform: translateY(10px) scale(0.97);
    }
    75% {
        transform: translateY(-8px) scale(1.01);
    }
}

.wave-description {
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: var(--color-text-light);
    margin: 2rem 0 3rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.8;
}

.wave-text {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: 900;
}

.wave-text span {
    display: inline-block;
    color: var(--color-text);
    animation: wave 1.5s ease-in-out infinite;
    text-shadow: 
        0 0 30px rgba(99, 91, 255, 0.3),
        0 10px 40px rgba(0, 0, 0, 0.3);
}

.wave-text span:nth-child(1) { animation-delay: 0s; }
.wave-text span:nth-child(2) { animation-delay: 0.1s; }
.wave-text span:nth-child(3) { animation-delay: 0.2s; }
.wave-text span:nth-child(4) { animation-delay: 0.3s; }

@keyframes wave {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-30px) rotate(5deg);
    }
    50% {
        transform: translateY(15px) rotate(-5deg);
    }
    75% {
        transform: translateY(-10px) rotate(2deg);
    }
}

/* Flow Transition Elements - Removed, using seamless sections instead */

/* Section 5: Magnetic Text */
.showcase-magnetic-section {
    min-height: 100vh;
}

.showcase-magnetic {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    background: transparent;
}

.magnetic-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.magnetic-text {
    font-size: clamp(4rem, 12vw, 12rem);
    font-weight: 900;
    color: var(--color-text);
    margin: 0;
    line-height: 0.85;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    text-shadow: 
        0 0 40px rgba(99, 91, 255, 0.4),
        0 15px 50px rgba(0, 0, 0, 0.4);
    transition: transform 0.1s ease-out;
    cursor: pointer;
    display: block;
}

.magnetic-text:nth-child(2) {
    margin-top: -0.15em;
}

.magnetic-subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: var(--color-text-light);
    margin-top: 2rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.8;
}

/* Section 6: Glitch Effects */
.showcase-glitch-section {
    min-height: 100vh;
}

.showcase-glitch {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    background: transparent;
}

.glitch-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.glitch-title {
    font-size: clamp(4rem, 12vw, 12rem);
    font-weight: 900;
    color: var(--color-text);
    margin: 0;
    line-height: 0.85;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    position: relative;
    text-shadow: 
        0 0 40px rgba(99, 91, 255, 0.4),
        0 15px 50px rgba(0, 0, 0, 0.4);
    animation: glitch 3s infinite;
}

.glitch-title:nth-child(2) {
    animation-delay: 1.5s;
    margin-top: -0.15em;
}

.glitch-title::before,
.glitch-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-title::before {
    left: 2px;
    text-shadow: -2px 0 rgba(255, 0, 0, 0.8);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}

.glitch-title::after {
    left: -2px;
    text-shadow: 2px 0 rgba(0, 255, 255, 0.8);
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 1s infinite linear alternate-reverse;
}

@keyframes glitch {
    0%, 100% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
}

@keyframes glitch-anim {
    0% {
        clip: rect(31px, 9999px, 94px, 0);
        transform: skew(0.5deg);
    }
    5% {
        clip: rect(42px, 9999px, 77px, 0);
        transform: skew(0.8deg);
    }
    10% {
        clip: rect(88px, 9999px, 40px, 0);
        transform: skew(0.3deg);
    }
    15% {
        clip: rect(76px, 9999px, 87px, 0);
        transform: skew(0.2deg);
    }
    20% {
        clip: rect(39px, 9999px, 56px, 0);
        transform: skew(0.6deg);
    }
    25% {
        clip: rect(68px, 9999px, 11px, 0);
        transform: skew(0.1deg);
    }
    30% {
        clip: rect(13px, 9999px, 94px, 0);
        transform: skew(0.7deg);
    }
    35% {
        clip: rect(95px, 9999px, 73px, 0);
        transform: skew(0.4deg);
    }
    40% {
        clip: rect(7px, 9999px, 79px, 0);
        transform: skew(0.5deg);
    }
    45% {
        clip: rect(54px, 9999px, 27px, 0);
        transform: skew(0.8deg);
    }
    50% {
        clip: rect(83px, 9999px, 4px, 0);
        transform: skew(0.3deg);
    }
    55% {
        clip: rect(40px, 9999px, 50px, 0);
        transform: skew(0.6deg);
    }
    60% {
        clip: rect(19px, 9999px, 60px, 0);
        transform: skew(0.2deg);
    }
    65% {
        clip: rect(52px, 9999px, 43px, 0);
        transform: skew(0.9deg);
    }
    70% {
        clip: rect(31px, 9999px, 94px, 0);
        transform: skew(0.5deg);
    }
    75% {
        clip: rect(42px, 9999px, 77px, 0);
        transform: skew(0.8deg);
    }
    80% {
        clip: rect(88px, 9999px, 40px, 0);
        transform: skew(0.3deg);
    }
    85% {
        clip: rect(76px, 9999px, 87px, 0);
        transform: skew(0.2deg);
    }
    90% {
        clip: rect(39px, 9999px, 56px, 0);
        transform: skew(0.6deg);
    }
    95% {
        clip: rect(68px, 9999px, 11px, 0);
        transform: skew(0.1deg);
    }
    100% {
        clip: rect(13px, 9999px, 94px, 0);
        transform: skew(0.7deg);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip: rect(65px, 9999px, 100px, 0);
        transform: skew(0.3deg);
    }
    5% {
        clip: rect(14px, 9999px, 33px, 0);
        transform: skew(0.5deg);
    }
    10% {
        clip: rect(90px, 9999px, 22px, 0);
        transform: skew(0.2deg);
    }
    15% {
        clip: rect(25px, 9999px, 88px, 0);
        transform: skew(0.7deg);
    }
    20% {
        clip: rect(55px, 9999px, 11px, 0);
        transform: skew(0.4deg);
    }
    25% {
        clip: rect(8px, 9999px, 77px, 0);
        transform: skew(0.6deg);
    }
    30% {
        clip: rect(72px, 9999px, 44px, 0);
        transform: skew(0.1deg);
    }
    35% {
        clip: rect(38px, 9999px, 66px, 0);
        transform: skew(0.8deg);
    }
    40% {
        clip: rect(91px, 9999px, 19px, 0);
        transform: skew(0.3deg);
    }
    45% {
        clip: rect(16px, 9999px, 95px, 0);
        transform: skew(0.5deg);
    }
    50% {
        clip: rect(63px, 9999px, 7px, 0);
        transform: skew(0.2deg);
    }
    55% {
        clip: rect(29px, 9999px, 81px, 0);
        transform: skew(0.7deg);
    }
    60% {
        clip: rect(47px, 9999px, 53px, 0);
        transform: skew(0.4deg);
    }
    65% {
        clip: rect(84px, 9999px, 26px, 0);
        transform: skew(0.6deg);
    }
    70% {
        clip: rect(12px, 9999px, 69px, 0);
        transform: skew(0.1deg);
    }
    75% {
        clip: rect(58px, 9999px, 35px, 0);
        transform: skew(0.8deg);
    }
    80% {
        clip: rect(21px, 9999px, 97px, 0);
        transform: skew(0.3deg);
    }
    85% {
        clip: rect(75px, 9999px, 48px, 0);
        transform: skew(0.5deg);
    }
    90% {
        clip: rect(3px, 9999px, 62px, 0);
        transform: skew(0.2deg);
    }
    95% {
        clip: rect(41px, 9999px, 89px, 0);
        transform: skew(0.7deg);
    }
    100% {
        clip: rect(67px, 9999px, 15px, 0);
        transform: skew(0.4deg);
    }
}

.glitch-subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: var(--color-text-light);
    margin-top: 2rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.8;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .showcase-section {
        padding: 2rem 1rem;
    }
    
    .fluid-title,
    .morph-text,
    .flow-text,
    .wave-title,
    .magnetic-text,
    .glitch-title {
        font-size: clamp(2rem, 8vw, 6rem);
    }
    
    .fluid-subtitle,
    .morph-subtitle,
    .wave-description,
    .magnetic-subtitle,
    .glitch-subtitle {
        font-size: clamp(1rem, 2.5vw, 1.5rem);
    }
}
