/* Custom CSS for ShantiKotha Landing Page */

/* Custom font integration */
.bangla-font {
    font-family: 'Adorsho Lipi', 'Inter', sans-serif !important;
}

.english-font {
    font-family: 'Inter', sans-serif !important;
}

/* Ensure fonts are loaded */
body {
    font-family: 'Inter', sans-serif;
}

body.bangla-font {
    font-family: 'Adorsho Lipi', 'Inter', sans-serif !important;
}

body.english-font {
    font-family: 'Inter', sans-serif !important;
}

/* Language toggle animations */
.lang-toggle {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: #e5e7eb;
    border-radius: 9999px;
    padding: 0.25rem;
    cursor: pointer;
    width: 5rem;
    height: 2.5rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dark .lang-toggle {
    background-color: #374151;
}

.lang-toggle.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.lang-ball {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background-color: white;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    position: absolute;
    top: 0.125rem;
    left: 0.125rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dark .lang-ball {
    background-color: #1f2937;
}

.lang-ball.bangla {
    transform: translateX(2.5rem);
}

.lang-toggle span {
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    z-index: 10;
    position: relative;
}

/* Custom animations */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(102, 126, 234, 0.6);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@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 fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.float-animation {
    animation: float 6s ease-in-out infinite;
}

.pulse-glow {
    animation: pulse-glow 3s ease-in-out infinite;
}

.slide-in-up {
    animation: slideInUp 0.8s ease-out;
}

.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

.fade-in-scale {
    animation: fadeInScale 0.6s ease-out;
}

/* Gradient backgrounds */
.gradient-bg {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

/* Hide scrollbar for carousel */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Custom button styles */
.btn-primary {
    background: linear-gradient(to right, #9333ea, #2563eb);
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    transform: scale(1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.btn-primary:hover {
    background: linear-gradient(to right, #7c3aed, #1d4ed8);
    transform: scale(1.05);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.btn-secondary {
    background-color: #f3f4f6;
    color: #374151;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    transform: scale(1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.btn-secondary:hover {
    background-color: #e5e7eb;
    transform: scale(1.05);
}

.dark .btn-secondary {
    background-color: #1f2937;
    color: #d1d5db;
}

.dark .btn-secondary:hover {
    background-color: #374151;
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease;
    transform: translateY(0);
}

.card-hover:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Feature card styles */
.feature-card {
    padding: 2rem;
    border-radius: 1rem;
    background: linear-gradient(to bottom right, #faf5ff, #eff6ff);
    transition: all 0.3s ease;
    transform: translateY(0);
}

.feature-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(-0.5rem);
}

.dark .feature-card {
    background: linear-gradient(to bottom right, rgba(147, 51, 234, 0.1), rgba(37, 99, 235, 0.1));
}

/* Icon container styles */
.icon-container {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(to right, #9333ea, #2563eb);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.icon-container:hover {
    transform: scale(1.1);
}

/* Navigation styles */
.nav-link {
    position: relative;
    color: #6b7280;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #9333ea;
}

.dark .nav-link {
    color: #d1d5db;
}

.dark .nav-link:hover {
    color: #a78bfa;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* FAQ accordion styles */
.faq-question {
    position: relative;
}

.faq-question.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    transition: all 0.3s ease-in-out;
}

/* Form styles */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.75rem;
    background-color: white;
    color: #111827;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #9333ea;
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.1);
}

.dark .form-input {
    background-color: #1f2937;
    border-color: #4b5563;
    color: white;
}

.dark .form-input:focus {
    border-color: #9333ea;
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.2);
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    background: linear-gradient(to right, #9333ea, #2563eb);
    color: white;
    border-radius: 50%;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    transform: scale(1);
}

.back-to-top:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(1.1);
}

/* Loading animation */
.loading-dots {
    display: inline-block;
}

.loading-dots::after {
    content: '';
    animation: dots 1.5s infinite;
}

@keyframes dots {

    0%,
    20% {
        content: '';
    }

    40% {
        content: '.';
    }

    60% {
        content: '..';
    }

    80%,
    100% {
        content: '...';
    }
}

/* Responsive utilities */
@media (max-width: 768px) {
    .mobile-hidden {
        display: none !important;
    }

    .mobile-full {
        width: 100% !important;
    }
}

@media (min-width: 769px) {
    .desktop-hidden {
        display: none !important;
    }
}

/* Custom spacing */
.section-padding {
    padding: 5rem 0;
}

.container-padding {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Text utilities */
.text-gradient {
    background: linear-gradient(to right, #9333ea, #2563eb);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

/* Shadow utilities */
.shadow-custom {
    box-shadow: 0 10px 40px rgba(102, 126, 234, 0.1);
}

.shadow-custom-lg {
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.15);
}

/* Border utilities */
.border-gradient {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
        linear-gradient(135deg, #667eea 0%, #764ba2 100%) border-box;
}

/* Dark mode utilities */
.dark .border-gradient {
    background: linear-gradient(#1f2937, #1f2937) padding-box,
        linear-gradient(135deg, #667eea 0%, #764ba2 100%) border-box;
}

/* Animation delays */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-500 {
    animation-delay: 0.5s;
}

.delay-700 {
    animation-delay: 0.7s;
}

.delay-1000 {
    animation-delay: 1s;
}

/* Intersection Observer animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom focus styles */
.focus-ring {
    outline: none;
}

.focus-ring:focus {
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.2);
}

.dark .focus-ring:focus {
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.3);
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    .gradient-text {
        background: none;
        -webkit-background-clip: unset;
        -webkit-text-fill-color: unset;
        background-clip: unset;
        color: #000;
    }

    .dark .gradient-text {
        color: #fff;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Custom utilities for better performance */
.gpu-accelerated {
    transform: translateZ(0);
    will-change: transform;
}

/* Custom grid layouts */
.grid-auto-fit {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-auto-fill {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* Custom aspect ratios */
.aspect-video {
    aspect-ratio: 16 / 9;
}

.aspect-square {
    aspect-ratio: 1 / 1;
}

.aspect-portrait {
    aspect-ratio: 3 / 4;
}

/* Additional utility classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

/* Sticky navbar */
.is-sticky {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
}

.dark .is-sticky {
    background-color: rgba(17, 24, 39, 0.95);
    border-bottom: 1px solid rgba(75, 85, 99, 0.5);
}

/* Navbar styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    transition: all 0.3s ease;
}

.dark .navbar {
    background-color: rgba(17, 24, 39, 0.95);
    border-bottom: 1px solid rgba(75, 85, 99, 0.5);
}

/* Custom button variants */
.btn-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
}

/* Custom card styles */
.card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.dark .card {
    background: #1f2937;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.dark .card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
}

/* Hero section specific styles */
#home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(to bottom right, #faf5ff, #eff6ff, #f0f9ff);
    position: relative;
}

.dark #home {
    background: linear-gradient(to bottom right, #0f172a, #581c87, #1e1b4b);
}

/* Ensure proper spacing for sections */
section {
    position: relative;
}

/* Fix for mobile responsiveness */
@media (max-width: 640px) {
    .container {
        padding: 0 1rem;
    }

    .lang-toggle {
        width: 4rem;
        height: 2rem;
    }

    .lang-ball {
        width: 1.5rem;
        height: 1.5rem;
    }

    .lang-ball.bangla {
        transform: translateX(2rem);
    }
}

/* Ensure proper z-index stacking */
.z-10 {
    z-index: 10;
}

.z-50 {
    z-index: 50;
}

/* Custom scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Fix for backdrop blur support */
@supports not (backdrop-filter: blur(16px)) {
    .navbar {
        background-color: rgba(255, 255, 255, 0.98);
    }

    .dark .navbar {
        background-color: rgba(17, 24, 39, 0.98);
    }
}