/* Custom styles for Annette Samant Real Estate Website */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0A1628;
}
::-webkit-scrollbar-thumb {
    background: #1B3A6B;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #00E87B;
}

/* Selection color */
::selection {
    background: rgba(0, 232, 123, 0.3);
    color: #ffffff;
}

/* Mobile menu transitions */
.menu-line {
    transition: all 0.3s ease-in-out;
}

#menu-btn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
#menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menu-btn.active .menu-line:nth-child(3) {
    width: 1.5rem;
    transform: rotate(-45deg) translate(5px, -5px);
}

#mobile-menu.open {
    transform: translateX(0);
}

/* Scroll reveal base state - content is VISIBLE by default */
.reveal {
    /* Default: fully visible, no animation */
}

/* Progressive enhancement: add animation only when JS runs and user prefers motion */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.6s ease, transform 0.6s ease;
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Ensure content is always readable even without JS */
.reveal {
    opacity: 1;
    transform: none;
}

/* Navbar scroll state */
nav.scrolled {
    background: rgba(5, 10, 24, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav.scrolled .font-sans.font-bold.text-white.text-lg {
    color: #ffffff !important;
}

/* Hero underline animation */
@keyframes underline-draw {
    from {
        stroke-dasharray: 200;
        stroke-dashoffset: 200;
    }
    to {
        stroke-dashoffset: 0;
    }
}

/* Floating animation for decorative elements */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(45deg);
    }
    50% {
        transform: translateY(-20px) rotate(45deg);
    }
}

/* Pulse animation for dots */
@keyframes soft-pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.5);
    }
}

/* Gradient shift for hero */
@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Button shine effect */
@keyframes shine {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

/* Geometric shape float */
.float-slow {
    animation: float 6s ease-in-out infinite;
}
.float-medium {
    animation: float 4s ease-in-out infinite;
}
.float-fast {
    animation: float 3s ease-in-out infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .font-serif.text-5xl {
        font-size: 2.5rem;
    }
    .font-serif.text-4xl {
        font-size: 2rem;
    }
}

/* Print styles */
@media print {
    nav, .reveal {
        display: block !important;
    }
    body {
        background: white;
        color: black;
    }
}
