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

html {
    scroll-behavior: smooth;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #000;
}

body {
    background-image: url('dark-web-pic.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: #f2f2f2;
    padding: 0 1rem;
    filter: brightness(1.2);
}

/* Layout Sections */
header, main, footer, section {
    background-color: rgba(0, 0, 0, 0.7);
    padding: 2rem;
    margin: 1.5rem auto;
    max-width: 960px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}

/* Headings */
h1, h2 {
    color: #00ffe1;
    text-shadow: 1px 1px 3px #000;
    margin-bottom: 1rem;
}

h2 {
    font-size: 1.5rem;
}

/* Lists */
ul {
    list-style-type: square;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

/* Highlighted Text */
.highlight {
    background-color: rgba(50, 205, 50, 0.7);
    padding: 0.2em 0.4em;
}

/* Navigation */
nav {
    background: rgba(0, 0, 0, 0.75);
    padding: 1rem 2rem;
    margin: 1rem auto;
    border-radius: 10px;
    max-width: 960px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

nav a {
    text-decoration: none;
    color: #ffffff;
    font-weight: bold;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
    border: 1px solid transparent;
    position: relative;
}

nav a::after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    display: block;
    margin-top: 5px;
    right: 0;
    background: #00ffd0;
    transition: width 0.3s ease;
    -webkit-transition: width 0.3s ease;
    left: 0;
    bottom: 0;
}

nav a:hover::after {
    width: 100%;
    left: 0;
    background: #00ffd0;
}

nav a:hover {
    background-color: #00ffd0;
    color: #000;
    border-color: #00ffd0;
    box-shadow: 0 0 8px #00ffd0;
}

/* Timeline Styles */
#timeline {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 2rem;
}

#timeline::before {
    content: "";
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #00ffe1;
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #00ffe1;
    border: 3px solid #000;
}

.timeline-item .date {
    font-weight: bold;
    color: #00ffd0;
}

/* Progress Bars */
.skill {
    margin-bottom: 1rem;
}

.skill span {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.progress {
    background-color: #222;
    border-radius: 15px;
    overflow: hidden;
    height: 24px;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

.progress-bar {
    background-color: #00ffd0;
    height: 100%;
    width: var(--progress-width, 0);
    max-width: 100%;
    line-height: 24px;
    color: #000;
    font-weight: bold;
    text-align: center;
    border-radius: 15px 0 0 15px;
    transition: width 1.5s ease-in-out;
}

/* Contact Section */
#contact label {
    display: block;
    margin-bottom: 0.5rem;
}

#contact input[type="text"] {
    width: 100%;
    padding: 0.6rem;
    margin-bottom: 1rem;
    border-radius: 5px;
    border: none;
    font-size: 1rem;
}

#contact button {
    padding: 0.7rem 1.5rem;
    background-color: #00ffd0;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    color: #000;
    box-shadow: 0 0 8px #00ffd0;
    transition: background-color 0.3s ease;
}

#contact button:hover {
    background-color: #00c0a8;
}

/* Comment display */
#comment-display {
    margin-top: 1rem;
    min-height: 2rem;
    padding: 0.5rem;
    background-color: rgba(0, 255, 208, 0.15);
    border-radius: 8px;
    color: #00ffd0;
    font-weight: 600;
}

/* Footer */
footer {
    text-align: center;
    padding: 1rem;
    margin-top: 2rem;
    color: #00ffd0;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 600px) {
    nav ul {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    header, main, footer, section {
        padding: 1rem;
        margin: 1rem;
    }
    
    .progress-bar {
        font-size: 0.8rem;
    }
}
