/* ===== CSS Variables ===== */
:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #0f0f18;
    --bg-card: #141420;
    --bg-card-hover: #1a1a2e;
    --border: #1e1e32;
    --border-hover: #2a2a44;

    --text-primary: #e8e8f0;
    --text-secondary: #9090a8;
    --text-muted: #606078;

    --accent: #6366f1;
    --accent-light: #818cf8;
    --accent-glow: rgba(99, 102, 241, 0.15);
    --accent-glow-strong: rgba(99, 102, 241, 0.3);

    --green: #34d399;
    --green-glow: rgba(52, 211, 153, 0.15);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;

    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.4);

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --container-width: 1120px;
}

/* ===== Reset ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ===== Container ===== */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Navigation ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

.nav.scrolled {
    border-bottom-color: var(--border);
}

.nav-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.accent { color: var(--accent); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition);
    position: relative;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--accent);
    color: white !important;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    transition: background var(--transition), transform var(--transition) !important;
}

.nav-cta::after { display: none !important; }

.nav-cta:hover {
    background: var(--accent-light) !important;
    transform: translateY(-1px);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* Language Toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2px;
    flex-shrink: 0;
}

.lang-btn {
    padding: 5px 12px;
    border: none;
    background: none;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    border-radius: 16px;
    transition: all 0.25s ease;
}

.lang-btn.active {
    background: var(--accent);
    color: white;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.lang-btn:not(.active):hover {
    color: var(--text-primary);
}

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 24px 80px;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

#hero-canvas {
    width: 100%;
    height: 100%;
    opacity: 0.4;
}

.hero-split {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 56px;
    max-width: 1320px;
    width: 100%;
    overflow: hidden;
}

.hero-content {
    flex: 1;
    text-align: left;
}

.hero-greeting {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--accent-light);
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.hero-name {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 0 40px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
    margin-bottom: 48px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    cursor: pointer;
    border: none;
    font-family: var(--font-sans);
}

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

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

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-hover);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent-light);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 48px;
    justify-content: flex-start;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-mono);
}

.stat-suffix {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-light);
    font-family: var(--font-mono);
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Hero Chat (embedded in hero section) */
.hero-chat {
    flex: 1;
    min-width: min(380px, 100%);
    background: var(--bg-secondary);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: 620px;
}

.hero-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
    flex-shrink: 0;
}

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

.hero-chat-header h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

.hero-chat-clear {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-chat-clear:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.hero-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 340px;
    max-height: 460px;
}

.hero-chat-messages::-webkit-scrollbar {
    width: 5px;
}

.hero-chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.hero-chat-messages::-webkit-scrollbar-thumb {
    background: var(--border-hover);
    border-radius: 3px;
}

.hero-chat-input-area {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 12px 14px;
    border-top: 1px solid var(--border);
    background: var(--bg-card);
    flex-shrink: 0;
}

#hero-chat-input {
    flex: 1;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.86rem;
    resize: none;
    max-height: 100px;
    line-height: 1.5;
    outline: none;
    transition: border-color 0.2s;
}

#hero-chat-input:focus {
    border-color: var(--accent);
}

#hero-chat-input::placeholder {
    color: var(--text-muted);
}

#hero-chat-send {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--accent);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
}

#hero-chat-send:hover {
    background: var(--accent-light);
}

#hero-chat-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Chat Message Bubbles */
.chat-message {
    display: flex;
}

.chat-message.user {
    justify-content: flex-end;
}

.chat-bubble {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.86rem;
    line-height: 1.65;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.chat-message.assistant .chat-bubble {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-top-left-radius: 4px;
}

.chat-message.user .chat-bubble {
    background: var(--accent);
    color: white;
    border-top-right-radius: 4px;
}

/* Markdown inside chat bubbles */
.chat-bubble p {
    margin: 0 0 8px 0;
}

.chat-bubble p:last-child {
    margin-bottom: 0;
}

.chat-bubble strong {
    color: var(--accent-light);
    font-weight: 600;
}

.chat-message.user .chat-bubble strong {
    color: white;
}

.chat-bubble code {
    font-family: var(--font-mono);
    background: rgba(255, 255, 255, 0.07);
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 0.8rem;
}

.chat-bubble pre {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    padding: 10px 12px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 8px 0;
    font-size: 0.8rem;
}

.chat-bubble pre code {
    background: none;
    padding: 0;
    font-size: inherit;
}

.chat-bubble ul,
.chat-bubble ol {
    padding-left: 18px;
    margin: 6px 0;
}

.chat-bubble ul {
    list-style: disc;
}

.chat-bubble ol {
    list-style: decimal;
}

.chat-bubble li {
    margin-bottom: 3px;
    font-size: 0.86rem;
}

.chat-bubble a {
    color: var(--accent-light);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.chat-bubble h2 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-light);
    margin: 12px 0 6px;
}

.chat-bubble h3 {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--accent-light);
    margin: 10px 0 5px;
}

.chat-bubble h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-light);
    margin: 10px 0 4px;
}

/* Typing indicator */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 4px 0;
}

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

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

.typing-indicator span:nth-child(3) {
    animation-delay: 0.32s;
}

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

/* ===== Floating Chat Widget ===== */
#chat-widget {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1500;
    font-family: var(--font-sans);
}

#chat-widget.chat-widget-hidden {
    pointer-events: none;
}

#chat-widget.chat-widget-hidden #chat-toggle {
    opacity: 0;
    transform: scale(0) rotate(-180deg);
}

#chat-widget.chat-widget-hidden .chat-tooltip {
    opacity: 0;
    transform: translateX(20px);
}

/* --- Entrance animations --- */
#chat-widget.chat-widget-visible #chat-toggle {
    animation: chatBounceIn 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
               chatFloat 3s ease-in-out 2s infinite;
}

@keyframes chatBounceIn {
    0%   { opacity: 0; transform: scale(0) rotate(-180deg); }
    40%  { opacity: 1; transform: scale(1.3) rotate(15deg); }
    55%  { transform: scale(0.85) rotate(-8deg); }
    70%  { transform: scale(1.15) rotate(4deg); }
    82%  { transform: scale(0.95) rotate(-2deg); }
    100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

/* Gentle idle float */
@keyframes chatFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}

/* Double ripple pulse on entrance */
#chat-widget.chat-widget-visible #chat-toggle::before,
#chat-widget.chat-widget-visible #chat-toggle::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    opacity: 0;
    z-index: -1;
}

#chat-widget.chat-widget-visible #chat-toggle::before {
    animation: chatRipple 1.5s ease-out 0.5s;
}

#chat-widget.chat-widget-visible #chat-toggle::after {
    animation: chatRipple 1.5s ease-out 0.8s;
}

@keyframes chatRipple {
    0%   { opacity: 0.6; transform: scale(1); }
    100% { opacity: 0; transform: scale(2.2); }
}

/* Tooltip label that slides in */
.chat-tooltip {
    position: absolute;
    right: 68px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-card);
    border: 1px solid var(--border-hover);
    color: var(--text-primary);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s, transform 0.3s;
}

.chat-tooltip::after {
    content: "";
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: var(--bg-card);
    border-right: 1px solid var(--border-hover);
    border-top: 1px solid var(--border-hover);
}

#chat-widget.chat-widget-visible .chat-tooltip {
    animation: tooltipSlideIn 0.4s ease-out 1s forwards;
}

@keyframes tooltipSlideIn {
    0%   { opacity: 0; transform: translateY(-50%) translateX(10px); }
    100% { opacity: 1; transform: translateY(-50%) translateX(0); }
}

/* Auto-hide tooltip after a few seconds */
#chat-widget.chat-widget-visible .chat-tooltip {
    animation: tooltipSlideIn 0.4s ease-out 1s forwards,
               tooltipFadeOut 0.4s ease-in 5s forwards;
}

@keyframes tooltipFadeOut {
    0%   { opacity: 1; transform: translateY(-50%) translateX(0); }
    100% { opacity: 0; transform: translateY(-50%) translateX(10px); }
}

/* Notification dot */
.chat-notif {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    background: #f43f5e;
    border-radius: 50%;
    border: 2px solid var(--bg-primary);
    z-index: 2;
    animation: notifPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 1.2s both;
}

@keyframes notifPop {
    0%   { transform: scale(0); }
    60%  { transform: scale(1.3); }
    100% { transform: scale(1); }
}

#chat-toggle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
    transition: background 0.3s, box-shadow 0.3s, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#chat-toggle:hover {
    background: var(--accent-light);
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(99, 102, 241, 0.5);
}

#chat-panel {
    position: absolute;
    bottom: 72px;
    right: 0;
    width: min(420px, calc(100vw - 32px));
    max-height: 560px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-lg);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

#chat-panel.open {
    display: flex;
    animation: chatSlideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes chatSlideUp {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.float-chat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-card);
    flex-shrink: 0;
}

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

.float-chat-header h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    line-height: 1.3;
}

#chat-clear {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

#chat-clear:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

#chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 280px;
    max-height: 380px;
}

#chat-messages::-webkit-scrollbar {
    width: 5px;
}

#chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

#chat-messages::-webkit-scrollbar-thumb {
    background: var(--border-hover);
    border-radius: 3px;
}

.float-chat-input-area {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 12px 14px;
    border-top: 1px solid var(--border);
    background: var(--bg-card);
    flex-shrink: 0;
}

#chat-input {
    flex: 1;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.86rem;
    resize: none;
    max-height: 100px;
    line-height: 1.5;
    outline: none;
    transition: border-color 0.2s;
}

#chat-input:focus {
    border-color: var(--accent);
}

#chat-input::placeholder {
    color: var(--text-muted);
}

#chat-send {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--accent);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    flex-shrink: 0;
}

#chat-send:hover {
    background: var(--accent-light);
}

#chat-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    #chat-widget {
        display: none !important;
    }
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0.5;
    transition: opacity var(--transition);
}

.scroll-indicator:hover { opacity: 1; }

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--text-secondary);
    border-bottom: 2px solid var(--text-secondary);
    transform: rotate(45deg);
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 20%, 50%, 80%, 100% { transform: rotate(45deg) translateY(0); }
    40% { transform: rotate(45deg) translateY(8px); }
    60% { transform: rotate(45deg) translateY(4px); }
}

/* ===== Sections ===== */
.section {
    padding: 100px 0;
}

.section-alt {
    background: var(--bg-secondary);
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 56px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    margin: 16px auto 0;
}

/* ===== About ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
    align-items: start;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1.02rem;
}

.about-text strong {
    color: var(--text-primary);
}

.about-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.detail-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.detail-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

.detail-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    border-radius: var(--radius-sm);
    color: var(--accent-light);
}

.detail-icon svg {
    width: 20px;
    height: 20px;
}

.detail-card h4 {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.detail-card p {
    font-size: 0.95rem;
    color: var(--text-primary);
}

/* ===== Timeline / Experience ===== */
.timeline {
    position: relative;
    padding-left: 32px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--border);
}

.timeline-item {
    position: relative;
    margin-bottom: 48px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -32px;
    top: 8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 3px solid var(--accent);
    z-index: 1;
}

.timeline-item:first-child .timeline-marker {
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-glow-strong);
}

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: var(--transition);
}

.timeline-content:hover {
    border-color: var(--border-hover);
}

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

.timeline-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.timeline-company {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent-light);
    background: var(--accent-glow);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    white-space: nowrap;
}

.timeline-summary {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.timeline-highlights {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.highlight h4 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--accent-light);
    margin-bottom: 8px;
}

.highlight ul {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.highlight li {
    font-size: 0.92rem;
    color: var(--text-secondary);
    padding-left: 16px;
    position: relative;
    line-height: 1.6;
}

.highlight li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
}

.highlight li strong {
    color: var(--text-primary);
}

/* ===== Projects ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.project-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.project-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.project-card.featured {
    border-color: var(--accent-glow-strong);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(99, 102, 241, 0.05) 100%);
}

.project-card.featured:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.15);
}

.project-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-light);
    background: var(--accent-glow);
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 12px;
}

.project-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.project-card-top .metric {
    white-space: nowrap;
}

.project-trending {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
    padding: 4px 12px;
    border-radius: 20px;
    white-space: nowrap;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.project-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    border-radius: var(--radius-sm);
    color: var(--accent-light);
}

.project-icon svg {
    width: 24px;
    height: 24px;
}

.project-metrics-inline {
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.project-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
    flex-grow: 1;
}

.project-metrics {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.metric {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.metric svg {
    width: 14px;
    height: 14px;
    color: var(--accent-light);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 16px;
}

.project-tags span {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid var(--border);
}

/* Project Action Buttons */
.project-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 4px;
}

.project-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    font-size: 0.8rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
    font-family: var(--font-sans);
}

.project-btn svg {
    flex-shrink: 0;
}

.project-btn-github {
    background: #24292e;
    color: #fff;
    border: 1px solid #30363d;
}

.project-btn-github:hover {
    background: #30363d;
    border-color: #484f58;
    transform: translateY(-1px);
}

.project-btn-hf {
    background: rgba(255, 159, 28, 0.12);
    color: #ffb347;
    border: 1px solid rgba(255, 159, 28, 0.25);
}

.project-btn-hf:hover {
    background: rgba(255, 159, 28, 0.2);
    border-color: rgba(255, 159, 28, 0.4);
    transform: translateY(-1px);
}

.project-btn-demo {
    background: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
}

.project-btn-demo:hover {
    background: var(--accent-light);
    border-color: var(--accent-light);
    transform: translateY(-1px);
}

.project-btn-paper {
    background: rgba(52, 211, 153, 0.1);
    color: var(--green);
    border: 1px solid rgba(52, 211, 153, 0.25);
}

.project-btn-paper:hover {
    background: rgba(52, 211, 153, 0.18);
    border-color: rgba(52, 211, 153, 0.4);
    transform: translateY(-1px);
}

.project-btn-details {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--accent-light);
    cursor: pointer;
    margin-left: auto;
    transition: color var(--transition);
    padding: 7px 0;
}

.project-btn-details:hover {
    color: #fff;
}

/* ===== Modal ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: var(--bg-secondary);
    border: 1px solid var(--border-hover);
    border-radius: var(--radius-lg);
    max-width: 720px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(24px) scale(0.97);
    transition: transform 0.3s ease;
    display: none;
}

.modal-overlay.open .modal.active {
    display: block;
    transform: translateY(0) scale(1);
}

.modal-close {
    position: sticky;
    top: 0;
    float: right;
    z-index: 10;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 16px 16px 0 0;
    transition: var(--transition);
    line-height: 1;
}

.modal-close:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.modal-header {
    padding: 32px 32px 0;
}

.modal-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.modal-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.modal-body {
    padding: 24px 32px;
}

.modal-body p {
    font-size: 0.93rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 20px;
}

.modal-body h4 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--accent-light);
    margin-bottom: 10px;
    margin-top: 4px;
}

.modal-body ul, .modal-body ol {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    padding-left: 0;
}

.modal-body li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding-left: 18px;
    position: relative;
    line-height: 1.65;
    list-style: none;
}

.modal-body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
}

.modal-body ol {
    counter-reset: step;
}

.modal-body ol li {
    counter-increment: step;
}

.modal-body ol li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-light);
}

.modal-body li strong {
    color: var(--text-primary);
}

.modal-body code {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--accent-light);
}

.modal-note {
    font-style: italic;
    color: var(--text-muted) !important;
    font-size: 0.85rem !important;
}

.modal-demo {
    margin-bottom: 20px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border);
}

.modal-demo img {
    width: 100%;
    height: auto;
    display: block;
}

.modal-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.25);
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.inline-link {
    color: var(--accent-light);
    text-decoration: underline;
    text-decoration-color: rgba(129, 140, 248, 0.3);
    text-underline-offset: 2px;
    transition: text-decoration-color var(--transition);
}

.inline-link:hover {
    text-decoration-color: var(--accent-light);
}

.modal-table {
    overflow-x: auto;
    margin-bottom: 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.modal-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.modal-table thead {
    background: var(--bg-card);
}

.modal-table th {
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid var(--border);
}

.modal-table td {
    padding: 9px 14px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.modal-table tr:last-child td {
    border-bottom: none;
}

.modal-table strong {
    color: var(--green);
}

.modal-actions {
    padding: 0 32px 28px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Modal scrollbar */
.modal::-webkit-scrollbar {
    width: 6px;
}

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

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

.modal::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ===== Publications ===== */
.publications-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.publication-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition);
}

.publication-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(99, 102, 241, 0.1);
}

.pub-venue {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--accent-light);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.publication-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
}

.pub-authors {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.pub-abstract {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
}

.pub-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
}

.pub-link-text {
    color: var(--accent-light);
    margin-left: auto;
}

/* ===== Skills ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: var(--transition);
}

.skill-category:hover {
    border-color: var(--border-hover);
}

.skill-category-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-glow);
    border-radius: var(--radius-sm);
    color: var(--accent-light);
    margin-bottom: 16px;
}

.skill-category-icon svg {
    width: 22px;
    height: 22px;
}

.skill-category h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 14px;
}

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

.skill-tags span {
    font-size: 0.78rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    padding: 4px 12px;
    border-radius: 20px;
    transition: var(--transition);
}

.skill-tags span:hover {
    border-color: var(--accent);
    color: var(--accent-light);
    background: var(--accent-glow);
}

/* ===== Contact ===== */
.contact-content {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.contact-text {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
}

.contact-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--transition);
    font-size: 0.92rem;
    color: var(--text-secondary);
}

.contact-card:hover {
    border-color: var(--accent);
    color: var(--text-primary);
    transform: translateX(4px);
}

.contact-card svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--accent-light);
}

/* ===== Footer ===== */
.footer {
    border-top: 1px solid var(--border);
    padding: 32px 0;
    text-align: center;
}

.footer p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ===== Reveal Animations ===== */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    animation: fadeUp 0.6s ease forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.6s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .nav-inner {
        padding: 0 16px;
    }

    .nav-links {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(10, 10, 15, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 0;
        border-bottom: 1px solid var(--border);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
    }

    .nav-links.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 14px 0;
        font-size: 1rem;
    }

    .nav-links a::after { display: none; }

    .nav-cta {
        text-align: center;
        margin-top: 8px;
    }

    .nav-toggle {
        display: flex;
        padding: 8px;
    }

    .lang-toggle {
        margin-left: auto;
        margin-right: 12px;
    }

    .nav-toggle.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        padding: 100px 16px 60px;
        min-height: calc(100vh - 64px);
        min-height: calc(100dvh - 64px);
    }

    .hero-split {
        flex-direction: column;
        gap: 32px;
    }

    .hero-content {
        text-align: center;
        max-width: 720px;
    }

    .hero-description {
        margin: 0 auto 32px;
        font-size: 0.95rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin-bottom: 36px;
    }

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

    .hero-stats {
        justify-content: center;
        gap: 24px;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .hero-chat {
        flex: none;
        width: 100%;
        min-width: 0;
        max-width: 500px;
        max-height: 400px;
    }

    .hero-chat-messages {
        min-height: 220px;
        max-height: 300px;
    }

    .scroll-indicator {
        display: none;
    }

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

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card {
        padding: 22px;
    }

    .project-card:hover {
        transform: none;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .skill-category {
        padding: 22px;
    }

    .timeline {
        padding-left: 24px;
    }

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

    .timeline-marker {
        left: -24px;
        width: 12px;
        height: 12px;
    }

    .timeline-content {
        padding: 20px;
    }

    .timeline-content:hover {
        border-color: var(--border);
    }

    .timeline-header {
        flex-direction: column;
    }

    .timeline-header h3 {
        font-size: 1.1rem;
    }

    .publication-card {
        padding: 22px;
    }

    .publication-card:hover {
        transform: none;
    }

    .publication-card h3 {
        font-size: 1.05rem;
    }

    .modal-overlay {
        padding: 8px;
        align-items: flex-end;
    }

    .modal {
        max-height: 92vh;
        max-height: 92dvh;
        margin: 0;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }

    .modal-header {
        padding: 20px 18px 0;
    }

    .modal-header h2 {
        font-size: 1.25rem;
    }

    .modal-body {
        padding: 16px 18px;
    }

    .modal-body p {
        font-size: 0.88rem;
    }

    .modal-body li {
        font-size: 0.86rem;
    }

    .modal-actions {
        padding: 0 18px 20px;
    }

    .modal-table table {
        font-size: 0.75rem;
    }

    .modal-table th,
    .modal-table td {
        padding: 8px 10px;
    }

    .modal-badge {
        font-size: 0.72rem;
        padding: 5px 12px;
    }

    .project-actions {
        gap: 8px;
    }

    .project-btn {
        padding: 8px 14px;
        font-size: 0.78rem;
    }

    .project-btn-details {
        margin-left: 0;
    }

    .contact-links {
        grid-template-columns: 1fr;
    }

    .contact-card {
        padding: 14px 18px;
        font-size: 0.85rem;
    }

    .contact-card span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .contact-card:hover {
        transform: none;
    }

    .contact-text {
        font-size: 1rem;
        margin-bottom: 32px;
    }

    .section {
        padding: 64px 0;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 36px;
    }

    .footer {
        padding: 24px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 14px;
    }

    .nav-inner {
        padding: 0 14px;
    }

    .hero {
        padding: 90px 14px 48px;
    }

    .hero-name {
        font-size: 2rem;
    }

    .hero-title {
        font-size: 1.15rem;
    }

    .hero-description {
        font-size: 0.9rem;
        line-height: 1.7;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .hero-chat {
        max-height: 360px;
    }

    .hero-chat-messages {
        min-height: 180px;
        max-height: 240px;
        padding: 12px 14px;
    }

    .section {
        padding: 56px 0;
    }

    .section-title {
        font-size: 1.4rem;
        margin-bottom: 28px;
    }

    .about-text p {
        font-size: 0.93rem;
    }

    .project-card {
        padding: 18px;
    }

    .project-name {
        font-size: 1.1rem;
    }

    .project-desc {
        font-size: 0.85rem;
    }

    .project-trending {
        font-size: 0.65rem;
        padding: 3px 8px;
    }

    .project-metrics .metric {
        font-size: 0.72rem;
    }

    .skill-category {
        padding: 18px;
    }

    .skill-category h3 {
        font-size: 0.92rem;
    }

    .skill-tags span {
        font-size: 0.72rem;
        padding: 3px 10px;
    }

    .timeline-content {
        padding: 16px;
    }

    .timeline-header h3 {
        font-size: 1rem;
    }

    .timeline-summary {
        font-size: 0.88rem;
    }

    .highlight li {
        font-size: 0.85rem;
    }

    .publication-card {
        padding: 18px;
    }

    .publication-card h3 {
        font-size: 0.98rem;
    }

    .pub-abstract {
        font-size: 0.82rem;
    }

    .pub-meta {
        flex-direction: column;
        gap: 4px;
    }

    .pub-link-text {
        margin-left: 0;
    }

    .modal-overlay {
        padding: 0;
    }

    .modal {
        max-height: 95vh;
        max-height: 95dvh;
        border-radius: var(--radius-md) var(--radius-md) 0 0;
    }

    .modal-header {
        padding: 18px 16px 0;
    }

    .modal-header h2 {
        font-size: 1.15rem;
    }

    .modal-body {
        padding: 14px 16px;
    }

    .modal-actions {
        padding: 0 16px 16px;
    }

    .modal-close {
        width: 32px;
        height: 32px;
        font-size: 1.1rem;
        margin: 12px 12px 0 0;
    }

    .contact-card {
        padding: 12px 14px;
        gap: 12px;
    }
}
