/* Floating email button styles */
.email-button-floating {
    position: fixed;
    top: 32px;
    right: 32px;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
    color: #fff;
    border: none;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    cursor: pointer;
    z-index: 2200;
    transition: box-shadow 0.3s, background 0.3s, transform 0.2s;
    text-decoration: none;
}
.email-button-floating:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
    box-shadow: 0 12px 35px rgba(16, 185, 129, 0.3);
    transform: scale(1.08);
}
.email-button-floating:active {
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.2);
    transform: scale(0.98);
}
.email-button-floating i {
    animation: pulse 2s infinite;
}
/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow-x: hidden;
}

/* Container with background image */
.container {
    position: relative;
    min-height: 100vh;
    width: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('images/img01.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Content wrapper */
.content {
    text-align: center;
    z-index: 2;
    padding: 2rem;
    max-width: 600px;
    width: 100%;
}

/* Hero section */
.hero-section {
    animation: fadeInUp 1s ease-out;
}

.title {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    letter-spacing: -0.02em;
}

.subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    color: #f8f9fa;
    margin-bottom: 3rem;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

/* Chat button */
.chat-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    text-decoration: none;
    min-width: 200px;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.chat-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
}

.chat-button:active {
    transform: translateY(0);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.chat-button i {
    font-size: 1.2rem;
    animation: pulse 2s infinite;
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: opacity 0.3s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loading-spinner {
    text-align: center;
    color: #ffffff;
}

.loading-spinner i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #667eea;
}

.loading-spinner p {
    font-size: 1.1rem;
    font-weight: 500;
}

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

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Responsive design */
@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .chat-button {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        min-width: 180px;
    }
        .chat-button-floating {
            width: 52px;
            height: 52px;
            font-size: 1.5rem;
            bottom: 18px;
            right: 18px;
        }
    
    .content {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .chat-button {
        padding: 0.75rem 1.25rem;
        font-size: 0.95rem;
        min-width: 160px;
    }
        .chat-button-floating {
            width: 44px;
            height: 44px;
            font-size: 1.1rem;
            bottom: 10px;
            right: 10px;
        }
}

/* Ensure background covers entire viewport on mobile */
@media (max-width: 768px) {
    .container {
        background-attachment: scroll;
    }
}

/* Chat window styles */
.chat-window-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.6);
    transition: opacity 0.3s ease;
}
.chat-window-container.hidden {
    display: none;
}
.chat-window-overlay {
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.chat-window-box {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    padding: 0;
    position: relative;
    width: 90vw;
    max-width: 420px;
    height: 80vh;
    max-height: 600px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.chat-iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #f8f9fa;
}
.close-chat-window {
    position: absolute;
    top: 10px;
    right: 16px;
    background: #ef4444;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    transition: background 0.2s;
}
.close-chat-window:hover {
    background: #b91c1c;
}