/* Custom Styles for OneLaw */

:root {
    --primary-color: #00152f;
    --accent-color: #D4AF37; /* Metallic Gold */
    --gold-light: #F3D582;
    --gold-dark: #AA8C2C;
    --text-color: #212529;
    --light-gray: #f8f9fa;
    --dark-gray: #6c757d;
    --white: #ffffff;
}

body {
    font-family: 'Be Vietnam Pro', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
}

/* Utility Classes */
.letter-spacing-2 {
    letter-spacing: 2px;
}

.opacity-90 {
    opacity: 0.9;
}

.fs-7 {
    font-size: 0.9rem;
}

.ls-1 {
    letter-spacing: 1px;
}

/* Navbar */
.bg-primary-dark {
    background-color: var(--primary-color) !important;
}

.navbar {
    background-color: var(--primary-color) !important;
    transition: all 0.4s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar.scrolled {
    background-color: rgba(0, 21, 47, 0.98) !important;
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2) !important;
}


.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: var(--accent-color);
}

.navbar-nav .nav-link {
    font-weight: 600;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background-color: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 80%;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent-color);
}

/* Dropdown Styles */
.dropdown-menu {
    border-radius: 10px;
    margin-top: 0 !important;
    min-width: 280px;
    background-color: #ffffff;
    animation: dropdownFade 0.3s ease forwards;
    border: none;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* Bridge to prevent menu from disappearing when moving mouse */
.dropdown-menu::before {
    content: "";
    position: absolute;
    top: -10px;
    left: 0;
    width: 100%;
    height: 10px;
    background: transparent;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    transition: all 0.3s ease;
    font-weight: 500;
}

.dropdown-item:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
    padding-left: 2rem !important;
}

.dropdown-item i {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.dropdown-item:hover i {
    transform: scale(1.2);
}

/* Desktop Hover Dropdown */
@media (min-width: 992px) {
    .nav-item.dropdown:hover .dropdown-menu {
        display: block;
    }
}


.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    background: url('https://onelawvn.com/wp-content/uploads/2025/12/NJN_2961-1.webp') no-repeat center center;
    background-size: cover;
    background-attachment: fixed; /* Parallax Effect */
    height: 100vh;
    min-height: 600px;
    position: relative;
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 21, 47, 0.6) 0%, rgba(0, 21, 47, 0.4) 100%);
}

.btn-accent {
    background: linear-gradient(45deg, var(--accent-color), var(--gold-light), var(--accent-color));
    background-size: 200% auto;
    border: none;
    color: var(--primary-color);
    font-weight: 700;
    transition: all 0.5s ease;
}

.btn-accent:hover {
    background-position: right center;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

/* Text Accent */
.text-accent {
    color: var(--accent-color) !important;
    background: linear-gradient(45deg, var(--accent-color), var(--gold-light), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    background-size: 200% auto;
    animation: shine 3s linear infinite;
}

/* Text Accent for non-text-clip elements (like icons) */
i.text-accent {
    background: none;
    -webkit-text-fill-color: initial;
    color: var(--accent-color) !important;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

/* Background Dark Blue */
.bg-dark-blue {
    background-color: var(--primary-color);
}

.divider {
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
}

/* Service Cards */
.service-card {
    transition: all 0.4s ease;
    border-radius: 0;
}

.service-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15) !important;
}

.service-icon-header {
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-icon-header::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    transition: all 0.6s ease;
}

.service-card:hover .service-icon-header::before {
    transform: scale(1.2);
}

.service-card:hover .service-icon-header {
    background-color: #001c3d !important;
}

.icon-wrapper {
    transition: all 0.4s ease;
    z-index: 1;
}

.service-card:hover .icon-wrapper {
    transform: scale(1.1) rotate(5deg);
    background-color: rgba(255, 255, 255, 0.15) !important;
}


.read-more-link i {
    transition: transform 0.3s ease;
}

.read-more-link:hover i {
    transform: translateX(5px);
}

/* Footer */
.text-light-gray {
    color: #adb5bd;
}

.footer-links li a:hover {
    color: var(--accent-color) !important;
    padding-left: 10px;
    transition: all 0.3s ease;
}

.brightness-0 {
    filter: brightness(0);
}

.invert {
    filter: invert(1);
}

/* Modal Styling */
.modal-content {
    border: none;
}

.modal-header {
    background-color: var(--primary-color);
    overflow: hidden;
}

.modal-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, var(--primary-color) 0%, #002a5c 100%);
    z-index: 1;
}

.modal-header-bg::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%;
}

.form-floating > .form-control {
    border-bottom: 2px solid #eee !important;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

.form-floating > .form-control:focus {
    border-bottom-color: var(--accent-color) !important;
    background-color: #fff;
    box-shadow: none;
}

.form-floating > label {
    color: var(--dark-gray);
}

.form-floating > .form-control:focus ~ label,
.form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--accent-color);
    font-weight: 600;
}

.navbar-brand img {
    transition: all 0.3s ease;
}

.navbar-brand .border-start {
    border-width: 2px !important;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Pulse Animation for Hotline */
@keyframes pulse-white {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.animate-pulse {
    animation: pulse-white 2s infinite;
}

/* About Section Enhancements */
.about-shape {
    position: absolute;
    top: 10%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    z-index: 1;
}

.about-experience-badge {
    position: absolute;
    bottom: 30px;
    right: 0;
    background: white;
    padding: 20px;
    border-radius: 15px;
    min-width: 140px;
    z-index: 3;
    border-bottom: 4px solid var(--accent-color);
}

.feature-box-v2 {
    transition: all 0.3s ease;
}

.feature-box-v2:hover .icon-box {
    transform: scale(1.1);
    color: var(--primary-color);
}

.feature-box-v2 .icon-box {
    transition: all 0.3s ease;
}

.grayscale {
    filter: grayscale(100%);
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .navbar-brand img {
        height: 40px !important;
    }
    
    .hero {
        height: auto;
        padding: 210px 0 100px; /* Increased top padding by 60px */
    }
    
    .display-3 {
        font-size: 1.75rem; /* Reduced by 30% from 2.5rem */
    }

    .hero .lead {
        font-size: 0.9rem; /* Reduced to match smaller scale */
    }

    .hero span.letter-spacing-2 {
        font-size: 0.75rem;
    }
    
    .image-border-accent {
        display: none;
    }
}

/* Service Page Styles */
.page-header {
    background-attachment: fixed;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

.service-list a {
    transition: all 0.3s ease;
}

.hover-bg-light:hover {
    background-color: #f8f9fa;
}

.service-list a:hover {
    color: var(--accent-color) !important;
    padding-left: 1rem !important;
}

.hover-accent:hover i {
    transform: translateX(5px);
    transition: transform 0.3s ease;
}

.accordion-button:not(.collapsed) {
    color: var(--primary-color);
    background-color: rgba(212, 175, 55, 0.1);
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.125);
}

.accordion-button:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.25rem rgba(212, 175, 55, 0.25);
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2300152f'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2300152f'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* Custom Buttons */
.btn-outline-primary-dark {
    color: var(--primary-color);
    border-color: var(--primary-color);
    transition: all 0.3s ease;
}

.btn-outline-primary-dark:hover {
    background-color: var(--primary-color);
    color: var(--accent-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.ls-1 {
    letter-spacing: 1px;
}

.bg-gradient-to-t {
    background: linear-gradient(to top, var(--bs-white), transparent);
}

/* Mobile Sticky Footer */
.mobile-footer-menu {
    z-index: 1030;
    box-shadow: 0 -5px 25px rgba(0,0,0,0.15) !important;
    animation: slideUp 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 55px; /* Fixed smaller height */
    display: flex;
    align-items: center;
}

.mobile-footer-menu .row {
    width: 100%;
}

.mobile-footer-menu .col a {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.mobile-footer-menu .col a i {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mobile-footer-menu .col a:active i {
    transform: scale(1.2) translateY(-3px);
    color: var(--accent-color);
}

.mobile-footer-menu .col a span {
    font-size: 0.6rem !important; /* Smaller text */
    display: block;
    margin-top: -2px;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.x-small {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Adjust body padding for mobile footer */
@media (max-width: 991.98px) {
    body {
        padding-bottom: 55px;
    }
}



