/* Reset and ensure menu button visibility */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Quincy', sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Navigation and Menu Button Layout */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 5%;
    background: rgba(255, 255, 255, 0.98);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px); /* Adds a slight blur effect to the background */
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative; /* Changed from fixed to relative */
    z-index: 1001;
}

.logo-image {
    width: 40px;
    height: 40px;
    background: #000;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.logo-image img {
    width: 28px;  /* Increased size */
    height: auto;
    filter: invert(1) brightness(1.5); /* Makes the T brighter */
    transition: all 0.3s ease;
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: #000;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #666;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 35px;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    color: white;
    background: #333;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    border: 2px solid #333;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    letter-spacing: 0.5px;
    margin-top: 2rem;
    z-index: 1;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s ease-out;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.cta-button:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.cta-button:active {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
    padding: 20px;
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Slideshow Styles */
.slideshow-container {
    width: 100%;
    height: 100%;
    position: relative;
    margin: auto;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    animation-duration: 1.5s;
}

.slideshow-container .slide:first-of-type {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('lawfirm2.jpg') no-repeat center center;
    background-size: cover;
}

.slideshow-container .slide:nth-child(2) {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('lawfirm.jpg') no-repeat center center; /* Darker gradient */
    background-size: cover;
}

.slide.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.slideshow-image {
    width: 100%;
    max-width: 800px;
    height: 400px; /* Slightly reduced height */
    object-fit: fill;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

/* Ensure the last image doesn't get cut off */
.slideshow-image:last-child {
    margin-bottom: 80px; /* Extra space for the button */
}

.slideshow-image:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.image-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 80vh; /* Reduced from 85vh to ensure content fits */
    overflow-y: auto;
    padding: 20px;
    align-items: center;
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
    margin-bottom: 60px; /* Add margin at bottom for the button */
}

.image-gallery::-webkit-scrollbar {
    width: 6px;
}

.image-gallery::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.image-gallery::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

/* Next & previous buttons */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -30px;
    padding: 16px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev {
    left: 0;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* The dots/bullets/indicators */
.slideshow-dots {
    position: absolute;
    bottom: 70px;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active-dot, .dot:hover {
    background-color: white;
}

/* Fading animation */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}

/* Practice Areas */
.practice-areas {
    position: relative;
    padding: 5rem 10%;
    background: #f5f5f5;
    overflow: hidden;
}

.practice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.practice-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.practice-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.practice-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.practice-card h3 {
    color: var(--text-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.practice-card p {
    color: #666;
    line-height: 1.6;
}

.animated-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.25; /* Increased visibility */
}

/* Circular logo pattern */
.logo-pattern {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px; /* Larger container for the circle */
    height: 800px;
    transform: translate(-50%, -50%);
}

/* Individual circular logos */
.logo-pattern::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('t-logo.png');
    background-size: 150px;
    background-repeat: space;
    mask: radial-gradient(circle at center, 
        transparent 30%,
        black 30%,
        black 45%,
        transparent 45%,
        transparent 60%,
        black 60%,
        black 75%,
        transparent 75%
    );
    -webkit-mask: radial-gradient(circle at center,
        transparent 30%,
        black 30%,
        black 45%,
        transparent 45%,
        transparent 60%,
        black 60%,
        black 75%,
        transparent 75%
    );
    opacity: 0.8;
    filter: contrast(150%);
}

/* Gradient overlay for depth */
.gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0) 0%,
        rgba(245, 245, 245, 0.2) 50%,
        rgba(245, 245, 245, 0.4) 100%
    );
    z-index: 1;
}

/* Ensure content stays above background */
.practice-areas > h2,
.practice-grid {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.9); /* Add slight background to content */
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Attorneys Section */
.attorneys {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    padding: 4rem 2rem;
    min-height: 100vh;
    position: relative;
}

.attorneys h2 {
    color: #ffffff;
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

.attorney-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.attorney-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    backdrop-filter: blur(10px);
    text-align: center;
}

.attorney-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 1);
    border: 1px solid var(--accent-color);
}

.attorney-card img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    object-fit: cover;
    border: 4px solid #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.attorney-card:hover img {
    transform: scale(1.05);
    border-color: var(--accent-color);
}

.attorney-card h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.team-description {
    color: var(--gradient-1);
    line-height: 1.6;
    font-size: 1rem;
    margin-top: 1rem;
}

/* Background Animation for Team Page */
.attorneys .animated-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.attorneys .logo-pattern {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, 
        rgba(52, 152, 219, 0.1) 25%, 
        rgba(44, 62, 80, 0.1) 25%, 
        rgba(44, 62, 80, 0.1) 50%, 
        rgba(52, 152, 219, 0.1) 50%, 
        rgba(52, 152, 219, 0.1) 75%, 
        rgba(44, 62, 80, 0.1) 75%, 
        rgba(44, 62, 80, 0.1));
    background-size: 100px 100px;
    animation: moveBackground 15s linear infinite;
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .attorneys {
        padding: 3rem 1rem;
    }

    .attorney-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 2rem;
    }

    .attorney-card {
        padding: 1.5rem;
    }

    .attorney-card img {
        width: 150px;
        height: 150px;
    }
}

/* Contact Section */
.contact {
    position: relative;
    padding: 6rem 8%;
    background: #f9f9f9;
    overflow: hidden;
    min-height: 100vh;
}

.contact .animated-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Modern circular logo pattern */
.contact .logo-pattern {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1200px; /* Larger container for better coverage */
    height: 1200px;
    transform: translate(-50%, -50%);
}

.contact .logo-pattern::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('t-logo.png');
    background-size: 180px;
    opacity: 0.5;
    filter: contrast(180%) brightness(0.95);
    mask: repeating-radial-gradient(
        circle at center,
        black 0px,
        black 80px,
        transparent 80px,
        transparent 120px,
        black 120px,
        black 200px,
        transparent 200px,
        transparent 240px
    );
    -webkit-mask: repeating-radial-gradient(
        circle at center,
        black 0px,
        black 80px,
        transparent 80px,
        transparent 120px,
        black 120px,
        black 200px,
        transparent 200px,
        transparent 240px
    );
}

/* Modern gradient overlay */
.contact .gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at center,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(0, 0, 0, 0.05) 50%,
        rgba(0, 0, 0, 0.1) 100%
    );
    z-index: 1;
}

/* Professional content styling */
.contact-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    position: relative;
    z-index: 2;
}

.contact-info-container {
    padding: 40px;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.contact-info-header {
    margin-bottom: 30px;
}

.contact-info-header h2 {
    font-size: 2.5rem;
    color: #1a1a1a;
    margin-bottom: 15px;
    font-weight: 600;
}

.contact-info-header p {
    color: #555;
    line-height: 1.6;
    font-size: 1.1rem;
}

.contact-details {
    margin-top: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px;
    background: rgba(245, 245, 245, 0.5);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: rgba(240, 240, 240, 0.8);
    transform: translateX(5px);
}

.contact-item i {
    font-size: 24px;
    color: #333;
    margin-right: 15px;
}

.contact-form-container {
    padding: 40px;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #333;
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
    outline: none;
}

.submit-btn {
    background: #333;
    color: white;
    padding: 14px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #222;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive design */
@media (max-width: 992px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .contact {
        padding: 4rem 5%;
    }
    
    .contact-info-container,
    .contact-form-container {
        padding: 30px;
    }
}

/* Footer */
footer {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('lawfirm2.jpg') no-repeat center center;
    background-size: cover;
    color: white;
    padding: 3rem 10% 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section a {
    color: white;
    text-decoration: none;
}

.social-links {
    display: flex;
    gap: 1rem;
    font-size: 1.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hamburger {
        display: block;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background: #000;
    margin: 5px 0;
    transition: 0.3s;
}

/* About Section with Background Pattern */
.about {
    position: relative;
    padding: 5rem 10%;
    background: #f8f8f8;
    overflow: hidden;
}

.about .animated-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.4;
}

/* Circular logo pattern for About section */
.about .logo-pattern {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1000px;
    height: 1000px;
    transform: translate(-50%, -50%);
}

.about .logo-pattern::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('t-logo.png');
    background-size: 180px;
    background-repeat: space;
    mask: radial-gradient(circle at center, 
        transparent 20%,
        black 20%,
        black 40%,
        transparent 40%,
        transparent 60%,
        black 60%,
        black 80%,
        transparent 80%
    );
    -webkit-mask: radial-gradient(circle at center,
        transparent 20%,
        black 20%,
        black 40%,
        transparent 40%,
        transparent 60%,
        black 60%,
        black 80%,
        transparent 80%
    );
    opacity: 0.9;
    filter: contrast(180%) brightness(0.9);
    background-color: rgba(0, 0, 0, 0.1);
}

.about .gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        circle at center,
        rgba(0, 0, 0, 0.05) 0%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.15) 100%
    );
    z-index: 1;
}

/* About content styling */
.about-content {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.about-features {
    position: relative;
    z-index: 2;
}

.feature {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.15);
    background: white;
}

/* Section Headers */
h2 {
    color: #000;
}

/* Buttons and Interactive Elements */
button {
    background: #000;
    color: white;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: #333;
}

/* Hamburger Menu */
.hamburger span {
    background: #000;
}

/* Social Links */
.social-links a {
    color: white;
    transition: color 0.3s;
}

.social-links a:hover {
    color: #ccc;
}

/* Additional Elements */
.attorney-card {
    transition: transform 0.3s;
}

.attorney-card:hover {
    transform: translateY(-5px);
}

/* Responsive Design - keeping the black and white theme */
@media (max-width: 768px) {
    .nav-links.active {
        background: rgba(255, 255, 255, 0.95);
    }
}

/* Update page-section class with more padding */
.page-section {
    padding-top: 150px; /* Increased padding further */
    min-height: calc(100vh - 200px);
    position: relative;
    z-index: 1;
}

/* Update navigation links for active state */
.nav-links a.active {
    color: #666;
}

/* Navigation wrapper */
.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Menu Button and Mobile Navigation */
.menu-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    background: #000000;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.menu-btn__burger,
.menu-btn__burger::before,
.menu-btn__burger::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 3px;
    background: #ffffff;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.menu-btn__burger::before {
    transform: translateY(-8px);
}

.menu-btn__burger::after {
    transform: translateY(8px);
}

/* Animation for menu button */
.menu-btn.active .menu-btn__burger {
    background: transparent;
}

.menu-btn.active .menu-btn__burger::before {
    transform: rotate(45deg);
}

.menu-btn.active .menu-btn__burger::after {
    transform: rotate(-45deg);
}

/* Mobile Navigation Menu */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 1000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.mobile-nav a {
    color: white;
    text-decoration: none;
    font-size: 24px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.mobile-nav a i {
    margin-right: 15px;
    font-size: 24px;
    width: 30px;
    text-align: center;
}

.mobile-nav a:hover {
    color: var(--accent-color);
    transform: translateX(10px);
}

/* Hide menu button on desktop */
@media screen and (min-width: 769px) {
    .menu-btn {
        display: none;
    }
}

/* Show menu button on mobile */
@media screen and (max-width: 768px) {
    .menu-btn {
        display: flex;
    }
}

/* More Visible Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
   /* background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('lawfirm2.jpg');*/
    background-size: cover, 400% 400%;
    background-position: center, 0% 50%;
    z-index: -1;
    overflow: hidden;
    animation: gradientMove 15s ease infinite;
    pointer-events: none;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Keep existing floating logo animations */
.floating-logo {
    position: absolute;
    width: 200px;
    height: 200px;
    background: url('t-background.png') no-repeat center center;
    background-size: contain;
    opacity: 0.8;
    filter: none;
    animation: float 20s infinite ease-in-out;
    box-shadow: none;
    background-color: transparent;
}

.floating-logo:nth-child(1) {
    top: 5%;
    left: 5%;
    animation-delay: 0s;
    background-color: transparent;
}

.floating-logo:nth-child(2) {
    top: 50%;
    left: 70%;
    width: 150px;
    height: 150px;
    animation-delay: -7s;
    filter: none;
}

.floating-logo:nth-child(3) {
    top: 70%;
    left: 30%;
    width: 125px;
    height: 125px;
    animation-delay: -14s;
    opacity: 0.8;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
    25% {
        transform: translate(100px, 100px) rotate(90deg) scale(1.1);
    }
    50% {
        transform: translate(0, 200px) rotate(180deg) scale(1);
    }
    75% {
        transform: translate(-100px, 100px) rotate(270deg) scale(0.9);
    }
    100% {
        transform: translate(0, 0) rotate(360deg) scale(1);
    }
}

/* Gradient Overlay */
.gradient-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(
        45deg,
        rgba(255,255,255,0.95) 0%,
        rgba(245,245,245,0.95) 100%
    );
    z-index: -1;
    pointer-events: none;
}

/* Enhanced Parallax Effect */
.parallax-effect {
    transition: transform 0.2s ease-out;
}

/* Add shadow for depth */
.floating-logo {
    box-shadow: none;
    border-radius: 0;
}

.overview {
    padding: 60px 20px;
    text-align: center;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 40px;
    padding: 0 20px;
}

.link-card {
    background: #f5f5f5;
    padding: 30px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

@media screen and (max-width: 768px) {
    .quick-links {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }
}

/* Tab Icon Styles */
.nav-links a i {
    margin-right: 8px;
    font-size: 1.1em;
    transition: transform 0.3s ease;
}

.nav-links a:hover i {
    transform: scale(1.2);
}

.nav-links a.active i {
    color: var(--accent-color);
}

/* Mobile Nav Icons */
.mobile-nav a i {
    margin-right: 10px;
    font-size: 1.2em;
    width: 25px;
    text-align: center;
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .practice-grid {
        grid-template-columns: 1fr;
        padding: 1rem;
    }
}

/* Alternative using similar Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700&family=Source+Sans+Pro:wght@300;400;600&display=swap');

:root {
    --heading-font: 'Playfair Display', serif; /* Similar to Givenly */
    --body-font: 'Source Sans Pro', sans-serif; /* Similar to Quincy */
}

/* Global Typography */
body {
    font-family: var(--body-font);
    line-height: 1.6;
}

/* Headings Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 600;
}

/* Specific Element Typography */
.logo h1 {
    font-family: var(--heading-font);
    font-size: 2.2rem;
}

.nav-links a {
    font-family: var(--body-font);
    font-weight: 500;
}

.practice-card h3 {
    font-family: var(--heading-font);
    font-size: 1.5rem;
}

.practice-card p {
    font-family: var(--body-font);
    font-size: 1rem;
}

.attorney-card h3 {
    font-family: var(--heading-font);
    font-size: 1.5rem;
}

.team-description {
    font-family: var(--body-font);
    font-size: 1rem;
}

.contact-form label {
    font-family: var(--body-font);
    font-weight: 500;
}

.footer-content h3 {
    font-family: var(--heading-font);
    font-size: 1.3rem;
}

/* Mobile Menu Typography */
.mobile-nav a {
    font-family: var(--heading-font);
    font-size: 1.2rem;
}

/* Enhanced Location Button Styling */
.location-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #000000; /* Pure black */
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    margin-top: 15px;
    transition: all 0.3s ease;
    font-family: var(--body-font);
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 2px solid #000000;
    width: auto;
    min-width: 200px;
}

.location-btn:hover {
    background: #333333; /* Dark gray on hover */
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    border-color: #333333;
}

.location-btn i {
    font-size: 1.2em;
    margin-right: 5px;
    color: #ffffff; /* White icon */
}

/* Enhanced Contact Item with Black Theme */
.contact-item {
    background: rgba(255, 255, 255, 0.98);
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.3);
}

.contact-item h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-family: var(--heading-font);
    font-size: 1.4rem;
    font-weight: 600;
}

.contact-item p {
    margin-bottom: 1rem;
    color: #34495e;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Responsive Adjustments */
@media screen and (max-width: 768px) {
    .location-btn {
        width: 100%;
        padding: 15px 25px;
        font-size: 1.1rem;
    }
    
    .contact-item {
        padding: 1.5rem;
    }
}

/* Access Location Button Styling */
.location-container {
    width: 100%;
}

.access-location-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: #000000;
    color: white;
    padding: 15px 25px;
    border: none;
    border-radius: 10px;
    margin: 15px 0;
    cursor: pointer;
    font-family: var(--body-font);
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    gap: 10px;
}

.access-location-btn i {
    font-size: 1.2em;
}

.access-location-btn:hover {
    background: #333333;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.location-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #f8f9fa;
    border-radius: 10px;
    margin-top: 10px;
}

.location-content.active {
    max-height: 500px;
    padding: 20px;
    border: 1px solid #e9ecef;
}

.location-content p {
    margin-bottom: 15px;
    color: #333333;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Add specific heading styles for main sections */
.practice-areas h2,
.attorneys h2,
.about .about h2,
.contact h2 {
    position: relative;
    z-index: 2;
    margin-bottom: 2rem;
    text-align: center;
    color: #000;
    font-size: 2.2rem;
    font-weight: 600;
    font-family: var(--heading-font);
}

/* Mobile-specific adjustments */
@media screen and (max-width: 768px) {
    .page-section {
        padding-top: 140px; /* Increased padding for mobile */
        margin-top: 20px; /* Added margin for extra spacing */
    }

    nav {
        padding: 0.8rem 5%;
    }

    .practice-areas h2,
    .attorneys h2,
    .about h2,
    .contact h2 {
        font-size: 1.8rem;
        margin-top: 2rem; /* Increased top margin */
        padding-top: 1rem; /* Added padding */
    }

    /* Adjust hero section specifically */
    .hero.page-section {
        padding-top: 160px; /* Extra padding for hero section */
    }

    /* Ensure content containers have proper z-index */
    .practice-grid,
    .attorney-grid,
    .about-container,
    .contact-content {
        position: relative;
        z-index: 2;
    }

    /* Adjust background opacity for better readability */
    .animated-background {
        opacity: 0.15;
    }
}

/* Add styles for scroll behavior */
.nav-scroll {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Mobile adjustments */
@media screen and (max-width: 768px) {
    .logo h1 {
        font-size: 1.3rem; /* Slightly smaller text on mobile */
    }

    .logo-image {
        width: 35px; /* Slightly smaller logo on mobile */
        height: 35px;
    }
}

/* Responsive content adjustments */
@media screen and (max-width: 768px) {
    /* General page section adjustments */
    .page-section {
        padding: 140px 15px 40px; /* Top, left/right, bottom padding */
        width: 100%;
        overflow-x: hidden;
    }

    /* Navigation adjustments */
    nav {
        padding: 0.8rem 15px;
    }

    /* Grid layouts */
    .practice-grid,
    .attorney-grid,
    .quick-links {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 15px;
        width: 100%;
    }

    /* Cards and content containers */
    .practice-card,
    .attorney-card,
    .link-card,
    .contact-item,
    .contact-form-container,
    .contact-info-container,
    .about-content {
        padding: 20px;
        margin: 10px 0;
        width: 100%;
        box-sizing: border-box;
    }

    /* Hero section */
    .hero-content {
        padding: 20px;
        width: 100%;
        max-width: 100%;
    }

    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.3;
    }

    .hero-content p {
        font-size: 1rem;
        margin: 15px 0;
    }

    /* Contact form */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 15px;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        padding: 12px;
    }

    /* Footer adjustments */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 30px 15px;
    }

    /* Attorney cards specific adjustments */
    .attorney-card img {
        width: 150px;
        height: 150px;
    }

    .attorney-card h3 {
        font-size: 1.3rem;
    }

    /* About section */
    .about-features {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 15px;
    }

    .feature {
        padding: 20px;
    }

    /* Overview section */
    .overview {
        padding: 30px 15px;
    }

    .overview h2 {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    /* Contact section specific */
    .location-btn,
    .access-location-btn {
        width: 100%;
        padding: 12px;
        font-size: 1rem;
    }

    /* Ensure images don't overflow */
    img {
        max-width: 100%;
        height: auto;
    }

    /* Text adjustments */
    p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    h2 {
        font-size: 1.8rem;
        margin-bottom: 20px;
    }

    h3 {
        font-size: 1.3rem;
    }
}

/* Additional adjustments for very small screens */
@media screen and (max-width: 360px) {
    .logo h1 {
        font-size: 1.1rem;
    }

    .logo-image {
        width: 30px;
        height: 30px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .page-section {
        padding-top: 120px;
    }
}

/* Ensure content doesn't overflow horizontally */
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Container max-width for larger screens */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
    box-sizing: border-box;
}

/* Add this to your CSS */
.fa-hand-holding-rand {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.fa-hand-holding-rand::after {
    content: 'R';
    font-weight: bold;
    font-size: 0.8em;
    position: absolute;
    right: -3px;
    top: 50%;
    transform: translateY(-50%);
}

/* Contact Form Message Styles */
.message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 5px;
    text-align: center;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
