/* 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.5rem 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 15px; /* 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;
}


/* Resume Section Styling */
.resume-section {
    background: linear-gradient(to bottom, rgba(152, 119, 187, 0.251), rgba(0, 0, 0, 0.9));
    text-align: center;
    padding: 50px 20px;
}

/* Title */
h1 {
    font-size: 2rem;
    margin-top: 30px;
    margin-bottom: 20px;
}

/* Controls Section */
.controls {
    margin-bottom: 20px;
    text-align: center;
}

button {
    background-color: #9b59b6;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 5px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #8f46de;
}

#download-resume:disabled {
    background-color: #555;
    cursor: not-allowed;
}

/* PDF Container Styling */
#pdf-container {
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    width: 80%;
    max-width: 1200px;
    height: 150vh;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

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


/* Responsive Design for Mobile */
@media (max-width: 768px) {
    #pdf-container {
        width: 100%;
        margin-left: 10px;
        margin-right: 10px;
    }

    h1 {
        font-size: 1.5rem;
    }

    .controls {
        margin-bottom: 15px;
    }

    button {
        font-size: 0.9rem;
        padding: 8px 15px;
    }
}


#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: 180%;
    margin-top: 30px;
    background: rgba(0, 0, 0, 0.1);
  }
