/* ============================================
   FATIC WEBSITE - PREMIUM MODERN STYLES
   Enhanced with Advanced Animations & Effects
   ============================================ */

html {
    scroll-behavior: smooth;
    scrollbar-gutter: stable;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

:root {
    --animate-duration: 0.8s;
    --animate-delay: 0.2s;
    --primary: #0f2c59;
    --secondary: #d1a662;
    --accent: #f8f9fa;
    --dark: #1a1a1a;
}

/* ============================================
   1. CUSTOM CURSOR
   ============================================ */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--secondary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: all 0.15s ease;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

.custom-cursor.hover {
    width: 40px;
    height: 40px;
    background: rgba(209, 166, 98, 0.2);
    border-width: 3px;
}

/* ============================================
   2. PARTICLES BACKGROUND
   ============================================ */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

/* ============================================
   3. ADVANCED ANIMATIONS
   ============================================ */

/* Floating Animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

/* Pulse Glow */
@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(209, 166, 98, 0.4);
    }

    50% {
        box-shadow: 0 0 40px rgba(209, 166, 98, 0.8);
    }
}

.animate-pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

/* Gradient Shift */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.animate-gradient {
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
}

/* Shimmer Effect */
@keyframes shimmer {
    0% {
        transform: translateX(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) rotate(45deg);
    }
}

.animate-shimmer {
    animation: shimmer 2.5s infinite linear;
}

/* Zoom Effect */
@keyframes zoomEffect {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.05);
    }
}

.animation-zoom-effect {
    animation: zoomEffect 20s linear infinite alternate;
    image-rendering: -webkit-optimize-contrast;
    will-change: transform;
}

/* Border Pulse */
@keyframes borderPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(209, 166, 98, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(209, 166, 98, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(209, 166, 98, 0);
    }
}

.animate-border-pulse {
    animation: borderPulse 2s infinite;
}

/* Rotate 3D */
@keyframes rotate3d {
    0% {
        transform: rotateY(0deg);
    }

    100% {
        transform: rotateY(360deg);
    }
}

.animate-rotate-3d {
    animation: rotate3d 20s linear infinite;
    transform-style: preserve-3d;
}

/* Text Reveal */
@keyframes textReveal {
    0% {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.animate-text-reveal {
    animation: textReveal 1s cubic-bezier(0.215, 0.610, 0.355, 1.000) forwards;
}

/* Slide In */
@keyframes slideInLeft {
    0% {
        transform: translateX(-100px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    0% {
        transform: translateX(100px);
        opacity: 0;
    }

    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.animate-slide-in-right {
    animation: slideInRight 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Scale In */
@keyframes scaleIn {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.animate-scale-in {
    animation: scaleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* ============================================
   4. 3D CARD EFFECTS
   ============================================ */
.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.3s ease;
    will-change: transform;
}

.card-3d:hover {
    transform: translateZ(20px) rotateX(5deg) rotateY(5deg);
}

.card-3d-layer {
    transform: translateZ(30px);
}

/* ============================================
   5. GLASSMORPHISM ENHANCED
   ============================================ */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 8px 32px 0 rgba(31, 38, 135, 0.15),
        inset 0 0 20px rgba(255, 255, 255, 0.1);
}

.glass-effect-dark {
    background: rgba(15, 44, 89, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ============================================
   6. MAGNETIC BUTTONS
   ============================================ */
.btn-magnetic {
    position: relative;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
}

.btn-magnetic::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, var(--secondary), var(--primary));
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
    filter: blur(10px);
}

.btn-magnetic:hover::before {
    opacity: 0.7;
}

/* ============================================
   7. GRADIENT TEXT
   ============================================ */
.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary), #1a4b8c);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 5s ease infinite;
}

/* ============================================
   8. NEON GLOW EFFECTS
   ============================================ */
.neon-glow {
    text-shadow:
        0 0 10px rgba(209, 166, 98, 0.8),
        0 0 20px rgba(209, 166, 98, 0.6),
        0 0 30px rgba(209, 166, 98, 0.4);
}

.neon-border {
    box-shadow:
        0 0 10px rgba(209, 166, 98, 0.6),
        0 0 20px rgba(209, 166, 98, 0.4),
        inset 0 0 10px rgba(209, 166, 98, 0.2);
}

/* ============================================
   9. RIPPLE EFFECT
   ============================================ */
.ripple {
    position: relative;
    overflow: hidden;
}

.ripple::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.ripple:active::after {
    animation: rippleEffect 0.6s ease-out;
}

@keyframes rippleEffect {
    to {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

/* ============================================
   10. SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: opacity, transform;
    backface-visibility: hidden;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-fade {
    opacity: 0;
    transition: opacity 1.2s ease;
}

.reveal-fade.active {
    opacity: 1;
}

/* ============================================
   11. LOADING ANIMATIONS
   ============================================ */
.loader {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(209, 166, 98, 0.2);
    border-top-color: var(--secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ============================================
   12. PARALLAX UTILITIES
   ============================================ */
.parallax-slow {
    transform: translateY(var(--parallax-offset, 0));
    transition: transform 0.1s linear;
}

/* ============================================
   13. ENHANCED HOVER EFFECTS
   ============================================ */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(209, 166, 98, 0.6);
}

.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* ============================================
   14. SCROLL PROGRESS BAR
   ============================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    z-index: 9999;
    transform-origin: left;
    transition: transform 0.1s linear;
}

/* ============================================
   15. CELEBRATION & SPECIAL EFFECTS
   ============================================ */
.celebration-banner {
    background: linear-gradient(90deg, #ff0000 0%, #ffcc00 100%);
    color: white;
    text-align: center;
    padding: 8px;
    font-weight: bold;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
}

#confetti-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

/* ============================================
   16. LOGO & BRANDING
   ============================================ */
.logo-container {
    background-color: white;
    padding: 8px 16px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.logo-container:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* ============================================
   17. PROJECT CARDS
   ============================================ */
.future-project-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    height: 400px;
}

.future-project-card::before {
    content: '';
    position: absolute;
    inset: 0;

    .neon-border {
        box-shadow:
            0 0 10px rgba(209, 166, 98, 0.6),
            0 0 20px rgba(209, 166, 98, 0.4),
            inset 0 0 10px rgba(209, 166, 98, 0.2);
    }

    /* ============================================
   9. RIPPLE EFFECT
   ============================================ */
    .ripple {
        position: relative;
        overflow: hidden;
    }

    .ripple::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0);
        background: radial-gradient(circle, rgba(255, 255, 255, 0.5) 0%, transparent 70%);
        border-radius: 50%;
        pointer-events: none;
    }

    .ripple:active::after {
        animation: rippleEffect 0.6s ease-out;
    }

    @keyframes rippleEffect {
        to {
            transform: translate(-50%, -50%) scale(2);
            opacity: 0;
        }
    }

    /* ============================================
   10. SCROLL REVEAL ANIMATIONS
   ============================================ */
    .reveal {
        opacity: 0;
        transform: translateY(60px);
        transition: all 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        will-change: opacity, transform;
        backface-visibility: hidden;
    }

    .reveal.active {
        opacity: 1;
        transform: translateY(0);
    }

    .reveal-fade {
        opacity: 0;
        transition: opacity 1.2s ease;
    }

    .reveal-fade.active {
        opacity: 1;
    }

    /* ============================================
   11. LOADING ANIMATIONS
   ============================================ */
    .loader {
        width: 50px;
        height: 50px;
        border: 5px solid rgba(209, 166, 98, 0.2);
        border-top-color: var(--secondary);
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }

    @keyframes spin {
        to {
            transform: rotate(360deg);
        }
    }

    .skeleton {
        background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
        background-size: 200% 100%;
        animation: skeleton-loading 1.5s ease-in-out infinite;
    }

    @keyframes skeleton-loading {
        0% {
            background-position: 200% 0;
        }

        100% {
            background-position: -200% 0;
        }
    }

    /* ============================================
   12. PARALLAX UTILITIES
   ============================================ */
    .parallax-slow {
        transform: translateY(var(--parallax-offset, 0));
        transition: transform 0.1s linear;
    }

    /* ============================================
   13. ENHANCED HOVER EFFECTS
   ============================================ */
    .hover-lift {
        transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .hover-lift:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    }

    .hover-glow:hover {
        box-shadow: 0 0 30px rgba(209, 166, 98, 0.6);
    }

    .hover-scale {
        transition: transform 0.3s ease;
    }

    .hover-scale:hover {
        transform: scale(1.05);
    }

    /* ============================================
   14. SCROLL PROGRESS BAR
   ============================================ */
    .scroll-progress {
        position: fixed;
        top: 0;
        left: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--secondary), var(--primary));
        z-index: 9999;
        transform-origin: left;
        transition: transform 0.1s linear;
    }

    /* ============================================
   15. CELEBRATION & SPECIAL EFFECTS
   ============================================ */
    .celebration-banner {
        background: linear-gradient(90deg, #ff0000 0%, #ffcc00 100%);
        color: white;
        text-align: center;
        padding: 8px;
        font-weight: bold;
        font-size: 0.9rem;
        position: relative;
        overflow: hidden;
    }

    #confetti-canvas {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: 9999;
    }

    /* ============================================
   16. LOGO & BRANDING
   ============================================ */
    .logo-container {
        background-color: white;
        padding: 8px 16px;
        border-radius: 12px;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        display: flex;
        align-items: center;
        gap: 12px;
        transition: all 0.3s ease;
    }

    .logo-container:hover {
        transform: scale(1.05);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    }

    /* ============================================
   17. PROJECT CARDS
   ============================================ */
    .future-project-card {
        position: relative;
        overflow: hidden;
        border-radius: 20px;
        height: 400px;
    }

    .future-project-card::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(to bottom, transparent 0%, rgba(15, 44, 89, 0.9) 100%);
        z-index: 10;
        transition: opacity 0.3s;
    }

    .future-project-card:hover::before {
        opacity: 0.7;
    }

    .future-project-card img {
        transition: transform 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .future-project-card:hover img {
        transform: scale(1.15) rotate(2deg);
    }

    /* ============================================
   18. SLICK SLIDER CUSTOMIZATION
   ============================================ */
    .slick-prev,
    .slick-next {
        z-index: 50;
        width: 50px;
        height: 50px;
        background: white !important;
        border-radius: 50%;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .slick-prev {
        left: -25px;
    }

    .slick-next {
        right: -25px;
    }

    .slick-prev:before,
    .slick-next:before {
        content: '' !important;
        display: none;
    }

    .slick-prev i,
    .slick-next i {
        color: var(--primary);
        font-size: 20px;
        line-height: 1;
    }

    .slick-prev:hover,
    .slick-next:hover {
        background: var(--secondary) !important;
        box-shadow: 0 8px 30px rgba(209, 166, 98, 0.5);
    }

    .slick-prev:hover i,
    .slick-next:hover i {
        color: white;
    }

    .slick-dots {
        bottom: -40px;
    }

    .slick-dots li button:before {
        font-size: 12px;
        color: #e5e5e5;
        opacity: 1;
        transition: all 0.3s;
    }

    .slick-dots li.slick-active button:before {
        color: var(--secondary);
        font-size: 16px;
    }

    .testimonial-slider .slick-list {
        padding: 20px;
    }

    .slick-track {
        display: flex !important;
    }

    .slick-slide {
        height: auto !important;
        display: flex !important;
        flex-direction: column;
    }

    /* ============================================
   19. UTILITY CLASSES
   ============================================ */
    .animate-soft {
        animation-duration: 1s !important;
        animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    }

    .smooth-transition {
        transition: all 0.3s ease-in-out;
    }

    .delay-100 {
        animation-delay: 0.1s;
    }

    .delay-200 {
        animation-delay: 0.2s;
    }

    .delay-300 {
        animation-delay: 0.3s;
    }

    .delay-400 {
        animation-delay: 0.4s;
    }

    .delay-500 {
        animation-delay: 0.5s;
    }

    .delay-600 {
        animation-delay: 0.6s;
    }

    .delay-700 {
        animation-delay: 0.7s;
    }

    .delay-800 {
        animation-delay: 0.8s;
    }

    /* ============================================
   20. PERFORMANCE OPTIMIZATIONS
   ============================================ */
    .gpu-accelerated,
    .btn-magnetic,
    .card-3d,
    .tilt-card,
    .magnetic-element,
    .reveal {
        transform: translateZ(0);
        will-change: transform, opacity;
        backface-visibility: hidden;
        perspective: 1000px;
    }

    /* ============================================
   21. RESPONSIVE OPTIMIZATIONS (1920 -> 320)
   ============================================ */

    /* Large Tablets & Medium Screens */
    @media (max-width: 1200px) {
        .container {
            max-width: 100%;
            padding-left: 2rem;
            padding-right: 2rem;
        }
    }

    /* Tablets (iPad/Medium Screens) */
    @media (max-width: 1024px) {

        h1.text-6xl,
        h1.text-7xl {
            font-size: 3.5rem !important;
        }

        .hero-slider .container {
            padding-top: 40px !important;
        }

        /* Arrow visibility on touch */
        .slick-prev {
            left: 5px !important;
            z-index: 100;
        }

        .slick-next {
            right: 5px !important;
            z-index: 100;
        }

        .slick-prev,
        .slick-next {
            width: 40px !important;
            height: 40px !important;
            background: rgba(255, 255, 255, 0.9) !important;
        }
    }

    /* Phones & Small Tablets */
    @media (max-width: 768px) {
        #navbar-wrapper {
            top: 0 !important;
        }

        #navbar {
            border-radius: 0 !important;
            height: 70px !important;
        }

        main {
            padding-top: 70px !important;
        }

        .hero-slider .min-h-screen {
            min-height: 80vh !important;
            padding-top: 60px !important;
        }

        .text-6xl,
        .text-7xl {
            font-size: 2.4rem !important;
        }

        .text-4xl,
        .text-5xl {
            font-size: 1.8rem !important;
        }

        .py-24 {
            padding-top: 3rem !important;
            padding-bottom: 3rem !important;
        }

        .grid-cols-2,
        .grid-cols-3,
        .grid-cols-4 {
            display: grid !important;
            grid-template-columns: 1fr !important;
            gap: 1.5rem !important;
        }
    }

    /* Ultra-small phones (iPhone SE, etc.) */
    @media (max-width: 480px) {
        .container {
            padding-left: 1.25rem;
            padding-right: 1.25rem;
        }

        .text-6xl,
        .text-7xl {
            font-size: 2rem !important;
        }

        .text-4xl,
        .text-5xl {
            font-size: 1.6rem !important;
        }

        /* Stack hero buttons */
        .hero-slider .flex-row {
            flex-direction: column !important;
            width: 100%;
            gap: 0.75rem !important;
        }

        .hero-slider .flex-row a,
        .hero-slider .flex-row button {
            width: 100% !important;
            text-align: center;
            margin: 0 !important;
        }

        .glass-card-premium {
            padding: 1.5rem !important;
        }

        /* Hide decorative elements on mobile */
        .floating-shape,
        .mesh-gradient {
            display: none !important;
        }

        /* Slider arrow adjustments for mobile */
        .slick-prev,
        .slick-next {
            width: 35px !important;
            height: 35px !important;
            background: rgba(255, 255, 255, 0.95) !important;
        }

        .slick-prev {
            left: 5px !important;
        }

        .slick-next {
            right: 5px !important;
        }
    }

    /* Global Fix to prevent overflow */
    body,
    html {
        overflow-x: hidden;
        width: 100%;
        position: relative;
        max-width: 100vw;
    }