/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #121212;
    color: #ffffff;
    line-height: 1.6;
}

/* Navigation Bar */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.nav-left h1 {
    color: #00d4ff;
    font-size: 1.5rem;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-right a, .nav-right button {
    color: #ffffff;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: none;
    background: none;
    cursor: pointer;
    transition: color 0.3s;
}

.nav-right a:hover, .nav-right button:hover {
    color: #00d4ff;
}

/* Hamburger menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
    background-color: transparent;
    border: none;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #ffffff;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Dropdown styles */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background-color: transparent;
    color: #ffffff;
    border: none;
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: color 0.3s;
}

.dropbtn:hover {
    color: #00d4ff;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #2a2a2a;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown.open .dropdown-content {
    display: block;
}

.dropdown.mobile .dropdown-content {
    position: static;
    width: 100%;
    background-color: #1e1e1e;
}

.dropdown-content a {
    color: #cccccc;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #00d4ff;
    color: #121212;
}

.dropdown:not(.mobile):hover .dropdown-content {
    display: block;
}

/* Welcome Section */
#welcome {
    height: 100vh;
    background-image: url('../media/background.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.welcome-content h2 {
    font-size: 3rem;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Features Section */
#features {
    padding: 4rem 2rem;
    background-color: #1e1e1e;
    text-align: center;
}

#features h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #00d4ff;
}

.feature-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature {
    background-color: #2a2a2a;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s, box-shadow 0.3s;
    animation: fadeInUp 1s ease-out;
}

.feature:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

.feature h3 {
    color: #00d4ff;
    margin-bottom: 1rem;
}

.feature p {
    color: #cccccc;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
footer {
    background-color: #0a0a0a;
    padding: 2rem;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    text-align: center;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin: 1rem;
    text-align: center;
}

.footer-section h3 {
    color: #00d4ff;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #00d4ff;
}

/* Login Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #1e1e1e;
    margin: 15% auto;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    text-align: center;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #ffffff;
}

#login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#login-form label {
    text-align: left;
    color: #cccccc;
}

#login-form input {
    padding: 0.5rem;
    border: 1px solid #333;
    border-radius: 4px;
    background-color: #2a2a2a;
    color: #ffffff;
}

#login-form button {
    padding: 0.5rem;
    background-color: #00d4ff;
    color: #121212;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

#login-form button:hover {
    background-color: #0099cc;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .welcome-content h2 {
        font-size: 2.5rem;
    }

    .feature-list {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-right {
        position: fixed;
        top: 100%;
        left: 0;
        width: 100%;
        height: calc(100vh - 100%);
        background-color: rgba(0, 0, 0, 0.9);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
    }

    .nav-right.active {
        transform: translateX(0);
    }

    .dropdown {
        width: 80%;
        margin: 1rem 0;
    }

    .dropbtn {
        width: 100%;
        text-align: center;
        padding: 1rem;
        font-size: 1.2rem;
    }

    .dropdown-content {
        width: 100%;
        position: static;
        display: none;
        background-color: #1e1e1e;
        text-align: center;
    }

    .dropdown:hover .dropdown-content {
        display: block;
    }

    .welcome-content h2 {
        font-size: 2rem;
        padding: 0 1rem;
    }

    #features {
        padding: 2rem 1rem;
    }

    #features h2 {
        font-size: 2rem;
    }

    .feature-list {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature {
        padding: 1.5rem;
    }

    footer {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
    }

    .footer-section {
        margin: 0.5rem 0;
    }

    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }

    #login-form input, #login-form button {
        padding: 0.75rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .welcome-content h2 {
        font-size: 1.5rem;
    }

    #features h2 {
        font-size: 1.8rem;
    }

    .feature {
        padding: 1rem;
    }

    .feature h3 {
        font-size: 1.2rem;
    }

    .footer-section h3 {
        font-size: 1.2rem;
    }

    .nav-left h1 {
        font-size: 1.2rem;
    }

    .dropbtn, .nav-right a, .nav-right button {
        padding: 0.75rem;
        font-size: 1rem;
    }
}
