/* 
 * MaxOne Business Solutions — Front-end Services & Common Stylesheet
 * Styled after official.maxone.app/services and official.maxone.app/contact
 */

:root {
    /* Color Tokens */
    --primary: #0E449C;
    --primary-glow: rgba(14, 68, 156, 0.25);
    --primary-hover: #0b3780;
    --accent: #6d5dfc;
    --accent-glow: rgba(109, 93, 252, 0.15);

    /* Light Theme Palette */
    --bg: #f8fafc;
    --surface: #ffffff;
    --surface-card: #ffffff;
    --surface-translucent: rgba(255, 255, 255, 0.85);
    --text: #1e293b;
    --text-muted: #64748b;
    --border: rgba(226, 232, 240, 0.8);
    --border-hover: rgba(14, 68, 156, 0.4);
    --white: #ffffff;
    --radius: 24px;
    --radius-lg: 32px;
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.03);
    --shadow-card: 0 10px 30px -10px rgba(15, 23, 42, 0.06);
    --shadow-hover: 0 30px 60px -15px rgba(14, 68, 156, 0.18);
}

[data-theme="dark"] {
    --bg: #0b0f19;
    --surface: #151c2c;
    --surface-card: #151c2c;
    --surface-translucent: rgba(21, 28, 44, 0.85);
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --border: rgba(51, 65, 85, 0.6);
    --border-hover: rgba(99, 102, 241, 0.5);
    --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 30px 60px -15px rgba(99, 102, 241, 0.25);
}

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

html {
    max-width: 100%;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

img, video, iframe {
    max-width: 100%;
    height: auto;
}

h1,
h2,
h3,
h4,
.outfit {
    font-family: 'Noto Sans', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    outline: none;
    background: none;
}

/* Layout Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    width: 100%;
    box-sizing: border-box;
}

.home-dynamic-box {
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 45px;
    box-shadow: var(--shadow-sm);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.home-dynamic-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 40px;
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.page-main {
    padding-top: 120px;
    padding-bottom: 80px;
    min-height: calc(100vh - 200px);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Header Navigation */
header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1200px;
    height: 70px;
    background: var(--surface-translucent);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    z-index: 1000;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.02em;
    color: var(--primary);
}

.logo img {
    max-height: 38px;
    width: auto;
    object-fit: contain;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 18px;
    transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Hamburger Menu Button */
.hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(14, 68, 156, 0.08);
    border: 1px solid var(--border);
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 22px;
    cursor: pointer;
    color: var(--text);
    transition: all 0.3s ease;
}

.hamburger:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: scale(1.05);
}

/* Drawer Off-canvas Menu */
.drawer {
    position: fixed;
    top: 0;
    right: -100%;
    width: 340px;
    height: 100vh;
    background: var(--surface-translucent);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 2000;
    box-shadow: -15px 0 40px rgba(0, 0, 0, 0.15);
    transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 50px 35px;
    display: flex;
    flex-direction: column;
    border-left: 1px solid var(--border);
    overflow-y: auto;
}

.drawer.active {
    right: 0;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: 0.4s ease;
    backdrop-filter: blur(6px);
}

.drawer-overlay.active {
    opacity: 1;
    visibility: visible;
}

.drawer-close {
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 24px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    position: absolute;
    top: 25px;
    right: 25px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.drawer-close:hover {
    background: var(--primary);
    color: white;
    transform: rotate(90deg);
}

.drawer-menu {
    margin-top: 40px;
    list-style: none;
    flex-grow: 1;
}

.drawer-menu li {
    margin-bottom: 18px;
    opacity: 0;
    transform: translateX(30px);
    transition: 0.4s ease;
}

.drawer.active .drawer-menu li {
    opacity: 1;
    transform: translateX(0);
}

.drawer.active .drawer-menu li:nth-child(1) {
    transition-delay: 0.05s;
}

.drawer.active .drawer-menu li:nth-child(2) {
    transition-delay: 0.10s;
}

.drawer.active .drawer-menu li:nth-child(3) {
    transition-delay: 0.15s;
}

.drawer.active .drawer-menu li:nth-child(4) {
    transition-delay: 0.20s;
}

.drawer.active .drawer-menu li:nth-child(5) {
    transition-delay: 0.25s;
}

.drawer.active .drawer-menu li:nth-child(6) {
    transition-delay: 0.30s;
}

.drawer-menu a {
    font-size: 17px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-muted);
    padding: 10px 14px;
    border-radius: 12px;
}

.drawer-menu a i {
    font-size: 20px;
    color: var(--primary);
}

.drawer-menu a:hover,
.drawer-menu a.active {
    color: var(--primary);
    background: rgba(14, 68, 156, 0.08);
}

.drawer-footer {
    padding-top: 25px;
    border-top: 1px solid var(--border);
}

.drawer-contact p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.drawer-social {
    display: flex;
    gap: 12px;
    margin: 15px 0;
}

.drawer-social a {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 16px;
    transition: all 0.3s ease;
}

/* ==========================================================================
   OFFICIAL BRAND COLORS FOR SOCIAL MEDIA ICONS ON HOVER
   ========================================================================== */
.social-facebook:hover,
a.facebook:hover,
.contact-social-btn.facebook:hover {
    background: #1877F2 !important;
    color: #ffffff !important;
    border-color: #1877F2 !important;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.35);
}

.social-twitter:hover,
a.twitter:hover,
a.twitter-x:hover,
.contact-social-btn.twitter:hover {
    background: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

.social-instagram:hover,
a.instagram:hover,
.contact-social-btn.instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(220, 39, 67, 0.35);
}

.social-linkedin:hover,
a.linkedin:hover,
.contact-social-btn.linkedin:hover {
    background: #0A66C2 !important;
    color: #ffffff !important;
    border-color: #0A66C2 !important;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(10, 102, 194, 0.35);
}

.social-youtube:hover,
a.youtube:hover,
.contact-social-btn.youtube:hover {
    background: #FF0000 !important;
    color: #ffffff !important;
    border-color: #FF0000 !important;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.35);
}

.social-whatsapp:hover,
a.whatsapp:hover,
.contact-social-btn.whatsapp:hover {
    background: #25D366 !important;
    color: #ffffff !important;
    border-color: #25D366 !important;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.35);
}

.social-tiktok:hover,
a.tiktok:hover,
.contact-social-btn.tiktok:hover {
    background: #000000 !important;
    color: #ffffff !important;
    border-color: #000000 !important;
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

/* Hero Section - Rounded Card Banner */
.hero-wrapper {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    padding: 65px 55px;
    margin: 15px 0 50px 0;
    min-height: 500px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #091222 0%, #0d3e8e 55%, #4338ca 100%);
    box-shadow: 0 25px 60px -15px rgba(11, 21, 40, 0.28), 0 0 0 1px rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Compact hero when no CTA button is configured */
.hero-wrapper--no-btn {
    min-height: 300px;
    padding-bottom: 40px;
}

.hero-wrapper--no-btn .hero-glass-panel,
.hero-wrapper--no-btn .hero-cover-content {
    padding-bottom: 24px;
}

.hero-cover-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease;
}

.hero-wrapper:hover .hero-cover-bg {
    transform: scale(1.025);
    filter: brightness(1.0) saturate(1.05);
}

/* Hero Glassmorphic Panel - Ultra-Frosted Blurry & Transparent Glassmorphism */
.hero-glass-panel,
.hero-cover-content {
    position: relative;
    z-index: 3;
    max-width: 760px;
    padding: 38px 44px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(28px) saturate(200%);
    -webkit-backdrop-filter: blur(28px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.14), inset 0 1px 1px rgba(255, 255, 255, 0.7);
    color: #0f172a;
    animation: heroContentFadeIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .hero-glass-panel,
[data-theme="dark"] .hero-cover-content {
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(28px) saturate(200%);
    -webkit-backdrop-filter: blur(28px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

@keyframes heroContentFadeIn {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

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

.hero-badge-glass {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: #ffffff;
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2px;
    border: 1px solid rgba(255, 255, 255, 0.26);
    margin-bottom: 22px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.hero-badge-glass:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

/* Pulsing LED status light */
.hero-status-pulse {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #10b981;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: heroStatusPulse 2s infinite;
    flex-shrink: 0;
}

@keyframes heroStatusPulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.hero-cover-title {
    font-size: clamp(2rem, 4.2vw, 3.2rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.03em;
    margin-bottom: 14px;
    color: #0f172a !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.7);
}

[data-theme="dark"] .hero-cover-title {
    color: #ffffff !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7) !important;
}

.hero-cover-subtitle {
    font-size: clamp(1rem, 2vw, 1.18rem);
    font-weight: 600;
    line-height: 1.5;
    color: #334155 !important;
    margin-bottom: 18px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

[data-theme="dark"] .hero-cover-subtitle {
    color: #f1f5f9 !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6) !important;
}

.hero-cover-desc {
    font-size: clamp(0.92rem, 1.5vw, 1rem);
    line-height: 1.7;
    color: #475569 !important;
    margin-bottom: 24px;
    max-width: 680px;
}

[data-theme="dark"] .hero-cover-desc {
    color: #cbd5e1 !important;
}

.hero-cover-desc p {
    color: inherit;
    margin-bottom: 0;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    padding: 14px 30px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    box-shadow: 0 8px 25px rgba(14, 68, 156, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
}

.btn-hero-primary:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, #1e40af 100%) !important;
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(14, 68, 156, 0.6);
}

.btn-hero-secondary {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.32) !important;
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-hero-secondary:hover {
    background: rgba(255, 255, 255, 0.24) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
    color: #ffffff !important;
}



/* Common Section Titles */
.section-title-box {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

/* Full-Width Subheadings with Light Background Bar and Left Accent Border */
.sub-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 22px;
    background: rgba(14, 68, 156, 0.06);
    border-left: 5px solid var(--primary);
    border-radius: 0 16px 16px 0;
    font-size: 22px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .sub-heading {
    background: rgba(109, 93, 252, 0.12);
    border-left-color: var(--accent);
    color: #f8fafc;
}

.section-title-box .badge-pill {
    display: inline-block;
    background: rgba(14, 68, 156, 0.08);
    color: var(--primary);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 15px;
}

.section-title-box h2 {
    font-size: 42px;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 15px;
    color: var(--text);
}

.section-title-box p {
    font-size: 18px;
    color: var(--text-muted);
}

/* Main Services Header Section */
.main-sections-header {
    margin-bottom: 50px;
}

.header-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 25px;
}

.header-title-box h1 {
    font-size: 54px;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.04em;
    color: var(--text);
    line-height: 1.1;
}

.header-title-box p {
    color: var(--text-muted);
    font-size: 19px;
    max-width: 620px;
    line-height: 1.6;
}

.services-search-box {
    position: relative;
    width: 100%;
    max-width: 360px;
}

.services-search-box input {
    width: 100%;
    padding: 14px 20px 14px 48px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 15px;
    outline: none;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.services-search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.services-search-box i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 18px;
}

/* Services & Cards Grid Layout */
.services-grid,
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
    gap: 35px;
}

/* Card Design (Matched to official.maxone.app/services) */
.service-card,
.feature-card {
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    color: inherit;
    cursor: pointer;
    box-shadow: var(--shadow-card);
}

.service-card:hover,
.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.service-thumb {
    aspect-ratio: 16/9;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #0e449c 0%, #6d5dfc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-card:hover .service-thumb img {
    transform: scale(1.06);
}

.service-thumb-fallback {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 38px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.service-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.service-info {
    padding: 28px 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.service-info h3 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 14px;
    line-height: 1.25;
    color: var(--text);
    transition: color 0.3s ease;
}

.service-card:hover .service-info h3 {
    color: var(--primary);
}

.service-info p {
    font-size: 15px;
    color: var(--text-muted);
    margin-bottom: 28px;
    line-height: 1.7;
    flex-grow: 1;
}

.service-card-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 15px;
    color: var(--primary);
    margin-top: auto;
    transition: gap 0.3s ease;
}

.service-card:hover .service-card-action {
    gap: 12px;
}

.product-card-price {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary);
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
}

/* ==========================================================================
   TESTIMONIAL CARD (Home Page Desktop & Global)
   ========================================================================== */
.testimonial-card {
    padding: 30px 28px;
    box-sizing: border-box;
}

@media (min-width: 769px) {
    .testimonial-card {
        padding: 30px 28px;
        box-sizing: border-box;
    }
}

/* ==========================================================================
   CONTACT PAGE SPECIFIC STYLES (Matched to official.maxone.app/contact)
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-info-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 30px;
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.contact-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
    opacity: 0;
    transition: opacity 0.3s;
}

.contact-info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.contact-info-card:hover::before {
    opacity: 1;
}

.contact-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
}

.contact-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin: 4px 0;
}

.contact-subtext {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.contact-arrow {
    margin-left: auto;
    font-size: 20px;
    color: var(--border);
    transition: 0.3s;
}

.contact-info-card:hover .contact-arrow {
    color: var(--primary);
    transform: translateX(5px);
}

.contact-social-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 30px;
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
}

.contact-social-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 14px;
    font-size: 20px;
    color: var(--text-muted);
    transition: 0.3s ease;
}

.contact-form-card {
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 50px;
    box-shadow: var(--shadow-card);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrap i {
    position: absolute;
    left: 18px;
    color: var(--text-muted);
    font-size: 18px;
    pointer-events: none;
    transition: color 0.3s ease;
}

.input-wrap input,
.input-wrap textarea {
    width: 100%;
    padding: 14px 20px 14px 48px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    outline: none;
    font-family: inherit;
    transition: all 0.3s ease;
}

.input-wrap.textarea-wrap textarea {
    padding-top: 14px;
}

.input-wrap input:focus,
.input-wrap textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
    background: var(--surface);
}

.input-wrap input:focus+i,
.input-wrap textarea:focus+i {
    color: var(--primary);
}

.form-control-custom {
    width: 100%;
    padding: 14px 20px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
}

.form-control-custom:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
    background: var(--surface);
}

/* Empty / No Results State */
.no-services-found {
    grid-column: 1 / -1;
    text-align: center;
    padding: 70px 20px;
    background: var(--surface);
    border: 1px dashed var(--border);
    border-radius: var(--radius-lg);
}

.no-services-found i {
    font-size: 48px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.no-services-found h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

/* Service Detail Modal Popup */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content-wrapper {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 850px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-content-wrapper {
    transform: scale(1) translateY(0);
}

.modal-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.4);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    z-index: 10;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close-btn:hover {
    background: var(--primary);
    transform: rotate(90deg);
}

.modal-banner {
    width: 100%;
    height: 300px;
    position: relative;
    background: linear-gradient(135deg, #0e449c 0%, #6d5dfc 100%);
    overflow: hidden;
}

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

.modal-body {
    padding: 40px;
}

.modal-body h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
}

.modal-video-box {
    margin: 25px 0;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.modal-video-box iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.modal-description {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 30px;
}

.modal-description ul {
    margin-left: 20px;
    margin-top: 10px;
}

.modal-description li {
    margin-bottom: 8px;
}

.modal-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px -5px var(--primary-glow);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    padding: 14px 28px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(14, 68, 156, 0.08);
    border-color: var(--primary);
    color: var(--primary);
}

/* Toast Notifications (3 second auto-hide per Instructions.txt) */
.toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    min-width: 280px;
    max-width: 400px;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-left: 5px solid var(--primary);
    padding: 14px 20px;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    animation: toastIn 0.3s ease forwards;
}

.toast.toast-success {
    border-left-color: #10b981;
}

.toast.toast-error {
    border-left-color: #ef4444;
}

.toast.toast-warning {
    border-left-color: #f59e0b;
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }

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

@keyframes toastOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }
}

/* Box Style Confirmation Modal (per Instructions.txt) */
.confirm-box-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(5px);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.confirm-box-overlay.active {
    opacity: 1;
    visibility: visible;
}

.confirm-box {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    max-width: 420px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.confirm-box-overlay.active .confirm-box {
    transform: scale(1);
}

.confirm-box h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
}

.confirm-box p {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 25px;
}

.confirm-box-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* Footer Styling */
footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 15px;
    max-width: 320px;
}

.footer-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    font-size: 13px;
    color: var(--text-muted);
}

/* ==========================================================================
   RESPONSIVE DESIGN & MOBILE VIEWPORT WIDTH CONTROL
   ========================================================================== */

/* Tablet & Medium Screens (max-width: 992px) */
@media (max-width: 992px) {
    .container {
        padding: 0 14px;
    }

    .hero-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .services-grid,
    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 24px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
    }

    .hero-wrapper {
        padding: 45px 32px;
        min-height: 400px;
        border-radius: 24px;
    }

    .hero-cover-title {
        font-size: clamp(1.8rem, 4vw, 2.5rem);
    }

    .hero-cover-subtitle {
        font-size: 16px;
    }

    .home-dynamic-grid,
    .service-detail-grid {
        grid-template-columns: 1fr !important;
        gap: 32px !important;
    }

    .home-dynamic-box {
        padding: 35px 28px !important;
        border-radius: 24px !important;
    }
}

/* Mobile Devices & Small Tablets (max-width: 767px) */
@media (max-width: 767px) {
    /* Global Page & Viewport Container */
    body {
        position: relative;
        width: 100%;
        max-width: 100vw;
        overflow-x: hidden;
    }

    .container {
        padding: 0 12px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .page-main {
        padding-top: 85px;
        padding-bottom: 50px;
    }

    /* Fixed Floating Header on Mobile */
    header {
        height: 58px;
        padding: 0 14px;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 24px);
        max-width: calc(100% - 24px);
        border-radius: 16px;
    }

    .logo {
        min-width: 0;
        flex: 1;
        overflow: hidden;
    }

    .logo a {
        font-size: clamp(14px, 4.2vw, 18px) !important;
        gap: 8px;
        max-width: 100%;
    }

    .logo img {
        max-height: 32px !important;
        max-width: clamp(110px, 34vw, 145px) !important;
    }

    .logo span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 160px;
    }

    .header-actions {
        gap: 8px;
        flex-shrink: 0;
    }

    .theme-toggle-btn {
        width: 38px;
        height: 38px;
        font-size: 16px;
        border-radius: 11px;
    }

    .hamburger {
        width: 38px;
        height: 38px;
        font-size: 20px;
        border-radius: 11px;
    }

    /* Off-canvas Navigation Drawer */
    .drawer {
        width: min(320px, 86vw);
        padding: 30px 20px;
    }

    .drawer-close {
        top: 18px;
        right: 18px;
        width: 40px;
        height: 40px;
        font-size: 22px;
    }

    .drawer-menu {
        margin-top: 30px;
    }

    .drawer-menu li a {
        padding: 12px 14px;
        font-size: 15px;
        border-radius: 12px;
    }

    /* Section Spacing & Headings */
    section[id] {
        padding: 36px 0 !important;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .section-title-box {
        margin: 0 auto 30px;
        padding: 0 4px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .section-title-box .badge-pill {
        font-size: 12px;
        padding: 5px 14px;
        margin-bottom: 12px;
    }

    .section-title-box h2 {
        font-size: clamp(1.5rem, 5.5vw, 2.05rem);
        line-height: 1.25;
        margin-bottom: 10px;
        word-break: break-word;
    }

    .section-title-box p {
        font-size: 14.5px;
        line-height: 1.5;
        word-break: break-word;
    }

    .header-title-box h1,
    .hero-content h1 {
        font-size: 28px;
        line-height: 1.25;
    }

    .header-title-box p,
    .hero-content p {
        font-size: 14.5px;
    }

    /* Hero Banner Mobile Styling */
    .hero-wrapper {
        padding: 22px 18px !important;
        min-height: auto !important;
        max-height: none !important;
        height: auto !important;
        border-radius: 20px !important;
        margin: 10px 0 28px 0 !important;
        box-shadow: 0 16px 40px -10px rgba(11, 21, 40, 0.25) !important;
        display: flex !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Mobile: compact hero with no button */
    .hero-wrapper--no-btn {
        padding-top: 18px !important;
        padding-bottom: 18px !important;
    }

    .hero-wrapper--no-btn .hero-glass-panel,
    .hero-wrapper--no-btn .hero-cover-content {
        padding-bottom: 20px !important;
    }

    .hero-glass-panel,
    .hero-cover-content {
        padding: 30px 28px !important;
        border-radius: 18px !important;
        width: calc(100% - 32px) !important;
        max-width: calc(100% - 32px) !important;
        margin-left: 16px !important;
        margin-right: 16px !important;
        box-sizing: border-box !important;
        background: rgba(255, 255, 255, 0.28) !important;
        backdrop-filter: blur(28px) saturate(200%) !important;
        -webkit-backdrop-filter: blur(28px) saturate(200%) !important;
    }

    [data-theme="dark"] .hero-glass-panel,
    [data-theme="dark"] .hero-cover-content {
        background: rgba(15, 23, 42, 0.45) !important;
        backdrop-filter: blur(28px) saturate(200%) !important;
        -webkit-backdrop-filter: blur(28px) saturate(200%) !important;
    }

    .hero-cover-bg {
        object-position: center;
    }

    .hero-badge-glass {
        font-size: 11.5px;
        padding: 5px 12px;
        margin-bottom: 12px;
        gap: 6px;
    }

    .hero-cover-title {
        font-size: clamp(1.4rem, 5.5vw, 1.85rem) !important;
        line-height: 1.25 !important;
        margin-bottom: 10px !important;
        word-break: break-word !important;
        padding-left: 4px !important;
        padding-right: 4px !important;
    }

    .hero-cover-subtitle {
        font-size: 14px !important;
        line-height: 1.45 !important;
        margin-bottom: 14px !important;
        word-break: break-word !important;
        padding-left: 4px !important;
        padding-right: 4px !important;
    }

    .hero-cover-desc {
        font-size: 13.5px !important;
        line-height: 1.55 !important;
        margin-bottom: 16px !important;
        word-break: break-word !important;
        padding-left: 4px !important;
        padding-right: 4px !important;
    }

    .hero-actions {
        flex-direction: column !important;
        width: 100% !important;
        gap: 10px !important;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100% !important;
        justify-content: center !important;
        padding: 13px 18px !important;
        font-size: 15px !important;
        box-sizing: border-box !important;
    }

    /* Grid Layouts on Mobile */
    .services-grid,
    .content-grid {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .service-card,
    .feature-card {
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 20px !important;
        box-sizing: border-box !important;
    }

    .service-thumb {
        width: 100% !important;
        max-height: 190px !important;
        aspect-ratio: 16 / 9;
    }

    .service-thumb img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .service-info {
        padding: 20px 16px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .service-info h3 {
        font-size: 17px !important;
        word-break: break-word !important;
    }

    .service-info p {
        font-size: 14px !important;
        line-height: 1.55 !important;
        word-break: break-word !important;
    }

    /* Section CTA Wrappers ("View All" Buttons) */
    .section-cta-wrap {
        margin-top: 28px !important;
        width: 100% !important;
        text-align: center !important;
    }

    .section-cta-wrap .btn-primary {
        width: 100% !important;
        max-width: 320px !important;
        justify-content: center !important;
        padding: 13px 20px !important;
        box-sizing: border-box !important;
    }

    /* Testimonials Cards */
    .testimonial-card {
        padding: 22px 18px !important;
        border-radius: 20px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .testimonial-card p {
        font-size: 14px !important;
        line-height: 1.6 !important;
        margin-bottom: 18px !important;
        word-break: break-word !important;
    }

    /* Contact Section Mobile Width Optimization */
    .contact-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .contact-grid {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
        width: 100% !important;
    }

    .contact-info-col {
        width: 100% !important;
        max-width: 100% !important;
        gap: 14px !important;
        box-sizing: border-box !important;
    }

    .contact-info-card {
        padding: 18px 16px !important;
        gap: 14px !important;
        border-radius: 18px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .contact-icon-wrap {
        width: 46px !important;
        height: 46px !important;
        font-size: 20px !important;
        border-radius: 14px !important;
        flex-shrink: 0 !important;
    }

    .contact-card-text {
        min-width: 0 !important;
        flex: 1 !important;
        overflow: hidden !important;
    }

    .contact-label {
        font-size: 11px !important;
        letter-spacing: 0.8px !important;
    }

    .contact-value {
        font-size: clamp(13px, 3.8vw, 15px) !important;
        word-break: break-word !important;
        overflow-wrap: anywhere !important;
        line-height: 1.35 !important;
        margin: 2px 0 !important;
    }

    .contact-subtext {
        font-size: 12px !important;
    }

    .contact-arrow {
        font-size: 16px !important;
        flex-shrink: 0 !important;
    }

    .contact-social-bar {
        width: 100% !important;
        max-width: 100% !important;
        padding: 18px 16px !important;
        border-radius: 18px !important;
        box-sizing: border-box !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 12px !important;
    }

    .contact-social-title {
        font-size: 12px !important;
    }

    .contact-social-icons {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
        width: 100% !important;
    }

    .contact-social-btn {
        width: 40px !important;
        height: 40px !important;
        font-size: 16px !important;
        border-radius: 12px !important;
    }

    .contact-form-col {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .contact-form-card {
        padding: 22px 16px !important;
        border-radius: 20px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .contact-form-card .sub-heading {
        font-size: 19px !important;
        padding: 10px 14px !important;
        border-radius: 0 12px 12px 0 !important;
    }

    .contact-form-card p {
        font-size: 14px !important;
    }

    .form-row {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        width: 100% !important;
    }

    .form-group {
        margin-bottom: 16px !important;
        width: 100% !important;
    }

    .form-group label {
        font-size: 13px !important;
        margin-bottom: 6px !important;
    }

    .input-wrap input,
    .input-wrap textarea {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        font-size: 15px !important;
        padding: 13px 14px 13px 44px !important;
        border-radius: 14px !important;
    }

    .contact-form-card button[type="submit"] {
        width: 100% !important;
        justify-content: center !important;
        padding: 14px 20px !important;
        font-size: 15px !important;
        box-sizing: border-box !important;
    }

    /* Generic Dynamic Sections */
    .home-dynamic-box {
        padding: 22px 16px !important;
        border-radius: 18px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .home-dynamic-grid,
    .service-detail-grid {
        grid-template-columns: 1fr !important;
        gap: 22px !important;
        width: 100% !important;
    }

    .home-dynamic-text,
    .home-dynamic-media {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .dynamic-heading {
        font-size: clamp(1.4rem, 5.2vw, 1.85rem) !important;
        word-break: break-word !important;
    }

    .dynamic-subheading {
        font-size: 14px !important;
        word-break: break-word !important;
    }

    .dynamic-description {
        font-size: 14.5px !important;
        line-height: 1.65 !important;
        word-break: break-word !important;
    }

    .dynamic-action {
        width: 100% !important;
    }

    .dynamic-action .btn-primary {
        width: 100% !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    .dynamic-media-img {
        width: 100% !important;
        max-height: 280px !important;
        border-radius: 18px !important;
    }

    .dynamic-media-video {
        border-radius: 18px !important;
    }

    /* Modal Dialog */
    .modal-body {
        padding: 22px 16px;
    }

    .modal-banner {
        height: 180px;
    }

    .modal-content-wrapper {
        width: calc(100% - 24px) !important;
        max-width: 480px !important;
        margin: 12px auto !important;
        border-radius: 20px !important;
    }

    .modal-actions {
        flex-direction: column;
        gap: 10px;
    }

    .modal-actions .btn-primary,
    .modal-actions .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    /* Footer Mobile Optimization */
    footer {
        padding: 38px 0 25px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 26px !important;
        margin-bottom: 28px !important;
        width: 100% !important;
    }

    .footer-brand {
        max-width: 100% !important;
    }

    .footer-brand p {
        font-size: 14px !important;
        max-width: 100% !important;
    }

    .footer-title {
        font-size: 16px !important;
        margin-bottom: 14px !important;
    }

    .footer-links {
        gap: 10px !important;
    }

    .footer-links li a,
    .footer-links li span {
        font-size: 14px !important;
    }

    .footer-bottom {
        padding-top: 20px !important;
        flex-direction: column !important;
        text-align: center !important;
        gap: 12px !important;
    }

    .breadcrumb-container,
    .breadcrumb-nav {
        display: none !important;
    }

    /* ── Project & Product Detail Page — Mobile ── */
    .header-meta-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 16px !important;
    }

    .header-meta-row > div:last-child {
        width: 100% !important;
    }

    .header-meta-row > div:last-child a,
    .header-meta-row > div:last-child button {
        width: 100% !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }

    /* Contact wrapper (used as content card on detail pages) */
    .contact-wrapper {
        padding: 18px 14px !important;
        border-radius: 18px !important;
    }

    /* Spec table — allow horizontal scroll */
    .spec-table-wrap {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        border-radius: 18px !important;
    }

    /* Gallery grid on mobile */
    .project-gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }

    /* Sidebar cards on detail pages */
    .service-detail-sidebar-card {
        padding: 18px 14px !important;
        border-radius: 18px !important;
    }

    /* Full-width CTA buttons in sidebar */
    .service-detail-sidebar-card .btn-primary,
    .service-detail-sidebar-cta .btn-primary {
        width: 100% !important;
        justify-content: center !important;
    }
}

/* Small Smartphone Devices (max-width: 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }

    header {
        height: 54px;
        top: 8px;
        width: calc(100% - 16px);
        max-width: calc(100% - 16px);
        padding: 0 10px;
        border-radius: 14px;
    }

    .logo a {
        font-size: 15px !important;
    }

    .logo img {
        max-width: 120px !important;
        max-height: 28px !important;
    }

    .logo span {
        max-width: 120px;
        font-size: 15px;
    }

    .header-actions {
        gap: 6px;
    }

    .theme-toggle-btn,
    .hamburger {
        width: 35px;
        height: 35px;
        border-radius: 10px;
    }

    .theme-toggle-btn {
        font-size: 15px;
    }

    .hamburger {
        font-size: 18px;
    }

    .page-main {
        padding-top: 76px;
        padding-bottom: 40px;
    }

    .hero-wrapper {
        padding: 16px 14px !important;
        border-radius: 16px !important;
        margin: 5px 0 22px 0 !important;
    }

    .hero-glass-panel,
    .hero-cover-content {
        padding: 26px 24px !important;
        border-radius: 16px !important;
    }

    .hero-cover-title {
        font-size: clamp(1.25rem, 5.2vw, 1.55rem) !important;
        margin-bottom: 8px !important;
        padding-left: 4px !important;
        padding-right: 4px !important;
    }

    .hero-cover-subtitle {
        font-size: 13.5px !important;
        margin-bottom: 12px !important;
        padding-left: 4px !important;
        padding-right: 4px !important;
    }

    .hero-cover-desc {
        font-size: 13px !important;
        margin-bottom: 14px !important;
        padding-left: 4px !important;
        padding-right: 4px !important;
    }

    .section-title-box h2 {
        font-size: 1.5rem !important;
    }

    .section-title-box p {
        font-size: 13.5px !important;
    }

    .contact-info-card {
        padding: 14px 12px !important;
        gap: 12px !important;
        border-radius: 16px !important;
    }

    .contact-icon-wrap {
        width: 42px !important;
        height: 42px !important;
        font-size: 18px !important;
        border-radius: 12px !important;
    }

    .contact-arrow {
        display: none !important;
    }

    .contact-value {
        font-size: 13.5px !important;
    }

    .contact-social-bar {
        padding: 15px 12px !important;
    }

    .contact-social-btn {
        width: 38px !important;
        height: 38px !important;
        font-size: 15px !important;
    }

    .contact-form-card {
        padding: 18px 12px !important;
        border-radius: 16px !important;
    }

    .contact-form-card .sub-heading {
        font-size: 17px !important;
        padding: 8px 12px !important;
    }

    .input-wrap input,
    .input-wrap textarea {
        font-size: 14px !important;
        padding: 12px 12px 12px 40px !important;
    }

    .home-dynamic-box {
        padding: 18px 12px !important;
        border-radius: 16px !important;
    }

    .dynamic-heading {
        font-size: 1.35rem !important;
    }

    /* Project & Product detail page — 480px adjustments */
    .contact-wrapper {
        padding: 14px 12px !important;
        border-radius: 16px !important;
    }

    .project-gallery-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }

    .header-title-box h1 {
        font-size: 24px !important;
    }
}

/* Ultra-compact Mobile Screens (max-width: 360px) */
@media (max-width: 360px) {
    .container {
        padding: 0 6px;
    }

    header {
        width: calc(100% - 10px);
        max-width: calc(100% - 10px);
        padding: 0 8px;
        top: 6px;
    }

    .logo img {
        max-width: 100px !important;
    }

    .logo span {
        max-width: 95px;
        font-size: 14px;
    }

    .hero-cover-title {
        font-size: 1.2rem !important;
    }
}

/* ============================================================
   FLOATING BACK TO TOP BUTTON
   ============================================================ */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(14, 68, 156, 0.4), 0 2px 6px rgba(0, 0, 0, 0.15);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.85);
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
    pointer-events: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.back-to-top:hover {
    background: linear-gradient(135deg, #093985 0%, #4338ca 100%);
    transform: translateY(-4px) scale(1.06);
    box-shadow: 0 12px 30px rgba(14, 68, 156, 0.55), 0 4px 10px rgba(0, 0, 0, 0.2);
    color: #ffffff;
}

.back-to-top:active {
    transform: translateY(-1px) scale(0.96);
}

[data-theme="dark"] .back-to-top {
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 20px rgba(99, 102, 241, 0.35);
}

@media (max-width: 767px) {
    .back-to-top {
        bottom: 22px;
        right: 18px;
        width: 44px;
        height: 44px;
        font-size: 17px;
        border-radius: 12px;
    }
}



/* Projects & Portfolio Specific Styling */
.projects-category-filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px dashed var(--border);
}

.project-cat-pill {
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--surface-card);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.project-cat-pill:hover,
.project-cat-pill.active {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
    box-shadow: 0 4px 14px var(--primary-glow);
}

.project-featured-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(234, 179, 8, 0.95);
    color: #000000;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 2;
    backdrop-filter: blur(4px);
}

.project-gallery-grid .project-gallery-item:hover {
    box-shadow: var(--shadow-hover);
}

/* ============================================================
   TEAM LISTING PAGE — Cards Grid
   ============================================================ */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 28px;
    margin-top: 10px;
    margin-bottom: 60px;
}

.team-card {
    position: relative;
    background: var(--surface-card);
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 36px 24px 24px;
    gap: 0;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.35s ease,
        border-color 0.3s ease;
    cursor: pointer;
}

.team-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(14, 68, 156, 0.04) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--border-hover);
}

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

/* Avatar */
.team-card-avatar {
    position: relative;
    width: 104px;
    height: 104px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-bottom: 20px;
}

.team-card-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    border-radius: 50%;
    border: 3px solid var(--border);
    transition: border-color 0.3s ease;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    transform: translateZ(0);
}

.team-card:hover .team-card-avatar img {
    border-color: var(--primary);
}

.team-card-avatar-fallback {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    color: #fff;
}

.team-card-avatar-glow {
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    z-index: -1;
}

.team-card:hover .team-card-avatar-glow {
    opacity: 1;
}

/* Info */
.team-card-info {
    text-align: center;
    flex: 1;
    width: 100%;
}

.team-card-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 4px;
    line-height: 1.3;
}

.team-card-role {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin: 0 0 12px;
    letter-spacing: 0.02em;
}

.team-card-bio {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0 0 16px;
}

/* Social row */
.team-card-socials {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
    margin-bottom: 16px;
}

.team-social-btn {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: var(--text-muted);
    transition: all 0.25s ease;
    text-decoration: none;
}

.team-social-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* CTA */
.team-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin-top: auto;
    transition: gap 0.25s ease;
}

.team-card:hover .team-card-cta {
    gap: 10px;
}

/* Dark theme adjustments */
[data-theme="dark"] .team-card {
    background: var(--surface-card);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .team-social-btn {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

/* ============================================================
   TEAM PROFILE / BIO PAGE
   ============================================================ */
.team-profile-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    align-items: start;
    padding-bottom: 60px;
}

/* ── Sidebar ────────────────────────────────────────────── */
.team-profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 90px;
}

.team-profile-avatar-card {
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    text-align: center;
    position: relative;
}

/* Top left-side share icon button */
.team-profile-share-btn {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
    transition: all 0.25s ease;
}

.team-profile-share-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: scale(1.08);
}

.team-share-toast {
    position: absolute;
    top: 17px;
    left: 60px;
    background: rgba(15, 23, 42, 0.92);
    color: #fff;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    z-index: 11;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    pointer-events: none;
    white-space: nowrap;
}

[data-theme="dark"] .team-profile-share-btn {
    background: rgba(30, 41, 59, 0.85);
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
}

[data-theme="dark"] .team-profile-share-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.team-profile-banner {
    width: 100%;
    height: 120px;
    position: relative;
    overflow: hidden;
}

.team-profile-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.team-profile-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0, 0, 0, 0.45) 100%);
}

.team-profile-banner--gradient {
    background: linear-gradient(135deg, #091222 0%, #0d3e8e 60%, #4338ca 100%);
}

.team-profile-avatar-wrap {
    position: relative;
    display: inline-block;
    margin-top: -50px;
    z-index: 2;
}

.team-profile-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--surface-card);
    box-shadow: 0 8px 24px rgba(14, 68, 156, 0.2);
    display: block;
}

.team-profile-avatar--fallback {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: #fff;
    border: 4px solid var(--surface-card);
}

.team-profile-avatar-ring {
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    opacity: 0.4;
    pointer-events: none;
}

.team-profile-identity {
    padding: 12px 20px 20px;
}

.team-profile-name {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    margin: 0 0 4px;
    line-height: 1.3;
}

.team-profile-role {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    margin: 0;
    letter-spacing: 0.025em;
}

/* Sidebar cards */
.team-profile-contact-card,
.team-profile-social-card {
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 18px;
    box-shadow: var(--shadow-card);
}

.team-profile-section-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.team-profile-contact-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: var(--text);
    text-decoration: none;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    transition: color 0.2s ease;
    word-break: break-all;
}

.team-profile-contact-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.team-profile-contact-row:hover {
    color: var(--primary);
}

.team-contact-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    color: var(--primary);
    flex-shrink: 0;
}

.team-contact-whatsapp .team-contact-icon {
    color: #25D366;
}

.team-profile-contact-row.team-contact-whatsapp:hover {
    color: #25D366;
}

/* Social buttons in sidebar */
.team-profile-socials {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.team-profile-social-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.team-profile-social-btn i {
    font-size: 16px;
    color: var(--social-color, var(--primary));
    transition: transform 0.25s ease;
}

.team-profile-social-btn:hover {
    background: var(--social-color, var(--primary));
    color: #fff;
    border-color: transparent;
    transform: translateX(4px);
}

.team-profile-social-btn:hover i {
    color: #fff;
    transform: scale(1.1);
}

.team-profile-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 14px;
    background: var(--surface-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
}

.team-profile-back-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ── Main content area ──────────────────────────────────── */
.team-profile-main {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.team-profile-section {
    background: var(--surface-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 30px;
    box-shadow: var(--shadow-card);
}

.team-profile-section-heading {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.team-profile-section-heading i {
    color: var(--primary);
    font-size: 20px;
}

/* Bio rich text */
.team-profile-bio-content {
    font-size: 15px;
    line-height: 1.75;
    color: var(--text);
}

.team-profile-bio-content p {
    margin: 0 0 12px;
}

.team-profile-bio-content p:last-child {
    margin-bottom: 0;
}

.team-profile-bio-content ul,
.team-profile-bio-content ol {
    padding-left: 22px;
    margin-bottom: 12px;
}

.team-profile-bio-content li {
    margin-bottom: 6px;
}

.team-profile-bio-content strong {
    color: var(--text);
    font-weight: 700;
}

.team-profile-bio-content a {
    color: var(--primary);
    text-decoration: underline;
}

/* Portfolio links grid — horizontal tabs/cards */
.team-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 16px;
}

.team-link-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: var(--surface-card);
    text-decoration: none;
    color: var(--text);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.28s ease,
        border-color 0.28s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.team-link-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary);
}

.team-link-card-thumb {
    width: 68px;
    height: 68px;
    flex-shrink: 0;
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.team-link-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.team-link-card:hover .team-link-card-thumb img {
    transform: scale(1.08);
}

.team-link-card-thumb-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: var(--primary);
    background: linear-gradient(135deg, rgba(14, 68, 156, 0.08) 0%, rgba(99, 102, 241, 0.12) 100%);
}

.team-link-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    flex: 1;
    gap: 3px;
}

.team-link-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    line-height: 1.35;
    transition: color 0.2s ease;
    word-break: break-word;
}

.team-link-card:hover .team-link-card-title {
    color: var(--primary);
}

.team-link-card-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.45;
    margin: 0;
    word-break: break-word;
}

[data-theme="dark"] .team-link-card {
    background: var(--surface-card);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .team-link-card:hover {
    border-color: var(--primary);
}

[data-theme="dark"] .team-link-card-thumb {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

/* Videos grid */
.team-videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 20px;
}

.team-video-card {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg);
}

.team-video-card--short {
    max-width: 320px;
}

.team-video-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 */
    overflow: hidden;
}

.team-video-card--short .team-video-wrap {
    padding-top: 177.78%;
    /* 9:16 */
}

.team-video-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 16px 16px 0 0;
}

.team-video-title {
    padding: 10px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

/* CTA banner */
.team-profile-cta {
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(135deg, #091222 0%, #0d3e8e 55%, #4338ca 100%);
    padding: 2px;
}

.team-profile-cta-inner {
    background: linear-gradient(135deg, rgba(9, 18, 34, 0.92) 0%, rgba(13, 62, 142, 0.88) 100%);
    border-radius: 22px;
    padding: 36px 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.team-profile-cta-inner i {
    font-size: 36px;
    color: rgba(255, 255, 255, 0.6);
}

.team-profile-cta-inner h3 {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin: 0;
}

.team-profile-cta-inner p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* ============================================================
   TEAM RESPONSIVE
   ============================================================ */
@media (max-width: 992px) {
    .team-profile-layout {
        grid-template-columns: 260px 1fr;
        gap: 20px;
    }
}

@media (max-width: 767px) {
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
        gap: 20px;
    }

    .team-profile-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .team-profile-sidebar {
        position: static;
    }

    .team-profile-section {
        padding: 22px 18px;
    }

    /* Portfolio & Links mobile padding reduction */
    .team-profile-links-section {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .team-profile-links-section .team-link-card,
    .team-link-card {
        padding-left: 10px !important;
        padding-right: 10px !important;
        gap: 12px;
    }

    .team-videos-grid {
        grid-template-columns: 1fr;
    }

    .team-video-card--short {
        max-width: 100%;
    }

    .team-video-card--short .team-video-wrap {
        padding-top: 100%;
    }

    /* Social buttons → icon-only buttons on mobile */
    .team-profile-socials {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }

    .team-profile-social-btn {
        width: 44px;
        height: 44px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        background: var(--bg);
        border: 1px solid var(--border);
        transition: all 0.25s ease;
    }

    .team-profile-social-btn span {
        display: none !important;
    }

    .team-profile-social-btn i {
        font-size: 18px;
        margin: 0;
    }

    .team-profile-social-btn:hover {
        background: var(--social-color, var(--primary));
        color: #fff;
        border-color: transparent;
        transform: translateY(-2px);
    }

    .team-profile-social-btn:hover i {
        color: #fff;
    }

    /* Contact links → icon-only buttons on mobile */
    .team-profile-contact-card .team-profile-section-title {
        margin-bottom: 12px;
    }

    .team-profile-contact-rows-wrap {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }

    .team-profile-contact-row {
        width: 44px;
        height: 44px;
        padding: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 12px;
        background: var(--bg);
        border: 1px solid var(--border);
        text-decoration: none;
        transition: all 0.25s ease;
    }

    .team-profile-contact-row:last-child {
        padding: 0;
    }

    .team-contact-label {
        display: none !important;
    }

    .team-contact-icon {
        width: 100%;
        height: 100%;
        background: transparent;
        border-radius: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        color: var(--primary);
        transition: color 0.25s ease;
    }

    .team-profile-contact-row:hover {
        background: var(--primary);
        border-color: var(--primary);
        transform: translateY(-2px);
    }

    .team-profile-contact-row:hover .team-contact-icon {
        color: #fff;
    }

    .team-profile-contact-row.team-contact-whatsapp .team-contact-icon {
        color: #25D366;
    }

    .team-profile-contact-row.team-contact-whatsapp:hover {
        background: #25D366;
        border-color: #25D366;
    }

    .team-profile-contact-row.team-contact-whatsapp:hover .team-contact-icon {
        color: #fff;
    }

    [data-theme="dark"] .team-profile-social-btn,
    [data-theme="dark"] .team-profile-contact-row {
        background: var(--surface-card);
        border-color: rgba(255, 255, 255, 0.1);
    }
}

@media (max-width: 480px) {
    .team-grid {
        grid-template-columns: 1fr;
    }

    .team-links-grid {
        grid-template-columns: 1fr;
    }

    .team-profile-links-section {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    .team-profile-links-section .team-link-card,
    .team-link-card {
        padding: 10px 8px !important;
        gap: 10px !important;
    }

    .team-link-card-thumb {
        width: 52px;
        height: 52px;
        border-radius: 12px;
    }
}

@media (max-width: 360px) {
    .hero-glass-panel,
    .hero-cover-content {
        padding: 22px 18px !important;
    }

    .hero-cover-title,
    .hero-cover-subtitle {
        padding-left: 2px !important;
        padding-right: 2px !important;
    }

    .team-profile-links-section {
        padding-left: 6px !important;
        padding-right: 6px !important;
    }

    .team-profile-links-section .team-link-card,
    .team-link-card {
        padding: 8px 6px !important;
        gap: 8px !important;
    }

    .team-link-card-thumb {
        width: 46px;
        height: 46px;
    }
}