/* 
   ==========================================================================
   CORPORATE THEME - VENKATSRINIVAS & CO.
   Colors based on Logo: Navy Blue (#002147) & Gold (#C5A023)
   ========================================================================== 
*/

:root {
    --primary-color: #005696;
    /* Blue from CA logo */
    --secondary-color: #4CAF50;
    /* Green from Tick */
    --accent-color: #E8F5E9;
    /* Very Light Green for backgrounds */
    --text-dark: #0A2540;
    --text-light: #64748B;
    --bg-light: #F8FAFC;
    --white: #FFFFFF;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    position: relative;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--white);
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    padding: 0;
    transition: var(--transition);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    min-height: 72px;
    /* Stabilize navbar height */
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    max-height: 50px;
}

.logo img {
    height: 50px !important;
    /* FORCE strict size */
    width: auto !important;
    object-fit: contain;
    transition: var(--transition);
    display: block !important;
}

.logo-text {
    display: flex;
    flex-direction: column;
    margin-left: 12px;
    line-height: 1.2;
}

.firm-name-nav {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--primary-color);
    letter-spacing: -0.01em;
    font-family: 'Playfair Display', serif;
}

.firm-tag-nav {
    font-size: 0.7rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.navbar.scrolled .firm-name-nav {
    font-size: 1rem;
}

.navbar.scrolled .firm-tag-nav {
    display: none;
}

/* Mobile Fix for Congestion */
@media (max-width: 768px) {
    .logo-text {
        margin-left: 8px;
    }
    
    .firm-name-nav {
        font-size: 0.85rem; /* Smaller for better fit */
        line-height: 1.1;
    }
    
    .firm-tag-nav {
        display: none; /* Hide subtitle on mobile to save space */
    }

    .hero-title, .contact-hero-title, .team-hero-title, .page-header-modern h1 {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }

    /* GLOBAL FIX: Use padding instead of margin to avoid white blank space */
    main {
        padding-top: 90px !important; /* Increased for better clearance */
    }

    /* Reset margins for first sections to prevent double spacing */
    main > section:first-of-type,
    .hero-swiper-section,
    .hero-modern,
    .team-hero,
    .contact-hero,
    .page-header,
    .page-header-modern {
        margin-top: 0 !important;
    }
    
    .hero-visual {
        margin-top: 2rem;
    }

    /* Target specific content wrappers for hero sections */
    .team-hero-content, 
    .contact-hero-content, 
    .about-header .header-content,
    .page-header .container {
        padding-top: 45px !important;
    }
}

@media (max-width: 380px) {
    .firm-name-nav {
        font-size: 0.8rem;
    }
    
    main {
        padding-top: 80px !important;
    }
}

.navbar.scrolled .logo img {
    height: 44px !important;
}

.footer-logo-img {
    height: 50px !important;
    width: auto !important;
    margin-bottom: 20px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.75rem;
    /* Increased gap for breathing room */
    list-style: none;
    white-space: nowrap;
}

.nav-link {
    font-weight: 600;
    color: var(--text-dark);
    padding: 0.75rem 0;
    /* Slightly more padding */
    text-decoration: none;
    font-size: 0.9375rem;
    position: relative;
    transition: var(--transition);
    letter-spacing: 0.02em;
    display: inline-block;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    /* Adjust spacing */
    left: 0;
    width: 0;
    height: 3px;
    background: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}


/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 260px;
    padding: 1rem 0;
    border-radius: 4px;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    border-top: 3px solid var(--secondary-color);
    display: none;
    /* Force hide to prevent layout shift */
}

.dropdown:hover .dropdown-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: var(--transition);
}

.dropdown-menu li a:hover {
    background: var(--bg-light);
    color: var(--secondary-color);
    padding-left: 1.75rem;
}

/* Mobile Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1100;
}

.mobile-menu-toggle span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Hamburger → × */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}


/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 700;
    transition: var(--transition);
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 2rem;
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9375rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 86, 150, 0.2);
}

.btn-primary:hover {
    background: #388E3C;
    /* Darker Green */
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.3);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 2rem;
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
    border-radius: 8px;
}

/* Hero Section */
.hero-modern {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
    padding: 60px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero-modern::before {
    content: '';
    position: absolute;
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(197, 160, 35, 0.05) 0%, transparent 70%);
    top: -400px;
    right: -300px;
    border-radius: 50%;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 1.25rem;
    background: rgba(197, 160, 35, 0.1);
    color: var(--secondary-color);
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.8125rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-left: 3px solid var(--secondary-color);
}

.hero-title {
    font-size: 3.5rem;
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
}

.text-accent {
    color: var(--secondary-color);
}

.hero-desc {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.hero-stats {
    display: flex;
    gap: 3.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.stat-number {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 0.5rem;
    font-family: 'Inter', sans-serif;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Hero Visual */
.hero-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 10px solid var(--white);
    height: 500px;
}

.hero-main-visual {
    width: 100%;
    height: 500px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.hero-main-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 86, 150, 0.4), transparent);
}

.hero-overlay-content {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 33, 71, 0.2);
}

.hero-overlay-content i {
    font-size: 8rem;
    color: var(--white);
    opacity: 0.5;
}

/* Sections */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    max-width: 1100px;
    margin: 0 auto 5rem;
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(0, 33, 71, 0.05);
    color: var(--primary-color);
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 1.25rem;
}

.section-title {
    font-size: 2.75rem;
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
    font-weight: 800;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.8;
}

/* Competencies Section */
.competencies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
}

.comp-box {
    background: var(--white);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 33, 71, 0.08);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.comp-box:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.comp-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.comp-header i {
    font-size: 2.5rem;
    color: var(--secondary-color);
}

.comp-header h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

.comp-list {
    list-style: none;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.comp-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 500;
}

.comp-list li i {
    color: #10B981;
    /* Green checkmark */
    font-size: 0.875rem;
}

/* Values Section */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

@media (max-width: 992px) {
    .values-grid {
        grid-template-columns: 1fr;
    }
}

.value-item {
    text-align: center;
    padding: 2rem;
}

.value-icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.value-item h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.value-item p {
    color: var(--text-light);
}

/* Service Cards */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    padding: 3rem;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--bg-light);
    color: var(--primary-color);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    font-size: 1.75rem;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--primary-color);
    color: var(--white);
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--primary-color);
}

.service-card p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1rem;
    flex-grow: 1;
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.875rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.service-link i {
    transition: var(--transition);
}

.service-link:hover i {
    transform: translateX(5px);
}

/* Process Section */
.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    margin-top: 4rem;
}

.process-step {
    text-align: center;
    position: relative;
    padding: 2.5rem 1.5rem;
    background: var(--white);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.process-step:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 auto 1.5rem;
    border: 4px solid var(--accent-color);
    box-shadow: 0 0 0 4px var(--white);
}

.step-content h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 700;
}

.step-content p {
    font-size: 0.9375rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Connecting arrows for desktop */
@media (min-width: 993px) {
    .process-step:not(:last-child)::after {
        content: '\f105';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        position: absolute;
        top: 30%;
        right: -1rem;
        font-size: 1.5rem;
        color: var(--secondary-color);
        opacity: 0.3;
    }
}

@media (max-width: 992px) {
    .process-timeline {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Why Choose Section */
.why-choose-section {
    background: var(--primary-color);
    color: var(--white);
}

.why-choose-section .section-badge {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.why-choose-section .section-title {
    color: var(--white);
}

.why-choose-section .section-desc {
    color: rgba(255, 255, 255, 0.7);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 2rem;
}

.why-card {
    display: flex;
    gap: 2rem;
    transition: var(--transition);
}

.why-card:hover {
    transform: translateX(10px);
}

.why-icon {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--secondary-color);
    transition: var(--transition);
}

.why-card:hover .why-icon {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.why-card h3 {
    font-size: 1.375rem;
    margin-bottom: 0.75rem;
}

.why-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
}

/* Team Section */
.team-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.team-member-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.team-member-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.member-image {
    height: 400px;
    overflow: hidden;
    position: relative;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.team-member-card:hover .member-image img {
    transform: scale(1.1);
}

.member-info {
    padding: 2rem;
    text-align: center;
}

.member-info h3 {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.member-role {
    font-size: 0.8125rem;
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 1rem;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: var(--bg-light);
    padding: 3rem;
    border-radius: 8px;
    position: relative;
}

.quote-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    opacity: 0.2;
    margin-bottom: 1.5rem;
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.client-avatar {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* Industries Section */
.industries-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.industry-card-v2 {
    height: 350px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.ind-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    transition: var(--transition);
}

.industry-card-v2:hover .ind-bg {
    transform: scale(1.1);
}

.ind-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2.5rem;
    background: linear-gradient(to top, rgba(0, 31, 63, 0.9), transparent);
    color: var(--white);
    z-index: 2;
}

/* Client Logos / Organizations */
.clients-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    opacity: 0.8;
}

.client-logo-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    background: #f8fafc;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.875rem;
    color: #334155;
    letter-spacing: 0.08em;
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: all 0.3s;
}

.client-logo-item:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 86, 150, 0.2);
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: #f8fafc;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 5rem;
    align-items: start;
}

.faq-item {
    background: white;
    margin-bottom: 1rem;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.faq-question {
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: var(--primary-color);
    gap: 1rem;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.faq-answer {
    padding: 0 1.5rem 1.25rem;
    display: none;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.7;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-question i {
    flex-shrink: 0;
    transition: var(--transition);
    color: var(--secondary-color);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-image {
    margin-top: 3rem;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 8rem;
    color: var(--primary-color);
    opacity: 0.1;
}

/* FAQ & Clients Mobile */
@media (max-width: 768px) {
    .clients-wrapper {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }

    .client-logo-item {
        font-size: 0.8rem !important;
        padding: 1rem !important;
    }

    .faq-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .faq-image {
        display: none !important;
    }

    .faq-question {
        font-size: 0.875rem !important;
        padding: 1rem !important;
    }

    .faq-answer {
        padding: 0 1rem 1rem !important;
        font-size: 0.875rem !important;
    }
}

/* CTA Section Modern */
.cta-section {
    color: var(--white);
    text-align: center;
    padding: 120px 0;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 3rem;
}

/* Footer Refined */
.footer-modern {
    background: #001f3f;
    /* Darker version of the new blue */
    color: rgba(255, 255, 255, 0.6);
    padding: 80px 0 40px;
    border-top: 4px solid var(--secondary-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-logo-img {
    height: 80px;
    margin-bottom: 2rem;
}

.footer-title {
    color: var(--white);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 1rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-links a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.footer-contact li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-contact i {
    color: var(--secondary-color);
    margin-top: 0.25rem;
}

.footer-bottom {
    padding: 2rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.footer-bottom-links {
    display: flex;
    gap: 2rem;
}

/* Animations */
.scroll-reveal {
    opacity: 1;
    /* Default to visible for reliability */
    transform: none;
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Only hide if JS explicitly handles it or if you want to keep it subtle */
/* For now, ensuring visibility is priority */

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content>* {
    animation: fadeIn 0.8s ease-out forwards;
    opacity: 0;
}

.hero-content>*:nth-child(1) {
    animation-delay: 0.2s;
}

.hero-content>*:nth-child(2) {
    animation-delay: 0.4s;
}

.hero-content>*:nth-child(3) {
    animation-delay: 0.6s;
}

.hero-content>*:nth-child(4) {
    animation-delay: 0.8s;
}

.hero-content>*:nth-child(5) {
    animation-delay: 1.0s;
}

/* Service Detail Page Styling */
.page-header-modern {
    background: linear-gradient(135deg, var(--primary-color) 0%, #001f3f 100%);
    padding: 160px 0 100px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.page-header-modern::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('../images/hero.jpg') center/cover no-repeat;
    opacity: 0.1;
    mix-blend-mode: overlay;
}

.header-content {
    max-width: 800px;
    position: relative;
    z-index: 2;
}

.page-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.page-header-modern h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: white;
}

.page-header-modern p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

/* Service Layout */
.service-detail-section {
    padding: 100px 0;
    background: #f1f5f9;
}

.service-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
}

.service-main .content-block {
    margin-bottom: 3rem;
    background: var(--white);
    padding: 3.5rem;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-main h2 {
    font-size: 2.25rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-weight: 800;
}

.service-main h2 i {
    color: var(--secondary-color);
    font-size: 1.75rem;
    background: rgba(76, 175, 80, 0.1);
    padding: 0.75rem;
    border-radius: 12px;
}

.service-main p {
    font-size: 1.125rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.service-subsection {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid #edf2f7;
}

.service-subsection h3 {
    font-size: 1.75rem;
    color: var(--dark);
    margin-bottom: 1.25rem;
    font-weight: 700;
}

/* Feature List */
.feature-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 2rem;
}

.feature-list li {
    display: flex;
    gap: 1.25rem;
    font-size: 1.0625rem;
    color: var(--text-dark);
    padding: 1.25rem;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid transparent;
    transition: var(--transition);
}

.feature-list li:hover {
    border-color: var(--secondary-color);
    background: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.feature-list i {
    color: var(--secondary-color);
    margin-top: 0.25rem;
}

/* Process Steps */
.process-steps {
    display: grid;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.process-item {
    display: flex;
    gap: 2rem;
    padding: 2.5rem;
    background: #f8fafc;
    border-radius: 20px;
    border: 1px solid transparent;
    transition: var(--transition);
}

.process-item:hover {
    background: var(--white);
    box-shadow: var(--shadow-md);
    transform: translateX(10px);
    border-color: rgba(0, 86, 150, 0.1);
}

.process-number {
    width: 54px;
    height: 54px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 800;
    font-size: 1.5rem;
}

.process-content h3 {
    font-size: 1.35rem;
    margin-bottom: 0.75rem;
    color: var(--primary-color);
    font-weight: 700;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    margin-top: 2.5rem;
}

.benefit-item {
    padding: 3.5rem 2rem;
    background: #f8fafc;
    border-radius: 24px;
    text-align: center;
    transition: var(--transition);
    border: 1px solid transparent;
}

.benefit-item:hover {
    background: var(--white);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
}

.benefit-item i {
    font-size: 3.5rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    display: inline-block;
}

/* Sidebar */
.sidebar-card {
    background: var(--white);
    padding: 3rem 2.5rem;
    border-radius: 28px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
    margin-bottom: 2.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.sidebar-card h3 {
    font-size: 1.85rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    font-weight: 800;
}

.sidebar-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-links a {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 14px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 700;
    transition: var(--transition);
    border: 1px solid transparent;
}

.sidebar-links a:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateX(10px);
}

/* Sidebar Form */
.sidebar-form .form-group {
    margin-bottom: 1.5rem;
}

.sidebar-form input,
.sidebar-form select,
.sidebar-form textarea {
    width: 100%;
    padding: 1.125rem 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background: #f8fafc;
}

.sidebar-form input:focus,
.sidebar-form select:focus,
.sidebar-form textarea:focus {
    background: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 5px rgba(0, 86, 150, 0.1);
    outline: none;
}

.sidebar-form button {
    width: 100%;
    margin-top: 1.5rem;
}

/* FAQ Simple */
.service-faq-section {
    padding: 120px 0;
    background: var(--white);
}

.faq-list-simple {
    max-width: 900px;
    margin: 4rem auto 0;
}

.faq-item-simple {
    margin-bottom: 3rem;
    padding: 3.5rem;
    background: #f8fafc;
    border-radius: 24px;
    transition: var(--transition);
    border: 1px solid transparent;
}

.faq-item-simple:hover {
    background: var(--white);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06);
    transform: translateY(-5px);
    border-color: var(--secondary-color);
}

.faq-item-simple h4 {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-weight: 800;
}

/* Service CTA */
.service-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, #001f3f 100%);
    padding: 120px 0;
    color: var(--white);
    text-align: center;
}

.service-cta .container {
    max-width: 900px;
}

/* Compliance Table */
.compliance-table-wrapper {
    overflow-x: auto;
    margin-top: 2rem;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-sm);
}

.compliance-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

.compliance-table th {
    background: #f8fafc;
    padding: 1.5rem;
    text-align: left;
    font-weight: 800;
    color: var(--primary-color);
    border-bottom: 2px solid #e2e8f0;
}

.compliance-table td {
    padding: 1.5rem;
    border-bottom: 1px solid #edf2f7;
    color: var(--text-dark);
    font-size: 1.0625rem;
}

.compliance-table tbody tr:last-child td {
    border-bottom: none;
}

.compliance-table tbody tr:hover {
    background: #f1f5f9;
}

/* About Page Refined Styling */
.about-detail-modern {
    padding: 120px 0;
    background: var(--white);
}

.about-grid-new {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 7rem;
    align-items: center;
}

.about-visual {
    position: relative;
    padding-right: 20px;
    padding-bottom: 20px;
}

.about-visual::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -200px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 86, 150, 0.03) 0%, transparent 70%);
    z-index: -1;
}

.main-about-img {
    width: 100%;
    height: 100%;
    min-height: 500px;
    object-fit: cover;
    border-radius: 40px 10px 40px 10px;
    box-shadow: var(--shadow-lg);
    border: 5px solid var(--white);
    transition: var(--transition);
}

.main-about-img:hover {
    transform: scale(1.02);
}

.experience-badge {
    position: absolute;
    bottom: 10px;
    right: -20px;
    background: var(--secondary-color);
    color: var(--white);
    padding: 2rem;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 15px 40px rgba(76, 175, 80, 0.4);
    z-index: 2;
    border: 6px solid var(--white);
    transition: var(--transition);
}

.experience-badge:hover {
    transform: translateY(-5px) scale(1.05);
}

.experience-badge .number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.about-text-new {
    display: flex;
    flex-direction: column;
}

.about-text-new .section-title {
    text-align: left;
    margin: 0 0 2rem 0;
    position: relative;
    padding-bottom: 1.5rem;
}

.about-text-new .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

.about-text-new p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.mission-vision-modern {
    margin-top: 5rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.mv-item {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--white);
    border-radius: 20px;
    border: 1px solid rgba(0, 86, 150, 0.05);
    transition: var(--transition);
}

.mv-item:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
    transform: translateX(10px);
}

.mv-icon {
    width: 70px;
    height: 70px;
    background: rgba(0, 86, 150, 0.05);
    color: var(--primary-color);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    flex-shrink: 0;
    transition: var(--transition);
}

.mv-item:hover .mv-icon {
    background: var(--primary-color);
    color: var(--white);
    transform: rotate(360deg);
}

.mv-text h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.firm-facts {
    padding: 100px 0;
    background: #f8fafc;
}

.facts-card {
    background: var(--primary-color);
    border-radius: 30px;
    padding: 5rem;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.facts-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.1), transparent);
}

.facts-header {
    text-align: center;
    margin-bottom: 4rem;
}

.facts-header h2 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.facts-grid-modern {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

.fact-box {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.fact-box:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-10px);
}

.fact-label {
    display: block;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.fact-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
}

.core-values-modern {
    padding: 120px 0;
}

.values-grid-new {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.value-card-modern {
    padding: 3rem 2rem;
    background: var(--white);
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid #f1f5f9;
    transition: var(--transition);
}

.value-card-modern:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
}

.value-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.about-cta {
    padding-bottom: 120px;
}

.cta-box {
    background: linear-gradient(135deg, #001f3f 0%, #005696 100%);
    padding: 5rem;
    border-radius: 30px;
    text-align: center;
    color: var(--white);
}

.cta-box h2 {
    font-size: 2.5rem;
    color: var(--white);
    margin-bottom: 1.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2.5rem;
}

/* Responsive */
@media (max-width: 1200px) {

    .facts-grid-modern,
    .values-grid-new {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .about-grid-new {
        grid-template-columns: 1fr;
    }

    .facts-grid-modern,
    .values-grid-new {
        grid-template-columns: 1fr;
    }

    .facts-card,
    .cta-box {
        padding: 3rem 1.5rem;
    }

    .cta-actions {
        flex-direction: column;
    }
}

@media (max-width: 992px) {
    .service-layout {
        grid-template-columns: 1fr;
    }

    .feature-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-desc {
        margin: 0 auto 2.5rem;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-wrapper {
        padding: 1rem 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        flex-direction: column;
        padding: 4rem 2rem;
        gap: 2rem;
        transform: translateX(100%);
        transition: var(--transition);
        z-index: 999;
        overflow-y: auto;
    }

    .nav-menu.active {
        transform: translateX(0);
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: var(--bg-light);
        display: none;
        margin-top: 1rem;
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .section-title {
        font-size: 2rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }

    .hero-image-wrapper {
        height: 350px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .footer-col {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-contact li {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-bottom-links {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .hero-image-wrapper {
        height: 300px;
    }

    .container {
        padding: 0 1.25rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .footer-about {
        align-items: center;
        display: flex;
        flex-direction: column;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-bottom-links {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }

    .footer-contact li {
        justify-content: center;
    }

    .why-grid,
    .services-grid,
    .testimonials-grid,
    .industries-grid-v2,
    .team-grid-modern {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .why-card {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .why-icon {
        margin: 0 auto;
    }
}

/* ============================================
   CONTACT HERO SECTION
   ============================================ */
.contact-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    margin-bottom: -50px;
    /* Slight overlap with next section */
    z-index: 10;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
}

.contact-hero-content {
    text-align: center;
    position: relative;
    z-index: 1;
    color: white;
}

.contact-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    font-family: 'Playfair Display', serif;
    animation: fadeUp 0.8s ease-out;
    color: #ffffff;
}

.contact-hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
    animation: fadeUp 0.8s ease-out 0.2s backwards;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact {
    padding: 100px 0;
    position: relative;
    background: #f8fafc;
    z-index: 20;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-header {
    margin-bottom: 4rem;
}

.contact-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.contact-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
    transform: skewX(-20deg) translateX(200%);
    transition: transform 0.6s;
}

.contact-card:hover::after {
    transform: skewX(-20deg) translateX(-250%);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border-color: rgba(102, 126, 234, 0.2);
}

.contact-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    /* Prevent shrinking */
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.contact-card-content {
    display: flex;
    flex-direction: column;
}

.contact-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #0f172a;
}

.contact-card p {
    color: #64748b;
    line-height: 1.6;
    margin: 0;
}

.social-links {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: #64748b;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.25rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.social-link:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateY(-5px) rotate(10deg);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
    border-color: transparent;
}

.contact-form-wrapper {
    background: white;
    padding: 3.5rem;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 30;
    /* Ensure it stays on top */
}

.form-header h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #0f172a;
    font-family: 'Playfair Display', serif;
}

.form-header p {
    color: #64748b;
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #334155;
    font-size: 0.9375rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    color: #0f172a;
    transition: all 0.3s;
    background: #f8fafc;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
    transform: translateY(-2px);
}

.form-group textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form .btn {
    width: 100%;
    padding: 1.25rem;
    font-size: 1.125rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

.contact-form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.4);
    filter: brightness(1.1);
}

/* Map Section */
.map-section {
    padding: 0;
    line-height: 0;
}

.map-section iframe {
    filter: grayscale(100%) contrast(1.2) brightness(0.9);
    transition: all 0.5s;
    width: 100%;
    display: block;
}

.map-section:hover iframe {
    filter: none;
}

/* Responsive Contact */
@media (max-width: 992px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-info {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .contact {
        padding: 60px 0;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .contact-form-wrapper {
        padding: 2rem;
    }
}

/* ============================================
   TEAM PAGE REDESIGN
   ============================================ */

/* Team Hero */
.team-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    margin-bottom: -50px;
    z-index: 10;
    color: white;
    text-align: center;
}

.team-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(245, 158, 11, 0.1) 0%, transparent 50%);
}

.team-hero-content {
    position: relative;
    z-index: 2;
}

.team-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: 'Playfair Display', serif;
    margin-bottom: 1.5rem;
    color: white;
    animation: fadeUp 0.8s ease-out;
}

.team-hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Team Section Layout */
.team-section {
    padding: 100px 0;
    background: #f8fafc;
    position: relative;
    z-index: 20;
}

.team-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

/* Team Member Card */
.team-member-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.team-member-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.member-image {
    height: 380px;
    position: relative;
    overflow: hidden;
}

.member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.team-member-card:hover .member-image img {
    transform: scale(1.1);
}

.member-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    opacity: 0;
    transition: all 0.4s ease;
    backdrop-filter: blur(4px);
}

.team-member-card:hover .member-overlay {
    opacity: 1;
}

.member-social {
    width: 45px;
    height: 45px;
    background: white;
    color: #0f172a;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
}

.team-member-card:hover .member-social {
    transform: translateY(0);
    opacity: 1;
}

.team-member-card:hover .member-social:nth-child(1) {
    transition-delay: 0.1s;
}

.team-member-card:hover .member-social:nth-child(2) {
    transition-delay: 0.2s;
}

.member-social:hover {
    background: var(--secondary-color);
    color: white;
    transform: rotate(10deg);
}

.member-info {
    padding: 2rem;
    text-align: center;
    position: relative;
    z-index: 2;
    background: white;
}

.member-role {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--secondary-color);
    background: rgba(197, 160, 35, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.member-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.member-qualification {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 1rem;
    display: block;
}

.member-info p {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Support Team Section */
.support-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.support-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.support-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
    border-color: var(--secondary-color);
}

.support-icon {
    width: 70px;
    height: 70px;
    background: rgba(15, 23, 42, 0.05);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.support-card:hover .support-icon {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

.support-card h3 {
    font-size: 1.25rem;
    color: #0f172a;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.support-card p {
    color: #64748b;
    margin: 0;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    box-shadow: 2px 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 20px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-float i {
    font-size: 28px;
}

.whatsapp-float span {
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: all 0.3s ease;
    font-size: 15px;
    font-weight: 700;
    margin-left: 0;
    opacity: 0;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.05) translateY(-5px);
    color: #fff;
    padding-right: 25px;
}

.whatsapp-float:hover span {
    max-width: 150px;
    margin-left: 10px;
    opacity: 1;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        padding: 12px;
        width: 55px;
        height: 55px;
        border-radius: 50%;
    }

    .whatsapp-float span {
        display: none;
    }
}

/* 
   ==========================================================================
   MASTER MOBILE RESPONSIVENESS (CONSOLIDATED)
   Ensuring a perfect experience across all devices (320px - 1024px)
   ========================================================================== 
*/

@media (max-width: 991px) {

    /* --- Navigation & Menu --- */
    .mobile-menu-toggle {
        display: flex !important;
        cursor: pointer;
    }

    .nav-cta .btn-primary {
        display: none !important;
    }

    .navbar {
        background: #FFFFFF !important;
        z-index: 5000 !important;
        /* Extremely high to beat any overlay */
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
    }

    .navbar.scrolled {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: #FFFFFF !important;
    }

    .nav-menu {
        position: fixed !important;
        top: 72px !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        height: auto !important;
        max-height: calc(100vh - 72px) !important;
        background: #FFFFFF !important;
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 0.5rem 0 !important;
        gap: 0 !important;
        transform: translateY(-120%) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
        z-index: 6000 !important;
        /* Even higher than the navbar parent */
        display: flex !important;
        overflow-y: auto !important;
    }

    .nav-menu.active {
        transform: translateY(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .nav-menu>li {
        width: 100% !important;
        border-bottom: 1px solid #f1f5f9 !important;
    }

    .nav-link {
        display: block !important;
        padding: 1.25rem 2rem !important;
        width: 100% !important;
        font-size: 1.05rem !important;
        color: var(--text-dark) !important;
    }

    .nav-link::after {
        display: none !important;
    }

    .nav-link:hover,
    .nav-link.active {
        background: #f8fafc !important;
        color: var(--primary-color) !important;
        padding-left: 2.5rem !important;
    }

    /* --- Dropdown on Mobile --- */
    .dropdown>a {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    .dropdown-menu {
        position: static !important;
        display: none !important;
        width: 100% !important;
        background: #f8fafc !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    .dropdown.open .dropdown-menu {
        display: block !important;
    }

    .dropdown-menu li a {
        padding: 0.875rem 3rem !important;
        font-size: 0.95rem !important;
        background: transparent !important;
    }

    /* --- Hero Section Refinement --- */
    .hero-modern {
        padding: 110px 0 2rem !important;
        /* Increased padding-top to fix hiding badge */
        background: linear-gradient(180deg, rgba(241, 245, 249, 0.5) 0%, #FFFFFF 100%) !important;
        position: relative !important;
        overflow: hidden !important;
        text-align: center !important;
    }

    .hero-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
        align-items: center !important;
    }

    .hero-content {
        order: 1 !important;
        width: 100% !important;
        padding: 0 1rem !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .hero-badge {
        margin: 0 auto 0.5rem !important;
        background: rgba(0, 86, 150, 0.08) !important;
        border: 1px solid rgba(0, 86, 150, 0.1) !important;
        padding: 0.4rem 0.875rem !important;
        font-size: 0.7rem !important;
        visibility: visible !important;
        display: inline-flex !important;
    }

    .hero-title {
        font-size: clamp(1.75rem, 8vw, 2.25rem) !important;
        font-weight: 800 !important;
        line-height: 1.2 !important;
        margin: 0.25rem 0 0.75rem !important;
        color: #0f172a !important;
    }

    .hero-desc {
        font-size: 0.95rem !important;
        line-height: 1.5 !important;
        color: #475569 !important;
        margin-bottom: 1.5rem !important;
        max-width: 95% !important;
    }

    .hero-actions {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
        margin-bottom: 2rem !important;
    }

    .hero-actions .btn {
        width: 100% !important;
        margin: 0 !important;
        padding: 1rem !important;
        justify-content: center !important;
        font-weight: 600 !important;
    }

    .hero-visual {
        order: 2 !important;
        width: 100% !important;
        padding: 0 1rem !important;
    }

    .hero-main-visual {
        height: 160px !important;
        /* Extremely compact to avoid scrolling */
        border-radius: 16px !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05) !important;
        border: 3px solid #FFFFFF !important;
        margin-bottom: 1.5rem !important;
    }

    .hero-stats {
        order: 3 !important;
        width: 100% !important;
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        /* All 3 stats in one row */
        gap: 0.5rem !important;
        margin-top: 0.5rem !important;
        padding: 1.25rem 0.5rem !important;
        background: #f8fafc !important;
        border-radius: 12px !important;
    }

    .stat-item {
        text-align: center !important;
        border-right: 1px solid rgba(0, 0, 0, 0.05) !important;
    }

    .stat-item:last-child {
        border-right: none !important;
    }

    .stat-number {
        font-size: 1.25rem !important;
        font-weight: 700 !important;
        color: var(--primary-color) !important;
        display: block !important;
        margin-bottom: 0.25rem !important;
    }

    .stat-label {
        font-size: 0.65rem !important;
        line-height: 1.2 !important;
        color: #64748b !important;
        text-transform: uppercase !important;
        letter-spacing: 0.02em !important;
    }

    /* --- Subpage Headers Fix --- */
    .page-header-modern {
        padding: 100px 0 40px !important;
        text-align: center !important;
        transform: none !important;
        /* Disable parallax on mobile */
    }

    .header-content {
        max-width: 100% !important;
        margin: 0 auto !important;
        transform: none !important;
    }

    .page-header-modern h1 {
        font-size: 2.25rem !important;
    }

    /* --- Contact Hero Fix --- */
    .contact-hero {
        padding: 80px 0 50px !important;
        margin-bottom: 0 !important;
    }

    .contact-hero-title {
        font-size: 2.5rem !important;
    }

    .contact-hero-subtitle {
        font-size: 1.1rem !important;
    }
}

@media (max-width: 768px) {

    /* --- Layout Stacking --- */
    .services-grid,
    .why-grid,
    .team-grid-modern,
    .testimonials-grid,
    .competencies-grid,
    .industries-grid-v2,
    .values-grid-new,
    .facts-grid-modern,
    .service-layout,
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .container {
        padding: 0 1.25rem !important;
    }

    section {
        padding: 40px 0 !important;
    }

    /* --- Feature & Process Items --- */
    .why-card {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .why-number {
        position: static !important;
        margin-bottom: 0.5rem !important;
    }

    .process-item {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 1.5rem !important;
    }

    .process-number {
        margin-bottom: 1rem !important;
    }

    /* --- Subpages Fixes --- */
    .page-header-modern {
        padding: 100px 0 40px !important;
        text-align: center !important;
    }

    .service-main .content-block {
        padding: 1.5rem !important;
        border-radius: 16px !important;
    }

    .service-main h2 {
        font-size: 1.5rem !important;
        flex-direction: column !important;
    }

    /* --- Disable Scroll Reveal Glitches --- */
    .scroll-reveal {
        opacity: 1 !important;
        transform: none !important;
        visibility: visible !important;
        transition: none !important;
    }

    /* --- Typography & Elements --- */
    .section-title {
        font-size: 1.75rem !important;
        margin-bottom: 0.75rem !important;
    }

    .section-desc {
        margin-bottom: 2rem !important;
        font-size: 1rem !important;
    }

    .hero-actions .btn {
        width: 100% !important;
        justify-content: center !important;
    }

    .footer-bottom-content {
        flex-direction: column !important;
        gap: 1rem !important;
        text-align: center !important;
    }

    /* --- CTA Section Fix --- */
    .cta-buttons {
        flex-direction: column !important;
        gap: 1rem !important;
        align-items: stretch !important;
        margin-top: 1.5rem !important;
        /* Reduced from 3rem */
    }

    .cta-buttons a {
        width: 100% !important;
        justify-content: center !important;
        margin: 0 !important;
        display: inline-flex !important;
        padding: 1rem !important;
        /* Slightly more compact */
    }

    .cta-section {
        padding: 40px 0 !important;
    }

    .logo img {
        height: 48px !important;
    }

    /* --- Table Fix --- */
    .compliance-table-wrapper {
        overflow-x: auto !important;
        margin: 1.5rem 0 !important;
        border-radius: 8px !important;
    }

    .compliance-table {
        min-width: 600px !important;
    }

    /* --- Contact Page Fixes --- */
    .contact-content {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }

    .contact-card {
        padding: 1.5rem !important;
    }

    .contact-form-wrapper {
        padding: 2rem 1.5rem !important;
    }

    .form-row {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.85rem !important;
    }

    .hero-desc {
        font-size: 0.95rem !important;
    }

    .stat-number {
        font-size: 2rem !important;
    }

    .stat-label {
        font-size: 0.75rem !important;
    }

    .logo img {
        height: 40px !important;
    }

    .benefit-item {
        padding: 1.5rem !important;
    }

    .btn {
        padding: 0.75rem 1.25rem !important;
        font-size: 0.9rem !important;
    }

    /* --- Contact Card for Phones --- */
    .contact-card {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .contact-icon {
        margin-bottom: 1rem !important;
    }
}

/* --- Utility --- */
html,
body {
    overflow-x: hidden !important;
    width: 100% !important;
    position: relative !important;
}

img {
    max-width: 100% !important;
    height: auto !important;
}

.whatsapp-float {
    bottom: 20px !important;
    right: 20px !important;
    width: 55px !important;
    height: 55px !important;
    padding: 0 !important;
    border-radius: 50% !important;
}

.whatsapp-float span {
    display: none !important;
}


.footer-social {
    display: flex !important;
    gap: 1rem !important;
    margin-top: 1.5rem !important;
    flex-direction: row !important;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
    font-size: 1.1rem !important;
    text-decoration: none !important;
}

.social-link:hover {
    background: #4CAF50 !important;
    color: white !important;
    transform: translateY(-5px) !important;
}

/* --- Team Profile Modal --- */
.profile-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.profile-modal.active {
    display: flex;
    opacity: 1;
}

.profile-modal-content {
    background-color: var(--white);
    margin: auto;
    width: 100%;
    max-width: 900px;
    border-radius: 15px;
    position: relative;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.profile-modal.active .profile-modal-content {
    transform: translateY(0);
}

.profile-modal-close {
    position: absolute;
    top: 20px;
    right: 25px;
    color: var(--text-dark);
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s;
}

.profile-modal-close:hover {
    color: var(--primary-color);
}

.profile-modal-body {
    display: flex;
    flex-wrap: wrap;
}

.profile-modal-image {
    flex: 0 0 40%;
    max-width: 40%;
    background: var(--bg-light);
}

.profile-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 450px;
}

.profile-modal-info {
    flex: 0 0 60%;
    max-width: 60%;
    padding: 50px;
    display: flex;
    flex-direction: column;
}

.profile-modal-role {
    color: var(--secondary-color);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: block;
}

.profile-modal-name {
    font-size: 2.5rem;
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.2;
}

.profile-modal-qualification {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 25px;
    font-weight: 500;
}

.profile-modal-bio {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 30px;
    flex-grow: 1;
}

.profile-modal-social {
    display: flex;
    gap: 15px;
}

.profile-modal-social a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-light);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.profile-modal-social a:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-3px);
}

.team-member-card {
    cursor: pointer;
}

@media (max-width: 768px) {

    .profile-modal-image,
    .profile-modal-info {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .profile-modal-image img {
        min-height: 300px;
    }

    .profile-modal-info {
        padding: 30px;
    }

    .profile-modal-name {
        font-size: 2rem;
    }
}

/* Office Gallery Section - Refined Compact Design */
.gallery-section {
    background: #fbfbfb;
    padding: 80px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.03);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-top: 40px;
}

.gallery-item {
    position: relative !important;
    border-radius: 8px;
    overflow: hidden;
    height: 220px;
    /* Reduced fixed height for compactness */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    background: var(--white);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-item img {
    width: 100% !important;
    aspect-ratio: 16/9;
    /* Standardized wide look for premium feel */
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.5s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* Ensure overlay is absolutely positioned within gallery-item */
.gallery-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(to top, rgba(0, 33, 71, 0.9), transparent 70%);
    opacity: 0 !important;
    transition: opacity 0.3s ease !important;
    display: flex !important;
    align-items: flex-end !important;
    padding: 15px !important;
    pointer-events: none;
    z-index: 5;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1 !important;
}

.gallery-overlay span {
    color: var(--white) !important;
    font-weight: 600 !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay span {
    transform: translateY(0);
}


@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-section {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Intro Video Section */
.intro-video-section {
    background: var(--bg-light);
    padding: 100px 0;
}

.video-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 16 / 9;
}

.video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 33, 71, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.video-wrapper:hover .video-overlay {
    background: rgba(0, 33, 71, 0.4);
}

.play-btn-circle {
    width: 100px;
    height: 100px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    z-index: 5;
}

.play-btn-circle i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-left: 5px;
}

.play-btn-circle::after {
    content: '';
    position: absolute;
    inset: -15px;
    border: 2px solid var(--white);
    border-radius: 50%;
    opacity: 0.5;
    animation: pulse-border 2s infinite;
}

@keyframes pulse-border {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

.video-wrapper:hover .play-btn-circle {
    transform: scale(1.1);
    background: var(--secondary-color);
}

.video-wrapper:hover .play-btn-circle i {
    color: var(--white);
}

/* Redesigned Contact Cards v2 */
.contact-info-v2 {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-info-v2 {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 0;
    /* Ensure alignment with form */
}

.contact-card-v2 {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Ensure equal height in grid */
}

.contact-card-v2:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.branch-photo {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.branch-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.contact-card-v2:hover .branch-photo img {
    transform: scale(1.05);
}

.branch-details {
    padding: 2.5rem;
    flex: 1;
    /* Allow content to grow and push items down */
    display: flex;
    flex-direction: column;
}

.branch-name {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: block;
}

.branch-meta {
    display: block;
    font-size: 0.85rem;
    color: var(--secondary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.branch-address {
    font-size: 1.05rem;
    color: var(--text-dark);
    line-height: 1.6;
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
}

.branch-address i {
    color: var(--secondary-color);
    margin-top: 5px;
    flex-shrink: 0;
}

.branch-content {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    flex: 1;
    /* Pushes bottom content down uniformly */
}

.headed-by {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    font-size: 0.95rem;
}

.branch-grid-v3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 6rem;
}

@media (max-width: 1024px) {
    .branch-grid-v3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .branch-grid-v3 {
        grid-template-columns: 1fr;
    }
}

.map-form-split {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: start;
}

.map-container-v2 {
    height: 100%;
    min-height: 600px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.map-container-v2 iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 992px) {
    .map-form-split {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .map-container-v2 {
        min-height: 400px;
    }
}

.headed-by i {
    color: var(--secondary-color);
}

.branch-contact-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.contact-item:hover {
    color: var(--secondary-color);
}

.contact-item i {
    width: 36px;
    height: 36px;
    background: var(--bg-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 0.9rem;
    transition: var(--transition);
}

.contact-item:hover i {
    background: var(--secondary-color);
    color: var(--white);
    transform: rotate(15deg);
}

@media (max-width: 768px) {
    .branch-photo {
        height: 200px;
    }

    .branch-details {
        padding: 1.5rem;
    }
}