/* Reset Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", Arial, sans-serif;
    transition: all 0.3s ease-in-out;
    scroll-behavior: smooth;
}

/* General Styles */
body {
    background: linear-gradient(to right, #141E30, #243B55);
    color: white;
    line-height: 1.6;
}

h1, h2, h3 {
    text-align: center;
    margin-bottom: 15px;
}

a {
    color: #FFA500;
    text-decoration: none;
    font-weight: 500;
}

a:hover {
    text-decoration: underline;
}

/* Navigation Bar */
nav {
    background: rgba(0, 0, 0, 0.8);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

nav h1 {
    color: white;
    font-size: 26px;
    font-weight: bold;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

nav ul li {
    display: inline;
}

nav ul li a {
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
}

nav ul li a:hover {
    background: #FFA500;
}

/* Header */
header {
    background: rgba(0, 0, 0, 0.7);
    text-align: center;
    padding: 50px 20px;
    font-size: 1.3rem;
}

/* Explore Button */
#explore-btn {
    padding: 12px 20px;
    background: #FFA500;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
}

#explore-btn:hover {
    background: #ff6600;
}

/* Team Section */
.team-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    padding: 50px;
}

.team-member {
    background: #1C2833;
    padding: 20px;
    text-align: center;
    border-radius: 12px;
    transition: transform 0.3s;
    width: 240px;
}

.team-member:hover {
    transform: scale(1.07);
}

.team-member img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 12px;
    border: 3px solid #FFA500;
}

/* Project Section */
.project-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    padding: 50px;
}

.project-card {
    width: 280px;
    height: 360px;
    perspective: 1000px;
    position: relative;
}

.project-card div {
    width: 100%;
    height: 100%;
    position: absolute;
    backface-visibility: hidden;
    border-radius: 12px;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.5s;
}

.project-front img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
}

.project-back {
    background: #FFA500;
    color: white;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transform: rotateY(180deg);
    text-align: center;
}

.project-card:hover .project-front {
    transform: rotateY(180deg);
}

.project-card:hover .project-back {
    transform: rotateY(0deg);
}

/* Chatbot */
#chatbot {
    position: fixed;
    bottom: 20px;
    right: 20px;
}

#chatbot-toggle {
    background: #FFA500;
    border: none;
    padding: 12px;
    font-size: 24px;
    cursor: pointer;
    border-radius: 50%;
}

#chatbot-box {
    display: none;
    position: absolute;
    bottom: 60px;
    right: 0;
    background: white;
    width: 280px;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2);
}

#chat-input {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

#chat-send {
    width: 100%;
    padding: 10px;
    background: #FFA500;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 8px;
}

/* Newsletter */
#newsletter {
    text-align: center;
    padding: 50px;
    background: linear-gradient(to right, #222, #444);
    color: white;
}

#newsletter input {
    padding: 12px;
    width: 300px;
    margin: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

#subscribe {
    padding: 12px 20px;
    background: #ff6600;
    border: none;
    color: white;
    cursor: pointer;
    border-radius: 8px;
    font-weight: bold;
}

/* Contact Section */
#contact {
    text-align: center;
    padding: 40px;
    background: #f4f4f4;
    color: #333;
}

/* Responsive Design */
@media (max-width: 768px) {
    .team-container, .project-container {
        flex-direction: column;
        align-items: center;
    }

    nav {
        flex-direction: column;
        align-items: center;
    }

    nav ul {
        flex-direction: column;
        margin-top: 10px;
    }

    .team-member, .project-card {
        width: 90%;
    }
}
/* Default Light Mode */
body {
    background-color: #ffffff;
    color: #000000;
    transition: background-color 0.3s, color 0.3s;
}

/* Dark Mode */
body.dark-mode {
    background-color: #121212;
    color: #ffffff;
}

/* Navigation bar dark mode */
body.dark-mode nav {
    background-color: #222;
}

/* Dark mode button styling */
#dark-mode-toggle {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    padding: 5px;
    transition: color 0.3s;
}

body.dark-mode #dark-mode-toggle {
    color: yellow;
}

/* Chatbot Styles */
#chatbot-box {
    display: none;
    position: fixed;
    bottom: 50px;
    right: 20px;
    background: white;
    border: 1px solid #ccc;
    padding: 10px;
    width: 250px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

body.dark-mode #chatbot-box {
    background: #333;
    color: white;
    border: 1px solid #444;
}
