:root {
    --bg-dark: #000000;
    --text-light: #ffffff;
    --text-muted: #a1a1aa;
    --accent-blue: #3b82f6;
    --accent-purple: #8a5cf6;
    --accent-dark-blue: #0c23a1a8;
    --background-img: 
        radial-gradient(circle at 20% 30%, #004cff69, transparent 40%),
        radial-gradient(circle at 80% 80%, #8a5cf669, transparent 60%);
    --font-main: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    background-image: var(--background-img);
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    color: var(--text-light);
    min-height: 100vh;
    overflow-x: hidden;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(1px);
    z-index: 999;
}
.nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: auto;
    padding: 1rem;
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    outline: none;
    position: relative;
    transition: color 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
}

.nav-links a:active {
    color: #00bfff;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: white;
    transition: width 0.3s ease, left 0.3s ease;
    transform: translateX(-50%);
}

@media (hover: hover) {
    .nav-links a:hover::after {
        width: 30%;
    }
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    display: block;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

@media (max-width: 960px) {
    .hamburger {
        display: flex;
    }

    .nav-container {
    justify-content: right;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        right: 0;
        width: 50vw;
        max-width: 100vw;
        background: rgba(0, 0, 0, 0.3);
        flex-direction: column;
        transform: scaleY(0);
        transform-origin: top;
        transition: transform 0.3s ease, opacity 0.3s ease;
        opacity: 0;
        pointer-events: none;
    }

    .nav-separator {
        height: 2px;
        background-color: rgba(255, 255, 255, 0.7);
        margin: 0 10%;
    }

    .nav-separator-top-edge {
        margin-top: 0.5rem;
    }

    .nav-separator-bottom-edge {
        margin-bottom: 0.5rem;
    }

    .nav-links.active {
        transform: scaleY(1);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-links a {
        margin: 0.5rem 0;
        text-align: center;
        width: 100%;
    }

    .nav-separator,
    .nav-separator-top-edge,
    .nav-separator-bottom-edge {
        height: 2px;
        background-color: rgba(255, 255, 255, 0.7);
        margin: 0 10%;
        transform: scaleX(0);
        transform-origin: center;
        opacity: 0;
    }

    .nav-links.active #sep1 {
        animation: growLine 0.3s ease forwards;
        animation-delay: 0.1s;
    }
    .nav-links.active #sep2 {
        animation: growLine 0.3s ease forwards;
        animation-delay: 0.15s;
    }

    @keyframes growLine {
        0% {
            transform: scaleX(0);
            opacity: 0;
        }
        100% {
            transform: scaleX(1);
            opacity: 1;
        }
    }
}

section {
    margin: 0px auto;
    padding: 2rem;
    width: 90%;
    max-width: 1100px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    backdrop-filter: blur(6px);
    animation: fadeInUp 1s ease both;
    margin-bottom: 2rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

main#app {
    padding-top: 100px;
    display: grid;
    gap: 2rem;
    max-width: 1200px;
    margin: auto;
}

h1 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 2rem;
}

h2 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.link{
    color: var(--accent-blue);
    text-decoration: none;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 3rem;
    padding: 6rem 2rem;
}

.hero-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 900px;
}

.hero-text {
    flex: 1;
    min-width: 280px;
    text-align: center;
}

.hero-text p {
    margin-bottom: 1rem;
}

.hero-img {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 0 1 320px;
}

.hero-img img {
    width: 280px;
    border-radius: 1rem;
    box-shadow: 0 0 20px rgba(138, 92, 246, 0.25);
    transition: transform 0.3s ease;
}

.hero-img img:hover {
    transform: scale(1.15);
}

@media (max-width: 960px) {
    .hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }

    .hero-img {
        width: 100%;
        justify-content: center;
    }

    .hero-img img {
        display: block;
        margin: 0 auto;
        width: min(75vw, 320px);
    }
}

.socials a {
    margin-right: 1rem;
    margin-left: 1rem;
    font-size: 2rem;
    color: var(--text-light);
    transition: color 0.3s;
}

.github:hover {
    color: #6e5494;
}

.instagram:hover {
    color: #e1306c;
}

.youtube:hover {
    color: #ff0000;
}

.facebook:hover {
    color: #3b5998;
}

.about {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 2rem 2rem;
}

.about-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 900px;
}

.about-text {
    flex: 1;
    min-width: 280px;
    text-align: center;
}

.about-text p {
    margin-bottom: 1rem;
}

.about-img {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 0 1 320px;
    gap: 0.5rem;
}

.about-photo {
    width: 280px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 0 20px rgba(138, 92, 246, 0.25);
    transition: transform 0.3s ease;
}

.about-photo:hover {
    transform: scale(1.15);
}

.img-caption {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
}

@media (max-width: 960px) {
    .about-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }

    .about-img {
        width: 100%;
        justify-content: center;
    }

    .about-photo {
        display: block;
        margin: 0 auto;
        width: min(75vw, 320px);
    }
}

.project-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
}

.project-card {
    background: linear-gradient(135deg, #004cff30, #8a5cf630);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    color: var(--text-light);
    width: 260px;
    height: 260px;
    text-decoration: none;
    transition: transform 0.2s, background 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(10px);
}
.project-card:hover {
    transform: translateY(-6px);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(138, 92, 246, 0.3));
    box-shadow: 0 0 15px rgba(138, 92, 246, 0.25);
}

.project-card img {
    border-radius: 8px;
    width: 100%;
    height: 160px;
    object-fit: cover;
    margin-bottom: 0.5rem;
}

.project-card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.project-card p {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    margin: 0;
}

.button {
    margin-top: 1rem;
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background: var(--accent-dark-blue);
    color: var(--text-light);
    border-radius: 0.4rem;
    text-decoration: none;
    transition: background 0.3s;
    font-weight: 600;
}

.button:hover {
    background: var(--accent-blue);
}

.project {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

}

.project-content {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    max-width: 900px;
}

.project-text {
    flex: 1;
    min-width: 280px;
    text-align: center;
}

.project-text p {
    margin-bottom: 1rem;
}

.project-img {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 0 1 320px;
    gap: 0.5rem;
}

.project-photo {
    width: 280px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 1rem;
    box-shadow: 0 0 20px rgba(138, 92, 246, 0.25);
    transition: transform 0.3s ease;
}

.project-photo:hover {
    transform: scale(1.08);
}

.project-video {
  margin: 1.5rem 0;
  text-align: center;
}

.project-video video {
  width: 100%;
  max-width: 1000px;
  border-radius: 12px;
  outline: none;
  display: block;
  margin: 0 auto;
  box-shadow: 0 0 20px rgba(138, 92, 246, 0.25);
}

.project-text ul {
    list-style: none;
    padding-left: 0;
    margin: 0.75rem 0;
}

@media (max-width: 960px) {
    .project-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 2rem;
    }

    .project-img {
        width: 100%;
        justify-content: center;
    }

    .project-photo {
        display: block;
        margin: 0 auto;
        width: min(75vw, 320px);
    }
}