/* ==================== MESHCUE NANO BANANA THEME (RED/DARK) ==================== */

:root {
    /* --- Palette --- */
    --nb-red-primary: #D90429;
    --nb-red-accent: #EF233C;
    --nb-bg-dark: #0f172a;
    /* App background */
    --nb-bg-card: #1e293b;
    /* Card background — visible on dark bg */
    --nb-text-primary: #e2e8f0;
    --nb-text-secondary: #94a3b8;
    --nb-border: #334155;
    /* Slightly lighter border for visibility */

    /* --- Typography --- */
    --font-heading: 'Impact', 'Oswald', sans-serif;
    /* Condensed, bold */
    --font-body: 'Inter', system-ui, sans-serif;

    /* --- Spacing --- */
    --radius-card: 16px;
    --radius-btn: 8px;
    /* Slightly squarer buttons */
}

/* ==================== LAYOUT & RESET ==================== */

.profile-view-container {
    background-color: var(--nb-bg-dark);
    color: var(--nb-text-primary);
    min-height: 100vh;
    font-family: var(--font-body);
    overflow-x: hidden;
    padding-bottom: 40px;
    /* Subtle red glow in corners */
    background-image:
        radial-gradient(circle at 100% 0%, rgba(217, 4, 41, 0.15) 0%, transparent 30%),
        radial-gradient(circle at 0% 100%, rgba(217, 4, 41, 0.05) 0%, transparent 30%);
}

.profile-max-width {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 12px;
}

/* ==================== HERO SECTION (Side-by-Side) ==================== */

.profile-hero-split {
    display: grid;
    grid-template-columns: 200px 1fr;
    /* Image Left, Text Right */
    align-items: center;
    gap: 30px;
    padding: 40px 0 30px;
    min-height: 250px;
}

/* --- Left: Image --- */
.hero-visual {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.profile-photo-container {
    width: 100%;
    aspect-ratio: 1 / 1.1;
    /* Slightly tall portrait */
    border-radius: var(--radius-card);
    overflow: hidden;
    border: 1px solid var(--nb-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    background: var(--nb-bg-card);
    position: relative;
}

.profile-photo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-photo-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--nb-border);
    background: var(--nb-bg-card);
    font-family: var(--font-heading);
}

/* --- Right: Text --- */
.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-greeting {
    font-family: var(--font-heading);
    font-size: clamp(40px, 5vw, 70px);
    line-height: 0.85;
    text-transform: uppercase;
    color: #FFFFFF;
    margin-bottom: 12px;
    letter-spacing: 2px;
    /* The "Red Exclamation" style if needed, otherwise white */
}

.hero-greeting span {
    color: var(--nb-red-primary);
}

.intro-text {
    font-size: 13px;
    line-height: 1.6;
    color: var(--nb-text-secondary);
    max-width: 300px;
    margin-bottom: 16px;
}

.contact-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.contact-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 12px;
    background: var(--nb-red-primary);
    color: white;
    font-family: var(--font-heading);
    font-size: 13px;
    letter-spacing: 0.5px;
    border-radius: var(--radius-btn);
    text-decoration: none;
    transition: all 0.2s;
    border: none;
    text-transform: uppercase;
}

.contact-pill:hover {
    background: var(--nb-red-accent);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(217, 4, 41, 0.4);
}

.contact-pill.secondary {
    background: transparent;
    border: 1px solid var(--nb-red-primary);
    color: var(--nb-red-primary);
}

.contact-pill.secondary:hover {
    background: rgba(217, 4, 41, 0.1);
}

/* ==================== INFO GRID ==================== */

.profile-grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    /* 3 Columns */
    gap: 12px;
    padding-bottom: 20px;
}

/* Generic Card */
.nano-card {
    background: var(--nb-bg-card);
    border: 1px solid var(--nb-border);
    border-radius: var(--radius-card);
    padding: 12px;
    height: 100%;
    /* Fill column height */
    display: flex;
    flex-direction: column;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 16px;
    color: var(--nb-text-primary);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
    text-transform: capitalize;
}

/* --- Column 1: Education & Software --- */
.col-left {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.edu-item {
    margin-bottom: 20px;
}

.edu-years {
    font-size: 12px;
    color: var(--nb-text-secondary);
    margin-bottom: 4px;
    font-family: monospace;
}

.edu-degree {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.edu-school {
    font-size: 14px;
    color: var(--nb-text-secondary);
}

/* Software Skills List */
.software-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.sw-icon {
    width: 32px;
    height: 32px;
    background: #fff;
    color: #000;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-family: var(--font-heading);
    font-size: 14px;
}

.sw-details h4 {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.sw-details p {
    font-size: 12px;
    color: var(--nb-text-secondary);
}

/* --- Column 2: Experience (Timeline) --- */
.col-center {
    /* Takes full height of row */
}

.exp-list {
    position: relative;
    border-left: 2px solid var(--nb-border);
    padding-left: 24px;
    margin-left: 8px;
}

.exp-item {
    position: relative;
    margin-bottom: 32px;
}

.exp-dot {
    position: absolute;
    left: -31px;
    top: 5px;
    width: 12px;
    height: 12px;
    background: var(--nb-bg-card);
    border: 2px solid #fff;
    border-radius: 50%;
}

.exp-item.current .exp-dot {
    background: #fff;
}

.exp-years {
    font-size: 12px;
    color: var(--nb-text-secondary);
    margin-bottom: 4px;
    font-family: monospace;
}

.exp-role {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.exp-company {
    font-size: 14px;
    color: var(--nb-red-primary);
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.exp-desc {
    font-size: 13px;
    color: var(--nb-text-secondary);
    line-height: 1.4;
}

/* --- Column 3: Skills & Languages --- */
.col-right {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.skill-list li {
    font-size: 14px;
    color: var(--nb-text-secondary);
    margin-bottom: 8px;
    list-style: disc inside;
}

.lang-item {
    margin-bottom: 12px;
    font-size: 14px;
    color: #fff;
}

.lang-item span {
    color: var(--nb-text-secondary);
    font-weight: 400;
}

/* ==================== SETTINGS PANEL ==================== */
.settings-panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.settings-card {
    background: var(--nb-bg-card);
    border: 1px solid var(--nb-border);
    border-radius: var(--radius-card);
    width: 90%;
    max-width: 500px;
    padding: 32px;
}

/* ==================== MOBILE RESPONSIVE ==================== */

@media (max-width: 1024px) {
    .profile-hero-split {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .profile-photo-container {
        max-width: 200px;
        margin: 0 auto;
    }

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

    .contact-pills {
        justify-content: center;
    }

    .profile-grid-container {
        grid-template-columns: 1fr;
        /* Stack everything */
    }
}

/* ==================== PROACTIVE INTELLIGENCE CHIPS ==================== */
.proactive-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.12);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 20px;
  padding: 8px 14px;
  font-size: 13px;
  color: #c7d2fe;
  margin-bottom: 10px;
  flex-wrap: wrap;
  animation: chipFadeIn 0.3s ease;
}
.proactive-chip strong { color: #a5b4fc; }
.proactive-chip button {
  background: none;
  border: none;
  color: #818cf8;
  cursor: pointer;
  font-size: 13px;
  padding: 0 4px;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.proactive-chip button:hover { color: #a5b4fc; }
.proactive-chip .chip-dismiss {
  color: #6b7280;
  font-size: 11px;
  text-decoration: none;
  margin-left: auto;
}
.proactive-chip.watch-alert {
  background: rgba(16, 185, 129, 0.10);
  border-color: rgba(16, 185, 129, 0.3);
  color: #a7f3d0;
}
.proactive-chip.watch-alert strong { color: #6ee7b7; }
.proactive-chip.watch-alert button { color: #34d399; }
.watch-topic-btn {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 12px;
  color: #818cf8;
  font-size: 11px;
  padding: 3px 10px;
  cursor: pointer;
  margin-top: 6px;
}
.watch-topic-btn:hover { background: rgba(99, 102, 241, 0.2); }
@keyframes chipFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ==================== AI TIER BADGE ==================== */
.ai-tier-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 10px;
  padding: 2px 8px;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.ai-tier-deep {
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #c4b5fd;
  animation: tierPulse 1.8s ease-in-out infinite;
}
@keyframes tierPulse {
  0%, 100% { opacity: 0.7; }
  50%       { opacity: 1; }
}

/* Progressive AI loading status */
.ai-progress-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 16px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  margin-bottom: 4px;
}
.ai-progress-text {
  font-size: 12px;
  font-weight: 500;
  color: #a5b4fc;
  transition: opacity 0.3s;
}
.ai-progress-dots {
  display: inline-flex;
  gap: 3px;
}
.ai-progress-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #818cf8;
  animation: progressBounce 1.2s ease-in-out infinite;
}
.ai-progress-dots span:nth-child(2) { animation-delay: 0.15s; }
.ai-progress-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes progressBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}