/* General Styles */
body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background-color: #0d0d0d;
    color: #fff;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #141414;
    border-bottom: 2px solid #00ff00;
}

/* Logo */
.logo h1 {
    font-size: 20px; /* Reduced size for better mobile view */
    color: #fff;
    margin: 0;
}

.logo span {
    color: #00ff00;
}

/* Navigation */
.nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
    margin: 0;
    padding: 0;
}

.nav ul li {
    display: inline;
}

.nav ul li a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    transition: color 0.3s;
    font-size: 14px; /* Reduced font size for mobile */
}

.nav ul li a:hover {
    color: #00ff00;
}

/* Mobile Responsive Menu */
@media screen and (max-width: 768px) {
    .header {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }

    .logo h1 {
        font-size: 18px; /* Smaller logo for mobile */
        margin-bottom: 10px;
    }

    .nav ul {
        flex-direction: row; /* Keep items in a horizontal row */
        gap: 20px; /* Increased gap for better spacing */
    }

    .nav ul li a {
        font-size: 14px; /* Adjusted font size for readability */
    }
}

/* Hero Section */
.hero {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: 400px;
    background: url('/images/dracoCodesHome.png') no-repeat center center;
    background-size: cover;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
}

.hero-text {
    position: relative;
    z-index: 1;
}

.hero-text h2 {
    font-size: 32px;
}

.hero-text p {
    font-size: 18px;
    margin-top: 10px;
}

.btn {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 25px;
    background-color: #00ff00;
    color: #0d0d0d;
    font-weight: bold;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #00cc00;
}

/* Chat Container */
.chat-container {
    display: none; /* Hidden by default */
    flex-direction: column;
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 350px;
    height: 500px;
    background-color: #1a1a1a;
    border-radius: 15px;
    overflow: hidden;
    z-index: 1000; /* Ensures chat is above other elements */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Chat Header */
.chat-header {
    background-color: #00ff00;
    color: #0d0d0d;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    font-weight: bold;
}

/* Chat Logo */
.chat-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
}

.chat-logo-img {
    max-width: 50px;
    height: auto;
}

/* Chat Close Button (X) */
.chat-close-btn {
    background-color: transparent;
    color: #0d0d0d;
    border: none;
    font-size: 16px;
    font-weight: bold;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease-in-out;
}

.chat-close-btn:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

/* Chat Body */
.chat-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px;
    background-color: #121212;
    display: flex;
    flex-direction: column;
}

/* Chat Footer */
.chat-footer {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: #1a1a1a;
    border-top: 1px solid #222;
}

/* Chat Input */
#chat-input {
    flex-grow: 1;
    padding: 8px;
    border: none;
    border-radius: 5px;
    background-color: #0d0d0d;
    color: #fff;
    font-size: 14px;
}

#chat-input:focus {
    outline: 2px solid #00ff00;
}

/* Send Button */
#send-chat {
    background-color: #00ff00;
    color: #0d0d0d;
    border: none;
    border-radius: 5px;
    padding: 8px 12px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    transition: background-color 0.2s ease-in-out;
    margin-left: 5px;
}

#send-chat:hover {
    background-color: #00cc00;
}

/* Chat Bubbles */
.chat-bubble {
    max-width: 75%;
    margin: 5px 0;
    padding: 8px 12px;
    border-radius: 10px;
    line-height: 1.4;
    word-wrap: break-word;
}

/* User Chat Bubble */
.chat-bubble.user {
    background-color: #00ff00;
    color: #0d0d0d;
    align-self: flex-end;
    margin-left: auto;
    border-bottom-right-radius: 0;
}

/* Bot Chat Bubble */
.chat-bubble.bot {
    background-color: #333;
    color: #ffffff;
    align-self: flex-start;
    margin-right: auto;
    border-bottom-left-radius: 0;
}

/* Responsive Chat Styling */
@media screen and (max-width: 768px) {
    .chat-container {
        width: 90%;
        right: 5%;
        height: 450px;
    }
}

/* Services Section */
.services {
    text-align: center;
    padding: 50px 20px;
    background-color: #1a1a1a;
}

.service-list {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.service-item {
    width: 300px;
    padding: 20px;
    background-color: #141414;
    border: 2px solid #00ff00;
    border-radius: 10px;
}

/* Why Choose DracoCodes Section */
.why-dracocodes {
    padding: 50px 20px;
    background-color: #0d0d0d;
    color: #fff;
    text-align: center;
}

.counters {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 20px;
}

.counter-item {
    background-color: #1a1a1a;
    border: 2px solid #00ff00;
    border-radius: 10px;
    padding: 20px;
    width: 250px;
    flex: 1 1 250px; /* Allows flexibility for responsiveness */
    max-width: 300px; /* Ensures items don't stretch too wide on large screens */
    box-sizing: border-box; /* Includes padding and border in the element's total width and height */
}

.counter {
    font-size: 48px;
    font-weight: bold;
    color: #00ff00;
}

.counter-label {
    font-size: 18px;
    margin-top: 10px;
}

.counter-description {
    font-size: 14px;
    color: #ccc;
    margin-top: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .counters {
        flex-direction: column;
        align-items: center;
    }

    .counter-item {
        width: 100%;
        max-width: 400px; /* Adjusts the maximum width for smaller screens */
    }

    .counter {
        font-size: 36px; /* Reduces font size for smaller screens */
    }
}

/* Packages Section */
.packages {
    text-align: center;
    padding: 50px 20px;
    background-color: #141414;
}

.packages-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.package-card {
    background-color: #1a1a1a;
    border: 2px solid #00ff00;
    border-radius: 10px;
    padding: 20px;
    width: 300px;
    text-align: left;
}

.package-card h3 {
    color: #00ff00;
}

.package-card p {
    font-size: 14px;
}

.package-card .btn {
    display: block;
    text-align: center;
    margin-top: 15px;
}

/* Popup Overlay */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999;
}

/* Package Details Popup */
.popup-content {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #1a1a1a;
    color: #fff;
    padding: 30px;
    border-radius: 15px;
    z-index: 1000;
    width: 80%;
    max-width: 500px;
    text-align: left;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease-in-out;
}

.popup-content h3 {
    color: #00ff00;
    font-size: 22px;
    margin-bottom: 15px;
    text-align: center;
    border-bottom: 2px solid #00ff00;
    padding-bottom: 10px;
}

.popup-content ul {
    margin: 10px 0;
    padding-left: 20px;
}

.popup-content li {
    margin-bottom: 10px;
    font-size: 16px;
}

.popup-content .close-btn {
    display: block;
    width: 65%;
    background-color: #00ff00;
    color: #0d0d0d;
    padding: 12px;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    margin-top: 15px;
    transition: background-color 0.3s ease-in-out;
}

.popup-content .close-btn:hover {
    background-color: #00cc00;
}

/* Limited-Time Offer Banner Styles */
.limited-time-offer {
    background-color: #9912f3;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    margin-bottom: 20px;
    font-weight: bold;
    font-size: 1.1em;
    border-radius: 5px;
}

/* Price Styling */
.price {
    margin-top: 10px;
    font-size: 1.2em;
}

.regular-price {
    text-decoration: line-through;
    color: #ff0000; /* Red color for the struck-through price */
    margin-right: 10px;
}

.sale-price {
    font-weight: bold;
    color: #00ff00; /* Green color for the sale price */
}

/* Developer Section */
.developer {
    text-align: center;
    padding: 50px 20px;
    background-color: #121212;
}

.developer-photo {
    width: 150px;
    height: 150px;
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    margin: 0 auto 15px;
}

/* About Section */
.about {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #1a1a1a;
    padding: 80px 5%;
    flex-wrap: wrap;
    text-align: left;
    max-width: 1100px;
    margin: auto;
}

.about-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 50px;
    max-width: 1100px;
    width: 100%;
}

.about-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.about-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.about-text {
    flex: 1;
    text-align: left;
    font-size: 18px;
    line-height: 1.6;
    color: #ddd;
    max-width: 500px;
}

.about-text h2 {
    font-size: 28px;
    color: #fff;
    margin-bottom: 15px;
    border-bottom: 3px solid #00ff00;
    display: inline-block;
    padding-bottom: 5px;
}

.about-text span {
    color: #00ff00;
    font-weight: bold;
}

.about-text p {
    margin-bottom: 15px;
}

@media screen and (max-width: 768px) {
    .about {
        flex-direction: column;
        text-align: center;
        padding: 50px 5%;
    }

    .about-container {
        flex-direction: column;
        text-align: center;
    }

    .about-text {
        text-align: center;
    }

    .about-image img {
        max-width: 80%;
    }
}

/* Footer */
.footer {
    background-color: #0d0d0d;
    padding: 40px 5%;
    border-top: 2px solid #00ff00;
    text-align: center;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -55%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Responsive Popup */
@media screen and (max-width: 768px) {
    .popup-content {
        width: 90%;
        padding: 25px;
    }
}
