/* -------------------- */
/* RESET */
/* -------------------- */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #0f172a;
    color: #e2e8f0;
    line-height: 1.6;
}


/* -------------------- */
/* NAVBAR */
/* -------------------- */

.navbar {
    position: sticky;
    top: 0;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 1rem 8%;

    background: rgba(15, 23, 42, 0.85);

    backdrop-filter: blur(10px);

    border-bottom: 1px solid rgba(255,255,255,0.08);

    z-index: 1000;
}

.logo {
    font-size: 1.2rem;
    font-weight: bold;
}

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

.nav-links a {
    text-decoration: none;
    color: #cbd5e1;
    transition: 0.2s ease;
}

.nav-links a:hover {
    color: white;
}

#navbar-logo{
    text-decoration: none;
    color: #cbd5e1
}


/* -------------------- */
/* HERO SECTION */
/* -------------------- */

.hero {
    min-height: 90vh;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5rem;

    padding: 4rem 8%;
}

.hero-image img {
    width: 300px;
    height: 300px;

    border-radius: 50%;

    object-fit: cover;

    border: 4px solid #1e293b;
}


/* Right Content */

.hero-content {
    max-width: 700px;
}

.hero-content h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-text {
    color: #94a3b8;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}


/* -------------------- */
/* TAGS */
/* -------------------- */

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;

    margin-bottom: 2rem;
}

.tags span {
    background: #1e293b;
    color: #cbd5e1;

    padding: 0.6rem 1rem;

    border-radius: 999px;

    font-size: 0.9rem;

    transition: 0.2s ease;
}

.tags span:hover {
    transform: translateY(-2px);
}


/* -------------------- */
/* BUTTONS */
/* -------------------- */

.buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn {
    text-decoration: none;
    padding: 0.9rem 1.4rem;
    border-radius: 12px;

    transition: 0.2s ease;
}

.primary {
    background: #2563eb;
    color: white;
}

.secondary {
    border: 1px solid #334155;
    color: #e2e8f0;
}

.btn:hover {
    transform: translateY(-2px);
}


/* -------------------- */
/* RESPONSIVE */
/* -------------------- */

@media (max-width: 900px) {

    .hero {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-image img {
        width: 220px;
        height: 220px;
    }

    .buttons {
        justify-content: center;
    }

    .nav-links {
        gap: 1rem;
    }
}


@media (max-width: 600px) {

    .navbar {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 1.9rem;
    }
}

/* -------------------- */
/* PROJECTS */
/* -------------------- */

.projects-section {
    padding: 5rem 8%;
}

.projects-section h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background: #1e293b;
    padding: 2rem;
    border-radius: 20px;
    transition: 0.2s ease;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card h3 {
    margin-bottom: 1rem;
}

.project-card p {
    color: #94a3b8;
    margin-bottom: 1rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-bottom: 1.5rem;
}

.project-tags span {
    background: #334155;
    padding: 0.5rem 0.8rem;
    border-radius: 999px;
    font-size: 0.85rem;
}

.project-buttons {
    display: flex;
    gap: 1rem;
}

/* -------------------- */
/* PROJECT PAGE */
/* -------------------- */

.project-page {
    max-width: 900px;
    margin: auto;

    padding: 5rem 8%;
}

.project-page h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.project-description {
    color: #94a3b8;
    margin-bottom: 2rem;
}

.project-details {
    margin: 2rem 0;
    line-height: 1.8;
}

.back-link {
    display: inline-block;
    margin-bottom: 2rem;

    color: #60a5fa;
    text-decoration: none;
}

/* -------------------- */
/* SECTION SPACING */
/* -------------------- */

section {
    padding: 5rem 8%;
}


/* -------------------- */
/* SKILLS */
/* -------------------- */

.skills-section h2,
.about-section h2,
.connect-section h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
}

.skills-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-group {
    background: #1e293b;
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
}

.skill-group h3 {
    margin-bottom: 0.75rem;
}

.skill-group .tags {
    margin: 0;
}

.skill-group .tags span {
    background: #334155;
    color: #e2e8f0;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.skill-group .tags span:hover {
    transform: translateY(-2px);
}


/* -------------------- */
/* ABOUT */
/* -------------------- */

.about-content {
    max-width: 850px;
}

.about-content p {
    margin-bottom: 1.5rem;
    color: #cbd5e1;
}


/* -------------------- */
/* CONNECT */
/* -------------------- */

.connect-section p {
    color: #94a3b8;
    margin-bottom: 2rem;
}

.connect-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}


/* -------------------- */
/* FOOTER */
/* -------------------- */

.footer {
    padding: 2rem;

    text-align: center;

    border-top:
        1px solid rgba(255,255,255,0.08);

    color: #94a3b8;
}

/* -------------------- */
/* ANIMATION */
/* -------------------- */

.hidden {
    opacity: 0;
    transform: translateY(30px);

    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

.show {
    opacity: 1;
    transform: translateY(0);
}
