/* ==========================================================================
   TROY SIBLEY WEBSITE - NEXT-LEVEL LUXURY DESIGN SYSTEM & STYLES
   ========================================================================== */

/* --- Custom Properties (Color Palette & Variables) --- */
:root {
    /* Color Palette */
    --color-bg-primary: #030712;
    /* Deepest obsidian black */
    --color-bg-secondary: #080f25;
    /* Slate-navy card backgrounds */
    --color-bg-tertiary: #111a36;
    /* Lighter navy for active states */
    --color-bg-glass: rgba(8, 15, 37, 0.7);
    --color-bg-glass-card: rgba(255, 255, 255, 0.02);

    /* Gold Luxury Accents */
    --color-gold-light: #f6e6cd;
    /* Champagne sand */
    --color-gold-primary: #d4af37;
    /* 24k Premium Gold */
    --color-gold-dark: #b89028;
    /* Burnished bronze */
    --color-gold-glow: rgba(212, 175, 55, 0.3);

    /* Primary / Secondary Blue Accents */
    --color-accent-blue: #3b82f6;
    /* Deep electric blue */
    --color-accent-teal: #0ea5e9;
    /* Trust sky/teal */
    --color-blue-glow: rgba(59, 130, 246, 0.15);

    /* Neutral Text */
    --color-text-light: #f8fafc;
    /* Ice white */
    --color-text-muted: #94a3b8;
    /* Slate grey */
    --color-text-dark: #0f172a;
    /* Dark charcoal */

    /* System Feedback */
    --color-error: #ef4444;
    --color-success: #10b981;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Transitions & FX */
    --transition-fast: all 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-medium: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-slow: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);

    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 28px;
    --border-radius-full: 9999px;

    --box-shadow-premium: 0 30px 60px -15px rgba(0, 0, 0, 0.8);
    --box-shadow-gold: 0 15px 35px -10px rgba(212, 175, 55, 0.35);
    --box-shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    --container-max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--color-bg-primary);
    color: var(--color-text-light);
    overflow-x: clip;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: -0.01em;
    overflow-x: clip;
    position: relative;
    /* Contain absolute elements for body overflow-x clip */
    background: radial-gradient(circle at 50% 0%, #0d1530 0%, var(--color-bg-primary) 70%);
}

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

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

/* --- Ambient Glow Blobs in Background --- */
.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(130px);
    z-index: 1;
    pointer-events: none;
    opacity: 0.6;
}

.glow-gold {
    width: 400px;
    height: 400px;
    background-color: var(--color-gold-glow);
    top: 10%;
    right: -10%;
}

.glow-blue {
    width: 500px;
    height: 500px;
    background-color: var(--color-blue-glow);
    top: 40%;
    left: -15%;
}

.glow-teal {
    width: 450px;
    height: 450px;
    background-color: rgba(13, 148, 136, 0.1);
    bottom: 10%;
    right: 5%;
}

/* --- Fine-line Mesh Grid Overlay --- */
.bg-mesh-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    background-position: center top;
    pointer-events: none;
    z-index: 2;
}

/* --- Custom Scroll Progress Bar --- */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent-blue), var(--color-gold-primary), var(--color-accent-teal));
    z-index: 2100;
    transform: scaleX(0);
    transform-origin: 0% 50%;
    animation: scrollProgress auto linear;
    animation-timeline: scroll();
}

@keyframes scrollProgress {
    to {
        transform: scaleX(1);
    }
}

/* --- Utilities --- */
.text-center {
    text-align: center;
}

.text-light {
    color: var(--color-text-light) !important;
}

.text-gold {
    color: var(--color-gold-primary) !important;
}

.highlight-gold {
    background: linear-gradient(135deg, #ffffff 10%, var(--color-gold-light) 50%, var(--color-gold-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    padding-bottom: 0.15em;
    margin-bottom: -0.15em;
    vertical-align: bottom;
}

.w-full {
    width: 100% !important;
}

.mt-4 {
    margin-top: 1.5rem !important;
}

/* --- Badges & Dividers --- */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: var(--border-radius-full);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(212, 175, 55, 0.02));
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--color-gold-primary);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 24px;
    font-family: var(--font-heading);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-gold-primary);
    box-shadow: 0 0 10px var(--color-gold-primary);
}

.badge-accent {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(59, 130, 246, 0.02));
    border-color: rgba(59, 130, 246, 0.25);
    color: #60a5fa;
}

.section-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-gold-primary), transparent);
    margin: 20px 0 30px;
    position: relative;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 4px;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-gold-primary);
    border: 2px solid var(--color-bg-primary);
}

.text-center .section-divider {
    margin: 20px auto 30px;
    background: linear-gradient(90deg, transparent, var(--color-gold-primary), transparent);
}

.text-center .section-divider::before {
    left: 50%;
    transform: translate(-50%, -50%);
}

/* --- Section Headers --- */
.section-header {
    max-width: 800px;
    margin: 0 auto 60px;
    position: relative;
    z-index: 10;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.section-description {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    font-weight: 400;
    max-width: 650px;
    margin: 0 auto;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: var(--transition-medium);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-gold-primary) 0%, var(--color-gold-dark) 100%);
    color: var(--color-bg-primary);
    box-shadow: var(--box-shadow-gold);
    border: none;
}

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

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px var(--color-gold-glow);
    filter: brightness(1.05);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.01);
    color: var(--color-text-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--color-gold-primary);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    transform: translateY(-3px);
    color: var(--color-gold-primary);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.05rem;
}

.text-btn {
    background: none;
    border: none;
    color: var(--color-gold-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
    padding: 4px 0;
    position: relative;
}

.text-btn::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--color-gold-primary);
    transition: var(--transition-fast);
}

.text-btn:hover {
    color: var(--color-gold-light);
    gap: 12px;
}

.text-btn:hover::after {
    width: 100%;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition-medium);
    border-bottom: 1px solid rgba(255, 255, 255, 0.01);
    padding: 30px 0;
}

.main-header.scrolled {
    background-color: rgba(3, 7, 18, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.logo-area {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1200;
}

.logo-title {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--color-text-light);
    background: linear-gradient(135deg, #fff, var(--color-text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-subtitle {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    color: var(--color-gold-primary);
    margin-top: 4px;
}

.nav-menu ul {
    display: flex;
    gap: 28px;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    position: relative;
    padding: 8px 0;
    letter-spacing: 0.02em;
}

.nav-link:hover {
    color: var(--color-text-light);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--color-gold-primary);
    transition: var(--transition-fast);
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 100%;
}

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

.phone-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text-light);
}

.phone-link svg {
    color: var(--color-gold-primary);
    filter: drop-shadow(0 0 5px var(--color-gold-glow));
    transition: var(--transition-fast);
}

.phone-link:hover svg {
    transform: rotate(15deg) scale(1.1);
}

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

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1200;
}

.mobile-nav-toggle .bar {
    width: 100%;
    height: 2.5px;
    background-color: var(--color-text-light);
    border-radius: var(--border-radius-full);
    transition: var(--transition-medium);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    padding: 220px 0 140px;
    background-image:
        linear-gradient(180deg, rgba(3, 7, 18, 0.85) 0%, rgba(8, 15, 37, 0.75) 50%, rgba(3, 7, 18, 0.95) 100%),
        url('assets/office_bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(rgba(255, 255, 255, 0.015) 1.5px, transparent 1.5px);
    background-size: 40px 40px;
    opacity: 0.4;
    pointer-events: none;
    z-index: 3;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 80px;
    align-items: stretch;
}

.hero-content {
    position: relative;
    z-index: 10;
}

/* --- Next-Level Editorial Image Layout --- */
.hero-title {
    font-size: 4.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.25;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-muted);
    margin-bottom: 44px;
    max-width: 600px;
    line-height: 1.7;
}

.hero-cta-group {
    display: flex;
    gap: 20px;
    margin-bottom: 56px;
}

.hero-cta-group .btn-secondary svg {
    transition: var(--transition-fast);
}

.hero-cta-group .btn-secondary:hover svg {
    transform: translateY(3px);
}

.hero-trust-indicators {
    display: flex;
    gap: 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 36px;
    max-width: 580px;
}

.indicator-item {
    display: flex;
    flex-direction: column;
}

.indicator-value {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--color-gold-primary);
    line-height: 1;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.indicator-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    margin-top: 8px;
    font-weight: 600;
}

/* --- Next-Level Editorial Image Layout --- */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: stretch;
    position: relative;
    z-index: 10;
}

.image-frame-wrapper {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 460px;
    display: flex;
    align-items: stretch;
}

.image-frame {
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--box-shadow-premium),
        0 0 80px rgba(212, 175, 55, 0.05);
    background-color: var(--color-bg-secondary);
    width: 100%;
    position: relative;
    z-index: 5;
}

.image-frame::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 70%, rgba(3, 7, 18, 0.5) 100%);
    z-index: 6;
    pointer-events: none;
}

/* Asymmetric background gold frame */
.image-frame-wrapper::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius-lg);
    border: 2px solid var(--color-gold-primary);
    opacity: 0.3;
    pointer-events: none;
    z-index: 3;
    transition: var(--transition-medium);
}

.image-frame-wrapper:hover::before {
    transform: translate(-5px, -5px);
    opacity: 0.6;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: saturate(1.02) contrast(1.02);
    transition: var(--transition-slow);
}

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

/* Floating Info Card */
.experience-card {
    position: absolute;
    bottom: 40px;
    left: -60px;
    background: rgba(8, 15, 37, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: var(--border-radius-md);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--box-shadow-premium),
        0 0 30px rgba(212, 175, 55, 0.1);
    z-index: 10;
    animation: floatAnimation 6s ease-in-out infinite;
}

.exp-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-gold-primary);
    line-height: 1;
}

.exp-text {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-light);
    max-width: 110px;
}

.decorative-blob {
    position: absolute;
    top: -30px;
    right: -30px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background-color: var(--color-gold-glow);
    filter: blur(70px);
    z-index: -1;
}

/* ==========================================================================
   SERVICES SECTION (HOW TROY HELPS)
   ========================================================================== */
.services-section {
    padding: 140px 0;
    background-color: rgba(3, 7, 18, 0.3);
    position: relative;
    z-index: 10;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
}

/* Glassmorphism Luxury Cards */
.service-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.005) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-lg);
    padding: 48px 40px;
    transition: var(--transition-medium);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-shadow: var(--box-shadow-glass);
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius-lg);
    padding: 1.5px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 50%, rgba(212, 175, 55, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transition: var(--transition-medium);
}

.card-icon-container {
    width: 66px;
    height: 66px;
    border-radius: var(--border-radius-md);
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(212, 175, 55, 0.02));
    border: 1px solid rgba(212, 175, 55, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold-primary);
    margin-bottom: 32px;
    transition: var(--transition-medium);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.service-icon {
    width: 30px;
    height: 30px;
}

.service-card-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.service-card-body {
    color: var(--color-text-muted);
    font-size: 0.98rem;
    line-height: 1.7;
    margin-bottom: 30px;
    flex-grow: 1;
}

.service-card-features {
    margin-bottom: 36px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 24px;
}

.service-card-features li {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 12px;
    position: relative;
    padding-left: 24px;
}

.service-card-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-gold-primary);
    font-weight: 900;
}

.service-card:hover {
    transform: translateY(-10px) scale(1.01);
    box-shadow: var(--box-shadow-premium),
        0 20px 40px rgba(212, 175, 55, 0.05);
}

.service-card:hover::before {
    background: linear-gradient(135deg, var(--color-gold-primary), transparent 40%, var(--color-accent-blue));
}

.service-card:hover .card-icon-container {
    background: linear-gradient(135deg, var(--color-gold-primary), var(--color-gold-dark));
    color: var(--color-bg-primary);
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 10px 25px var(--color-gold-glow);
}

/* Highlight Card Style details */
.highlight-card {
    border-color: rgba(212, 175, 55, 0.2);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(212, 175, 55, 0.01) 100%);
}

.card-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: linear-gradient(135deg, var(--color-gold-primary), var(--color-gold-dark));
    color: var(--color-bg-primary);
    padding: 5px 12px;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   PHILOSOPHY SECTION (REDESIGNED: TACTICAL & LITERARY BLEND)
   ========================================================================== */
.philosophy-section {
    padding: 150px 0;
    position: relative;
    background: radial-gradient(circle at 5% 50%, rgba(212, 175, 55, 0.06), transparent 45%),
        radial-gradient(circle at 95% 80%, rgba(59, 130, 246, 0.04), transparent 45%);
    overflow: hidden;
}

.philosophy-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 80px;
    align-items: stretch;
}

.philosophy-body {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    margin-bottom: 32px;
    line-height: 1.8;
}

/* Pillar List (Three Principles) */
.pillar-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.pillar-item {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.005) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 24px;
    border-radius: var(--border-radius-md);
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.pillar-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background-color: var(--color-gold-primary);
    opacity: 0.3;
    transition: var(--transition-medium);
}

.pillar-item:hover {
    border-color: rgba(212, 175, 55, 0.25);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(212, 175, 55, 0.02) 100%);
    transform: translateY(-4px) translateX(2px);
    box-shadow: var(--box-shadow-premium),
        0 15px 30px rgba(212, 175, 55, 0.03);
}

.pillar-item:hover::before {
    opacity: 1;
    background-color: var(--color-gold-primary);
    box-shadow: 0 0 15px var(--color-gold-primary);
}

.pillar-icon-container {
    width: 44px;
    height: 44px;
    border-radius: var(--border-radius-sm);
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gold-primary);
    flex-shrink: 0;
    transition: var(--transition-medium);
}

.pillar-item:hover .pillar-icon-container {
    background-color: var(--color-gold-primary);
    color: var(--color-bg-primary);
    border-color: var(--color-gold-primary);
    box-shadow: 0 0 10px var(--color-gold-glow);
}

.pillar-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--color-text-light);
}

.pillar-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* Stats Horizontal Bar */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 36px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-header {
    display: flex;
    align-items: baseline;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 3.6rem;
    font-weight: 800;
    color: var(--color-gold-primary);
    line-height: 1;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.stat-plus {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-gold-primary);
}

.stat-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text-light);
    margin-top: 8px;
}

.stat-caption {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    margin-top: 4px;
    line-height: 1.4;
}

/* --- Redesigned Tactical Briefing Card --- */
.philosophy-visual {
    display: flex;
    justify-content: center;
    position: sticky;
    top: 120px;
    align-self: start;
    z-index: 10;
}

.tactical-briefing-card {
    background: linear-gradient(135deg, rgba(8, 15, 37, 0.8) 0%, rgba(3, 7, 18, 0.9) 100%);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: var(--border-radius-lg);
    padding: 48px;
    box-shadow: var(--box-shadow-premium),
        0 0 40px rgba(212, 175, 55, 0.05);
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Radar scanning line effect */
.radar-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-gold-primary), transparent);
    opacity: 0.4;
    animation: radarScan 6s linear infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes radarScan {
    0% {
        top: 0%;
    }

    50% {
        top: 100%;
    }

    100% {
        top: 0%;
    }
}

/* Green coordinate grids in background */
.tactical-briefing-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(rgba(212, 175, 55, 0.02) 1.5px, transparent 1.5px);
    background-size: 20px 20px;
    opacity: 0.8;
    pointer-events: none;
    z-index: 1;
}

.tactical-header {
    position: relative;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed rgba(212, 175, 55, 0.3);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.tactical-meta {
    font-family: monospace;
    font-size: 0.72rem;
    color: var(--color-gold-primary);
    letter-spacing: 0.1em;
}

.tactical-status {
    font-family: monospace;
    font-size: 0.72rem;
    color: var(--color-success);
    border: 1px solid var(--color-success);
    padding: 2px 8px;
    border-radius: var(--border-radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.tactical-checklist-container {
    position: relative;
    z-index: 3;
    margin-bottom: 36px;
    flex-grow: 1;
}

.tactical-checklist-title {
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.tactical-checklist {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tactical-checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 0.95rem;
    color: var(--color-text-light);
}

.tactical-check-icon {
    color: var(--color-gold-primary);
    flex-shrink: 0;
    filter: drop-shadow(0 0 5px var(--color-gold-glow));
    margin-top: 4px;
}

.tactical-checklist-item strong {
    color: var(--color-gold-light);
    font-weight: 600;
}

.tactical-quote-wrapper {
    position: relative;
    z-index: 3;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
}

.tactical-quote {
    font-size: 1.35rem;
    font-weight: 700;
    font-style: italic;
    color: var(--color-text-light);
    line-height: 1.55;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.tactical-signature {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sig-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--color-gold-primary);
}

.sig-title {
    font-size: 0.78rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Tactical Radar Visualization Panel */
.tactical-radar-visualization {
    position: relative;
    z-index: 3;
    margin-bottom: 30px;
    padding: 24px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: var(--border-radius-md);
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.vis-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: monospace;
    font-size: 0.7rem;
    color: var(--color-text-muted);
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.vis-title {
    color: var(--color-gold-primary);
    font-weight: 700;
}

.vis-sub {
    font-weight: 700;
    color: var(--color-success);
    opacity: 0.8;
}

.vis-chart-container {
    width: 100%;
    margin: 8px 0;
}

.radar-chart-svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Line animation for gold line */
@keyframes dash {
    to {
        stroke-dashoffset: 0;
    }
}

.chart-line-gold {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawGoldLine 3s ease-out forwards;
}

@keyframes drawGoldLine {
    to {
        stroke-dashoffset: 0;
    }
}

.vis-legend {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    color: var(--color-text-muted);
    margin-top: 12px;
    border-top: 1px dashed rgba(255, 255, 255, 0.06);
    padding-top: 10px;
    flex-wrap: wrap;
    gap: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-body);
}

.legend-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.dot-red {
    background-color: #ef4444;
    box-shadow: 0 0 6px #ef4444;
}

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

/* ==========================================================================
   FAMILY & PERSONAL LIFE SECTION
   ========================================================================== */
.personal-section {
    padding: 140px 0;
    background-color: rgba(3, 7, 18, 0.4);
}

.personal-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 80px;
    align-items: stretch;
}

.personal-content {
    position: relative;
}

.personal-text {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    margin-bottom: 24px;
    line-height: 1.8;
}

.personal-interests {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.interest-tag {
    background-color: var(--color-bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius-md);
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    transition: var(--transition-medium);
}

.interest-tag:hover {
    border-color: rgba(212, 175, 55, 0.2);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transform: translateY(-3px);
}

.interest-icon {
    font-size: 1.35rem;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.1));
}

/* --- Carousel Next-Level Styling --- */
.personal-visual {
    display: flex;
    justify-content: center;
    align-items: stretch;
    position: relative;
}

.carousel-container {
    width: 100%;
    max-width: 460px;
    position: relative;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--box-shadow-premium);
    height: 100%;
}

.carousel-container::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 100%;
    height: 100%;
    border-radius: var(--border-radius-lg);
    border: 1.5px solid var(--color-gold-primary);
    opacity: 0.2;
    z-index: 1;
    pointer-events: none;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), visibility 1s ease-in-out;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
}

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

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(3, 7, 18, 0.95) 0%, rgba(3, 7, 18, 0.4) 60%, transparent 100%);
    padding: 40px 24px 28px;
    color: var(--color-text-light);
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    z-index: 10;
    letter-spacing: 0.02em;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 15;
}

.carousel-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(3, 7, 18, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-text-light);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    pointer-events: auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.carousel-btn:hover {
    background-color: var(--color-gold-primary);
    color: var(--color-bg-primary);
    border-color: var(--color-gold-primary);
    box-shadow: 0 0 15px var(--color-gold-glow);
    transform: scale(1.05);
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20;
}

.carousel-indicators .indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    transition: var(--transition-medium);
}

.carousel-indicators .indicator.active {
    background-color: var(--color-gold-primary);
    width: 24px;
    border-radius: var(--border-radius-full);
}

/* ==========================================================================
   DEEP DIVE & CREDENTIALS (REDESIGNED: INTERACTIVE TIMELINE JOURNEY)
   ========================================================================== */
.credentials-section {
    padding: 160px 0;
    position: relative;
    background: radial-gradient(circle at 95% 70%, rgba(59, 130, 246, 0.05), transparent 45%),
        radial-gradient(circle at 10% 20%, rgba(212, 175, 55, 0.04), transparent 45%);
}

.credentials-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 80px;
    align-items: stretch;
}

.credentials-visual {
    display: flex;
    justify-content: center;
    position: sticky;
    top: 120px;
    align-self: start;
    z-index: 10;
}

/* Timeline Journey Structure */
.timeline-journey {
    position: relative;
    padding-left: 32px;
    margin: 40px 0;
}

/* Vertical line */
.timeline-journey::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 7px;
    width: 2px;
    height: calc(100% - 20px);
    background: linear-gradient(180deg,
            var(--color-accent-blue) 0%,
            var(--color-gold-primary) 50%,
            var(--color-gold-dark) 100%);
    opacity: 0.3;
}

.timeline-node {
    position: relative;
    margin-bottom: 40px;
    transition: var(--transition-medium);
}

.timeline-node:last-child {
    margin-bottom: 0;
}

/* Timeline dot */
.timeline-dot {
    position: absolute;
    left: -32px;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--color-bg-primary);
    border: 3px solid var(--color-accent-blue);
    z-index: 10;
    transition: var(--transition-medium);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.timeline-node:nth-child(2) .timeline-dot {
    border-color: var(--color-gold-primary);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

.timeline-node:nth-child(3) .timeline-dot {
    border-color: var(--color-gold-primary);
}

.timeline-node:nth-child(4) .timeline-dot {
    border-color: var(--color-gold-dark);
}

.timeline-node:hover .timeline-dot {
    transform: scale(1.3);
    background-color: var(--color-gold-light);
    box-shadow: 0 0 15px var(--color-gold-primary);
}

.timeline-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.005) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-md);
    padding: 24px;
    transition: var(--transition-medium);
}

.timeline-node:hover .timeline-card {
    border-color: rgba(212, 175, 55, 0.2);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(212, 175, 55, 0.01) 100%);
    transform: translateX(6px);
    box-shadow: var(--box-shadow-premium),
        0 10px 25px rgba(0, 0, 0, 0.2);
}

.timeline-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.timeline-year {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 800;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--color-gold-light);
    padding: 3px 10px;
    border-radius: var(--border-radius-sm);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.timeline-node:nth-child(1) .timeline-year {
    color: #60a5fa;
    border-color: rgba(96, 165, 250, 0.25);
    background-color: rgba(30, 58, 138, 0.2);
}

.timeline-company {
    font-family: monospace;
    font-size: 0.72rem;
    color: var(--color-gold-primary);
    letter-spacing: 0.08em;
}

.timeline-role {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text-light);
}

.timeline-desc {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* Secondary Frame / Credentials visual column layout */
.secondary-frame {
    max-width: 520px;
    height: 580px;
    width: 100%;
}

.secondary-frame .image-frame {
    border-color: rgba(255, 255, 255, 0.08);
}

.secondary-frame::before {
    border-color: var(--color-accent-blue);
}

/* Airforce Pilot Badge Overlay */
.badge-airforce {
    position: absolute;
    top: 30px;
    left: -40px;
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
    border: 1px solid rgba(96, 165, 250, 0.35);
    color: var(--color-text-light);
    border-radius: var(--border-radius-md);
    padding: 12px 22px;
    display: flex;
    flex-direction: column;
    z-index: 10;
    box-shadow: var(--box-shadow-premium);
    animation: floatAnimation 8s ease-in-out infinite;
}

.badge-airforce-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    color: #60a5fa;
    text-shadow: 0 0 10px rgba(96, 165, 250, 0.3);
}

.badge-airforce-subtitle {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
    margin-top: 4px;
    font-weight: 600;
}

/* Float Card Strategy Box */
.tactical-cta-card {
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 320px;
    background: rgba(8, 15, 37, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: var(--border-radius-md);
    padding: 24px;
    box-shadow: var(--box-shadow-premium),
        0 0 40px rgba(212, 175, 55, 0.1);
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tactical-cta-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--color-gold-primary);
    letter-spacing: 0.02em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 8px;
    margin-bottom: 4px;
}

.tactical-cta-desc {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* Credentials Image Styling */
.credentials-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: saturate(1.02) contrast(1.02);
    transition: var(--transition-slow);
}

.image-frame:hover .credentials-img {
    transform: scale(1.05);
}

.milestone {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}

.milestone:last-child {
    margin-bottom: 0;
}

.milestone-year {
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 800;
    background-color: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: var(--color-gold-primary);
    padding: 3px 8px;
    border-radius: var(--border-radius-sm);
    text-transform: uppercase;
}

.milestone-desc {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    line-height: 1.4;
    font-weight: 500;
}

/* --- Industry Partners Logobar --- */
.partners-section {
    margin-top: 120px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 50px;
    text-align: center;
}

.partners-title {
    font-size: 0.88rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-text-muted);
    margin-bottom: 36px;
    font-weight: 600;
}

.partners-logos {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.partner-logo {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.2);
    transition: var(--transition-fast);
    padding: 10px 24px;
    cursor: default;
}

.partner-logo:hover {
    color: var(--color-gold-primary);
    text-shadow: 0 0 20px var(--color-gold-glow);
}

/* ==========================================================================
   TESTIMONIALS SECTION
   ========================================================================== */
.testimonials-section {
    padding: 140px 0;
    background-color: rgba(3, 7, 18, 0.5);
    position: relative;
}

.testimonial-container {
    max-width: 850px;
    margin: 0 auto;
}

.testimonial-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.005));
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: var(--border-radius-lg);
    padding: 70px 60px;
    text-align: center;
    position: relative;
    box-shadow: var(--box-shadow-premium),
        0 0 50px rgba(212, 175, 55, 0.03);
}

.testimonial-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius-lg);
    padding: 1px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), transparent 70%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.quote-icon {
    font-size: 6rem;
    line-height: 1;
    font-family: var(--font-heading);
    color: var(--color-gold-primary);
    opacity: 0.15;
    position: absolute;
    top: 20px;
    left: 50px;
}

.testimonial-quote {
    font-size: 1.45rem;
    line-height: 1.85;
    color: var(--color-text-light);
    font-style: italic;
    margin-bottom: 36px;
    position: relative;
    z-index: 1;
    letter-spacing: -0.01em;
}

.testimonial-rating {
    font-size: 1.35rem;
    color: var(--color-gold-primary);
    margin-bottom: 28px;
    letter-spacing: 2px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
}

.author-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(212, 175, 55, 0.02));
    border: 1px solid rgba(212, 175, 55, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.avatar-letter {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.35rem;
    color: var(--color-gold-primary);
}

.author-info {
    text-align: left;
}

.author-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--color-text-light);
}

.author-title {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* ==========================================================================
   ADVISOR NETWORK BANNER
   ========================================================================== */
.advisor-banner-section {
    padding: 60px 0;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.advisor-banner-card {
    background: linear-gradient(135deg, rgba(8, 15, 37, 0.9) 0%, rgba(3, 7, 18, 0.95) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--border-radius-lg);
    padding: 40px 50px;
    display: grid;
    grid-template-columns: 2fr auto 1fr;
    align-items: center;
    gap: 40px;
    box-shadow: var(--box-shadow-premium), 0 0 30px rgba(212, 175, 55, 0.05);
    transition: var(--transition-medium);
}

.advisor-banner-card:hover {
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: var(--box-shadow-premium), 0 0 40px rgba(212, 175, 55, 0.15);
    transform: translateY(-2px);
}

.advisor-banner-content {
    display: flex;
    gap: 24px;
    align-items: center;
    min-width: 0;
}

.advisor-icon-box {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.2);
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.1));
    transition: var(--transition-medium);
}

.advisor-banner-card:hover .advisor-icon-box {
    border-color: var(--color-gold-primary);
    background: rgba(212, 175, 55, 0.1);
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px rgba(212, 175, 55, 0.25));
}

.advisor-icon {
    width: 100%;
    height: 100%;
}

.advisor-text-box {
    flex-grow: 1;
    min-width: 0;
}

.advisor-heading {
    font-family: var(--font-heading);
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--color-text-light);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
    line-height: 1.3;
    text-transform: none !important;
}

.advisor-description {
    font-family: var(--font-body);
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--color-text-muted);
}

.advisor-divider {
    width: 1px;
    align-self: stretch;
    background: linear-gradient(180deg, transparent, rgba(212, 175, 55, 0.25), transparent);
}

.advisor-logo-box {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
}

.allied-logo-img {
    max-height: 110px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(212, 175, 55, 0.15));
    transition: var(--transition-medium);
}

.advisor-banner-card:hover .allied-logo-img {
    transform: scale(1.03);
    filter: drop-shadow(0 0 18px rgba(212, 175, 55, 0.3));
}

/* Responsive styles for advisor banner */
@media (max-width: 1100px) {
    .advisor-banner-card {
        grid-template-columns: 1fr;
        padding: 35px 30px;
        gap: 30px;
    }

    .advisor-banner-content {
        flex-direction: column;
        text-align: center;
    }

    .advisor-icon-box {
        width: 70px;
        height: 70px;
    }

    .advisor-divider {
        width: 100%;
        height: 1px;
        align-self: auto;
        background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.25), transparent);
    }

    .advisor-logo-box {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .advisor-banner-card {
        padding: 25px 20px;
        gap: 20px;
    }

    .allied-logo-img {
        max-height: 80px;
    }
}

/* ==========================================================================
   FOOTER SECTION
   ========================================================================== */
.main-footer {
    background-color: var(--color-bg-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 100px 0 30px;
    position: relative;
    z-index: 10;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 1fr;
    gap: 80px;
    margin-bottom: 80px;
}

.footer-desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 24px 0 28px;
    max-width: 340px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--color-text-muted);
    transition: var(--transition-fast);
}

.social-links a:hover {
    background-color: var(--color-gold-primary);
    color: var(--color-bg-primary);
    border-color: var(--color-gold-primary);
    box-shadow: 0 0 15px var(--color-gold-glow);
    transform: translateY(-3px) scale(1.05);
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 28px;
    position: relative;
    padding-bottom: 10px;
    letter-spacing: 0.02em;
}

.footer-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 2px;
    background-color: var(--color-gold-primary);
}

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

.footer-links ul li a {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.footer-links ul li a:hover {
    color: var(--color-gold-primary);
    padding-left: 6px;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.contact-icon {
    color: var(--color-gold-primary);
    margin-top: 4px;
    flex-shrink: 0;
}

.contact-list a:hover {
    color: var(--color-gold-primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 40px;
}

.footer-bottom-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.copyright {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-align: center;
}

.compliance-disclaimer {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.25);
    line-height: 1.7;
    text-align: justify;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 24px;
}

/* ==========================================================================
   CONSULTATION BOOKING MODAL
   ========================================================================== */
.booking-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(3, 7, 18, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 20px;
}

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

.booking-modal-content {
    background-color: var(--color-bg-secondary);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: var(--border-radius-lg);
    width: 100%;
    max-width: 620px;
    padding: 56px;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.9),
        0 0 50px rgba(212, 175, 55, 0.05);
    position: relative;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh;
    overflow-y: auto;
}

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

.booking-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 2.2rem;
    cursor: pointer;
    transition: var(--transition-fast);
    line-height: 1;
}

.booking-modal-close:hover {
    color: var(--color-text-light);
    transform: scale(1.1);
}

.modal-header {
    margin-bottom: 36px;
}

.modal-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-text-light);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.modal-subtitle {
    font-size: 1rem;
    color: var(--color-text-muted);
}

/* Form inputs styling */
.booking-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.booking-form label {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-text-light);
    letter-spacing: 0.02em;
}

.booking-form input[type="text"],
.booking-form input[type="email"],
.booking-form input[type="tel"],
.booking-form select,
.booking-form textarea {
    background-color: var(--color-bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-sm);
    padding: 14px 18px;
    color: var(--color-text-light);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition-fast);
    width: 100%;
}

.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
    outline: none;
    border-color: var(--color-gold-primary);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.booking-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23d4af37'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 16px;
    padding-right: 48px;
}

.booking-form textarea {
    resize: none;
}

.checkbox-group {
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
}

.booking-form input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-gold-primary);
    margin-top: 3px;
    flex-shrink: 0;
}

.checkbox-label {
    font-family: var(--font-body) !important;
    font-size: 0.85rem !important;
    color: var(--color-text-muted) !important;
    font-weight: 400 !important;
    line-height: 1.5;
}

/* Success Overlay */
.modal-success-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg-secondary);
    padding: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    z-index: 10;
}

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

.success-icon-container {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: var(--color-success);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.15);
}

.success-icon {
    width: 40px;
    height: 40px;
}

.success-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.success-body {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 460px;
}

/* ==========================================================================
   ANIMATIONS & TRANSITIONS
   ========================================================================== */
@keyframes floatAnimation {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-12px);
    }

    100% {
        transform: translateY(0px);
    }
}

.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-200 {
    animation-delay: 0.25s;
}

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

.scroll-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVENESS
   ========================================================================== */
@media (max-width: 1200px) {
    .nav-menu ul {
        gap: 18px;
    }

    .header-actions {
        gap: 16px;
    }

    .logo-title {
        font-size: 1.4rem;
    }
}

@media (max-width: 1024px) {

    /* Prevent grid columns from expanding beyond viewport due to min-content sizing */
    .hero-content,
    .hero-visual,
    .philosophy-content,
    .philosophy-visual,
    .personal-content,
    .personal-visual,
    .credentials-content,
    .credentials-visual {
        min-width: 0;
    }

    .main-header {
        padding: 20px 0;
    }

    .main-header.scrolled {
        padding: 14px 0;
    }

    .nav-menu {
        display: none;
    }

    .mobile-nav-toggle {
        display: flex;
    }

    .header-actions .btn {
        display: none;
        /* Hide top CTA on tablet/small screens */
    }

    .hero-container {
        grid-template-columns: minmax(0, 1fr);
        gap: 60px;
        align-items: center;
    }

    .hero-visual {
        align-items: center;
    }

    .image-frame-wrapper {
        height: 480px;
        width: 440px;
        max-width: 100%;
    }

    .image-frame {
        height: 100%;
    }

    .philosophy-container {
        grid-template-columns: minmax(0, 1fr);
        gap: 60px;
        align-items: center;
    }

    .philosophy-visual {
        position: relative;
        top: 0;
        align-self: center;
        align-items: center;
    }

    .glass-philosophy-card {
        height: auto;
        width: 100%;
        max-width: 550px;
    }

    .personal-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 60px;
        align-items: center;
    }

    .personal-visual {
        position: relative;
        top: 0;
        align-self: center;
        align-items: center;
        height: auto;
    }

    .carousel-container {
        height: 480px;
        width: 440px;
        max-width: 100%;
    }

    .credentials-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 60px;
        align-items: center;
    }

    .credentials-visual {
        position: relative;
        top: 0;
        align-self: center;
        align-items: center;
    }

    .secondary-frame {
        height: 480px;
        max-width: 440px;
    }

    .badge-airforce {
        left: -20px;
        top: 20px;
    }

    .tactical-cta-card {
        right: -20px;
        bottom: -20px;
        width: 280px;
        padding: 18px;
    }

    .hero-content,
    .philosophy-content,
    .personal-content,
    .credentials-content {
        order: 1;
        text-align: center;
    }

    /* Global Centering for Stacked Tablet Layout */
    .section-title {
        text-align: center;
        font-size: 2.2rem;
    }

    .section-divider {
        margin: 20px auto 30px;
        background: linear-gradient(90deg, transparent, var(--color-gold-primary), transparent);
    }

    .section-divider::before {
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .badge {
        display: flex;
        margin: 0 auto 24px;
        width: fit-content;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .hero-trust-indicators {
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
    }

    .hero-visual,
    .philosophy-visual,
    .personal-visual,
    .credentials-visual {
        order: 2;
        margin-top: 20px;
    }

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

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

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

    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {

    /* Header & Logo Mobile scaling */
    .logo-title {
        font-size: 1.2rem;
    }

    .logo-subtitle {
        font-size: 0.5rem;
        letter-spacing: 0.15em;
    }

    .header-container {
        padding: 0 16px;
    }

    /* Global Mobile Centering and Alignment */
    .section-title {
        text-align: center;
        font-size: 1.8rem;
    }

    .section-divider {
        margin: 20px auto 30px;
        background: linear-gradient(90deg, transparent, var(--color-gold-primary), transparent);
    }

    .section-divider::before {
        left: 50%;
        transform: translate(-50%, -50%);
    }

    .badge {
        display: inline-flex;
        flex-wrap: wrap;
        justify-content: center;
        margin: 0 auto 24px;
        width: fit-content;
        max-width: 100%;
        font-size: 0.7rem;
        padding: 6px 14px;
        letter-spacing: 0.04em;
        text-align: center;
    }

    /* Global Mobile Button Sizing & Wrap Protection */
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
        white-space: normal;
        text-align: center;
    }

    .btn-large {
        padding: 14px 28px;
        font-size: 0.95rem;
    }

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

    .hero-title {
        font-size: clamp(2rem, 8vw, 2.8rem);
        line-height: 1.2;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta-group {
        flex-direction: column;
        gap: 12px;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .hero-cta-group .btn {
        width: 100%;
        max-width: 320px;
    }

    .hero-trust-indicators {
        flex-wrap: wrap;
        gap: 20px;
        justify-content: center;
        max-width: 100%;
        padding-top: 28px;
        margin-top: 10px;
        width: 100%;
    }

    .indicator-item {
        align-items: center;
        text-align: center;
        flex: 1 1 120px;
        max-width: 150px;
    }

    .indicator-value {
        font-size: 1.8rem;
    }

    .indicator-label {
        font-size: 0.7rem;
        margin-top: 4px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Philosophy mobile improvements */
    .philosophy-content {
        text-align: center;
    }

    .pillar-list {
        align-items: center;
    }

    .pillar-item {
        text-align: left;
        max-width: 500px;
        margin: 0 auto;
    }

    .stats-strip {
        grid-template-columns: 1fr;
        gap: 30px;
        justify-items: center;
        text-align: center;
    }

    .stat-header {
        justify-content: center;
    }

    /* Personal mobile improvements */
    .personal-content {
        text-align: center;
    }

    .personal-interests {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 12px;
    }

    .interest-tag {
        width: 100%;
        max-width: 340px;
        justify-content: center;
    }

    /* Credentials mobile improvements */
    .credentials-content {
        text-align: center;
    }

    .timeline-journey {
        padding-left: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .timeline-journey::before {
        display: none;
        /* Hide timeline line on mobile to center milestones */
    }

    .timeline-node {
        width: 100%;
        max-width: 440px;
        margin-bottom: 30px;
    }

    .timeline-dot {
        display: none;
        /* Hide timeline dots on mobile */
    }

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

    .timeline-meta {
        justify-content: center;
        gap: 12px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .experience-card {
        left: 0;
        bottom: -20px;
    }

    .achievements-card {
        right: 0;
        bottom: -30px;
        width: 100%;
        position: relative;
        margin-top: 40px;
    }

    .image-frame {
        width: 100%;
        max-width: 340px;
    }

    .carousel-container {
        width: 100%;
        max-width: 340px;
    }

    .secondary-frame {
        display: flex;
        flex-direction: column;
        height: auto;
        width: 100%;
        max-width: 340px;
        align-items: center;
    }

    .secondary-frame::before {
        display: none;
        /* Hide decorative background gold border on mobile */
    }

    .secondary-frame .image-frame {
        height: 340px;
        /* Explicit height for image frame to prevent collapse */
        width: 100%;
    }

    .badge-airforce {
        position: absolute;
        left: 10px;
        top: 10px;
        padding: 8px 16px;
    }

    .badge-airforce-title {
        font-size: 0.8rem;
    }

    .tactical-cta-card {
        position: relative;
        right: 0;
        bottom: 0;
        width: 100%;
        max-width: 340px;
        margin-top: 24px;
        box-shadow: none;
    }

    .testimonial-card {
        padding: 40px 24px;
    }

    .testimonial-quote {
        font-size: 1.2rem;
    }

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

    .footer-brand {
        grid-column: span 1;
    }

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

    .booking-modal-content {
        padding: 40px 24px;
    }
}

/* --- Mobile Navigation slideout drawer --- */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(3, 7, 18, 0.96);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    display: flex;
    justify-content: flex-end;
    overflow: hidden;
    /* Prevent horizontal scroll from translated drawer */
}

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

.mobile-nav-content {
    background-color: var(--color-bg-secondary);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    width: 80%;
    max-width: 320px;
    height: 100%;
    padding: 50px 32px;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.mobile-nav-overlay.active .mobile-nav-content {
    transform: translateX(0);
}

.mobile-nav-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: var(--color-text-muted);
    font-size: 2.2rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.mobile-nav-close:hover {
    color: var(--color-text-light);
}

.mobile-logo {
    margin-bottom: 48px;
}

.mobile-menu ul {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-bottom: 48px;
}

.mobile-nav-link {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-muted);
}

.mobile-nav-link:hover {
    color: var(--color-gold-primary);
}

.mobile-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ==========================================================================
   BLOG / INSIGHTS SECTION & WORDPRESS FEED INTEGRATION
   ========================================================================== */
.blog-section {
    padding: 140px 0;
    background-color: rgba(3, 7, 18, 0.5);
    position: relative;
    z-index: 10;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    margin-top: 50px;
}

/* Luxury Blog Cards */
.blog-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.005) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    transition: var(--transition-medium);
    display: flex;
    flex-direction: column;
    box-shadow: var(--box-shadow-glass);
    cursor: pointer;
    position: relative;
}

.blog-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius-lg);
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 50%, rgba(212, 175, 55, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 2;
}

.blog-card:hover {
    transform: translateY(-8px);
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.05), var(--box-shadow-premium);
}

.blog-card-img-container {
    height: 220px;
    position: relative;
    overflow: hidden;
    background-color: var(--color-bg-secondary);
}

.blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

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

.blog-card-content {
    padding: 32px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--color-gold-primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.blog-card-meta .meta-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: var(--color-text-muted);
    opacity: 0.5;
}

.blog-card-meta .meta-date {
    color: var(--color-text-muted);
    font-weight: 500;
}

.blog-card-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--color-text-light);
    line-height: 1.3;
    margin-bottom: 14px;
    transition: var(--transition-fast);
}

.blog-card:hover .blog-card-title {
    color: var(--color-gold-primary);
}

.blog-card-desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card-link {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--color-gold-primary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
}

.blog-card:hover .blog-card-link {
    color: var(--color-gold-light);
    gap: 10px;
}

/* Loading Skeletons */
.blog-card-skeleton {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    height: 450px;
    display: flex;
    flex-direction: column;
}

.skeleton-img {
    height: 220px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.01) 25%, rgba(255, 255, 255, 0.03) 50%, rgba(255, 255, 255, 0.01) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
}

.skeleton-content {
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex-grow: 1;
}

.skeleton-meta {
    width: 40%;
    height: 14px;
    border-radius: 4px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.01) 25%, rgba(255, 255, 255, 0.03) 50%, rgba(255, 255, 255, 0.01) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
}

.skeleton-title {
    width: 85%;
    height: 24px;
    border-radius: 4px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.01) 25%, rgba(255, 255, 255, 0.03) 50%, rgba(255, 255, 255, 0.01) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
}

.skeleton-desc {
    width: 100%;
    height: 60px;
    border-radius: 4px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.01) 25%, rgba(255, 255, 255, 0.03) 50%, rgba(255, 255, 255, 0.01) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
}

.skeleton-btn {
    width: 30%;
    height: 18px;
    margin-top: auto;
    border-radius: 4px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.01) 25%, rgba(255, 255, 255, 0.03) 50%, rgba(255, 255, 255, 0.01) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
}

@keyframes skeleton-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Connection status highlights */
.connection-status-msg {
    padding: 10px 14px;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
}

.connection-status-msg.status-success {
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--color-success);
}

.connection-status-msg.status-error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--color-error);
}

.connection-status-msg.status-loading {
    background-color: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

/* WordPress content styling overrides inside the Reader Modal */
.blog-content-container p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.blog-content-container h2,
.blog-content-container h3,
.blog-content-container h4 {
    font-family: var(--font-heading);
    color: var(--color-text-light);
    margin-top: 36px;
    margin-bottom: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.blog-content-container h2 {
    font-size: 1.6rem;
    border-left: 3px solid var(--color-gold-primary);
    padding-left: 14px;
}

.blog-content-container h3 {
    font-size: 1.35rem;
}

.blog-content-container img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius-md);
    margin: 28px 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.blog-content-container a {
    color: var(--color-gold-primary);
    text-decoration: underline;
    font-weight: 600;
}

.blog-content-container a:hover {
    color: var(--color-gold-light);
}

.blog-content-container blockquote {
    background-color: rgba(255, 255, 255, 0.02);
    border-left: 4px solid var(--color-gold-primary);
    padding: 24px 30px;
    margin: 30px 0;
    font-style: italic;
    border-radius: 0 var(--border-radius-md) var(--border-radius-md) 0;
    color: var(--color-text-light);
}

.blog-content-container blockquote p {
    margin-bottom: 0;
}

.blog-content-container ul,
.blog-content-container ol {
    margin: 20px 0 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.blog-content-container ul {
    list-style-type: square;
}

.blog-content-container ol {
    list-style-type: decimal;
}

.blog-content-container li {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--color-text-muted);
}

.blog-content-container li strong {
    color: var(--color-text-light);
}

/* responsive grid overrides */
@media (max-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .blog-reader-hero {
        height: 220px !important;
        padding: 20px !important;
    }

    .blog-reader-title {
        font-size: 1.6rem !important;
    }

    .blog-reader-body {
        padding: 24px !important;
        max-height: calc(90vh - 220px) !important;
    }
}

/* Extra Small Mobile Devices (e.g. iPhone SE, width <= 480px) */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .badge {
        font-size: 0.65rem;
        padding: 5px 12px;
        letter-spacing: 0.02em;
    }

    .indicator-value {
        font-size: 1.5rem;
    }

    .logo-title {
        font-size: 1.1rem;
    }

    .logo-subtitle {
        font-size: 0.45rem;
        letter-spacing: 0.12em;
    }
}