/* Global Styles */
:root {
    --primary-color: #1a1a2e;
    --secondary-color: #bc841c;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --dark-bg: #1a1a2e;
    --animation-timing: cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.navbar-brand .text-warning {
    color: #bc841c !important;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
    color: var(--primary-color);
}

.nav-link:hover,
.nav-link.active {
    color: var(--secondary-color) !important;
}

.navbar-toggler-icon {
    filter: invert(1);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%231a1a2e' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Hero Section */
.hero-section {
    position: relative;
    background-size: cover;
    background-position: center;
    padding-top: 120px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1; /* Ensure video is behind content */
}

.video-background video {
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 46, 0.8); /* Overlay color */
    z-index: 0;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    position: relative;
    z-index: 1;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

/* Page Header */
.page-header {
    background: #000000;
    padding: 150px 0 80px;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.breadcrumb {
    background: transparent;
    padding: 0;
}

.breadcrumb-item a {
    text-decoration: none;
}

/* Blog Section */
.blog-section {
    padding: 80px 0;
}

.blog-post .card {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.blog-post .card:hover {
    transform: translateY(-10px);
}

.blog-post .card-img-top {
    height: 300px;
    object-fit: cover;
}

.post-meta {
    font-size: 0.9rem;
}

.post-meta i {
    margin-right: 0.5rem;
}

.blog-post .card-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.blog-post .card-text {
    color: #666;
    margin-bottom: 1.5rem;
}

/* Sidebar */
.sidebar .card {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.sidebar .card-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.sidebar .list-unstyled li {
    margin-bottom: 1rem;
}

.sidebar .list-unstyled li:last-child {
    margin-bottom: 0;
}

.sidebar .list-unstyled a {
    color: var(--text-color);
    transition: color 0.3s ease;
}

.sidebar .list-unstyled a:hover {
    color: var(--secondary-color);
}

.sidebar .btn-outline-secondary {
    border-color: #ddd;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.sidebar .btn-outline-secondary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--primary-color);
}

/* Pagination */
.pagination .page-link {
    color: var(--primary-color);
    border: none;
    margin: 0 0.2rem;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.pagination .page-link:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    color: #fff;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.section-subtitle {
    color: #666;
    margin-bottom: 3rem;
}

/* About Section */
.about-section {
    padding: 80px 0;
}

.about-section img {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Mission & Vision Cards */
.mission-vision .card {
    transition: transform 0.3s ease;
}

.mission-vision .card:hover {
    transform: translateY(-10px);
}

/* Value Cards */
.value-card {
    padding: 2rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-10px);
}

/* Service Cards */
.service-card {
    padding: 2rem;
    text-align: center;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card:hover .btn {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.service-card .btn {
    margin-bottom: 0 !important;
}

.service-card .card-body {
    padding-bottom: 0.5rem;
}

.service-card ul {
    margin-top: 1.5rem;
    text-align: left;
}

.service-card ul li {
    margin-bottom: 0.5rem;
}

.service-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

/* Service Detail Cards */
.service-detail-card {
    padding: 2rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%;
}

.service-detail-card:hover {
    transform: translateY(-10px);
}

.service-detail-card ul {
    margin-top: 1rem;
}

.service-detail-card ul li {
    margin-bottom: 0.5rem;
}

/* Feature Cards */
.feature-card {
    padding: 2rem;
    text-align: center;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

/* Stats Section */
.stats-section {
    background: var(--dark-bg);
    color: #fff;
    padding: 4rem 0;
}

.stat-item {
    text-align: center;
}

.counter {
    font-size: 3rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

/* Team Section */
.team-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    height: 100%;
}

.team-card img {
    display: block;
    width: 100%;
    height: auto;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    transition: transform 0.6s var(--animation-timing);
}

.team-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 26, 46, 0.9);
    color: #fff;
    padding: 1.5rem;
    transition: transform 0.3s ease;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.team-card:hover img {
    transform: scale(1.05) !important;
}

.team-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: #fff;
}

.team-info p {
    color: #666;
    margin-bottom: 1.5rem;
}

.team-info .btn {
    display: none;
}

/* Testimonials */
.testimonial-slider {
    padding: 2rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.testimonial-text {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-role {
    color: #666;
}

/* CTA Section */
.cta-section {
    background: var(--primary-color);
}

.cta-section .btn-warning {
    background-color: #dc9210;
    border-color: #dc9210;
    color: var(--primary-color);
    padding: 0.75rem 2rem;
    font-weight: 600;
}

.cta-section .btn-warning:hover {
    background-color: darken(#dc9210, 10%);
    border-color: darken(#dc9210, 10%);
    color: var(--primary-color);
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
}

.contact-info {
    padding: 2rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.info-item {
    display: flex;
    align-items: flex-start;
}

.info-item i {
    font-size: 1.5rem;
    margin-top: 0.25rem;
}

.info-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.contact-form {
    padding: 2rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.form-control {
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 215, 0, 0.25);
}

.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.btn-warning {
    background-color: #dc9210;
    border-color: #dc9210;
    color: var(--primary-color);
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    background-color: darken(#dc9210, 10%);
    border-color: darken(#dc9210, 10%);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-warning:focus {
    box-shadow: 0 0 0 0.25rem rgba(#dc9210, 0.5);
}

/* Map Section */
.map-section {
    margin-top: 80px;
}

.map-section iframe {
    transition: filter 0.3s ease;
}


/* Footer */
.footer {
    background: var(--dark-bg);
    margin-top: auto;
}

.footer h3, .footer h4 {
    color: #fff;
    margin-bottom: 1.5rem;
}

.footer a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--secondary-color) !important;
}

.social-links a {
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--secondary-color) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section h1,
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .counter {
        font-size: 2.5rem;
    }

    .service-detail-card .row {
        text-align: center;
    }

    .service-detail-card .col-md-3 {
        margin-bottom: 1rem;
    }

    .contact-info,
    .contact-form {
        margin-bottom: 2rem;
    }

    .info-item {
        text-align: center;
        flex-direction: column;
    }

    .info-item i {
        margin-bottom: 1rem;
    }

    .blog-post .card-img-top {
        height: 200px;
    }

    .blog-post .card-title {
        font-size: 1.5rem;
    }

    .sidebar .card {
        margin-bottom: 1.5rem;
    }
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card, .feature-card, .team-card, .value-card, .service-detail-card, .blog-post .card {
    animation: fadeIn 0.5s ease-out;
}

/* Recent Cases Section Styles */
.case-card {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    height: 100%;
}

.case-card:hover {
    transform: translateY(-5px);
}

.case-category {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.case-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #333;
}

.case-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.case-result {
    margin-top: auto;
}

.case-result .badge {
    padding: 8px 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Enhanced Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Apply animations to sections */
.hero-section h1,
.hero-section p,
.hero-section .btn {
    animation: fadeInUp 0.8s var(--animation-timing);
}

.hero-section p {
    animation-delay: 0.2s;
}

.hero-section .btn {
    animation-delay: 0.4s;
}

.section-title {
    animation: fadeInUp 0.8s var(--animation-timing);
}

.service-card,
.feature-card,
.team-card,
.case-card {
    animation: scaleIn 0.6s var(--animation-timing);
    transition: transform 0.4s var(--animation-timing), box-shadow 0.4s var(--animation-timing);
}

.service-card:hover,
.feature-card:hover,
.team-card:hover,
.case-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.stat-item {
    animation: fadeInUp 0.8s var(--animation-timing);
}

.back-to-top.visible {
    display: flex !important;
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .back-to-top {
        bottom: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

/* Smooth Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Enhanced Section Transitions */
section {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s var(--animation-timing);
}

section.animate {
    opacity: 0;
    transform: translateY(20px);
}

section.animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Initial visibility for cards */
.service-card,
.feature-card,
.team-card,
.case-card {
    opacity: 1;
    transform: translateY(0);
    transition: transform 0.4s var(--animation-timing), 
                box-shadow 0.4s var(--animation-timing),
                opacity 0.4s var(--animation-timing);
}

/* Animation classes for cards */
.service-card.animate,
.feature-card.animate,
.team-card.animate,
.case-card.animate {
    opacity: 0;
    transform: translateY(20px);
}

.service-card.animate.visible,
.feature-card.animate.visible,
.team-card.animate.visible,
.case-card.animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Enhanced Card Hover Effects */
.service-card,
.feature-card,
.team-card,
.case-card {
    position: relative;
    overflow: hidden;
}

.service-card::after,
.feature-card::after,
.team-card::after,
.case-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255,215,0,0.1), transparent);
    opacity: 0;
    transition: opacity 0.4s var(--animation-timing);
}

.service-card:hover::after,
.feature-card:hover::after,
.team-card:hover::after,
.case-card:hover::after {
    opacity: 1;
}

/* Enhanced Image Animations */
.team-card img {
    transition: transform 0.6s var(--animation-timing);
}

.team-card:hover img {
    transform: scale(1.05) !important;
}

/* Icon Animations */
.service-icon,
.feature-icon {
    transition: all 0.4s var(--animation-timing);
}

.service-card:hover .service-icon,
.feature-card:hover .feature-icon {
    transform: scale(1.2) rotate(5deg);
    color: var(--secondary-color);
}

/* Staggered Animation Delays */
.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }

.team-card:nth-child(1) { animation-delay: 0.1s; }
.team-card:nth-child(2) { animation-delay: 0.2s; }
.team-card:nth-child(3) { animation-delay: 0.3s; }

.case-card:nth-child(1) { animation-delay: 0.1s; }
.case-card:nth-child(2) { animation-delay: 0.2s; }
.case-card:nth-child(3) { animation-delay: 0.3s; }

/* AOS Animation Styles */
[data-aos] {
    transition-timing-function: ease-out !important;
    will-change: transform, opacity;
}

/* Practice Area Cards */
.practice-area .card {
    transition: all 0.3s ease;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
}

.practice-area .card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.practice-area .card-body {
    padding: 2rem;
}

.practice-area .card-title {
    font-size: 1.5rem;
    margin: 1rem 0;
    color: var(--primary-color);
}

.practice-area .card-text {
    color: #666;
    line-height: 1.6;
}

.practice-area .display-4 {
    font-size: 3rem;
    color: var(--secondary-color);
    transition: all 0.3s ease;
}

.practice-area .card:hover .display-4 {
    transform: scale(1.1);
}

.main-team-card {
    position: relative;
    width: 360px; /* Fixed width */
    height: 540px; /* Fixed height */
    border-radius: 30px; /* More rounded corners */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* Deeper shadow */
    overflow: hidden; /* Ensure rounded corners clip content */
    margin: 0 auto; /* Center the card */
    transition: transform 0.3s ease; /* Keep existing transition */
}

.main-team-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the entire card area */
    transition: transform 0.3s ease; /* Keep existing image transition */
}

.main-team-card .team-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    /* right: 0; */ /* Allow overlay to take only necessary width */
    width: auto; /* Adjust width based on content */
    background: rgba(0, 0, 0, 0.7); /* Dark translucent background */
    color: #fff;
    padding: 15px 20px; /* Adjust padding */
    border-bottom-left-radius: 30px; /* Match bottom-left corner */
    /* border-bottom-right-radius: 10px; Remove right radius */
    transition: background 0.3s ease; /* Add transition for hover */
}

.main-team-card:hover {
    transform: translateY(-10px); /* Keep hover effect */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3); /* Adjust shadow on hover */
}

.main-team-card:hover img {
    transform: scale(1.05); 
}

.main-team-card .team-info-overlay h3 {
    font-size: 1.3rem; /* Adjust font size for name */
    margin-bottom: 3px; /* Adjust spacing */
    color: #fff; /* Ensure name is white */
}

.main-team-card .team-info-overlay p {
    font-size: 1rem; /* Adjust font size for title */
    color: #dc9210; /* Gold/yellow color for title */
    margin-bottom: 0; /* Remove bottom margin */
}

.team-card {
    /* Add any specific styles needed to differentiate from main-team-card if necessary */
    /* For now, the new class .main-team-card will override where applied */
}

.service-card:hover .service-icon,
.feature-card:hover .feature-icon {
    transform: scale(1.2) rotate(5deg); 
}

.team-card:hover .fas {
    transform: none; 
}

.contact-info .section-title,
.contact-form .section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

/* Phone icon on service card image hover - perfect circle floating button style */
.service-phone-icon {
    position: absolute;
    bottom: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #fff;
    background: #bc841c;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s, background 0.3s;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    padding: 0;
}
.service-card:hover .service-phone-icon {
    opacity: 1;
    transform: scale(1.1);
    background: #a97a19;
}

/* Ensure SVG icons in Why Choose Us section scale to fit their container */
.feature-svg-icon svg {
    width: 100% !important;
    height: 100% !important;
    display: block;
}
