/* Custom Styles for Shine Realty */

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

/* Navigation Styles */
.nav-text-color {
    color: #1e293b;
}

nav.scrolled .nav-text-color {
    color: #f8fafc;
}

nav.scrolled .menu-line {
    background-color: #f8fafc;
}

nav.scrolled .mobile-menu-link {
    color: #f8fafc !important;
}

/* Mobile Menu Animation */
#mobileMenu.open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobileMenu.open .menu-line:nth-child(2) {
    opacity: 0;
}

#mobileMenu.open .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Geometric Shapes Animation */
.geo-shape {
    position: absolute;
    opacity: 0.15;
    animation: float 20s ease-in-out infinite;
}

.geo-circle-1 {
    width: 400px;
    height: 400px;
    border: 3px solid #5eead4;
    border-radius: 50%;
    top: 10%;
    right: -5%;
    animation-delay: 0s;
}

.geo-circle-2 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #0d9488, #5eead4);
    border-radius: 50%;
    bottom: 20%;
    right: 10%;
    animation-delay: -5s;
}

.geo-square-1 {
    width: 150px;
    height: 150px;
    border: 3px solid #2dd4bf;
    top: 30%;
    left: 5%;
    transform: rotate(45deg);
    animation-delay: -10s;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 75px solid transparent;
    border-right: 75px solid transparent;
    border-bottom: 130px solid #5eead4;
    opacity: 0.1;
    top: 60%;
    left: 15%;
    animation-delay: -15s;
}

.geo-dots {
    background-image: radial-gradient(circle, #5eead4 2px, transparent 2px);
    background-size: 30px 30px;
    width: 200px;
    height: 200px;
    top: 15%;
    left: 40%;
    animation-delay: -7s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-20px) rotate(5deg);
    }
    50% {
        transform: translateY(0) rotate(0deg);
    }
    75% {
        transform: translateY(20px) rotate(-5deg);
    }
}

/* Scroll Reveal Animation */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Button Hover Effects */
button, a {
    transition: all 0.3s ease;
}

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

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

::-webkit-scrollbar-thumb {
    background: #0d9488;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #0f766e;
}

/* Selection Color */
::selection {
    background: #0d9488;
    color: white;
}

/* Focus Styles */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

/* Image Optimization */
img {
    max-width: 100%;
    height: auto;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Print Styles */
@media print {
    nav,
    .geo-shape,
    button {
        display: none !important;
    }
    
    body {
        color: #000;
        background: white;
    }
}
