/* =============================================
   AuraCV Clone - Glassmorphic vCard Resume
   ============================================= */

/* ========== CSS Variables ========== */
:root {
    /* Dark Theme (Default) */
    --bg-primary: #0a0a0f;
    --bg-secondary: #111116;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.5);
    --primary: #6366f1;
    --primary-hover: #818cf8;
    --success: #10b981;
    --border: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(22, 22, 29, 0.8);
    --glass-border: rgba(255, 255, 255, 0.12);
    --shadow: rgba(0, 0, 0, 0.5);
    --orb-primary: rgba(99, 102, 241, 0.15);
    --orb-secondary: rgba(236, 72, 153, 0.12);
}

[data-theme="light"] {
    --bg-primary: #fafafa;
    --bg-secondary: #ffffff;
    --text-primary: #0a0a0f;
    --text-secondary: rgba(0, 0, 0, 0.7);
    --text-tertiary: rgba(0, 0, 0, 0.5);
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --border: rgba(0, 0, 0, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(0, 0, 0, 0.12);
    --shadow: rgba(0, 0, 0, 0.15);
    --orb-primary: rgba(99, 102, 241, 0.08);
    --orb-secondary: rgba(236, 72, 153, 0.06);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    height: 100%;
    overflow: hidden;
    transition: background 0.3s ease, color 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ========== Orbs Background ========== */
.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    pointer-events: none;
}

.orb--primary {
    width: 600px;
    height: 600px;
    background: var(--orb-primary);
    top: -300px;
    left: -200px;
    animation: float 20s ease-in-out infinite;
}

.orb--secondary {
    width: 500px;
    height: 500px;
    background: var(--orb-secondary);
    bottom: -250px;
    right: -150px;
    animation: float 18s ease-in-out infinite reverse;
}

.orb-vignette {
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 0%, var(--bg-primary) 100%);
    z-index: 1;
    pointer-events: none;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(50px, 50px); }
}

/* ========== Glass Morphism ========== */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px var(--shadow);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}

.glass-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 12px 40px var(--shadow);
}

/* ========== Mobile Header ========== */
.mobile-header {
    display: none; /* Hidden by default on desktop */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    z-index: 100;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
}

.mobile-header__menu-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.mobile-header__title {
    font-size: 1.125rem;
    font-weight: 600;
}

/* ========== Sidebar Overlay (Mobile Only) ========== */
.sidebar-overlay {
    display: none; /* Hidden by default */
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 98;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
}

/* Only show overlay on mobile screens */
@media (max-width: 992px) {
    .sidebar-overlay.active {
        display: block;
    }
}

/* ========== Mobile Sidebar ========== */
.sidebar-mobile {
    display: none; /* Hidden by default, only shown on mobile */
    position: fixed;
    left: -100%;
    top: 0;
    bottom: 0;
    width: 300px;
    z-index: 99;
    padding: 2rem 1.5rem;
    overflow-y: auto;
    transition: left 0.3s ease;
}

.sidebar-mobile.active {
    left: 0;
}

.sidebar-mobile__close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    margin-bottom: 1.5rem;
    border-radius: 8px;
}

/* ========== App Wrapper & Layout ========== */
.app-wrapper {
    position: relative;
    z-index: 2;
    height: 100%;
    width: 100%;
    overflow: hidden;
}

.app-layout {
    display: flex;
    gap: 2rem;
    max-width: 1600px;
    margin: 0 auto;
    /* Extra right padding keeps content clear of the fixed side nav */
    padding: 2rem 8rem 2rem 2rem;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    align-items: stretch;
}

/* ========== Desktop Sidebar ========== */
.sidebar {
    position: relative;
    width: 340px;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 24px;
    padding: 2.5rem 2rem;
    flex-shrink: 0;
    display: block;
}

/* Scrollbar styling for sidebar */
.sidebar::-webkit-scrollbar {
    width: 6px;
}

.sidebar::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

.sidebar__avatar-wrap {
    width: 100%;
    margin-bottom: 1.5rem;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    display: block;
    position: relative;
}

.sidebar__avatar {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    background: var(--bg-secondary);
}

.sidebar__name {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.sidebar__title {
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.sidebar__socials {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.sidebar__social-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.sidebar__social-btn:hover {
    color: white;
    background: var(--primary);
    border-color: var(--primary);
}

.sidebar__info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.sidebar__info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.sidebar__info-label {
    color: var(--text-tertiary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sidebar__info-value {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.sidebar__cv-btn {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.sidebar__cv-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.sidebar__cv-btn span:last-child {
    font-size: 1.25rem;
}

/* ========== Main Content ========== */
.main-content {
    flex: 1;
    border-radius: 24px;
    padding: 2rem 3rem;
    overflow-x: hidden;
    overflow-y: auto;
    min-width: 0;
    height: 100%;
}

.main-content::-webkit-scrollbar {
    width: 6px;
}

.main-content::-webkit-scrollbar-track {
    background: transparent;
}

.main-content::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

/* ========== Section ========== */
.section {
    display: block;
    width: 100%;
    padding: 3rem 0;
    min-height: auto;
}

.section.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-height: calc(100% - 2rem);
    padding-top: 2rem;
}

/* ========== Hero Section ========== */
.hero__label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-tertiary);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero__heading {
    font-size: clamp(2.25rem, 4.6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    max-width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero__heading span {
    display: inline-block;
    max-width: 100%;
}

.hero__gradient {
    background: linear-gradient(135deg, var(--primary) 0%, #ec4899 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__desc {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 640px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ========== Section Heading ========== */
.section__heading {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section__icon {
    font-size: 2rem;
    color: var(--primary);
    opacity: 0.7;
}

/* ========== About Section ========== */
.about__text {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.about__info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    width: 100%;
}

.about__info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.about__info-label {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.about__info-value {
    font-size: 1rem;
    font-weight: 600;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ========== Services Grid (What I Do) ========== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
    width: 100%;
}

.service-card {
    padding: 2rem 1.75rem;
    border-radius: 16px;
    min-width: 0;
}

.service-card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    border-radius: 12px;
    color: white;
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}

.service-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.service-card__desc {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ========== Achievements ========== */
.achievements-group {
    margin-top: 2.5rem;
}

.achievements-group__title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    width: 100%;
}

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

.achievement-card {
    padding: 1.5rem 1.35rem;
    border-radius: 16px;
    min-width: 0;
}

.achievement-card__badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.achievement-card__title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.4rem;
    word-wrap: break-word;
}

.achievement-card__meta {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    line-height: 1.5;
}

.press-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    width: 100%;
}

.press-card {
    padding: 1.75rem 1.5rem;
    border-radius: 16px;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.press-card__source {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 0.85rem;
}

.press-card__quote {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.press-card__text {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    flex: 1;
}

.press-card__link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

.press-card__link:hover {
    color: var(--primary);
}

/* ========== Resume (Timeline) ========== */
.resume__sub-heading {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 3rem 0 2rem 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.resume__sub-heading:first-of-type {
    margin-top: 2.5rem;
}

.timeline {
    position: relative;
    width: 100%;
}

.timeline-item {
    position: relative;
    padding-left: 3rem;
    padding-bottom: 3rem;
    border-left: 2px solid var(--border);
    width: 100%;
}

.timeline-item:last-child {
    border-left-color: transparent;
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -7px;
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--bg-primary);
}

.timeline-dot--active {
    background: var(--primary);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2);
}

.timeline-dot--inactive {
    background: var(--text-tertiary);
}

.timeline-item__period {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.timeline-item__period--active {
    color: var(--primary);
}

.timeline-item__period--inactive {
    color: var(--text-tertiary);
}

.timeline-item__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.timeline-item__company {
    color: var(--text-tertiary);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.timeline-item__desc {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* ========== Skills ========== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-top: 2.5rem;
    width: 100%;
}

.skill__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    gap: 0.5rem;
}

.skill__name {
    font-weight: 600;
    font-size: 1rem;
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.skill__pct {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    font-weight: 600;
    flex-shrink: 0;
}

.skill__bar {
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    width: 100%;
}

.skill__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-hover));
    border-radius: 4px;
    transition: width 1.5s ease;
    width: 0;
}

/* ========== Portfolio ========== */
.portfolio-filters {
    display: flex;
    gap: 1rem;
    margin: 2.5rem 0;
    flex-wrap: wrap;
}

.portfolio-filter {
    padding: 0.625rem 1.25rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 24px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.portfolio-filter:hover,
.portfolio-filter.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.portfolio-card {
    border-radius: 16px;
    overflow: hidden;
    cursor: default;
}

.portfolio-card.glass-card:hover {
    transform: none;
}

.portfolio-card__img-wrap {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #eef3ee;
}

.portfolio-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 0.5s ease;
}

.portfolio-card__img--contain {
    object-fit: contain;
    padding: 1.25rem;
}

.portfolio-card__img-wrap--logo {
    background: linear-gradient(160deg, #eef3ff 0%, #dbe4ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-card__img--logo {
    width: 42%;
    height: auto;
    max-height: 58%;
    object-fit: contain;
    padding: 0;
    border-radius: 22%;
    box-shadow: 0 14px 36px rgba(37, 99, 235, 0.28);
}

.portfolio-card__body {
    padding: 1.5rem;
}

.portfolio-card__cat {
    font-size: 0.85rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.portfolio-card__title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 0.65rem;
}

.portfolio-card__summary {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ========== Contact / Mini chat ========== */
.mini-chat {
    max-width: 720px;
    margin-top: 0.5rem;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 460px;
    max-height: 580px;
}

.mini-chat__header {
    padding: 1.15rem 1.35rem;
    border-bottom: 1px solid var(--border);
}

.mini-chat__identity {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.mini-chat__avatar,
.mini-chat-msg__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    flex-shrink: 0;
}

.mini-chat-msg__avatar {
    width: 32px;
    height: 32px;
    font-size: 0.8rem;
}

.mini-chat__title {
    font-weight: 600;
    line-height: 1.2;
}

.mini-chat__status {
    font-size: 0.8rem;
    color: var(--success);
}

.mini-chat__messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem 1.35rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mini-chat-msg {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.mini-chat-msg--user {
    flex-direction: row-reverse;
}

.mini-chat-msg--user .mini-chat-msg__avatar {
    background: rgba(99, 102, 241, 0.35);
}

.mini-chat-msg__bubble {
    max-width: 80%;
    padding: 0.9rem 1rem;
    border-radius: 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
}

.mini-chat-msg--bot .mini-chat-msg__bubble {
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.2);
}

.mini-chat-msg__bubble p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    white-space: pre-wrap;
}

.mini-chat-msg__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.75rem;
}

.mini-chat-msg__actions button {
    padding: 0.5rem 0.9rem;
    border-radius: 10px;
    border: none;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}

.mini-chat-msg__actions button[data-action="accept"] {
    background: var(--primary);
    color: #fff;
}

.mini-chat-msg__actions button[data-action="decline"] {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.mini-chat-msg--typing .mini-chat-msg__bubble p {
    letter-spacing: 0.2em;
    color: var(--text-tertiary);
}

.mini-chat__composer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-top: 1px solid var(--border);
}

.mini-chat__composer input {
    flex: 1;
    padding: 0.85rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
}

.mini-chat__composer input:focus {
    outline: none;
    border-color: var(--primary);
}

.mini-chat__send {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.mini-chat__send:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.mini-chat__send:disabled {
    opacity: 0.5;
    cursor: default;
    transform: none;
}

.mini-chat__email {
    margin-top: 1.25rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.mini-chat__email a {
    color: var(--text-primary);
    font-weight: 600;
    text-decoration: none;
}

.mini-chat__email a:hover {
    color: var(--primary);
}

.contact-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.55);
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.contact-modal.is-open {
    display: flex;
}

.contact-modal__panel {
    width: min(500px, 100%);
    padding: 1.75rem;
    border-radius: 20px;
}

.contact-modal__title {
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
}

.contact-modal form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.contact-modal input,
.contact-modal textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
}

.contact-modal input:focus,
.contact-modal textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.contact-modal textarea {
    resize: vertical;
    min-height: 110px;
}

.contact-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

.contact-modal__btn {
    padding: 0.75rem 1.15rem;
    border-radius: 12px;
    border: none;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
}

.contact-modal__btn--ghost {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.contact-modal__btn--primary {
    background: var(--primary);
    color: #fff;
}

.contact-modal__status {
    display: none;
    margin-top: 0.85rem;
    font-size: 0.9rem;
}

.contact-modal__status.is-visible {
    display: block;
}

/* ========== Side Navigation (Desktop Right) ========== */
.side-nav {
    position: fixed;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex; /* Always flex on desktop */
    flex-direction: column;
    gap: 0.75rem;
    z-index: 50;
    border-radius: 24px;
    padding: 1rem 0.75rem;
}

.side-nav__btn {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.side-nav__btn:hover,
.side-nav__btn.active {
    color: white;
    background: var(--primary);
}

.side-nav__tooltip {
    position: absolute;
    right: calc(100% + 1rem);
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 0.625rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    white-space: nowrap;
    font-size: 0.875rem;
    font-weight: 600;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.side-nav__btn:hover .side-nav__tooltip {
    opacity: 1;
}

/* ========== Bottom Navigation (Mobile Only) ========== */
.bottom-nav {
    display: none; /* Hidden by default on desktop */
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    border-radius: 24px;
    padding: 0.75rem 1rem;
    width: calc(100% - 3rem);
    max-width: 500px;
}

/* Only show on mobile */
@media (max-width: 992px) {
    .bottom-nav {
        display: block;
    }
}

.bottom-nav__inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.bottom-nav__btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.bottom-nav__btn.active {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.bottom-nav__btn svg {
    width: 20px;
    height: 20px;
}

/* ========== Responsive ========== */
@media (max-width: 1400px) {
    .app-layout {
        padding: 2rem 7.5rem 2rem 1.5rem;
        gap: 1.5rem;
    }
    
    .sidebar {
        width: 280px;
        padding: 2rem 1.5rem;
    }
    
    .main-content {
        padding: 2rem 2.5rem;
    }
    
    .side-nav {
        right: 1.25rem;
    }
}

@media (max-width: 1200px) {
    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero__heading {
        font-size: 3.5rem;
    }
    
    .app-layout {
        padding: 2rem 7.25rem 2rem 1.25rem;
    }
    
    .sidebar {
        width: 260px;
        padding: 1.75rem 1.25rem;
    }
    
    .main-content {
        padding: 2rem;
    }
}

@media (max-width: 992px) {
    html, body {
        height: auto;
    }

    body {
        overflow-x: hidden;
        overflow-y: auto;
    }

    .app-wrapper {
        height: auto;
        overflow: visible;
    }

    /* Show mobile header */
    .mobile-header {
        display: flex;
    }
    
    /* Hide desktop sidebar, show mobile sidebar instead */
    .sidebar {
        display: none !important;
    }
    
    .sidebar-mobile {
        display: block;
    }
    
    /* Adjust layout for mobile */
    .app-layout {
        height: auto;
        padding: 5rem 1rem 6rem;
    }
    
    .main-content {
        height: auto;
        padding: 2rem 1.5rem;
        margin-left: 0;
        margin-right: 0;
        overflow: visible;
    }

    .section.hero {
        min-height: auto;
    }
    
    /* Hide desktop right nav */
    .side-nav {
        display: none !important;
    }
    
    .hero__heading {
        font-size: 2.75rem;
        line-height: 1.2;
    }
    
    .hero__desc {
        font-size: 1.125rem;
    }
    
    .section__heading {
        font-size: 2rem;
    }
    
    /* Force all grids to single column */
    .about__info-grid,
    .services-grid,
    .skills-grid,
    .portfolio-grid,
    .achievements-grid,
    .achievements-grid--two,
    .press-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    /* Timeline adjustments */
    .timeline-item {
        padding-left: 2rem;
    }
    
    .timeline-item__title {
        font-size: 1.25rem;
    }
    
    /* Service cards */
    .service-card {
        padding: 1.5rem;
    }
    
    .service-card__title {
        font-size: 1rem;
    }
    
    .service-card__desc {
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .app-layout {
        padding: 4.5rem 0.75rem 6rem;
    }
    
    .main-content {
        padding: 1.5rem 1rem;
    }
    
    .hero__heading {
        font-size: 2.25rem;
        line-height: 1.3;
        margin-bottom: 1.5rem;
    }
    
    .hero__desc {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .section__heading {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }
    
    .section__icon {
        font-size: 1.5rem;
    }
    
    .section {
        min-height: auto;
        padding: 2.5rem 0;
    }
    
    /* About section */
    .about__text {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .about__info-grid {
        gap: 1rem;
    }
    
    .about__info-item {
        padding: 0.75rem 0;
    }
    
    /* Services */
    .services-grid {
        gap: 1.25rem;
    }
    
    .service-card {
        padding: 1.25rem 1rem;
    }
    
    .service-card__icon {
        width: 40px;
        height: 40px;
        margin-bottom: 1rem;
    }
    
    .service-card__title {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
    
    .service-card__desc {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    /* Timeline */
    .timeline-item {
        padding-left: 1.75rem;
        padding-bottom: 2rem;
    }
    
    .timeline-item__period {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }
    
    .timeline-item__title {
        font-size: 1.125rem;
        margin-bottom: 0.25rem;
    }
    
    .timeline-item__company {
        font-size: 0.875rem;
    }
    
    .timeline-item__desc {
        font-size: 0.9rem;
    }
    
    /* Skills */
    .skills-grid {
        gap: 2rem;
    }
    
    .skill__header {
        margin-bottom: 0.5rem;
    }
    
    .skill__name {
        font-size: 0.9rem;
    }
    
    .skill__pct {
        font-size: 0.8rem;
    }
    
    .skill__bar {
        height: 6px;
        margin-bottom: 1.25rem;
    }
    
    /* Portfolio */
    .portfolio-filters {
        gap: 0.75rem;
    }
    
    .portfolio-filter {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .portfolio-grid {
        gap: 1.25rem;
    }
    
    .portfolio-card__body {
        padding: 1.25rem;
    }
    
    .portfolio-card__cat {
        font-size: 0.75rem;
    }
    
    .portfolio-card__title {
        font-size: 1rem;
    }
    
    .achievements-group__title {
        font-size: 1.125rem;
    }

    .achievement-card,
    .press-card {
        padding: 1.25rem 1.1rem;
    }

    .press-card__quote {
        font-size: 1rem;
    }
    
    .mini-chat {
        min-height: 400px;
        max-height: 520px;
    }

    /* Resume sub-heading */
    .resume__sub-heading {
        font-size: 1.25rem;
        margin: 2.5rem 0 1.5rem 0;
    }
}

@media (max-width: 576px) {
    .app-layout {
        padding: 4.5rem 0.5rem 6rem;
    }
    
    .main-content {
        padding: 1.25rem 0.875rem;
    }
    
    .hero__heading {
        font-size: 1.875rem;
        line-height: 1.3;
    }
    
    .hero__label {
        font-size: 0.7rem;
        margin-bottom: 1rem;
    }
    
    .hero__desc {
        font-size: 0.95rem;
    }
    
    .section__heading {
        font-size: 1.5rem;
    }
    
    .section {
        padding: 2rem 0;
    }
    
    .sidebar-mobile {
        width: 280px;
    }
    
    /* Make service cards even more compact on very small screens */
    .service-card {
        padding: 1rem 0.875rem;
    }
    
    .service-card__icon {
        width: 36px;
        height: 36px;
    }
    
    .service-card__title {
        font-size: 0.9rem;
    }
    
    .service-card__desc {
        font-size: 0.8rem;
    }
    
    /* Timeline more compact */
    .timeline-item {
        padding-left: 1.5rem;
    }
    
    .timeline-item__title {
        font-size: 1rem;
    }
    
    /* Bottom nav more compact */
    .bottom-nav {
        padding: 0.5rem 0.75rem;
    }
    
    .bottom-nav__btn {
        font-size: 0.65rem;
        padding: 0.375rem 0.5rem;
    }
    
    .bottom-nav__btn svg {
        width: 18px;
        height: 18px;
    }
}

/* ========== Utilities ========== */
.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

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