html,
body {
    overflow-x: hidden;
    width: 100%;
}

:root {
    --primary-color: #1a2b3c;
    --secondary-color: #d4af37;
    --gold: #d4af37;
    --navy: #1a2b3c;
    --dark-navy: #0d1621;
    --bg-light: #f8f9fa;
    --transition: all 0.3s ease;
}

.container {
    padding-left: 20px;
    padding-right: 20px;
}

@media (max-width: 768px) {
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .section-title h2 {
        font-size: 1.8rem;
    }
}

.bg-navy {
    background-color: var(--navy) !important;
}

.bg-dark-navy {
    background-color: var(--dark-navy) !important;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

/* Navbar */
.main-nav {
    background: white;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    padding: 10px 0;
    transition: 0.3s;
    z-index: 1030;
}

.site-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    transition: 0.3s;
}

.sticky-scroll .site-logo {
    height: 60px;
}

.sticky-scroll.main-nav {
    padding: 5px 0;
}

.nav-link {
    font-weight: 500;
    color: var(--primary-color) !important;
    margin: 0 10px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 10px;
    right: 10px;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transition: 0.3s;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.btn-gold {
    background: var(--gold);
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-gold:hover {
    background: #c5a02c;
    color: white;
    transform: translateY(-2px);
}

/* Offcanvas & Mobile Menu Styling */
/* Modern Hamburger Icon */
.hamburger-icon {
    width: 30px;
    height: 20px;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-icon span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--primary-color);
    border-radius: 3px;
    transition: 0.3s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.hamburger-icon span:nth-child(2) {
    width: 70%;
    margin-left: auto;
}

.navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(2) {
    opacity: 0;
}

.navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* Offcanvas & Mobile Menu Styling */
@media (max-width: 991.98px) {
    .offcanvas {
        width: 320px !important;
        background: rgba(255, 255, 255, 0.9) !important;
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border-left: 1px solid rgba(255, 255, 255, 0.3);
    }

    .offcanvas-header {
        padding: 25px;
    }

    .offcanvas-body {
        padding: 30px 25px;
        display: flex;
        flex-direction: column;
    }

    .navbar-nav {
        align-items: stretch !important;
        flex-direction: column !important;
        flex-grow: 1;
        width: 100%;
        padding: 0;
    }

    .nav-item {
        width: 100%;
        margin-bottom: 8px;
    }

    .nav-link {
        margin: 0 !important;
        padding: 15px 20px !important;
        width: 100% !important;
        font-size: 1.15rem;
        font-weight: 600;
        color: var(--primary-color) !important;
        background: rgba(26, 43, 60, 0.03);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        transition: 0.3s all ease;
    }

    .nav-link::after {
        display: none;
    }

    .nav-link:hover,
    .nav-link:focus {
        background: var(--primary-color);
        color: white !important;
        transform: translateX(-5px);
    }

    .dropdown-menu {
        background: rgba(26, 43, 60, 0.05);
        border: none;
        margin-top: 5px !important;
        padding: 10px !important;
        border-radius: 12px !important;
    }

    .dropdown-item {
        padding: 12px 20px !important;
        font-weight: 500;
        border-radius: 8px;
        color: var(--primary-color);
    }

    .dropdown-item:hover {
        background: var(--gold);
        color: white;
    }

    /* Icon Circle for Mobile Info */
    .icon-circle {
        width: 35px;
        height: 35px;
        background: rgba(212, 175, 55, 0.15);
        color: var(--gold);
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        font-size: 0.9rem;
    }
}

@media (min-width: 992px) {
    .offcanvas {
        visibility: visible !important;
        transform: none !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
        background: none !important;
        border: none !important;
        flex-grow: 1;
    }

    .offcanvas-body {
        padding: 0 !important;
        display: flex !important;
        align-items: center;
        width: 100%;
    }

    .navbar-nav {
        flex-direction: row !important;
        width: auto !important;
        gap: 5px;
    }

    .nav-link {
        margin: 0 10px !important;
    }
}

/* Slider */
.hero-slider {
    height: calc(100vh - 80px);
}

.swiper-slide {
    position: relative;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(26, 43, 60, 0.7), rgba(26, 43, 60, 0.5));
    display: flex;
    align-items: center;
    color: white;
}

.slide-content h2 {
    font-size: 4rem;
    margin-bottom: 20px;
}

.slide-content p {
    font-size: 1.25rem;
    margin-bottom: 30px;
}

/* Practice Areas */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gold);
}

.text-start.section-title h2::after {
    left: 0;
    transform: none;
}

.practice-card {
    background: white;
    padding: 50px 35px;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    height: 100%;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
}

.practice-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gold);
    transform: scaleX(0);
    transition: 0.4s;
    transform-origin: left;
}

.practice-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.practice-card:hover::before {
    transform: scaleX(1);
}

.practice-card i {
    font-size: 3.5rem;
    color: var(--gold);
    margin-bottom: 30px;
    display: inline-block;
    transition: 0.4s;
}

.practice-card h4 {
    font-weight: 700;
    margin-bottom: 20px;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
}

.practice-card p {
    line-height: 1.7;
    margin-bottom: 30px;
}

.btn-read-more {
    color: var(--gold);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    transition: 0.3s;
}

.btn-read-more i {
    font-size: 1rem !important;
    margin-bottom: 0 !important;
    margin-left: 8px;
    display: inline-block;
    transform: translateY(1px);
    /* Manual nudge for perfect alignment */
    transition: 0.3s;
}

.btn-read-more:hover {
    color: var(--primary-color);
}

.btn-read-more:hover i {
    transform: translateX(5px);
    color: var(--primary-color);
}

/* CTA */
.cta-section {
    background: var(--primary-color);
    color: white;
    padding: 80px 0;
}

/* Gallery Hover Effect */
.gallery-item {
    position: relative;
    overflow: hidden;
    transition: 0.3s;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 43, 60, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.3s;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item img {
    transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Custom Lightbox */
.custom-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
    /* Hidden by default */
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    user-select: none;
}

.custom-lightbox.active .lightbox-image {
    transform: scale(1);
}

.lightbox-btn {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10000;
}

.lightbox-btn:hover {
    background: var(--gold);
    color: white;
}

.lb-close {
    top: 40px;
    right: 40px;
    background: var(--gold) !important;
    opacity: 1;
}

.lb-prev {
    left: -70px;
}

.lb-next {
    right: -70px;
}

@media (max-width: 992px) {
    .lb-prev {
        left: 20px;
        top: 50%;
        transform: translateY(-50%);
    }

    .lb-next {
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }

    .lb-close {
        top: 20px;
        right: 20px;
    }
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

/* Footer */
.footer {
    background: #0d1621;
    color: white;
}

.footer-logo {
    color: var(--gold);
    letter-spacing: 2px;
    font-weight: 800;
}

.footer .text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

.footer h5,
.footer h4 {
    color: white;
}

.footer-contact li {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 15px;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    transition: 0.3s;
}

.social-links a:hover {
    background: var(--gold);
}

.text-gold {
    color: var(--gold) !important;
}

@media (max-width: 768px) {
    .slide-content h2 {
        font-size: 1.85rem !important;
        line-height: 1.3;
    }

    .slide-content p {
        font-size: 1rem !important;
        margin-bottom: 20px;
    }

    .practice-card {
        padding: 30px 20px !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important;
        border-radius: 15px !important;
    }

    .practice-card i {
        font-size: 2rem !important;
        margin-bottom: 15px !important;
    }

    .practice-card h4 {
        font-size: 1.15rem !important;
        margin-bottom: 10px !important;
    }

    .practice-card p {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
        margin-bottom: 20px !important;
        opacity: 0.8 !important;
    }

    .btn-read-more {
        font-size: 0.8rem !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        line-height: normal !important;
    }

    .btn-read-more i {
        font-size: 0.9rem !important;
        margin: 0 !important;
        display: block !important;
        position: relative !important;
        top: -0.5px !important;
        /* Precision nudge */
    }

    .hero-slider {
        height: 60vh !important;
    }
}