/* Font Face Declarations */
@font-face {
    font-family: 'Lavish';
    src: url('../assets/fonts/Lavish.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Sulphur Point', sans-serif;
    overflow: hidden;
    height: 100vh;
}

/* Hero Container */
.hero-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* Background Image */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/images/hero-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 2;
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 3;
    height: 100vh;
    display: flex;
    flex-direction: column;
    text-align: center;
    padding: 2rem;
    color: white;
}

/* Fixed Top Section */
.hero-top {
    flex: 0 0 auto;
    padding-top: 4rem;
    margin-bottom: 2rem;
}

/* Flexible Bottom Section */
.hero-bottom {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 0;
}

/* Introducing Text */
.introducing-text {
    font-family: 'Lavish', 'Sulphur Point', sans-serif;
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-weight: normal;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeInUp 1s ease-out;
}

/* Logo */
.logo-container {
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.logo {
    width: clamp(250px, 30vw, 400px);
    height: auto;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

/* Tagline */
.tagline {
    font-family: 'Sulphur Point', sans-serif;
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-weight: 300;
    letter-spacing: 0.05em;
    margin-bottom: 0;
    text-align: center;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.8s ease-out;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.tagline-line {
    display: block;
    line-height: 1.3;
}

.tagline.hidden {
    opacity: 0;
    transform: translateY(30px);
}

/* Chat Container */
.chat-container {
    position: relative;
    width: 320px;
    height: 550px;
    margin: 2rem auto;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
    flex: 0 0 auto;
    border-radius: 25px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.chat-container.active {
    opacity: 1;
    transform: translateY(0);
}

/* Phone Header */
.phone-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px 8px 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    height: 44px;
}

.phone-status-left,
.phone-status-center,
.phone-status-right {
    display: flex;
    align-items: center;
    flex: 1;
}

.phone-status-left {
    justify-content: flex-start;
}

.phone-status-center {
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 500;
    opacity: 0.8;
}

.phone-status-right {
    justify-content: flex-end;
    gap: 6px;
}

.phone-status-right i {
    font-size: 0.8rem;
    opacity: 0.9;
}

.time {
    font-family: 'Sulphur Point', sans-serif;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.date {
    font-family: 'Sulphur Point', sans-serif;
    font-weight: 400;
}

/* Chat Messages */
.chat-messages {
    position: relative;
    padding: 1rem;
    height: calc(100% - 44px - 60px);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    scroll-behavior: smooth;
}

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

.chat-messages::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Individual Messages */
.message {
    display: flex;
    margin-bottom: 0.6rem;
    opacity: 0;
    transform: translateY(30px);
    animation: messageSlideIn 0.6s ease-out forwards;
    position: relative;
}

.message.user-1 {
    justify-content: flex-start;
}

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

.message-content {
    display: flex;
    align-items: flex-end;
    max-width: 80%;
    position: relative;
}

.message.user-2 .message-content {
    flex-direction: row-reverse;
}

.avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    margin: 0 0.4rem;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    object-fit: cover;
    flex-shrink: 0;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease-out;
}

.avatar.loaded {
    opacity: 1;
    transform: scale(1);
}

/* Inline Typing Indicator next to avatars */
.inline-typing {
    position: absolute;
    display: flex;
    align-items: center;
    padding: 0.6rem 0.8rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease-out;
    z-index: 10;
    bottom: 0;
}

/* Position typing indicator based on message side */
.message.user-1 .inline-typing {
    left: 36px; /* Account for avatar width + margin */
}

.message.user-2 .inline-typing {
    right: 36px; /* Account for avatar width + margin */
}

.inline-typing.active {
    opacity: 1;
    transform: translateY(0);
}

.inline-typing .typing-dots {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.inline-typing .typing-dots span {
    width: 6px;
    height: 6px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    margin: 0 2px;
    animation: typingDots 1.4s infinite ease-in-out;
}

.inline-typing .typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.inline-typing .typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

.message-bubble {
    padding: 0.6rem 0.8rem;
    border-radius: 16px;
    font-size: 0.8rem;
    line-height: 1.4;
    position: relative;
    max-width: 100%;
    word-wrap: break-word;
    word-break: break-word;
    text-align: left;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease-out;
}

.message-bubble.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Typing Indicator - Hide the bottom one */
.typing-indicator {
    display: none;
}

/* Final Headline */
.final-headline {
    font-family: 'Lavish', 'Sulphur Point', sans-serif;
    font-size: clamp(3.5rem, 10vw, 7rem);
    font-weight: normal;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0;
    transform: scale(0.8);
    transition: all 1s ease-out;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.final-headline.active {
    opacity: 1;
    transform: scale(1);
}

.headline-word {
    display: inline-block;
    margin: 0 1.5rem;
    animation: headlineGlow 2s ease-in-out infinite alternate;
}

.headline-word:nth-child(2) {
    animation-delay: 0.5s;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes typingDots {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.6;
    }
    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

@keyframes headlineGlow {
    from {
        text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    }
    to {
        text-shadow: 0 4px 30px rgba(255, 255, 255, 0.3), 0 0 40px rgba(255, 255, 255, 0.1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        padding: 1rem;
    }
    
    .chat-container {
        max-width: 95%;
        min-height: 350px;
        max-height: 400px;
    }
    
    .chat-messages {
        min-height: 330px;
        max-height: 380px;
        padding: 1rem;
    }
    
    .message-bubble {
        font-size: 0.85rem;
        padding: 0.6rem 0.8rem;
    }
    
    .avatar {
        width: 32px;
        height: 32px;
    }
    
    .final-headline {
        font-size: clamp(2.5rem, 12vw, 5rem);
    }
    
    .introducing-text {
        font-size: clamp(1.2rem, 4vw, 1.8rem);
    }
}

@media (max-width: 480px) {
    .introducing-text {
        font-size: clamp(1rem, 4vw, 1.4rem);
        margin-bottom: 1.5rem;
    }
    
    .logo-container {
        margin-bottom: 2rem;
    }
    
    .chat-container {
        margin-bottom: 2rem;
        min-height: 300px;
        max-height: 350px;
    }
    
    .chat-messages {
        min-height: 280px;
        max-height: 330px;
        padding: 0.8rem;
    }
    
    .message-bubble {
        font-size: 0.8rem;
        padding: 0.5rem 0.7rem;
    }
    
    .avatar {
        width: 28px;
        height: 28px;
    }
    
    .tagline {
        font-size: 1.2rem;
    }
    
    .final-headline {
        font-size: clamp(2rem, 12vw, 4rem);
    }
    
    .headline-word {
        margin: 0 0.8rem;
    }
}

.message.user-1 .message-bubble {
    background: #e5e5ea;
    color: #000000;
    border-bottom-left-radius: 4px;
    position: relative;
    margin-left: 8px;
}

.message.user-1 .message-bubble::before {
    content: '';
    position: absolute;
    left: -6px;
    bottom: 2px;
    width: 0;
    height: 0;
    border: 6px solid transparent;
    border-right-color: #e5e5ea;
    border-left: 0;
    border-bottom: 0;
    transform: translateY(-2px);
}

.message.user-2 .message-bubble {
    background: #3f2966;
    color: white;
    border-bottom-right-radius: 4px;
    position: relative;
    margin-right: 8px;
}

.message.user-2 .message-bubble::before {
    content: '';
    position: absolute;
    right: -6px;
    bottom: 2px;
    width: 0;
    height: 0;
    border: 6px solid transparent;
    border-left-color: #3f2966;
    border-right: 0;
    border-bottom: 0;
    transform: translateY(-2px);
} 