/* Custom Styles for Healthcare Services Group */

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

/* Geometric Shape Animations */
.geometric-shape {
    position: absolute;
    opacity: 0.08;
    pointer-events: none;
}

.shape-circle-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: linear-gradient(135deg, #34D399, #10B981);
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.shape-circle-2 {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: linear-gradient(135deg, #60A5FA, #3B82F6);
    bottom: 10%;
    left: -50px;
    animation: float 10s ease-in-out infinite reverse;
}

.shape-square-1 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #A78BFA, #8B5CF6);
    top: 30%;
    left: 10%;
    transform: rotate(45deg);
    animation: spin 20s linear infinite;
}

.shape-square-2 {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #F59E0B, #D97706);
    bottom: 20%;
    right: 15%;
    transform: rotate(30deg);
    animation: spin 15s linear infinite reverse;
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 75px solid transparent;
    border-right: 75px solid transparent;
    border-bottom: 130px solid #34D399;
    top: 50%;
    right: 5%;
    animation: float 6s ease-in-out infinite;
}

.shape-dots {
    width: 200px;
    height: 200px;
    background-image: radial-gradient(circle, #34D399 1px, transparent 1px);
    background-size: 20px 20px;
    top: 20%;
    left: 5%;
    opacity: 0.15;
}

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

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.hidden {
    opacity: 0;
    transform: translateY(30px);
}

/* Navbar Scroll Effect */
.navbar.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

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

::-webkit-scrollbar-track {
    background: #0A1628;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #34D399, #10B981);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #6EE7B7, #34D399);
}

/* Selection Color */
::selection {
    background: rgba(52, 211, 153, 0.3);
    color: #fff;
}

/* Mobile Menu Transitions */
.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

/* Button Hover Effects */
button, a {
    cursor: pointer;
}

/* Form Focus States */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

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

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .geometric-shape,
    .reveal {
        animation: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .shape-circle-1 {
        width: 200px;
        height: 200px;
    }
    
    .shape-circle-2 {
        width: 125px;
        height: 125px;
    }
    
    .shape-square-1 {
        width: 75px;
        height: 75px;
    }
    
    .shape-square-2 {
        width: 50px;
        height: 50px;
    }
    
    .shape-triangle-1 {
        border-left: 37px solid transparent;
        border-right: 37px solid transparent;
        border-bottom: 65px solid #34D399;
    }
    
    .shape-dots {
        width: 100px;
        height: 100px;
    }
}
