/* ==========================================================================
   STITCH PREMIUM DESIGN SYSTEM (LIGHT & DARK MODES).
   ========================================================================== */

:root, [data-theme="light"] {
    --bg-main: #f1f5f9;
    --bg-secondary: #ffffff;
    --bg-hero-gradient: radial-gradient(circle at 15% 15%, rgba(219, 234, 254, 0.8) 0%, transparent 50%),
                        radial-gradient(circle at 85% 75%, rgba(224, 231, 255, 0.8) 0%, transparent 50%),
                        linear-gradient(180deg, #eef4ff 0%, #f8fafc 100%);
    --text-primary: #0f172a;
    --text-secondary: #1e293b; /* Crisp dark slate for maximum readability in Light Mode */
    --text-muted: #334155;
    --accent-primary: #1d4ed8;
    --accent-secondary: #2563eb;
    --accent-gradient: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 50%, #60a5fa 100%);
    --pill-bg: rgba(255, 255, 255, 0.85);
    --pill-border: rgba(255, 255, 255, 0.95);
    --pill-shadow: 0 10px 25px rgba(37, 99, 235, 0.1);
    --glass-card-bg: rgba(255, 255, 255, 0.9);
    --glass-card-border: rgba(255, 255, 255, 0.98);
    --glass-card-shadow: 0 20px 50px rgba(160, 190, 240, 0.22), 0 8px 20px rgba(0, 0, 0, 0.04);
    --avatar-bg: linear-gradient(135deg, #dbeafe, #bfdbfe);
    --avatar-icon: #1d4ed8;
    --avatar-glow: radial-gradient(circle at center, rgba(147, 197, 253, 0.6) 0%, rgba(219, 234, 254, 0.3) 60%, transparent 80%);
    --btn-primary-bg: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
    --btn-primary-text: #ffffff;
    --btn-primary-shadow: 0 8px 20px rgba(29, 78, 216, 0.3);
    --btn-secondary-bg: rgba(255, 255, 255, 0.85);
    --btn-secondary-text: #1d4ed8;
    --btn-secondary-border: rgba(29, 78, 216, 0.4);
    --social-bg: #ffffff;
    --social-border: rgba(29, 78, 216, 0.2);
    --social-text: #0f172a;
    --social-hover-bg: linear-gradient(135deg, #1d4ed8, #3b82f6);
    --social-hover-text: #ffffff;
    --tag-bg: rgba(29, 78, 216, 0.08);
    --tag-border: rgba(29, 78, 216, 0.2);
    --tag-text: #1e40af;
    --timeline-line: linear-gradient(180deg, #1d4ed8, #60a5fa, transparent);
    --timeline-marker-bg: #ffffff;
    --timeline-marker-border: #1d4ed8;
    --input-bg: #ffffff;
    --input-border: #cbd5e1;
    --input-focus: #1d4ed8;
    --toggle-bg: rgba(29, 78, 216, 0.1);
    --toggle-border: rgba(29, 78, 216, 0.25);
    --toggle-color: #1d4ed8;
    --footer-bg: #cbd5e1;
    --footer-text: #334155;
    --eyebrow-bg: rgba(29, 78, 216, 0.1);
    --eyebrow-text: #1e40af;
}

[data-theme="dark"] {
    --bg-main: #060611;
    --bg-secondary: #0c0c1d;
    --bg-hero-gradient: radial-gradient(ellipse at 20% 20%, #0d1b3e 0%, #060611 70%);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-primary: #00f2fe;
    --accent-secondary: #7f5af0;
    --accent-gradient: linear-gradient(135deg, #00f2fe 0%, #7f5af0 100%);
    --pill-bg: rgba(15, 15, 35, 0.85);
    --pill-border: rgba(255, 255, 255, 0.1);
    --pill-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    --glass-card-bg: rgba(15, 15, 35, 0.8);
    --glass-card-border: rgba(255, 255, 255, 0.1);
    --glass-card-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 242, 254, 0.15);
    --avatar-bg: linear-gradient(135deg, #0f172a, #1e293b);
    --avatar-icon: #00f2fe;
    --avatar-glow: radial-gradient(circle at center, rgba(0, 242, 254, 0.4) 0%, rgba(127, 90, 240, 0.2) 60%, transparent 80%);
    --btn-primary-bg: linear-gradient(135deg, #00f2fe 0%, #7f5af0 100%);
    --btn-primary-text: #000000;
    --btn-primary-shadow: 0 8px 25px rgba(0, 242, 254, 0.35);
    --btn-secondary-bg: rgba(255, 255, 255, 0.05);
    --btn-secondary-text: #00f2fe;
    --btn-secondary-border: rgba(0, 242, 254, 0.3);
    --social-bg: rgba(255, 255, 255, 0.04);
    --social-border: rgba(255, 255, 255, 0.1);
    --social-text: #94a3b8;
    --social-hover-bg: linear-gradient(135deg, #00f2fe, #7f5af0);
    --social-hover-text: #000000;
    --tag-bg: rgba(0, 242, 254, 0.08);
    --tag-border: rgba(0, 242, 254, 0.2);
    --tag-text: #00f2fe;
    --timeline-line: linear-gradient(180deg, #00f2fe, #7f5af0, transparent);
    --timeline-marker-bg: #060611;
    --timeline-marker-border: #00f2fe;
    --input-bg: rgba(255, 255, 255, 0.02);
    --input-border: rgba(255, 255, 255, 0.08);
    --input-focus: #00f2fe;
    --toggle-bg: rgba(255, 255, 255, 0.1);
    --toggle-color: #fbbf24;
    --footer-bg: #0c0c1d;
    --footer-text: #8892b0;
    --eyebrow-bg: rgba(0, 242, 254, 0.1);
    --eyebrow-text: #00f2fe;
}

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%;
}

html {
    scroll-behavior: smooth;
    width: 100%;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
}

body {
    font-family: 'Plus Jakarta Sans', 'Outfit', 'Inter', -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-main);
    width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    transition: background-color 0.4s ease, color 0.4s ease;
    position: relative;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    transition: color 0.4s ease;
    font-weight: 700;
}

p, li, span {
    color: var(--text-secondary);
    transition: color 0.4s ease;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    z-index: 10;
}

/* ==========================================================================
   ACCESSIBILITY UTILITIES
   ========================================================================== */

/* Screen-reader-only — visually hidden but readable by assistive tech */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Keyboard focus rings — visible only for keyboard navigation, not mouse */
:focus-visible {
    outline: 2px solid var(--accent-primary) !important;
    outline-offset: 2px !important;
    border-radius: 4px !important;
}

:focus:not(:focus-visible) {
    outline: none;
}

/* ==========================================================================
   GLOBAL FULL-PAGE PARTICLES (COVER ALL SECTIONS)
   ========================================================================== */

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
}

#particles-js canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    pointer-events: none;
}

/* Ambient Floating Blur Orbs */
.ambient-blur {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
}

.blur-1 {
    width: 400px;
    height: 400px;
    top: -50px;
    left: -80px;
    background: rgba(191, 219, 254, 0.6);
}

.blur-2 {
    width: 450px;
    height: 450px;
    bottom: -100px;
    right: -100px;
    background: rgba(224, 231, 255, 0.6);
}

[data-theme="dark"] .blur-1 {
    background: rgba(0, 242, 254, 0.15);
}

[data-theme="dark"] .blur-2 {
    background: rgba(127, 90, 240, 0.15);
}

/* ==========================================================================
   FLOATING PILL NAVIGATION BAR
   ========================================================================== */

.navbar-wrapper {
    position: fixed;
    top: 16px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 1000;
    padding: 0 20px;
}

.navbar {
    width: 100%;
    max-width: 900px;
    background: var(--pill-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--pill-border);
    border-radius: 9999px;
    box-shadow: var(--pill-shadow);
    padding: 6px 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 42px;
}

.nav-logo h2 {
    font-size: 1.2rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.4rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.88rem;
    padding: 5px 14px;
    border-radius: 9999px;
    transition: all 0.25s ease;
}

.nav-link:hover {
    color: var(--accent-primary);
    background: rgba(29, 78, 216, 0.08);
}

.nav-link.active {
    background: var(--accent-gradient);
    color: #ffffff !important;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.25);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.theme-toggle-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--toggle-bg);
    border: 1px solid var(--toggle-border);
    color: var(--toggle-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
}

.theme-toggle-btn:hover {
    transform: scale(1.1) rotate(15deg);
}

.theme-toggle-spin {
    animation: spinThemeIcon 0.5s ease-out;
}

@keyframes spinThemeIcon {
    0% { transform: rotate(0deg) scale(0.8); }
    50% { transform: rotate(180deg) scale(1.2); }
    100% { transform: rotate(360deg) scale(1); }
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
}

.bar {
    width: 22px;
    height: 2px;
    background-color: var(--text-primary);
    margin: 2px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* ==========================================================================
   MAIN HERO SECTION
   ========================================================================== */

.hero {
    min-height: auto;
    padding: 105px 0 45px;
    background: var(--bg-hero-gradient);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    transition: background 0.4s ease;
}

.hero-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-header-text {
    text-align: center;
    margin-bottom: 1.5rem;
}

.hero-main-title {
    font-size: 3.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    line-height: 1.1;
}

.hero-main-subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: -0.01em;
}

/* Stacked Frosted Glass Hero Card */
.hero-glass-card {
    background: var(--glass-card-bg);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--glass-card-border);
    border-radius: 24px;
    box-shadow: var(--glass-card-shadow);
    padding: 2.8rem 2.5rem;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 2.5rem;
    align-items: center;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-glass-card:hover {
    transform: translateY(-3px);
}

.eyebrow-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--eyebrow-bg);
    color: var(--eyebrow-text);
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.hero-card-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.hero-card-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.8rem;
    font-weight: 500;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.btn {
    padding: 11px 26px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid transparent;
}

.btn-primary {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    box-shadow: var(--btn-primary-shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(29, 78, 216, 0.4);
}

.btn-secondary {
    background: var(--btn-secondary-bg);
    color: var(--btn-secondary-text);
    border-color: var(--btn-secondary-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--accent-primary);
    color: #ffffff;
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.hero-social {
    display: flex;
    gap: 0.8rem;
}

.social-link {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--social-bg);
    border: 1px solid var(--social-border);
    color: var(--social-text);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social-link:hover {
    background: var(--social-hover-bg);
    color: var(--social-hover-text);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(29, 78, 216, 0.2);
}

.hero-card-right {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.avatar-glow-ring {
    position: absolute;
    width: 250px;
    height: 250px;
    background: var(--avatar-glow);
    border-radius: 50%;
    z-index: 0;
}

.hero-avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--avatar-bg);
    border: 4px solid var(--glass-card-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4.5rem;
    color: var(--avatar-icon);
    box-shadow: 0 15px 35px rgba(29, 78, 216, 0.15);
    position: relative;
    z-index: 1;
    animation: float 6s ease-in-out infinite;
}

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

/* ==========================================================================
   SECTIONS & GAPS (TIGHT & BALANCED PADDING)
   ========================================================================== */

section {
    padding: 55px 0;
    position: relative;
    z-index: 1;
    background-color: transparent !important;
    background: transparent !important;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 2.2rem;
    color: var(--text-primary);
    position: relative;
    letter-spacing: -0.02em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 55px;
    height: 4px;
    background: var(--accent-gradient);
    border-radius: 4px;
}

.section-header-center {
    text-align: center;
    margin-bottom: 2.2rem;
}

.section-subtitle {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-top: -1.5rem;
    margin-bottom: 2rem;
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */

.about {
    background-color: transparent !important;
}

.about-content {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 2.5rem;
    align-items: start;
}

.about-text p {
    font-size: 1.02rem;
    line-height: 1.75;
    color: var(--text-secondary);
    margin-bottom: 1.2rem;
    font-weight: 500;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.stat {
    background: var(--glass-card-bg);
    border: 1px solid var(--glass-card-border);
    border-radius: 18px;
    padding: 1.5rem 0.8rem;
    text-align: center;
    box-shadow: var(--pill-shadow);
    transition: transform 0.3s ease;
}

.stat:hover {
    transform: translateY(-4px);
}

.stat h3 {
    font-size: 2.1rem;
    font-weight: 800;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.2rem;
}

.stat p {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.about-card {
    background: var(--glass-card-bg);
    border: 1px solid var(--glass-card-border);
    border-left: 4px solid var(--accent-primary);
    border-radius: 18px;
    padding: 1.8rem;
    box-shadow: var(--pill-shadow);
}

.card-icon {
    font-size: 1.8rem;
    color: var(--accent-primary);
    margin-bottom: 0.8rem;
}

.about-card h4 {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 0.6rem;
    color: var(--text-primary);
}

.education-degree {
    font-size: 0.95rem;
    color: var(--text-primary) !important;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.education-college {
    font-size: 0.92rem;
    color: var(--text-secondary) !important;
    font-weight: 500;
    margin-bottom: 0.4rem;
}

.stat-highlight {
    color: var(--accent-primary) !important;
    font-weight: 700;
}

/* ==========================================================================
   SKILLS SECTION
   ========================================================================== */

.skills {
    background-color: transparent !important;
    background: transparent !important;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.skill-category {
    background: var(--glass-card-bg);
    border: 1px solid var(--glass-card-border);
    border-radius: 18px;
    padding: 1.6rem;
    box-shadow: var(--pill-shadow);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-4px);
    border-color: var(--accent-primary);
}

.skill-category h3 {
    font-size: 1.18rem;
    font-weight: 800;
    color: var(--accent-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: var(--tag-bg);
    border: 1px solid var(--tag-border);
    color: var(--tag-text);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.25s ease;
}

.skill-tag:hover {
    background: var(--accent-gradient);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.25);
}

/* ==========================================================================
   EXPERIENCE SECTION
   ========================================================================== */

.experience {
    background-color: transparent !important;
    background: transparent !important;
}

.timeline {
    position: relative;
    max-width: 850px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--timeline-line);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 2.2rem;
    width: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 2rem;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 2rem;
}

.timeline-marker {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--timeline-marker-bg);
    border: 4px solid var(--timeline-marker-border);
    border-radius: 50%;
    top: 5px;
    box-shadow: 0 0 12px var(--accent-primary);
    z-index: 2;
}

.timeline-item:nth-child(odd) .timeline-marker {
    right: -8px;
}

.timeline-item:nth-child(even) .timeline-marker {
    left: -8px;
}

.timeline-content {
    background: var(--glass-card-bg);
    border: 1px solid var(--glass-card-border);
    border-radius: 18px;
    padding: 1.6rem;
    box-shadow: var(--glass-card-shadow);
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-3px);
}

.timeline-content h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.timeline-content h4 {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 0.5rem;
}

.timeline-date {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.timeline-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1rem;
}

.timeline-content li {
    position: relative;
    padding-left: 1.1rem;
    margin-bottom: 0.4rem;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--text-secondary);
    font-weight: 500;
}

.timeline-content li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: bold;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] .timeline-tags {
    border-top-color: rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   PROJECTS SECTION
   ========================================================================== */

.projects {
    background-color: transparent !important;
    background: transparent !important;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.project-card {
    background: var(--glass-card-bg);
    border: 1px solid var(--glass-card-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--glass-card-shadow);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.35s ease;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 60px rgba(29, 78, 216, 0.18);
}

/* Featured project card — Drobe */
.project-card--featured {
    border-top: 2px solid var(--accent-primary);
    position: relative;
}

.project-card--featured::before {
    content: '★ Flagship';
    position: absolute;
    top: 12px;
    right: 14px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #6d28d9, #ec4899);
    padding: 3px 10px;
    border-radius: 20px;
    z-index: 2;
}

.project-card--featured:hover {
    box-shadow: 0 25px 60px rgba(109, 40, 217, 0.22);
}

.project-image--drobe {
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.18) 0%, rgba(236, 72, 153, 0.22) 100%) !important;
    color: #c084fc !important;
}

.project-image {
    height: 160px;
    background: linear-gradient(135deg, rgba(29, 78, 216, 0.1) 0%, rgba(96, 165, 250, 0.2) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.2rem;
    color: var(--accent-primary);
    border-bottom: 1px solid var(--glass-card-border);
}

.project-content {
    padding: 1.6rem;
}

.project-content h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.project-company {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--accent-primary);
    margin-bottom: 0.8rem;
}

.project-content p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.2rem;
    font-weight: 500;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.2rem;
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-link {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--accent-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.25s ease;
}

.project-link:hover {
    color: var(--accent-secondary);
    transform: translateX(3px);
}

/* ==========================================================================
   CONTACT SECTION (HIGH VISIBILITY & RESPONSIVE ON MOBILE)
   ========================================================================== */

.contact {
    background-color: transparent !important;
    background: transparent !important;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2.5rem;
    align-items: start;
}

.contact-info h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}

.contact-info p {
    font-size: 1.02rem;
    color: var(--text-secondary);
    margin-bottom: 1.8rem;
    font-weight: 500;
}

.contact-details {
    margin-bottom: 1.8rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-item i {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--tag-bg);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.contact-item span {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.98rem;
}

.contact-social {
    display: flex;
    gap: 0.8rem;
}

.contact-form {
    background: var(--glass-card-bg);
    border: 1px solid var(--glass-card-border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--glass-card-shadow);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.form-group {
    margin-bottom: 1.1rem;
    width: 100%;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9rem 1.1rem;
    border: 1px solid var(--input-border);
    border-radius: 12px;
    background: var(--input-bg);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    font-weight: 500;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.8;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--input-focus);
    box-shadow: 0 0 12px rgba(29, 78, 216, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 110px;
}

.recaptcha-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    overflow: hidden;
    margin: 0.5rem 0;
}

.g-recaptcha {
    transform: scale(0.95);
    transform-origin: center;
}

/* ==========================================================================
   SECURITY RECAPTCHA MODAL (UX PERSPECTIVE)
   ========================================================================== */

.captcha-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10005;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.captcha-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 6, 17, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.captcha-modal-content {
    position: relative;
    z-index: 2;
    width: 90%;
    max-width: 420px;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-card-border);
    border-radius: 24px;
    padding: 2.2rem 1.8rem 1.8rem;
    box-shadow: var(--glass-card-shadow);
    text-align: center;
    transform: scale(0.88) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.captcha-modal-close {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(125, 125, 125, 0.1);
    border: 1px solid var(--tag-border);
    color: var(--text-secondary);
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.captcha-modal-close:hover {
    background: var(--accent-primary);
    color: #ffffff;
    border-color: var(--accent-primary);
    transform: rotate(90deg);
}

.captcha-modal-header {
    margin-bottom: 1.2rem;
}

.captcha-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1rem;
    box-shadow: 0 8px 20px rgba(0, 242, 254, 0.25);
}

.captcha-modal-header h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.captcha-modal-header p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.captcha-modal-body {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 1rem 0;
    min-height: 78px;
}

.captcha-modal-footer {
    margin-top: 1.2rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--input-border);
}

.captcha-modal-footer p {
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
    background-color: transparent !important;
    background: transparent !important;
    color: var(--footer-text);
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
}

.footer p {
    color: var(--footer-text);
    font-weight: 600;
    font-size: 0.92rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN (PERFECT ON ALL DEVICES)
   ========================================================================== */

@media (max-width: 1024px) {
    .hero-main-title {
        font-size: 3rem;
    }

    .hero-glass-card {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2.2rem;
        text-align: center;
    }

    .hero-card-left {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-social {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    section {
        padding: 40px 0;
    }

    .navbar-wrapper {
        top: 10px;
        padding: 0 10px;
    }

    .navbar {
        padding: 6px 14px;
        border-radius: 20px;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 65px;
        flex-direction: column;
        background: var(--pill-bg);
        backdrop-filter: blur(20px);
        border: 1px solid var(--pill-border);
        border-radius: 18px;
        width: calc(100% - 30px);
        max-width: 380px;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: var(--glass-card-shadow);
        padding: 1.2rem;
        gap: 0.6rem;
    }

    .nav-menu.active {
        left: 15px;
    }

    .hero {
        padding: 90px 0 35px;
    }

    .hero-main-title {
        font-size: 2.4rem;
    }

    .hero-main-subtitle {
        font-size: 1.05rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }

    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.8rem;
    }

    .stat {
        padding: 1.2rem 0.5rem;
    }

    .stat h3 {
        font-size: 1.8rem;
    }

    .timeline::before {
        left: 18px;
    }

    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding-left: 3rem;
        padding-right: 0;
        margin-bottom: 1.8rem;
    }

    .timeline-marker {
        left: 9px !important;
    }

    /* Contact Section Mobile Fixes */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 1.8rem;
    }

    .contact-info {
        text-align: center;
    }

    .contact-details {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .contact-item {
        justify-content: center;
        text-align: center;
        word-break: break-word;
    }

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

    .contact-form {
        padding: 1.4rem 1rem;
        margin: 0 auto;
    }

    .g-recaptcha {
        transform: scale(0.85);
        transform-origin: center;
    }
}

@media (max-width: 480px) {
    .hero-main-title {
        font-size: 2rem;
    }

    .hero-glass-card {
        padding: 1.6rem 1rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .hero-avatar {
        width: 160px;
        height: 160px;
        font-size: 3.8rem;
    }

    .avatar-glow-ring {
        width: 200px;
        height: 200px;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .contact-form {
        padding: 1.2rem 0.8rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 16px;
        padding: 0.8rem;
    }

    .g-recaptcha {
        transform: scale(0.76);
        transform-origin: center;
    }
}

/* ==========================================================================
   STITCH SCREEN 2 (DEFAULT HERO HOME) LAYOUT STYLES
   ========================================================================== */
/* Body Home View Rule */
body.home-view-active {
    overflow-x: hidden;
}

.hero-stitch-screen2 {
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    padding-top: max(env(safe-area-inset-top), 24px);
    padding-bottom: max(env(safe-area-inset-bottom), 24px);
    padding-left: 16px;
    padding-right: 16px;
    background: transparent !important;
    text-align: center;
    box-sizing: border-box;
    z-index: 2;
}

.bg-watermark {
    position: absolute;
    font-size: 20vw;
    font-weight: 900;
    color: rgba(15, 23, 42, 0.035);
    letter-spacing: 15px;
    user-select: none;
    z-index: 1;
    pointer-events: none;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
}

[data-theme="dark"] .bg-watermark {
    color: rgba(255, 255, 255, 0.03);
}

.screen2-hero-layout {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    min-height: 0;
    width: 100%;
    max-width: 850px;
    position: relative;
    z-index: 10;
    box-sizing: border-box;
}

.hero-top-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 6px;
}

.hero-center-group {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px 0;
}

.hero-bottom-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-bottom: 6px;
}

.greeting-tag {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 4px;
}

.screen2-headline {
    font-size: 3.4rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -1.5px;
    line-height: 1.1;
}

.avatar-memoji-container {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
    border: 4px solid var(--pill-border);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease;
    background: linear-gradient(180deg, rgba(241, 245, 249, 0.8) 0%, rgba(226, 232, 240, 0.8) 100%);
    flex-shrink: 0;
}

.avatar-memoji-container:hover {
    transform: scale(1.06) translateY(-4px);
    box-shadow: 0 25px 55px rgba(37, 99, 235, 0.2);
}

.avatar-memoji-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ai-search-box {
    width: 100%;
    max-width: 500px;
    background: var(--pill-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--pill-border);
    border-radius: 50px;
    padding: 8px 12px 8px 24px;
    display: flex;
    align-items: center;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.06);
    margin-bottom: 14px;
    transition: box-shadow 0.25s, border-color 0.25s, transform 0.25s;
}

.ai-search-box:focus-within {
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.18);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.ai-search-box input {
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    font-size: 1.05rem;
    color: var(--text-primary);
    font-family: inherit;
}

.ai-search-box input::placeholder {
    color: var(--text-muted);
}

.ai-search-btn {
    width: 42px;
    height: 42px;
    background: var(--accent-gradient);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: background 0.2s, transform 0.2s;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.ai-search-btn:hover {
    transform: scale(1.08);
}

/* AI Suggestion Micro-Prompt Row */
.ai-suggestions-prompt {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.prompt-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.prompt-pill {
    background: var(--pill-bg);
    border: 1px solid var(--pill-border);
    color: var(--text-secondary);
    padding: 4px 14px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    font-family: inherit;
}

.prompt-pill:hover {
    background: var(--accent-gradient);
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.bottom-dock-nav {
    background: var(--pill-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--pill-border);
    box-shadow: var(--pill-shadow);
    border-radius: 24px;
    padding: 10px 20px;
    display: flex;
    flex-wrap: nowrap !important;
    gap: 14px;
    justify-content: center;
    align-items: center;
    white-space: nowrap;
    width: 100%;
    max-width: 540px;
    box-sizing: border-box;
}

.dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 16px;
    transition: all 0.25s ease;
    font-size: 0.85rem;
    font-weight: 600;
    gap: 6px;
    min-width: 0;
    flex: 1;
}

.dock-item i {
    font-size: 1.35rem;
    color: var(--text-muted);
    transition: color 0.25s, transform 0.25s;
}

.dock-item:hover, .dock-item.active {
    background: rgba(29, 78, 216, 0.08);
    color: var(--accent-primary);
}

[data-theme="dark"] .dock-item:hover,
[data-theme="dark"] .dock-item.active {
    background: rgba(0, 242, 254, 0.12);
    color: var(--accent-primary);
}

.dock-item:hover i, .dock-item.active i {
    color: var(--accent-primary);
    transform: translateY(-3px);
}

/* AI Interactive Chatbot Thread Container */
.ai-chat-thread-container {
    width: 100%;
    max-width: 520px;
    height: 320px;
    background: var(--pill-bg);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--pill-border);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: 10px 0 16px 0;
    animation: chatSlideIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    z-index: 15;
}

@keyframes chatSlideIn {
    from { opacity: 0; transform: translateY(15px) scale(0.96); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.ai-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.4);
    border-bottom: 1px solid var(--pill-border);
    backdrop-filter: blur(12px);
}

[data-theme="dark"] .ai-chat-header {
    background: rgba(255, 255, 255, 0.05);
}

.ai-chat-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ai-chat-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--accent-primary);
    flex-shrink: 0;
}

.ai-chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ai-chat-title h4 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.ai-chat-title .status {
    font-size: 0.7rem;
    color: #10b981;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px #10b981;
}

.close-chat-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.close-chat-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
}

.ai-chat-messages {
    flex: 1;
    padding: 14px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    scroll-behavior: smooth;
}

.chat-bubble {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 0.85rem;
    line-height: 1.5;
    word-wrap: break-word;
    animation: bubblePop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes bubblePop {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.chat-bubble.user-bubble {
    align-self: flex-end;
    background: var(--accent-gradient);
    color: #ffffff;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
    text-align: left;
}

.chat-bubble.ai-bubble {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--pill-border);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    text-align: left;
}

[data-theme="dark"] .chat-bubble.ai-bubble {
    background: rgba(255, 255, 255, 0.07);
}

.chat-bubble.typing-bubble {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
}

.typing-dot {
    width: 6px;
    height: 6px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

/* Copy Email Button & Contact Enhancements */
.contact-item-copy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.copy-email-btn {
    background: var(--eyebrow-bg);
    color: var(--accent-primary);
    border: 1px solid var(--tag-border);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    margin-left: 10px;
    transition: all 0.2s ease;
}

.copy-email-btn:hover {
    background: var(--accent-primary);
    color: #ffffff;
    transform: scale(1.08);
}

/* Project Category Filter Pills */
.project-filters {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 35px;
    flex-wrap: wrap;
}

.filter-btn {
    background: var(--pill-bg);
    border: 1px solid var(--pill-border);
    color: var(--text-secondary);
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}

.filter-btn:hover, .filter-btn.active {
    background: var(--accent-gradient);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.25);
}



@media (max-width: 768px) {
    .hero-stitch-screen2 {
        padding: 40px 16px 20px 16px;
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
    }

    .screen2-hero-layout {
        flex: 1;
        min-height: 0;
    }

    .hero-top-controls {
        top: 14px;
        right: 16px;
    }

    .hero-theme-toggle {
        width: 36px;
        height: 36px;
        font-size: 0.85rem;
    }

    .brand-logo-badge {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
        margin-bottom: 10px;
        border-radius: 14px;
    }

    .greeting-tag {
        font-size: 1rem;
        margin-bottom: 4px;
    }

    .screen2-headline {
        font-size: 2.5rem;
        margin: 0 0 16px 0;
        letter-spacing: -1px;
    }

    .avatar-memoji-container {
        width: 150px;
        height: 150px;
        margin-bottom: 18px;
        border-width: 4px;
    }

    .ai-search-box {
        margin-bottom: 10px;
        padding: 6px 8px 6px 16px;
    }

    .ai-search-box input {
        font-size: 0.9rem;
    }

    .ai-search-btn {
        width: 34px;
        height: 34px;
        font-size: 0.82rem;
    }

    .ai-suggestions-prompt {
        margin-bottom: 16px;
        gap: 6px;
    }

    .prompt-label {
        font-size: 0.72rem;
    }

    .prompt-pill {
        padding: 3px 10px;
        font-size: 0.72rem;
    }

    .bottom-dock-nav {
        gap: 2px;
        padding: 6px 8px;
        border-radius: 20px;
        flex-wrap: nowrap !important;
        justify-content: space-around;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .dock-item {
        padding: 6px 4px;
        min-width: 0;
        flex: 1;
        font-size: 0.7rem;
        border-radius: 12px;
        gap: 2px;
    }

    .dock-item i {
        font-size: 1.05rem;
    }

    .dock-item span {
        font-size: 0.68rem;
        letter-spacing: -0.2px;
    }
}

/* ==========================================================================
   CLEAN HERO TOP CONTROLS & SPA VIEW CONTAINER
   ========================================================================== */
.hero-top-controls {
    position: absolute;
    top: 24px;
    right: 30px;
    z-index: 100;
}

.hero-theme-toggle {
    background: var(--pill-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--pill-border);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.app-view-container {
    width: 100%;
    min-height: 100vh;
    background: transparent;
    color: var(--text-primary);
    position: relative;
    z-index: 10;
    opacity: 0;
    transition: opacity 0.35s ease-in-out;
}

.app-view-container.active-view {
    opacity: 1;
}

/* Glassmorphic Breadcrumb Header Wrapper */
.breadcrumb-header-wrapper {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--pill-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--pill-border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 12px 24px;
}

.breadcrumb-header {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.breadcrumb-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.breadcrumb-back-btn {
    background: var(--eyebrow-bg);
    color: var(--accent-primary);
    border: 1px solid var(--tag-border);
    padding: 8px 18px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.breadcrumb-back-btn:hover {
    transform: translateX(-3px);
    background: var(--accent-primary);
    color: #ffffff;
}

.breadcrumb-path {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 500;
}

.path-root {
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.path-root:hover {
    color: var(--accent-primary);
}

.path-sep {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.path-current {
    color: var(--text-primary);
    font-weight: 700;
    text-transform: capitalize;
}

.breadcrumb-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.breadcrumb-nav-tabs {
    display: flex;
    gap: 8px;
}

.view-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.view-tab-btn:hover, .view-tab-btn.active {
    background: rgba(29, 78, 216, 0.1);
    color: var(--accent-primary);
}

[data-theme="dark"] .view-tab-btn:hover,
[data-theme="dark"] .view-tab-btn.active {
    background: rgba(0, 242, 254, 0.12);
    color: var(--accent-primary);
}

.view-content-body {
    padding: 40px 0 80px 0;
    min-height: 80vh;
}

/* Individual View Section Pages */
.view-section-page {
    display: none;
    background-color: transparent !important;
    background: transparent !important;
    animation: viewFadeIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.view-section-page.active-section {
    display: block;
}

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

@media (max-width: 768px) {
    .breadcrumb-header-wrapper {
        padding: 8px 12px;
    }

    .breadcrumb-header {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 0;
    }

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

    .breadcrumb-back-btn {
        padding: 5px 14px;
        font-size: 0.8rem;
        border-radius: 30px;
        gap: 5px;
    }

    .breadcrumb-path {
        font-size: 0.82rem;
        gap: 6px;
    }

    .breadcrumb-right {
        width: 100%;
        overflow: hidden;
    }

    .breadcrumb-nav-tabs {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        padding: 2px 0 4px 0;
        gap: 6px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .breadcrumb-nav-tabs::-webkit-scrollbar {
        display: none;
    }

    .view-tab-btn {
        padding: 5px 12px;
        font-size: 0.78rem;
        flex-shrink: 0;
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.05);
    }

    .view-content-body {
        padding: 20px 0 60px 0;
    }
}

/* ==========================================================================
   VIRTUAL SELF RAG FLOATING CHAT WIDGET STYLES
   ========================================================================== */

/* Floating Action Button (FAB) - Visible ONLY in inner section pages, hidden on Home */
body.home-view-active .rag-chat-fab {
    display: none !important;
}

.rag-chat-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 8px 8px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 40px;
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25), 0 0 20px rgba(0, 242, 254, 0.2);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    user-select: none;
}

[data-theme="light"] .rag-chat-fab {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.12);
    color: var(--text-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 0 20px rgba(29, 78, 216, 0.15);
}

.rag-chat-fab:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 15px 35px rgba(0, 242, 254, 0.35);
}

.rag-fab-avatar {
    position: relative;
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    flex-shrink: 0;
    border-radius: 50%;
    aspect-ratio: 1 / 1;
    overflow: visible;
}

.rag-fab-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
    display: block;
    border: 2px solid var(--accent-primary);
}

.rag-online-badge {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 10px;
    height: 10px;
    background: #10b981;
    border: 2px solid #0f172a;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
}

.rag-fab-text {
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.rag-fab-icon {
    font-size: 0.95rem;
    color: #4facfe;
    animation: pulseIcon 2s infinite ease-in-out;
}

@keyframes pulseIcon {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
}

/* Glassmorphic Backdrop Blur Overlay for Desktop ChatGPT View */
.rag-chat-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(6, 6, 17, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

[data-theme="light"] .rag-chat-backdrop {
    background: rgba(15, 23, 42, 0.4);
}

.rag-chat-backdrop.active {
    opacity: 1;
    visibility: visible;
}

/* Glassmorphic Chat Window Modal (ChatGPT Screen Overlay for Desktop) */
.rag-chat-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -46%) scale(0.96);
    width: 90vw;
    max-width: 920px;
    height: 82vh;
    max-height: 720px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 28px;
    box-shadow: 0 35px 95px rgba(0, 0, 0, 0.75), 0 0 50px rgba(0, 242, 254, 0.2);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="light"] .rag-chat-modal {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 35px 90px rgba(15, 23, 42, 0.2), 0 0 45px rgba(29, 78, 216, 0.15);
}

.rag-chat-modal.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* Header */
.rag-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 30px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .rag-chat-header {
    background: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.rag-header-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.rag-header-avatar {
    position: relative;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    aspect-ratio: 1 / 1;
}

.rag-header-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
    display: block;
    border: 2px solid var(--accent-primary);
}

.rag-status-dot {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 11px;
    height: 11px;
    background: #10b981;
    border: 2px solid #0f172a;
    border-radius: 50%;
}

.rag-header-text h3 {
    font-size: 1.12rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-color);
}

.rag-status-text {
    font-size: 0.76rem;
    color: var(--text-muted);
    margin: 2px 0 0 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.rag-status-text i {
    font-size: 0.5rem;
    color: #10b981;
}

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

.rag-action-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

[data-theme="light"] .rag-action-btn {
    background: rgba(0, 0, 0, 0.05);
}

.rag-action-btn:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
}

/* Chat Messages Container */
.rag-chat-messages {
    flex: 1;
    padding: 28px 36px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
    scrollbar-width: thin;
}

.rag-chat-messages::-webkit-scrollbar {
    width: 6px;
}
.rag-chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 4px;
}

/* Message Bubble */
.rag-msg {
    display: flex;
    gap: 12px;
    max-width: 820px;
    width: 100%;
}

.rag-msg-user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.rag-msg-ai {
    align-self: flex-start;
}

.rag-msg-avatar {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.rag-msg-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    aspect-ratio: 1 / 1;
    display: block;
    border: 1px solid var(--accent-primary);
}

.rag-msg-bubble {
    padding: 14px 18px;
    border-radius: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
    word-break: break-word;
}

.rag-msg-user .rag-msg-bubble {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    color: #ffffff;
    border-bottom-right-radius: 6px;
}

.rag-msg-ai .rag-msg-bubble {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-color);
    border-bottom-left-radius: 6px;
}

[data-theme="light"] .rag-msg-ai .rag-msg-bubble {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

/* Quick Prompt Chips */
.rag-quick-prompts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.rag-chip {
    padding: 7px 14px;
    border-radius: 14px;
    border: 1px solid rgba(0, 242, 254, 0.3);
    background: rgba(0, 242, 254, 0.08);
    color: var(--accent-primary);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rag-chip:hover {
    background: var(--accent-primary);
    color: #0f172a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 242, 254, 0.3);
}

/* Typing Indicator Animation */
.rag-typing {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
}

.rag-typing span {
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: ragBlink 1.4s infinite ease-in-out both;
}

.rag-typing span:nth-child(1) { animation-delay: -0.32s; }
.rag-typing span:nth-child(2) { animation-delay: -0.16s; }

@keyframes ragBlink {
    0%, 80%, 100% { transform: scale(0); opacity: 0.3; }
    40% { transform: scale(1); opacity: 1; }
}

/* Input Bar (Centered ChatGPT Style) */
.rag-chat-input-wrapper {
    display: flex;
    align-items: center;
    padding: 18px 30px;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    gap: 12px;
    position: relative;
}

/* Character counter for chatbot input */
.rag-char-counter {
    position: absolute;
    bottom: 10px;
    right: 60px;
    font-size: 0.68rem;
    color: var(--text-muted);
    pointer-events: none;
    transition: color 0.2s ease;
    opacity: 0.7;
}

[data-theme="light"] .rag-chat-input-wrapper {
    background: rgba(0, 0, 0, 0.03);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.rag-chat-input-wrapper input {
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    padding: 12px 20px;
    color: var(--text-color);
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s ease;
}

[data-theme="light"] .rag-chat-input-wrapper input {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.rag-chat-input-wrapper input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.25);
}

.rag-send-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #00f2fe, #4facfe);
    color: #0f172a;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.rag-send-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.4);
}

/* Mobile Screen Layout (<= 768px) */
@media (max-width: 768px) {
    .rag-chat-backdrop {
        background: rgba(0, 0, 0, 0.4);
    }

    .rag-chat-modal {
        position: fixed;
        bottom: 75px;
        right: 16px;
        left: auto;
        top: auto;
        transform: translateY(20px) scale(0.95);
        width: calc(100vw - 32px);
        height: 480px;
        max-height: calc(100vh - 100px);
        border-radius: 20px;
    }

    .rag-chat-modal.active {
        transform: translateY(0) scale(1);
    }

    .rag-chat-header {
        padding: 12px 16px;
    }

    .rag-header-avatar {
        width: 36px;
        height: 36px;
    }

    .rag-header-text h3 {
        font-size: 0.95rem;
    }

    .rag-chat-messages {
        padding: 14px;
        gap: 12px;
    }

    .rag-msg-bubble {
        padding: 10px 14px;
        font-size: 0.85rem;
    }

    .rag-chat-input-wrapper {
        padding: 12px 14px;
        gap: 8px;
    }

    .rag-chat-input-wrapper input {
        height: 40px;
        padding: 8px 14px;
        font-size: 0.85rem;
        border-radius: 20px;
    }

    .rag-send-btn {
        width: 38px;
        height: 38px;
        font-size: 0.88rem;
    }
}

@media (max-width: 480px) {
    .rag-chat-fab {
        bottom: 16px;
        right: 16px;
        padding: 6px 12px 6px 6px;
    }

    .rag-fab-text {
        font-size: 0.8rem;
    }

    .rag-chat-modal {
        bottom: 70px;
        right: 16px;
        width: calc(100vw - 32px);
        height: 460px;
    }
}




