/* ==========================================================================
   CSS CUSTOM PROPERTIES & BRUTALIST THEMES
   ========================================================================== */
:root {
    --font-heading: 'Clash Display', 'Outfit', sans-serif;
    --font-body: 'Satoshi', sans-serif;
    --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
}

/* Light Neo-Brutalist Theme (Warm Cream Base) */
html[data-theme="light"] {
    --bg-base: #FAF6EE;
    --bg-card: #FFFFFF;
    --text-primary: #1E1E1E;
    --text-secondary: #4A4A4A;
    --border-color: #1E1E1E;
    --shadow-color: #1E1E1E;
    
    /* Solid Cartoon Accents */
    --color-cyan: #5CE1E6;
    --color-blue: #38B6FF;
    --color-pink: #FF66C4;
    --color-yellow: #FFDE59;
    --color-orange: #FF914D;
    --color-green: #7ED957;
    
    --shape-opacity: 0.9;
}

/* Dark Neo-Brutalist Theme (Charcoal Base) */
html[data-theme="dark"] {
    --bg-base: #151518;
    --bg-card: #202025;
    --text-primary: #FAF6EE;
    --text-secondary: #A5A5AF;
    --border-color: #FAF6EE;
    --shadow-color: #FAF6EE;
    
    /* High-contrast Neo Accents */
    --color-cyan: #00F2FE;
    --color-blue: #4facfe;
    --color-pink: #FF007F;
    --color-yellow: #FFD000;
    --color-orange: #FF5E36;
    --color-green: #39FF14;
    
    --shape-opacity: 0.35;
}

/* Global Brutalist Metrics */
:root {
    --brutalist-border: 3.5px solid var(--border-color);
    --brutalist-shadow: 5px 5px 0px var(--shadow-color);
    --brutalist-shadow-hover: 8px 8px 0px var(--shadow-color);
    --brutalist-shadow-active: 2px 2px 0px var(--shadow-color);
}

/* ==========================================================================
   GLOBAL RESET & FONTS
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    scroll-behavior: smooth;
    transition: background-color 0.4s ease, color 0.4s ease;
    line-height: 1.5;
}

::selection {
    background-color: var(--color-yellow);
    color: #1E1E1E;
}

/* Custom Brutalist Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
    border-left: var(--brutalist-border);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-pink);
}

/* ==========================================================================
   3D CANVAS BACKGROUND & CARTOON SHAPES
   ========================================================================== */
#canvas3d {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

.cartoon-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border: var(--brutalist-border);
    box-shadow: 3.5px 3.5px 0px var(--shadow-color);
    opacity: var(--shape-opacity);
    animation: shape-drift 12s infinite ease-in-out;
    pointer-events: none;
}

.shape-circle {
    width: 55px;
    height: 55px;
    border-radius: 50%;
}

.shape-pill {
    width: 80px;
    height: 35px;
    border-radius: 99px;
}

.shape-square {
    width: 45px;
    height: 45px;
    transform: rotate(15deg);
}

.shape-cube {
    width: 50px;
    height: 50px;
    transform: rotate(-10deg);
}

.shape-block {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.35rem;
    border-radius: 8px;
    color: #1E1E1E;
    transform: rotate(5deg);
}

/* Drifting Animations */
@keyframes shape-drift {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(8deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.shape:nth-child(even) {
    animation-duration: 16s;
    animation-delay: -4s;
}

.shape-orange { background-color: var(--color-orange); }
.shape-blue { background-color: var(--color-blue); }
.shape-green { background-color: var(--color-green); }
.shape-pink { background-color: var(--color-pink); }
.shape-yellow { background-color: var(--color-yellow); }
.shape-cyan { background-color: var(--color-cyan); }

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--bg-base);
    border-bottom: var(--brutalist-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2.5rem;
}

.nav-brand-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-box {
    border: var(--brutalist-border);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.25rem;
    background-color: var(--color-yellow);
    box-shadow: 2.5px 2.5px 0px var(--shadow-color);
    border-radius: 8px;
    color: #1E1E1E;
}

.nav-brand-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.01em;
}

.nav-center {
    display: flex;
    gap: 1.75rem;
}

.nav-center a {
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--text-primary);
    position: relative;
    padding: 0.25rem 0;
}

.nav-center a:hover {
    color: var(--color-pink);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.theme-toggle-btn {
    border: var(--brutalist-border);
    background-color: var(--color-cyan);
    box-shadow: 2.5px 2.5px 0px var(--shadow-color);
    width: 38px;
    height: 38px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    cursor: pointer;
    color: #1E1E1E;
    transition: all 0.15s;
}

.theme-toggle-btn:hover {
    transform: translate(-1.5px, -1.5px);
    box-shadow: 4px 4px 0px var(--shadow-color);
}

.theme-toggle-btn:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px var(--shadow-color);
}

.desktop-social {
    display: flex;
    gap: 0.85rem;
}

.desktop-social a {
    color: var(--text-primary);
    font-size: 1.15rem;
    transition: color 0.15s, transform 0.15s;
}

.desktop-social a:hover {
    color: var(--color-pink);
    transform: translateY(-2px);
}

.hamburger {
    background: transparent;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--text-primary);
    display: none;
}

/* Mobile Nav Overlay */
.mobile-nav {
    position: fixed;
    top: 76px;
    left: 0;
    width: 100%;
    height: calc(100vh - 76px);
    background-color: var(--bg-base);
    z-index: 99;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    border-bottom: var(--brutalist-border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.mobile-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-nav a {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.mobile-nav a:hover {
    color: var(--color-pink);
}

/* ==========================================================================
   BRUTALIST CARDS (THE CORE SYSTEM)
   ========================================================================== */
.brutalist-card {
    background-color: var(--bg-card);
    border: var(--brutalist-border);
    box-shadow: var(--brutalist-shadow);
    border-radius: 12px;
    padding: 2.25rem;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease;
}

.brutalist-card:hover {
    transform: translate(-3px, -3px);
    box-shadow: var(--brutalist-shadow-hover);
}

/* ==========================================================================
   HERO / ABOUT SECTION
   ========================================================================== */
.hero-section {
    padding: 4.5rem 0;
}

.hero-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2.5rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 1025px) {
    .hero-container {
        grid-template-columns: 1.25fr 0.75fr;
    }
}

/* Welcome Card details */
.badge-pink {
    background-color: var(--color-pink);
    color: #FFFFFF;
    border: var(--brutalist-border);
    box-shadow: 2px 2px 0px var(--shadow-color);
    padding: 0.4rem 0.85rem;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    display: inline-block;
    border-radius: 6px;
    margin-bottom: 1.5rem;
}

.hero-main-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.separator-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: var(--brutalist-border);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 620px;
    line-height: 1.6;
}

.hero-btn-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 2.25rem;
}

.hero-grid-btn {
    display: block;
    border: var(--brutalist-border);
    box-shadow: var(--brutalist-shadow);
    padding: 0.85rem 1.5rem;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    text-align: center;
    border-radius: 8px;
    transition: all 0.15s ease;
}

.hero-grid-btn.btn-cyan {
    background-color: var(--color-cyan);
    color: #1E1E1E;
}

.hero-grid-btn.btn-blue {
    background-color: var(--color-blue);
    color: #1E1E1E;
}

.hero-grid-btn.btn-orange {
    background-color: var(--color-orange);
    color: #1E1E1E;
}

.hero-grid-btn.btn-green {
    background-color: var(--color-green);
    color: #1E1E1E;
}

.hero-grid-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--brutalist-shadow-hover);
}

.hero-grid-btn:active {
    transform: translate(1.5px, 1.5px);
    box-shadow: var(--brutalist-shadow-active);
}

/* Contact profile details card */
.hero-contact-card h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.contact-profile-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-profile-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.825rem;
}

.contact-profile-list .label {
    font-weight: 700;
    color: var(--text-primary);
    flex-shrink: 0;
    font-family: var(--font-body);
}

.contact-profile-list .dots {
    flex-grow: 1;
    border-bottom: 2px dashed var(--border-color);
    margin: 0 0.5rem;
    position: relative;
    top: 4px;
}

.contact-profile-list .value {
    font-weight: 500;
    color: var(--text-secondary);
    flex-shrink: 0;
    text-align: right;
    font-family: var(--font-body);
}

.contact-profile-list .value a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 700;
}

.contact-profile-list .value a:hover {
    color: var(--color-pink);
}

.download-cv-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    background-color: var(--color-yellow);
    border: var(--brutalist-border);
    box-shadow: var(--brutalist-shadow);
    border-radius: 8px;
    padding: 0.95rem;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    color: #1E1E1E;
    text-decoration: none;
    margin-top: 1.75rem;
    transition: all 0.15s;
}

.download-cv-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--brutalist-shadow-hover);
}

.download-cv-btn:active {
    transform: translate(1.5px, 1.5px);
    box-shadow: var(--brutalist-shadow-active);
}

/* ==========================================================================
   CONSOLES (CHAT BOT & PLAYGROUND)
   ========================================================================== */
.console-header {
    background-color: rgba(0, 0, 0, 0.05);
    border-bottom: var(--brutalist-border);
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

html[data-theme="dark"] .console-header {
    background-color: rgba(0, 0, 0, 0.2);
}

.console-controls {
    display: flex;
    gap: 0.5rem;
}

.console-controls .dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 1.5px solid var(--border-color);
}

.console-controls .dot.red { background-color: #ff5f56; }
.console-controls .dot.yellow { background-color: #ffbd2e; }
.console-controls .dot.green { background-color: #27c93f; }

.console-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 700;
}

.console-status {
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-green);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(126, 217, 87, 0.7);
    animation: blink 1.6s infinite;
}

@keyframes blink {
    0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(126, 217, 87, 0.5); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(126, 217, 87, 0); }
    100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(126, 217, 87, 0); }
}

.console-body {
    flex-grow: 1;
    padding: 1.25rem;
    overflow-y: auto;
    height: 300px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.console-input-area {
    padding: 1rem 1.25rem;
    border-top: var(--brutalist-border);
    background-color: rgba(0, 0, 0, 0.02);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Chat bubble styling */
.bot-msg, .user-msg {
    max-width: 80%;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: var(--brutalist-border);
    box-shadow: 2.5px 2.5px 0px var(--shadow-color);
    line-height: 1.4;
    font-size: 0.9rem;
    animation: msg-reveal 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.bot-msg {
    align-self: flex-start;
    background-color: var(--bg-card);
    border-bottom-left-radius: 1px;
}

.user-msg {
    align-self: flex-end;
    background-color: var(--color-cyan);
    color: #1E1E1E;
    border-bottom-right-radius: 1px;
}

@keyframes msg-reveal {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Chat Input field */
.console-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.chip-btn {
    border: var(--brutalist-border);
    background-color: var(--bg-card);
    border-radius: 99px;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.15s;
}

.chip-btn:hover {
    background-color: var(--color-pink);
    color: #FFFFFF;
    transform: translate(-1px, -1px);
    box-shadow: 2px 2px 0px var(--shadow-color);
}

.chat-form {
    display: flex;
    gap: 0.75rem;
}

.chat-form input {
    flex-grow: 1;
    border: var(--brutalist-border);
    border-radius: 8px;
    padding: 0.65rem 1rem;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.85rem;
    background-color: var(--bg-card);
    color: var(--text-primary);
}

.chat-form input:focus {
    outline: none;
    border-color: var(--color-pink);
}

.chat-submit-btn {
    border: var(--brutalist-border);
    background-color: var(--color-yellow);
    color: #1E1E1E;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.15s;
}

.chat-submit-btn:hover {
    transform: translate(-1.5px, -1.5px);
    box-shadow: 3px 3px 0px var(--shadow-color);
}

.chat-submit-btn:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px var(--shadow-color);
}

.chat-loading {
    display: flex;
    gap: 5px;
    padding: 0.25rem 0;
}

.chat-loading span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--text-primary);
    animation: chat-blink 1.4s infinite both;
}

.chat-loading span:nth-child(2) { animation-delay: .2s; }
.chat-loading span:nth-child(3) { animation-delay: .4s; }

@keyframes chat-blink {
    0% { opacity: .2; }
    20% { opacity: 1; }
    100% { opacity: .2; }
}

.chat-console-card {
    padding: 0;
    display: flex;
    flex-direction: column;
    max-width: 900px;
    margin: 0 auto;
    height: 480px;
}

/* ==========================================================================
   SECTIONS & HEADINGS
   ========================================================================== */
section {
    padding: 6rem 0;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

.section-title-box {
    margin-bottom: 3.5rem;
}

.section-heading {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    display: inline-block;
    border-bottom: 4px solid var(--color-cyan);
    padding-bottom: 0.5rem;
}

/* ==========================================================================
   PLAYGROUND SECTION
   ========================================================================== */
.playground-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3rem;
    align-items: flex-start;
}

.capabilities-cards {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cap-card {
    padding: 1.75rem;
}

.cap-icon {
    width: 44px;
    height: 44px;
    border: var(--brutalist-border);
    box-shadow: 2px 2px 0px var(--shadow-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
    color: #1E1E1E;
}

.pink-bg { background-color: var(--color-pink); }
.cyan-bg { background-color: var(--color-cyan); }
.orange-bg { background-color: var(--color-orange); }

.cap-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.cap-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Code terminal block */
.code-terminal-card {
    padding: 0;
    height: 460px;
    display: flex;
    flex-direction: column;
}

.run-pipeline-btn {
    border: var(--brutalist-border);
    background-color: var(--color-green);
    color: #1E1E1E;
    padding: 0.35rem 0.85rem;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.75rem;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.15s;
}

.run-pipeline-btn:hover {
    transform: translate(-1.5px, -1.5px);
    box-shadow: 2.5px 2.5px 0px var(--shadow-color);
}

.code-editor-body {
    background-color: rgba(0, 0, 0, 0.03);
    flex-grow: 1;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    padding: 1.5rem;
    line-height: 1.55;
    border-bottom: var(--brutalist-border);
}

html[data-theme="dark"] .code-editor-body {
    background-color: rgba(0, 0, 0, 0.25);
}

/* Syntax markers */
.keyword { color: #f92672; font-weight: 700; }
.function { color: #66d9ef; }
.string { color: #e6db74; }
.number { color: #ae81ff; }

.console-execution-output {
    background-color: rgba(0, 0, 0, 0.08);
    height: 120px;
    padding: 1rem 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    overflow-y: auto;
    color: var(--color-green);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}

html[data-theme="dark"] .console-execution-output {
    background-color: rgba(0, 0, 0, 0.4);
}

.output-placeholder {
    color: var(--text-muted);
}

.console-log-line {
    margin-bottom: 0.25rem;
    animation: console-write 0.15s ease-out forwards;
}

@keyframes console-write {
    from { opacity: 0; transform: translateX(-5px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ==========================================================================
   PROJECTS SHOWCASE
   ========================================================================== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 2.25rem;
}

.project-card {
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.project-img-wrapper {
    position: relative;
    aspect-ratio: 16/8;
    overflow: hidden;
    border-bottom: var(--brutalist-border);
    background-color: rgba(0, 0, 0, 0.05);
}

.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.project-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(250, 246, 238, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.25s ease;
}

html[data-theme="dark"] .project-hover-overlay {
    background-color: rgba(32, 32, 37, 0.9);
}

.project-card:hover .project-hover-overlay {
    opacity: 1;
}

.overlay-link-btn {
    border: var(--brutalist-border);
    background-color: var(--color-yellow);
    box-shadow: var(--brutalist-shadow);
    color: #1E1E1E;
    text-decoration: none;
    font-weight: 700;
    padding: 0.65rem 1.25rem;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.15s;
}

.overlay-link-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--brutalist-shadow-hover);
}

.project-info {
    padding: 1.15rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.tech-pill {
    border: 1.5px solid var(--border-color);
    background-color: var(--bg-base);
    font-weight: 700;
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    color: var(--text-primary);
    width: fit-content;
}

.category-pill {
    background-color: var(--color-pink);
    color: #FFFFFF;
    margin-bottom: 0.45rem;
}

.project-info h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.project-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.tech-tags {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

/* ==========================================================================
   EXPERIENCE TIMELINE
   ========================================================================== */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

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

.timeline-container {
    position: relative;
    width: 50%;
    padding: 1rem 2.5rem;
    margin-bottom: 2rem;
}

.timeline-container.left-side {
    left: 0;
}

.timeline-container.right-side {
    left: 50%;
}

.timeline-node {
    position: absolute;
    top: 2rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--color-yellow);
    border: var(--brutalist-border);
    box-shadow: 2px 2px 0px var(--shadow-color);
    z-index: 2;
}

.left-side .timeline-node {
    right: -12px;
}

.right-side .timeline-node {
    left: -12px;
}

.timeline-card {
    padding: 1.75rem;
    position: relative;
}

.timeline-date-pill {
    display: inline-block;
    border: var(--brutalist-border);
    background-color: var(--color-cyan);
    box-shadow: 2px 2px 0px var(--shadow-color);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.6rem;
    color: #1E1E1E;
    margin-bottom: 0.85rem;
}

.timeline-card h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.company-sub {
    font-size: 0.95rem;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 0.85rem;
}

.timeline-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   SKILLS & BADGES Cloud
   ========================================================================== */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.25rem;
    margin-bottom: 3.5rem;
}

.skills-cat-card h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.skills-flex, .certs-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.skill-tag, .cert-card-badge {
    border: var(--brutalist-border);
    background-color: var(--bg-card);
    padding: 0.45rem 0.95rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 2.5px 2.5px 0px var(--shadow-color);
    transition: all 0.15s;
}

.skill-tag:hover {
    background-color: var(--color-cyan);
    color: #1E1E1E;
    transform: translate(-1.5px, -1.5px);
    box-shadow: 4px 4px 0px var(--shadow-color);
}

.cert-card-badge {
    background-color: var(--bg-card);
    text-decoration: none;
    display: inline-block;
    color: var(--text-primary);
}

.cert-card-badge:hover {
    background-color: var(--color-orange);
    color: #1E1E1E;
    transform: translate(-1.5px, -1.5px);
    box-shadow: 4px 4px 0px var(--shadow-color);
}

.certifications-container h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
    align-items: center;
}

.tag-pink {
    background-color: var(--color-pink);
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    border: var(--brutalist-border);
    padding: 0.35rem 0.75rem;
    display: inline-block;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.contact-greeting h2 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.contact-p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.brutalist-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-input-group label {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 900;
    color: var(--text-primary);
}

.form-input-group input,
.form-input-group textarea {
    border: var(--brutalist-border);
    background-color: var(--bg-card);
    padding: 0.85rem 1rem;
    border-radius: 8px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.form-input-group input:focus,
.form-input-group textarea:focus {
    outline: none;
    border-color: var(--color-pink);
}

.form-submit-btn {
    border: var(--brutalist-border);
    background-color: var(--color-yellow);
    color: #1E1E1E;
    font-family: var(--font-body);
    font-weight: 900;
    font-size: 1rem;
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: var(--brutalist-shadow);
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.form-submit-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: var(--brutalist-shadow-hover);
}

.form-submit-btn:active {
    transform: translate(1.5px, 1.5px);
    box-shadow: var(--brutalist-shadow-active);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    border-top: var(--brutalist-border);
    background-color: var(--bg-card);
    padding: 4.5rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer-layout {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 3.5rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-left p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.footer-social-row {
    display: flex;
    gap: 0.85rem;
}

.footer-social-row a {
    color: var(--text-primary);
    font-size: 1.2rem;
    transition: color 0.15s;
}

.footer-social-row a:hover {
    color: var(--color-pink);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: color 0.15s;
}

.footer-links a:hover {
    color: var(--color-pink);
}

.footer-bottom {
    border-top: 2px dashed var(--border-color);
    padding-top: 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 700;
}

.accent-year {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 7rem;
    color: var(--border-color);
    opacity: 0.08;
    position: absolute;
    right: 0;
    bottom: -2.5rem;
    line-height: 1;
    pointer-events: none;
}

/* ==========================================================================
   SCROLL REVEAL STYLES (PROGRESSIVE ENHANCEMENT)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
    .section-scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .section-scroll-reveal.appear {
        opacity: 1;
        transform: translateY(0);
    }

    @supports ((animation-timeline: view()) and (animation-range: entry)) {
        @keyframes scroll-fade-in {
            from { opacity: 0; transform: translateY(35px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .section-scroll-reveal {
            animation: scroll-fade-in linear both;
            animation-timeline: view();
            animation-range: entry 10% cover 30%;
            opacity: 1;
            transform: none;
            transition: none;
        }
    }
}

/* ==========================================================================
   RESPONSIVE LAYOUTS
   ========================================================================== */
@media (max-width: 1024px) {
    .playground-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 1rem 1.5rem;
    }
    
    .nav-center, .desktop-social {
        display: none;
    }
    
    .hamburger {
        display: block;
    }
    
    .hero-main-title {
        font-size: 2.75rem;
    }
    
    .hero-btn-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-container {
        width: 100%;
        padding-left: 45px;
        padding-right: 0;
    }
    
    .timeline-container.right-side {
        left: 0;
    }
    
    .timeline-node {
        left: 10px !important;
        right: auto !important;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-layout {
        flex-direction: column;
        gap: 2rem;
    }
}

/* ==========================================================================
   ARTICLES SECTION
   ========================================================================== */
.articles-section {
    padding: 6rem 0;
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.article-card {
    padding: 2rem;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.85rem;
}

.article-date {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.article-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.article-title a {
    color: var(--text-primary);
    text-decoration: none;
}

.article-title a:hover {
    color: var(--color-pink);
}

.article-excerpt {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.read-article-link {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    width: fit-content;
}

.read-article-link i {
    transition: transform 0.2s;
}

.read-article-link:hover {
    color: var(--color-pink);
}

.read-article-link:hover i {
    transform: translateX(5px);
}

/* ==========================================================================
   REDESIGNED CONTACT & SCAN LAYOUT
   ========================================================================== */
.form-main-title {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 0.75rem;
}

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

.form-badge-btn-container {
    margin-bottom: 2rem;
}

.form-badge-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--color-cyan);
    color: #1E1E1E;
    border: var(--brutalist-border);
    box-shadow: 3px 3px 0px var(--shadow-color);
    padding: 0.5rem 1rem;
    font-family: var(--font-body);
    font-weight: 900;
    font-size: 0.85rem;
    border-radius: 99px;
    letter-spacing: 0.02em;
}

/* Mock reCAPTCHA styling */
.mock-recaptcha {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1.5px solid var(--border-color);
    background-color: var(--bg-base);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 1.25rem;
    max-width: 320px;
}

.recaptcha-checkbox-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.recaptcha-checkbox-container input[type="checkbox"] {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: #3b82f6;
}

.recaptcha-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
}

.recaptcha-logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.recaptcha-logo-container img {
    width: 26px;
    height: 26px;
}

.recaptcha-policies {
    display: flex;
    flex-direction: column;
    font-size: 0.55rem;
    color: var(--text-secondary);
    line-height: 1.2;
}

.recaptcha-policies a {
    color: inherit;
    text-decoration: none;
}

.recaptcha-policies a:hover {
    text-decoration: underline;
}

/* Pink background submit button */
.pink-bg-btn {
    background-color: var(--color-pink) !important;
    color: #1E1E1E !important;
}

/* Right Scan Connect */
.scan-connect-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.scan-card h2 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
}

.scan-sub-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.qr-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.qr-box-card {
    border: 2px dashed var(--border-color);
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

html[data-theme="dark"] .qr-box-card {
    background-color: rgba(255, 255, 255, 0.02);
}

.qr-box-card h3 {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 900;
    margin-bottom: 0.85rem;
    letter-spacing: 0.02em;
}

.qr-image-wrapper {
    background-color: #FFFFFF;
    border: var(--brutalist-border);
    padding: 0.5rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
}

.qr-image-wrapper img {
    width: 120px;
    height: 120px;
    display: block;
}

.qr-action-btn {
    width: 100%;
    border: var(--brutalist-border);
    box-shadow: 2.5px 2.5px 0px var(--shadow-color);
    padding: 0.65rem;
    font-size: 0.75rem;
    font-weight: 900;
    font-family: var(--font-body);
    text-decoration: none;
    text-align: center;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: all 0.15s;
}

.qr-action-btn:hover {
    transform: translate(-1.5px, -1.5px);
    box-shadow: 3.5px 3.5px 0px var(--shadow-color);
}

.qr-action-btn:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px var(--shadow-color);
}

.btn-yellow { background-color: var(--color-yellow); color: #1E1E1E; }
.btn-green { background-color: var(--color-green); color: #1E1E1E; }

/* AI model inference widget styling */
.inference-card {
    padding: 1.5rem;
}

.inference-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.inference-icon {
    font-size: 1.35rem;
    color: var(--color-pink);
}

.inference-titles h3 {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.1;
}

.inference-titles p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}

.neural-network-viz {
    background-color: rgba(0, 0, 0, 0.03);
    border: 2px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

html[data-theme="dark"] .neural-network-viz {
    background-color: rgba(0, 0, 0, 0.2);
}

/* Connection Signal Flows */
@keyframes dash {
    to {
        stroke-dashoffset: -20;
    }
}
.dash-line {
    stroke-dashoffset: 0;
    animation: dash 1.5s linear infinite;
}

/* Pulsing Nodes */
@keyframes pulse-node {
    0% { r: 5px; opacity: 0.75; }
    50% { r: 7.5px; opacity: 1; fill: var(--color-cyan); }
    100% { r: 5px; opacity: 0.75; }
}
.node {
    fill: var(--bg-card);
    stroke: var(--border-color);
    stroke-width: 2px;
}
.input-node { animation: pulse-node 3s ease-in-out infinite; animation-delay: 0s; }
.hidden-node { animation: pulse-node 3s ease-in-out infinite; animation-delay: 0.8s; }
.output-node { animation: pulse-node 3s ease-in-out infinite; animation-delay: 1.6s; }

.target-node {
    fill: var(--color-pink);
    stroke: var(--border-color);
    stroke-width: 2.5px;
    animation: pulse-node 2.5s ease-in-out infinite;
    animation-delay: 2.2s;
}

/* ==========================================================================
   FOOTER PLATFORM EMOJI BADGES
   ========================================================================== */
.footer-emoji-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border-color);
    box-shadow: 2px 2px 0px var(--shadow-color);
    width: 38px;
    height: 38px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 1.15rem;
    transition: all 0.15s;
    background-color: var(--bg-card);
}

.footer-emoji-badge:hover {
    transform: translate(-1.5px, -1.5px);
    box-shadow: 3.5px 3.5px 0px var(--shadow-color);
}

.footer-emoji-badge:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px var(--shadow-color);
}

.badge-blue:hover { background-color: var(--color-blue); }
.badge-dark:hover { background-color: var(--border-color); color: var(--bg-base); }
.badge-green:hover { background-color: var(--color-green); }
.badge-orange:hover { background-color: var(--color-orange); }
.badge-pink:hover { background-color: var(--color-pink); }
.badge-cyan:hover { background-color: var(--color-cyan); }

/* ==========================================================================
   TYPEWRITER BANNER STYLING
   ========================================================================== */
.typewriter-banner-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2.5rem;
    margin-top: 1rem;
    width: 100%;
}

.typewriter-banner {
    background-color: var(--color-orange);
    color: #1E1E1E;
    padding: 0.85rem 1.75rem;
    font-family: var(--font-mono);
    font-weight: 900;
    font-size: 1.5rem;
    text-align: center;
    border-radius: 8px;
    transform: rotate(-1deg);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 90%;
    box-shadow: 5px 5px 0px var(--shadow-color);
}

.typewriter-cursor {
    font-weight: 100;
    animation: blink-cursor 0.75s step-end infinite;
    margin-left: 2px;
}

@keyframes blink-cursor {
    from, to { color: transparent }
    50% { color: #1E1E1E; }
}

/* ==========================================================================
   OVERLAPPING CHATBOT BUTTONS STYLING
   ========================================================================== */
.chatbot-helper-container {
    margin-top: 2rem;
    padding: 1.25rem;
    background: var(--bg-card);
    border: var(--brutalist-border);
    box-shadow: var(--brutalist-shadow);
    border-radius: 8px;
    text-align: left;
}

.helper-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 900;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 0.85rem;
    letter-spacing: 0.05em;
}

.overlapping-chips-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0.5rem 0.25rem 0.75rem;
    scrollbar-width: none; /* Hide scrollbar Firefox */
}

.overlapping-chips-grid::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari/Webkit */
}

.overlap-chip {
    flex-shrink: 0;
    font-family: var(--font-body);
    font-weight: 900;
    font-size: 0.85rem;
    border: var(--brutalist-border);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    box-shadow: 2.5px 2.5px 0px var(--shadow-color);
    transition: transform 0.2s ease, margin-left 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    white-space: nowrap;
}

/* Overlapping effect starting from the second button */
.overlap-chip:not(:first-child) {
    margin-left: -12px;
}

.overlap-chip.btn-cyan { background-color: var(--color-cyan); color: #1E1E1E; z-index: 1; }
.overlap-chip.btn-blue { background-color: var(--color-blue); color: #1E1E1E; z-index: 2; }
.overlap-chip.btn-orange { background-color: var(--color-orange); color: #1E1E1E; z-index: 3; }
.overlap-chip.btn-yellow { background-color: var(--color-yellow); color: #1E1E1E; z-index: 4; }

.overlap-chip:hover {
    z-index: 10 !important;
    transform: translateY(-4px) scale(1.03);
    box-shadow: 4.5px 4.5px 0px var(--shadow-color);
}

.overlap-chip:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 1px 1px 0px var(--shadow-color);
}

/* ==========================================================================
   FLOATING QUICK CONTROLS & CHAT WIDGET
   ========================================================================== */
.floating-controls {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
    z-index: 999;
}

.scroll-navigation {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.floating-btn {
    border: var(--brutalist-border);
    box-shadow: 3px 3px 0px var(--shadow-color);
    background-color: var(--bg-card);
    color: var(--text-primary);
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.floating-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0px var(--shadow-color);
}

.floating-btn:active {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0px var(--shadow-color);
}

#scrollTopBtn { background-color: var(--color-cyan); }
#scrollBottomBtn { background-color: var(--color-pink); }
#chatbotToggleBtn { 
    background-color: var(--color-yellow); 
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 1.35rem;
    position: relative;
    box-shadow: 4px 4px 0px var(--shadow-color);
}

#chatbotToggleBtn:hover {
    box-shadow: 6px 6px 0px var(--shadow-color);
}

.chat-badge-pulse {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background-color: var(--color-green);
    border: 1.5px solid var(--border-color);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(126, 217, 87, 0.7);
    animation: blink 2s infinite;
}

.floating-chat-card {
    position: absolute;
    bottom: 64px;
    right: 0;
    width: 360px;
    height: 480px;
    padding: 0;
    display: flex;
    flex-direction: column;
    box-shadow: var(--brutalist-shadow-hover);
    transform-origin: bottom right;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease, visibility 0.25s ease;
    z-index: 1000;
}

.floating-chat-card.hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8) translateY(20px);
    pointer-events: none;
}

.chat-widget-header {
    background-color: rgba(0, 0, 0, 0.05);
    border-bottom: var(--brutalist-border);
    padding: 0.75rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

html[data-theme="dark"] .chat-widget-header {
    background-color: rgba(0, 0, 0, 0.2);
}

#closeChatBtn {
    cursor: pointer;
    transition: background-color 0.15s ease;
}

#closeChatBtn:hover {
    background-color: var(--color-pink) !important;
}

@media (max-width: 480px) {
    .floating-controls {
        bottom: 1rem;
        right: 1rem;
    }
    .floating-chat-card {
        width: calc(100vw - 2rem);
        right: 0;
        bottom: 60px;
        height: 420px;
    }
}