/* CSS Variables */
:root {
    --primary: #000000;
    --accent: #7c3aed;
    --accent-hover: #6d28d9;
    --text: #000000;
    --text-light: #555555;
    --text-muted: #888888;
    --bg: #ffffff;
    --bg-alt: #f5f5f5;
    --bg-dark: #000000;
    --border: #e0e0e0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    padding-bottom: 80px;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.nav-logo {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--primary);
    letter-spacing: 0.05em;
}

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

.nav-links a {
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-light);
    transition: var(--transition);
    position: relative;
}

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

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

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

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    padding: 72px 0 0 0;
    background: var(--bg);
    position: relative;
    overflow: hidden;
}

/* Magazine Spread Layout */
.hero-split {
    display: grid;
    grid-template-columns: 2fr 3fr;
    width: 100%;
    min-height: calc(100vh - 72px);
}

.hero-photo {
    background-image: url('profile.jpg');
    background-size: cover;
    background-position: center top;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    filter: grayscale(100%) contrast(1.1);
}

.hero-photo::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    pointer-events: auto;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 80px;
    text-align: left;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 8px 0;
    background: transparent;
    color: var(--text-light);
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 20px;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 400;
    line-height: 1.05;
    margin-bottom: 24px;
    letter-spacing: -0.01em;
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-light);
    max-width: 480px;
    margin: 0 0 40px 0;
    line-height: 1.8;
}

.hero-subtitle strong {
    color: var(--primary);
    font-weight: 600;
}

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

.stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.stat-number {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 3rem;
    font-weight: 400;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.65rem;
    color: var(--text-light);
    margin-top: 12px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-radius: 0;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: var(--accent);
}

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

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

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

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    margin-bottom: 60px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: var(--primary);
    margin: 20px auto 0;
}

/* About Section */
.about {
    background: var(--bg-alt);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-text {
    margin-bottom: 40px;
}

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

.highlight-text {
    font-size: 1.25rem !important;
    color: var(--text) !important;
    line-height: 1.8;
}

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

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.skill-tag {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid var(--border);
    font-weight: 400;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: var(--transition);
}

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

/* Simple Content Sections */
.simple-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.simple-content p {
    font-size: 1.2rem;
    line-height: 1.9;
    color: var(--text-light);
    margin-bottom: 24px;
}

.simple-content p:last-child {
    margin-bottom: 0;
}

.simple-content p strong {
    color: var(--text);
    font-weight: 600;
}

.simple-content.light p {
    color: rgba(255, 255, 255, 0.85);
}

.simple-content.light p strong {
    color: white;
}

/* Experience Timeline */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--accent), var(--primary));
    border-radius: 3px;
}

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

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

.timeline-marker {
    position: absolute;
    left: -6px;
    top: 8px;
    width: 15px;
    height: 15px;
    background: var(--accent);
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: var(--shadow);
}

.timeline-content {
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.timeline-content:hover {
    box-shadow: var(--shadow-lg);
    transform: translateX(8px);
}

.timeline-header {
    margin-bottom: 16px;
}

.timeline-header h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.timeline-company {
    display: block;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 4px;
}

.timeline-date,
.timeline-location {
    font-size: 0.875rem;
    color: var(--text-light);
}

.timeline-date::after {
    content: ' • ';
}

.timeline-highlights {
    list-style: disc;
    padding-left: 20px;
}

.timeline-highlights li {
    color: var(--text-light);
    margin-bottom: 8px;
    line-height: 1.6;
}

/* Community Section */
.community {
    background: var(--bg-dark);
    color: white;
}

.community .section-title {
    color: white;
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.community-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.community-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-4px);
}

.community-card h3 {
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.community-org {
    display: block;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 12px;
}

.community-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

/* Education Section */
.education {
    background: var(--bg-alt);
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.education-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.education-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.education-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.education-school {
    display: block;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 4px;
}

.education-date {
    display: block;
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 12px;
}

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

.education-card.certification {
    border-left: 4px solid var(--accent);
}

/* Courses Section (within Education) */
.courses-section {
    margin-top: 60px;
}

.subsection-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 400;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text);
}

section.services {
    background: var(--primary);
    color: white;
}

section.services .section-title {
    color: white;
}

.service-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto 60px;
}

.service-layout:last-child {
    margin-bottom: 0;
}

.service-layout.reverse {
    direction: rtl;
}

.service-layout.reverse > * {
    direction: ltr;
}

.service-gallery {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: var(--radius);
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.service-gallery img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none;
    user-select: none;
    -webkit-user-drag: none;
}

.service-gallery img.active {
    opacity: 1;
}

.service-content {
    text-align: left;
}

.service-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.ship-logo {
    width: 36px;
    height: 36px;
    color: white;
}

.service-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 0;
    color: white;
}

.service-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
}

.service-price {
    font-weight: 600;
    font-size: 1.1rem;
    color: white !important;
}

section.services .btn-primary {
    background: white;
    color: var(--primary);
    margin-top: 24px;
}

section.services .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .service-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .service-content {
        text-align: center;
    }
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.course-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

.course-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.course-thumbnail {
    width: 100%;
    height: 160px;
    background: var(--bg);
    overflow: hidden;
    position: relative;
}

.course-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.course-thumbnail img.default-fallback {
    object-fit: contain;
    padding: 40px;
    background: var(--bg);
}

.course-card:hover .course-thumbnail img {
    transform: scale(1.05);
}

.course-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.course-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    line-height: 1.3;
}

.course-description {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

/* Highlights Section */
.highlights {
    background: var(--bg);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.no-highlights {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    padding: 40px;
    grid-column: 1 / -1;
}

.highlight-card {
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

.highlight-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.highlight-thumbnail {
    width: 100%;
    height: 160px;
    background: var(--bg-alt);
    overflow: hidden;
    position: relative;
}

.highlight-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.highlight-thumbnail img.favicon-fallback,
.highlight-thumbnail img.default-fallback {
    object-fit: contain;
    padding: 40px;
    background: var(--bg-alt);
}

.highlight-card:hover .highlight-thumbnail img {
    transform: scale(1.05);
}

.highlight-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.highlight-org {
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
}

.highlight-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
    line-height: 1.3;
}

.highlight-description {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.highlight-category {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-alt);
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    width: fit-content;
}

.highlight-card[data-category="work"] .highlight-category {
    background: rgba(124, 58, 237, 0.1);
    color: var(--accent);
}

.highlight-card[data-category="education"] .highlight-category {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.highlight-card[data-category="community"] .highlight-category {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

/* Inline org links */
.org-link {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

.org-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.org-link[href="#"] {
    cursor: default;
}

.org-link[href="#"]:hover {
    text-decoration: none;
}

/* Contact Section */
.contact {
    text-align: center;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-content > p {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 32px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 32px;
    background: transparent;
    border: 1px solid var(--primary);
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: var(--transition);
}

.contact-link:hover {
    background: var(--primary);
    color: white;
}

.contact-icon {
    font-size: 1.25rem;
}

.contact-icon-svg {
    width: 16px;
    height: 16px;
}

/* Footer */
.footer {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.7);
    padding: 32px 24px;
    text-align: center;
    font-size: 0.875rem;
}

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: white;
    border-top: 1px solid var(--border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.chat-toggle {
    display: none;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--accent);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.5);
    transition: var(--transition);
}

.chat-toggle:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(124, 58, 237, 0.6);
}

.chat-toggle svg {
    width: 28px;
    height: 28px;
    color: white;
}

.chat-toggle .close-icon {
    display: none;
}

.chat-widget.open .chat-toggle .chat-icon {
    display: none;
}

.chat-widget.open .chat-toggle .close-icon {
    display: block;
}

.chat-window {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    background: white;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}


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

.chat-header {
    display: none;
}

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

.chat-avatar {
    width: 44px;
    height: 44px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.chat-header h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.chat-status {
    font-size: 0.75rem;
    opacity: 0.8;
}

.chat-messages {
    display: none;
    max-height: 300px;
    overflow-y: auto;
    padding: 16px 24px;
    flex-direction: column;
    gap: 12px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.chat-widget.expanded .chat-messages {
    display: flex;
}

.message {
    display: flex;
    width: 100%;
}

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

.message.assistant {
    justify-content: flex-start;
}

.message-content {
    max-width: 70%;
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 0.875rem;
    line-height: 1.5;
}

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

.message.assistant .message-content {
    background: white;
    color: var(--text);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
}

.chat-input-container {
    padding: 16px 24px;
    display: flex;
    gap: 12px;
    align-items: center;
}

.chat-widget.expanded .chat-input-container {
    border-top: 1px solid var(--border);
}

.chat-input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 100px;
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    background: white;
    position: relative;
    box-shadow: 0 0 0 2px #e0e0e0;
    transition: all 0.3s ease;
}

.chat-input:hover {
    box-shadow: 0 0 0 2px transparent, 0 0 0 3px rgba(124, 58, 237, 0.3);
    background:
        linear-gradient(white, white) padding-box,
        linear-gradient(135deg, #7c3aed, #ec4899, #f59e0b) border-box;
    border: 2px solid transparent;
}

.chat-input:focus {
    box-shadow: none;
    background:
        linear-gradient(white, white) padding-box,
        linear-gradient(135deg, #7c3aed, #ec4899, #f59e0b, #7c3aed) border-box;
    border: 2px solid transparent;
    animation: gradient-rotate 3s linear infinite;
}

@keyframes gradient-rotate {
    0% {
        background:
            linear-gradient(white, white) padding-box,
            linear-gradient(135deg, #7c3aed, #ec4899, #f59e0b, #7c3aed) border-box;
    }
    33% {
        background:
            linear-gradient(white, white) padding-box,
            linear-gradient(135deg, #ec4899, #f59e0b, #7c3aed, #ec4899) border-box;
    }
    66% {
        background:
            linear-gradient(white, white) padding-box,
            linear-gradient(135deg, #f59e0b, #7c3aed, #ec4899, #f59e0b) border-box;
    }
    100% {
        background:
            linear-gradient(white, white) padding-box,
            linear-gradient(135deg, #7c3aed, #ec4899, #f59e0b, #7c3aed) border-box;
    }
}

.chat-input::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.chat-send {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #ec4899);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.chat-send:hover {
    background: linear-gradient(135deg, #6d28d9, #db2777);
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.chat-send svg {
    width: 20px;
    height: 20px;
    color: white;
}

/* Loading animation */
.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background: var(--bg-alt);
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    width: fit-content;
}

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

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

@keyframes typing {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 968px) {
    .hero-split {
        grid-template-columns: 1fr;
        grid-template-rows: 50vh auto;
    }

    .hero-photo {
        background-position: center 20%;
    }

    .hero-content {
        padding: 48px 32px;
        text-align: center;
    }

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

    .stat {
        align-items: center;
    }

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

    .hero-subtitle {
        margin: 0 auto 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero {
        padding: 72px 0 0 0;
    }

    .hero-content {
        padding: 40px 24px;
    }

    .hero-stats {
        gap: 24px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .section {
        padding: 60px 20px;
    }

    .section-title {
        margin-bottom: 40px;
    }

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

    .timeline-item {
        padding-left: 32px;
    }

    .timeline-marker {
        left: 2px;
    }

    .timeline-content {
        padding: 24px;
    }

    .highlights-grid,
    .courses-grid {
        grid-template-columns: 1fr;
    }

    .highlight-thumbnail,
    .course-thumbnail {
        height: 140px;
    }

    .chat-messages {
        max-height: 150px;
    }

    .chat-input-container {
        padding: 12px 16px;
    }

    .chat-input {
        padding: 12px 16px;
        font-size: 0.875rem;
    }

    .chat-send {
        width: 40px;
        height: 40px;
    }
}
