/* ============================================
   EMA KONUT - Under Construction Page Styles
   ============================================ */

:root {
    --ema-blue: #004f72;
    --ema-red: #b50d3e;
    --ema-dark: #0a1628;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--ema-red);
    color: #fff;
}

/* ============================================
   ANIMATIONS
   ============================================ */

/* Fade In Left */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Fade In Right */
@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Fade In Up */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade In Down */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scale In */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Background Shift */
@keyframes bgShift {
    0%, 100% {
        transform: scale(1.05) translate(0, 0);
    }
    25% {
        transform: scale(1.08) translate(-1%, -1%);
    }
    50% {
        transform: scale(1.05) translate(-0.5%, 0.5%);
    }
    75% {
        transform: scale(1.08) translate(0.5%, -0.5%);
    }
}

/* Gradient X (text gradient animation) */
@keyframes gradientX {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Slow Spin */
@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Reverse Spin */
@keyframes reverseSpin {
    from { transform: rotate(360deg); }
    to { transform: rotate(0deg); }
}

/* Pulse Glow */
@keyframes pulseGlow {
    0%, 100% {
        filter: drop-shadow(0 0 6px rgba(181, 13, 62, 0.4));
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(181, 13, 62, 0.8));
    }
}

/* Float Animations */
@keyframes floatSlow {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
        opacity: 1;
    }
}

@keyframes floatMedium {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.5;
    }
    50% {
        transform: translateY(-15px) rotate(-3deg);
        opacity: 0.8;
    }
}

/* Particle Float */
@keyframes particleFloat {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-10vh) scale(1);
        opacity: 0;
    }
}

/* Shimmer */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* ============================================
   ANIMATION CLASSES
   ============================================ */

.animate-fadeInLeft {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.animate-fadeInRight {
    animation: fadeInRight 0.8s ease-out forwards;
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fadeInDown {
    animation: fadeInDown 0.8s ease-out forwards;
}

.animate-scaleIn {
    animation: scaleIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.animate-bgShift {
    animation: bgShift 30s ease-in-out infinite;
}

.animate-gradient-x {
    background-size: 200% 200%;
    animation: gradientX 4s ease infinite;
}

.animate-spin-slow {
    animation: spinSlow 12s linear infinite;
}

.animate-reverse-spin {
    animation: reverseSpin 8s linear infinite;
}

.animate-pulse-glow {
    animation: pulseGlow 2.5s ease-in-out infinite;
}

.animate-float-slow {
    animation: floatSlow 6s ease-in-out infinite;
}

.animate-float-medium {
    animation: floatMedium 4s ease-in-out infinite;
}

/* ============================================
   PARTICLE STYLES
   ============================================ */

.particle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: particleFloat linear infinite;
}

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--ema-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--ema-red);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #d4104a;
}

/* ============================================
   HOVER EFFECTS
   ============================================ */

.glass-card {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

/* Hover line animation for nav */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--ema-red);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 640px) {
    .floating-block {
        display: none;
    }
}

/* Print */
@media print {
    .floating-block,
    #particles {
        display: none !important;
    }
}
