@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');

:root {
    --color-primary: #0f172a;
    --color-accent: #b4975a;
    --color-gold-light: #d4bc8a;
    --color-premium: #0a0a0a;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

h1, h2, h3, h4, .font-serif {
    font-family: 'Playfair Display', serif;
}

.bg-premium-dark { background-color: #0a0a0a; }
.text-gold { color: #b4975a; }
.bg-gold { background-color: #b4975a; }
.border-gold { border-color: #b4975a; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
.dark ::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #b4975a; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #8e7345; }

/* Glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark .glass {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Premium Buttons */
.btn-premium {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 3rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    font-size: 11px;
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    background: transparent;
    color: var(--color-accent);
    overflow: hidden;
    cursor: pointer;
    z-index: 1;
    border: none;
}

.btn-premium::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid var(--color-accent);
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: -1;
}

.btn-premium::after {
    content: '';
    position: absolute;
    inset: 4px;
    border: 1px solid rgba(180, 151, 90, 0.3);
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: -1;
}

.btn-premium > span:not(.btn-premium-bg) {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    transition: color 0.6s ease;
}

.btn-premium-bg {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--color-accent);
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 2;
}

.btn-premium:hover {
    color: white !important;
    letter-spacing: 0.4em;
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(180, 151, 90, 0.2);
}

.btn-premium:hover .btn-premium-bg {
    left: 0;
}

.btn-premium:hover::before {
    inset: -5px;
    opacity: 0;
}

.btn-premium:hover::after {
    inset: 0;
    border-color: var(--color-accent);
}

/* Button Variants */
.btn-premium-filled {
    color: white;
}

.btn-premium-filled .btn-premium-bg {
    left: 0;
}

.btn-premium-filled:hover {
    color: var(--color-primary) !important;
}

.btn-premium-filled:hover .btn-premium-bg {
    background: white;
}

/* Mobile Menu Full Screen */
#mobile-menu {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    background: white;
    z-index: 100;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

.dark #mobile-menu {
    background: #0a0a0a;
}

#mobile-menu .nav-link {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

#mobile-menu .nav-link:hover {
    color: var(--color-accent);
    transform: scale(1.05);
}

#close-menu {
    position: absolute;
    top: 2rem;
    right: 2rem;
    padding: 1rem;
    cursor: pointer;
    opacity: 0;
}

/* Shine Effect for Buttons */
.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -100%;
    width: 50%;
    height: 200%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.3) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: rotate(30deg);
    transition: none;
    z-index: 3;
}

.btn-shine:hover::after {
    left: 150%;
    transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Service Cards */
.service-card {
    padding: 2.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: white;
    position: relative;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.dark .service-card {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.05);
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--color-accent);
    transform: scale-x(0);
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    transform-origin: right;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    border-color: rgba(180, 151, 90, 0.3);
}

.dark .service-card:hover {
    box-shadow: 0 30px 60px rgba(180, 151, 90, 0.05);
}

.service-card:hover::after {
    transform: scale-x(1);
    transform-origin: left;
}

/* Reveal Animation Containers */
.reveal-mask {
    position: relative;
    overflow: hidden;
    display: block;
}

.reveal-mask > * {
    display: block;
    will-change: transform;
}

/* Hover Underline */
.hover-underline-gold {
    position: relative;
    display: inline-block;
}

.hover-underline-gold::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--color-accent);
    transform: scale-x(0);
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    transform-origin: right;
}

.hover-underline-gold:hover::after {
    transform: scale-x(1);
    transform-origin: left;
}

/* Custom Select */
select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23b4975a'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2em;
    padding-right: 3rem;
    cursor: pointer;
}

select option {
    background: white;
    color: var(--color-primary);
}

.dark select option {
    background: #1a1a1a;
    color: white;
}

/* Swiper Custom Styles */
.lawyers-swiper {
    padding-bottom: 2rem;
}

.swiper-pagination-bullet {
    width: 8px;
    height: 8px;
    background: var(--color-accent) !important;
    opacity: 0.3;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    width: 24px;
    border-radius: 4px;
}

.lawyers-prev, .lawyers-next {
    cursor: pointer;
    z-index: 10;
}

.swiper-slide {
    opacity: 0 !important;
    transition: opacity 1s ease;
}

.swiper-slide-active {
    opacity: 1 !important;
}

/* Hero Section Layout Adjustments */
@media (min-width: 1024px) {
    .hero-image-container {
        perspective: 1000px;
    }
    
    .hero-image-container img {
        transform: rotateY(-5deg) rotateX(5deg);
        transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
    }
    
    .hero-image-container:hover img {
        transform: rotateY(0) rotateX(0);
    }
}
