/* Custom CSS for 360 Kampu Website */

/* Custom Tailwind CSS Colors - Original Purple Theme */
@layer base {
    :root {
        --color-primary: 65 32 243;
        /* #4120F3 - Original Purple */
        --color-primary-light: 98 71 255;
        /* #6247FF - Lighter Purple */
        --color-primary-dark: 54 21 217;
        /* #3615D9 - Darker Purple */
        --color-secondary: 15 23 42;
        /* #0F172A - Dark Blue */
        --color-accent: 242 240 254;
        /* #F2F0FE - Light Purple */
        --color-white: 255 255 255;
        /* #FFFFFF */
        --color-gray-50: 248 249 252;
        /* #F8F9FC */
        --color-gray-100: 241 245 249;
        /* #F1F5F9 */
        --color-gray-200: 226 232 240;
        /* #E2E8F0 */
        --color-gray-300: 203 213 225;
        /* #CBD5E1 */
        --color-gray-600: 71 85 105;
        /* #475569 */
        --color-gray-700: 51 65 85;
        /* #334155 */
        --color-gray-800: 30 41 59;
        /* #1E293B */
        --color-gray-900: 15 23 42;
        /* #0F172A */
    }
}

/* Custom color utilities */
.text-primary {
    color: rgb(var(--color-primary));
}

.text-primary-light {
    color: rgb(var(--color-primary-light));
}

.text-primary-dark {
    color: rgb(var(--color-primary-dark));
}

.text-secondary {
    color: rgb(var(--color-secondary));
}

.text-accent {
    color: rgb(var(--color-accent));
}

.text-white {
    color: rgb(var(--color-white));
}

.bg-primary {
    background-color: rgb(var(--color-primary));
}

.bg-primary-light {
    background-color: rgb(var(--color-primary-light));
}

.bg-primary-dark {
    background-color: rgb(var(--color-primary-dark));
}

.bg-secondary {
    background-color: rgb(var(--color-secondary));
}

.bg-accent {
    background-color: rgb(var(--color-accent));
}

.bg-white {
    background-color: rgb(var(--color-white));
}

.border-primary {
    border-color: rgb(var(--color-primary));
}

.border-primary-light {
    border-color: rgb(var(--color-primary-light));
}

.border-secondary {
    border-color: rgb(var(--color-secondary));
}

/* Hover states */
.hover\:text-primary:hover {
    color: rgb(var(--color-primary));
}

.hover\:bg-primary:hover {
    background-color: rgb(var(--color-primary));
}

.hover\:bg-primary-light:hover {
    background-color: rgb(var(--color-primary-light));
}

/* Focus states */
.focus\:ring-primary:focus {
    --tw-ring-color: rgb(var(--color-primary));
}

.focus\:border-primary:focus {
    border-color: rgb(var(--color-primary));
}

/* Opacity utilities */
.bg-primary\/10 {
    background-color: rgb(var(--color-primary) / 0.1);
}

.bg-primary\/90 {
    background-color: rgb(var(--color-primary) / 0.9);
}

.bg-primary\/5 {
    background-color: rgb(var(--color-primary) / 0.05);
}

.text-primary\/80 {
    color: rgb(var(--color-primary) / 0.8);
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

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

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }

    100% {
        background-position: calc(200px + 100%) 0;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Animation classes */
.animate-fade-in-up {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

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

.animate-slide-in-right {
    animation: slideInRight 0.8s ease-out forwards;
}

.animate-bounce-in {
    animation: bounceIn 0.8s ease-out forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-slide-up {
    animation: slideUp 0.6s ease-out forwards;
}

.animate-scale-in {
    animation: scaleIn 0.5s ease-out forwards;
}

/* Staggered animations */
.animate-stagger-1 {
    animation-delay: 0.1s;
}

.animate-stagger-2 {
    animation-delay: 0.2s;
}

.animate-stagger-3 {
    animation-delay: 0.3s;
}

.animate-stagger-4 {
    animation-delay: 0.4s;
}

.animate-stagger-5 {
    animation-delay: 0.5s;
}

/* Enhanced button animations */
.btn-animate {
    @apply transition-all duration-300 ease-out transform;
}

.btn-animate:hover {
    @apply scale-105 shadow-xl;
}

.btn-animate:active {
    @apply scale-95;
}

/* Glow effects */
.glow-on-hover:hover {
    box-shadow: 0 0 20px rgb(var(--color-primary) / 0.4);
}

.glow-primary {
    box-shadow: 0 0 20px rgb(var(--color-primary) / 0.3);
}

/* Shimmer effect */
.shimmer {
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    background-size: 200px 100%;
    animation: shimmer 2s infinite;
}

/* Floating elements */
.float-on-hover:hover {
    animation: float 2s ease-in-out infinite;
}

/* Card animations */
.card-animate {
    @apply transition-all duration-500 ease-out transform;
}

.card-animate:hover {
    @apply -translate-y-4 scale-105 shadow-2xl;
}

/* Text animations */
.text-reveal {
    overflow: hidden;
}

.text-reveal span {
    display: inline-block;
    animation: slideUp 0.6s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

/* Image hover effects */
.img-hover {
    @apply transition-all duration-500 ease-out;
}

.img-hover:hover {
    @apply scale-110 rotate-2;
}

/* Gradient animations */
.gradient-animate {
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: rgb(var(--color-primary));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgb(var(--color-primary) / 0.8);
}

/* Custom focus styles */
.focus-ring {
    @apply focus:outline-none focus:ring-2 focus:ring-primary focus:ring-offset-2;
}

/* Enhanced button styles */
.btn-primary {
    @apply bg-primary text-white px-6 py-3 rounded-lg font-semibold transition-all duration-300 transform hover:scale-105 hover:shadow-xl focus-ring btn-animate;
}

.btn-secondary {
    @apply bg-white text-primary border-2 border-primary px-6 py-3 rounded-lg font-semibold transition-all duration-300 transform hover:scale-105 hover:shadow-xl focus-ring btn-animate;
}

.btn-outline {
    @apply border-2 border-white text-white px-6 py-3 rounded-lg font-semibold transition-all duration-300 transform hover:scale-105 hover:bg-white hover:text-primary focus-ring btn-animate;
}

/* Enhanced card styles */
.card {
    @apply bg-white rounded-2xl shadow-lg transition-all duration-500 transform hover:-translate-y-2 hover:shadow-2xl card-animate;
}

.card-hover {
    @apply hover:shadow-xl transition-shadow duration-300;
}

/* Enhanced form styles */
.form-input {
    @apply w-full px-4 py-3 border border-gray-300 rounded-lg focus:ring-2 focus:ring-primary focus:border-transparent transition-all duration-300 focus-ring;
}

.form-input:focus {
    @apply transform scale-105;
}

.form-label {
    @apply block text-sm font-medium text-gray-700 mb-2;
}

/* Enhanced section styles */
.section-header {
    @apply text-center mb-16;
}

.section-title {
    @apply text-4xl lg:text-5xl font-bold text-secondary mb-6;
}

.section-subtitle {
    @apply text-primary font-semibold text-sm uppercase tracking-wider mb-4;
}

.section-description {
    @apply text-xl text-gray-600 max-w-3xl mx-auto;
}

/* Enhanced grid layouts */
.grid-auto-fit {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-auto-fill {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

/* Enhanced spacing utilities */
.space-y-section>*+* {
    margin-top: 5rem;
}

.space-y-section-lg>*+* {
    margin-top: 8rem;
}

/* Enhanced typography */
.prose-custom {
    @apply text-gray-700 leading-relaxed;
}

.prose-custom h1,
.prose-custom h2,
.prose-custom h3,
.prose-custom h4,
.prose-custom h5,
.prose-custom h6 {
    @apply text-secondary font-bold mb-4;
}

.prose-custom p {
    @apply mb-4;
}

.prose-custom ul,
.prose-custom ol {
    @apply mb-4 pl-6;
}

.prose-custom li {
    @apply mb-2;
}

/* Enhanced responsive utilities */
@media (max-width: 640px) {
    .mobile-hidden {
        display: none;
    }
}

@media (min-width: 641px) {
    .desktop-hidden {
        display: none;
    }
}

/* Enhanced hover effects */
.hover-lift {
    @apply transition-transform duration-300 hover:-translate-y-2;
}

.hover-scale {
    @apply transition-transform duration-300 hover:scale-105;
}

.hover-glow {
    @apply transition-shadow duration-300 hover:shadow-2xl;
}

.hover-rotate {
    @apply transition-transform duration-300 hover:rotate-3;
}

.hover-bounce {
    @apply transition-transform duration-300 hover:animate-bounce;
}

/* Enhanced background patterns */
.pattern-dots {
    background-image: radial-gradient(circle, #e5e7eb 1px, transparent 1px);
    background-size: 20px 20px;
}

.pattern-grid {
    background-image: linear-gradient(#e5e7eb 1px, transparent 1px),
        linear-gradient(90deg, #e5e7eb 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Enhanced loading states */
.loading {
    @apply opacity-50 cursor-not-allowed;
}

.loading-spinner {
    @apply animate-spin rounded-full h-4 w-4 border-2 border-white border-t-transparent;
}

/* Enhanced transitions */
.transition-smooth {
    @apply transition-all duration-300 ease-in-out;
}

.transition-fast {
    @apply transition-all duration-150 ease-in-out;
}

.transition-slow {
    @apply transition-all duration-500 ease-in-out;
}

.transition-bounce {
    @apply transition-all duration-300 ease-bounce;
}

/* Enhanced shadows */
.shadow-soft {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.shadow-medium {
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.12);
}

.shadow-strong {
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.16);
}

.shadow-glow {
    box-shadow: 0 0 30px rgb(var(--color-primary) / 0.3);
}

/* Enhanced gradients */
.gradient-primary {
    background: linear-gradient(135deg, rgb(var(--color-primary)) 0%, rgb(var(--color-primary-dark)) 100%);
}

.gradient-secondary {
    background: linear-gradient(135deg, rgb(var(--color-secondary)) 0%, rgb(var(--color-secondary) / 0.9) 100%);
}

.gradient-accent {
    background: linear-gradient(135deg, rgb(var(--color-accent)) 0%, rgb(var(--color-white)) 100%);
}

.gradient-animated {
    background: linear-gradient(-45deg, rgb(var(--color-primary)), rgb(var(--color-primary-light)), rgb(var(--color-primary-dark)), rgb(var(--color-primary)));
    background-size: 400% 400%;
    animation: gradientShift 3s ease infinite;
}

/* Enhanced borders */
.border-soft {
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.border-medium {
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.border-strong {
    border: 1px solid rgba(0, 0, 0, 0.16);
}

.border-glow {
    border: 2px solid rgb(var(--color-primary));
    box-shadow: 0 0 10px rgb(var(--color-primary) / 0.5);
}

/* Enhanced backdrop filters */
.backdrop-blur-custom {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Enhanced text shadows */
.text-shadow-soft {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.text-shadow-medium {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.text-shadow-strong {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.text-shadow-glow {
    text-shadow: 0 0 10px rgb(var(--color-primary) / 0.5);
}

/* Interactive elements */
.interactive-card {
    @apply cursor-pointer transition-all duration-300 transform hover:scale-105 hover:shadow-xl;
}

.interactive-button {
    @apply transition-all duration-300 transform hover:scale-105 active:scale-95;
}

/* Loading animations */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Parallax effect */
.parallax {
    transform: translateZ(0);
    will-change: transform;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus visible for better accessibility */
.focus-visible:focus {
    outline: 2px solid rgb(var(--color-primary));
    outline-offset: 2px;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Logo Marquee Animations */
.animate-scroll {
    animation: scroll 30s linear infinite;
}

.animate-scroll:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-200px * 14));
        /* Adjust based on number of logos */
    }
}

/* Logo item hover effects */
.logo-item img {
    filter: grayscale(100%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}