/* Custom Styles for SAUD Groups */

:root {
    --primary: #1E3A8A;
    --secondary: #4C1D95;
    --accent: #7c2e2e;
}

/* Glassmorphism Navbar */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    padding-top: 1rem;
    padding-bottom: 1rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

#navbar.scrolled a:not(.bg-accent) {
    color: #111827;
}

#navbar.scrolled a.bg-accent {
    color: white !important;
}

/* Dynamic Navbar Text Colors for Home Page (Dark Hero) */
.home-nav:not(.scrolled) nav a:not(.bg-accent) {
    color: rgba(255, 255, 255, 0.9) !important;
}

.home-nav:not(.scrolled) nav a:not(.bg-accent):hover {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.home-nav:not(.scrolled) nav a.text-accent {
    color: #ffffff !important;
    position: relative;
}

.home-nav:not(.scrolled) nav a.text-accent::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 100%;
    height: 2px;
    background-color: var(--accent);
    border-radius: 2px;
}

/* Scroll Revel Animations */
.reveal {
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Property Card Hover */
.group:hover img {
    transform: scale(1.1);
}

/* Slider Customization */
#testimonial-slider {
    cursor: grab;
}

#testimonial-slider:active {
    cursor: grabbing;
}

/* Smooth Transitions */
a, button {
    transition: all 0.3s ease;
}

/* Typography Refinements */
h1, h2, h3, h4, h5 {
    letter-spacing: -0.02em;
}

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

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

::-webkit-scrollbar-thumb {
    background: #1E3A8A;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #4C1D95;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
    #navbar {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
        box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem !important; line-height: 1.2 !important; }
    h2 { font-size: 0.8rem !important; }
    h3 { font-size: 1.8rem !important; line-height: 1.3 !important; }
    .section-py { padding-top: 4rem; padding-bottom: 4rem; }
}

/* Catchy Micro-interactions */
.btn-catchy {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-catchy:active {
    transform: scale(0.95);
}
