/* hanun.ai - Surreal Dreamscape AI */

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    background-color: #0c0a1a;
    color: #c0b8d0;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.75;
    overflow-x: hidden;
}

/* Background Gradient */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(ellipse at 50% 50%, rgba(167, 139, 250, 0.08) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
    animation: bgShift 30s ease-in-out infinite;
}

@keyframes bgShift {
    0%, 100% { background: radial-gradient(ellipse at 50% 50%, rgba(167, 139, 250, 0.08) 0%, transparent 60%); }
    33% { background: radial-gradient(ellipse at 30% 60%, rgba(125, 211, 252, 0.06) 0%, transparent 60%); }
    66% { background: radial-gradient(ellipse at 70% 40%, rgba(74, 222, 128, 0.05) 0%, transparent 60%); }
}

/* Floating Forms */
.floating-forms {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.float-form {
    position: absolute;
    transition: transform 0.3s ease-out;
}

.form-sphere {
    width: 160px;
    height: 160px;
    left: 15vw;
    top: 20vh;
    animation: floatDrift1 25s ease-in-out infinite;
    opacity: 0;
    transform: translateX(-100px);
}

.form-sphere.visible {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 1.5s ease, transform 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.form-torus {
    width: 200px;
    height: 120px;
    left: 75vw;
    top: 35vh;
    animation: floatDrift2 30s ease-in-out infinite;
    opacity: 0;
    transform: translateX(100px);
}

.form-torus.visible {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 1.5s ease 0.3s, transform 1.5s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}

.form-blob {
    width: 140px;
    height: 140px;
    left: 55vw;
    top: 70vh;
    animation: floatDrift3 35s ease-in-out infinite;
    opacity: 0;
    transform: translateY(100px);
}

.form-blob.visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1.5s ease 0.6s, transform 1.5s cubic-bezier(0.22, 1, 0.36, 1) 0.6s;
}

@keyframes floatDrift1 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(20px, -15px); }
    50% { transform: translate(-10px, -30px); }
    75% { transform: translate(15px, -10px); }
}

@keyframes floatDrift2 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-25px, 10px); }
    50% { transform: translate(10px, 25px); }
    75% { transform: translate(-15px, 5px); }
}

@keyframes floatDrift3 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(15px, -20px); }
    50% { transform: translate(-20px, 10px); }
    75% { transform: translate(10px, 20px); }
}

/* Dot Navigation */
.dot-nav {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 100;
}

.dot-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(167, 139, 250, 0.4);
    border: none;
    cursor: pointer;
    transition: all 300ms ease;
    padding: 0;
}

.dot-indicator.active {
    background: #a78bfa;
    box-shadow: 0 0 12px rgba(167, 139, 250, 0.5);
    animation: dotPulse 3s ease-in-out infinite;
}

@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 8px rgba(167, 139, 250, 0.3); }
    50% { box-shadow: 0 0 20px rgba(167, 139, 250, 0.5); }
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.hero-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.2) 0%, transparent 70%);
    animation: heroGlowExpand 2s ease-out forwards;
    opacity: 0;
}

@keyframes heroGlowExpand {
    0% { opacity: 0; transform: scale(0); }
    100% { opacity: 1; transform: scale(1); }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 3;
}

.hero-title {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 48px;
    color: #e8e0f0;
    letter-spacing: -0.02em;
    opacity: 0;
    animation: fadeIn 1s ease 0.5s forwards;
}

.hero-subtitle {
    font-family: 'Sora', sans-serif;
    font-size: 24px;
    color: #a78bfa;
    margin-top: 8px;
    opacity: 0;
    animation: fadeIn 1s ease 1s forwards;
}

.hero-tagline {
    font-family: 'DM Sans', sans-serif;
    font-size: 18px;
    color: #c0b8d0;
    margin-top: 16px;
    opacity: 0;
    animation: fadeIn 1s ease 1.3s forwards;
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

.status-indicator {
    position: absolute;
    bottom: 48px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-ring {
    width: 12px;
    height: 12px;
    border: 2px solid #4ade80;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.status-text {
    font-family: 'Inconsolata', monospace;
    font-size: 11px;
    letter-spacing: 0.04em;
    color: #7dd3fc;
    text-transform: uppercase;
}

/* Content Sections */
.content-section {
    position: relative;
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
    padding: 120px 40px;
    z-index: 2;
}

/* Connection Lines */
.connection-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    pointer-events: none;
    z-index: 1;
}

/* Waveform Bar */
.waveform-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40px;
    overflow: hidden;
}

.waveform-bar::before {
    content: '';
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 200%;
    height: 2px;
    background: repeating-linear-gradient(90deg, transparent 0px, transparent 4px, rgba(167, 139, 250, 0.3) 4px, rgba(167, 139, 250, 0.3) 5px);
    animation: waveScroll 8s linear infinite;
}

@keyframes waveScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Thought Bubbles */
.thought-bubble {
    position: relative;
    background: rgba(22, 19, 42, 0.8);
    border-radius: 24px;
    padding: 40px;
    margin-bottom: 80px;
    box-shadow: 0 8px 32px rgba(120, 100, 180, 0.15);
    backdrop-filter: blur(10px);
    filter: blur(8px);
    opacity: 0.5;
    transition: filter 600ms ease, opacity 600ms ease, transform 600ms ease;
    transform: translateY(20px);
}

.thought-bubble.revealed {
    filter: blur(0);
    opacity: 1;
    transform: translateY(0);
}

.bubble-large {
    max-width: 640px;
}

.bubble-medium {
    max-width: 480px;
}

.bubble-small {
    max-width: 320px;
}

.bubble-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.1), rgba(125, 211, 252, 0.05));
    z-index: -1;
    pointer-events: none;
}

.ai-label {
    font-family: 'Inconsolata', monospace;
    font-size: 14px;
    letter-spacing: 0.04em;
    color: #7dd3fc;
    display: block;
    margin-bottom: 16px;
}

.thought-bubble h2 {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 28px;
    color: #e8e0f0;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.thought-bubble p {
    margin-bottom: 12px;
}

.mono-text {
    font-family: 'Inconsolata', monospace;
    font-size: 14px;
    color: #7dd3fc;
    letter-spacing: 0.04em;
    line-height: 1.8;
}

/* Progress Fill */
.progress-fill-container {
    width: 100%;
    height: 4px;
    background: rgba(167, 139, 250, 0.15);
    border-radius: 2px;
    margin: 12px 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 94%;
    background: linear-gradient(90deg, #a78bfa, #4ade80);
    border-radius: 2px;
    animation: progressPulse 4s ease-in-out infinite;
}

@keyframes progressPulse {
    0%, 100% { width: 94%; }
    50% { width: 70%; }
}

/* Status Micro */
.status-micro {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.status-ring-small {
    width: 8px;
    height: 8px;
    border: 1.5px solid #4ade80;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

/* Footer */
.site-footer {
    position: relative;
    z-index: 2;
    padding: 60px 40px;
    text-align: center;
    border-top: 1px solid rgba(167, 139, 250, 0.15);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.footer-name {
    font-family: 'Sora', sans-serif;
    font-weight: 600;
    font-size: 16px;
    color: #e8e0f0;
}

.footer-divider {
    color: #a78bfa;
}

.footer-desc {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: #c0b8d0;
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title { font-size: 36px; }
    .hero-subtitle { font-size: 20px; }
    .content-section { padding: 80px 24px; }
    .thought-bubble { padding: 24px; margin-left: 0 !important; max-width: 100%; }
    .dot-nav { right: 12px; }
    .floating-forms { display: none; }
    .connection-line { display: none; }
}
