/*Global Styles & Typography*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    outline: none;
    font-family: 'Poppins', sans-serif;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    width: 100%;
    overflow-x: hidden;
    background-color: black;
    color: white;
}

span { color: #b74b4b; }

/*Navigation*/
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1rem 9%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    margin-top: 20px;
}

nav a {
    font-size: 1.8rem;
    color: white;
    margin-left: 3rem;
    font-weight: 500;
    transition: 0.3s ease;
    border-bottom: 3px solid transparent;
}

nav a:hover, nav a.active {
    color: #b74b4b;
    border-bottom: 3px solid #b74b4b;
}

.desktop-nav {
    display: flex !important;
}

.desktop-nav a {
    margin-left: 3rem;
    font-size: 1.8rem;
    color: white;
}

.menu-button {
    display: block; 
    margin-left: 2rem;
}

/*Sidebar Container*/
.sidebar {
    position: fixed;
    top: 0;
    right: -100%; 
    height: 100vh;
    width: 280px;
    
    background-color: rgba(0, 0, 0, 0.6); 
    
    backdrop-filter: blur(10px); 
    
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: 0.5s ease;
    border: none; 
}

.sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 280px;
    background-color: rgba(0, 0, 0, 0.6); 
    z-index: 1000;
    display: flex;
    flex-direction: column;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
}

.sidebar a {
    padding: 2rem 3rem;
    font-size: 1.8rem;
    color: white !important;
    text-decoration: none;
    transition: 0.3s;
    font-family: 'Poppins', sans-serif;
    border: none;
}

.sidebar a:hover {
    color: #b74b4b !important;
    background-color: rgba(183, 75, 75, 0.1);
}

.close-button {
    cursor: pointer;
    padding: 2rem 3rem;
    display: flex;
    justify-content: flex-start; 
}

.nav-container {
    display: flex;
    align-items: center;
}

nav a.active {
    color: #b74b4b;
    border-bottom: 3px solid #b74b4b;
}

section {
    min-height: auto; 
    padding: 6rem 9% 4rem; 
    outline: 1px solid rgba(255, 255, 255, 0.1);
    outline-offset: -15px; 
    border-radius: 15px;
    background-color: rgba(255, 255, 255, 0.02);
}

.heading {
    font-size: 5rem;
    margin-bottom: 3rem;
    text-align: center;
}

/*Home Section*/
.home {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8rem;
    background-color: black;
}

.home-content h1 { font-size: 6rem; font-weight: 700; line-height: 1.3; }
.home-content h3 { font-size: 4rem; margin-bottom: 1rem; font-weight: 700; }
.home-content p { font-size: 1.6rem; margin-bottom: 2rem; line-height: 1.6; }

.home-img img {
    width: 32vw;
    border-radius: 50%;
    transition: 0.2s linear;
}

.home-img img:hover { box-shadow: 0 0 40px #b74b4b; }

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 4rem;
    height: 4rem;
    border: 0.2rem solid #b74b4b;
    font-size: 2rem;
    border-radius: 50%;
    margin: 3rem 1.5rem 3rem 0;
    transition: 0.3s ease;
    color: #b74b4b;
}

.social-icons a:hover {
    color: black;
    transform: scale(1.3) translateY(-5px);
    background-color: #b74b4b;
    box-shadow: 0 0 25px #b74b4b;
}

.btn {
    display: inline-block;
    padding: 1rem 2.8rem;
    border-radius: 4rem;
    font-size: 1.6rem;
    color: #b74b4b;
    letter-spacing: 0.3rem;
    font-weight: 600;
    border: 2px solid #b74b4b;
    transition: 0.3s ease;
}

.btn:hover {
    background-color: #b74b4b;
    color: black;
    box-shadow: 0 0 25px #b74b4b;
}
.home-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem; 
}

.typing-text span.animate-text {
    position: relative;
    color: #b74b4b;
    white-space: nowrap; /
}

.typing-text span.animate-text::before {
    content: "Aspiring Developer";
    animation: words 20s infinite;
}

.typing-text span.animate-text::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background-color: black; 
    border-left: 3px solid #b74b4b; 
    animation: typing-erase 4s steps(20) infinite;
}

@keyframes words {
    0%, 20% { content: "Aspiring Developer"; }
    21%, 40% { content: "UI/UX Designer"; }
    41%, 60% { content: "Problem Solver"; }
    61%, 80% { content: "Tech Innovator"; }
    81%, 100% { content: "BSIT Student"; }
}

@keyframes typing-erase {
    0%, 10% { width: 100%; }       
    40%, 60% { width: 0%; }        
    90%, 100% { width: 100%; }     /
}
/*About Section*/
.about {
    background-color: #080808;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-container {
    display: flex;
    align-items: flex-start;
    gap: 5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 0;
}

.about-img { flex: 0 0 320px; }

.about-img img {
    width: 100%;
    height: 480px; 
    object-fit: cover;
    border-radius: 40px;
    border: 2px solid #b74b4b;
    box-shadow: 0 0 20px rgba(183, 75, 75, 0.4);
    transition: 0.4s ease;
}

.about-img img:hover {
    transform: scale(1.02);
    box-shadow: 0 0 35px rgba(183, 75, 75, 0.6);
}

.about-content p {
    font-size: 1.6rem;
    line-height: 1.8; 
    margin-bottom: 2rem;
    color: #ccc;
    text-align: justify; 
    max-width: 800px;
}

.personal-info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 2.5rem;
}

.personal-info p { font-size: 1.6rem; color: #ccc; }
.personal-info strong { color: #b74b4b; font-weight: 600; }

.interests h4 {
    font-size: 2rem;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    color: #fff;
    font-weight: 500;
}

.interest-icons {
    display: flex;
    justify-content: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
}

.interest-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    color: #b74b4b;
    font-size: 2.8rem;
    transition: 0.3s ease;
}

.interest-item span { font-size: 1.2rem; color: #fff; font-weight: 500; }
.interest-item:hover { transform: translateY(-5px); text-shadow: 0 0 10px #b74b4b; }

/*Portfolio & Education*/
.portfolio-tabs {
    display: flex;
    justify-content: center;
    background: #111;
    padding: 1rem;
    border-radius: 1.5rem;
    margin: 0 auto 4rem;
    gap: 2rem;
    max-width: 800px;
}

.tab-item { cursor: pointer; padding: 1.5rem 3rem; text-align: center; transition: 0.3s; border-radius: 1rem; color: #888; }
.tab-item i { font-size: 2.2rem; display: block; margin-bottom: 0.5rem; }
.tab-item.active { background: #1a1a1a; color: #b74b4b; }

.portfolio-grid { display: none; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2.5rem; }
.portfolio-grid.active { display: grid; }

.grid-card {
    background: #161616;
    border-radius: 1.5rem;
    padding: 2.5rem;
    border: 1px solid #222;
    transition: 0.3s;
}

.grid-card:hover { border-color: #b74b4b; transform: translateY(-5px); }
.grid-card img { width: 100%; border-radius: 1rem; aspect-ratio: 16/9; object-fit: cover; }
.grid-card h3 { font-size: 2.2rem; color: #b74b4b; margin: 1.5rem 0; }

.edu-row {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.edu-badge {
    text-align: center;
    width: 200px;
    background: #1e1e1e;
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid #333;
    transition: 0.3s ease;
}

.edu-badge:hover { border-color: #b74b4b; transform: translateY(-10px); }
.edu-badge img { width: 80px; height: 80px; border-radius: 50%; border: 2px solid #b74b4b; object-fit: cover; margin-bottom: 1.5rem; }

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    background: #0f0f0f;
    padding: 4rem;
    border-radius: 20px;
    border: 1px solid #222;
    text-align: center;
    transition: 0.3s ease;
}

.contact-container:hover {
    border-color: #b74b4b;
    box-shadow: 0 0 20px rgba(183, 75, 75, 0.1);
}

.contact-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 1.8rem;
    color: #fff;
}

.detail-item i {
    color: #b74b4b;
    font-size: 2.2rem;
}

.social-icons.mini {
    margin: 1rem 0;
}

.social-icons.mini a {
    margin: 0 1rem;
    width: 4.5rem;
    height: 4.5rem;
}

@media (max-width: 480px) {
    .contact-container {
        padding: 3rem 1.5rem;
    }
    .detail-item {
        font-size: 1.5rem;
    }
}

/*Media Queries*/
@media (max-width: 991px) {
    header { padding: 1.5rem 4%; }
    .home { flex-direction: column; text-align: center; gap: 4rem; }
    .home-img img { width: 45vw; }
    
    .home-btns {
        justify-content: center; 
    }
}

@media (max-width: 768px) {
    header {
        flex-direction: row !important; 
        justify-content: space-between !important;
    }

    .about-container { 
        flex-direction: column; 
        align-items: center; 
        text-align: center; 
    }

    .personal-info {
        grid-template-columns: 1fr; 
        gap: 1rem;
        justify-items: center; 
    }

    .interest-icons {
        justify-content: center; 
        gap: 2rem;
    }

    .about-content p { 
        text-align: center; 
        padding: 0 1.5rem;
        margin: 0 auto 2rem;
    }

    .about-img img { height: 400px; width: 280px; }
    .contact-container { padding: 4rem 2rem; width: 95%; }
}

@media (max-width: 480px) {
    html { font-size: 55%; }
    .home-img img { width: 65vw; }
    .contact-info { gap: 1.5rem; }
    .detail-item { font-size: 1.4rem; }
}

header {
    margin-top: 0 !important;
    padding: 1.5rem 9% !important;
}

section {
    min-height: auto !important; 
    padding: 8rem 9% 6rem !important;
    transition: all 0.4s ease;
}

.home {
    min-height: 100vh !important;
    padding-top: 6rem !important;
}

.heading {
    margin-top: 2rem !important;
    margin-bottom: 3.5rem !important;
}

.education-section {
    margin-top: 4rem !important;
}

nav a, .btn, .social-icons a, .grid-card {
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
/*SKILLS SECTION*/
.skills-section {
    margin-top: 5rem; 
    width: 100%;
    padding-bottom: 5rem;
}

.skills-container {
    display: flex;
    justify-content: space-between;
    gap: 6rem;
    max-width: 1000px;
    margin: 0 auto;
}

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

.skill-box {
    width: 100%;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.skill-info .skill-name {
    font-size: 1.6rem;
    font-weight: 500;
    color: #fff;
}

.skill-info .skill-percent {
    font-size: 1.6rem;
    font-weight: 600;
    color: #b74b4b;
}

.skill-bar {
    width: 100%;
    height: 1rem;
    background-color: #1e1e1e; 
    border-radius: 1rem;
    position: relative;
    overflow: hidden;
    border: 1px solid #333;
}

.skill-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-color: #b74b4b; 
    border-radius: 1rem;
    transition: width 1.5s ease-in-out;
    box-shadow: 0 0 10px rgba(183, 75, 75, 0.4); 
}

@media (max-width: 768px) {
    .skills-container {
        flex-direction: column;
        gap: 3rem;
    }
}

header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 1.5rem 9% !important; 
}

header li {
    display: flex !important;
    align-items: center !important;
}

.nav-container {
    display: flex !important;
    align-items: center !important;
    margin-left: auto !important; 
}

.menu-button {
    display: none !important; 
}

@media (max-width: 768px) {
    .nav-container nav {
        display: none !important;
    }

    .menu-button {
        display: flex !important; 
    }

    header {
        flex-direction: row !important; 
        justify-content: space-between !important;
    }
}
