/* =========================================================
   GLOBAL STYLES
   ========================================================= */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: none;
}

::-webkit-scrollbar {
    display: none;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #0d0d0d;
    color: #f5f5f5;
}

section {
    padding: 100px 10%;
}

section h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    color: #f5f5f5;
}

section h2:after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background-color: #ff7a00;
    margin-top: 10px;
    border-radius: 2px;
}

main section:nth-child(even) {
    background-color: #121212;
}

/* =========================================================
   NAVIGATION
   ========================================================= */

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

.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    padding: 18px 5%;
    background-color: rgba(13, 13, 13,0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #222;
    z-index: 1000;
}

.nav-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    flex-shrink: 0;
    font-size: 1.4rem;
    font-weight: bold;
    text-decoration: none;
    color: #ff7a00;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: clamp(15px, 2vw, 30px);
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    white-space: nowrap;
    text-decoration: none;
    color: #d0d0d0;
    transition: color 0.2s ease;
}
.nav-links a:hover,
.nav-links a.active {
    color: #ff7a00;
}

/* Hamburger Button */
.nav-toggle {
    display: none;
    padding: 5px;
    background: transparent;
    border: none;
    color: #ff7a00;
    font-size: 1.6rem;
    cursor: pointer;
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.nav-toggle i {
    transition:
        transform 0.3s ease,
        color 0.3s ease;
}

.nav-toggle.active i {
    transform: rotate(90deg);
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
    min-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 10%;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 900px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-intro {
    color: #ff7a00;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.hero h1 {
    font-size: 4.5rem;
    margin: 0;
    color: #ffffff;
}

.hero h2 {
    font-size: 1.5rem;
    font-weight: normal;
    color: #b5b5b5;
    margin-top: 15px;
}

.hero-description {
    max-width: 700px;
    margin: 30px auto;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #a5a5a5;
}

.hero::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(255, 122, 0, 0.12);
    border-radius: 50%;
    filter: blur(120px);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition:
    transform 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

.primary-button {
    background-color: transparent;
    border: 2px solid #ff7a00;
    color: #ff7a00;
}

.primary-button:hover {
    background-color: #ff7a00;
    color: #0d0d0d;
    transform: translateY(-3px);
}

.social-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: #888;
    text-decoration: none;
    transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.social-button:hover {
    color: #ff7a00;
    transform: translateY(-3px);
}

/* =========================================================
   ABOUT
   ========================================================= */

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

.about-text {
    text-align: left;
}

.about-text p {
    color: #aaa;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.about > h2 {
    text-align: center;
}

.about > h2::after {
    margin-left: auto;
    margin-right: auto;
}

/* =========================================================
   TECHNICAL SKILLS
   ========================================================= */

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-top: 40px;
}

.skill-card {
    background-color: #171717;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    padding: 30px;
    transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.skill-card:hover {
    transform: translateY(-5px);
    border-color: #ff7a00;
}

.skill-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.skill-card-header i {
    font-size: 1.7rem;
    color: #ff7a00;
}

.skill-card-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #ffffff;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-list span {
    background-color: #222;
    border: 1px solid #333;
    border-radius: 5px;
    padding: 8px 12px;
    color: #bbb;
    font-size: 0.9rem;
    transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.skill-list span:hover {
    color: #ff7a00;
    border-color: #ff7a00;
    background-color: #1c1c1c;
}

/* =========================================================
   EDUCATION
   ========================================================= */

.education-list {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 40px;
}

.education-card {
    display: flex;
    gap: 25px;
    background-color: #171717;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    padding: 30px;
    transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.education-card:hover {
    transform: translateY(-5px);
    border-color: #ff7a00;
}

.education-icon {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-width: 45px;
    font-size: 1.8rem;
    color: #ff7a00;
}

.education-content {
    flex: 1;
}

.education-content h3 {
    margin: 0;
    font-size: 1.3rem;
    color: #ffffff;
}

.education-degree {
    margin: 5px 0 0 0;
    color: #ff7a00;
    font-size: 1rem;
    font-weight: bold;
}

.education-focus {
    margin: 6px 0 18px 0;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: bold;
}

.education-school {
    margin: 0 0 15px 0;
    color: #aaa;
}

.education-description {
    max-width: 800px;
    color: #aaa;
    line-height: 1.7;
}

.education-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.education-tags span {
    padding: 6px 10px;
    background-color: #222;
    border: 1px solid #333;
    border-radius: 5px;
    color: #aaa;
    font-size: 0.85rem;
}

.education-tags span:hover {
    color: #ff7a00;
    border-color: #ff7a00;
}

/* =========================================================
   PROJECTS
   ========================================================= */

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
    max-width: auto;
    max-height: auto;
    margin-left: 0;
    margin-right: auto;
}

.project-card {
    overflow: hidden;
    background-color: #171717;
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: #ff7a00;
}

.project-image {
    width: 100%;
    height: 275px;
    overflow: hidden;
    background-color: #111;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.02);
}

.project-content {
    padding: 25px;
}

.project-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.project-header i {
    color: #ff7a00;
    font-size: 1.3rem;
}

.project-header h3 {
    margin: 0;
    color: #fff;
    font-size: 1.5rem;
}

.project-label {
    width: fit-content;
    margin-bottom: 12px;
    padding: 5px 9px;
    background-color: rgba(255, 122, 0, 0.1);
    border: 1px solid rgba(255, 122, 0, 0.4);
    border-radius: 4px;
    color: #ff7a00;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.project-description {
    max-width: 900px;
    color: #aaa;
    line-height: 1.7;
    margin-bottom: 20px;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
}

.project-tags span {
    padding: 6px 10px;
    background-color: #222;
    border: 1px solid #333;
    border-radius: 5px;
    color: #aaa;
    font-size: 0.8rem;
}

.project-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.project-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    border: 2px solid #ff7a00;
    border-radius: 5px;
    background-color: transparent;
    color: #ff7a00;
    font-size: 0.9rem;
    font-weight: bold;
    text-decoration: none;
    transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.project-button:hover {
    background-color: #ff7a00;
    color: #0d0d0d;
    transform: translateY(-2px);
}

/* =========================================================
   CONTACT
   ========================================================= */

.contact {
    text-align: center;
}

.contact-content {
    max-width: 650px;
    margin: 0 auto;
}

.contact h2 {
    display: inline-block;
    margin-bottom: 25px;
}

.contact-description {
    color: #aaa;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 30px;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border: 2px solid #ff7a00;
    border-radius: 6px;
    color: #ff7a00;
    text-decoration: none;
    font-weight: bold;
    transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.contact-email:hover {
    background-color: #ff7a00;
    color: #0d0d0d;
    transform: translateY(-3px);
}

.contact-socials {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 25px;
}

.contact-socials a {
    color: #888;
    font-size: 1.8rem;
    text-decoration: none;
    transition:
    color 0.2s ease,
    transform 0.2s ease;
}

.contact-socials a:hover {
    color: #ff7a00;
    transform: translateY(-3px);
}

/* =========================================================
   FOOTER
   ========================================================= */

footer {
    text-align: center;
    padding: 25px 10%;
    background-color: #0a0a0a;
    border-top: 1px solid #222;
    color: #777;
}

footer p {
    margin: 0;
    color: #666;
    font-size: 0.9rem;
}

/* =========================================================
   RESPONSIVE / MOBILE
   ========================================================= */

@media (max-width: 900px) {

    .navbar {
        padding: 18px 5%;
    }

    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 0;
        background-color: #0d0d0d;
        backdrop-filter: blur(12px);
        border-bottom: 1px solid #222;

        /* Closed state */
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transform: translateY(-10px);
        pointer-events: none;
        transition:
            max-height 0.3s ease,
            opacity 0.3s ease,
            transform 0.3s ease;
    }

    .nav-links.active {
        max-height: 400px;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        width: 100%;
        padding: 16px 5%;
        text-align: center;
        border-top: 1px solid #222;
    }

    .hero {
        padding: 60px 5%;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero h2 {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-actions {
        flex-wrap: wrap;
    }

    section {
        padding: 70px 5%;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }

    .skill-card {
        padding: 25px;
    }

    .project-image {
        height: 220px;
    }

    .project-content {
        padding: 20px;
    }

    .project-links {
        flex-wrap: wrap;
    }
}
