* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 25%, #1f1f1f 50%, #2a2a2a 75%, #1a1a1a 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    padding: 15px;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 193, 7, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 213, 79, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 193, 7, 0.06) 0%, transparent 50%);
    animation: floatBackground 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 100px, rgba(255, 193, 7, 0.02) 100px, rgba(255, 193, 7, 0.02) 200px),
        repeating-linear-gradient(-45deg, transparent, transparent 100px, rgba(255, 213, 79, 0.02) 100px, rgba(255, 213, 79, 0.02) 200px);
    pointer-events: none;
    z-index: 0;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes floatBackground {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(5%, 5%) rotate(2deg); }
    50% { transform: translate(0, 10%) rotate(0deg); }
    75% { transform: translate(-5%, 5%) rotate(-2deg); }
}

/* Mobile-First Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
    position: relative;
    z-index: 1;
}

/* Campaign Section */
.campaign-section {
    background: linear-gradient(135deg, #FFC107 0%, #FFD54F 100%);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    order: 2;
    position: relative;
    z-index: 1;
}

.campaign-header h1 {
    color: #000;
    font-size: 1.8em;
    margin-bottom: 10px;
    text-align: center;
}

.campaign-header p {
    color: #000;
    font-size: 1em;
    margin-bottom: 20px;
    text-align: center;
}

/* Carousel Container */
.carousel-container {
    position: relative;
    width: 100%;
    height: 250px;
    border-radius: 15px;
    overflow: hidden;
    background: linear-gradient(135deg, #4a4a4a 0%, #2c2c2c 100%);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    height: 100%;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.campaign-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    z-index: 2;
}

.campaign-overlay h2 {
    font-size: 1.3em;
    margin-bottom: 5px;
}

.campaign-overlay p {
    font-size: 0.9em;
}

/* Carousel Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 193, 7, 0.8);
    color: #2c2c2c;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5em;
    cursor: pointer;
    z-index: 3;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-btn:hover {
    background: rgba(255, 193, 7, 1);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: 10px;
}

.carousel-btn.next {
    right: 10px;
}

/* Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #FFC107;
    width: 12px;
    height: 12px;
}

.indicator:hover {
    background: rgba(255, 193, 7, 0.8);
}

/* Chatbot Section */
.chatbot-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    height: 500px;
    overflow: hidden;
    order: 1;
    position: relative;
    z-index: 1;
}

.chatbot-header {
    background: linear-gradient(135deg, #FFC107 0%, #FFD54F 100%);
    color: #2c2c2c;
    padding: 0px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

.bot-avatar {
    font-size: 2.5em;
    width: 250px;
    height: 80px;
    border-radius: 0%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0px;
}

.bot-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bot-info {
    text-align: center;
}

.bot-info h3 {
    margin-bottom: 5px;
}

.status {
    font-size: 0.9em;
    opacity: 0.9;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f5f5f5;
}

.message {
    margin-bottom: 15px;
    display: flex;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.bot-message {
    justify-content: flex-start;
}

.user-message {
    justify-content: flex-end;
}

.message-content {
    max-width: 70%;
    padding: 15px 20px;
    border-radius: 15px;
    line-height: 1.5;
}

.bot-message .message-content {
    background: white;
    border: 2px solid #FFC107;
    color: #2c2c2c;
}

.user-message .message-content {
    background: #4a4a4a;
    color: white;
}

.message-content p {
    margin-bottom: 8px;
}

.message-content p:last-child {
    margin-bottom: 0;
}

.chat-input-area {
    padding: 20px;
    background: white;
    border-top: 1px solid #ddd;
    display: flex;
    gap: 10px;
}

#userInput {
    flex: 1;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 25px;
    font-size: 1em;
    outline: none;
    transition: border-color 0.3s;
}

#userInput:focus {
    border-color: #FFC107;
}

#sendBtn {
    padding: 15px 30px;
    background: linear-gradient(135deg, #FFC107 0%, #FFD54F 100%);
    color: #2c2c2c;
    border: none;
    border-radius: 25px;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

#sendBtn:hover {
    transform: scale(1.05);
}

#sendBtn:active {
    transform: scale(0.95);
}

/* Success Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

/* Fullscreen Image Modal */
.image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding: 20px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s;
}

.image-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-modal-content {
    margin: auto;
    display: block;
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    animation: zoomIn 0.3s;
    cursor: zoom-out;
}

.image-modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 2001;
}

.image-modal-close:hover,
.image-modal-close:focus {
    color: #bbb;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Make carousel images clickable */
.carousel-slide img {
    cursor: pointer;
    transition: transform 0.3s ease;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background: white;
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    from {
        transform: scale(0.8);
    }
    to {
        transform: scale(1);
    }
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #FFC107;
    color: #2c2c2c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3em;
    margin: 0 auto 20px;
}

.modal-content h2 {
    color: #333;
    margin-bottom: 20px;
    font-size: 2em;
}

.unique-code {
    font-size: 3em;
    font-weight: bold;
    color: #FFC107;
    padding: 20px;
    background: #2c2c2c;
    border-radius: 10px;
    margin: 20px 0;
    letter-spacing: 5px;
}

.code-info {
    color: #666;
    margin-bottom: 30px;
}

.close-modal {
    padding: 15px 40px;
    background: linear-gradient(135deg, #FFC107 0%, #FFD54F 100%);
    color: #2c2c2c;
    border: none;
    border-radius: 25px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s;
}

.close-modal:hover {
    transform: scale(1.05);
}

/* Tablet View */
@media (min-width: 601px) and (max-width: 968px) {
    body::before {
        animation-duration: 25s;
        opacity: 0.7;
    }
}

/* Desktop View */
@media (min-width: 969px) {
    body {
        padding: 20px;
    }
    
    body::before {
        opacity: 1;
    }
    
    .container {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
    
    .campaign-section {
        padding: 30px;
        order: 1;
    }
    
    .chatbot-container {
        height: 600px;
        order: 2;
    }
    
    .campaign-header h1 {
        font-size: 2.5em;
    }
    
    .campaign-header p {
        font-size: 1.2em;
        margin-bottom: 30px;
    }
    
    .carousel-container {
        height: 550px;
    }
        .carousel-slide img {
        object-fit: cover;
    }
        .campaign-overlay {
        padding: 30px;
    }
    
    .campaign-overlay h2 {
        font-size: 2em;
        margin-bottom: 10px;
    }
    
    .campaign-overlay p {
        font-size: 1.1em;
    }
}

@media (max-width: 600px) {
    body {
        padding: 10px;
    }
    
    body::before {
        animation-duration: 30s;
        opacity: 0.5;
    }
    
    body::after {
        opacity: 0.5;
    }

    .campaign-section {
        padding: 15px;
    }
    
    .campaign-header h1 {
        font-size: 1.5em;
    }
    
    .campaign-header p {
        font-size: 0.9em;
    }
    
    .carousel-container {
        height: 200px;
    }
    
    .chatbot-container {
        height: 550px;
    }
    
    .unique-code {
        font-size: 2em;
        letter-spacing: 3px;
    }
    
    .chat-input-area {
        padding: 15px;
    }
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #2c2c2c 0%, #4a4a4a 100%);
    padding: 40px 15px 20px;
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
}

.contact-header {
    text-align: center;
    margin-bottom: 30px;
}

.contact-header h2 {
    color: white;
    font-size: 2em;
    margin-bottom: 10px;
}

.contact-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1em;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-block {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.contact-block h3 {
    color: #FFC107;
    font-size: 1.5em;
    margin-bottom: 20px;
    text-align: center;
}

/* Social Links */
.social-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    border-radius: 10px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.social-link:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.social-link svg {
    flex-shrink: 0;
}

.social-link.facebook {
    background: #1877f2;
}

.social-link.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-link.whatsapp {
    background: #25D366;
}

.social-link.tiktok {
    background: #000000;
}

.social-link.youtube {
    background: #ff0000;
}

/* Contact Info */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 10px;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.contact-item:hover {
    background: #e8e8e8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.contact-item svg {
    flex-shrink: 0;
    color: #FFC107;
    margin-top: 3px;
}

.contact-item strong {
    display: block;
    color: #FFC107;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.contact-item p {
    color: #666;
    margin: 0;
}

/* Contact Footer */
.contact-footer {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.contact-footer p {
    color: white;
    font-size: 0.85em;
}

/* Desktop View Overrides for Contact Section */
@media (min-width: 969px) {
    .contact-section {
        padding: 60px 20px 30px;
        margin-top: 50px;
    }
    
    .contact-header h2 {
        font-size: 2.5em;
    }
    
    .contact-header p {
        font-size: 1.2em;
    }
    
    .contact-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        margin-bottom: 40px;
    }
    
    .contact-block {
        padding: 30px;
    }
    
    .contact-block h3 {
        font-size: 1.8em;
    }
}

@media (max-width: 600px) {
    .contact-header h2 {
        font-size: 1.6em;
    }
    
    .contact-block {
        padding: 20px;
    }
    
    .contact-block h3 {
        font-size: 1.3em;
    }
    
    .social-link {
        padding: 12px 15px;
        font-size: 0.9em;
    }
    
    .contact-footer p {
        font-size: 0.75em;
    }
}
