/* === PORTFOLIO STYLES === */
/* Complete CSS for Joseph Pointer Portfolio */

/* === ADMIN PANEL STYLES === */
#admin-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
    backdrop-filter: blur(4px);
}

#admin-overlay.visible {
    display: block;
}

.admin-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: #1a1d2e;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0;
    width: 90%;
    max-width: 500px;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

[data-template="executive"] .admin-panel {
    background: #f8f6f3;
}

[data-template="minimal"] .admin-panel {
    background: #ffffff;
}

.admin-panel.open {
    opacity: 1;
    pointer-events: all;
    transform: translate(-50%, -50%) scale(1);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.close-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s;
}

.close-btn:hover {
    color: var(--primary);
}

.admin-content {
    padding: 25px;
}

.admin-section {
    margin-bottom: 25px;
}

.admin-section label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.template-buttons {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.template-btn {
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.template-btn:hover {
    border-color: var(--primary);
    background: rgba(59, 130, 246, 0.1);
}

.template-btn.active {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

.admin-section input[type="text"] {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: border-color 0.3s;
}

.admin-section input[type="text"]:focus {
    outline: none;
    border-color: var(--primary);
}

.generate-btn {
    width: 100%;
    padding: 12px;
    background: var(--accent);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s;
    margin-bottom: 10px;
}

.generate-btn:hover {
    opacity: 0.9;
}

#url-output {
    font-family: 'Space Mono', monospace;
    font-size: 0.85rem;
    cursor: text;
}

/* === TEMPLATE-AGNOSTIC VARIABLES === */
:root {
    --primary: #3b82f6; 
    --secondary: #1d4ed8;
    --accent: #10b981;
    --bg: #03050a;
    --panel-bg: rgba(255, 255, 255, 0.03);
    --grid-color: rgba(255, 255, 255, 0.05);
    --text-primary: #fff;
    --text-secondary: rgba(255, 255, 255, 0.85);
    --font-serif: 'Playfair Display';
    --template: blueprint;
}

/* === TEMPLATE: EXECUTIVE REFINED === */
[data-template="executive"] {
    --primary: #2c5282;
    --secondary: #1a365d;
    --accent: #c05621;
    --bg: #fdfcfb;
    --panel-bg: #ffffff;
    --grid-color: transparent;
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --font-serif: 'Georgia';
}

[data-template="executive"] .header {
    background: linear-gradient(135deg, #fdfcfb 0%, #f7f5f3 100%);
    border-bottom: 2px solid #e2ddd8;
}

[data-template="executive"] .sidebar {
    background: #fdfcfb;
    border-right: 2px solid #e2ddd8;
}

[data-template="executive"] .viewport {
    background: #f7f5f3;
}

[data-template="executive"] .content-pane {
    background: #ffffff;
    border: 1px solid #e2ddd8;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

[data-template="executive"] .nav-node {
    background: #ffffff;
    border: 1px solid #e2ddd8;
    transition: all 0.3s ease;
}

[data-template="executive"] .nav-node:hover {
    border-color: var(--primary);
    box-shadow: 0 2px 6px rgba(44, 82, 130, 0.15);
    transform: translateX(4px);
}

[data-template="executive"] .nav-node.active {
    background: linear-gradient(90deg, rgba(44, 82, 130, 0.08), transparent);
    border-left: 4px solid var(--primary);
    border-color: var(--primary);
}

[data-template="executive"] h2 {
    font-family: 'Georgia', serif;
    font-style: normal;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--primary);
}

[data-template="executive"] .mono {
    color: var(--accent);
    font-weight: 600;
}

[data-template="executive"] .case-section {
    background: #fdfcfb;
    border-left: 4px solid var(--primary);
}

[data-template="executive"] .philosophy-box {
    background: rgba(192, 86, 33, 0.06);
    border: 2px solid var(--accent);
}

[data-template="executive"] .next-btn {
    background: var(--primary);
    box-shadow: 0 4px 12px rgba(44, 82, 130, 0.25);
}

[data-template="executive"] .next-btn:hover {
    background: var(--secondary);
    box-shadow: 0 6px 20px rgba(44, 82, 130, 0.35);
}

/* === TEMPLATE: EXECUTIVE DARK === */
[data-template="executive-dark"] {
    --primary: #e8b86d;
    --secondary: #d4a253;
    --accent: #8b7355;
    --bg: #1a1d29;
    --panel-bg: rgba(30, 33, 45, 0.95);
    --grid-color: transparent;
    --text-primary: #f5f3ef;
    --text-secondary: #c9c5bc;
    --font-serif: 'Georgia';
}

[data-template="executive-dark"] .header {
    background: linear-gradient(135deg, #1a1d29 0%, #1e2130 100%);
    border-bottom: 1px solid rgba(232, 184, 109, 0.2);
}

[data-template="executive-dark"] .sidebar {
    background: #1a1d29;
    border-right: 1px solid rgba(232, 184, 109, 0.2);
}

[data-template="executive-dark"] .viewport {
    background: #1e2130;
}

[data-template="executive-dark"] .content-pane {
    background: rgba(30, 33, 45, 0.95);
    border: 1px solid rgba(232, 184, 109, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

[data-template="executive-dark"] .nav-node {
    background: rgba(30, 33, 45, 0.6);
    border: 1px solid rgba(232, 184, 109, 0.15);
    transition: all 0.3s ease;
}

[data-template="executive-dark"] .nav-node:hover {
    border-color: var(--primary);
    background: rgba(232, 184, 109, 0.08);
    box-shadow: 0 4px 16px rgba(232, 184, 109, 0.15);
    transform: translateX(4px);
}

[data-template="executive-dark"] .nav-node.active {
    background: linear-gradient(90deg, rgba(232, 184, 109, 0.15), transparent);
    border-left: 4px solid var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(232, 184, 109, 0.1);
}

[data-template="executive-dark"] h2 {
    font-family: 'Georgia', serif;
    font-style: italic;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--primary);
}

[data-template="executive-dark"] .mono {
    color: var(--primary);
    font-weight: 600;
}

[data-template="executive-dark"] .case-section {
    background: rgba(30, 33, 45, 0.4);
    border-left: 3px solid var(--primary);
}

[data-template="executive-dark"] .philosophy-box {
    background: rgba(139, 115, 85, 0.15);
    border: 1px solid var(--accent);
}

[data-template="executive-dark"] .next-btn {
    background: var(--primary);
    color: #1a1d29;
    box-shadow: 0 4px 16px rgba(232, 184, 109, 0.3);
    font-weight: 700;
}

[data-template="executive-dark"] .next-btn:hover {
    background: var(--secondary);
    box-shadow: 0 6px 24px rgba(232, 184, 109, 0.4);
}

[data-template="executive-dark"] .admin-panel {
    background: #1e2130;
    border: 1px solid rgba(232, 184, 109, 0.3);
}

[data-template="executive-dark"] a[href*=".pdf"][style*="background: var(--primary)"] {
    color: #1a1d29 !important;
    font-weight: 700;
}

[data-template="executive-dark"] .principle-title {
    color: var(--primary);
}

[data-template="executive-dark"] h3 {
    color: var(--primary);
}

[data-template="executive-dark"] .expand-btn {
    background: rgba(139, 115, 85, 0.2);
    border: 1px solid var(--accent);
    color: var(--accent);
}

[data-template="executive-dark"] .expand-btn:hover {
    background: rgba(139, 115, 85, 0.3);
}

/* === TEMPLATE: MODERN PROFESSIONAL === */
[data-template="minimal"] {
    --primary: #0f172a;
    --secondary: #1e293b;
    --accent: #0ea5e9;
    --bg: #ffffff;
    --panel-bg: #f8fafc;
    --grid-color: transparent;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --font-serif: 'Inter';
}

[data-template="minimal"] .header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

[data-template="minimal"] .sidebar {
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
}

[data-template="minimal"] .viewport {
    background: #ffffff;
}

[data-template="minimal"] .content-pane {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

[data-template="minimal"] .nav-node {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s ease;
}

[data-template="minimal"] .nav-node:hover {
    border-color: var(--accent);
    background: rgba(14, 165, 233, 0.04);
}

[data-template="minimal"] .nav-node.active {
    background: rgba(14, 165, 233, 0.08);
    border-color: var(--accent);
    border-left: 3px solid var(--accent);
}

[data-template="minimal"] h2 {
    font-family: 'Inter', sans-serif;
    font-style: normal;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--primary);
}

[data-template="minimal"] .mono {
    color: var(--accent);
    font-family: 'Space Mono', monospace;
}

[data-template="minimal"] .case-section {
    background: #f8fafc;
    border-left: 3px solid var(--accent);
}

[data-template="minimal"] .philosophy-box {
    background: rgba(14, 165, 233, 0.06);
    border: 1px solid var(--accent);
}

[data-template="minimal"] .next-btn {
    background: var(--accent);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.25);
}

[data-template="minimal"] .next-btn:hover {
    background: #0284c7;
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.35);
}

/* === TEMPLATE: STRATEGIC CONSULTANT === */
[data-template="designer"] {
    --primary: #4f46e5;
    --secondary: #4338ca;
    --accent: #f59e0b;
    --bg: #fafaf9;
    --panel-bg: #ffffff;
    --grid-color: transparent;
    --text-primary: #1c1917;
    --text-secondary: #57534e;
    --font-serif: 'Outfit';
}

[data-template="designer"] body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 15% 20%, rgba(79, 70, 229, 0.03), transparent 40%),
                radial-gradient(circle at 85% 80%, rgba(245, 158, 11, 0.03), transparent 40%);
    z-index: -1;
    pointer-events: none;
}

[data-template="designer"] .header {
    background: #ffffff;
    border-bottom: 1px solid #e7e5e4;
}

[data-template="designer"] .sidebar {
    background: #fafaf9;
    border-right: 1px solid #e7e5e4;
}

[data-template="designer"] .viewport {
    background: #fafaf9;
}

[data-template="designer"] .content-pane {
    background: #ffffff;
    border: 1px solid #e7e5e4;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

[data-template="designer"] .nav-node {
    background: #ffffff;
    border: 1px solid #e7e5e4;
    transition: all 0.3s ease;
}

[data-template="designer"] .nav-node:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.12);
}

[data-template="designer"] .nav-node.active {
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.06), rgba(245, 158, 11, 0.04));
    border-color: var(--primary);
    border-left: 3px solid var(--primary);
}

[data-template="designer"] h2 {
    font-family: 'Outfit', sans-serif;
    font-style: normal;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--primary);
}

[data-template="designer"] .mono {
    font-family: 'Space Mono', monospace;
    color: var(--accent);
}

[data-template="designer"] .case-section {
    background: #fafaf9;
    border-left: 3px solid var(--primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

[data-template="designer"] .philosophy-box {
    background: rgba(245, 158, 11, 0.06);
    border: 1px solid var(--accent);
}

[data-template="designer"] .expand-btn {
    background: rgba(79, 70, 229, 0.08);
    border: 1px solid var(--primary);
    color: var(--primary);
}

[data-template="designer"] .expand-btn:hover {
    background: rgba(79, 70, 229, 0.12);
}

[data-template="designer"] .next-btn {
    background: var(--primary);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

[data-template="designer"] .next-btn:hover {
    background: var(--secondary);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35);
    transform: translateY(-2px);
}

[data-template="designer"] .admin-panel {
    background: #ffffff;
    border: 1px solid #e7e5e4;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* === BASE STYLES === */
body, html { 
    margin: 0; 
    padding: 0; 
    width: 100%; 
    background: var(--bg); 
    color: var(--text-primary); 
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
    transition: background-color 0.6s ease, color 0.6s ease;
}

/* === THE BLUEPRINT GRID (Template Conditional) === */
[data-template="blueprint"] body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    pointer-events: none;
}

/* === DASHBOARD LAYOUT === */
.dashboard {
    display: grid;
    grid-template-columns: 380px 1fr;
    grid-template-rows: 140px 1fr;
    min-height: 100vh;
    gap: 1px;
    background: rgba(255,255,255,0.1);
}

/* === HEADER === */
.header {
    grid-column: 1 / 3;
    background: var(--bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 40px;
    position: relative;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    transition: background-color 0.6s ease;
}

[data-template="executive"] .header,
[data-template="minimal"] .header {
    border-bottom-color: rgba(0,0,0,0.1);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.header-title {
    font-weight: 800;
    font-size: 1.4rem;
}

.header-title span {
    color: var(--primary);
    margin: 0 4px;
}

.welcome-msg {
    margin-top: 15px;
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-secondary);
    display: none;
    border-left: 3px solid var(--accent);
    padding: 12px 0 12px 15px;
    animation: slideDown 0.6s ease-out 0.5s both;
    transition: color 0.6s ease, border-color 0.6s ease;
    background: rgba(16, 185, 129, 0.05);
    border-radius: 0 6px 6px 0;
}

.welcome-msg.visible {
    display: block;
}

[data-template="executive"] .welcome-msg,
[data-template="minimal"] .welcome-msg {
    color: var(--text-secondary);
}

#co-name {
    color: var(--accent);
    font-weight: 700;
}

#welcome-text {
    color: var(--text-secondary);
}

#welcome-text:not(:empty)::before {
    content: ' | ';
    color: var(--text-secondary);
    opacity: 0.5;
}

/* === SIDEBAR === */
.sidebar {
    background: var(--bg);
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    border-right: 1px solid rgba(255,255,255,0.1);
    transition: background-color 0.6s ease, border-color 0.6s ease;
}

[data-template="executive"] .sidebar,
[data-template="minimal"] .sidebar {
    border-right-color: rgba(0,0,0,0.1);
}

.nav-node {
    padding: 15px;
    background: var(--panel-bg);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    cursor: pointer;
    transition: 0.3s;
}

[data-template="executive"] .nav-node,
[data-template="minimal"] .nav-node {
    border-color: rgba(0,0,0,0.1);
}

.nav-node:hover {
    border-color: var(--primary);
    background: linear-gradient(90deg, var(--panel-bg), transparent);
}

.nav-node.active {
    border-left: 4px solid var(--primary);
    border-color: var(--primary);
    background: linear-gradient(90deg, rgba(255,255,255,0.05), transparent);
}

[data-template="executive"] .nav-node.active,
[data-template="minimal"] .nav-node.active {
    background: linear-gradient(90deg, rgba(0,0,0,0.03), transparent);
}

.nav-label {
    font-family: 'Space Mono';
    font-size: 0.75rem;
    color: var(--primary);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: color 0.6s ease;
}

.nav-title {
    font-weight: 600;
    font-size: 1rem;
    margin-top: 6px;
    color: var(--text-primary);
    transition: color 0.6s ease;
}

/* === VIEWPORT / CONTENT === */
.viewport {
    background: var(--bg);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 40px 20px;
    overflow-y: auto;
    transition: background-color 0.6s ease;
}

.content-pane {
    width: 100%;
    max-width: 900px;
    background: var(--panel-bg);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 50px;
    display: none;
    animation: paneIn 0.4s ease;
    transition: background-color 0.6s ease, border-color 0.6s ease;
    position: relative;
}

[data-template="executive"] .content-pane,
[data-template="minimal"] .content-pane {
    border-color: rgba(0,0,0,0.1);
}

.content-pane.active {
    display: block;
}

/* === TYPOGRAPHY === */
.mono {
    font-family: 'Space Mono';
    font-size: 0.65rem;
    color: var(--primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: color 0.6s ease;
}

h2 {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 2.8rem;
    margin: 20px 0 30px 0;
    line-height: 1.2;
    color: var(--text-primary);
    transition: color 0.6s ease, font-family 0.6s ease;
}

[data-template="executive"] h2 {
    font-style: normal;
    font-weight: 700;
    letter-spacing: -0.02em;
}

[data-template="minimal"] h2 {
    font-style: normal;
    font-weight: 800;
    letter-spacing: -0.03em;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 30px 0 15px 0;
    color: var(--accent);
    transition: color 0.6s ease;
}

p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 15px 0;
    color: var(--text-secondary);
    transition: color 0.6s ease;
}

ul {
    color: var(--text-secondary);
}

/* === CASE STUDY COMPONENTS === */
.case-section {
    margin: 40px 0;
    padding: 30px;
    background: rgba(255, 255, 255, 0.02);
    border-left: 3px solid var(--primary);
    border-radius: 8px;
    transition: background-color 0.6s ease, border-color 0.6s ease;
}

[data-template="executive"] .case-section,
[data-template="minimal"] .case-section {
    background: rgba(0, 0, 0, 0.02);
}

.case-section h3 {
    margin-top: 0;
}

.metric {
    display: inline-block;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--primary);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    margin: 5px 10px 5px 0;
    color: var(--primary);
    transition: background-color 0.6s ease, border-color 0.6s ease, color 0.6s ease;
}

[data-template="executive"] .metric,
[data-template="minimal"] .metric {
    background: rgba(30, 64, 175, 0.08);
}

.philosophy-box {
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid var(--accent);
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
    transition: background-color 0.6s ease, border-color 0.6s ease;
}

[data-template="executive"] .philosophy-box,
[data-template="minimal"] .philosophy-box {
    background: rgba(217, 119, 6, 0.05);
}

.principle {
    margin: 20px 0;
}

.principle-title {
    font-weight: 700;
    color: var(--accent);
    font-size: 1.1rem;
    margin-bottom: 8px;
    transition: color 0.6s ease;
}

/* === CTA BUTTONS === */
.cta-button {
    display: inline-block;
    background: var(--primary);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 20px;
    margin-right: 10px;
    transition: 0.3s;
}

.cta-button:hover {
    background: var(--secondary);
}

/* === ANIMATIONS === */
@keyframes paneIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .dashboard {
        grid-template-columns: 1fr;
    }
    
    .header {
        grid-column: 1;
    }
    
    .sidebar {
        grid-column: 1;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 10px;
        padding: 20px;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .content-pane {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .sidebar {
        grid-template-columns: 1fr;
    }
    
    .header {
        padding: 0 20px;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    .content-pane {
        padding: 20px;
    }
}

/* === MOBILE ENHANCEMENTS === */
@media (max-width: 1024px) {
    [style*="grid-template-columns: repeat(3, 1fr)"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Stack hero section on tablets */
    #home [style*="display: flex"] {
        flex-direction: column !important;
    }
    
    #home img[alt="Joseph Pointer"] {
        margin: 20px auto 0 auto !important;
        display: block;
    }
}

@media (max-width: 768px) {
    .header-title {
        font-size: 1.1rem;
    }
    
    #sub-header {
        font-size: 0.9rem !important;
    }
    
    [style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

/* === IMAGE PLACEHOLDERS === */
.img-placeholder {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(16, 185, 129, 0.1));
    border: 2px dashed var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-align: center;
    padding: 20px;
    min-height: 200px;
}

/* === SECTION ICONS (CSS-DRAWN) === */

.section-icon {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 80px;
    height: 80px;
    opacity: 0.4;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.section-icon:hover {
    opacity: 0.6;
}

/* Operating Principles - Interconnected squares */
.icon-principles {
    position: relative;
}

.icon-principles::before,
.icon-principles::after {
    content: '';
    position: absolute;
    width: 28px;
    height: 28px;
    border: 2px solid var(--accent);
    border-radius: 6px;
}

.icon-principles::before {
    top: 15px;
    left: 15px;
    transform: rotate(45deg);
}

.icon-principles::after {
    top: 30px;
    left: 35px;
    transform: rotate(45deg);
}

/* CareerSpark - Concentric circles */
.icon-network {
    position: relative;
}

.icon-network::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 55px;
    height: 55px;
    border: 2px solid var(--primary);
    border-radius: 50%;
}

.icon-network::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 28px;
    height: 28px;
    background: var(--primary);
    border-radius: 50%;
}

/* Workplace - Building outline */
.icon-building {
    position: relative;
}

.icon-building::before {
    content: '';
    position: absolute;
    bottom: 15px;
    left: 20px;
    width: 40px;
    height: 50px;
    border: 2px solid var(--primary);
    border-bottom: none;
    background: linear-gradient(to right, transparent 48%, var(--primary) 48%, var(--primary) 52%, transparent 52%);
}

.icon-building::after {
    content: '';
    position: absolute;
    bottom: 15px;
    left: 20px;
    width: 40px;
    height: 2px;
    background: var(--primary);
}

/* Revolver - Circular arrow */
.icon-flow {
    position: relative;
}

.icon-flow::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    border-right-color: transparent;
    border-bottom-color: transparent;
    transform: translate(-50%, -50%) rotate(45deg);
}

.icon-flow::after {
    content: '';
    position: absolute;
    top: 28%;
    right: 28%;
    width: 0;
    height: 0;
    border-left: 10px solid var(--accent);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

/* Foundations - Ascending stairs */
.icon-stairs {
    position: relative;
}

.icon-stairs::before {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 15px;
    width: 50px;
    height: 45px;
    background: 
        linear-gradient(to right, transparent 0%, transparent 33%, var(--primary) 33%, var(--primary) 36%, transparent 36%),
        linear-gradient(to right, transparent 33%, transparent 66%, var(--primary) 66%, var(--primary) 69%, transparent 69%),
        linear-gradient(to bottom, transparent 0%, transparent 33%, var(--primary) 33%, var(--primary) 36%, transparent 36%),
        linear-gradient(to bottom, transparent 33%, transparent 66%, var(--primary) 66%, var(--primary) 69%, transparent 69%);
    background-size: 100% 100%;
}

/* Contact - Connection circles */
.icon-connect {
    position: relative;
}

.icon-connect::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 18%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 2px solid var(--accent);
    border-radius: 50%;
}

.icon-connect::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 18%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 2px solid var(--accent);
    border-radius: 50%;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .section-icon {
        display: none;
    }
}

/* === EXPANDABLE SECTIONS === */
.expand-btn {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s;
    display: inline-block;
    margin-top: 10px;
}

.expand-btn:hover {
    background: rgba(59, 130, 246, 0.2);
}

.expand-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.expand-content.open {
    max-height: 5000px;
}

/* === NEXT SECTION NAVIGATION === */
.next-section-nav {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: border-color 0.6s ease;
}

[data-template="executive"] .next-section-nav,
[data-template="minimal"] .next-section-nav {
    border-top-color: rgba(0, 0, 0, 0.1);
}

.next-btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.next-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
    opacity: 0.9;
}

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

[data-template="executive"] .next-btn {
    background: var(--primary);
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
}

[data-template="executive"] .next-btn:hover {
    box-shadow: 0 6px 20px rgba(30, 64, 175, 0.4);
}

[data-template="minimal"] .next-btn {
    background: var(--primary);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

[data-template="minimal"] .next-btn:hover {
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

[data-template="designer"] .next-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

[data-template="designer"] .next-btn:hover {
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.6);
}
