/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background-color: #000;
    display: flex;
    flex-direction: column;
    font-family: 'Fira Code', monospace;
    cursor: url('../images/cursor1.png'), auto;
}

/* Header Styling */
header {
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    padding: 0.6rem 0; /* Reduced padding for smaller navbar */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    
}

.navbar {
    display: flex;
    justify-content: center;  /* Centers the navbar */
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 17px; /* Reduced padding for a more compact design */
    position: relative;
}
.nav-links {
    list-style: none;
    display: flex;
    justify-content: space-evenly;  /* Spreads out the nav items evenly */
    width: 100%;  /* Ensures the space is distributed across the whole navbar */
    padding: 0;
    margin: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-links li {
    margin-left: 15px; /* Reduced spacing between nav items */
}

.nav-links a {
    text-decoration: none;
    color: #fff;
    font-weight: 500;
    font-size: 1rem; /* Reduced font size */
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #9b59b6;
}

/* Dropdown Menu */
.portfolio {
    position: relative;  /* To position the dropdown relative to the portfolio item */
}

.portfolio .dropdown {
    display: none;  /* Hide by default */
    position: absolute;  /* Position it below the Portfolio item */
    top: 100%;  /* Position directly below */
    background-color: rgba(0, 0, 0, 0.9);  /* Matches the navbar background */
    padding: 0;
    margin: 0;
    list-style: none;
    width: 250px;  /* Adjust the width as needed */
    border-radius: 5px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.3);  /* Adds a subtle shadow */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    margin-left: -60px;
}

.portfolio:hover .dropdown {
    display: block;
    opacity: 1;
    visibility: visible;  /* Show the dropdown when hovering over Portfolio */
}

.dropdown li {
    padding: 10px;

}

.dropdown li:last-child {
    border-bottom: none;  /* Remove the last border */
}

.dropdown a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    display: block;
    padding: 0px 0px;
    margin-left: 10px;
    transition: background-color 0.3s ease, padding 0.3s ease;
}

.dropdown a:hover {
    color: #fff;
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    background: #fff;
    height: 3px;
    width: 25px;
    margin: 4px 0;
    transition: 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    position: relative;
    top: 8px;
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    position: relative;
    top: -8px;
}

/* Contact Section */
.contact {
    background: linear-gradient(to bottom, rgba(152, 119, 187, 0.251), rgba(0, 0, 0, 0.9));
    color: #fff;
    text-align: center;
    padding: 120px 20px;
    margin-top: 20px;
    flex: 1;
    transition: background-position 0.1s ease-out;
}

.contact-content h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    animation: fadeInUp 1s ease-out, slideInLeft 1s ease-in;
}

.contact-content p {
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.contact form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    font-size: 1rem;
    background-color:  rgba(255, 255, 255, 0);
    color: #fff;
    border: 1px solid #fff;;
    border-radius: 5px;
    box-sizing: border-box;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.621);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.637);
}

.form-group textarea {
    resize: vertical;
}

.btn {
    width: 600px;
    height: 40px;
    font-family: 'Fira Code', monospace;
    background-color: rgba(255, 255, 255, 0);
    color: white;
    border: 3px solid rgba(255, 255, 255, 0);
    border-radius: 50px;
    font-size: 15px;
    pointer-events: auto; /* Allow interaction with the button */
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.87);
}

.btn:hover {
    background: rgba(130, 100, 162, 0.142);
    color: white;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.961);
    transform: translateY(-5px);
}

/* GitHub and LinkedIn Icons */
.github-icon, .linkedIn-icon {
    font-size: 1.9rem;
    color: #fff;
    text-decoration: none;
    margin-left: 20px;
}

.github-icon:hover, .linkedIn-icon:hover {
    color: #9b59b6;
}

/* Footer Styling */
footer {
    text-align: center;
    background: rgba(0, 0, 0, 0.8);
    color: #e0e0e0;
    padding: 10px 0;
    flex-shrink: 0;
}


/* Media Queries for Responsiveness */
@media (max-width: 768px) {
    .nav-links {
        position: absolute;
        top: 70px;
        right: 0;
        background: #1c1c1e;
        flex-direction: column;
        align-items: center;
        width: 100%;
        transform: translateY(-150%);
        opacity: 0;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-links li {
        margin: 15px 0;
    }

    .menu-toggle {
        display: flex;
    }

    .contact-content h1 {
        font-size: 2.2rem;
    }

    .contact-content p {
        font-size: 1.1rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 1rem;
    }
}

#dots-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none; /* Make sure it doesn't block other elements */
  }
  
  canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 150%;
    margin-top: 30px;
    background: rgba(0, 0, 0, 0.1);
  }
