/* Premium CSS for Lawyer Portfolio */

/* Theme Variables */
:root {
    --bg-primary: #0a0f1a;
    --bg-secondary: #111827;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    --border-color: rgba(255, 255, 255, 0.1);
    --accent: #c9a962;
}

/* CTA Section Styles */
.cta-heading {
    color: #ffffff;
}

.cta-subtext {
    color: rgba(255, 255, 255, 0.8);
}

.cta-button {
    background-color: #0a0f1a;
    color: #ffffff;
}

.cta-button:hover {
    background-color: #111827;
}

/* Success Animation for Contact Form */
@keyframes successPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.animate-success {
    animation: successPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fadeIn {
    animation: fadeIn 1s ease forwards;
}

.animate-fadeInLeft {
    animation: fadeInLeft 1s ease forwards;
}

.animate-fadeInRight {
    animation: fadeInRight 1s ease forwards;
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

/* Navigation Link Hover */
.nav-link {
    position: relative;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #c9a962;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #c9a962;
}

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

/* Navbar Background on Scroll */
.navbar-scrolled {
    background: rgba(10, 15, 26, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #b8954d;
}

/* Selection */
::selection {
    background: #c9a962;
    color: #0a0f1a;
}

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

/* Form Focus States */
input:focus,
select:focus,
textarea:focus {
    border-color: #c9a962 !important;
}

/* Preloader Hidden */
.preloader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Image Parallax Effect */
.parallax-bg {
    background-attachment: fixed;
}

@media (max-width: 768px) {
    .parallax-bg {
        background-attachment: scroll;
    }
}

/* Button Hover Glow */
.btn-glow:hover {
    box-shadow: 0 0 30px rgba(201, 169, 98, 0.3);
}

/* Card Hover Effect */
.card-hover {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}