/* 
   InnovaStudio Custom stylesheet
   Premium Dark Theme Design System
*/

/* FontAwesome 6 Font-Display Swap Overrides for PageSpeed Optimization */
@font-face {
    font-family: 'Font Awesome 6 Free';
    font-style: normal;
    font-weight: 900;
    font-display: swap;
    src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-solid-900.woff2') format('woff2');
}
@font-face {
    font-family: 'Font Awesome 6 Free';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-regular-400.woff2') format('woff2');
}
@font-face {
    font-family: 'Font Awesome 6 Brands';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/webfonts/fa-brands-400.woff2') format('woff2');
}

/* --- Reset & Base Styles --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --bg-primary: #00093b;
    --bg-secondary: #000424;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.07);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(99, 102, 241, 0.4);
    
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
    --text-dark: #1f2937;
    
    /* Primary brand colors */
    --color-primary: #f06336; /* Brand Orange */
    --color-secondary: #a855f7; /* Violet */
    --color-accent: #06b6d4; /* Cyan */
    --color-rose: #f43f5e;
    --color-amber: #eab308;
    
    /* Gradients */
    --gradient-hero: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 50%, var(--color-accent) 100%);
    --gradient-dark: linear-gradient(to bottom, #00093b, #000424);
    --gradient-card: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    
    /* Fonts */
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* --- Layout Utility --- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding {
    padding: 100px 0;
}

.text-center {
    text-align: center;
}

.text-gradient {
    background: var(--gradient-hero);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: #f06336;
}

p {
    color: var(--text-muted);
}

/* --- Common Components --- */
.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--color-primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.subtitle {
    display: block;
    color: var(--color-primary);
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 800;
}

.section-desc {
    max-width: 600px;
    margin: 0 auto 60px;
    font-size: 1.1rem;
}

.section-desc-left {
    font-size: 1.05rem;
    margin-bottom: 40px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-normal);
    text-decoration: none;
    font-family: var(--font-heading);
}

.btn-primary {
    background: var(--gradient-hero);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-secondary) 50%, var(--color-primary) 100%);
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.5);
}

.btn-outline {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-outline i {
    margin-left: 8px;
    transition: transform var(--transition-fast);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #ffffff;
}

.btn-outline:hover i {
    transform: translateX(4px);
}

.btn-block {
    display: width;
    width: 100%;
}

/* --- Header & Navigation --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-normal);
    background: rgba(0, 9, 59, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.header.scrolled {
    background: rgba(0, 9, 59, 0.85);
    border-bottom-color: rgba(99, 102, 241, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.navbar-container {
    height: 99px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-wrapper {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    padding: 6px 12px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
    transition: var(--transition-fast);
    text-decoration: none;
    gap: 10px;
}

.logo-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.15);
}

.logo-img {
    height: 86px;
    width: auto;
    display: block;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.logo-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #6c0000;
    font-family: var(--font-heading);
    line-height: 1.1;
    letter-spacing: 0.5px;
}

.logo-slogan {
    font-size: 0.58rem;
    font-weight: 700;
    color: #ca3b10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.1;
    margin-top: 1px;
}

.footer-logo-img {
    height: 86px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-fast);
    position: relative;
    padding: 8px 0;
    display: inline-block; /* Essential for correct positioning of ::after */
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-hero);
    transition: width var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    color: #ffffff;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.btn-nav {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* Mobile Menu Toggle */
.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 32px; height: 24px; padding: 0 !important; margin: 0 !important; box-sizing: border-box;
    z-index: 1100;
}

.mobile-toggle .bar {
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    border-radius: 4px;
    transition: var(--transition-fast);
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    padding-top: 180px;
    padding-bottom: 120px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-shapes .shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    z-index: -1;
}

.hero-bg-shapes .shape-1 {
    width: 400px;
    height: 400px;
    background: var(--color-primary);
    top: -100px;
    right: -50px;
}

.hero-bg-shapes .shape-2 {
    width: 300px;
    height: 300px;
    background: var(--color-accent);
    bottom: 50px;
    left: -50px;
}

.hero-bg-shapes .shape-3 {
    width: 250px;
    height: 250px;
    background: var(--color-secondary);
    top: 40%;
    right: 35%;
}

.hero-container {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 48px;
    align-items: center;
}

.hero-content, .hero-visual {
    min-width: 0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-desc {
    font-size: 1.15rem;
    margin-bottom: 40px;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 56px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
    border-top: 1px solid var(--border-color);
    padding-top: 32px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Hero Visual (Workspace card) */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-card-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
}

.glow-bg {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent), var(--color-secondary));
    filter: blur(15px);
    z-index: 1;
    border-radius: 16px;
    opacity: 0.45;
}

.main-card {
    position: relative;
    background: #000424;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    z-index: 2;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    max-width: 100%;
}

.card-header {
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-header .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #eab308; }
.dot.green { background: #22c55e; }

.card-title {
    font-size: 0.8rem;
    color: #cbd5e1;
    font-family: monospace;
    margin-left: 8px;
}

.card-body-code {
    padding: 24px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9rem;
    color: #cbd5e1;
    line-height: 1.7;
    display: flex;
    flex-direction: column;
    overflow-x: auto;
}

.code-line {
    white-space: nowrap;
}

.code-line.indent {
    padding-left: 20px;
}

/* Colors for Code */
.c-purple { color: #c084fc; }
.c-blue { color: #60a5fa; }
.c-yellow { color: #fde047; }
.c-green { color: #4ade80; }
.c-orange { color: #fb923c; }
.c-comment { color: #8ca2be; font-style: italic; }

/* Floating badges */
.floating-badge {
    position: absolute;
    background: rgba(0, 9, 59, 0.8);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    padding: 12px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 3;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.floating-badge span {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
}

.badge-1 {
    top: 20%;
    left: -40px;
    animation: float1 4s ease-in-out infinite;
}

.badge-2 {
    bottom: 15%;
    right: -30px;
    animation: float2 5s ease-in-out infinite;
}

.c-cyan { color: var(--color-accent); }
.c-rose { color: var(--color-rose); }

@keyframes float1 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* --- About Us Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 48px;
    align-items: flex-start;
}

.about-image-column {
    position: sticky;
    top: 100px;
    align-self: start;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 32px;
}

@media (max-width: 768px) {
    .philosophy-grid {
        grid-template-columns: 1fr;
    }
}

.about-image-side {
    position: relative;
    height: auto;
}

.image-stack {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(12, 1fr);
    width: 100%;
    height: auto;
    aspect-ratio: 1.2;
}

.image-box {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(99, 102, 241, 0.25);
    z-index: 3 !important;
}

.main-img {
    grid-column: 1 / 8;
    grid-row: 1 / 10;
    z-index: 2;
}

.sub-img {
    grid-column: 7 / 13;
    grid-row: 4 / 13;
    z-index: 1;
}

.gradient-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.4) 0%, rgba(6, 182, 212, 0.4) 100%);
    mix-blend-mode: overlay;
    z-index: 1;
}

.gradient-overlay-sub {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.4) 0%, rgba(244, 63, 94, 0.4) 100%);
    mix-blend-mode: overlay;
    z-index: 1;
}

.img-placeholder {
    width: 100%;
    height: 100%;
    background: #00052b;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    gap: 16px;
}

.img-placeholder i {
    font-size: 3rem;
    color: var(--color-accent);
}

.img-placeholder-sub {
    width: 100%;
    height: 100%;
    background: #000736;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    gap: 12px;
}

.img-placeholder-sub i {
    font-size: 2.2rem;
    color: var(--color-secondary);
}

.img-placeholder span, .img-placeholder-sub span {
    font-family: var(--font-heading);
    font-weight: 600;
    letter-spacing: 1px;
}

.about-content-side .side-title {
    font-size: 2rem;
    margin-bottom: 20px;
    line-height: 1.3;
}

.about-content-side .side-text {
    font-size: 1.05rem;
    margin-bottom: 40px;
}

.values-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.value-item {
    display: flex;
    gap: 20px;
}

.value-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-primary);
    font-size: 1.3rem;
}

.value-text h3,
.value-text h4 {
    font-size: 1.15rem;
    margin-bottom: 6px;
    font-weight: 600;
}

.value-text p {
    font-size: 0.95rem;
}

/* --- Services Section --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.span-2-cols {
    grid-column: span 2;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 16px;
    transition: var(--transition-normal);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.1);
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.6rem;
    margin-bottom: 24px;
}

.icon-cyan {
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    color: var(--color-accent);
}

.icon-purple {
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    color: var(--color-secondary);
}

.icon-rose {
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.2);
    color: var(--color-rose);
}

.icon-amber {
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.2);
    color: var(--color-amber);
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
}

.service-card p {
    margin-bottom: 24px;
    font-size: 0.95rem;
    line-height: 1.7;
}

.service-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
}

.service-link i {
    transition: transform var(--transition-fast);
}

.service-card:hover .service-link {
    color: var(--color-accent);
}

.service-card:hover .service-link i {
    transform: translateX(6px);
}

/* --- Portfolio Section --- */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-normal);
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.1);
}

.project-image {
    position: relative;
    height: 220px;
    width: 100%;
    overflow: hidden;
}

.project-mockup {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding: 24px;
    position: relative;
    transition: transform var(--transition-normal);
}

.project-card:hover .project-mockup {
    transform: scale(1.05);
}

.p-grad-1 {
    background: linear-gradient(135deg, #1e1b4b 0%, #311042 100%);
}

.p-grad-2 {
    background: linear-gradient(135deg, #062f4f 0%, #000000 100%);
}

.p-grad-3 {
    background: linear-gradient(135deg, #1f1c2c 0%, #928dab 100%);
}

.project-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 1;
}

.mockup-icon {
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 4.5rem;
    color: rgba(255, 255, 255, 0.08);
    z-index: 1;
    transition: all var(--transition-normal);
}

.project-card:hover .mockup-icon {
    transform: scale(1.15) rotate(-10deg);
    color: rgba(240, 99, 54, 0.25);
}

.mockup-content {
    position: relative;
    z-index: 2;
}

.mockup-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-accent);
    font-weight: 700;
}

.project-mockup h4 {
    font-size: 1.3rem;
    margin-top: 4px;
}

.project-info {
    padding: 30px;
}

.proj-tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 16px;
}

.project-info h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.project-info p {
    font-size: 0.9rem;
    margin-bottom: 24px;
    line-height: 1.6;
}

.project-detail-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
}

.project-detail-link i {
    font-size: 0.75rem;
    transition: transform var(--transition-fast);
}

.project-detail-link:hover {
    color: var(--color-accent);
}

.project-detail-link:hover i {
    transform: translate(2px, -2px);
}

/* --- Testimonials Section --- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.stars {
    color: var(--color-amber);
    margin-bottom: 20px;
    font-size: 0.85rem;
}

.quote {
    font-size: 1.05rem;
    line-height: 1.7;
    font-style: italic;
    color: #cbd5e1;
    margin-bottom: 30px;
}

.client-info {
    display: flex;
    align-items: center;
    gap: 16px;
}

.client-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 1.1rem;
    font-family: var(--font-heading);
}

.client-avatar.bg-purple {
    background: var(--color-secondary);
}

.client-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.client-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Partner Logos Section --- */
.partners-section-title {
    font-size: 1.5rem;
    color: #ffffff;
    margin-top: 50px;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 12px;
}

.partners-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--color-primary);
    border-radius: 2px;
}

.partners-logo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.partner-logo-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    height: 140px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    transition: var(--transition-normal);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.partner-logo-card img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: none;
    opacity: 1;
    transition: var(--transition-normal);
}

.partner-logo-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 40px rgba(240, 99, 54, 0.22);
}

.partner-logo-card:hover img {
    transform: scale(1.05);
}

/* --- Contact Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 64px;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin: 40px 0;
}

.method-item {
    display: flex;
    gap: 20px;
    align-items: center;
}

.method-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-accent);
    font-size: 1.2rem;
}

.method-item span {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.method-item p {
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
    margin-top: 4px;
}

.social-links-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: var(--transition-fast);
    text-decoration: none;
}

.social-link:hover {
    color: #ffffff;
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

/* Contact Form */
.form-wrapper {
    background: rgba(15, 14, 28, 0.8);
    border: 1px solid var(--border-color);
    padding: 48px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
}

.form-wrapper h3 {
    font-size: 1.6rem;
    margin-bottom: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: #cbd5e1;
}

.form-group label .required {
    color: var(--color-rose);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 16px;
    border-radius: 8px;
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-fast);
    outline: none;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='white' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    padding-right: 40px;
}

.form-group select option {
    background: var(--bg-secondary);
    color: #ffffff;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: var(--color-accent);
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.15);
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: var(--color-rose);
    box-shadow: 0 0 10px rgba(244, 63, 94, 0.15);
}

.error-message {
    font-size: 0.8rem;
    color: var(--color-rose);
    display: none;
    margin-top: 6px;
}

.form-group.error .error-message {
    display: block;
}

.form-status {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0f0e1c;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 48px;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
    z-index: 10;
}

.form-status.show {
    opacity: 1;
    pointer-events: auto;
}

.status-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #22c55e;
    font-size: 2rem;
    margin-bottom: 24px;
}

.form-status h4 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.form-status p {
    font-size: 0.95rem;
    max-width: 320px;
}

/* --- Footer --- */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 48px;
    margin-bottom: 60px;
}

.footer-logo {
    display: inline-block;
    margin-bottom: 20px;
}

.brand-desc {
    font-size: 0.95rem;
    margin-bottom: 24px;
    max-width: 280px;
}

.copyright {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-links h3,
.footer-links h4,
.footer-newsletter h3,
.footer-newsletter h4 {
    font-size: 1.1rem;
    margin-bottom: 24px;
    font-weight: 600;
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: #ffffff;
    padding-left: 4px;
}

.footer-newsletter p {
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.newsletter-form input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-right: none;
    padding: 0 16px;
    border-radius: 8px 0 0 8px;
    color: #ffffff;
    outline: none;
    font-size: 0.9rem;
    margin: 0;
    height: 48px;
}

.newsletter-form input:focus {
    border-color: var(--color-accent);
}

.newsletter-form button {
    background: var(--gradient-hero);
    border: none;
    color: #ffffff;
    width: 48px;
    height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: var(--transition-fast);
    font-size: 1rem;
    padding: 0;
    margin: 0;
    border-radius: 0;
}

.newsletter-form button:hover {
    filter: brightness(1.1);
}

/* --- Scroll Reveal Effects --- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Why Choose Us Section --- */
.why-us-grid {
    display: grid;
    grid-template-columns: 2fr 3fr; /* Left column (TÆ° duy KhÃ¡c biá»‡t) narrower, Right column (Äá»™i ngÅ© Thá»±c chiáº¿n) wider for height balance */
    gap: 30px;
    margin-top: 50px;
}

.why-us-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 16px;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.why-us-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
    box-shadow: 0 15px 30px rgba(240, 99, 54, 0.08);
}

.why-us-card-full {
    grid-column: span 2;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 45px;
    border-radius: 16px;
    transition: var(--transition-normal);
    margin-top: 10px;
}

.why-us-card-full:hover {
    border-color: var(--border-hover);
    box-shadow: 0 15px 30px rgba(240, 99, 54, 0.08);
}

.why-us-card-full .card-inner-grid {
    display: grid;
    grid-template-columns: 2fr 3fr; /* Left column (Báº£o chá»©ng ThÃ nh cÃ´ng) narrower, Right column (Dá»± Ã¡n tiÃªu biá»ƒu) wider for height balance */
    gap: 40px;
}

.why-us-number {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 4rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: rgba(255, 255, 255, 0.02);
    line-height: 1;
    pointer-events: none;
    transition: var(--transition-normal);
}

.why-us-card:hover .why-us-number {
    color: rgba(240, 99, 54, 0.04);
    transform: scale(1.1);
}

.why-us-title {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.why-us-title i {
    color: var(--color-primary);
}

.why-us-desc {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.7;
    margin-bottom: 24px;
    text-align: justify;
}

/* APT Core Values list styling */
.apt-values-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.apt-value-item {
    display: flex;
    gap: 16px;
    background: rgba(255, 255, 255, 0.02);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.apt-value-letter {
    font-size: 1.8rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
    min-width: 30px;
}

.apt-value-item:nth-child(2) .apt-value-letter {
    color: var(--color-accent);
}

.apt-value-details h4 {
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 4px;
    font-weight: 600;
}

.apt-value-details p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Executive roles list */
.exec-roles-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.exec-role-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.02);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.88rem;
    color: #ffffff;
}

.exec-role-item i {
    color: var(--color-accent);
    font-size: 1rem;
}

/* Partner logos list */
.partner-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.partner-tag {
    background: rgba(240, 99, 54, 0.05);
    border: 1px solid rgba(240, 99, 54, 0.15);
    color: #ffffff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.partner-tag:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-2px);
}

/* Achievements timeline list */
.achievements-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.achievement-item {
    position: relative;
    padding-left: 24px;
    border-left: 2px solid rgba(240, 99, 54, 0.2);
    transition: var(--transition-normal);
}

.achievement-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--color-primary);
    transition: var(--transition-normal);
}

.achievement-item:hover {
    border-left-color: var(--color-primary);
}

.achievement-item:hover::before {
    background: var(--color-primary);
}

.achievement-item h4 {
    font-size: 0.98rem;
    color: #ffffff;
    margin-bottom: 4px;
    font-weight: 600;
}

.achievement-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    text-align: justify;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .section-title {
        font-size: 2.2rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-container {
        grid-template-columns: minmax(0, 1fr);
        gap: 60px;
    }
    
    .hero-content {
        order: 1;
    }
    
    .hero-visual {
        order: 2;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .partners-logo-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .hero-section, .subpage-banner {
        background-size: 100% 100%, 100% auto !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
    }

    .section-padding {
        padding: 70px 0;
    }
    
    /* Navigation */
    .mobile-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(8, 7, 16, 0.98);
        backdrop-filter: blur(16px);
        border-top: 1px solid var(--border-color);
        padding: 40px 24px;
        transition: var(--transition-normal);
        z-index: 999;
    }
    
    .nav-menu.open {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }
    
    .nav-link {
        font-size: 1.2rem;
    }
    
    .btn-nav {
        display: none; /* Hide on small screen header, keep link in nav menu */
    }
    
    /* Hamburger Transform */
    .mobile-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    /* Sections Grid */
    .about-grid, .services-grid, .testimonials-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .span-2-cols {
        grid-column: span 1 !important;
    }
    
    /* Why Choose Us Mobile Styles */
    .why-us-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .why-us-card-full {
        grid-column: span 1 !important;
        padding: 30px 20px;
    }
    
    .why-us-card-full .card-inner-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .why-us-card {
        padding: 30px 20px;
    }
    
    .exec-roles-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .partners-logo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .about-image-column {
        position: relative !important;
        top: auto !important;
        align-self: stretch !important;
    }

    .about-image-side {
        height: auto;
        margin-bottom: 20px;
    }

    .image-stack {
        aspect-ratio: 1.2;
    }

    .img-placeholder i {
        font-size: 2.2rem;
    }

    .img-placeholder-sub i {
        font-size: 1.8rem;
    }

    .img-placeholder span, .img-placeholder-sub span {
        font-size: 0.9rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .form-wrapper {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }
    
    .floating-badge {
        display: none;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .logo-img {
        height: 32px;
    }
    
    .logo-wrapper {
        padding: 4px 8px;
        gap: 6px;
    }
    
    .logo-title {
        font-size: 0.95rem;
    }
    
    .logo-slogan {
        display: none;
    }
    
    .partners-logo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .partner-logo-card {
        height: 100px;
        padding: 12px;
        border-radius: 12px;
    }
}

/* --- Subpage Banner --- */
.subpage-banner {
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    padding: 60px 0;
    text-align: center;
}

.subpage-banner h1 {
    font-size: 2.8rem;
    margin-top: 10px;
    margin-bottom: 16px;
    color: #f06336;
}

.subpage-banner p {
    max-width: 600px;
    margin: 0 auto;
    color: var(--text-muted);
}

/* --- Lawyer Profile & About Page styling --- */
.profile-image-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    background: #000424;
    transition: var(--transition-normal);
}

.profile-image-container:hover {
    transform: translateY(-5px);
    border-color: var(--border-hover);
}

.lawyer-profile-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 600 / 670;
}

.profile-caption {
    background: rgba(0, 4, 36, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 20px;
    text-align: center;
}

.profile-caption h4 {
    font-size: 1.15rem;
    color: #ffffff;
    margin-bottom: 4px;
}

.profile-caption p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.subtitle-accent {
    display: block;
    font-size: 1.05rem;
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 24px;
}

.about-paragraph {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #cbd5e1;
    margin-bottom: 20px;
    text-align: justify;
}

/* --- Industry Grid & Cards in portfolio.html --- */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.industry-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px 24px;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.industry-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--color-primary) 0%, #f06336 100%);
    opacity: 0;
    transition: var(--transition-normal);
}

.industry-card:hover {
    transform: translateY(-8px);
    border-color: rgba(240, 99, 54, 0.4);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
}

.industry-card:hover::before {
    opacity: 1;
}

.industry-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(240, 99, 54, 0.08);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 24px;
    transition: var(--transition-normal);
    border: 1px solid rgba(240, 99, 54, 0.15);
}

.industry-card:hover .industry-icon-wrapper {
    background: linear-gradient(135deg, var(--color-primary) 0%, #f06336 100%);
    transform: rotate(5deg) scale(1.05);
    border-color: transparent;
}

.industry-icon-wrapper i {
    font-size: 1.6rem;
    color: var(--color-primary);
    transition: var(--transition-normal);
}

.industry-card:hover .industry-icon-wrapper i {
    color: #ffffff;
}

.industry-title {
    font-family: var(--font-primary);
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    line-height: 1.4;
}

.industry-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Responsive cho Industry Grid */
@media (max-width: 1024px) {
    .industry-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 576px) {
    .industry-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .industry-card {
        padding: 24px 20px;
    }
}

/* --- Dropdown Mega Menu --- */
@media (min-width: 992px) {
    .nav-list {
        position: static; /* Removed relative positioning to allow absolute mega-menu to span the full header/viewport width */
    }
    
    .nav-item-has-mega {
        position: static; /* Báº¯t buá»™c Ä‘á»ƒ Mega Menu chiáº¿m trá»n chiá»u rá»™ng container navbar */
    }
    
    .mega-menu {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background: rgba(0, 5, 41, 0.98);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        border-bottom: 2px solid var(--color-primary);
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
        padding: 30px 0;
        z-index: 999;
        opacity: 0;
        visibility: hidden;
        transform: translateY(15px);
        transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .nav-item-has-mega:hover .mega-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    .mega-menu-container {
        display: grid;
        grid-template-columns: 1.3fr 0.7fr; /* Optimized column ratio: 65% for Service Scope (2 wide columns) and 35% for Service Areas */
        gap: 40px;
        max-height: 450px; /* Slightly increased height to ensure all elements fit comfortably */
        overflow: hidden;
        max-width: 1320px !important;
        width: 95% !important;
    }
    
    .mega-column {
        display: flex;
        flex-direction: column;
    }
    
    .mega-title {
        font-family: var(--font-primary);
        font-size: 1.25rem;
        font-weight: 700;
        color: var(--color-primary);
        margin-bottom: 20px;
        padding-bottom: 12px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .mega-scrollable-content {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
        overflow-y: auto;
        padding-right: 15px;
        max-height: 355px; /* Increased to match container height */
    }
    
    /* TÃ¹y biáº¿n thanh cuá»™n cho cá»™t 1 */
    .mega-scrollable-content::-webkit-scrollbar {
        width: 6px;
    }
    .mega-scrollable-content::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.02);
        border-radius: 3px;
    }
    .mega-scrollable-content::-webkit-scrollbar-thumb {
        background: rgba(240, 99, 54, 0.3);
        border-radius: 3px;
    }
    .mega-scrollable-content::-webkit-scrollbar-thumb:hover {
        background: rgba(240, 99, 54, 0.5);
    }
    
    /* CÃ¡c cá»™t con chá»©a cÃ¡c nhÃ³m cá»§a Pháº¡m vi dá»‹ch vá»¥ */
    .mega-sub-column {
        display: flex;
        flex-direction: column;
        gap: 24px; /* Gap between subgroups in the same column */
    }
    
    .mega-sub-group {
        display: flex;
        flex-direction: column;
    }
    
    .mega-sub-group h5 {
        font-size: 0.95rem;
        font-weight: 600;
        color: #ffffff;
        margin-bottom: 10px;
        position: relative;
        padding-left: 12px;
    }
    
    .mega-sub-group h5::before {
        content: '';
        position: absolute;
        left: 0;
        top: 6px;
        width: 4px;
        height: 10px;
        background: var(--color-primary);
        border-radius: 2px;
    }
    
    .mega-sub-group ul {
        list-style: none;
        padding: 0;
        margin: 0;
    }
    
    .mega-sub-group ul li {
        font-size: 0.85rem;
        color: var(--text-muted);
        line-height: 1.5;
        margin-bottom: 8px;
        position: relative;
        padding-left: 12px;
        transition: var(--transition-fast);
    }
    
    .mega-sub-group ul li::before {
        content: '\2022'; /* Encoding-safe bullet character */
        position: absolute;
        left: 0;
        color: rgba(255, 255, 255, 0.3);
    }
    
    .mega-sub-group ul li:hover {
        color: #ffffff;
        transform: translateX(3px);
    }
    
    .mega-industry-list {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 6px; /* Reduced gap to save vertical space */
    }
    
    .mega-industry-list li {
        font-size: 0.85rem; /* Slightly smaller for elegance and wrapping prevention */
        color: #cbd5e1;
        display: flex;
        align-items: center;
        gap: 12px;
        transition: var(--transition-normal);
        padding: 5px 8px; /* Compact padding to fit within max-height */
        border-radius: 8px;
        border: 1px solid transparent;
        white-space: nowrap; /* Prevent text wrapping completely */
    }
    
    .mega-industry-list li i {
        font-size: 1.05rem;
        color: var(--color-primary);
        transition: var(--transition-normal);
        width: 20px;
        text-align: center;
    }
    
    .mega-industry-list li:hover {
        color: #ffffff;
        background: rgba(240, 99, 54, 0.05);
        border-color: rgba(240, 99, 54, 0.15);
        transform: translateX(5px);
    }
    
    .mega-industry-list li:hover i {
        transform: scale(1.15);
    }
    
    .nav-chevron {
        font-size: 0.7rem;
        margin-left: 5px;
        transition: transform var(--transition-normal);
    }
    
    .nav-item-has-mega:hover .nav-chevron {
        transform: rotate(180deg);
    }
}

@media (max-width: 991px) {
    .mega-menu {
        display: none !important;
    }
    
    .nav-chevron {
        display: none !important;
    }
}

/* --- Detailed Services & Industries Page --- */
.services-detail-section {
    background: var(--bg-primary);
}

.industries-detail-section {
    background: var(--bg-secondary);
}

/* --- Full-Width Service Category Sections --- */
.service-category-section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.service-category-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* Category Header Style */
.category-section-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 45px;
}

.category-section-header .category-icon {
    width: 65px;
    height: 65px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 18px;
    background: rgba(240, 99, 54, 0.1);
    color: var(--color-primary);
    box-shadow: 0 6px 15px rgba(240, 99, 54, 0.12);
}

.category-section-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.category-section-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* Base Sub-items Grid */
.sub-items-grid {
    display: grid;
    gap: 24px;
    align-items: start; /* Prevent cards from stretching to the same height in a row */
}

/* Customized Grid Columns for Desktop (min-width: 992px) */
@media (min-width: 992px) {
    .grid-4-cols {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .grid-2-cols {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-3-cols-simple {
        grid-template-columns: repeat(3, 1fr);
    }
    
    /* 6-column grid to center the last 2 items of a 5-item set */
    .grid-3-cols {
        grid-template-columns: repeat(6, 1fr);
    }
    .grid-3-cols .service-sub-item {
        grid-column: span 2;
    }
    .grid-3-cols .service-sub-item:nth-child(4) {
        grid-column: 2 / span 2; /* Center the 4th item */
    }
    .grid-3-cols .service-sub-item:nth-child(5) {
        grid-column: 4 / span 2; /* Center the 5th item */
    }
}

/* Tablet Screens (991px to 768px) */
@media (max-width: 991px) and (min-width: 768px) {
    .grid-4-cols {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-2-cols {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-3-cols-simple {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-3-cols {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .grid-3-cols .service-sub-item {
        grid-column: span 1 !important;
    }
    .grid-3-cols .service-sub-item:last-child {
        grid-column: span 2 !important; /* Center the 5th item on tablet */
    }
}

/* Mobile Screens (max-width: 767px) */
@media (max-width: 767px) {
    .sub-items-grid {
        grid-template-columns: 1fr !important;
    }
    .grid-3-cols .service-sub-item {
        grid-column: span 1 !important;
    }
}

/* Tháº» má»¥c con chi tiáº¿t */
.service-sub-item {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.03);
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    scroll-margin-top: 110px; /* TrÃ¡nh bá»‹ che khuáº¥t bá»Ÿi header khi click bookmark */
    display: flex;
    flex-direction: column;
}

.service-sub-item:hover {
    transform: translateY(-4px);
    border-color: rgba(240, 99, 54, 0.25);
    box-shadow: 0 16px 36px rgba(240, 99, 54, 0.08);
    background: rgba(255, 255, 255, 0.01);
}

.service-sub-item h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.4;
}

.service-sub-item h4 i {
    color: var(--color-primary);
    font-size: 1rem;
    margin-top: 3px;
}

.service-sub-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
}

/* Danh sÃ¡ch chi tiáº¿t cÃ´ng viá»‡c bÃªn trong má»—i má»¥c con */
.sub-item-details {
    list-style: none;
    padding: 0;
    margin: 16px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 16px;
}

.sub-item-details li {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.4;
    position: relative;
    padding-left: 18px;
}

.sub-item-details li::before {
    content: "\2022"; /* Encoding-safe bullet character */
    color: var(--color-primary);
    position: absolute;
    left: 4px;
    top: 0;
    font-weight: bold;
}

/* --- Mega Menu Link Styles & Contrast Reset --- */
/* Subgroup Headers (e.g. Doanh nghiá»‡p - Äáº§u tÆ°, Dá»± Ã¡n) */
.mega-sub-group h5 a,
.mega-sub-group h5 a:link,
.mega-sub-group h5 a:visited {
    color: #ffffff !important; /* Keep it white, even if visited */
    text-decoration: none !important; /* No underline */
    transition: var(--transition-fast);
    display: inline-block;
}

.mega-sub-group h5 a:hover,
.mega-sub-group h5 a:active {
    color: var(--color-primary) !important; /* Turn orange on hover */
    text-decoration: none !important;
}

/* Bullet Point Links under Subgroups */
.mega-sub-group ul li a,
.mega-sub-group ul li a:link,
.mega-sub-group ul li a:visited {
    color: var(--text-muted) !important; /* Keep it muted grey, even if visited */
    text-decoration: none !important;
    transition: var(--transition-fast);
}

.mega-sub-group ul li a:hover,
.mega-sub-group ul li a:active {
    color: #ffffff !important; /* Turn white on hover */
    text-decoration: none !important;
}

/* Industry List Links (Right Column) */
.mega-industry-list li a,
.mega-industry-list li a:link,
.mega-industry-list li a:visited {
    color: #cbd5e1 !important; /* Keep it light slate blue, even if visited */
    text-decoration: none !important;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    transition: var(--transition-normal);
}

.mega-industry-list li a:hover,
.mega-industry-list li a:active,
.mega-industry-list li:hover a {
    color: #ffffff !important; /* Turn white on hover */
    text-decoration: none !important;
}

/* Force-hide the mega menu when a link inside it is clicked (UX same-page fix) */
.mega-menu.force-hide {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(15px) !important;
}

/* --- Industry Details Grid & Cards in services.html --- */
.industries-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns on desktop for detailed text cards */
    gap: 30px;
}

.industry-detail-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 35px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    gap: 16px;
    scroll-margin-top: 110px; /* Fixes the sticky header overlap when clicking bookmark */
}

.industry-detail-card:hover {
    transform: translateY(-4px);
    border-color: rgba(240, 99, 54, 0.25);
    box-shadow: 0 16px 36px rgba(240, 99, 54, 0.08);
    background: rgba(255, 255, 255, 0.01);
}

.industry-detail-icon {
    width: 55px;
    height: 55px;
    border-radius: 12px;
    background: rgba(240, 99, 54, 0.1);
    color: var(--color-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.industry-detail-card:hover .industry-detail-icon {
    background: linear-gradient(135deg, var(--color-primary) 0%, #f06336 100%);
    color: #ffffff;
    transform: scale(1.05);
}

.industry-detail-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.industry-detail-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Responsive for Industry Details Grid */
@media (max-width: 991px) {
    .industries-detail-grid {
        grid-template-columns: 1fr; /* 1 column on tablet/mobile */
        gap: 24px;
    }
    
    .industry-detail-card {
        padding: 28px;
    }
}

/* --- Back to Top Button --- */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #4f46e5); /* Vibrant solid indigo base for high visibility */
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: #ffffff !important; 
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(15px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.back-to-top i {
    color: #ffffff !important; /* Force high contrast icon */
    transition: transform 0.3s ease;
    padding: 0 !important;
    margin: 0 !important;
    width: auto !important;
    height: auto !important;
    line-height: 1 !important;
    display: inline-block !important;
}

.back-to-top:hover {
    background: linear-gradient(135deg, #818cf8, #6366f1); /* Lighter indigo gradient on hover */
    border-color: rgba(255, 255, 255, 0.8);
    transform: translateY(-6px) scale(1.05);
    box-shadow: 0 10px 25px rgba(129, 140, 248, 0.6);
}

.back-to-top:hover i {
    transform: translateY(-3px); /* Arrow shoots up effect */
}

/* Responsive adjustment for small mobile screens */
@media (max-width: 576px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }
}

/* --- Collapsible Sub-item Accordion --- */
.sub-item-collapse-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* When the parent card is expanded */
.service-sub-item.expanded .sub-item-collapse-content {
    opacity: 1;
    margin-top: 16px;
}

/* Toggle button styling */
.sub-item-toggle-btn {
    background: transparent;
    border: none;
    color: var(--color-primary);
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    margin-top: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: fit-content;
    font-family: var(--font-primary);
}

.sub-item-toggle-btn:hover {
    color: #ffffff;
}

.sub-item-toggle-btn i {
    font-size: 0.8rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-sub-item.expanded .sub-item-toggle-btn i {
    transform: rotate(180deg);
}

/* Highlight the expanded card slightly */
.service-sub-item.expanded {
    border-color: rgba(240, 99, 54, 0.25);
    box-shadow: 0 16px 36px rgba(240, 99, 54, 0.06);
    background: rgba(255, 255, 255, 0.015);
}

/* --- Tá»‘i Æ¯u HÃ³a áº¢nh Ná»n LCP (Hero & Subpage Banner) --- */
.hero-section, .subpage-banner {
    position: relative;
    overflow: hidden;
}

/* áº¢nh ná»n thá»±c táº¿ tá»‘i Æ°u hÃ³a LCP cho trang chá»§ (ngÄƒn kÃ©o giÃ£n vÃ  trÃ n khung) */
.hero-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto; /* Khá»›p vá»›i background-size: 100% auto cá»§a báº£n gá»‘c */
    z-index: -3;
    pointer-events: none;
}

/* áº¢nh ná»n thá»±c táº¿ tá»‘i Æ°u hÃ³a LCP cho cÃ¡c trang con */
.subpage-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Khá»›p vá»›i background-size: cover cá»§a báº£n gá»‘c */
    z-index: -3;
    pointer-events: none;
}

/* Lá»›p phá»§ mÃ u tá»‘i thay tháº¿ cho linear-gradient trong CSS cÅ© */
.hero-overlay, .subpage-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 9, 59, 0.92) 0%, rgba(0, 4, 36, 0.8) 100%);
    z-index: -2; /* Náº±m trÃªn áº£nh ná»n nhÆ°ng dÆ°á»›i cÃ¡c hÃ¬nh trang trÃ­ */
    pointer-events: none;
}

/* CÃ¡c hÃ¬nh váº½ trang trÃ­ má» */
.hero-bg-shapes {
    z-index: -1; /* Náº±m trÃªn lá»›p phá»§ tá»‘i nhÆ°ng dÆ°á»›i ná»™i dung chá»¯ */
}

/* Äáº£m báº£o ná»™i dung chá»¯ luÃ´n ná»•i lÃªn trÃªn cÃ¹ng */
.hero-container, 
.subpage-banner .container {
    position: relative;
    z-index: 2;
}

/* --- Table Styles for Dark Theme --- */
.wp-block-table table, 
table.has-fixed-layout {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.wp-block-table table thead,
.wp-block-table table th,
table thead,
table th {
    background-color: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    font-weight: 600;
}

.wp-block-table table td,
table td {
    border-color: rgba(255, 255, 255, 0.1) !important;
    color: #cbd5e1 !important;
    background-color: transparent !important;
}

.wp-block-table table tbody tr:nth-child(even) td,
table tbody tr:nth-child(even) td {
    background-color: rgba(255, 255, 255, 0.03) !important;
}

/* --- Expand Menu Container --- */
.top-bar-container,
.navbar-container {
    max-width: 1400px !important;
}

.nav-link {
    white-space: nowrap;
}

/* --- Header Search --- */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-search-container {
    position: relative;
}

.search-toggle-btn {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.search-toggle-btn:hover {
    color: var(--color-primary);
}

.search-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 15px;
    width: 300px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-normal);
    z-index: 1000;
}

.search-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.header-search-form {
    display: flex;
    align-items: center;
}

.header-search-form input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 6px 0 0 6px;
    outline: none;
    height: 42px;
}

.header-search-form button {
    background: var(--color-primary);
    color: #ffffff;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.header-search-form button:hover {
    background: #e04819;
}


