:root {
    --bg-color: #121212;
    --text-color: #ffffff;
    --accent-color: #4fb2c5;
    --secondary-color: #282828;
    --transition-speed: 0.3s;
    --font-family: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

#background-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

header {
    position: fixed;
    width: 100%;
    background-color: var(--secondary-color);
    padding: 20px 0;
    z-index: 1000;
    transition: background-color var(--transition-speed);
}

header.scrolled {
    background-color: rgba(18, 18, 18, 0.9);
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.5em;
    font-weight: bold;
    color: var(--text-color);
}

.logo svg {
    margin-right: 10px;
}

nav {
    float: right;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

.hamburger {
    display: none;
    font-size: 1.5em;
    color: var(--text-color);
    cursor: pointer;
}

@media (max-width: 768px) {
    nav ul {
        display: none;
        flex-direction: column;
        background-color: var(--secondary-color);
        position: absolute;
        top: 60px;
        right: 20px;
        width: 150px;
        border-radius: 5px;
    }

    nav ul.active {
        display: flex;
    }

    nav ul li {
        margin: 10px 0;
        text-align: center;
    }

    .hamburger {
        display: block;
    }
}

i {
    margin-right: 8px;
    font-size: 1.2em;
}

a {
    color: var(--text-color);
    font-weight: 500;
    transition: color var(--transition-speed);
}

a:not(.btn):hover {
    color: var(--accent-color);
}

.btn {
    display: inline-block;
    padding: 10px 30px;
    margin: 0 10px;
    background-color: var(--accent-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 50px;
    transition: background-color var(--transition-speed), transform var(--transition-speed);
}

.btn:hover {
    background-color: #378494;
    transform: translateY(-5px);
}

#hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(18, 18, 18, 0.6);
    z-index: 1;
}

#hero .content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

#hero h2 {
    font-size: 3em;
    margin-bottom: 20px;
    animation: slideInLeft 1s ease-out;
}

#hero p {
    font-size: 1.2em;
    margin-bottom: 30px;
    animation: slideInRight 1s ease-out;
}

#about {
    padding: 100px 0;
    background-color: var(--secondary-color);
}

#about h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5em;
    position: relative;
}

#about h2::after {
    content: '';
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s ease-out;
}

.about-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-text {
    flex: 1 1 500px;
    padding: 20px;
}

ul {
    list-style: disc inside;
    margin-top: 10px;
}

.github-profiles {
    margin-top: 20px;
}

.github-profiles h3 {
    margin-bottom: 10px;
}

.github-links {
    display: flex;
    gap: 20px;
}

.about-image {
    flex: 1 1 400px;
    padding: 20px;
    text-align: center;
}

.about-image img {
    max-width: 100%;
    border-radius: 10px;
    animation: zoomIn 1s ease-out;
}

#projects {
    padding: 100px 0;
}

#projects h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5em;
    position: relative;
}

#projects h2::after {
    content: '';
    width: 60px;
    height: 4px;
    background-color: var(--accent-color);
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
}

.projects-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.project-card {
    background-color: var(--secondary-color);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    transform: translateY(20px);
    opacity: 0;
    transition: transform var(--transition-speed), opacity var(--transition-speed);
    display: flex;
    flex-direction: column;
    width: 45%;
}

.project-card.visible {
    transform: translateY(0);
    opacity: 1;
}

.project-card img {
    width: 100%;
    object-fit: contain;
    margin: 0 auto;
}

.project-card h3 {
    padding: 15px;
    font-size: 1.5em;
    background-color: var(--accent-color);
    color: var(--text-color);
}

.project-card p {
    padding: 20px;
    font-size: 1em;
}

.project-card a {
    color: var(--text-color);
}

footer {
    padding: 20px 0;
    background-color: var(--secondary-color);
    text-align: center;
    position: relative;
}

footer .social-icons {
    margin-top: 10px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

html {
    scroll-behavior: smooth;
}
