/* Custom Styles for Law Firm Landing Page */

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0a1628;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #d4a853, #b8872f);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #c9983e, #a07726);
}

/* Header Styles */
#header {
    background: transparent;
}

#header.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Animations */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(212, 168, 83, 0.2);
    }
    50% {
        box-shadow: 0 0 40px rgba(212, 168, 83, 0.4);
    }
}

.animate-fade-in {
    animation: fade-in 1s ease-out forwards;
}

/* Hero Section Enhancements */
#hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center top, rgba(212, 168, 83, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* About Cards Animation */
.about-card {
    transform: translateY(0);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), 
                border-color 0.5s ease,
                box-shadow 0.5s ease;
}

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Practice Cards Animation */
.practice-card {
    transform: translateY(0);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.practice-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

/* Partner Cards */
.partner-card {
    transition: transform 0.3s ease;
}

/* Insight Cards */
.insight-card {
    transform: translateY(0);
    transition: all 0.4s ease;
}

.insight-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Award Logos */
.award-logo {
    transition: all 0.3s ease;
}

.award-logo:hover {
    transform: scale(1.1);
}

/* Section Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Gold Gradient Text */
.gold-gradient {
    background: linear-gradient(135deg, #d4a853, #f5d89a, #c9983e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Button Shine Effect */
.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-shine:hover::after {
    left: 100%;
}

/* Form Focus States */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.2);
}

/* Navigation Link Underline Effect */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #d4a853;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Mobile Menu Animation */
#mobile-menu {
    transform-origin: top;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: scaleY(0.95);
    }
    to {
        opacity: 1;
        transform: scaleY(1);
    }
}

/* Carousel Styles */
#team-carousel {
    margin: 0 -12px;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    #prev-btn,
    #next-btn {
        display: none !important;
    }
    
    #team-track {
        gap: 0;
        flex-wrap: wrap;
    }
    
    .partner-card {
        padding: 8px;
    }
}

@media (max-width: 640px) {
    .partner-card {
        width: 100% !important;
    }
}

/* Loading State */
.skeleton {
    background: linear-gradient(90deg, #1a2744 25%, #243656 50%, #1a2744 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Glassmorphism Card */
.glass-card {
    background: rgba(26, 39, 68, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Section Dividers */
.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(212, 168, 83, 0.3), transparent);
}

/* Floating Animation for Hero Elements */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Parallax Effect Support */
.parallax-bg {
    transform: translateZ(0);
    will-change: transform;
}

/* Print Styles */
@media print {
    header,
    #hero::before,
    .animate-bounce {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(10, 22, 40, 0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    background-color: #111d35;
    margin: 5% auto;
    padding: 0;
    border: 1px solid rgba(212, 168, 83, 0.3);
    width: 90%;
    max-width: 900px;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    animation: modalFadeIn 0.4s ease-out;
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.close-modal {
    color: #d4a853;
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #fff;
}

.modal-body {
    padding: 0;
}
