/*
 * TEGHRA.COM - Premium Live Website Landing Page Styling
 * Incorporating the styling, colors, and layout language of the AITM project login portal.
 * Brand colors: Deep Forest Green (#062A18) & Orange Gold Accent (#F47B00)
 */

:root {
    --navy: #062A18;
    --gold: #F47B00;
    --gold-hover: #D46B00;
    --navy-dark: #03170d;
    --white: #ffffff;
    --light-navy: rgba(6, 42, 24, 0.05);
    --border-color: rgba(6, 42, 24, 0.12);
    
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    --border-radius-sm: 10px;
    --border-radius-md: 16px;
    --border-radius-lg: 20px;
    
    --shadow-soft: 0 4px 12px rgba(6, 42, 24, 0.03);
    --shadow-medium: 0 15px 35px rgba(0, 0, 0, 0.35);
    --shadow-hover: 0 20px 45px rgba(0, 0, 0, 0.4);
    --shadow-gold: 0 10px 20px rgba(244, 123, 0, 0.12);
    
    --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Page Reset & Structural Foundation */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: var(--navy-dark);
    color: var(--navy);
    font-family: var(--font-body);
    line-height: 1.5;
}

body {
    /* Premium background with deep forest green gradient overlay on hero_illustration */
    background: linear-gradient(rgba(6, 42, 24, 0.93), rgba(6, 42, 24, 0.93)), 
                url('../images/hero_illustration.jpg') center/cover no-repeat;
    min-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Viewport Layout Centering Wrapper */
.viewport-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    max-height: 100%;
    padding: 3vh 3vw 2vh 3vw;
    box-sizing: border-box;
}

/* Main Dashboard Card - AITM Style */
.glass-dashboard {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    grid-template-rows: 1fr auto;
    width: 100%;
    max-width: 1120px;
    height: 85vh;
    min-height: 540px;
    background: var(--white);
    border-top: 6px solid var(--gold);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-medium);
    overflow: hidden;
    position: relative;
    transition: var(--transition-smooth);
    animation: scale-up-fade 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes scale-up-fade {
    0% {
        opacity: 0;
        transform: scale(0.97);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.glass-dashboard:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Left Content Panel Style */
.panel-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.8rem 2.5rem 1rem 2.5rem;
    min-height: 0;
    overflow-y: auto;
    box-sizing: border-box;
    scrollbar-width: thin;
    scrollbar-color: rgba(6, 42, 24, 0.15) transparent;
}

.panel-content::-webkit-scrollbar {
    width: 4px;
}

.panel-content::-webkit-scrollbar-thumb {
    background: rgba(6, 42, 24, 0.15);
    border-radius: 10px;
}

.panel-content::-webkit-scrollbar-track {
    background: transparent;
}

/* Brand Header & Navigation Row */
.brand-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8vh;
}

.brand-logo {
    max-height: 44px;
    width: auto;
    transition: transform 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.02);
}

/* Agency Navigation Link styling */
.nav-list {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(6, 42, 24, 0.5);
    text-decoration: none;
    transition: var(--transition-smooth);
    padding: 4px 0;
    position: relative;
}

.nav-link:hover, .nav-link:focus {
    color: var(--navy);
}

.nav-link.active {
    color: var(--navy);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--gold);
    border-radius: 2px;
}

.status-badge {
    display: flex;
    align-items: center;
    background: var(--light-navy);
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.8rem;
    border-radius: 100px;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--navy);
}

/* Dynamic Tab Body Container */
.tab-body-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0.8rem 0;
}

.tab-content {
    animation: fade-in-up 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes fade-in-up {
    0% {
        opacity: 0;
        transform: translateY(8px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 4px;
    letter-spacing: -0.01em;
}

.tab-subtitle {
    margin-bottom: 12px;
    line-height: 1.4;
}

/* Hero Block */
.hero-block {
    margin-bottom: 0.8rem;
}

.badge-premium {
    display: inline-flex;
    align-items: center;
    background: rgba(244, 123, 0, 0.05);
    border: 1px solid rgba(244, 123, 0, 0.22);
    padding: 0.4rem 0.8rem;
    border-radius: 100px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.04em;
    margin-bottom: 0.6rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.2vh, 2.4rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--navy);
    margin-bottom: 0.4rem;
    letter-spacing: -0.02em;
}

.highlight-text {
    background: linear-gradient(120deg, var(--navy) 0%, var(--gold) 65%, var(--gold-hover) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.hero-subtitle {
    font-size: 0.88rem;
    color: rgba(6, 42, 24, 0.75);
    max-width: 520px;
    line-height: 1.5;
    margin-bottom: 0.6rem;
}

/* Quick Services Pills Row */
.services-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.service-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--light-navy);
    border: 1px solid var(--border-color);
    padding: 0.3rem 0.7rem;
    border-radius: 100px;
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.service-pill i {
    color: var(--gold);
    font-size: 0.7rem;
}

/* Services Grid Layout - Tab 2 */
.services-grid-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    max-height: 250px;
}

.service-card-item {
    background-color: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 10px 12px;
    transition: var(--transition-smooth);
}

.service-card-item:hover {
    background-color: var(--white);
    border-color: rgba(244, 123, 0, 0.3);
    box-shadow: var(--shadow-soft);
    transform: translateY(-1.5px);
}

.service-card-item i {
    font-size: 1.1rem;
    margin-bottom: 4px;
    display: block;
}

.service-card-item h6 {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 2px;
}

.service-card-item p {
    font-size: 0.68rem;
    color: rgba(6, 42, 24, 0.7);
    line-height: 1.3;
    margin-bottom: 0;
}

/* Custom Select Dropdown & Textarea */
.form-select {
    border: none !important;
    background-color: transparent !important;
    color: var(--navy) !important;
    font-size: 0.9rem !important;
    padding: 11px 36px 11px 0 !important;
    box-shadow: none !important;
    cursor: pointer;
}

textarea.form-control {
    border: none !important;
    background-color: transparent !important;
    color: var(--navy) !important;
    font-size: 0.9rem !important;
    box-shadow: none !important;
}

/* Custom Alert Banner */
.alert-custom {
    font-size: 0.8rem;
    border-radius: 10px;
    border-width: 1px;
    padding: 8px 12px;
    margin-top: 5px;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    border-left: 4px solid transparent;
    transition: var(--transition-smooth);
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.04) !important;
    border-color: rgba(220, 53, 69, 0.15) !important;
    color: #dc3545 !important;
    border-left-color: #dc3545 !important;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.04) !important;
    border-color: rgba(40, 167, 69, 0.15) !important;
    color: #28a745 !important;
    border-left-color: #28a745 !important;
}

/* Our Clients Scrolling Logo Marquee */
.clients-section {
    position: relative;
    width: 100%;
    margin-top: 0.6rem;
}

.clients-marquee-wrapper {
    width: 100%;
    overflow: hidden;
    background: rgba(6, 42, 24, 0.03);
    border: 1px solid rgba(6, 42, 24, 0.08);
    border-radius: var(--border-radius-sm);
    padding: 8px 0;
    position: relative;
}

.clients-marquee-wrapper::before,
.clients-marquee-wrapper::after {
    display: none !important;
}

.clients-marquee-track {
    display: flex;
    gap: 12px;
    width: max-content;
    animation: marquee-scroll 18s linear infinite;
}

.clients-marquee-wrapper:hover .clients-marquee-track {
    animation-play-state: paused;
}

.client-logo-card {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: 100px;
    text-decoration: none;
    transition: var(--transition-smooth);
    box-shadow: 0 2px 6px rgba(6, 42, 24, 0.04);
}

.client-logo-card:hover {
    background: var(--navy);
    border-color: var(--navy);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 42, 24, 0.15);
}

.client-logo-card:hover .client-name {
    color: var(--white);
}

.client-logo-card:hover .client-icon-badge {
    background: var(--gold);
    color: var(--navy);
}

.client-icon-badge {
    width: 26px;
    height: 26px;
    background: rgba(244, 123, 0, 0.1);
    color: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: var(--transition-smooth);
}

.client-name {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--navy);
    white-space: nowrap;
    transition: var(--transition-smooth);
}

@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Floating Professional Animated WhatsApp Button */
.floating-whatsapp-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9990;
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.whatsapp-icon-box {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    position: relative;
    z-index: 2;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-whatsapp-btn:hover .whatsapp-icon-box {
    transform: scale(1.1) rotate(6deg);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-pulse-ring {
    position: absolute;
    width: 56px;
    height: 56px;
    background: rgba(37, 211, 102, 0.4);
    border-radius: 50%;
    animation: wa-pulse 2s infinite ease-out;
    z-index: 1;
}

.whatsapp-pulse-ring-2 {
    position: absolute;
    width: 56px;
    height: 56px;
    background: rgba(37, 211, 102, 0.2);
    border-radius: 50%;
    animation: wa-pulse 2s infinite ease-out 0.6s;
    z-index: 1;
}

@keyframes wa-pulse {
    0% {
        transform: scale(0.95);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

.whatsapp-tooltip-badge {
    position: absolute;
    right: 66px;
    background: #ffffff;
    color: var(--navy);
    padding: 6px 14px;
    border-radius: 100px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    pointer-events: none;
    animation: wa-bounce-left 3s ease-in-out infinite;
    border: 1px solid rgba(6, 42, 24, 0.08);
}

.online-dot {
    width: 8px;
    height: 8px;
    background-color: #25D366;
    border-radius: 50%;
    box-shadow: 0 0 6px #25D366;
}

@keyframes wa-bounce-left {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(-5px); }
}

@media (max-width: 576px) {
    .floating-whatsapp-btn {
        bottom: 18px;
        right: 18px;
    }
    .whatsapp-icon-box {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }
    .whatsapp-pulse-ring, .whatsapp-pulse-ring-2 {
        width: 48px;
        height: 48px;
    }
    .whatsapp-tooltip-badge {
        right: 56px;
        font-size: 0.68rem;
        padding: 5px 10px;
    }
}

.form-label {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(6, 42, 24, 0.6);
    letter-spacing: 0.06em;
}

.input-group {
    background-color: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    transition: all 0.25s ease-in-out;
}

.input-group-text {
    background-color: transparent !important;
    border: none !important;
    color: var(--navy) !important;
    padding-left: 16px;
    padding-right: 12px;
}

.form-control {
    background-color: transparent !important;
    border: none !important;
    padding: 10px 16px 10px 0 !important;
    font-size: 0.9rem;
    color: var(--navy) !important;
    height: auto !important;
}

.form-control::placeholder {
    color: rgba(6, 42, 24, 0.4) !important;
}

.input-group:focus-within {
    border-color: var(--navy);
    box-shadow: 0 0 0 4px rgba(6, 42, 24, 0.08);
    background-color: var(--white);
}

/* Submit Button - AITM Navy Style */
.btn-navy {
    background-color: var(--navy);
    color: var(--white);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    padding: 12px !important;
    border-radius: var(--border-radius-sm);
    border: none;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(6, 42, 24, 0.15);
}

.btn-navy:hover, .btn-navy:focus {
    background-color: var(--navy-dark);
    color: var(--white);
    transform: translateY(-1.5px);
    box-shadow: 0 8px 20px rgba(6, 42, 24, 0.3);
}

.btn-navy:active {
    transform: translateY(0);
}

.text-gold {
    color: var(--gold) !important;
    transition: color 0.2s ease;
}

.btn-navy:hover .text-gold {
    color: var(--white) !important;
}

/* Agency Contact Details Row */
.contact-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(6, 42, 24, 0.08);
    padding-top: 1.2vh;
    gap: 10px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--navy);
    text-decoration: none;
    transition: var(--transition-smooth);
    padding: 6px 12px;
    border-radius: var(--border-radius-sm);
    border: 1px solid transparent;
}

.contact-item:hover, .contact-item:focus {
    color: var(--gold);
    background: rgba(244, 123, 0, 0.05);
    border-color: rgba(244, 123, 0, 0.12);
}

/* Right Visual Panel */
.panel-visual {
    position: relative;
    min-height: 0;
    background-color: #ffffff;
    overflow: hidden;
}

.panel-visual .image-inner {
    width: 100%;
    flex-grow: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px !important;
    order: 2;
}

.panel-visual .hero-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    opacity: 1.0;
    border-radius: 8px; /* Slightly less rounded corners */
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-dashboard:hover .hero-img {
    transform: scale(1.02);
}

/* Floating Badges on Visual Panel (Home Tab) */
.floating-badge {
    position: absolute;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(252, 251, 246, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(6, 42, 24, 0.08);
    padding: 0.45rem 0.75rem;
    border-radius: 100px;
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(6, 42, 24, 0.06);
    z-index: 10;
}

.badge-top {
    position: relative;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    bottom: auto !important;
    display: inline-flex;
    align-self: center;
    margin-bottom: 5px;
    margin-top: 8px;
    flex-shrink: 0;
    order: 1;
    animation: float-slow 4s ease-in-out infinite;
}

.badge-bottom-row {
    position: relative;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    z-index: 10;
    margin-top: 5px;
    margin-bottom: 5px;
    width: 100%;
    flex-shrink: 0;
    order: 3;
}

.badge-bottom-row .floating-badge {
    position: relative;
    pointer-events: auto;
}

.float-badge-1 {
    animation: float-slow 4s ease-in-out infinite 0s;
}

.float-badge-2 {
    animation: float-slow 4s ease-in-out infinite 1.3s;
}

.float-badge-3 {
    animation: float-slow 4s ease-in-out infinite 2.6s;
}

.badge-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
}

.orange-dot {
    background-color: var(--gold);
    box-shadow: 0 0 4px var(--gold);
}

.green-dot {
    background-color: #28a745;
    box-shadow: 0 0 4px #28a745;
}

.blue-dot {
    background-color: #0284c7;
    box-shadow: 0 0 4px #0284c7;
}

/* Dynamic Visual Content Panels (Right Side) */
.visual-content {
    width: 100%;
    height: 100%;
    position: relative;
    animation: fade-in-up 0.4s ease;
    display: flex;
    flex-direction: column;
}

/* Professional Showcase Container (Services & Internships) */
.visual-showcase-box {
    width: 100%;
    height: 100%;
    padding: 2rem 2.2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(145deg, #ffffff 0%, #f7f9fa 100%);
    box-sizing: border-box;
}

.showcase-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(244, 123, 0, 0.08);
    border: 1px solid rgba(244, 123, 0, 0.2);
    padding: 0.35rem 0.75rem;
    border-radius: 100px;
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.showcase-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.showcase-subtitle {
    font-size: 0.8rem;
    color: rgba(6, 42, 24, 0.7);
    margin-bottom: 0;
    line-height: 1.4;
}

/* Capability Items (Services Right Panel) */
.capability-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.capability-item {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 0.75rem 0.9rem;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-soft);
}

.capability-item:hover {
    border-color: rgba(244, 123, 0, 0.3);
    transform: translateX(4px);
}

.capability-icon {
    width: 32px;
    height: 32px;
    background: rgba(6, 42, 24, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.capability-text h5 {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 2px;
}

.capability-text p {
    font-size: 0.72rem;
    color: rgba(6, 42, 24, 0.7);
    margin-bottom: 0;
    line-height: 1.3;
}

/* Stats Row */
.showcase-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(6, 42, 24, 0.08);
}

.stat-box {
    background: rgba(6, 42, 24, 0.03);
    border-radius: var(--border-radius-sm);
    padding: 0.6rem;
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--gold);
    line-height: 1.1;
}

.stat-label {
    display: block;
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--navy);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-top: 2px;
}

/* Roadmap List (Internships Right Panel) */
.roadmap-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.roadmap-step {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
    padding: 0.75rem 0.9rem;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-soft);
}

.roadmap-step:hover {
    border-color: rgba(244, 123, 0, 0.3);
    transform: translateX(4px);
}

.step-num {
    width: 30px;
    height: 30px;
    background: var(--navy);
    color: var(--gold);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.78rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-content h5 {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 2px;
}

.step-content p {
    font-size: 0.72rem;
    color: rgba(6, 42, 24, 0.7);
    margin-bottom: 0;
    line-height: 1.3;
}

.roadmap-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 0.6rem;
    border-top: 1px solid rgba(6, 42, 24, 0.08);
}

.tag-item {
    display: inline-flex;
    align-items: center;
    background: rgba(6, 42, 24, 0.04);
    border: 1px solid var(--border-color);
    padding: 0.3rem 0.65rem;
    border-radius: 100px;
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--navy);
}

/* Map Showcase Box (Contact Right Panel) */
.map-showcase-box {
    width: 100%;
    height: 100%;
    padding: 1.6rem 1.8rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #ffffff;
    box-sizing: border-box;
}

.map-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
}

.map-badge {
    display: flex;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.map-direct-btn {
    display: inline-flex;
    align-items: center;
    background: rgba(244, 123, 0, 0.1);
    color: var(--gold);
    border: 1px solid rgba(244, 123, 0, 0.25);
    padding: 0.35rem 0.75rem;
    border-radius: 100px;
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.map-direct-btn:hover {
    background: var(--gold);
    color: var(--white);
}

.map-iframe-container {
    width: 100%;
    flex-grow: 1;
    min-height: 250px;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(6, 42, 24, 0.06);
}

.map-footer-details {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    background: rgba(6, 42, 24, 0.03);
    border-radius: var(--border-radius-sm);
    padding: 0.75rem 0.9rem;
    border: 1px solid rgba(6, 42, 24, 0.07);
}

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

@keyframes float-slow {
    0% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}

/* Card Footer (Within White Section) styling */
.card-footer {
    grid-column: 1 / -1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0.65rem 2.5rem;
    font-size: 0.73rem;
    color: var(--navy);
    font-weight: 600;
    border-top: 1px solid rgba(6, 42, 24, 0.1);
    background-color: var(--white);
    box-sizing: border-box;
    z-index: 10;
    position: relative;
}

.card-footer p {
    margin: 0;
    color: var(--navy);
    font-weight: 600;
}

.footer-dot-group {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-link {
    color: var(--navy);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-link:hover {
    color: var(--gold);
}

.pulse-red-bullet {
    width: 6px;
    height: 6px;
    background-color: #28a745;
    border-radius: 50%;
    box-shadow: 0 0 6px #28a745;
    animation: pulse-green 1.8s infinite;
}

@keyframes pulse-green {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.2); opacity: 1; box-shadow: 0 0 10px #28a745; }
    100% { transform: scale(0.9); opacity: 0.6; }
}

/* Director Card Styling */
.director-card {
    display: flex;
    align-items: center;
    background: rgba(6, 42, 24, 0.03);
    border: 1px solid rgba(6, 42, 24, 0.08);
    border-radius: var(--border-radius-sm);
    padding: 0.8rem 1rem;
    gap: 1rem;
    transition: var(--transition-smooth);
}

.director-card:hover {
    background: rgba(6, 42, 24, 0.05);
    border-color: rgba(244, 123, 0, 0.2);
    box-shadow: var(--shadow-soft);
}

.director-img-wrapper {
    width: 58px;
    height: 58px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--white);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.director-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.director-info {
    display: flex;
    flex-direction: column;
}

.director-title {
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.director-name {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--navy);
    margin: 1px 0 2px 0;
}

.director-bio {
    font-size: 0.72rem;
    color: rgba(6, 42, 24, 0.7);
    line-height: 1.35;
    margin: 0;
}

/* Address Card Styling */
.address-card {
    background: rgba(6, 42, 24, 0.03);
    border: 1px dashed rgba(6, 42, 24, 0.12);
    border-radius: var(--border-radius-sm);
    padding: 0.8rem 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    transition: var(--transition-smooth);
}

.address-card:hover {
    background: rgba(6, 42, 24, 0.05);
    border-color: rgba(244, 123, 0, 0.2);
}

.address-icon-box {
    width: 34px;
    height: 34px;
    background: rgba(244, 123, 0, 0.1);
    color: var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.9rem;
}

.address-text-title {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 700;
    color: rgba(6, 42, 24, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.address-text-detail {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--navy);
    line-height: 1.4;
    margin-top: 2px;
}

/* Responsive Fix for 1366x768 & Laptop Screens (Prevents Internal Panel Scrollbars) */
@media (max-height: 820px) and (min-width: 993px) {
    .viewport-wrapper {
        padding: 1.5vh 2vw;
    }
    
    .glass-dashboard {
        height: 90vh;
        min-height: 580px;
    }

    .panel-content {
        padding: 1.2rem 1.8rem 0.75rem 1.8rem;
    }

    .brand-header-row {
        margin-bottom: 0.4rem;
    }

    .brand-logo {
        max-height: 38px;
    }

    .hero-block {
        margin-bottom: 0.4rem;
    }

    .badge-premium {
        padding: 0.3rem 0.65rem;
        font-size: 0.7rem;
        margin-bottom: 0.35rem;
    }

    .hero-title {
        font-size: 1.85rem;
        margin-bottom: 0.25rem;
        line-height: 1.15;
    }

    .hero-subtitle {
        font-size: 0.8rem;
        line-height: 1.4;
        margin-bottom: 0.4rem;
    }

    .services-row {
        margin-top: 4px;
        gap: 4px;
    }

    .service-pill {
        padding: 0.25rem 0.6rem;
        font-size: 0.62rem;
    }

    .director-card {
        padding: 0.55rem 0.8rem;
        gap: 0.75rem;
        margin-top: 0.5rem !important;
    }

    .director-img-wrapper {
        width: 46px;
        height: 46px;
    }

    .director-name {
        font-size: 0.88rem;
    }

    .director-bio {
        font-size: 0.68rem;
        line-height: 1.3;
    }

    .clients-section {
        margin-top: 0.4rem !important;
    }

    .clients-marquee-wrapper {
        padding: 6px 0;
    }

    .client-logo-card {
        padding: 4px 10px;
    }

    .client-name {
        font-size: 0.7rem;
    }

    .client-icon-badge {
        width: 22px;
        height: 22px;
        font-size: 0.7rem;
    }

    .contact-row {
        padding-top: 0.6rem;
        gap: 6px;
    }

    .contact-item {
        padding: 4px 8px;
        font-size: 0.7rem;
    }

    /* Floating Badges Scaling & Spacing for 1366x768 Laptop Resolution */
    .panel-visual .image-inner {
        padding: 10px;
    }

    .panel-visual .hero-img {
        max-height: 92%;
    }

    .floating-badge {
        padding: 0.3rem 0.6rem;
        font-size: 0.62rem;
    }

    .badge-top {
        top: 0.6rem;
        right: 0.6rem;
    }

    .badge-bottom-row {
        bottom: 0.6rem;
        gap: 0.35rem;
    }
}

/* ==========================================================================
   Responsive Viewport & Mobile System (Tablets & Mobile Devices <= 992px)
   ========================================================================== */

@media (max-width: 992px) {
    html, body {
        height: auto !important;
        min-height: 100vh !important;
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
    }

    .viewport-wrapper {
        height: auto !important;
        min-height: 100vh !important;
        max-height: none !important;
        width: 100% !important;
        max-width: 100vw !important;
        padding: 12px 6px !important;
        justify-content: flex-start !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    .glass-dashboard {
        width: 100% !important;
        max-width: 720px !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: auto auto !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        border-radius: 14px !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    
    .panel-visual {
        display: none !important;
    }
    
    .panel-content {
        padding: 1rem 0.75rem 0.75rem 0.75rem !important;
        height: auto !important;
        overflow: visible !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Staked Logo & Navigation Header on Mobile/Tablet */
    .brand-header-row {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.6rem !important;
        width: 100% !important;
        margin-bottom: 0.8rem !important;
        box-sizing: border-box !important;
    }
    
    .brand-header {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        text-align: center !important;
    }
    
    .brand-logo {
        display: block !important;
        max-height: 40px !important;
        max-width: 190px !important;
        width: auto !important;
        object-fit: contain !important;
        margin: 0 auto !important;
    }
    
    .agency-nav {
        margin-left: 0 !important;
        width: 100% !important;
        overflow: visible !important;
        padding: 4px !important;
        background: rgba(6, 42, 24, 0.05) !important;
        border: 1px solid rgba(6, 42, 24, 0.1) !important;
        border-radius: 10px !important;
        box-sizing: border-box !important;
    }

    .agency-nav::-webkit-scrollbar {
        display: none !important;
    }
    
    .nav-list {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        gap: 4px !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .nav-link {
        font-size: 0.74rem !important;
        font-weight: 700 !important;
        padding: 7px 4px !important;
        border-radius: 7px !important;
        text-align: center !important;
        flex: 1 1 0% !important;
        min-width: 0 !important;
        white-space: nowrap !important;
        background: transparent !important;
        color: rgba(6, 42, 24, 0.7) !important;
        transition: var(--transition-smooth) !important;
    }

    .nav-link.active {
        background: var(--navy) !important;
        color: var(--white) !important;
        box-shadow: 0 2px 8px rgba(6, 42, 24, 0.25) !important;
    }

    .nav-link.active::after {
        display: none !important;
    }
    
    .hero-title {
        font-size: 1.45rem !important;
        line-height: 1.2 !important;
    }

    .hero-subtitle {
        font-size: 0.8rem !important;
        line-height: 1.4 !important;
    }

    /* Clients Marquee Mobile Containment */
    .clients-section {
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 0.6rem !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    .clients-marquee-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        padding: 8px 10px !important;
        border-radius: var(--border-radius-sm) !important;
        background: rgba(6, 42, 24, 0.03) !important;
        border: 1px solid rgba(6, 42, 24, 0.08) !important;
    }

    .client-logo-card {
        padding: 6px 12px !important;
    }

    .client-name {
        font-size: 0.72rem !important;
    }

    .client-icon-badge {
        width: 24px !important;
        height: 24px !important;
        font-size: 0.72rem !important;
    }

    .services-grid-layout {
        max-height: none !important;
        overflow-y: visible !important;
        gap: 8px !important;
    }
    
    .contact-row {
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
        width: 100% !important;
        border-top: 1px solid rgba(6, 42, 24, 0.08) !important;
        padding-top: 10px !important;
        margin-top: 8px !important;
    }
    
    .contact-item {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        text-align: left !important;
        background: rgba(6, 42, 24, 0.03) !important;
        border: 1px solid rgba(6, 42, 24, 0.08) !important;
        border-radius: var(--border-radius-sm) !important;
        padding: 7px 10px !important;
        gap: 8px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .contact-item i {
        font-size: 0.85rem !important;
        color: var(--gold) !important;
        width: 18px !important;
        text-align: center !important;
        flex-shrink: 0 !important;
    }
    
    .contact-item span {
        font-size: 0.72rem !important;
        font-weight: 600 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        color: var(--navy) !important;
    }

    .btn-navy {
        padding: 10px !important;
        font-size: 0.76rem !important;
    }
    
    .card-footer {
        flex-direction: column !important;
        gap: 0.2rem !important;
        text-align: center !important;
        padding: 0.6rem 0.8rem !important;
        border-top: 1px solid rgba(6, 42, 24, 0.1) !important;
        font-size: 0.68rem !important;
    }

    .lightbox-close {
        top: 1rem !important;
        right: 1.2rem !important;
        font-size: 2.2rem !important;
    }
}

@media (max-width: 380px) {
    .panel-content {
        padding: 0.75rem 0.5rem;
    }

    .nav-link {
        font-size: 0.65rem;
        padding: 5px 6px;
    }

    .hero-title {
        font-size: 1.3rem;
    }

    .contact-item span {
        font-size: 0.68rem;
    }
}

@media (max-height: 580px) {
    .glass-dashboard {
        height: auto;
    }
    .panel-content {
        padding: 1.25rem;
    }
    .hero-block {
        margin: 0.5rem 0;
    }
    .hero-title {
        font-size: 1.4rem;
        margin-bottom: 0.25rem;
    }
    .hero-subtitle {
        font-size: 0.8rem;
    }
    .services-grid-layout {
        max-height: none;
        overflow-y: visible;
    }
}

/* Lightbox Overlay */
.lightbox-overlay {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(6, 42, 24, 0.95); /* Deep forest dark background mask */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    border-radius: 8px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.7);
    transform: scale(0.9);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox-overlay.active .lightbox-content {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: var(--white);
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    transition: var(--transition-smooth);
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--gold);
    transform: scale(1.1);
}

/* =======================================================================
   Mobile-first responsive finishing layer
   ======================================================================= */

/* Bootstrap's utility must win over the generic visual panel display rule. */
.tab-content.d-none,
.visual-content.d-none {
    display: none !important;
}

@media (max-width: 992px) {
    html,
    body {
        width: 100%;
        min-width: 320px;
        min-height: 100%;
        height: auto;
        overflow-x: hidden;
        overflow-y: auto;
    }

    body {
        align-items: flex-start;
        justify-content: flex-start;
        padding-bottom: env(safe-area-inset-bottom);
    }

    .viewport-wrapper {
        width: 100%;
        min-height: 100dvh;
        height: auto;
        padding: clamp(0.5rem, 2vw, 1rem);
        align-items: center;
        justify-content: flex-start;
    }

    .glass-dashboard {
        width: min(100%, 720px);
        max-width: 720px;
        height: auto;
        min-height: 0;
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto auto;
        border-top-width: 4px;
        overflow: hidden;
    }

    .glass-dashboard:hover {
        transform: none;
    }

    .panel-content {
        width: 100%;
        min-width: 0;
        height: auto;
        min-height: 0;
        overflow: visible;
        justify-content: flex-start;
        padding: clamp(0.85rem, 3vw, 1.25rem);
    }

    .brand-header-row {
        gap: 0.75rem;
        margin-bottom: 0.85rem;
    }

    .agency-nav,
    .nav-list {
        min-width: 0;
        width: 100%;
    }

    .nav-list {
        gap: 0.25rem;
    }

    .nav-link {
        min-height: 40px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding-inline: 0.3rem;
    }

    .tab-body-container {
        display: block;
        flex: 0 0 auto;
        min-height: 0;
        margin-block: 0.75rem;
    }

    .tab-content,
    .services-tab-block,
    .internships-tab-block,
    .contact-tab-block {
        min-width: 0;
    }

    .hero-title {
        font-size: clamp(1.45rem, 5.5vw, 2rem);
        overflow-wrap: anywhere;
    }

    .hero-subtitle,
    .tab-subtitle {
        max-width: none;
        font-size: 0.84rem;
    }

    .services-row,
    .roadmap-tags {
        gap: 0.4rem;
    }

    .service-pill,
    .tag-item {
        max-width: 100%;
    }

    .director-card {
        align-items: flex-start;
    }

    .director-bio,
    .client-name,
    .contact-item span {
        overflow-wrap: anywhere;
    }

    .clients-marquee-wrapper {
        touch-action: pan-y;
    }

    .contact-row {
        flex-wrap: wrap;
    }

    .panel-visual {
        display: block !important;
        width: 100%;
        min-width: 0;
        height: clamp(23rem, 68vw, 34rem);
        min-height: 23rem;
        border-top: 1px solid rgba(6, 42, 24, 0.08);
    }

    .visual-content {
        min-width: 0;
        height: 100%;
    }

    .visual-showcase-box,
    .map-showcase-box {
        height: 100%;
        min-height: 0;
        padding: clamp(1rem, 4vw, 1.8rem);
        overflow-y: auto;
    }

    .showcase-title {
        font-size: clamp(1.15rem, 4.5vw, 1.45rem);
    }

    .showcase-stats-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .stat-box {
        min-width: 0;
        padding: 0.55rem 0.35rem;
    }

    .stat-label {
        overflow-wrap: anywhere;
    }

    .map-header-bar {
        flex-wrap: wrap;
        gap: 0.65rem;
    }

    .map-iframe-container {
        min-height: 12rem;
    }

    .map-detail-item p {
        overflow-wrap: anywhere;
    }

    .card-footer {
        grid-column: 1;
        width: 100%;
        flex-wrap: wrap;
        gap: 0.35rem 0.75rem;
        padding-inline: clamp(0.75rem, 3vw, 1.5rem);
    }

    .card-footer p,
    .footer-link {
        overflow-wrap: anywhere;
    }
}

@media (max-width: 575.98px) {
    .viewport-wrapper {
        padding: 0.5rem 0.4rem;
    }

    .glass-dashboard {
        border-radius: 12px;
    }

    .brand-logo {
        max-width: min(48vw, 190px);
        max-height: 38px;
    }

    .nav-link {
        min-height: 38px;
        font-size: clamp(0.62rem, 2.6vw, 0.74rem);
        letter-spacing: 0.02em;
        padding-left: 0.55rem !important;
        padding-right: 0.55rem !important;
    }

    .agency-nav {
        padding: 0.35rem 0.45rem !important;
    }

    /* Home tab: keep every block readable without horizontal squeezing. */
    #tab-home .hero-block {
        margin-bottom: 1.1rem;
    }

    #tab-home .badge-premium {
        margin-bottom: 0.75rem;
    }

    #tab-home .hero-title {
        max-width: 18ch;
        font-size: clamp(1.55rem, 8vw, 2rem);
        line-height: 1.16;
    }

    #tab-home .hero-subtitle {
        font-size: clamp(0.78rem, 3.6vw, 0.88rem);
        line-height: 1.5;
        margin-bottom: 0.85rem;
    }

    #tab-home .services-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.55rem;
    }

    #tab-home .service-pill {
        width: 100%;
        min-width: 0;
        justify-content: center;
        padding: 0.45rem 0.35rem;
        font-size: clamp(0.58rem, 2.55vw, 0.68rem);
        white-space: nowrap;
    }

    #tab-home .director-info {
        min-width: 0;
    }

    #tab-home .director-card {
        margin-top: 0 !important;
        margin-bottom: 1.15rem;
    }

    #tab-home .clients-section {
        margin-top: 0 !important;
    }

    #tab-home .clients-section > label {
        margin-bottom: 0.55rem !important;
    }

    #tab-home .clients-section > label {
        font-size: 0.65rem;
        line-height: 1.3;
    }

    .badge-premium {
        max-width: 100%;
        font-size: 0.66rem;
        line-height: 1.25;
    }

    .services-grid-layout {
        grid-template-columns: 1fr;
    }

    .director-card {
        gap: 0.75rem;
        padding: 0.7rem;
    }

    .director-img-wrapper {
        width: 50px;
        height: 50px;
    }

    .contact-item {
        min-height: 42px;
    }

    .panel-visual {
        height: 29rem;
        min-height: 29rem;
    }

    .floating-badge {
        font-size: 0.6rem;
        padding: 0.35rem 0.55rem;
    }

    .badge-top {
        top: 0.65rem;
        right: 0.65rem;
    }

    .badge-bottom-row {
        bottom: 0.65rem;
        left: 0.65rem;
        right: 0.65rem;
        gap: 0.3rem;
    }

    .showcase-stats-row {
        gap: 0.35rem;
    }

    .stat-number {
        font-size: 0.95rem;
    }

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

    .map-showcase-box {
        padding: 0.9rem;
    }

    .map-header-bar {
        align-items: flex-start;
    }

    .map-badge {
        font-size: 0.64rem;
    }

    .map-iframe-container {
        min-height: 11rem;
    }

    .floating-whatsapp-btn {
        right: max(0.75rem, env(safe-area-inset-right));
        bottom: max(0.75rem, env(safe-area-inset-bottom));
    }

    .whatsapp-tooltip-badge {
        display: none;
    }
}

@media (max-width: 380px) {
    .nav-link {
        padding-left: 0.35rem !important;
        padding-right: 0.35rem !important;
        font-size: 0.61rem;
    }

    .agency-nav {
        padding-inline: 0.3rem !important;
    }

    #tab-home .hero-title {
        font-size: 1.45rem;
    }

    #tab-home .service-pill {
        font-size: 0.56rem;
        gap: 0.3rem;
    }
}

@media (min-width: 576px) and (max-width: 992px) {
    .services-grid-layout {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Large screens: give the Home tab a calmer, more balanced vertical rhythm. */
@media (min-width: 993px) and (min-height: 821px) {
    .panel-content {
        padding: clamp(1.8rem, 3.2vh, 2.8rem) clamp(2rem, 3.5vw, 3.5rem) 1.25rem;
    }

    .brand-header-row {
        margin-bottom: clamp(0.9rem, 1.8vh, 1.4rem);
    }

    .tab-body-container {
        margin-block: clamp(1rem, 2.5vh, 1.8rem);
    }

    #tab-home .hero-block {
        margin-bottom: 1.35rem;
    }

    #tab-home .badge-premium {
        margin-bottom: 0.85rem;
    }

    #tab-home .hero-title {
        font-size: clamp(2rem, 3vw, 2.8rem);
        line-height: 1.14;
    }

    #tab-home .hero-subtitle {
        max-width: 620px;
        margin-bottom: 1rem;
        line-height: 1.6;
    }

    #tab-home .services-row {
        gap: 0.65rem;
    }

    #tab-home .service-pill {
        padding: 0.42rem 0.85rem;
        font-size: 0.68rem;
    }

    #tab-home .director-card {
        margin-top: 0 !important;
        margin-bottom: 1.35rem;
        padding: 1rem 1.15rem;
        gap: 1.1rem;
    }

    #tab-home .director-img-wrapper {
        width: 64px;
        height: 64px;
    }

    #tab-home .director-name {
        font-size: 1.05rem;
    }

    #tab-home .director-bio {
        font-size: 0.76rem;
    }

    #tab-home .clients-section {
        margin-top: 0 !important;
    }

    #tab-home .clients-section > label {
        margin-bottom: 0.65rem !important;
    }

    .contact-row {
        margin-top: 1rem;
        padding-top: 1rem;
    }
}

/* Desktop column balance: make the left Home content use the same visual
   height as the right image panel, with intentional spacing between blocks. */
@media (min-width: 993px) {
    .panel-content {
        justify-content: flex-start;
        padding-top: clamp(1rem, 2vh, 1.5rem);
        padding-bottom: 1rem;
    }

    .tab-body-container {
        flex-grow: 1;
        justify-content: stretch;
        min-height: 0;
        margin: 0.65rem 0 0.8rem;
    }

    #tab-home {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: clamp(0.55rem, 1vh, 0.9rem);
    }

    #tab-home .hero-block,
    #tab-home .director-card,
    #tab-home .clients-section {
        margin-top: 0;
        margin-bottom: 0;
    }

    #tab-home .director-card {
        margin-block: 0.15rem;
    }

    .contact-row {
        margin-top: 0.8rem;
    }

    .panel-visual .image-inner {
        padding: 1.5rem 1.15rem 1.75rem 1.5rem;
    }

    .panel-visual .hero-img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .badge-top {
        top: 1.25rem;
        right: 1rem;
    }
}

/* 1920px-class desktop refinement: tighter left rhythm and breathing room
   around the right-side infographic. */
@media (min-width: 1600px) and (min-height: 900px) {
    .viewport-wrapper {
        padding: 3.5vh 3vw 2.5vh;
    }

    .glass-dashboard {
        width: min(1240px, 94vw);
        max-width: 1240px;
        height: min(78vh, 850px);
    }

    .panel-content {
        justify-content: flex-start;
        padding: 1.5rem clamp(2.5rem, 3.2vw, 3.75rem) 1rem;
    }

    .brand-header-row {
        margin-bottom: 1rem;
    }

    .tab-body-container {
        flex-grow: 1;
        justify-content: stretch;
        margin: 0.75rem 0 1rem;
    }

    #tab-home {
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        gap: clamp(0.6rem, 1.15vh, 1rem);
        padding-left: clamp(0.35rem, 0.8vw, 0.9rem);
        padding-right: clamp(0.15rem, 0.35vw, 0.4rem);
    }

    #tab-home .hero-block {
        margin-bottom: 0;
    }

    #tab-home .director-card {
        margin-bottom: 0;
    }

    .contact-row {
        margin-top: auto;
        padding-top: 0.9rem;
    }

    .panel-visual .image-inner {
        padding: 1.9rem 1.5rem 2.25rem 2rem;
    }

    .panel-visual .hero-img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .badge-top {
        top: 1.5rem;
        right: 1.2rem;
    }

    .badge-bottom-row {
        bottom: 2rem;
        left: 2rem;
        right: 2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* Keep the Home hero block slightly below the header on every viewport. */
#tab-home .hero-block {
    margin-top: clamp(0.35rem, 1vh, 0.85rem);
}

/* Keep every tab section clearly below the menu/header flow. */
.brand-header-row {
    position: relative;
    z-index: 20;
    flex: 0 0 auto;
}

.tab-body-container {
    position: relative;
    z-index: 1;
    clear: both;
}

@media (min-width: 993px) {
    .tab-body-container {
        margin-top: 1.1rem;
    }
}

/* Home infographic: slightly larger with rounded corners on every side. */
.panel-visual .hero-img {
    border-radius: 20px;
    clip-path: inset(0 round 20px);
}

@media (min-width: 993px) {
    .panel-visual .image-inner {
        padding: 1.25rem 0.95rem 1.5rem 1.25rem;
    }
}

@media (max-width: 992px) {
    .panel-visual .image-inner {
        padding: 0.7rem;
    }
}

/* Keep the main Home headline on one line across every device width unless screen is too small, then wrap naturally. */
#tab-home .hero-title {
    width: 100%;
    max-width: none;
    white-space: normal;
    letter-spacing: -0.045em;
}

/* Make the rounded image edge visible even when the infographic background is white. */
.panel-visual .image-inner {
    background: #f5f8f6;
    border-radius: 22px;
}

.panel-visual .hero-img {
    border: 1px solid rgba(6, 42, 24, 0.1);
    box-shadow: 0 8px 22px rgba(6, 42, 24, 0.1);
}

/* Restore the infographic's original clean appearance. */
.panel-visual .image-inner {
    background: transparent;
    border-radius: 0;
}

.panel-visual .hero-img {
    border: 0;
    border-radius: 16px;
    clip-path: inset(0 round 16px);
    box-shadow: 0 0 0 1px rgba(6, 42, 24, 0.12);
}

@media (max-width: 992px) {
    #tab-home .hero-title {
        font-size: clamp(0.92rem, 4.8vw, 2.2rem);
        letter-spacing: -0.055em;
    }
}

@media (max-width: 380px) {
    #tab-home .hero-title {
        font-size: 0.9rem;
        letter-spacing: -0.06em;
    }
}

/* Subtle rounding for the right-side infographic image. */
.panel-visual .hero-img {
    display: block;
    border-radius: 18px;
    overflow: hidden;
    clip-path: inset(0 round 18px);
}

/* 1920x1080 at 125% scaling typically reports a ~1536px CSS viewport. */
@media (min-width: 1400px) and (max-width: 1599px) and (min-height: 780px) and (max-height: 950px) {
    .panel-content {
        padding-top: 1.35rem;
        padding-bottom: 0.85rem;
    }

    .tab-body-container {
        margin: 0.55rem 0 0.7rem;
    }

    #tab-home {
        gap: 0.45rem;
    }

    #tab-home .hero-block {
        margin-top: 0.85rem;
    }

    #tab-home .director-card {
        margin-block: 0;
        padding: 0.7rem 0.9rem;
    }

    .panel-visual .image-inner {
        padding: 1.35rem 0.9rem 1.6rem 1.25rem;
    }

    .badge-top {
        top: 1rem;
        right: 0.75rem;
    }
}

/* Large desktop normalization.
   Keep the same visual system for 1366px desktops, 1920px at 125%, and
   1920px at 100% instead of letting each resolution use a different layout. */
@media (min-width: 1200px) and (min-height: 700px) {
    .viewport-wrapper {
        padding: 3.5vh 3vw 2.5vh;
    }

    .glass-dashboard {
        width: min(1240px, 94vw);
        max-width: 1240px;
        height: min(80vh, 850px);
    }

    .panel-content {
        justify-content: flex-start;
        padding: 1.5rem clamp(2.5rem, 3.2vw, 3.75rem) 1rem;
    }

    .brand-header-row {
        margin-bottom: 1rem;
    }

    .tab-body-container {
        flex-grow: 1;
        justify-content: center;
        min-height: 0;
        margin: 0.7rem 0 0.9rem;
    }

    #tab-home {
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 0.85rem;
        padding-left: clamp(0.35rem, 0.8vw, 0.9rem);
        padding-right: clamp(0.15rem, 0.35vw, 0.4rem);
    }

    #tab-home .hero-block,
    #tab-home .director-card,
    #tab-home .clients-section {
        margin-top: 0;
        margin-bottom: 0;
    }

    #tab-home .hero-block {
        margin-top: 0.75rem;
    }

    #tab-home .hero-title {
        font-size: 2.2rem;
        line-height: 1.14;
    }

    #tab-home .hero-subtitle {
        max-width: 620px;
        line-height: 1.55;
    }

    #tab-home .director-card {
        margin-block: 0.1rem;
        padding: 0.75rem 0.95rem;
    }

    .contact-row {
        margin-top: auto;
        padding-top: 0.9rem;
    }

    .panel-visual .image-inner {
        padding: 1.9rem 1.5rem 2.25rem 2rem;
    }

    .panel-visual .hero-img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        border-radius: 18px;
        clip-path: inset(0 round 18px);
    }

    .badge-top {
        top: 1.5rem;
        right: 1.2rem;
    }

    .badge-bottom-row {
        bottom: 2rem;
        left: 2rem;
        right: 2rem;
    }
}

/* On desktop, keep every right-side tab visual below the navigation row. */
@media (min-width: 993px) {
    .panel-visual {
        --menu-offset: clamp(4.25rem, 7vh, 5.5rem);
        margin-top: var(--menu-offset);
        height: calc(100% - var(--menu-offset));
        min-height: 0;
    }
}

/* Director card sizing follows a two-line bio layout. */
.director-card {
    align-items: center;
}

.director-img-wrapper {
    width: 58px;
    height: 58px;
}

.director-bio {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: 2.7em;
}

@media (min-width: 993px) {
    .director-img-wrapper {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 575.98px) {
    .director-img-wrapper {
        width: 50px;
        height: 50px;
    }
}

/* Match the portrait height to the full Director text block on every device. */
.director-card {
    align-items: stretch;
}

.director-img-wrapper {
    height: auto !important;
    min-height: 58px;
    align-self: stretch;
}

.director-img {
    height: 100%;
    min-height: 100%;
}

@media (max-width: 575.98px) {
    .director-img-wrapper {
        min-height: 50px;
    }
}

/* =======================================================================
   1920x1080 100% Scale Zoom Normalization
   Forces the layout to render exactly as it does on a 125% OS scaled viewport (1536x864).
   ======================================================================= */
html.zoom-active {
    zoom: 1.25;
}

html.zoom-active .viewport-wrapper {
    padding: 1.5% 2% !important;
}

html.zoom-active .glass-dashboard {
    width: 94% !important;
    max-width: 1240px !important;
    height: 90% !important;
    min-height: 540px !important;
}

html.zoom-active .panel-visual .image-inner {
    padding: 5px !important;
}

html.zoom-active .badge-top {
    margin-top: 5px !important;
    margin-bottom: 5px !important;
}

html.zoom-active .badge-bottom-row {
    margin-top: 5px !important;
    margin-bottom: 5px !important;
}

/* =======================================================================
   Contact Tab Social Media Row
   ======================================================================= */
.contact-social-section {
    margin-top: 1rem;
    border-top: 1px dashed rgba(6, 42, 24, 0.1);
    padding-top: 0.8rem;
}

.contact-social-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.social-icon-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: var(--light-navy);
    border: 1px solid var(--border-color);
    color: var(--navy);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    box-shadow: var(--shadow-soft);
}

.social-icon-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(6, 42, 24, 0.15);
    color: var(--white) !important;
}

/* Individual Brand Hover Styling */
.social-icon-btn.facebook:hover {
    background-color: #1877F2;
    border-color: #1877F2;
}

.social-icon-btn.x-twitter:hover {
    background-color: #000000;
    border-color: #000000;
}

.social-icon-btn.instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    border-color: #d6249f;
}

.social-icon-btn.linkedin:hover {
    background-color: #0077B5;
    border-color: #0077B5;
}

.social-icon-btn.whatsapp:hover {
    background-color: #25D366;
    border-color: #25D366;
}

.social-icon-btn.telegram:hover {
    background-color: #249EF4;
    border-color: #249EF4;
}
