/* ===== Custom Styles for Map Tax ===== */

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

/* ===== Geometric Shape Animations ===== */
.geo-shape {
    animation: float 6s ease-in-out infinite;
}

.geo-shape:nth-child(2) {
    animation-delay: -1s;
    animation-duration: 7s;
}

.geo-shape:nth-child(3) {
    animation-delay: -2s;
    animation-duration: 8s;
}

.geo-shape:nth-child(4) {
    animation-delay: -3s;
    animation-duration: 6s;
}

.geo-shape:nth-child(5) {
    animation-delay: -4s;
    animation-duration: 9s;
}

.geo-shape:nth-child(6) {
    animation-delay: -1.5s;
    animation-duration: 7s;
}

.geo-shape:nth-child(7) {
    animation-delay: -2.5s;
    animation-duration: 8s;
}

.geo-shape:nth-child(8) {
    animation-delay: -3.5s;
    animation-duration: 6s;
}

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

.shape-diamond {
    --rotation: 45deg;
}

.shape-square {
    --rotation: 12deg;
}

/* ===== Service Card Hover ===== */
.service-card {
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
}

/* ===== Why Us Card Hover ===== */
.why-card {
    transform: translateY(0);
    transition: transform 0.4s ease, background 0.4s ease;
}

.why-card:hover {
    transform: translateY(-4px);
}

/* ===== Scroll Indicator ===== */
.scroll-indicator {
    opacity: 0.7;
    transition: opacity 0.3s;
}

.scroll-indicator:hover {
    opacity: 1;
}

/* ===== Navbar Scroll Effect ===== */
.navbar-scrolled {
    background: rgba(255, 248, 240, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 20px rgba(112, 24, 59, 0.08);
}

/* ===== Mobile Menu ===== */
.mobile-link {
    position: relative;
}

.mobile-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #be185d, #ff748a);
    transition: width 0.3s ease;
}

.mobile-link:hover::after {
    width: 100%;
}

/* ===== Intersection Observer Animations ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.delay-1 { transition-delay: 0.1s; }
.animate-on-scroll.delay-2 { transition-delay: 0.2s; }
.animate-on-scroll.delay-3 { transition-delay: 0.3s; }
.animate-on-scroll.delay-4 { transition-delay: 0.4s; }
.animate-on-scroll.delay-5 { transition-delay: 0.5s; }
.animate-on-scroll.delay-6 { transition-delay: 0.6s; }

/* ===== Input Focus States ===== */
input:focus,
select:focus,
textarea:focus {
    border-color: #be185d !important;
    box-shadow: 0 0 0 3px rgba(190, 24, 93, 0.1) !important;
}

/* ===== Button Ripple Effect ===== */
button[type="submit"] {
    position: relative;
    overflow: hidden;
}

button[type="submit"]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

button[type="submit"]:active::after {
    width: 300px;
    height: 300px;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 768px) {
    .geo-shape {
        display: none;
    }
    
    .geo-shape:nth-child(-n+3) {
        display: block;
        opacity: 0.5;
    }
}

/* ===== Selection Color ===== */
::selection {
    background: #fce7eb;
    color: #70183b;
}

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

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #be185d, #db2777);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #9d174d, #be185d);
}
