/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0a1a30;
    --primary-light: #1a3a5f;
    --secondary: #79d5fe;
    --secondary-dark: #86c9e4;
    --accent: #8b0000;
    --light: #f8f9fa;
    --dark: #1e1e1e;
    --gray: #6c757d;
    --transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.15);
}

body {
    line-height: 1.7;
    color: var(--dark);
    background-color: var(--light);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.container {
    width: 90%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 6rem 0;
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    display: inline-block;
    position: relative;
    padding-bottom: 1rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray);
    max-width: 700px;
    margin: 1rem auto 0;
}

/* Custom Cursor */
.cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--secondary);
    border-radius: 50%;
    position: fixed;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: all 0.1s ease;
    transition-property: width, height, background;
}

.cursor.hover {
    width: 50px;
    height: 50px;
    background-color: var(--secondary);
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.5s ease;
}

.loader {
    width: 80px;
    height: 80px;
    border: 5px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    border-top-color: var(--secondary);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* Particles Background */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

/* Header */
header {
    background: rgba(10, 26, 48, 0.9);
    backdrop-filter: blur(12px);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: 0.3s ease;
}

header.scrolled {
    padding: 0.6rem 0;
    background: rgba(10, 26, 48, 0.98);
}

/* Container Flex Layout */
.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* LOGO */
.logo img {
    width: 90px;
    height: px;
    object-fit: contain;
}

/* Navigation */
.navbar {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.navbar ul {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.navbar ul li a {
    color: white;
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.navbar ul li a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    left: 0;
    bottom: -3px;
    background: var(--secondary);
    transition: width 0.3s;
}

.navbar ul li a:hover::after {
    width: 100%;
}

/* CTA Button in Nav */
.nav-btn {
    background: var(--secondary);
    padding: 0.6rem 1rem;
    border-radius: 6px;
    color: #fff;
    font-weight: 600;
}

.nav-btn:hover {
    background: var(--primary);
}

/* Mobile Button */
.mobile-menu-btn {
    display: none;
    color: white;
    font-size: 1.8rem;
    border: none;
    background: none;
    cursor: pointer;
}
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 98;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Mobile Responsive */
@media (max-width: 850px) {
    .mobile-menu-btn {
        display: block;
    }

    .navbar {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 260px;
        background: rgba(10, 26, 48, 0.97);
        backdrop-filter: blur(12px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.4s ease;
    }

    .navbar.active {
        right: 0;
    }

    .navbar ul {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* Page Banner */
.page-banner {
    background: linear-gradient(rgba(10, 26, 48, 0.85), rgba(10, 26, 48, 0.9)), url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 15rem 0 8rem;
    text-align: center;
    margin-top: 80px;
}

.page-banner h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.breadcrumb a {
    color: var(--secondary);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: white;
}

.breadcrumb span {
    color: rgba(255, 255, 255, 0.7);
}

/* Practice Detail Section */
.practice-detail {
    background: var(--light);
}

.practice-detail-content {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 4rem;
    margin-top: 3rem;
}

.practice-main {
    background: white;
    border-radius: 10px;
    padding: 3rem;
    box-shadow: var(--shadow);
}

.practice-sidebar {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: var(--shadow);
    height: fit-content;
    position: sticky;
    top: 100px;
}

.practice-section {
    margin-bottom: 3rem;
}

.practice-section h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    position: relative;
    padding-bottom: 0.5rem;
}

.practice-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--secondary);
}

.service-list {
    list-style: none;
    margin-top: 1.5rem;
}

.service-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    padding-left: 2rem;
}

.service-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--secondary);
    position: absolute;
    left: 0;
    top: 0.8rem;
}

.service-list li:last-child {
    border-bottom: none;
}

.practice-feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
}

.feature-icon {
    background: var(--primary);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1.5rem;
    flex-shrink: 0;
}

.feature-content h4 {
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.case-study {
    background: var(--light);
    border-radius: 10px;
    padding: 2rem;
    margin-top: 2rem;
    border-left: 4px solid var(--secondary);
}

.case-study h4 {
    color: var(--primary);
    margin-bottom: 1rem;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 1s forwards 1.1s;
    box-shadow: 0 5px 15px rgba(201, 169, 110, 0.3);
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(201, 169, 110, 0.4);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
    margin-left: 1rem;
}

.btn-outline:hover {
    background: var(--secondary);
    color: white;
}


.contact-widget {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-widget h4 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.contact-info {
    margin: 1.5rem 0;
}

.contact-info p {
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
}

.contact-info i {
    margin-right: 10px;
    color: var(--secondary);
    margin-top: 0.2rem;
    min-width: 16px;
}

/* Practice Areas */
.practice-areas {
    background: white;
}

.practice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 40px;
}

.practice-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    transform: translateY(30px);
    opacity: 0;
    position: relative;
}

.practice-card.visible {
    transform: translateY(0);
    opacity: 1;
}

.practice-card:hover {
    transform: translateY(-15px);
    box-shadow: var(--shadow-lg);
}

.practice-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.practice-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.practice-card:hover .practice-image img {
    transform: scale(1.05);
}

.practice-content {
    padding: 0 2rem 2rem;
    position: relative;
    text-align: center;
}

.practice-content h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: var(--primary);
}

.practice-content p {
    margin-bottom: 1.5rem;
    color: var(--gray);
    line-height: 1.6;
}

.practice-link {
    color: var(--secondary);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    text-decoration: none;
}

.practice-link:hover {
    gap: 1rem;
    color: var(--primary);
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta .btn {
    background: var(--secondary);
    color: var(--primary);
    border-color: var(--secondary);
}

.cta .btn:hover {
    background: transparent;
    color: var(--secondary);
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 4rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo-container {
    margin-bottom: 1.5rem;
}

.footer-logo-container img {
    width: 100px;
    height: auto;
    transition: var(--transition);
}

.footer-logo-container img:hover {
    transform: scale(1.05);
}

.footer-about p {
    margin-bottom: 1.5rem;
    opacity: 0.8;
    line-height: 1.6;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--secondary);
    transform: translateY(-3px);
}

.footer-links h4,
.footer-contact h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links h4::after,
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--secondary);
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: #ccc;
    transition: var(--transition);
    display: inline-block;
    text-decoration: none;
    font-size: 0.95rem;
}

.footer-links ul li a:hover {
    color: white;
    transform: translateX(5px);
}

/* Contact Info Styles */
.footer-contact .contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    color: #ccc;
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-item i {
    color: var(--secondary);
    margin-top: 0.2rem;
    min-width: 16px;
}

.contact-item a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition);
}

.contact-item a:hover {
    color: white;
}

.contact-item div {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 1rem;
}

.copyright p,
.development-credit p {
    color: #999;
    font-size: 0.9rem;
    margin: 0;
}

.development-credit a {
    color: var(--secondary);
    text-decoration: none;
    transition: var(--transition);
}

.development-credit a:hover {
    text-decoration: underline;
    color: white;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 999;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: none;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Responsive Styles */
@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    footer {
        padding: 3rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-links h4::after,
    .footer-contact h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-links {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 480px) {
    .footer-content {
        gap: 1.5rem;
    }
    
    .footer-logo-container img {
        width: 80px;
    }
    
    .social-links {
        gap: 0.8rem;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
    }
}