/* ================================
   SYNERA - Custom Styles
   ================================ */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --background: 0 0% 100%;
    --foreground: 222.2 84% 4.9%;
    --card: 0 0% 100%;
    --card-foreground: 222.2 84% 4.9%;
    --popover: 0 0% 100%;
    --popover-foreground: 222.2 84% 4.9%;
    --primary: 221.2 83.2% 53.3%;
    --primary-foreground: 210 40% 98%;
    --secondary: 210 40% 96.1%;
    --secondary-foreground: 222.2 47.4% 11.2%;
    --muted: 210 40% 96.1%;
    --muted-foreground: 215.4 16.3% 46.9%;
    --accent: 210 40% 96.1%;
    --accent-foreground: 222.2 47.4% 11.2%;
    --destructive: 0 84.2% 60.2%;
    --destructive-foreground: 210 40% 98%;
    --border: 214.3 31.8% 91.4%;
    --input: 214.3 31.8% 91.4%;
    --ring: 221.2 83.2% 53.3%;
    --radius: 0.5rem;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ================================
   Animations
   ================================ */

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-20px) translateX(10px);
    }
    50% {
        transform: translateY(-10px) translateX(20px);
    }
    75% {
        transform: translateY(-30px) translateX(5px);
    }
}

@keyframes pulse-glow {
    0%, 100% {
        opacity: 0.2;
        transform: scale(1);
    }
    50% {
        opacity: 0.3;
        transform: scale(1.05);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInFromBottom {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes progressFill {
    from {
        width: 0%;
    }
}

@keyframes typing {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}

@keyframes iconRotate {
    0%, 100% {
        transform: scale(1) rotate(0deg);
    }
    25% {
        transform: scale(1.05) rotate(5deg);
    }
    50% {
        transform: scale(1) rotate(0deg);
    }
    75% {
        transform: scale(1.05) rotate(-5deg);
    }
}

/* ================================
   Animation Classes
   ================================ */

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fadeInUp-delay {
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.animate-slideInFromBottom {
    animation: slideInFromBottom 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.animate-slideInFromRight {
    animation: slideInFromRight 0.6s ease-out 1s forwards;
    opacity: 0;
}

.animate-slideInFromLeft {
    animation: slideInFromLeft 0.6s ease-out 1.2s forwards;
    opacity: 0;
}

.animate-pulse-glow {
    animation: pulse-glow 3s ease-in-out infinite;
}

.animate-pulse-glow-delay {
    animation: pulse-glow 3s ease-in-out infinite 1s;
}

.animate-spin {
    animation: spin 1s linear infinite;
}

.animate-spin-slow {
    animation: spin 2s linear infinite;
}

.animate-iconRotate {
    animation: iconRotate 4s ease-in-out infinite;
}

.floating-particle {
    animation: float 20s ease-in-out infinite;
}

.progress-bar-fill {
    animation: progressFill 1s ease-out forwards;
}

.typing-dot {
    animation: typing 0.6s ease-in-out infinite;
}

.typing-dot:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
    animation-delay: 0.4s;
}

/* ================================
   Utility Classes
   ================================ */

.hidden {
    display: none !important;
}

/* ================================
   Custom Scrollbar
   ================================ */

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* ================================
   Mobile Menu
   ================================ */

.mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.mobile-menu.active {
    max-height: 500px;
}

/* ================================
   ChatBot
   ================================ */

.chatbot-fade-in {
    animation: scaleIn 0.3s ease-out forwards;
}

.chatbot-fade-out {
    animation: scaleIn 0.3s ease-out reverse forwards;
}

/* ================================
   Result Section
   ================================ */

.result-card-enter {
    animation: scaleIn 0.3s ease-out forwards;
}

/* ================================
   Hover Effects
   ================================ */

.group:hover .group-hover\:scale-110 {
    transform: scale(1.1);
}

.group:hover .group-hover\:-translate-x-1 {
    transform: translateX(-0.25rem);
}

/* ================================
   Responsive Utilities
   ================================ */

@media (min-width: 640px) {
    /* Small screens */
}

@media (min-width: 768px) {
    /* Medium screens */
}

@media (min-width: 1024px) {
    /* Large screens */
}

@media (min-width: 1280px) {
    /* Extra large screens */
}
