/* assets/css/styles.css */

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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Navbar Styles */
.navbar-brand .icon {
    margin-right: 8px;
}

.navbar-nav .nav-link {
    display: flex;
    align-items: center;
}

.navbar-nav .nav-link .icon {
    margin-right: 5px;
}

.navbar-nav .nav-link.active {
    font-weight: bold;
}

.navbar-nav .nav-link:hover {
    color: #ffc107 !important;
}

/* Hero Section */
.hero-section {
    background-color: #007bff; /* Primary Blue */
    color: #fff;
    padding: 100px 0; /* Added padding */
    text-align: left;
    border-bottom: 2px solid #0056b3; /* Added line */
}

.hero-section h1 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 20px;
    margin-bottom: 30px;
}

.hero-section .btn-warning {
    background-color: #ffc107;
    border: none;
    transition: background-color 0.3s ease;
}

.hero-section .btn-warning:hover {
    background-color: #e0a800;
}

/* Section Styles */
.section {
    padding: 100px 0; /* Increased padding to each section */
    border-top: 2px solid #e9ecef; /* Added top line */
}

.section.bg-light {
    background-color: #f8f9fa;
}

.section h2 {
    font-size: 36px;
    margin-bottom: 40px;
    color: #007bff;
    text-align: center;
}

.section .row {
    justify-content: center;
}

/* Card Styles */
.card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.card img {
    height: 200px;
    object-fit: cover;
}

.card-title {
    font-size: 20px;
    margin-bottom: 15px;
    color: #007bff;
}

.card-text {
    font-size: 14px;
    color: #555;
}

/* About Us Section */
#about .row .col-md-6 img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

#about .row .col-md-6 p {
    margin-bottom: 20px;
    font-size: 16px;
}

/* Testimonials Section */
.testimonial {
    background-color: #fff;
    padding: 40px;
    border-left: 5px solid #007bff;
    transition: background-color 0.3s ease;
    border-bottom: 2px solid #e9ecef; /* Added bottom line */
}

.testimonial:hover {
    background-color: #f1f1f1;
}

.testimonial p {
    font-style: italic;
    margin-bottom: 15px;
}

.testimonial h5 {
    font-weight: bold;
    color: #007bff;
}

/* Contact Section */
.contact-info i {
    margin-right: 8px;
}

#contact-form {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-top: 2px solid #e9ecef; /* Added top line */
}

#contact-form .form-label {
    font-weight: bold;
}

#contact-form .btn-primary {
    background-color: #007bff;
    border: none;
    transition: background-color 0.3s ease;
}

#contact-form .btn-primary:hover {
    background-color: #0056b3;
}

#form-message {
    font-size: 16px;
}

.contact-info {
    margin-top: 20px;
}

.contact-info p {
    font-size: 16px;
    margin-bottom: 10px;
}

/* Footer Styles */
footer {
    background-color: #343a40;
    color: #fff;
    padding: 20px 0;
    border-top: 2px solid #212529; /* Added top line */
}

footer a {
    color: #ffc107;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #fff;
}

.social-media a .fa-lg {
    transition: color 0.3s ease;
}

.social-media a:hover .fa-lg {
    color: #ffc107;
}

/* Anime Section Styles */
.anime-section {
    padding: 60px 0;
    background-color: #ffffff;
}

/* Chat Interface Styles */

/* Fixed Chat Container */
.chat-container {
    position: fixed;
    bottom: 80px; /* Positioned above the Call Fritz button */
    right: 20px;
    width: 350px; /* Fixed width */
    height: 500px; /* Fixed height */
    background-color: #ffffff;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    font-family: 'Roboto', sans-serif; /* Align with body font */
    display: flex;
    flex-direction: column;
    z-index: 1000; /* Ensure it overlays other elements */
    overflow: hidden; /* Prevent content overflow */
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Chat Header */
.chat-title {
    font-size: 1.5rem;
    color: #007bff;
    text-align: center;
    margin-bottom: 10px;
    font-weight: bold;
    position: relative; /* For positioning the minimize button */
}

/* Minimize Button - Updated to Red Color and "-" Character */
.minimize-btn {
    position: absolute;
    top: 5px; /* Adjusted for better alignment */
    right: 10px; /* Adjusted for better alignment */
    background: transparent;
    border: none;
    font-size: 1.2rem;
    color: #dc3545; /* Changed to red */
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.minimize-btn:hover {
    color: #c82333; /* Darker red on hover */
}

/* Chat Subtitle */
.chat-subtitle {
    font-size: 0.9rem;
    color: #666666;
    text-align: center;
    margin-bottom: 20px;
}

/* Call Fritz Button */
.call-fritz-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    background-color: #dc3545; /* Bootstrap's danger red */
    color: #fff;
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.call-fritz-btn:hover {
    background-color: #c82333;
}

/* Chat Messages */
.chat-messages {
    background-color: #f1f1f1;
    border-radius: 10px;
    padding: 15px;
    flex-grow: 1;
    overflow-y: auto; /* Enable vertical scrolling */
    margin-bottom: 15px;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1);
}

/* Message Styles */
.message {
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
}

.message.assistant {
    justify-content: flex-start;
}

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

.message.assistant .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

.message .bubble {
    max-width: 70%;
    padding: 10px 15px;
    border-radius: 20px;
    font-size: 0.95rem;
    line-height: 1.4;
    background-color: #e5e5ea;
    color: #000;
    position: relative;
}

/* User Message Bubble */
.message.user .bubble {
    background-color: #007bff;
    color: #fff;
    border-bottom-right-radius: 0;
    text-align: right;
}

/* Assistant Message Bubble */
.message.assistant .bubble {
    background-color: #ffffff;
    color: #000;
    border-bottom-left-radius: 0;
    text-align: left;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Chat Input */
.chat-input {
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    padding: 12px 20px;
    border-radius: 25px;
    border: 1px solid #ccc;
    outline: none;
    background-color: #ffffff;
    color: #333333;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.chat-input input::placeholder {
    color: #999999;
}

.chat-input input:focus {
    border-color: #007bff;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.chat-input button {
    padding: 10px 15px; /* Reduced padding for thinner buttons */
    border: none;
    border-radius: 25px;
    background-color: #007bff;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1rem;
    flex-shrink: 0; /* Prevent button from shrinking */
}

.chat-input button:hover {
    background-color: #0056b3;
}

.chat-input button:active {
    background-color: #004080;
}

/* Restore Chat Button - Updated Styles */
.restore-chat-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #dc3545; /* Bootstrap's danger red */
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 50px; /* Oval shape */
    font-size: 1rem;
    cursor: pointer;
    z-index: 1001; /* Ensure it overlays other elements */
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.restore-chat-btn:hover {
    background-color: #c82333;
    transform: scale(1.05);
}

.restore-chat-btn {
    /* Remove pseudo-element to handle text directly */
    content: none;
    font-weight: bold;
    color: #fff;
}

/* Modal Styles */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4); /* Black with opacity */
}

.modal-content {
    background-color: #fff;
    margin: 10% auto; /* 10% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%; /* Could be more or less, depending on screen size */
    max-width: 500px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
}

/* Removed Open Chat Button Styles */
/*
.open-chat-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.open-chat-btn:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}
*/

/* Responsive Styles */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 80px 0; /* Reduced padding on smaller screens */
        border-bottom: 2px solid #0056b3;
    }

    .hero-section h1 {
        font-size: 32px;
    }

    .hero-section p {
        font-size: 16px;
    }

    .hero-section .btn-warning {
        width: 100%;
    }

    .navbar-nav {
        text-align: center;
    }

    .navbar-nav .nav-link {
        justify-content: center;
    }

    /* Reduce card image size */
    .card img {
        height: 150px;
    }

    .section {
        padding: 80px 0; /* Increased padding */
        border-top: 2px solid #e9ecef;
    }

    .section h2 {
        font-size: 28px;
    }

    .testimonial {
        padding: 30px;
    }

    .testimonial p {
        font-size: 14px;
    }

    .testimonial h5 {
        font-size: 16px;
    }

    /* Chat Container Adjustments for Tablet */
    .chat-container {
        width: 300px;
        height: 450px;
    }

    .chat-title {
        font-size: 1.5rem;
    }

    .chat-subtitle {
        font-size: 0.9rem;
    }

    .call-fritz-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .chat-input input {
        padding: 8px;
        font-size: 0.9rem;
    }

    .chat-input button {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    /* Modal Content */
    .modal-content {
        width: 90%;
        max-width: 400px;
    }
}

@media (max-width: 576px) {
    .card img {
        height: 120px;
    }

    .section h2 {
        font-size: 24px;
    }

    .hero-section h1 {
        font-size: 28px;
    }

    .hero-section p {
        font-size: 14px;
    }

    #contact-form {
        padding: 20px;
    }

    /* Chat Container Adjustments for Mobile */
    .chat-container {
        width: 90%;
        height: 400px;
        right: 5%;
    }

    .chat-title {
        font-size: 1.2rem;
    }

    .chat-subtitle {
        font-size: 0.8rem;
    }

    .call-fritz-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .chat-input input {
        padding: 6px;
        font-size: 0.8rem;
    }

    .chat-input button {
        padding: 6px 10px;
        font-size: 0.8rem;
    }
}

/* Additional Styles for Sleek, Modern Apple iPhone Style */

/* Scrollbar Styling */
.chat-messages::-webkit-scrollbar {
    width: 8px;
}

.chat-messages::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: #cccccc;
    border-radius: 4px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: #b3b3b3;
}

/* Smooth Transitions for Messages */
.message .bubble {
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Hover Effects for Message Bubbles */
.message.assistant .bubble:hover {
    background-color: #e0e0e0;
}

.message.user .bubble:hover {
    background-color: #0069d9;
}

/* Media Query Enhancements for Mobile Devices */
@media (max-width: 768px) {
    .chat-container {
        height: 400px;
    }
}

@media (max-width: 576px) {
    .chat-container {
        height: 350px;
    }
}

/* Restore Chat Button Text Styling */
/* Removed ::before and handled text directly */
