/*
   Theme: PD Legals - Rose Gold & Navy Premium
   Mode: Light (Rose Gold/Navy) & Dark (Deep Blue/Amber)
*/

:root {
    /* Light Mode */
    --bg-body: #FFF5F1;
    /* Mild Rose Gold (Very pale warm pink) */
    --bg-secondary: #fae8e0;
    /* Slightly darker rose gold for sections */
    --text-primary: #1e1b4b;
    /* Deep Navy */
    --text-secondary: #475569;
    /* Slate Grey */
    --text-light: #94a3b8;

    --accent-primary: #b8860b;
    /* Dark Goldenrod */
    --accent-gradient: linear-gradient(135deg, #b8860b 0%, #8a6508 100%);
    /* Rich Gold */
    --accent-glow: rgba(184, 134, 11, 0.25);

    --glass-bg: rgba(255, 245, 241, 0.85);
    --header-bg: rgba(225, 215, 212, 0.98);
    /* Tinted glass */
    --glass-border: rgba(184, 134, 11, 0.1);

    --card-bg: #ffffff;
    --card-shadow: 0 10px 30px -5px rgba(184, 11, 11, 0.05);
    /* Warm shadow */

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;

    --container-width: 1400px;
    /* Wider for better spacing */
    --header-height: 90px;

    --transition-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
    :root {
        /* Dark Mode - Kept same as previous for contrast */
        --bg-body: #020617;
        /* Very Dark Navy */
        --bg-secondary: #0f172a;
        --text-primary: #f8fafc;
        --text-secondary: #cbd5e1;
        --text-light: #64748b;

        --accent-primary: #fbbf24;
        /* Amber Gold */
        --accent-gradient: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
        --accent-glow: rgba(251, 191, 36, 0.15);

        --glass-bg: rgba(15, 23, 42, 0.7);
        --header-bg: rgba(2, 2, 8, 0.98);
        --glass-border: rgba(251, 191, 36, 0.1);

        --card-bg: #1e293b;
        --card-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    }
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.7;
    transition: background-color 0.5s ease, color 0.5s ease;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

h1 {
    font-size: clamp(3rem, 5vw, 5rem);
    letter-spacing: -1.5px;
}

/* Larger headings */

h2 {
    font-size: clamp(2.2rem, 3vw, 3.5rem);
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    display: block;
    border-radius: 8px;
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.container-fluid {
    width: 100%;
    padding: 0 4%;
    /* Responsive fluid padding */
    margin: 0 auto;
}

.section {
    padding: clamp(4rem, 8vw, 8rem) 0;
    position: relative;
}

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

/* Carousel / Swiper Styles */
.carousel-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 3rem 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    /* Fade edges */
}

.carousel-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: scrollLoop 40s linear infinite;
}

.carousel-container:hover .carousel-track {
    animation-play-state: paused;
}

@keyframes scrollLoop {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }

    /* Assumes duplicated content for seamless loop */
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.1rem 3rem;
    background: var(--accent-gradient);
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    /* Sharper, more corporate look than 50px */
    transition: var(--transition-fast);
    box-shadow: 0 4px 15px var(--accent-glow);
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-size: 0.9rem;
}

@media (prefers-color-scheme: dark) {
    .btn {
        color: #000;
    }
}

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

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--accent-glow);
}

.btn:hover::before {
    transform: translateX(100%);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
    padding: 1rem 2.9rem;
    border-radius: 4px;
}

.btn-outline:hover {
    background: var(--accent-primary);
    color: #fff;
}

/* Header & Nav */
header {
    height: var(--header-height);
    background-color: var(--header-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

/* Flex container for the header content */
header .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Space out Logo and Nav */
    padding: 0 3rem;
    /* Push content from edges */
    max-width: 100%;
    /* Force full width */
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    flex-shrink: 0;
    /* Never shrink logo */
    margin-right: auto;
    /* Push everything else to the right */
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo span {
    color: var(--accent-primary);
    background: none;
    -webkit-text-fill-color: initial;
}

nav {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    /* Ensure vertical alignment */
}

.nav-links {
    display: flex;
    gap: 3rem;
    /* More space between links */
    align-items: center;
}

.nav-links li:last-child {
    margin-left: 0;
    /* Reset previous override */
}

.nav-links a {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    color: var(--text-primary);
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--accent-gradient);
    transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Dropdown Styles */
.dropdown {
    position: relative;
    display: flex;
    align-items: center;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--header-bg);
    min-width: 200px;
    box-shadow: var(--card-shadow);
    border-radius: 8px;
    padding: 1rem 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    padding: 0;
    width: 100%;
}

.dropdown-menu a {
    display: block;
    padding: 0.8rem 1.5rem;
    font-size: 0.85rem;
    color: var(--text-primary);
    text-transform: none;
    letter-spacing: 0;
    transition: background 0.3s ease;
}

.dropdown-menu a:hover {
    background: var(--bg-secondary);
    color: var(--accent-primary);
}

.dropdown-menu a::after {
    display: none;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
    margin-left: auto;
    /* Push to the right */
}

/* Hero Section */
.hero {
    min-height: 80vh;
    /* Reduced from 100vh slightly */
    display: flex;
    align-items: center;
    background: var(--bg-body);
    padding-top: var(--header-height);
    /* Ensure no overlap */
    position: relative;
    overflow: hidden;
}

/* Abstract Background Shapes for Visuals */
.hero::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 80%;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
    opacity: 0.1;
    filter: blur(80px);
    z-index: 0;
    transition: var(--transition-smooth);
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: -2rem;
    /* Reduce gap at top visually */
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
        margin-top: 0;
    }

    .hero-main-card {
        margin: 0 auto;
    }
}

.hero-text {
    z-index: 2;
    animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-main-card {
    background: var(--glass-bg);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    max-width: 650px;
}

.hero-main-card h1 {
    margin-bottom: 1.5rem;
    line-height: 1.1;
    font-size: clamp(2.5rem, 4vw, 4rem);
}

.hero-main-card p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.hero-expertise-grid {
    overflow: hidden;
    margin-bottom: 2.5rem;
    padding: 0.5rem 0 1.5rem;
    position: relative;
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.expertise-carousel-track {
    display: flex;
    gap: 1.25rem;
    width: max-content;
    animation: scrollLoop 40s linear infinite;
}

.expertise-carousel-track:hover {
    animation-play-state: paused;
}

.expertise-badge {
    background: var(--bg-body);
    padding: 1.25rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex: 0 0 140px;
    /* Ensure cards don't shrink and stay consistent */
    cursor: default;
}

.expertise-badge:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.expertise-badge i,
.expertise-badge .icon {
    font-size: 1.5rem;
    color: var(--accent-primary);
}

.expertise-badge span {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.hero-btns {
    display: flex;
    gap: 1rem;
}

@media (max-width: 600px) {
    .hero-main-card {
        padding: 2rem 1.5rem;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
    }

    .hero-main-card .btn,
    .hero-main-card .btn-outline {
        width: 100%;
    }
}

.hero-image {
    position: relative;
    z-index: 1;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    animation: fadeIn 1.5s ease;
    max-height: 600px;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    transition: transform 3s ease;
}

.hero-image:hover img {
    transform: scale(1);
}

/* Services / Cards - Glassmorphism */
.service-card {
    background: var(--card-bg);
    padding: 3rem 2rem;
    border-radius: 16px;
    transition: var(--transition-fast);
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--accent-gradient);
    transform: scaleX(0);
    /* Hidden by default */
    transform-origin: left;
    transition: transform 0.4s ease;
}

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

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: var(--accent-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Generic Responsive Grid (Replaces inline styles) */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* Safe for most mobiles */
    gap: 3rem;
}

/* Two Column Split Layout (e.g., Contact Form + Info) */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}


/* Visual Elements */
.visual-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    pointer-events: none;
    background-image: radial-gradient(var(--text-primary) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Team */
.team-member {
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: var(--card-shadow);
}

.member-img {
    height: 350px;
    width: 100%;
    object-fit: cover;
    background: #ccc;
}

.team-info {
    padding: 1.5rem;
    text-align: center;
}

/* Footer */
/* Footer */
footer {
    background-color: #050505;
    /* Always black footer */
    color: #888;
    padding: 3rem 0 1rem;
    /* Reduced from 6rem 0 2rem */
    position: relative;
    overflow: hidden;
    border-top: 2px solid var(--accent-primary);
}

footer h4 {
    color: #fff;
    margin-bottom: 1rem;
    /* Reduced margin */
}

footer a:hover {
    color: #FFD700;
}

/* Yellow hover for footer */

/* Footer layout update */
footer .container {
    max-width: 100%;
    padding: 0 4%;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    /* Spreads Logo (Left) and Contact (Right) */
    align-items: flex-start;
    gap: 1.5rem;
    /* Reduced from 2rem */
    margin-bottom: 1.5rem;
    /* Reduced from 3rem */
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 1rem;
    /* Reduced from 2rem */
}

.footer-col {
    flex: 0 1 auto;
}

.footer-col:first-child {
    margin-right: auto;
    max-width: 400px;
}

/* Quick Links Centered */
.footer-col:nth-child(2) {
    margin: 0 auto;
    text-align: center;
}

/* Contact Section moved to far right */
.footer-col:last-child {
    margin-left: auto;
    text-align: right;
}

/* Reduce line spacing in footer paragraphs */
.footer-col p {
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

/* Legal Links Horizontal Bar */
.footer-legal-bar {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    /* Reduced from 2rem */
    margin-bottom: 0.5rem;
    /* Reduced from 1rem */
    font-size: 0.8rem;
    /* Slightly smaller */
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-legal-bar a {
    color: var(--text-secondary);
}

.footer-legal-bar a:hover {
    color: var(--accent-primary);
}

.footer-bottom {
    text-align: center;
    font-size: 0.75rem;
    /* Slightly smaller */
    color: var(--text-light);
    border: none;
    /* Removed top border as grid has bottom border */
    padding-top: 0;
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Mobile */
@media (max-width: 1024px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        right: 0;
        /* Align to right */
        left: auto;
        /* Reset left */
        width: 250px;
        /* Drawer width */
        background: var(--bg-body);
        padding: 2rem;
        box-shadow: -5px 5px 15px rgba(0, 0, 0, 0.1);
        /* Left-sided shadow */
        border-bottom: 1px solid var(--glass-border);
        border-left: 1px solid var(--glass-border);
    }

    .nav-links.active {
        display: flex;
    }

    /* Mobile Dropdown Adjustments */
    .dropdown {
        flex-direction: column;
        /* align-items: flex-start; */
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: transparent;
        padding: 0 0 0 1.5rem;
        margin-top: 0.5rem;
        display: none;
        /* Toggle this via JS or just show it */
    }

    .dropdown:hover .dropdown-menu,
    .dropdown.active .dropdown-menu {
        display: block;
    }

    .dropdown-menu a {
        padding: 0.5rem 0;
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        min-height: auto;
        padding-top: calc(var(--header-height) + 2rem);
        padding-bottom: 3rem;
        align-items: flex-start;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
        padding-bottom: 2rem;
        /* Add breathing room at bottom */
    }

    .hero-content h1 {
        font-size: clamp(2rem, 8vw, 3rem);
        /* Better scaling for mobile */
        line-height: 1.2;
    }

    /* Adjust hero image for mobile to prevent it from taking too much space or looking awkward */
    .hero-image {
        max-height: 300px;
        margin-top: 2rem;
        order: 2;
        /* Ensure it stays below text if not already */
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* Stack Split Layouts on Mobile */
    .split-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    /* Ensure Cards Grid allows smaller items on mobile if needed */
    .cards-grid {
        gap: 2rem;
        /* auto-fit minmax(300px) might still be too wide for very small phones (320px) */
        grid-template-columns: 1fr;
    }

    /* Footer Mobile Optimization */
    .footer-grid {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .footer-col,
    .footer-col:first-child,
    .footer-col:last-child,
    .footer-col:nth-child(2) {
        margin: 0 auto;
        text-align: center;
        max-width: 100%;
        width: 100%;
    }

    .footer-legal-bar {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

/* Forms */
input,
textarea {
    width: 100%;
    padding: 1.2rem;
    background: transparent;
    border: 1px solid var(--text-light);
    color: var(--text-primary);
    border-radius: 8px;
    font-family: var(--font-body);
    margin-bottom: 0.5rem;
    transition: 0.3s;
}

input:focus,
textarea:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px var(--accent-glow);
    outline: none;
}

/* Round Team Members Request */
.team-member-round {
    background: transparent !important;
    box-shadow: none !important;
    text-align: center;
    border: none !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 200px !important;
}

.team-member-round:hover {
    transform: translateY(-5px);
}

.member-img-round {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 3px solid var(--accent-primary);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Testimonials */
.testimonial-card {
    background: var(--card-bg);
    /* Or glass-bg */
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    min-width: 350px;
    max-width: 350px;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-info h4 {
    font-size: 1rem;
    margin: 0;
    color: var(--text-primary);
}

.author-info p {
    font-size: 0.85rem;
    margin: 0;
    color: var(--accent-primary);
}

/* Clients Marquee */
.clients-section {
    cursor: pointer;
    /* Clickable as requested */
    background-color: var(--bg-body);
}

.client-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-width: 150px;
    padding: 1rem;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.client-item:hover {
    opacity: 1;
}

.client-logo {
    width: 60px;
    height: 60px;
    object-fit: contain;
    /* Placeholder fallback style if no logo */
    background-color: #eee;
    border-radius: 50%;
    padding: 5px;
}

.client-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Legal Disclaimer Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: var(--card-bg);
    padding: 2.5rem;
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--accent-primary);
    text-align: left;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content h2 {
    color: var(--accent-primary);
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
}

.modal-content ul {
    list-style-type: disc;
    padding-left: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.modal-content li {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
}

/* Publications */
.publication-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.pub-item {
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
}

.pub-item:last-child {
    border-bottom: none;
}

.pub-date {
    font-size: 0.85rem;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}

.pub-item h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.pub-item h3 a:hover {
    color: var(--accent-primary);
}

/* Services Layout (Sidebar + Preview) */
.services-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
    min-height: 60vh;
}

.services-sidebar {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem 0;
    height: fit-content;
}

.service-category-item {
    padding: 1rem 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.service-category-item:hover,
.service-category-item.active {
    background: rgba(var(--accent-primary-rgb), 0.05);
    /* Assuming fallback or define var */
    background: var(--bg-body);
    /* simplified fallback */
    border-left-color: var(--accent-primary);
    color: var(--accent-primary);
}

.service-category-item .arrow {
    font-size: 0.8rem;
    opacity: 0.5;
}

.services-content-preview {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid var(--glass-border);
}

.sub-service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.sub-service-card {
    background: var(--bg-body);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.sub-service-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-primary);
}

/* Tablet / Mobile */
@media (max-width: 900px) {
    .services-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .services-sidebar {
        display: flex;
        overflow-x: auto;
        padding: 0.5rem;
        gap: 1rem;
    }

    .service-category-item {
        border-left: none;
        border-bottom: 3px solid transparent;
        white-space: nowrap;
        padding: 1rem;
    }

    .service-category-item:hover,
    .service-category-item.active {
        border-left: none;
        border-bottom-color: var(--accent-primary);
    }

    .service-category-item .arrow {
        display: none;
    }
}

/* --- NEW FUSION SERVICES CARD DESIGN --- */
.service-card-fusion {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card-fusion:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-primary);
}

.service-card-fusion .icon {
    font-size: 2.5rem;
    color: var(--accent-primary);
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: transform 0.3s ease;
}

.service-card-fusion:hover .icon {
    transform: scale(1.1);
}

.service-card-fusion h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 700;
}

.service-card-fusion .desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    /* Pushes list/footer down */
    line-height: 1.6;
}

.service-card-fusion .sub-services-list {
    margin: 1rem 0 2rem;
    padding-left: 0;
    list-style: none;
    border-top: 1px solid var(--glass-border);
    padding-top: 1rem;
}

.service-card-fusion .sub-services-list li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    padding-left: 1.2rem;
    position: relative;
    display: flex;
    align-items: center;
}

.service-card-fusion .sub-services-list li::before {
    content: '•';
    color: var(--accent-primary);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    line-height: 1;
}

.service-card-fusion .read-more {
    margin-top: auto;
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s ease;
}

.service-card-fusion:hover .read-more {
    gap: 0.8rem;
}

/* --- CONTACT PAGE MAP ROUND STYLE --- */
.map-round-container {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    /* Centered with bottom margin */
    border: 5px solid var(--card-bg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    /* Stronger shadow for floating effect */
    position: relative;
    z-index: 2;
}

.map-round-container iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
}

.map-card-centered {
    text-align: center;
    padding: 2rem;
    background: var(--card-bg);
    /* Ensure card bg if strictly needed, though parent might provide it */
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    transition: transform 0.3s ease;
}

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

/* --- PREMIUM TEAM SPOTLIGHT DESIGN --- */
.team-spotlight-section {
    background: radial-gradient(circle at center, rgba(212, 175, 55, 0.05) 0%, var(--bg-primary) 70%);
    position: relative;
    padding: 100px 0;
}

.team-central-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
    margin-top: 50px;
}

.team-card-spotlight {
    position: relative;
    width: 100%;
    max-width: 380px;
    height: 520px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.team-card-spotlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 40%, rgba(0, 0, 0, 0.9) 90%);
    z-index: 2;
}

.team-card-spotlight img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease, filter 0.8s ease;
    filter: grayscale(30%) brightness(0.9);
}

.team-card-spotlight:hover img {
    transform: scale(1.05);
    filter: grayscale(0%) brightness(1);
}

.team-card-spotlight:hover {
    transform: translateY(-20px) scale(1.02);
    border-color: var(--accent-primary);
    box-shadow: 0 30px 80px rgba(212, 175, 55, 0.15);
}

.team-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem;
    z-index: 3;
    text-align: center;
    transform: translateY(20px);
    transition: transform 0.5s ease;
}

.team-card-spotlight:hover .team-card-info {
    transform: translateY(0);
}

.team-card-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.team-card-info .role {
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.team-card-footer {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.team-card-spotlight:hover .team-card-footer {
    opacity: 1;
}

.profile-btn-minimal {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.profile-btn-minimal:hover {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: #000;
}

/* Staggered layout for 2 cards */

/* Mobile Handling for various screens */
@media (max-width: 768px) {
    .hero-main-card {
        padding: 2.5rem 2rem;
        width: 100%;
        max-width: 500px;
        /* Limit width on tablets/landscape to keep it readable */
        margin: 0 auto;
        /* Center it */
        box-sizing: border-box;
    }

    .hero-text {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0 1rem;
        /* Ensure it doesn't touch edges */
    }
}

@media (max-width: 1024px) {
    .hero-image {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-expertise-grid {
        display: none;
    }
}