/* ============================================
   FATIC WEBSITE - PHASE 2 PREMIUM EFFECTS
   Advanced Visual Enhancements
   ============================================ */

/* ============================================
   21. ANIMATED MESH GRADIENTS
   ============================================ */
@keyframes meshGradient {
    0% {
        background-position: 0% 0%;
    }

    25% {
        background-position: 100% 0%;
    }

    50% {
        background-position: 100% 100%;
    }

    75% {
        background-position: 0% 100%;
    }

    100% {
        background-position: 0% 0%;
    }
}

.mesh-gradient {
    background:
        radial-gradient(at 20% 30%, rgba(209, 166, 98, 0.3) 0px, transparent 50%),
        radial-gradient(at 80% 70%, rgba(15, 44, 89, 0.3) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(26, 75, 140, 0.2) 0px, transparent 50%);
    background-size: 400% 400%;
    animation: meshGradient 15s ease infinite;
}

.mesh-gradient-intense {
    background:
        radial-gradient(circle at 20% 30%, rgba(209, 166, 98, 0.5) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(15, 44, 89, 0.5) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(26, 75, 140, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 10% 80%, rgba(255, 215, 0, 0.3) 0%, transparent 50%);
    background-size: 400% 400%;
    animation: meshGradient 20s ease infinite;
}

/* ============================================
   22. HOLOGRAPHIC & IRIDESCENT EFFECTS
   ============================================ */
.holographic {
    position: relative;
    overflow: hidden;
}

.holographic::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(255, 0, 255, 0.1) 0%,
            rgba(0, 255, 255, 0.1) 25%,
            rgba(255, 255, 0, 0.1) 50%,
            rgba(0, 255, 0, 0.1) 75%,
            rgba(255, 0, 255, 0.1) 100%);
    background-size: 200% 200%;
    animation: holographicShift 8s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.holographic:hover::before {
    opacity: 1;
}

@keyframes holographicShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.iridescent {
    background: linear-gradient(135deg,
            #667eea 0%,
            #764ba2 25%,
            #f093fb 50%,
            #4facfe 75%,
            #00f2fe 100%);
    background-size: 300% 300%;
    animation: iridescent 10s ease infinite;
}

@keyframes iridescent {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Rainbow shimmer overlay */
.rainbow-shimmer {
    position: relative;
    overflow: hidden;
}

.rainbow-shimmer::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg,
            transparent 30%,
            rgba(255, 255, 255, 0.1) 50%,
            transparent 70%);
    transform: rotate(45deg);
    animation: rainbowShimmer 3s infinite;
}

@keyframes rainbowShimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* ============================================
   23. LIQUID BUTTON EFFECTS
   ============================================ */
.btn-liquid {
    position: relative;
    overflow: hidden;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.btn-liquid::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, var(--secondary) 0%, var(--primary) 100%);
    border-radius: 50px;
    transform: scale(0);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: -1;
}

.btn-liquid:hover::before {
    transform: scale(1.5);
}

.btn-liquid:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 40px rgba(209, 166, 98, 0.5);
}

/* Blob morph effect */
@keyframes blobMorph {

    0%,
    100% {
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    }

    25% {
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
    }

    50% {
        border-radius: 50% 60% 30% 60% / 30% 60% 70% 40%;
    }

    75% {
        border-radius: 60% 40% 60% 40% / 70% 30% 50% 60%;
    }
}

.blob-morph {
    animation: blobMorph 8s ease-in-out infinite;
}

/* ============================================
   24. GLITCH TEXT EFFECTS
   ============================================ */
.glitch {
    position: relative;
    display: inline-block;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 #ff00de;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 #00fff9;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim-2 2s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% {
        clip: rect(random(100) + px, 9999px, random(100) + px, 0);
    }

    5% {
        clip: rect(random(100) + px, 9999px, random(100) + px, 0);
    }

    10% {
        clip: rect(random(100) + px, 9999px, random(100) + px, 0);
    }

    15% {
        clip: rect(random(100) + px, 9999px, random(100) + px, 0);
    }

    20% {
        clip: rect(random(100) + px, 9999px, random(100) + px, 0);
    }

    100% {
        clip: rect(random(100) + px, 9999px, random(100) + px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(random(100) + px, 9999px, random(100) + px, 0);
    }

    5% {
        clip: rect(random(100) + px, 9999px, random(100) + px, 0);
    }

    10% {
        clip: rect(random(100) + px, 9999px, random(100) + px, 0);
    }

    15% {
        clip: rect(random(100) + px, 9999px, random(100) + px, 0);
    }

    20% {
        clip: rect(random(100) + px, 9999px, random(100) + px, 0);
    }

    100% {
        clip: rect(random(100) + px, 9999px, random(100) + px, 0);
    }
}

/* Simpler glitch for headings */
.glitch-simple {
    animation: glitch-simple 3s infinite;
}

@keyframes glitch-simple {

    0%,
    90%,
    100% {
        transform: translate(0);
    }

    91% {
        transform: translate(-2px, 2px);
    }

    92% {
        transform: translate(2px, -2px);
    }

    93% {
        transform: translate(-2px, 2px);
    }

    94% {
        transform: translate(2px, -2px);
    }
}

/* ============================================
   25. AURORA BOREALIS BACKGROUND
   ============================================ */
.aurora-bg {
    position: relative;
    overflow: hidden;
}

.aurora-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(45deg, rgba(0, 255, 135, 0.2) 0%, transparent 50%),
        linear-gradient(-45deg, rgba(0, 191, 255, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, rgba(138, 43, 226, 0.2) 0%, transparent 50%);
    background-size: 400% 400%;
    animation: aurora 20s ease infinite;
    opacity: 0.6;
}

@keyframes aurora {

    0%,
    100% {
        background-position: 0% 50%, 100% 50%, 50% 0%;
    }

    33% {
        background-position: 100% 50%, 0% 50%, 50% 100%;
    }

    66% {
        background-position: 50% 100%, 50% 0%, 0% 50%;
    }
}

/* ============================================
   26. FLOATING 3D SHAPES
   ============================================ */
.floating-shape {
    position: absolute;
    opacity: 0.1;
    animation: float3D 20s ease-in-out infinite;
    transform-style: preserve-3d;
}

@keyframes float3D {

    0%,
    100% {
        transform: translate3d(0, 0, 0) rotate3d(1, 1, 1, 0deg);
    }

    25% {
        transform: translate3d(50px, -50px, 50px) rotate3d(1, 1, 1, 90deg);
    }

    50% {
        transform: translate3d(0, -100px, 0) rotate3d(1, 1, 1, 180deg);
    }

    75% {
        transform: translate3d(-50px, -50px, -50px) rotate3d(1, 1, 1, 270deg);
    }
}

.shape-cube {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    border-radius: 10px;
}

.shape-sphere {
    width: 80px;
    height: 80px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), var(--secondary));
    border-radius: 50%;
}

/* ============================================
   27. SPLIT TEXT ANIMATION (準備用)
   ============================================ */
.split-text {
    display: inline-block;
    overflow: hidden;
}

.split-text .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    animation: charReveal 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

@keyframes charReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   28. TYPING EFFECT
   ============================================ */
.typing-effect {
    overflow: hidden;
    border-right: 3px solid var(--secondary);
    white-space: nowrap;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent;
    }

    50% {
        border-color: var(--secondary);
    }
}

/* ============================================
   29. CARD FLIP ANIMATION
   ============================================ */
.card-flip {
    perspective: 1000px;
}

.card-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s;
    transform-style: preserve-3d;
}

.card-flip:hover .card-flip-inner {
    transform: rotateY(180deg);
}

.card-flip-front,
.card-flip-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 1rem;
}

.card-flip-back {
    transform: rotateY(180deg);
}

/* ============================================
   30. ADVANCED HOVER EFFECTS
   ============================================ */
.hover-shine {
    position: relative;
    overflow: hidden;
}

.hover-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    transition: left 0.5s;
}

.hover-shine:hover::after {
    left: 100%;
}

/* Elastic hover */
.hover-elastic {
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.hover-elastic:hover {
    transform: scale(1.1);
}

/* ============================================
   31. PROGRESS INDICATORS
   ============================================ */
.progress-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(var(--secondary) var(--progress, 0%),
            #e0e0e0 var(--progress, 0%));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.progress-circle::before {
    content: '';
    position: absolute;
    inset: 10px;
    background: white;
    border-radius: 50%;
}

/* ============================================
   32. TOAST NOTIFICATIONS
   ============================================ */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: translateX(400px);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 10000;
}

.toast.show {
    transform: translateX(0);
}

.toast.success {
    border-left: 4px solid #10b981;
}

.toast.error {
    border-left: 4px solid #ef4444;
}

.toast.info {
    border-left: 4px solid #3b82f6;
}

/* ============================================
   33. ENHANCED FORM ANIMATIONS
   ============================================ */
.input-glow {
    transition: all 0.3s ease;
}

.input-glow:focus {
    box-shadow: 0 0 0 3px rgba(209, 166, 98, 0.3);
    border-color: var(--secondary);
    transform: scale(1.02);
}

/* ============================================
   34. ICON ANIMATIONS
   ============================================ */
.icon-bounce:hover {
    animation: iconBounce 0.6s ease;
}

@keyframes iconBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    25% {
        transform: translateY(-10px);
    }

    50% {
        transform: translateY(0);
    }

    75% {
        transform: translateY(-5px);
    }
}

.icon-rotate:hover {
    animation: iconRotate 0.6s ease;
}

@keyframes iconRotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.icon-pulse:hover {
    animation: iconPulse 1s ease infinite;
}

@keyframes iconPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

/* ============================================
   35. PREMIUM NEON BORDERS
   ============================================ */
.neon-border-card {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    padding: 2rem;
    overflow: hidden;
}

.neon-border-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg,
            #d1a662 0%,
            #0f2c59 25%,
            #d1a662 50%,
            #0f2c59 75%,
            #d1a662 100%);
    background-size: 300% 300%;
    border-radius: 24px;
    z-index: -1;
    animation: neonBorderFlow 6s linear infinite;
    filter: blur(8px);
    opacity: 0.8;
}

.neon-border-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: inherit;
    border-radius: 24px;
    z-index: -1;
}

@keyframes neonBorderFlow {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* ============================================
   36. GLASS CARDS WITH DEPTH
   ============================================ */
.glass-card-premium {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.9) 0%,
            rgba(255, 255, 255, 0.7) 100%);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 28px;
    box-shadow:
        0 8px 32px rgba(15, 44, 89, 0.1),
        0 2px 8px rgba(15, 44, 89, 0.05),
        inset 0 0 0 1px rgba(255, 255, 255, 0.8),
        inset 0 -2px 20px rgba(209, 166, 98, 0.1);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.glass-card-premium:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 20px 60px rgba(15, 44, 89, 0.2),
        0 8px 16px rgba(15, 44, 89, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 1),
        inset 0 -2px 30px rgba(209, 166, 98, 0.2);
}

/* ============================================
   37. ANIMATED GRADIENT BACKGROUNDS
   ============================================ */
.gradient-bg-animated {
    background: linear-gradient(-45deg,
            #0f2c59,
            #1a4b8c,
            #d1a662,
            #0f2c59);
    background-size: 400% 400%;
    animation: gradientFlow 15s ease infinite;
}

@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* ============================================
   38. MODERN STATISTICS CARDS
   ============================================ */
.stat-card-modern {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 2rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stat-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #d1a662, #0f2c59);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.stat-card-modern:hover::before {
    transform: scaleX(1);
}

.stat-card-modern:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(15, 44, 89, 0.15);
}

/* ============================================
   39. PREMIUM BUTTON STYLES
   ============================================ */
.btn-premium {
    position: relative;
    padding: 1rem 2.5rem;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: white;
    background: linear-gradient(135deg, #d1a662 0%, #b8935a 100%);
    border: none;
    border-radius: 50px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow:
        0 4px 15px rgba(209, 166, 98, 0.3),
        0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transition: left 0.6s;
}

.btn-premium:hover::before {
    left: 100%;
}

.btn-premium:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow:
        0 8px 25px rgba(209, 166, 98, 0.4),
        0 4px 10px rgba(0, 0, 0, 0.15);
}

.btn-premium:active {
    transform: translateY(0) scale(1);
}

/* ============================================
   40. FLOATING LABELS FOR FORMS
   ============================================ */
.form-group-floating {
    position: relative;
    margin-bottom: 2rem;
}

.form-group-floating input,
.form-group-floating textarea {
    width: 100%;
    padding: 1.25rem 1rem 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s;
    background: white;
}

.form-group-floating label {
    position: absolute;
    left: 1rem;
    top: 1.25rem;
    font-size: 1rem;
    color: #9ca3af;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.form-group-floating input:focus,
.form-group-floating textarea:focus {
    border-color: #d1a662;
    box-shadow: 0 0 0 4px rgba(209, 166, 98, 0.1);
    outline: none;
}

.form-group-floating input:focus+label,
.form-group-floating input:not(:placeholder-shown)+label,
.form-group-floating textarea:focus+label,
.form-group-floating textarea:not(:placeholder-shown)+label {
    top: 0.5rem;
    font-size: 0.75rem;
    color: #d1a662;
    font-weight: 600;
}

/* ============================================
   41. TESTIMONIAL CARD PREMIUM
   ============================================ */
.testimonial-premium {
    position: relative;
    background: white;
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(15, 44, 89, 0.08);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.testimonial-premium::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 30px;
    font-size: 120px;
    font-family: Georgia, serif;
    color: rgba(209, 166, 98, 0.1);
    line-height: 1;
    z-index: 0;
}

.testimonial-premium:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(15, 44, 89, 0.15);
}

/* ============================================
   42. SECTION DIVIDERS
   ============================================ */
.section-divider {
    position: relative;
    height: 2px;
    background: linear-gradient(90deg,
            transparent 0%,
            #d1a662 50%,
            transparent 100%);
    margin: 4rem 0;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: white;
    border: 2px solid #d1a662;
    border-radius: 50%;
    box-shadow: 0 0 0 8px white;
}

.section-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: #d1a662;
    border-radius: 50%;
}