/* ==========================================================================
   FIGMA-STYLE PORTFOLIO CSS DESIGN SYSTEM
   ========================================================================== */

/* Design Tokens & Theme Variables */
:root {
    --bg-figma-dark: #1E1E1E;         /* Sidebar & Top Bar background */
    --bg-figma-dark-hover: #2C2C2C;   /* Sidebar hover highlight */
    --bg-figma-canvas: #2E2E2E;       /* Canvas background */
    --border-figma: #2C2C2C;           /* Border separators */
    --border-figma-light: #383838;     /* Inner borders */
    --text-figma-dim: #B3B3B3;         /* Muted gray text */
    --text-figma-bright: #E6E6E6;      /* Bright white text */
    --text-figma-white: #FFFFFF;
    --brand-figma-blue: #0C8CE9;       /* Selection blue */
    --brand-figma-blue-hover: #1E96EC;
    --brand-figma-blue-trans: rgba(12, 140, 233, 0.15);
    
    /* Frame Accent Colors */
    --frame-bg-light: #FFFFFF;
    --frame-bg-dark: #1E1E1E;
    --frame-border: #E6E6E6;
    
    /* System Colors */
    --sys-green: #0ACF83;
    --sys-red: #F24E1E;
    --sys-orange: #FF9900;
    
    /* Layout Sizes */
    --top-bar-height: 48px;
    --sidebar-width: 240px;
    --ruler-size: 16px;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Reset and Core App Layout */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    font-family: var(--font-family);
    background-color: var(--bg-figma-dark);
    color: var(--text-figma-bright);
    user-select: none;
    -webkit-font-smoothing: antialiased;
}

/* Scrollbar customization */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Main Application Container */
.figma-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    position: relative;
}

/* ==========================================================================
   TOP BAR SECTION
   ========================================================================== */
.figma-top-bar {
    height: var(--top-bar-height);
    background-color: var(--bg-figma-dark);
    border-bottom: 1px solid var(--border-figma);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px;
    z-index: 100;
    flex-shrink: 0;
}

/* Top Bar Left: Menu & Tabs */
.top-bar-left {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 30%;
}

.top-bar-icon-btn {
    background: transparent;
    border: none;
    color: var(--text-figma-dim);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.top-bar-icon-btn:hover {
    background-color: var(--bg-figma-dark-hover);
    color: var(--text-figma-bright);
}

.figma-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
}

.figma-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    background-color: transparent;
    border: none;
    border-radius: 4px;
    padding: 0 10px;
    color: var(--text-figma-dim);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
}

.figma-tab.active {
    background-color: var(--bg-figma-dark-hover);
    color: var(--text-figma-white);
}

.tab-icon {
    display: flex;
    align-items: center;
}

.tab-close-btn {
    background: transparent;
    border: none;
    color: inherit;
    font-size: 12px;
    cursor: pointer;
    margin-left: 4px;
    display: flex;
    align-items: center;
    opacity: 0.5;
}

.tab-close-btn:hover {
    opacity: 1;
}

.add-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-figma-dim);
    font-size: 14px;
    cursor: pointer;
    width: 24px;
    height: 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.add-tab-btn:hover {
    background-color: var(--bg-figma-dark-hover);
    color: var(--text-figma-bright);
}

/* Top Bar Center: Document Title */
.top-bar-center {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40%;
}

.file-info {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    color: var(--text-figma-dim);
    font-size: 12px;
    font-weight: 500;
}

.file-info:hover {
    background-color: var(--bg-figma-dark-hover);
    color: var(--text-figma-bright);
}

.file-name {
    color: var(--text-figma-bright);
}

.dropdown-chevron {
    margin-top: 1px;
}

/* Top Bar Right: Share, Play, Zoom, Dev Mode */
.top-bar-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    width: 30%;
}

/* Dev Mode Toggle */
.dev-mode-toggle {
    width: 52px;
    height: 24px;
    background-color: var(--border-figma-light);
    border-radius: 12px;
    padding: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    position: relative;
    border: 1px solid var(--border-figma);
}

.toggle-track {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 0 4px;
    position: relative;
}

.toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-figma-dim);
    z-index: 2;
    font-size: 9px;
}

.toggle-icon.active {
    color: var(--text-figma-white);
}

/* Dev Mode Toggle slider block */
.dev-mode-toggle::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    background-color: #555;
    border-radius: 50%;
    left: 2px;
    transition: transform 0.2s, background-color 0.2s;
    z-index: 1;
}

.dev-mode-toggle.active::after {
    transform: translateX(28px);
    background-color: var(--brand-figma-blue);
}

/* Avatars Stack */
.avatars-group {
    display: flex;
    align-items: center;
    margin-right: 4px;
}

.avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 2px solid var(--bg-figma-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-figma-white);
    margin-left: -6px;
    cursor: pointer;
}

.user-avatar {
    background-color: var(--sys-green);
    margin-left: 0;
}

.visitor-avatar {
    background-color: var(--accent-purple, #A25AFF);
}

/* Buttons */
.figma-btn-primary {
    background-color: var(--brand-figma-blue);
    color: var(--text-figma-white);
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s;
}

.figma-btn-primary:hover {
    background-color: var(--brand-figma-blue-hover);
}

.play-btn {
    color: var(--text-figma-white);
}

.play-btn:hover {
    color: var(--sys-green);
    background-color: var(--bg-figma-dark-hover);
}

/* Zoom Selector */
.zoom-selector {
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-figma-bright);
    font-size: 11px;
    font-weight: 500;
    padding: 6px 8px;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
}

.zoom-selector:hover {
    background-color: var(--bg-figma-dark-hover);
}

.zoom-dropdown-menu {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    background-color: var(--bg-figma-dark);
    border: 1px solid var(--border-figma-light);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    padding: 4px 0;
    width: 120px;
    display: none;
    flex-direction: column;
    z-index: 120;
}

.zoom-dropdown-menu.active {
    display: flex;
}

.zoom-dropdown-menu button {
    background: transparent;
    border: none;
    color: var(--text-figma-bright);
    padding: 6px 16px;
    font-size: 11px;
    text-align: left;
    cursor: pointer;
}

.zoom-dropdown-menu button:hover {
    background-color: var(--brand-figma-blue);
    color: var(--text-figma-white);
}

/* ==========================================================================
   WORKSPACE SHELL (SIDEBARS & CANVAS)
   ========================================================================== */
.figma-workspace {
    flex: 1;
    display: flex;
    width: 100%;
    height: calc(100% - var(--top-bar-height));
    position: relative;
    overflow: hidden;
}

/* Sidebars general style */
.figma-sidebar-left, .figma-sidebar-right {
    width: var(--sidebar-width);
    background-color: var(--bg-figma-dark);
    border-right: 1px solid var(--border-figma);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    z-index: 50;
    flex-shrink: 0;
    height: 100%;
}

.figma-sidebar-right {
    border-right: none;
    border-left: 1px solid var(--border-figma);
}

.sidebar-divider {
    border: none;
    border-bottom: 1px solid var(--border-figma-light);
    margin: 8px 0;
}

/* Left Sidebar: Section Design */
.sidebar-section {
    padding: 8px 0;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 16px;
    margin-bottom: 4px;
}

.section-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-figma-white);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.header-actions {
    display: flex;
    gap: 4px;
}

.header-btn {
    background: transparent;
    border: none;
    color: var(--text-figma-dim);
    cursor: pointer;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
}

.header-btn:hover {
    background-color: var(--bg-figma-dark-hover);
    color: var(--text-figma-bright);
}

/* Left Sidebar - Pages List */
.pages-list {
    list-style: none;
}

.page-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 24px;
    font-size: 11px;
    font-weight: 500;
    color: var(--text-figma-dim);
    cursor: pointer;
}

.page-item:hover {
    color: var(--text-figma-bright);
    background-color: rgba(255,255,255,0.02);
}

.page-item.active {
    color: var(--brand-figma-blue);
    font-weight: 600;
    background-color: var(--brand-figma-blue-trans);
}

.page-icon {
    font-size: 12px;
}

/* Left Sidebar - Layers Panel */
.layers-tree {
    padding: 0 8px;
    font-size: 11px;
}

.layers-node {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    border-radius: 4px;
    color: var(--text-figma-dim);
    cursor: pointer;
}

.layers-node:hover {
    background-color: var(--bg-figma-dark-hover);
    color: var(--text-figma-bright);
}

.layers-node.selected {
    background-color: var(--brand-figma-blue);
    color: var(--text-figma-white);
}

.layers-node.indent-1 {
    padding-left: 24px;
}

.layers-node.indent-2 {
    padding-left: 40px;
}

.node-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
}

.node-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================================================
   CANVAS & NAVIGATION
   ========================================================================== */
.figma-canvas-container {
    flex: 1;
    height: 100%;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-figma-canvas);
    cursor: default;
}

/* Rulers */
.ruler {
    position: absolute;
    background-color: var(--bg-figma-dark);
    z-index: 40;
    opacity: 0.9;
}

.ruler-x {
    top: 0;
    left: var(--ruler-size);
    right: 0;
    height: var(--ruler-size);
    border-bottom: 1px solid var(--border-figma);
}

.ruler-y {
    top: var(--ruler-size);
    left: 0;
    bottom: 0;
    width: var(--ruler-size);
    border-right: 1px solid var(--border-figma);
}

.ruler-corner {
    position: absolute;
    top: 0;
    left: 0;
    width: var(--ruler-size);
    height: var(--ruler-size);
    background-color: var(--bg-figma-dark);
    border-right: 1px solid var(--border-figma);
    border-bottom: 1px solid var(--border-figma);
    z-index: 41;
}

/* Ruler Scale Lines Generator */
.ruler-x::before, .ruler-y::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
}

/* Canvas Workspace */
.figma-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 5000px;
    height: 5000px;
    transform-origin: 0 0;
    will-change: transform;
    z-index: 10;
}

/* Panning Grab Cursors */
.figma-canvas-container.hand-tool-active {
    cursor: grab;
}

.figma-canvas-container.hand-tool-active.grabbing {
    cursor: grabbing;
}

/* SVG Dot Grid Background */
.canvas-grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

/* Canvas Grid Hide State */
.grid-hidden .canvas-grid-lines {
    display: none;
}

/* ==========================================================================
   PAGE COMPONENTS (DIRECT CANVAS SYSTEM)
   ========================================================================== */
.page-component {
    position: absolute;
    cursor: move;
    user-select: none;
    z-index: 5;
    background-color: #FFFFFF;
    transition: border-color 0.15s, box-shadow 0.15s;
    border: 1.5px solid transparent;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    border-radius: 8px; /* Smooth card style */
}

/* Toggle visibility by page cluster */
.page-component:not(.active) {
    display: none !important;
}

.page-component:hover {
    border-color: rgba(12, 140, 233, 0.4);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.page-component.selected-comp {
    border-color: var(--brand-figma-blue);
    box-shadow: 0 10px 30px rgba(12, 140, 233, 0.2);
    z-index: 50 !important; /* Bring selected item above all other sibling components */
}

/* Component Selection Outline Overlay */
.component-selection-box {
    position: absolute;
    border: 1.5px solid var(--brand-figma-blue);
    pointer-events: none;
    z-index: 45;
}

.comp-handle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #FFFFFF;
    border: 1px solid var(--brand-figma-blue);
    border-radius: 1px;
}

.comp-handle.tl { top: -3px; left: -3px; }
.comp-handle.tr { top: -3px; right: -3px; }
.comp-handle.bl { bottom: -3px; left: -3px; }
.comp-handle.br { bottom: -3px; right: -3px; }

.comp-selection-tag {
    position: absolute;
    top: -18px;
    left: -1.5px;
    background-color: var(--brand-figma-blue);
    color: #FFFFFF;
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 2px 2px 0 0;
    white-space: nowrap;
}

/* ==========================================================================
   FRAME PAGE DESIGNS (INTERNAL CONTENT)
   ========================================================================== */

/* Frame 1: About Me Layout */
.about-me-layout {
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Profile Hero */
.profile-hero {
    display: flex;
    gap: 32px;
    align-items: center;
    border-bottom: 1px solid #E9ECEF;
    padding-bottom: 32px;
}

.profile-avatar-container {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #FFFFFF;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    flex-shrink: 0;
    background: #E9ECEF;
}

.profile-image-asset {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.designer-name {
    font-size: 38px;
    font-weight: 800;
    color: #1A1A1A;
    letter-spacing: -0.5px;
}

.designer-title {
    font-size: 20px;
    font-weight: 500;
    color: var(--brand-figma-blue);
}

.designer-tagline {
    font-size: 14px;
    color: #555555;
    line-height: 1.5;
}

.designer-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.badge-pill {
    font-size: 11px;
    font-weight: 600;
    background-color: #E9ECEF;
    color: #495057;
    padding: 4px 10px;
    border-radius: 12px;
}

/* Card components inside frames */
.about-card {
    background: #FFFFFF;
    border: 1px solid #E9ECEF;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.card-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 16px;
    border-bottom: 2px solid #E9ECEF;
    padding-bottom: 8px;
}

.card-text {
    font-size: 14px;
    color: #495057;
    line-height: 1.6;
}

/* Timeline Components */
.timeline-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.timeline-item {
    position: relative;
    padding-left: 20px;
    border-left: 2px solid #E9ECEF;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--brand-figma-blue);
    border: 2px solid #FFFFFF;
}

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

.job-title {
    font-size: 15px;
    font-weight: 700;
    color: #1A1A1A;
}

.job-company {
    font-weight: 500;
    color: #6C757D;
}

.job-duration {
    font-size: 12px;
    color: #868E96;
    font-weight: 500;
}

.job-bullets {
    list-style-type: none;
}

.job-bullets li {
    font-size: 13px;
    color: #495057;
    line-height: 1.6;
    margin-bottom: 6px;
    position: relative;
    padding-left: 12px;
}

.job-bullets li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--brand-figma-blue);
    font-weight: bold;
}

/* Skills list dial representation */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.skill-pill-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #F8F9FA;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #E9ECEF;
}

.skill-name {
    font-size: 12px;
    font-weight: 600;
    color: #495057;
}

.skill-level {
    color: var(--brand-figma-blue);
    font-weight: bold;
    font-size: 13px;
    letter-spacing: 2px;
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* Detail list under About */
.details-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.detail-label {
    font-weight: 600;
    color: #6C757D;
}

.detail-val {
    font-weight: 500;
    color: #1A1A1A;
}

.detail-subval {
    font-size: 11px;
    color: #868E96;
    margin-top: -6px;
}

/* Frame 2: Works Layout */
.works-layout {
    padding: 40px;
}

.works-intro {
    margin-bottom: 32px;
}

.section-heading {
    font-size: 28px;
    font-weight: 800;
    color: #1A1A1A;
    margin-bottom: 8px;
}

.section-subheading {
    font-size: 14px;
    color: #6C757D;
}

.works-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.work-card {
    background: #FFFFFF;
    border: 1px solid #E9ECEF;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
}

.work-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.08);
}

.work-image-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
    background-color: #E9ECEF;
}

.work-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.work-card:hover .work-img {
    transform: scale(1.04);
}

.work-category {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(17, 17, 17, 0.85);
    backdrop-filter: blur(4px);
    color: #FFFFFF;
    padding: 4px 10px;
    font-size: 10px;
    font-weight: 700;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

.work-details {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.work-title {
    font-size: 16px;
    font-weight: 700;
    color: #1A1A1A;
}

.work-desc {
    font-size: 13px;
    color: #555555;
    line-height: 1.5;
    flex-grow: 1;
}

.work-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag {
    font-size: 10px;
    font-weight: 600;
    color: var(--brand-figma-blue);
    background-color: rgba(12, 140, 233, 0.08);
    padding: 4px 8px;
    border-radius: 4px;
}

.text-only-project {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
}

.project-header-pill {
    font-size: 10px;
    font-weight: 700;
    color: #6C757D;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Frame 3: Case Study Layout */
.case-study-layout {
    padding: 50px;
}

.case-study-header {
    border-bottom: 1px solid #E9ECEF;
    padding-bottom: 32px;
    margin-bottom: 32px;
}

.case-badge {
    display: inline-block;
    background-color: var(--brand-figma-blue);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 12px;
    margin-bottom: 12px;
}

.case-title {
    font-size: 32px;
    font-weight: 800;
    color: #1A1A1A;
    margin-bottom: 12px;
}

.case-subtitle {
    font-size: 16px;
    color: #555555;
    line-height: 1.5;
}

.case-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    background: #FFFFFF;
    border: 1px solid #E9ECEF;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 40px;
}

.meta-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: #868E96;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.meta-val {
    font-size: 13px;
    font-weight: 600;
    color: #1A1A1A;
}

.case-body {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.case-section-heading {
    font-size: 20px;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 16px;
}

.case-text {
    font-size: 14px;
    color: #495057;
    line-height: 1.6;
    margin-bottom: 16px;
}

.pain-points-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.pain-point-item {
    background: #FFFFFF;
    border: 1px solid #E9ECEF;
    border-radius: 8px;
    padding: 16px;
}

.pain-point-item h5 {
    font-size: 13px;
    font-weight: 700;
    color: var(--sys-red);
    margin-bottom: 8px;
}

.pain-point-item p {
    font-size: 12px;
    color: #6C757D;
    line-height: 1.5;
}

.style-guide-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.color-swatch-box {
    border-radius: 8px;
    height: 70px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    font-size: 11px;
    font-weight: bold;
    border: 1px solid rgba(0,0,0,0.05);
}

.hex-lbl {
    display: block;
}

.name-lbl {
    font-size: 9px;
    opacity: 0.8;
}

.outcomes-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.outcome-stat {
    background: #FFFFFF;
    border: 1px solid #E9ECEF;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.02);
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: var(--brand-figma-blue);
    margin-bottom: 8px;
}

.stat-lbl {
    font-size: 12px;
    color: #6C757D;
    font-weight: 500;
    line-height: 1.4;
}

/* Frame 4: Contact Layout */
.contact-layout {
    padding: 40px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    margin-top: 32px;
}

.contact-info-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.panel-title {
    font-size: 18px;
    font-weight: 700;
    color: #1A1A1A;
    margin-bottom: 8px;
}

.info-row {
    display: flex;
    gap: 16px;
    align-items: center;
}

.info-icon {
    font-size: 20px;
    width: 40px;
    height: 40px;
    background: #FFFFFF;
    border: 1px solid #E9ECEF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.info-label {
    font-size: 11px;
    font-weight: 700;
    color: #868E96;
    text-transform: uppercase;
}

.info-val {
    font-size: 14px;
    font-weight: 600;
    color: #1A1A1A;
    text-decoration: none;
}

.info-val:hover {
    color: var(--brand-figma-blue);
}

.social-links-container {
    margin-top: 16px;
    border-top: 1px solid #E9ECEF;
    padding-top: 24px;
}

.social-title {
    font-size: 12px;
    font-weight: 700;
    color: #868E96;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.social-buttons {
    display: flex;
    gap: 10px;
}

.social-btn {
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid #E9ECEF;
    color: #495057;
    background: #FFFFFF;
    transition: background 0.15s, border-color 0.15s;
}

.social-btn:hover {
    background: #F8F9FA;
    border-color: #CED4DA;
}

/* Contact Form Design */
.contact-form-panel {
    background: #FFFFFF;
    border: 1px solid #E9ECEF;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.figma-styled-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

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

.figma-label {
    font-size: 11px;
    font-weight: 600;
    color: #495057;
}

.figma-input, .figma-textarea {
    border: 1px solid #E9ECEF;
    background: #F8F9FA;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 13px;
    color: #1A1A1A;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s, background-color 0.15s;
}

.figma-input:focus, .figma-textarea:focus {
    border-color: var(--brand-figma-blue);
    background: #FFFFFF;
}

.figma-btn-submit {
    background: var(--brand-figma-blue);
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    padding: 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s;
}

.figma-btn-submit:hover {
    background-color: var(--brand-figma-blue-hover);
}

/* ==========================================================================
   RIGHT INSPECTOR PANEL PROPERTIES
   ========================================================================== */
.sidebar-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-figma);
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    height: 40px;
    color: var(--text-figma-dim);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.tab-btn:hover {
    color: var(--text-figma-bright);
}

.tab-btn.active {
    color: var(--text-figma-white);
    border-bottom-color: var(--brand-figma-blue);
}

.sidebar-tabs-content {
    padding: 12px 0;
    display: flex;
    flex-direction: column;
}

.sidebar-tabs-content.hidden {
    display: none;
}

.inspector-section {
    padding: 4px 16px 12px 16px;
}

.section-title-bar {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-figma-white);
    margin-bottom: 12px;
}

/* Selection properties positioning */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 8px;
}

.prop-group {
    display: flex;
    align-items: center;
    background-color: var(--bg-figma-dark-hover);
    border: 1px solid var(--border-figma-light);
    border-radius: 4px;
    padding: 6px;
}

.prop-lbl {
    font-size: 9px;
    font-weight: 700;
    color: var(--text-figma-dim);
    width: 14px;
}

.prop-val {
    font-size: 10px;
    font-weight: 500;
    color: var(--text-figma-bright);
    flex-grow: 1;
    text-align: right;
}

.prop-selection-name {
    font-size: 10px;
    color: var(--text-figma-dim);
    font-style: italic;
}

/* Page Settings & Color swatch picker */
.color-picker-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.color-picker-swatch {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid var(--border-figma-light);
    cursor: pointer;
}

.color-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex-grow: 1;
}

.color-hex-label {
    font-size: 9px;
    color: var(--text-figma-dim);
}

.color-hex-val {
    font-size: 11px;
    color: var(--text-figma-bright);
    font-weight: 500;
}

.hidden-color-picker {
    display: none;
}

/* Grid lines toggle switch */
.grid-toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toggle-lbl {
    font-size: 11px;
    color: var(--text-figma-dim);
}

.switch-container {
    position: relative;
    display: inline-block;
    width: 32px;
    height: 18px;
}

.switch-container input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider-round {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--border-figma-light);
    transition: .2s;
    border-radius: 9px;
}

.slider-round:before {
    position: absolute;
    content: "";
    height: 14px;
    width: 14px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .2s;
    border-radius: 50%;
}

input:checked + .slider-round {
    background-color: var(--brand-figma-blue);
}

input:checked + .slider-round:before {
    transform: translateX(14px);
}

/* Local Styles styles list */
.styles-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.style-list-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    color: var(--text-figma-dim);
}

.style-color-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.1);
}

/* Export Area settings */
.export-setting-row, .export-format-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    margin-bottom: 8px;
    color: var(--text-figma-dim);
}

.export-asset-name {
    font-weight: 500;
    color: var(--text-figma-bright);
}

.figma-select {
    background-color: var(--bg-figma-dark-hover);
    border: 1px solid var(--border-figma-light);
    color: var(--text-figma-bright);
    font-size: 10px;
    padding: 4px 6px;
    border-radius: 4px;
    outline: none;
}

.figma-export-btn {
    display: block;
    width: 100%;
    text-align: center;
    background-color: var(--bg-figma-dark-hover);
    color: var(--text-figma-bright);
    border: 1px solid var(--border-figma-light);
    border-radius: 6px;
    padding: 8px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    margin-top: 10px;
    transition: background-color 0.15s, border-color 0.15s;
}

.figma-export-btn:hover {
    background-color: #333;
    border-color: #555;
}

/* Empty State / Help Text */
.empty-state-inspector {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.inspector-help-text {
    font-size: 10px;
    color: var(--text-figma-dim);
    line-height: 1.5;
}

.prototype-connections {
    background-color: var(--bg-figma-dark-hover);
    border-radius: 6px;
    padding: 10px;
    margin-top: 10px;
    font-size: 11px;
}

.conn-item {
    display: flex;
    justify-content: space-between;
}

.conn-label {
    color: var(--text-figma-dim);
}

.conn-val {
    color: var(--sys-green);
    font-weight: 600;
}

/* ==========================================================================
   FLOATING BOTTOM TOOLBAR
   ========================================================================== */
.figma-toolbar-floating {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--bg-figma-dark);
    border: 1px solid var(--border-figma-light);
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    display: flex;
    padding: 6px;
    gap: 4px;
    z-index: 90;
}

.toolbar-btn {
    background: transparent;
    border: none;
    color: var(--text-figma-dim);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.toolbar-btn:hover {
    background-color: var(--bg-figma-dark-hover);
    color: var(--text-figma-bright);
}

.toolbar-btn.active {
    background-color: var(--brand-figma-blue);
    color: var(--text-figma-white);
}

/* ==========================================================================
   INTERACTIVE COMMENTS OVERLAY
   ========================================================================== */
.comments-render-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 35;
}

/* Comment Pin Badge */
.comment-pin {
    position: absolute;
    width: 28px;
    height: 28px;
    background-color: var(--accent-orange, #F24E1E);
    border: 2px solid #FFFFFF;
    border-radius: 50% 50% 50% 0;
    transform: translate(-14px, -28px) rotate(-45deg);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    transition: transform 0.15s;
}

.comment-pin:hover {
    transform: translate(-14px, -28px) rotate(-45deg) scale(1.15);
    z-index: 100;
}

.comment-pin-avatar {
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 700;
    transform: rotate(45deg); /* Counter-rotate to keep upright */
    text-align: center;
}

/* Floating Dialog Form for creating comments */
.comment-dialog-floating {
    position: absolute;
    background-color: var(--bg-figma-dark);
    border: 1px solid var(--border-figma-light);
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
    width: 260px;
    padding: 12px;
    z-index: 110;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.comment-dialog-floating.hidden {
    display: none;
}

.comment-dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.c-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-figma-white);
}

.c-close {
    background: transparent;
    border: none;
    color: var(--text-figma-dim);
    cursor: pointer;
    font-size: 14px;
}

.c-close:hover {
    color: var(--text-figma-bright);
}

.c-input, .c-textarea {
    width: 100%;
    background-color: var(--bg-figma-dark-hover);
    border: 1px solid var(--border-figma-light);
    border-radius: 4px;
    padding: 6px 8px;
    color: var(--text-figma-bright);
    font-family: inherit;
    font-size: 11px;
    outline: none;
}

.c-input:focus, .c-textarea:focus {
    border-color: var(--brand-figma-blue);
}

.comment-dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
}

.c-btn {
    font-size: 10px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    border: none;
}

.c-btn-cancel {
    background-color: transparent;
    color: var(--text-figma-dim);
}

.c-btn-cancel:hover {
    background-color: var(--bg-figma-dark-hover);
    color: var(--text-figma-bright);
}

.c-btn-post {
    background-color: var(--brand-figma-blue);
    color: var(--text-figma-white);
}

.c-btn-post:hover {
    background-color: var(--brand-figma-blue-hover);
}

/* Comment pin popover text view */
.comment-popover {
    position: absolute;
    background-color: var(--bg-figma-dark);
    border: 1px solid var(--border-figma-light);
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    padding: 8px 12px;
    font-size: 11px;
    color: var(--text-figma-bright);
    width: 180px;
    z-index: 105;
    pointer-events: none;
    transform: translate(16px, -24px);
    display: none;
}

.comment-pin:hover + .comment-popover {
    display: block;
}

.popover-author {
    font-weight: 700;
    color: var(--sys-green);
    margin-bottom: 2px;
}

/* ==========================================================================
   PRESENTATION MODE (FULLSCREEN WEBSITE VIEW)
   ========================================================================== */
body.presentation-mode {
    background-color: #111111;
}

/* Hide panels in presentation mode */
body.presentation-mode #app-header,
body.presentation-mode #left-sidebar,
body.presentation-mode #right-sidebar,
body.presentation-mode #ruler-x,
body.presentation-mode #ruler-y,
body.presentation-mode .ruler-corner,
body.presentation-mode #canvas-toolbar {
    display: none !important;
}

/* Expand canvas area to full size in presentation mode */
body.presentation-mode .figma-canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    background-color: #111111;
}

/* Floating bar to exit presentation mode */
.presentation-floating-bar {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(8px);
    border: 1px solid #333;
    border-radius: 20px;
    padding: 6px 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 250;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.presentation-floating-bar.hidden {
    display: none !important;
}

.bar-title {
    font-size: 11px;
    font-weight: 600;
    color: #888;
}

.exit-btn {
    background: #333;
    border: 1px solid #444;
    color: #FFFFFF;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.15s;
}

.exit-btn:hover {
    background: #FF4D4F;
    border-color: #FF4D4F;
}

/* Adjust frame styles in presentation mode to look like static websites centered */
body.presentation-mode .figma-frame {
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    border-color: transparent !important;
}

body.presentation-mode .frame-tag-header,
body.presentation-mode .frame-handle {
    display: none !important;
}

/* ==========================================================================
   RESPONSIVE LAYOUT FOR SMALL SCREENS
   ========================================================================== */
@media (max-width: 1024px) {
    /* Hide Sidebars on iPad/Mobile to give canvas room */
    #left-sidebar, #right-sidebar {
        display: none !important;
    }
    
    /* Center and adapt toolbar */
    .figma-toolbar-floating {
        bottom: 16px;
    }
}

/* ==========================================================================
   DEFAULT COMPONENT COORDINATES (ABSOLUTE LAYOUT)
   ========================================================================== */

/* About Me Frame Children */
#comp-profile-hero {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 24px;
    border-radius: 12px;
}
#comp-summary {
    padding: 20px 24px;
}
#comp-experience {
    padding: 24px;
}
#comp-skills {
    padding: 24px;
}
#comp-education {
    padding: 24px;
}

/* Works Frame Children */
#comp-works-intro {
    padding: 12px;
    background: transparent;
    border: none;
}
#comp-works-intro:hover {
    border-color: transparent;
    box-shadow: none;
}
#comp-work-globby {
    height: 350px;
}
#comp-work-fleet {
    height: 350px;
}
#comp-work-ravelist {
    height: 350px;
}
#comp-work-pixelcraft {
    height: 350px;
}
#comp-work-aleforge {
    height: 310px;
}
#comp-work-oneshare {
    height: 310px;
}

/* Case Study Frame Children */
#comp-case-header {
    background: transparent;
    border: none;
    padding: 0;
}
#comp-case-header:hover {
    border-color: transparent;
    box-shadow: none;
}
#comp-case-meta {
    padding: 20px;
    border-radius: 12px;
}
#comp-case-challenge {
    padding: 24px;
    border-radius: 12px;
}
#comp-case-research {
    padding: 24px;
    border-radius: 12px;
}
#comp-case-solution {
    padding: 24px;
    border-radius: 12px;
}
#comp-case-identity {
    padding: 24px;
    border-radius: 12px;
}
#comp-case-outcomes {
    padding: 24px;
    border-radius: 12px;
}

/* Contact Frame Children */
#comp-contact-intro {
    background: transparent;
    border: none;
    padding: 0;
}
#comp-contact-intro:hover {
    border-color: transparent;
    box-shadow: none;
}
#comp-contact-info {
    padding: 24px;
    border-radius: 12px;
}
#comp-contact-form {
    padding: 24px;
    border-radius: 12px;
}
