/* ==========================================================================
   LINEAR / VERCEL ULTRA-PREMIUM DARK MODE DESIGN SYSTEM
   Dr. K. Sivadeeskannan - Advocate, Politician, CEO & Social Activist
   ========================================================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@500;600;700&display=swap');

:root {
    /* DEFAULT ULTRA-PREMIUM LIGHT THEME */
    --color-bg-deep: #f8fafc;            /* Clean ambient background */
    --color-bg-card: #ffffff;            /* Pure white elevated cards */
    --color-bg-card-hover: #ffffff;
    --color-bg-nav: rgba(255, 255, 255, 0.88);
    --color-primary: #0f172a;
    
    /* VIVID ACCENT COLOR PALETTE */
    --color-accent-gold: #0284c7;        /* Deep Sky Azure */
    --color-accent-gold-glow: rgba(2, 132, 199, 0.15);
    --color-accent-indigo: #2563eb;      /* Royal Sapphire Blue */
    --color-accent-indigo-glow: rgba(37, 99, 235, 0.2);
    
    /* HIGH LEGIBILITY TYPOGRAPHY */
    --color-text-white: #0f172a;         /* Deep Midnight Navy for headings */
    --color-text-body: #334155;          /* Crisp Charcoal body text */
    --color-text-muted: #64748b;         /* Slate caption text */
    
    /* ELEVATED SHADOWS & BORDERS */
    --glass-border: rgba(226, 232, 240, 0.9);
    --glass-border-hover: rgba(37, 99, 235, 0.5);
    --card-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
    --card-glow-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.18), 0 0 20px rgba(2, 132, 199, 0.1);

    /* TYPOGRAPHY GRADIENTS */
    --color-hero-span-gradient: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #0284c7 100%);
    --color-title-span-gradient: linear-gradient(135deg, #1d4ed8 0%, #0284c7 100%);

    /* TYPOGRAPHY PAIRING */
    --font-heading: "Space Grotesk", -apple-system, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, sans-serif;

    /* TRANSITIONS */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s ease-out;
}

[data-theme="dark"] {
    /* NIGHT MODE (Obsidian Dark Theme) */
    --color-bg-deep: #07080a;
    --color-bg-card: rgba(17, 19, 26, 0.85);
    --color-bg-card-hover: rgba(24, 27, 38, 0.95);
    --color-bg-nav: rgba(7, 8, 10, 0.88);
    --color-primary: #07080a;
    --color-accent-gold: #38bdf8;
    --color-accent-gold-glow: rgba(56, 189, 248, 0.2);
    --color-accent-indigo: #2563eb;
    --color-accent-indigo-glow: rgba(37, 99, 235, 0.35);
    --color-text-white: #ffffff;
    --color-text-body: #94a3b8;
    --color-text-muted: #64748b;
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(56, 189, 248, 0.45);
    --card-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.7);
    --card-glow-shadow: 0 20px 50px -10px rgba(37, 99, 235, 0.25);
    --color-hero-span-gradient: linear-gradient(135deg, #ffffff 30%, #60a5fa 70%, #38bdf8 100%);
    --color-title-span-gradient: linear-gradient(135deg, #60a5fa 0%, #38bdf8 100%);
}

/* ==========================================================================
   BASE RESET & LAYOUT
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: auto; /* Handled smoothly by Lenis */
    overflow-x: hidden;
    background-color: var(--color-bg-deep);
}

body {
    background-color: var(--color-bg-deep);
    color: var(--color-text-body);
    font-family: var(--font-body);
    line-height: 1.6;
    /* overflow-x: hidden removed — it breaks position:fixed for social sidebar */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Linear Grid Background Pattern with Ambient Radial Glows */
.grid-3d-bg {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background-color: var(--color-bg-deep);
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(56, 189, 248, 0.08) 0%, transparent 40%),
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 48px 48px, 48px 48px;
    overflow: hidden;
}

[data-theme="light"] .grid-3d-bg {
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 85% 30%, rgba(2, 132, 199, 0.06) 0%, transparent 40%),
        linear-gradient(rgba(15, 23, 42, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
}

#particle-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    opacity: 0.85;
}

/* Container & Sections */
section {
    padding: 4rem 2rem;
    max-width: 1240px;
    margin: 0 auto;
    position: relative;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text-white);
    letter-spacing: -0.02em;
    margin-bottom: 2.5rem;
    line-height: 1.2;
    text-align: center;
    position: relative;
    padding-bottom: 1.25rem;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent-indigo), var(--color-accent-gold));
    border-radius: 4px;
    box-shadow: 0 0 12px rgba(37, 99, 235, 0.35);
}

.section-title span {
    color: inherit;
    background: none;
    -webkit-background-clip: initial;
    -webkit-text-fill-color: initial;
}

/* Glass Card Standard */
.glass-card {
    background: var(--color-bg-card);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    border-color: var(--glass-border-hover);
    box-shadow: var(--card-glow-shadow);
    transform: translateY(-3px);
}

/* Tilt card effect support */
.tilt-card {
    will-change: transform;
}

/* ==========================================================================
   HEADER & GLASS NAVIGATION
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-smooth);
    padding: 1.25rem 0;
}

header.scrolled {
    padding: 0.75rem 0;
    background-color: var(--color-bg-nav);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--color-text-white);
    text-decoration: none;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    white-space: nowrap;
}

.logo span {
    color: var(--color-accent-gold);
}

.nav-links {
    display: flex;
    gap: 1.25rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text-muted);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
    padding: 0.4rem 0;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--color-text-white);
}

.nav-links a.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent-indigo), var(--color-accent-gold));
    border-radius: 2px;
}

/* Navigation CTA Button style */
.nav-links a.nav-cta {
    background: linear-gradient(135deg, var(--color-accent-indigo), #1d4ed8);
    color: #ffffff !important;
    padding: 0.55rem 1.4rem !important;
    border-radius: 9999px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    transition: var(--transition-smooth);
    display: inline-block;
}

.nav-links a.nav-cta:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
    transform: translateY(-2px);
}

.nav-links a.nav-cta::after {
    display: none !important; /* Hide active indicator for CTA */
}

/* Mobile Toggle */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--color-text-white);
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* Theme Toggle Button (Hanging Lightbulb) */
.lamp-theme-toggle {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-text-white);
    transition: var(--transition-fast);
}

.lamp-theme-toggle:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: var(--color-accent-gold);
    color: var(--color-accent-gold);
    transform: scale(1.05);
}

.lamp-fixture, .lamp-pull-cord {
    display: none; /* Streamlined for minimal modern UI */
}

.lamp-bulb-body i {
    font-size: 1.1rem;
    display: block;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
#home {
    min-height: auto;
    display: flex;
    align-items: center;
    padding-top: 6rem;
    padding-bottom: 3rem;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
    width: 100%;
}

.hero-badge {
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: var(--color-accent-gold);
    padding: 0.45rem 1.2rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 1.5rem;
    font-family: var(--font-body);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.15);
}

.hero-badge::before {
    content: "";
    width: 7px;
    height: 7px;
    background-color: var(--color-accent-gold);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--color-accent-gold);
}

.hero-name {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--color-text-white);
    margin-bottom: 1.25rem;
}

.hero-name span {
    background: var(--color-hero-span-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-tagline {
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--color-accent-gold);
    margin-bottom: 1.25rem;
    font-family: var(--font-heading);
    line-height: 1.6;
    display: block;
}

.tagline-prefix {
    color: var(--color-text-muted);
    white-space: nowrap;
    margin-right: 0.35rem;
}

.typing-cursor {
    animation: blink 1s infinite;
    color: var(--color-accent-gold);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.hero-description {
    font-size: 1.05rem;
    color: var(--color-text-body);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    max-width: 580px;
}

.hero-quote {
    border-left: 3px solid var(--color-accent-gold);
    padding: 0.75rem 1.25rem;
    margin-bottom: 2.25rem;
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--color-accent-gold);
    background: rgba(37, 99, 235, 0.08);
    border-radius: 0 12px 12px 0;
    max-width: 580px;
}

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

/* Button System */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.6rem;
    border-radius: 10px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent-indigo), #1d4ed8);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8, #1e40af);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.6);
    color: #ffffff;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--color-text-white);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--glass-border-hover);
    color: var(--color-accent-gold);
    transform: translateY(-2px);
}

.hero-graphic {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile-only-graphic {
    display: none !important;
}

.graphic-bg-glow {
    position: absolute;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, rgba(56, 189, 248, 0.1) 50%, transparent 70%);
    filter: blur(40px);
    z-index: -1;
}

.hero-avatar {
    width: 100%;
    max-width: 380px;
    height: auto;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: none;
    transition: var(--transition-smooth);
}

.hero-avatar:hover {
    border-color: var(--color-accent-gold);
    transform: scale(1.02);
}

/* ==========================================================================
   FOUR PILLARS SECTION
   ========================================================================== */
#pillars {
    padding-top: 4rem;
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
}

.pillar-card {
    background: var(--color-bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.25rem 1.75rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.pillar-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent-indigo), var(--color-accent-gold));
    opacity: 0;
    transition: var(--transition-fast);
}

.pillar-card:hover {
    border-color: var(--glass-border-hover);
    box-shadow: var(--card-glow-shadow);
    transform: translateY(-5px);
}

.pillar-card:hover::before {
    opacity: 1;
}

.pillar-icon {
    width: 52px;
    height: 52px;
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent-gold);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition-fast);
}

.pillar-card:hover .pillar-icon {
    background: var(--color-accent-indigo);
    color: #ffffff;
    transform: scale(1.08);
}

.pillar-card h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-text-white);
    margin-bottom: 0.75rem;
}

.pillar-card p {
    font-size: 0.95rem;
    color: var(--color-text-body);
    line-height: 1.6;
    margin-bottom: 1.75rem;
    flex-grow: 1;
}

.pillar-link {
    text-decoration: none;
    color: var(--color-accent-gold);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: var(--transition-fast);
}

.pillar-link i {
    transition: var(--transition-fast);
}

.pillar-card:hover .pillar-link i {
    transform: translateX(4px);
}

/* ==========================================================================
   ABOUT SECTION & STAT STRIP
   ========================================================================== */
.about-wrapper {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 3.5rem;
    align-items: center;
}

.about-info h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text-white);
    margin-bottom: 1.25rem;
}

.about-bio {
    font-size: 1rem;
    color: var(--color-text-body);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-top: 2rem;
}

.stat-box {
    background: var(--color-bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 1.5rem 1rem;
    text-align: center;
    transition: var(--transition-smooth);
}

.stat-box:hover {
    border-color: var(--color-accent-gold);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.15);
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--color-accent-gold);
    line-height: 1;
    margin-bottom: 0.4rem;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   LEGAL PRACTICE & CREDENTIALS
   ========================================================================== */
.legal-intro {
    text-align: center;
    max-width: 760px;
    margin: -1.25rem auto 3rem auto;
    font-size: 1.05rem;
    color: var(--color-text-body);
    line-height: 1.7;
}

.legal-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
}

.practice-areas {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.practice-card {
    padding: 1.75rem;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.practice-icon {
    width: 44px;
    height: 44px;
    background: rgba(37, 99, 235, 0.12);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent-gold);
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
}

.practice-card h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text-white);
    margin-bottom: 0.5rem;
}

.practice-card p {
    font-size: 0.9rem;
    color: var(--color-text-body);
    line-height: 1.5;
}

.credentials-panel {
    background: var(--color-bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
}

.credentials-panel h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-text-white);
    margin-bottom: 1.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--glass-border);
}

.credential-timeline {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
}

.credential-timeline::before {
    content: "";
    position: absolute;
    top: 5px;
    left: 8px;
    bottom: 5px;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
}

.credential-item {
    position: relative;
    padding-left: 2rem;
}

.credential-item::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-accent-gold);
    box-shadow: 0 0 10px var(--color-accent-gold);
}

.credential-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-text-white);
    margin-bottom: 0.25rem;
}

.credential-source {
    font-size: 0.88rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   BUSINESS OPERATIONS
   ========================================================================== */
.business-header {
    background: var(--color-bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.biz-info h3 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text-white);
}

.biz-logo-placeholder {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-white);
    padding: 1rem 2rem;
    background: rgba(37, 99, 235, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 12px;
    white-space: nowrap;
}

.biz-logo-placeholder span {
    color: inherit;
}

.biz-services {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.biz-card {
    padding: 2rem;
}

.biz-icon {
    width: 48px;
    height: 48px;
    background: rgba(37, 99, 235, 0.12);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent-gold);
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
}

.biz-card h4 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--color-text-white);
    margin-bottom: 0.5rem;
}

.biz-card p {
    font-size: 0.92rem;
    color: var(--color-text-body);
}

/* ==========================================================================
   GALLERY, RECOGNITION & CERTIFICATES SHOWCASE
   ========================================================================== */
#gallery {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.gallery-intro {
    text-align: center;
    max-width: 720px;
    margin: -1rem auto 2.5rem auto;
    color: var(--color-text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Filter Category Tabs */
.gallery-filter-tabs {
    display: flex;
    justify-content: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.gallery-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1.3rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--color-text-body);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    backdrop-filter: blur(10px);
}

.gallery-tab i {
    width: 16px;
    height: 16px;
    color: var(--color-accent-gold);
}

.gallery-tab:hover {
    background: rgba(37, 99, 235, 0.15);
    border-color: rgba(56, 189, 248, 0.4);
    color: var(--color-text-white);
    transform: translateY(-2px);
}

.gallery-tab.active {
    background: linear-gradient(135deg, var(--color-accent-indigo), #1d4ed8);
    border-color: var(--color-accent-gold);
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
}

.gallery-tab.active i {
    color: #ffffff;
}

/* Slider Track & Cards */
.gallery-slider-container {
    position: relative;
    max-width: 1040px;
    margin: 0 auto;
    overflow: hidden;
    padding: 0.5rem;
}

.gallery-slider-track {
    display: flex;
    transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.gallery-slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 0 0.5rem;
    opacity: 0.3;
    transform: scale(0.96);
    transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-slide.active {
    opacity: 1;
    transform: scale(1);
}

.gallery-slide.hidden-by-filter {
    display: none !important;
}

.gallery-card {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 2.5rem;
    align-items: center;
    padding: 2.5rem;
    border-radius: 20px;
}

.gallery-card-badge {
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: var(--color-accent-gold);
    padding: 0.35rem 0.9rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

.gallery-card-info h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-text-white);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.gallery-card-info p {
    font-size: 0.98rem;
    color: var(--color-text-body);
    line-height: 1.65;
    margin-bottom: 1.75rem;
}

.view-cert-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.4rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--color-accent-gold);
    border-radius: 10px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.view-cert-btn:hover {
    background: var(--color-accent-indigo);
    border-color: var(--color-accent-gold);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

.gallery-card-img-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    cursor: pointer;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.95), rgba(5, 8, 20, 1));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
}

.gallery-card-img {
    width: 100%;
    height: 350px;
    object-fit: contain;
    padding: 0.6rem;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card-img-wrapper:hover .gallery-card-img {
    transform: scale(1.05);
}

.img-zoom-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 15, 30, 0.65);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-card-img-wrapper:hover .img-zoom-overlay {
    opacity: 1;
}

/* Slider Controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-bg-card);
    border: 2px solid var(--color-accent-indigo);
    color: var(--color-accent-indigo);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
}

.slider-btn svg {
    width: 24px;
    height: 24px;
    stroke-width: 2.5px;
}

.slider-btn:hover {
    background: var(--color-accent-indigo);
    border-color: var(--color-accent-indigo);
    color: #ffffff;
    transform: translateY(-50%) scale(1.12);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.45);
}

.prev-btn { left: 5px; }
.next-btn { right: 5px; }

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 2rem;
}

.slider-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: var(--transition-fast);
}

.slider-dots .dot.active {
    width: 30px;
    border-radius: 6px;
    background: var(--color-accent-gold);
}

/* Lightbox Modal */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(5, 8, 18, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    padding: 2rem;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 30px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    color: #ffffff;
    font-size: 2.2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    line-height: 1;
    z-index: 100000;
}

.lightbox-close:hover {
    background: #dc2743;
    border-color: #dc2743;
    transform: rotate(90deg);
}

.lightbox-content {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 72vh;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
}

.lightbox-caption {
    color: var(--color-accent-gold);
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    text-align: center;
    max-width: 700px;
}

/* ==========================================================================
   SOCIAL SERVICE & ADVOCACY
   ========================================================================== */
.social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
}

.social-card {
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.social-card h4 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text-white);
    margin-bottom: 0.75rem;
}

.social-card p {
    font-size: 0.95rem;
    color: var(--color-text-body);
    line-height: 1.6;
    margin-bottom: 1.75rem;
}

.social-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.social-tag {
    background: rgba(37, 99, 235, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.2);
    color: var(--color-accent-gold);
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}


/* ==========================================================================
   PUBLIC ENGAGEMENT SECTION
   ========================================================================== */
#engagement {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.engagement-roles-container {
    margin-bottom: 3rem;
}

.engagement-card {
    padding: 2.5rem;
    border-radius: 16px;
    background: var(--color-bg-card);
    border: 1px solid var(--glass-border);
    transition: var(--transition-smooth);
}

.engagement-icon {
    width: 60px;
    height: 60px;
    background: rgba(37, 99, 235, 0.12);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent-gold);
    font-size: 1.75rem;
}

.engagement-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.75rem;
}

.meeting-card {
    background: var(--color-bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.meeting-card:hover {
    border-color: var(--glass-border-hover);
    box-shadow: var(--card-glow-shadow);
    transform: translateY(-5px);
}

.meeting-img-wrapper {
    width: 100%;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    border-bottom: 1px solid var(--glass-border);
    background: #0f172a;
}

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

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

.meeting-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.meeting-info h4 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--color-text-white);
    margin-bottom: 0.6rem;
    line-height: 1.3;
}

.meeting-info p {
    font-size: 0.9rem;
    color: var(--color-text-body);
    line-height: 1.5;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text-white);
    margin-bottom: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.contact-icon-wrapper {
    width: 48px;
    height: 48px;
    background: rgba(37, 99, 235, 0.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent-gold);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.contact-details h4 {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-details p, .contact-details a {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text-white);
    text-decoration: none;
    transition: var(--transition-fast);
}

.contact-details a:hover {
    color: var(--color-accent-gold);
}

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

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.4rem;
    background: var(--color-bg-card);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--color-text-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.social-btn:hover {
    border-color: var(--color-accent-gold);
    color: var(--color-accent-gold);
    transform: translateY(-2px);
}

/* Contact Form */
.contact-form-wrapper {
    padding: 2.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-text-white);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.85rem 1.1rem;
    background: var(--color-bg-deep);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--color-text-white);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--color-accent-gold);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.form-group textarea {
    resize: vertical;
}

/* ==========================================================================
   FOOTER & CURSOR
   ========================================================================== */
footer {
    border-top: 1px solid var(--glass-border);
    padding: 2.5rem 0;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-text-white);
}

.footer-logo span {
    color: var(--color-accent-gold);
}

.footer-copy {
    font-size: 0.88rem;
    color: var(--color-text-muted);
}

/* Custom Cursor */
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-accent-gold);
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

.cursor-outline {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(56, 189, 248, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s;
}

/* ==========================================================================
   TESTIMONIALS & ENDORSEMENTS
   ========================================================================== */
.testimonials-slider-container {
    position: relative;
    max-width: 920px;
    margin: 0 auto;
    padding: 0 65px;
}

.testimonials-slider-container .prev-btn {
    left: 0;
}

.testimonials-slider-container .next-btn {
    right: 0;
}

.testimonials-slider-track-wrapper {
    overflow: hidden;
    width: 100%;
    border-radius: 20px;
}

.testimonials-slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
}

.testimonial-slide {
    flex: 0 0 100%;
    min-width: 100%;
    opacity: 0.2;
    scale: 0.97;
    transition: opacity 0.5s ease, scale 0.5s ease;
    box-sizing: border-box;
    padding: 0 4px;
}

.testimonial-slide.active {
    opacity: 1;
    scale: 1;
}

.testimonial-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.5rem 0.5rem;
    position: relative;
    transition: var(--transition-smooth);
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible;
}

.testimonial-card::before {
    display: none;
}

.testimonial-card::after {
    content: "“";
    position: absolute;
    left: 50%;
    top: -1rem;
    transform: translateX(-50%);
    font-family: Georgia, serif;
    font-size: 8rem;
    line-height: 1;
    color: var(--color-accent-gold);
    opacity: 0.12;
    pointer-events: none;
}

.testimonial-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.testimonial-avatar-badge {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.6rem;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.28);
    border: 3px solid var(--color-accent-indigo);
    background: #ffffff;
    overflow: hidden;
    padding: 4px;
}

.testimonial-company-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
    transform: scale(1.15);
}

.testimonial-company-logo.author-photo {
    object-fit: cover;
    transform: scale(1.05);
}

.avatar-legal  { background: linear-gradient(135deg, #1e3a8a, #2563eb); }
.avatar-biz    { background: linear-gradient(135deg, #0284c7, #38bdf8); }
.avatar-edu    { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.avatar-social { background: linear-gradient(135deg, #059669, #10b981); }

.testimonial-author-info {
    text-align: center;
}

.testimonial-author-info h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-text-white);
    margin-bottom: 0.2rem;
}

.testimonial-author-info span {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

.testimonial-rating {
    display: flex;
    justify-content: center;
    gap: 0.3rem;
    color: #f59e0b;
    margin-bottom: 1.25rem;
}

.testimonial-rating svg {
    width: 20px;
    height: 20px;
    fill: #f59e0b;
}

.testimonial-text {
    font-size: 1.08rem;
    color: var(--color-text-body);
    line-height: 1.75;
    font-style: italic;
    margin-bottom: 1.75rem;
    max-width: 720px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.testimonial-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
    width: 100%;
    max-width: 450px;
    font-size: 0.85rem;
}

.testimonial-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--color-accent-indigo);
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.2);
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.78rem;
}

.testimonial-tag svg {
    width: 14px;
    height: 14px;
}

.testimonial-location {
    color: var(--color-text-muted);
    font-weight: 600;
    font-size: 0.82rem;
}

/* Hide custom cursor dot & outline on touch devices */
@media (hover: none) and (pointer: coarse), (max-width: 768px) {
    .cursor-dot, .cursor-outline {
        display: none !important;
    }
}
/* ==========================================================================
   FLOATING SOCIAL SIDEBAR
   ========================================================================== */
.floating-social-bar {
    position: fixed !important;
    right: 12px !important;
    top: 65% !important;
    transform: translateY(-50%) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    z-index: 99999 !important;
}

.fsb-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    text-decoration: none;
    transition: transform 0.25s cubic-bezier(0.16,1,0.3,1), box-shadow 0.25s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
    flex-shrink: 0;
}

.fsb-btn:hover {
    transform: scale(1.15) translateX(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

.fsb-whatsapp  { background: #25D366; }
.fsb-call      { background: #0078d4; }
.fsb-facebook  { background: #1877F2; }
.fsb-instagram { background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.fsb-youtube   { background: #FF0000; }
.fsb-x         { background: #000000; }
.fsb-gmail     { background: #ea4335; }
.fsb-linkedin  { background: #0A66C2; }

/* On very small screens, move to bottom-right */
@media (max-width: 768px) {
    .floating-social-bar {
        top: auto !important;
        transform: none !important;
        bottom: 20px !important;
        right: 10px !important;
        gap: 6px !important;
    }
    .fsb-btn {
        width: 40px;
        height: 40px;
    }
    .fsb-btn svg {
        width: 18px;
        height: 18px;
    }
}

@media (max-width: 480px) {
    .floating-social-bar {
        top: auto !important;
        transform: none !important;
        bottom: 20px !important;
        right: 8px !important;
        gap: 5px !important;
    }
    .fsb-btn {
        width: 38px;
        height: 38px;
    }
    .fsb-btn svg {
        width: 17px;
        height: 17px;
    }
}


@media (max-width: 1150px) {
    .desktop-only-graphic {
        display: none !important;
    }

    .mobile-only-graphic {
        display: flex !important;
        margin-top: 1.5rem;
        margin-bottom: 2rem;
    }

    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    
    .hero-description,
    .hero-quote {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-ctas {
        justify-content: center;
    }
    
    .about-wrapper {
        grid-template-columns: 1fr;
    }

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

    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .biz-services {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    section {
        padding: 2rem 1.1rem;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 1rem !important;
        line-height: 1.25;
    }

    .section-desc, .legal-intro, .gallery-intro, .business-intro {
        font-size: 0.95rem;
        margin: 0 auto 1.5rem auto !important;
        line-height: 1.55;
    }

    .glass-card {
        padding: 1.25rem 1.1rem;
    }

    .hero-name {
        font-size: clamp(2.1rem, 7.5vw, 3rem);
    }

    .hero-tagline {
        font-size: 0.95rem;
        line-height: 1.65;
        margin-bottom: 1.2rem;
    }

    .hero-description {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 1.2rem;
    }

    .hero-quote {
        border-left: none;
        border-top: 3px solid var(--color-accent-gold);
        border-radius: 0 0 12px 12px;
        text-align: center;
        padding: 0.85rem 1rem;
        font-size: 0.9rem;
    }

    .hero-avatar {
        max-width: 240px;
        margin: 0 auto;
    }

    .hero-ctas {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 0.8rem 1.1rem;
        font-size: 0.92rem;
    }

    .nav-links {
        position: fixed;
        top: 65px;
        left: 0;
        width: 100%;
        background: var(--color-bg-nav);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        padding: 2rem 1.25rem;
        gap: 1rem;
        transform: translateY(-150%);
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        border-bottom: 1px solid var(--glass-border);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    }

    .nav-links.active {
        transform: translateY(0);
    }

    .nav-links a {
        font-size: 1.05rem;
        padding: 0.5rem 0;
        width: 100%;
        text-align: center;
    }

    .menu-toggle {
        display: flex;
    }

    /* Gallery Filter Tabs - Horizontal Scrollable Pill Bar on Mobile */
    .gallery-filter-tabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        justify-content: flex-start !important;
        gap: 0.5rem !important;
        padding: 0.3rem 0.2rem 0.8rem 0.2rem !important;
        margin-bottom: 1.5rem !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }

    .gallery-filter-tabs::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    .gallery-tab {
        flex: 0 0 auto !important;
        padding: 0.5rem 0.9rem !important;
        font-size: 0.82rem !important;
        white-space: nowrap !important;
    }

    .gallery-tab i {
        width: 14px !important;
        height: 14px !important;
    }

    .timeline-card,
    .gallery-card {
        grid-template-columns: 1fr;
        padding: 1.1rem 0.9rem !important;
        gap: 0.85rem !important;
        border-radius: 16px !important;
    }

    .gallery-card-badge {
        font-size: 0.72rem !important;
        padding: 0.25rem 0.7rem !important;
        margin-bottom: 0.65rem !important;
    }

    .gallery-card-info h3 {
        font-size: 1.25rem !important;
        line-height: 1.25 !important;
        margin-bottom: 0.5rem !important;
    }

    .gallery-card-info p {
        font-size: 0.88rem !important;
        line-height: 1.5 !important;
        margin-bottom: 1rem !important;
    }

    .view-cert-btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 0.65rem 1rem !important;
        font-size: 0.85rem !important;
        margin-bottom: 0.5rem !important;
    }

    .timeline-img,
    .gallery-card-img {
        height: 190px !important;
        padding: 0.4rem !important;
    }

    .practice-card {
        padding: 1.2rem 1rem;
    }

    .practice-card h4 {
        font-size: 1.15rem;
        margin-bottom: 0.4rem;
    }

    .practice-card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .social-grid,
    .biz-services,
    .practice-areas,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .testimonials-slider-container {
        padding: 0 45px !important;
    }

    .testimonial-card {
        padding: 1.2rem 0.25rem !important;
    }

    .testimonial-avatar-badge {
        width: 72px !important;
        height: 72px !important;
        padding: 3px !important;
        border-width: 2.5px !important;
    }

    .testimonial-author-info h3 {
        font-size: 1.15rem !important;
    }

    .testimonial-author-info span {
        font-size: 0.82rem !important;
        line-height: 1.4 !important;
        display: block !important;
    }

    .testimonial-text {
        font-size: 0.92rem !important;
        margin-bottom: 1.2rem !important;
        line-height: 1.6 !important;
        padding: 0 5px !important;
    }

    .testimonial-footer {
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.6rem !important;
        padding-top: 0.85rem !important;
        width: 100% !important;
    }

    .testimonial-tag {
        font-size: 0.75rem !important;
        padding: 0.3rem 0.75rem !important;
        text-align: center !important;
        white-space: normal !important;
        word-break: break-word !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .testimonial-location {
        font-size: 0.8rem !important;
        text-align: center !important;
    }

    .business-header {
        flex-direction: column;
        text-align: center;
        padding: 1.25rem 1rem;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    section {
        padding: 1.6rem 0.85rem;
    }

    .hero-name {
        font-size: 1.95rem;
    }

    .section-title {
        font-size: 1.55rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.65rem;
    }

    .stat-card {
        padding: 0.9rem 0.6rem;
    }

    .stat-num {
        font-size: 1.7rem;
    }

    .stat-label {
        font-size: 0.78rem;
    }

    /* Four Pillars Grid & Cards - Compact Mobile Styling */
    .pillars-grid {
        gap: 1rem !important;
    }

    .pillar-card {
        padding: 1.2rem 1rem !important;
        border-radius: 14px !important;
    }

    .pillar-icon {
        width: 44px !important;
        height: 44px !important;
        border-radius: 10px !important;
        font-size: 1.25rem !important;
        margin-bottom: 1rem !important;
    }

    .pillar-icon svg {
        width: 22px !important;
        height: 22px !important;
    }

    .pillar-card h3 {
        font-size: 1.2rem !important;
        margin-bottom: 0.5rem !important;
        line-height: 1.3 !important;
    }

    .pillar-card p {
        font-size: 0.88rem !important;
        line-height: 1.5 !important;
        margin-bottom: 1rem !important;
    }

    .pillar-link {
        font-size: 0.85rem !important;
    }

    .contact-form-wrapper {
        padding: 1.25rem 1rem;
    }
}

/* ==========================================================================
   INTERACTIVE 3D TOUCH & HOVER IMAGE TILT SYSTEM
   ========================================================================== */
.tilt-3d-container {
    perspective: 1000px;
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.5s ease;
    will-change: transform;
    position: relative;
    overflow: hidden;
}

.tilt-3d-container img {
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    backface-visibility: hidden;
}

.tilt-3d-glare {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.4s ease;
    mix-blend-mode: overlay;
    border-radius: inherit;
}

.tilt-3d-active {
    box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.4), 0 0 35px rgba(56, 189, 248, 0.3) !important;
}

/* ==========================================================================
   INTERACTIVE 3D PORTRAIT TOUCH & HOVER TILT (HERO & ABOUT PHOTOS)
   ========================================================================== */
.hero-graphic, .about-img-box {
    perspective: 1200px !important;
    transform-style: preserve-3d !important;
    will-change: transform;
}

.hero-avatar, .about-img-box img, .about-img-box .glass-card {
    transform-style: preserve-3d !important;
    will-change: transform, box-shadow;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.6s ease;
}

.hero-graphic .graphic-bg-glow {
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

/* TOUCH-ONLY 3D FLOATING LEVITATION ANIMATION */
@keyframes touchFloatLevitate {
    0% {
        transform: translateZ(3px) translateY(0px) rotateX(0deg) scale(1.002);
    }
    50% {
        transform: translateZ(5px) translateY(-1px) rotateX(0.2deg) scale(1.005);
    }
    100% {
        transform: translateZ(4px) translateY(1px) rotateX(-0.1deg) scale(1.002);
    }
}

.tilt-3d-active img,
.about-img-box.tilt-3d-active img {
    animation: touchFloatLevitate 4s ease-in-out infinite alternate !important;
    border-color: var(--color-accent-gold) !important;
    box-shadow: 0 8px 16px -8px rgba(37, 99, 235, 0.2), 0 0 15px rgba(56, 189, 248, 0.15) !important;
}

/* MOBILE SPECIFIC OVERRIDES & TAP FIXES */
.tilt-3d-container, 
.tilt-card, 
.hero-graphic, 
.about-img-box, 
.hero-avatar,
.tilt-3d-container img,
.about-img-box img,
.hero-graphic img,
a, button {
    -webkit-tap-highlight-color: transparent !important;
    -webkit-touch-callout: none;
}

@media (max-width: 768px) {
    .tilt-3d-active img,
    .about-img-box.tilt-3d-active img {
        animation: none !important;
    }
    .tilt-3d-glare {
        display: none !important;
    }
    .about-img-box, .about-img-box img, .tilt-3d-container {
        background: transparent !important;
        background-color: transparent !important;
    }
}

/* SCROLL REVEAL ANIMATIONS */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}




