html {
    scroll-behavior: smooth;
}

section {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

section.visible {
    opacity: 1;
    transform: translateY(0);
}

section:target {
    animation: sectionHighlight 1s ease-in-out;
}

@keyframes sectionHighlight {
    0% {
        background-color: rgba(0, 209, 255, 0.1);
    }
    100% {
        background-color: transparent;
    }
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background: url(background.jpg) no-repeat center center fixed;
    background-size: cover;
    color: #e0e0e0;
    line-height: 1.6;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(31, 31, 31, 0.95);
    border-bottom: 2px solid #333;
    z-index: 1000;
    text-align: center;
    padding: 0.2rem 0;
}

header h1 {
    font-size: 2rem;
    border-bottom: 2px solid #00d1ff;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

header p {
    color: #bbbbbb;
}

header nav {
    margin-top: 1.5rem;
}

header nav a {
    color: #00d1ff;
    text-decoration: none;
    margin: 0 1rem;
    font-weight: bold;
}

header nav a:hover {
    text-decoration: underline;
}

main {
    padding: 2rem 1rem;
    max-width: 1200px;
    margin: auto;
}

h2 {
    font-size: 2rem;
    border-bottom: 2px solid #00d1ff;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

#about {
    text-align: center;
    padding: 3rem 1rem;
    background: rgba(31, 31, 31, 0.95);
    margin-top: 3rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.about-container h2 {
    font-size: 2rem;
    border-bottom: 2px solid #00d1ff;
    margin-bottom: 1rem;
    color: #cccccc;
}

.about-container p {
    font-size: 1rem;
    color: #cccccc;
    max-width: 700px;
    margin: 0 auto 1rem auto;
}

#skills {
    text-align: center;
    margin: 3rem auto;
    padding: 2rem;
    background: rgba(31, 31, 31, 0.95);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#skills h2 {
    font-size: 2rem;
    border-bottom: 2px solid #00d1ff;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.skill-category {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1rem;
    text-align: left;
    width: 250px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

.skill-category:hover {
    transform: translateY(-5px);
}

.skill-category h3 {
    color: #cccccc;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.skill-category ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.skill-category li {
    font-size: 0.9rem;
    padding: 0.3rem 0;
    border-bottom: 1px dashed #333;
}

.skill-category li:last-child {
    border-bottom: none;
}

#projects {
    text-align: center;
    margin: 3rem auto;
    padding: 2rem;
    background: rgba(31, 31, 31, 0.95);
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#projects h2 {
    font-size: 2rem;
    border-bottom: 2px solid #00d1ff;
    padding-bottom: 0.5rem;
    margin-bottom: 1.5rem;
}

.projects-container {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1rem;
}

.project-card {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
    border-radius: 8px;
    padding: 1rem;
    text-align: left;
    width: 250px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease-in-out;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card h3 {
    color: #cccccc;
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.project-card p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: #cccccc;
    border-bottom: 1px dashed #333;
    padding-bottom: 0.5rem;
}

.project-card a {
    text-decoration: none;
    color: #00d1ff;
    font-weight: bold;
    display: inline-block;
    margin-top: 0.5rem;
}

.project-card a:hover {
    text-decoration: underline;
}


#contact {
    text-align: center;
    padding: 3rem 1rem;
    background: #1f1f1f;
    margin-top: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.contact-container h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #00d1ff;
}

.contact-container p {
    font-size: 1rem;
    color: #ccc;
    margin-bottom: 1.5rem;
}

#back-to-top {
    position: fixed;
    bottom: 70px;
    right: 30px;
    background-color: rgba(0, 209, 255, 0.5);
    color: #121212;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

#back-to-top.visible {
    display: block;
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background-color: #00a7cc;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(31, 31, 31, 0.95);
    border-top: 2px solid #333;
    z-index: 1000;
    text-align: center;
    font-size: 0.9rem;
}

footer a {
    color: #00d1ff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}
