/* DM Sans — loaded via base.html preload; fallback to system font until ready */

* {
    font-family: 'DM Sans', sans-serif;
}

body {
    background: #f9fafb;
}

.space-grotesk-font {
    font-family: 'Space Grotesk', sans-serif;
}

.space-grotesk-font-2 {
    font-family: "Poppins", sans-serif;
}

.char {
    display: inline-block;
    opacity: 0;
    animation: fadeIn 0.1s forwards;
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 60px;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.char-out {
    animation: fadeOut 0.1s forwards;
    font-family: "Poppins", sans-serif;
    font-weight: 800;
}

@keyframes fadeOut {
    to {
        opacity: 0;
    }
}

.gradient-green {
    background: linear-gradient(90deg, #6ee7b7 0%, #34d399 50%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-circle {
    width: 550px;
    height: 550px;
    border-radius: 50%;
    position: relative;
}

.trust-badge {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.custom-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 1rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
}

/* Modern Navbar Styles */
.navbar-container {
    transition: all 0.3s ease;
}

.navbar-scrolled {
    transform: translateY(0);
}

.navbar-glass {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.navbar-glass-scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.nav-link {
    position: relative;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: -0.02em;
    transition: color 0.3s;
}

.nav-link:hover {
    color: #10b981;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #10b981;
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.btn-primary-custom {
    background: #1f2937;
    border: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary-custom:hover {
    background: #111827;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.btn-consultation {
    background: #10b981;
    color: white;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 9999px;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.btn-consultation:hover {
    background: #059669;
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -10px 0 50px rgba(0, 0, 0, 0.2);
    transition: right 0.3s;
    z-index: 1000;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 999;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 1024px) {
    .hero-circle {
        width: 450px;
        height: 450px;
    }
}

@media (max-width: 768px) {
    .hero-circle {
        width: 350px;
        height: 350px;
    }

    .nav-arrows {
        display: none;
    }
}

@media (max-width: 640px) {
    .hero-circle {
        width: 280px;
        height: 280px;
    }
}
@keyframes float {
    0%,
    100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse-slow {
    0%,
    100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-pulse-slow {
    animation: pulse-slow 2s ease-in-out infinite;
}

.animate-bounce-slow {
    animation: bounce 4s infinite;
}

/* Modern 3D Animation Styles */
.polaroid-container {
    perspective: 1500px;
    transform-style: preserve-3d;
}

.main-polaroid {
    transform-style: preserve-3d;
    backface-visibility: hidden;
}

/* Exit Animation - Video upore uthe jabe with rotation */
@keyframes exitUp {
    0% {
        transform: translateY(0) translateZ(0) rotateX(0deg) scale(1)
            rotate(1deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-150%) translateZ(200px) rotateX(25deg) scale(0.7)
            rotate(5deg);
        opacity: 0;
    }
}

/* Entry Animation - Notun video niche theke uthe asbe */
@keyframes entryFromBottom {
    0% {
        transform: translateY(150%) translateZ(-200px) rotateX(-25deg)
            scale(0.7) rotate(-5deg);
        opacity: 0;
    }
    100% {
        transform: translateY(0) translateZ(0) rotateX(0deg) scale(1)
            rotate(1deg);
        opacity: 1;
    }
}

.exit-animation {
    animation: exitUp 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.entry-animation {
    animation: entryFromBottom 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55)
        forwards;
}

/* Alternative flip style animation */
@keyframes flipOut {
    0% {
        transform: translateY(0) translateZ(0) rotateY(0deg) scale(1)
            rotate(1deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-120%) translateZ(100px) rotateY(90deg) scale(0.6)
            rotate(10deg);
        opacity: 0;
    }
}

@keyframes flipIn {
    0% {
        transform: translateY(120%) translateZ(-100px) rotateY(-90deg)
            scale(0.6) rotate(-10deg);
        opacity: 0;
    }
    100% {
        transform: translateY(0) translateZ(0) rotateY(0deg) scale(1)
            rotate(1deg);
        opacity: 1;
    }
}

.flip-out-animation {
    animation: flipOut 0.7s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.flip-in-animation {
    animation: flipIn 0.7s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

/* Slide and Scale Animation */
@keyframes slideUpScale {
    0% {
        transform: translateY(0) scale(1) rotate(1deg);
        opacity: 1;
        z-index: 10;
    }
    50% {
        transform: translateY(-200%) scale(1.2) rotate(8deg);
        opacity: 0.5;
    }
    100% {
        transform: translateY(-400%) scale(0.5) rotate(15deg);
        opacity: 0;
        z-index: 1;
    }
}

@keyframes slideFromBelow {
    0% {
        transform: translateY(400%) scale(0.5) rotate(-15deg);
        opacity: 0;
        z-index: 1;
    }
    50% {
        transform: translateY(200%) scale(1.2) rotate(-8deg);
        opacity: 0.5;
    }
    100% {
        transform: translateY(0) scale(1) rotate(1deg);
        opacity: 1;
        z-index: 10;
    }
}

.slide-up-animation {
    animation: slideUpScale 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

.slide-from-below-animation {
    animation: slideFromBelow 1s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}
