@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap");

* {
    box-sizing: border-box;
}

body,
html {
    font-family: "Poppins", sans-serif;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
}

body {
    background: linear-gradient(135deg, #1a0d1a 0%, #2d1b2d 50%, #1a0d1a 100%);
    color: #fff;
}

/* Home Container Styles */
#home-container {
    display: grid;
    grid-template-columns: 10px 1fr 10px;
    grid-template-rows: 10px 1fr 1fr 10px;
    grid-gap: 20px;
    min-height: 100vh;
    position: relative;
}

#inner {
    grid-row: 2;
    grid-column: 2;
    align-self: center;
    justify-self: center;
    text-align: center;
    z-index: 10;
}

#illustration {
    grid-row: 3;
    grid-column: 2;
    align-self: center;
    justify-self: center;
    width: 100%;
    padding: 10px;
    position: relative;
    min-height: 400px;
    z-index: 1;
}

@media (min-width: 768px) {
    #home-container {
        grid-template-columns: 0.5fr 1fr 1fr 0.5fr;
        grid-template-rows: 1fr;
    }
    #inner {
        grid-column: 2;
        grid-row: 1;
        text-align: left;
    }

    #illustration {
        grid-column: 3;
        grid-row: 1;
    }
}

/* Logo Styles */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2em;
    gap: 15px;
}

@media (min-width: 768px) {
    .logo-container {
        justify-content: flex-start;
    }
}

#logo-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 50%;
    animation: heartbeat 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 20px rgba(255, 71, 87, 0.5));
}

@media (min-width: 768px) {
    #logo-img {
        width: 80px;
        height: 80px;
    }
}

.logo-text {
    font-size: 2em;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(45deg, #ff4757, #ff6b7a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Typography */
h1 {
    font-size: 2.5em;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5em;
}

.highlight {
    background: linear-gradient(45deg, #ff4757, #ff6b7a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.1em;
    color: #e0e0e0;
    margin: 0.5em 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* Feature list styles */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 1.5em 0 2em;
    display: flex;
    flex-direction: column;
    gap: 0.4em;
}

.feature-list li {
    font-size: clamp(0.85em, 2.5vw, 1.1em);
    color: #e0e0e0;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.feature-list li i {
    color: #ff4757;
}


@media (min-width: 768px) {
    .subtitle {
        justify-content: flex-start;
    }
    
    .hero-cta {
        justify-content: flex-start;
    }
}

.disclaimer {
    margin-top: 2em;
    font-size: 0.9em;
    color: #ff6b7a;
    font-weight: 600;
}

/* Hero CTA with QR */
.hero-cta {
    display: flex;
    align-items: center;
    gap: 25px;
    margin-top: 2em;
    flex-wrap: wrap;
}

.hero-qr {
    display: inline-block;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.hero-qr:hover {
    transform: scale(1.05);
}

.hero-qr-code {
    width: 100px;
    height: 100px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: block;
}

/* CTA Buttons */
.cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 1em 2em;
    font-weight: 600;
    font-size: 1em;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.cta--primary {
    background: linear-gradient(45deg, #ff4757, #ff6b7a);
    color: white;
    box-shadow: 0 10px 30px rgba(255, 71, 87, 0.3);
}

.cta--primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 71, 87, 0.4);
}

.cta--secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid #ff4757;
}

.cta--secondary:hover {
    background: #ff4757;
    transform: translateY(-3px);
}

/* Phone Mockup */
.phone-mockup {
    width: 300px;
    height: 600px;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    margin: 0 auto;
    animation: phoneSlide 1s ease-out forwards;
    opacity: 0;
}

.screen {
    width: 100%;
    height: 100%;
    background: #0e1621;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Telegram Header */
.telegram-header {
    background: #232e3c;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #8b9dc5;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-left i {
    font-size: 1.2em;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.chat-info {
    display: flex;
    flex-direction: column;
}

.chat-name {
    color: white;
    font-weight: 600;
    font-size: 1em;
}

.chat-status {
    color: #8b9dc5;
    font-size: 0.8em;
}

.header-right {
    display: flex;
    gap: 20px;
}

.header-right i {
    font-size: 1.2em;
    cursor: pointer;
}

/* Chat Window */
.chat-window {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDAiIGhlaWdodD0iNDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGRlZnM+PHBhdHRlcm4gaWQ9ImdyaWQiIHdpZHRoPSI0MCIgaGVpZ2h0PSI0MCIgcGF0dGVyblVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+PHBhdGggZD0iTSAwIDEwIEwgNDAgMTAgTSAxMCAwIEwgMTAgNDAgTSAwIDIwIEwgNDAgMjAgTSAyMCAwIEwgMjAgNDAgTSAwIDMwIEwgNDAgMzAgTSAzMCAwIEwgMzAgNDAiIGZpbGw9Im5vbmUiIHN0cm9rZT0iIzBhMGYxYSIgb3BhY2l0eT0iMC4yIiBzdHJva2Utd2lkdGg9IjEiLz48L3BhdHRlcm4+PC9kZWZzPjxyZWN0IHdpZHRoPSIxMDAlIiBoZWlnaHQ9IjEwMCUiIGZpbGw9InVybCgjZ3JpZCkiLz48L3N2Zz4=');
}

.message-container {
    display: flex;
    margin-bottom: 15px;
    opacity: 0;
    transition: opacity 0.4s ease-out;
}



.message-wrapper {
    max-width: 70%;
}

.bot-message {
    background: #e53e4e;
    padding: 10px 15px;
    border-radius: 18px 18px 18px 5px;
    color: white;
    display: inline-block;
}

.bot-message p {
    margin: 0;
    font-size: 0.9em;
    line-height: 1.4;
}

.bot-message p + p {
    margin-top: 5px;
}

.message-time {
    font-size: 0.75em;
    color: #8b9dc5;
    margin-top: 5px;
    display: block;
}

/* Telegram Input */
.telegram-input {
    background: #232e3c;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid #1a2332;
}

.telegram-input i {
    color: #8b9dc5;
    font-size: 1.2em;
    cursor: pointer;
}

.telegram-input input {
    flex: 1;
    background: none;
    border: none;
    color: white;
    font-size: 0.95em;
    outline: none;
}

.telegram-input input::placeholder {
    color: #8b9dc5;
}

/* Typing Indicator */
.typing-indicator {
    display: none;
    margin-bottom: 15px;
    transition: opacity 0.3s ease-out;
}

.typing-dots {
    background: #232e3c;
    padding: 10px 15px;
    border-radius: 18px;
    display: flex;
    gap: 4px;
    align-items: center;
}

.typing-dots span {
    width: 8px;
    height: 8px;
    background: #8b9dc5;
    border-radius: 50%;
    animation: typingDot 1.4s infinite;
}

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

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

@keyframes typingDot {
    0%, 60%, 100% {
        opacity: 0.3;
    }
    30% {
        opacity: 1;
    }
}





/* Chat Preview Bubbles */
.chat-preview {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 5;
}

/* Some messages behind the phone */
#chat1, #chat3 {
    z-index: 0;
}

.chat-preview:hover {
    transform: scale(1.1) rotate(-2deg);
}

.chat-bubble {
    background: linear-gradient(135deg, #ff4757, #ff6b7a);
    padding: 15px 25px;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(255, 71, 87, 0.3);
    position: relative;
    animation: pulse 2s ease-in-out infinite;
}

.chat-bubble p {
    margin: 0;
    font-size: 1.1em;
    font-weight: 500;
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.bubble-tail {
    position: absolute;
    bottom: -5px;
    left: 20px;
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #ff4757, #ff6b7a);
    transform: rotate(45deg);
    z-index: -1;
}

#chat1 {
    top: 10%;
    left: -120px;
    transform: rotate(-15deg);
    animation: floatIn1 0.8s ease-out 0.5s forwards;
}

#chat2 {
    top: 35%;
    right: -100px;
    transform: rotate(10deg);
    animation: floatIn2 0.8s ease-out 1.2s forwards;
}

#chat3 {
    bottom: 15%;
    left: -80px;
    transform: rotate(-8deg);
    animation: floatIn3 0.8s ease-out 1.9s forwards;
}

#chat4 {
    top: 60%;
    right: -90px;
    transform: rotate(20deg);
    animation: floatIn4 0.8s ease-out 2.6s forwards;
}

#chat5 {
    top: 5%;
    right: -50px;
    transform: rotate(-25deg);
    animation: floatIn5 0.8s ease-out 3.3s forwards;
}

/* Make some messages smaller for variety */
#chat1 .chat-bubble {
    transform: scale(0.9);
}

#chat4 .chat-bubble {
    transform: scale(0.85);
}

#chat5 .chat-bubble {
    transform: scale(0.95);
}

/* Different tails for variety */
#chat2 .bubble-tail {
    right: 20px;
    left: auto;
}

#chat4 .bubble-tail {
    display: none;
}

/* Additional positions for mobile */
@media (max-width: 768px) {
    #chat1 {
        top: -60px;
        left: 10%;
        transform: rotate(-10deg) scale(0.8);
    }
    
    #chat2 {
        bottom: -50px;
        right: 15%;
        transform: rotate(5deg) scale(0.85);
    }
    
    #chat3 {
        top: 40%;
        right: -30px;
        transform: rotate(-12deg) scale(0.9);
    }
    
    #chat4 {
        top: 20%;
        left: -40px;
        transform: rotate(15deg) scale(0.8);
    }
    
    #chat5 {
        bottom: 20%;
        right: -40px;
        transform: rotate(-20deg) scale(0.85);
    }
}



@keyframes floatIn1 {
    0% {
        opacity: 0;
        transform: translateX(-50px) translateY(20px) rotate(-15deg) scale(0);
    }
    50% {
        transform: translateX(-10px) translateY(-5px) rotate(-15deg) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: translateX(0) translateY(0) rotate(-15deg) scale(1);
    }
}

@keyframes floatIn2 {
    0% {
        opacity: 0;
        transform: translateX(50px) translateY(-30px) rotate(10deg) scale(0);
    }
    50% {
        transform: translateX(10px) translateY(5px) rotate(10deg) scale(1.15);
    }
    100% {
        opacity: 1;
        transform: translateX(0) translateY(0) rotate(10deg) scale(1);
    }
}

@keyframes floatIn3 {
    0% {
        opacity: 0;
        transform: translateY(40px) rotate(-8deg) scale(0);
    }
    50% {
        transform: translateY(-10px) rotate(-8deg) scale(1.2);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotate(-8deg) scale(1);
    }
}

@keyframes floatIn4 {
    0% {
        opacity: 0;
        transform: translateX(60px) translateY(30px) rotate(20deg) scale(0);
    }
    40% {
        transform: translateX(-20px) translateY(-10px) rotate(20deg) scale(1.3);
    }
    100% {
        opacity: 1;
        transform: translateX(0) translateY(0) rotate(20deg) scale(1);
    }
}

@keyframes floatIn5 {
    0% {
        opacity: 0;
        transform: translateX(40px) translateY(-50px) rotate(-25deg) scale(0);
    }
    60% {
        transform: translateX(-15px) translateY(15px) rotate(-25deg) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: translateX(0) translateY(0) rotate(-25deg) scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 10px 30px rgba(255, 71, 87, 0.3);
    }
    50% {
        box-shadow: 0 15px 40px rgba(255, 71, 87, 0.5);
    }
}



/* Burst Hearts on Click */
.burst-heart {
    position: absolute;
    font-size: 24px;
    pointer-events: none;
    animation: burstHeart 1s ease-out forwards;
    z-index: 100;
}

@keyframes burstHeart {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
    100% {
        transform: translate(calc(-50% + var(--x)), calc(-50% - 100px)) scale(0.3);
        opacity: 0;
    }
}

@keyframes bounce {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(0.9);
    }
    50% {
        transform: scale(1.1);
    }
    75% {
        transform: scale(0.95);
    }
}

/* Characters Carousel Section */
#characters {
    padding: 80px 20px;
    background: rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

#characters h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 0.3em;
    background: linear-gradient(45deg, #ff4757, #ff6b7a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    text-align: center;
    font-size: 1.2em;
    color: #e0e0e0;
    margin-bottom: 3em;
}

/* Carousel Container */
.carousel-container {
    position: relative;
    max-width: 400px;
    margin: 0 auto 3em;
}

.carousel-wrapper {
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;
}

/* Character Cards */
.character-card {
    min-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.5s ease;
}

.character-card.active {
    opacity: 1;
    transform: scale(1);
}

.character-image {
    position: relative;
    width: 300px;
    height: 400px;
    margin-bottom: 2em;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(255, 71, 87, 0.3);
    transition: all 0.3s ease;
}

.character-image:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 80px rgba(255, 71, 87, 0.4);
}

.character-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.character-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9em;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.character-info {
    text-align: center;
    max-width: 350px;
}

.character-info h3 {
    font-size: 2em;
    margin-bottom: 0.5em;
    color: #ff4757;
}

.character-desc {
    color: #e0e0e0;
    line-height: 1.6;
    font-size: 1em;
}

/* Carousel Controls */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #ff4757;
    color: #ff4757;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.carousel-btn:hover {
    background: #ff4757;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn-prev {
    left: -80px;
}

.carousel-btn-next {
    right: -80px;
}

/* Carousel Dots */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: #ff4757;
    transform: scale(1.3);
}

.dot:hover {
    background: #ff6b7a;
}

/* Responsive Design for Carousel */
@media (max-width: 768px) {
    .carousel-container {
        padding: 0 20px;
    }
    
    .character-image {
        width: 250px;
        height: 350px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-btn-prev {
        left: -10px;
    }
    
    .carousel-btn-next {
        right: -10px;
    }
    
    .character-info h3 {
        font-size: 1.5em;
    }
}

/* CTA Section */
#cta-section {
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(135deg, #2d1b2d 0%, #1a0d1a 100%);
}

#cta-section h2 {
    font-size: 2.5em;
    margin-bottom: 0.5em;
}

#cta-section p {
    font-size: 1.2em;
    color: #e0e0e0;
    margin-bottom: 2em;
}

.cta-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
    margin-bottom: 2em;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}



.qr-container {
    display: inline-block;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.qr-container:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.1);
}

.qr-code {
    width: 180px;
    height: 180px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: block;
}





/* Animations */
@keyframes heartbeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

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

@keyframes messageSlide {
    from {
        transform: translateX(-20px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}



@keyframes floatBubble {
    from {
        transform: scale(0.3);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

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

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }
    
    .phone-mockup {
        width: 250px;
        height: 500px;
        margin-top: 2em;
    }
    
    .telegram-header {
        padding: 8px 10px;
    }
    
    .chat-avatar {
        width: 30px;
        height: 30px;
    }
    
    .bot-message {
        font-size: 0.85em;
    }
    
    .chat-preview {
        display: none;
    }
    
    #features h2,
    #cta-section h2 {
        font-size: 2em;
    }
    
    .qr-code {
        width: 150px;
        height: 150px;
    }
    
    .hero-cta {
        justify-content: center;
        gap: 15px;
    }
    
    .hero-qr {
        padding: 10px;
    }
    
    .hero-qr-code {
        width: 80px;
        height: 80px;
    }
    
    .cta-content {
        flex-direction: column;
        gap: 30px;
    }
}
