/* OptiStyle Landing Page - Optimized CSS */

/* Security & Protection */
body {
    user-select: none;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

input, textarea {
    user-select: text;
}

body::after {
    content: '© OptiStyle';
    position: fixed;
    bottom: 10px;
    right: 10px;
    font-size: 10px;
    color: rgba(0, 0, 0, 0.1);
    pointer-events: none;
    z-index: 9999;
}

html {
    scroll-behavior: smooth;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse-animation {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes floatingCircle {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Animation Classes */
.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-up-delay {
    animation: fadeInUp 1s ease-out 0.3s forwards;
    opacity: 0;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease-out forwards;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease-out forwards;
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out forwards;
}

.slide-in-left-delay {
    animation: slideInLeft 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.slide-in-left-delay-2 {
    animation: slideInLeft 1s ease-out 0.4s forwards;
    opacity: 0;
}

.slide-in-left-delay-3 {
    animation: slideInLeft 1.2s ease-out 0.6s forwards;
    opacity: 0;
}

.slide-in-left-delay-4 {
    animation: slideInLeft 1.4s ease-out 0.8s forwards;
    opacity: 0;
}

.pulse-animation {
    animation: pulse-animation 2s ease-in-out infinite;
}

.floating-circle {
    animation: floatingCircle 20s ease-in-out infinite;
}

.floating-circle-delay {
    animation: floatingCircle 25s ease-in-out infinite;
    animation-delay: 2s;
}

/* Service Cards Stagger Animation */
.service-card:nth-child(1) {
    animation: fadeInUp 0.8s ease-out 0.1s forwards;
    opacity: 0;
}

.service-card:nth-child(2) {
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
    opacity: 0;
}

.service-card:nth-child(3) {
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
    opacity: 0;
}

.service-card:nth-child(4) {
    animation: fadeInUp 0.8s ease-out 0.7s forwards;
    opacity: 0;
}

/* Counter */
.counter {
    font-variant-numeric: tabular-nums;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #64748b;
    border-radius: 6px;
}

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

/* Mobile Menu Animation */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .fade-in-up, .fade-in-left, .fade-in-right {
        animation-duration: 0.6s;
    }
    
    .service-card {
        animation-delay: 0s !important;
    }
}

/* Text Selection */
::selection {
    background: #334155;
    color: white;
}
