.hero-section {
    padding: var(--space-24) 0 var(--space-12) 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Redesigned Hero Title to match "Project gallery" */
.hero-title-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: var(--space-6);
}

.hero-main-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 0.9;
    letter-spacing: -0.05em;
    color: var(--text-primary);
    margin: 0;
}

.hero-serif-title {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 4.8rem;
    font-weight: 400;
    line-height: 0.85;
    color: var(--accent-orange);
    margin: 0;
    letter-spacing: -0.01em;
}

/* Handpicked Selection Divider */
.hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    margin-top: var(--space-4);
    color: var(--text-muted);
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

.hero-divider::before,
.hero-divider::after {
    content: '';
    display: block;
    height: 1px;
    width: 60px;
    background-color: var(--border-color);
}

/* Hero elements layout */
.hero-badge {
    margin-bottom: var(--space-6);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    animation: fadeIn 0.8s ease-out;
}

.hero-description {
    max-width: 600px;
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin: 0 auto var(--space-8) auto;
    line-height: 1.6;
    animation: fadeIn 1s ease-out 0.2s both;
}

.hero-ctas {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    margin-bottom: var(--space-16);
    animation: fadeIn 1s ease-out 0.4s both;
}

.hero-mockup-wrapper {
    width: 100%;
    max-width: 780px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}

.hero-mockup-wrapper::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80%;
    height: 70%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(139, 92, 246, 0.18) 0%, transparent 60%);
    z-index: -1;
    filter: blur(60px);
    pointer-events: none;
}

.hero-mockup {
    background: rgba(18, 18, 20, 0.55);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3), var(--shadow-glow);
    overflow: hidden;
    text-align: left;
    transition: border var(--transition-normal), box-shadow var(--transition-normal);
}

:root[data-theme="light"] .hero-mockup {
    background: rgba(255, 255, 255, 0.65);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05), var(--shadow-glow);
}

.mockup-header {
    background: rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid var(--border-color);
    padding: var(--space-3) var(--space-4);
    display: flex;
    align-items: center;
    position: relative;
}

:root[data-theme="light"] .mockup-header {
    background: rgba(0, 0, 0, 0.02);
}

.mockup-dots {
    display: flex;
    gap: 6px;
}

.mockup-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
}

.mockup-dot:nth-child(1) { background-color: #ef4444; }
.mockup-dot:nth-child(2) { background-color: #eab308; }
.mockup-dot:nth-child(3) { background-color: #22c55e; }

.mockup-url {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.725rem;
    color: var(--text-muted);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    padding: 1px 16px;
    border-radius: var(--radius-sm);
}

.mockup-body {
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    height: 330px;
}

.chat-demo-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    overflow-y: auto;
    padding-right: 4px;
}

.chat-bubble {
    max-width: 85%;
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    font-size: 0.9rem;
    line-height: 1.5;
    display: flex;
    gap: var(--space-3);
    animation: bubbleIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.chat-bubble-user {
    align-self: flex-end;
    background: var(--accent-purple);
    color: #ffffff;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.chat-bubble-user i {
    font-size: 1rem;
    margin-top: 3px;
}

.chat-bubble-ai {
    align-self: flex-start;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 4px;
}

.chat-bubble-ai i {
    color: var(--accent-purple);
    font-size: 1rem;
    margin-top: 3px;
}

.chat-bubble-typing {
    align-self: flex-start;
    background: var(--bg-tertiary);
    color: var(--text-muted);
    border: 1px solid var(--border-color);
    border-bottom-left-radius: 4px;
    padding: var(--space-3) var(--space-4);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.typing-dot {
    width: 5px;
    height: 5px;
    background: var(--text-muted);
    border-radius: var(--radius-full);
    animation: typingBounce 1.4s infinite both;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

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

.chat-input-area {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
}

:root[data-theme="light"] .chat-input-area {
    background: rgba(0, 0, 0, 0.03);
}

.chat-input-typing-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-secondary);
    height: 20px;
    overflow: hidden;
}

.chat-input-placeholder {
    white-space: nowrap;
    overflow: hidden;
    color: var(--text-muted);
}

.typing-cursor {
    color: var(--accent-purple);
    font-weight: bold;
    animation: blink 0.8s steps(2, start) infinite;
    margin-left: 2px;
}

.chat-send-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    padding: 4px;
    transition: color var(--transition-fast);
}

.chat-send-btn.active {
    color: var(--accent-purple);
}

/* Animations */
@keyframes blink {
    to { visibility: hidden; }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@media (min-width: 768px) {
    .hero-section {
        padding: var(--space-24) 0;
    }
    
    .hero-main-title {
        font-size: 6rem;
    }
    
    .hero-serif-title {
        font-size: 7.2rem;
    }
    
    .hero-divider::before,
    .hero-divider::after {
        width: 100px;
    }
}
