/* ===========================================
   GLASSMORPHISM DESIGN SYSTEM - Q&F Consulting
   Refonte 2025 - Tailwind + Glassmorphism
   =========================================== */

:root {
    --qf-primary: #155f7c;
    --qf-primary-dark: #0d4a61;
    --qf-primary-light: #1a7a9e;
    --qf-gold: #b1a573;
    --qf-gold-dark: #9a905f;
    --qf-gold-light: #c4b886;
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-bg-light: rgba(255, 255, 255, 0.25);
    --glass-bg-dark: rgba(21, 95, 124, 0.85);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

/* ===== GLASS CARDS ===== */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    box-shadow: var(--glass-shadow);
}

.glass-light {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.glass-dark {
    background: var(--glass-bg-dark);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
}

/* ===== NAVBAR GLASSMORPHISM ===== */
.navbar-glass {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(21, 95, 124, 0.08);
    transition: all 0.3s ease;
}

.navbar-glass.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* ===== HERO GLASS CARD ===== */
.hero-glass-card {
    background: rgba(21, 95, 124, 0.8);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* ===== SERVICE CARDS ===== */
.service-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px -12px rgba(21, 95, 124, 0.35);
}

.service-card img {
    transition: transform 0.5s ease;
}

.service-card:hover img {
    transform: scale(1.1);
}

.service-card-overlay {
    background: linear-gradient(
        to top,
        rgba(21, 95, 124, 0.95) 0%,
        rgba(21, 95, 124, 0.7) 40%,
        rgba(21, 95, 124, 0.3) 70%,
        transparent 100%
    );
}

/* ===== ICON GLASS ===== */
.icon-glass {
    background: rgba(21, 95, 124, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(21, 95, 124, 0.1);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.icon-glass:hover {
    background: rgba(21, 95, 124, 0.15);
    transform: scale(1.05);
}

/* ===== FOOTER GLASSMORPHISM ===== */
.footer-glass {
    background: linear-gradient(
        135deg,
        rgba(21, 95, 124, 0.97) 0%,
        rgba(13, 74, 97, 0.99) 100%
    );
}

/* ===== TAG PILLS ===== */
.tag-pill {
    background: var(--qf-gold);
    color: white;
    padding: 8px 16px;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-block;
}

.tag-pill:hover {
    background: var(--qf-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(21, 95, 124, 0.3);
}

/* ===== ANIMATIONS SCROLL ===== */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger delays */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-15px);
    }
    60% {
        transform: translateY(-8px);
    }
}

/* ===== HAMBURGER MENU ===== */
.hamburger {
    width: 28px;
    height: 20px;
    position: relative;
    cursor: pointer;
    z-index: 60;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--qf-primary);
    border-radius: 2px;
    opacity: 1;
    left: 0;
    transition: all 0.3s ease;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 9px; }
.hamburger span:nth-child(3) { bottom: 0; }

.hamburger.active span:nth-child(1) {
    top: 9px;
    transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

.hamburger.active span:nth-child(3) {
    bottom: 9px;
    transform: rotate(-45deg);
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.active {
    transform: translateX(0);
}

.menu-overlay {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.no-scroll {
    overflow: hidden;
}

/* ===== DROPDOWN MODERN ===== */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    min-width: 200px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    padding: 8px 0;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 20px;
    color: #333;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(21, 95, 124, 0.05);
    color: var(--qf-primary);
    padding-left: 24px;
}

/* ===== REFERENCE LOGOS ===== */
.reference-logo {
    filter: grayscale(100%);
    opacity: 0.5;
    transition: all 0.4s ease;
}

.reference-logo:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* ===== ACCORDION MODERN ===== */
.accordion-item {
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(21, 95, 124, 0.1);
}

.accordion-header {
    background: linear-gradient(135deg, var(--qf-primary) 0%, var(--qf-primary-dark) 100%);
    color: white !important;
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
}

/* Force white text on all children */
.accordion-header * {
    color: white !important;
}

.accordion-header:hover {
    background: linear-gradient(135deg, var(--qf-primary-dark) 0%, #0a3d50 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(21, 95, 124, 0.3);
}

.accordion-icon {
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    transition: transform 0.3s ease;
    color: var(--qf-gold) !important;
    flex-shrink: 0;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.3s ease;
    background: linear-gradient(180deg, #f8fafc 0%, white 100%);
    border-top: 3px solid var(--qf-gold);
}

.accordion-content > div {
    padding: 24px;
    line-height: 1.7;
}

.accordion-content p {
    color: #4b5563;
    font-size: 15px;
    margin: 0;
}

.accordion-content strong {
    color: var(--qf-primary);
    font-weight: 600;
}

.accordion-item.active .accordion-content {
    max-height: 600px;
}

/* ===== FORM INPUTS MODERN ===== */
.input-modern {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    transition: all 0.3s ease;
    background: white;
}

.input-modern:focus {
    outline: none;
    border-color: var(--qf-primary);
    box-shadow: 0 0 0 4px rgba(21, 95, 124, 0.1);
}

.input-modern:hover:not(:focus) {
    border-color: var(--qf-gold);
}

.input-modern.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

textarea.input-modern {
    resize: vertical;
    min-height: 150px;
}

/* ===== BUTTONS MODERN ===== */
.btn-modern {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--qf-primary) 0%, var(--qf-primary-dark) 100%);
    color: white;
    border-color: transparent;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(21, 95, 124, 0.4);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--qf-gold);
    color: var(--qf-gold);
}

.btn-secondary:hover {
    background: var(--qf-gold);
    color: white;
    transform: translateY(-3px);
}

.btn-white {
    background: white;
    color: var(--qf-primary);
    border-color: white;
}

.btn-white:hover {
    background: transparent;
    color: white;
    transform: translateY(-3px);
}

/* ===== PRELOADER ===== */
.preloader {
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* ===== CUSTOM CHECKBOX ===== */
input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--qf-primary);
    cursor: pointer;
}

/* ===== SECTION DIVIDER ===== */
.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--qf-gold), var(--qf-gold-light));
    border-radius: 2px;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    .fade-in,
    .fade-in-left,
    .fade-in-right,
    .scale-in {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .scroll-indicator {
        animation: none;
    }

    .service-card,
    .service-card img,
    .btn-modern,
    .tag-pill {
        transition: none;
    }

    .preloader {
        display: none !important;
    }
}

/* ===== FLOATING CONTACT BUTTON ===== */
.floating-contact {
    position: fixed;
    bottom: 100px;
    right: 24px;
    z-index: 40;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.floating-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: none;
    text-decoration: none;
}

.floating-btn:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.floating-btn.whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
}

.floating-btn.contact {
    background: linear-gradient(135deg, var(--qf-gold) 0%, var(--qf-gold-dark) 100%);
    color: white;
}

.floating-btn.phone {
    background: linear-gradient(135deg, var(--qf-primary) 0%, var(--qf-primary-dark) 100%);
    color: white;
}

/* Pulse animation for floating buttons */
.floating-btn::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    opacity: 0;
    animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: var(--qf-primary);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 39;
    box-shadow: 0 4px 15px rgba(21, 95, 124, 0.3);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--qf-primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(21, 95, 124, 0.4);
}

/* ===== ANIMATED GRADIENT BACKGROUND ===== */
.animated-gradient {
    background: linear-gradient(-45deg,
        var(--qf-primary),
        var(--qf-primary-dark),
        #1a5a6e,
        var(--qf-primary-light)
    );
    background-size: 400% 400%;
    animation: gradient-shift 15s ease infinite;
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== FLOATING BLOBS ===== */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.5;
    animation: blob-float 20s ease-in-out infinite;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--qf-gold);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.3);
    bottom: -150px;
    right: -150px;
    animation-delay: -5s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: var(--qf-primary-light);
    top: 50%;
    left: 50%;
    animation-delay: -10s;
}

@keyframes blob-float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -50px) scale(1.1);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    75% {
        transform: translate(40px, 30px) scale(1.05);
    }
}

/* ===== TEXT GRADIENT ===== */
.text-gradient {
    background: linear-gradient(135deg, var(--qf-gold) 0%, var(--qf-gold-light) 50%, var(--qf-gold) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: text-shimmer 3s linear infinite;
}

@keyframes text-shimmer {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Animated gradient for hero title */
.text-gradient-animated {
    background: linear-gradient(
        90deg,
        #ffffff 0%,
        var(--qf-gold) 25%,
        var(--qf-gold-light) 50%,
        var(--qf-gold) 75%,
        #ffffff 100%
    );
    background-size: 400% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: hero-text-shimmer 8s ease-in-out infinite;
    text-shadow: 0 0 80px rgba(177, 165, 115, 0.3);
}

@keyframes hero-text-shimmer {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* ===== GLOW EFFECTS ===== */
.glow-gold {
    box-shadow: 0 0 30px rgba(177, 165, 115, 0.4);
}

.glow-primary {
    box-shadow: 0 0 30px rgba(21, 95, 124, 0.4);
}

.hover-glow:hover {
    box-shadow: 0 0 40px rgba(177, 165, 115, 0.5);
}

/* ===== CARD TILT EFFECT ===== */
.tilt-card {
    transform-style: preserve-3d;
    perspective: 1000px;
}

.tilt-card:hover {
    transform: rotateX(5deg) rotateY(5deg) translateY(-10px);
}

/* ===== MORPHING BORDER ===== */
.morph-border {
    position: relative;
}

.morph-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(90deg,
        var(--qf-gold),
        var(--qf-primary),
        var(--qf-gold-light),
        var(--qf-primary-light),
        var(--qf-gold)
    );
    background-size: 400% 100%;
    border-radius: inherit;
    z-index: -1;
    animation: border-morph 4s linear infinite;
}

@keyframes border-morph {
    0% { background-position: 0% 50%; }
    100% { background-position: 400% 50%; }
}

/* Subtle morphing border for hero card */
.morphing-border {
    position: relative;
}

.morphing-border::before {
    content: '';
    position: absolute;
    inset: 0;
    padding: 2px;
    background: linear-gradient(
        135deg,
        rgba(177, 165, 115, 0.5) 0%,
        rgba(255, 255, 255, 0.2) 25%,
        rgba(177, 165, 115, 0.3) 50%,
        rgba(255, 255, 255, 0.2) 75%,
        rgba(177, 165, 115, 0.5) 100%
    );
    background-size: 300% 300%;
    border-radius: inherit;
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: morphing-border-shift 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes morphing-border-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* ===== COUNTER ANIMATION ===== */
.counter {
    font-variant-numeric: tabular-nums;
}

/* ===== TYPING EFFECT ===== */
.typing-text {
    overflow: hidden;
    border-right: 3px solid var(--qf-gold);
    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(--qf-gold); }
}

/* ===== RIPPLE EFFECT ===== */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, var(--qf-gold) 10%, transparent 10.01%);
    background-repeat: no-repeat;
    background-position: 50%;
    transform: scale(10, 10);
    opacity: 0;
    transition: transform 0.5s, opacity 1s;
}

.ripple:active::after {
    transform: scale(0, 0);
    opacity: 0.3;
    transition: 0s;
}

/* ===== HOVER UNDERLINE ===== */
.hover-underline {
    position: relative;
}

.hover-underline::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--qf-gold);
    transition: width 0.3s ease;
}

.hover-underline:hover::after {
    width: 100%;
}

/* ===== CARD SHINE EFFECT ===== */
.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::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;
}

.shine-effect:hover::before {
    left: 100%;
}

/* ===== PARALLAX LAYER ===== */
.parallax-layer {
    will-change: transform;
}

/* ===== ROTATING ICON ===== */
.rotate-hover:hover {
    animation: rotate-once 0.6s ease;
}

@keyframes rotate-once {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== STAGGER CHILDREN ANIMATION ===== */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    animation: stagger-fade-in 0.5s ease forwards;
}

.stagger-children > *:nth-child(1) { animation-delay: 0.1s; }
.stagger-children > *:nth-child(2) { animation-delay: 0.2s; }
.stagger-children > *:nth-child(3) { animation-delay: 0.3s; }
.stagger-children > *:nth-child(4) { animation-delay: 0.4s; }
.stagger-children > *:nth-child(5) { animation-delay: 0.5s; }
.stagger-children > *:nth-child(6) { animation-delay: 0.6s; }

@keyframes stagger-fade-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== MAGNETIC BUTTON ===== */
.magnetic-btn {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== TOOLTIP ===== */
.tooltip {
    position: relative;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    padding: 8px 16px;
    background: var(--qf-primary-dark);
    color: white;
    font-size: 13px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
}

.tooltip::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--qf-primary-dark);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.tooltip:hover::after,
.tooltip:hover::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ===== SKELETON LOADING ===== */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
}

@keyframes skeleton-loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ===== PRINT STYLES ===== */
@media print {
    .preloader,
    .navbar-glass,
    .hamburger,
    .mobile-menu,
    .menu-overlay,
    .scroll-indicator,
    .footer-glass,
    .floating-contact,
    .scroll-to-top {
        display: none !important;
    }

    .fade-in,
    .fade-in-left,
    .fade-in-right {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* ===== RESPONSIVE FLOATING BUTTONS ===== */
@media (max-width: 768px) {
    .floating-contact {
        bottom: 80px;
        right: 16px;
    }

    .floating-btn {
        width: 50px;
        height: 50px;
    }

    .scroll-to-top {
        right: 16px;
        bottom: 16px;
        width: 44px;
        height: 44px;
    }
}

/* ===========================================
   UNIQUE DESIGN ELEMENTS - Q&F Personality
   =========================================== */

/* ===== ORGANIC BLOB SHAPES ===== */
.organic-shape {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation: organic-morph 8s ease-in-out infinite;
}

@keyframes organic-morph {
    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% 30% / 70% 30% 50% 60%;
    }
}

/* ===== HAND-DRAWN UNDERLINE ===== */
.hand-underline {
    position: relative;
    display: inline-block;
}

.hand-underline::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 8px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 10'%3E%3Cpath d='M0 8 Q 25 2, 50 8 T 100 8' stroke='%23b1a573' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat;
    background-size: 100% 100%;
    opacity: 0.8;
}

/* ===== CREATIVE DIVIDERS ===== */
.divider-wave {
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60'%3E%3Cpath fill='%23f9fafb' d='M0,30 C360,60 720,0 1080,30 C1260,45 1350,45 1440,30 L1440,60 L0,60 Z'/%3E%3C/svg%3E") no-repeat bottom;
    background-size: cover;
}

.divider-slant {
    height: 80px;
    background: linear-gradient(to bottom right, transparent 49.5%, #f9fafb 50%);
}

.divider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 24px 0;
}

.divider-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--qf-gold);
    opacity: 0.6;
}

.divider-dots span:nth-child(2) {
    width: 8px;
    height: 8px;
    opacity: 0.8;
}

.divider-dots span:nth-child(3) {
    opacity: 1;
}

/* ===== STAGGERED CARDS ===== */
.card-stack {
    position: relative;
}

.card-stack::before,
.card-stack::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: inherit;
    z-index: -1;
    transition: transform 0.4s ease;
}

.card-stack::before {
    transform: rotate(-3deg) translateY(8px);
    opacity: 0.3;
}

.card-stack::after {
    transform: rotate(2deg) translateY(4px);
    opacity: 0.5;
}

.card-stack:hover::before {
    transform: rotate(-6deg) translateY(12px);
}

.card-stack:hover::after {
    transform: rotate(4deg) translateY(8px);
}

/* ===== MARQUEE SCROLL ===== */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-flex;
    animation: marquee 30s linear infinite;
}

.marquee-content:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===== NOISE TEXTURE OVERLAY ===== */
.noise-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.03;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ===== SPLIT TEXT REVEAL ===== */
.split-reveal {
    overflow: hidden;
}

.split-reveal span {
    display: inline-block;
    transform: translateY(100%);
    animation: split-up 0.6s ease forwards;
}

@keyframes split-up {
    to { transform: translateY(0); }
}

/* ===== CREATIVE BADGES ===== */
.badge-ribbon {
    position: relative;
    padding: 8px 24px 8px 16px;
    background: var(--qf-gold);
    color: white;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.badge-ribbon::after {
    content: '';
    position: absolute;
    right: -12px;
    top: 0;
    border: 16px solid var(--qf-gold);
    border-right-color: transparent;
}

.badge-corner {
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: 80px;
    overflow: hidden;
}

.badge-corner span {
    position: absolute;
    top: 16px;
    right: -24px;
    width: 120px;
    padding: 4px 0;
    background: var(--qf-gold);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transform: rotate(45deg);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* ===== ASYMMETRIC IMAGE FRAMES ===== */
.frame-creative {
    position: relative;
    padding: 20px;
}

.frame-creative::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 30%;
    bottom: 30%;
    border: 3px solid var(--qf-gold);
    border-right: none;
    border-bottom: none;
    opacity: 0.6;
}

.frame-creative::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    left: 30%;
    top: 30%;
    border: 3px solid var(--qf-primary);
    border-left: none;
    border-top: none;
    opacity: 0.6;
}

/* ===== FLOATING LABEL INPUT ===== */
.input-floating {
    position: relative;
}

.input-floating input,
.input-floating textarea {
    width: 100%;
    padding: 24px 16px 8px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: white;
    transition: all 0.3s ease;
}

.input-floating label {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: #9ca3af;
    transition: all 0.3s ease;
    pointer-events: none;
}

.input-floating input:focus,
.input-floating textarea:focus {
    border-color: var(--qf-primary);
    outline: none;
}

.input-floating input:focus + label,
.input-floating input:not(:placeholder-shown) + label,
.input-floating textarea:focus + label,
.input-floating textarea:not(:placeholder-shown) + label {
    top: 12px;
    font-size: 0.75rem;
    color: var(--qf-primary);
}

/* ===== CREATIVE NUMBER DISPLAY ===== */
.number-highlight {
    position: relative;
    display: inline-block;
}

.number-highlight::before {
    content: '';
    position: absolute;
    bottom: 10%;
    left: -5%;
    right: -5%;
    height: 40%;
    background: var(--qf-gold);
    opacity: 0.2;
    transform: skewX(-5deg);
    z-index: -1;
}

/* ===== STEPPED PROGRESS ===== */
.steps-vertical {
    position: relative;
    padding-left: 40px;
}

.steps-vertical::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--qf-gold), var(--qf-primary));
}

.step-item {
    position: relative;
    padding-bottom: 32px;
}

.step-item::before {
    content: attr(data-step);
    position: absolute;
    left: -40px;
    top: 0;
    width: 32px;
    height: 32px;
    background: white;
    border: 3px solid var(--qf-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--qf-primary);
}

/* ===== QUOTE BLOCK ===== */
.quote-creative {
    position: relative;
    padding: 32px 32px 32px 48px;
    background: linear-gradient(135deg, rgba(21, 95, 124, 0.03), rgba(177, 165, 115, 0.05));
    border-radius: 0 24px 24px 0;
    border-left: 4px solid var(--qf-gold);
}

.quote-creative::before {
    content: '"';
    position: absolute;
    top: 16px;
    left: 16px;
    font-size: 4rem;
    font-family: Georgia, serif;
    color: var(--qf-gold);
    opacity: 0.3;
    line-height: 1;
}

/* ===== HOVER LIFT WITH SHADOW ===== */
.hover-lift {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow:
        0 20px 40px -15px rgba(21, 95, 124, 0.2),
        0 0 0 1px rgba(21, 95, 124, 0.05);
}

/* ===== ICON CONTAINERS ===== */
.icon-box-gradient {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--qf-primary), var(--qf-primary-light));
    border-radius: 16px;
    color: white;
    position: relative;
    overflow: hidden;
}

.icon-box-gradient::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 40%,
        rgba(255,255,255,0.1) 50%,
        transparent 60%
    );
    animation: icon-shine 3s ease-in-out infinite;
}

@keyframes icon-shine {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.icon-box-outline {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--qf-gold);
    border-radius: 16px;
    color: var(--qf-primary);
    position: relative;
}

.icon-box-outline::after {
    content: '';
    position: absolute;
    inset: 4px;
    border: 1px dashed var(--qf-gold);
    border-radius: 12px;
    opacity: 0.4;
}

/* ===== ANIMATED UNDERLINE LINK ===== */
.link-animated {
    position: relative;
    text-decoration: none;
}

.link-animated::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--qf-gold), var(--qf-primary));
    transition: width 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.link-animated:hover::after {
    width: 100%;
}

/* ===== SCATTERED DOTS DECORATION ===== */
.dots-pattern {
    position: relative;
}

.dots-pattern::before {
    content: '';
    position: absolute;
    width: 120px;
    height: 120px;
    background-image: radial-gradient(var(--qf-gold) 2px, transparent 2px);
    background-size: 16px 16px;
    opacity: 0.3;
    z-index: -1;
}

.dots-pattern.dots-top-right::before {
    top: -20px;
    right: -20px;
}

.dots-pattern.dots-bottom-left::before {
    bottom: -20px;
    left: -20px;
}

/* ===== GRADIENT BORDER CARD ===== */
.card-gradient-border {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, var(--qf-gold), var(--qf-primary), var(--qf-gold));
    background-size: 200% 200%;
    animation: gradient-rotate 4s ease infinite;
}

.card-gradient-border > * {
    background: white;
    border-radius: 18px;
}

@keyframes gradient-rotate {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ===== CREATIVE LIST STYLE ===== */
.list-creative li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
}

.list-creative li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, var(--qf-gold), var(--qf-primary));
    border-radius: 4px;
    transform: rotate(45deg);
}

.list-creative li::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 12px;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 1px;
    transform: rotate(45deg);
}

/* ===== TEXT STROKE EFFECT ===== */
.text-stroke {
    -webkit-text-stroke: 2px var(--qf-primary);
    color: transparent;
}

.text-stroke-gold {
    -webkit-text-stroke: 2px var(--qf-gold);
    color: transparent;
}

/* ===== CREATIVE SECTION HEADER ===== */
.section-header-creative {
    position: relative;
    display: inline-block;
}

.section-header-creative::before {
    content: '';
    position: absolute;
    top: -12px;
    left: -16px;
    width: 40px;
    height: 40px;
    border: 3px solid var(--qf-gold);
    border-radius: 50%;
    opacity: 0.3;
}

.section-header-creative::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: -24px;
    width: 60px;
    height: 3px;
    background: var(--qf-gold);
}
