/* ==============================
   THEME VARIABLES
============================== */
:root {
    --bg: #0f0f0f;
    --card: #1c1c1c;
    --card-light: #242424;
    --text: #ffffff;
    --accent: #f5c96b;
}

body.light {
    --bg: #f4f4f4;
    --card: #ffffff;
    --card-light: #f0f0f0;
    --text: #111111;
    --accent: #111111;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
}

body {
    background: var(--bg);
    color: var(--text);
    transition: 0.3s ease;
}

/* ================= NAVBAR ================= */

.navbar {
    background: var(--card);
    padding: 20px 40px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.3);
}

.nav-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-left,
.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.profile-img {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    object-fit: cover;
}

/* Desktop Info Wrapper (CENTER) */
.desktop-info-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.desktop-info-wrapper h2 {
    font-size: 28px;
    margin-bottom: 8px;
}

.desktop-info-wrapper .nav-info {
    display: flex;
    gap: 20px;
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 8px;
}

.desktop-info-wrapper .social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: var(--text);
    font-size: 18px;
    transition: 0.3s;
}

.social-icons a:hover {
    color: var(--accent);
}

/* Buttons */
.toggle-btn,
.menu-btn {
    background: var(--card-light);
    border: none;
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
    color: var(--text);
    transition: 0.3s;
}

.toggle-btn:hover,
.menu-btn:hover {
    background: var(--accent);
    color: var(--bg);
}

.menu-btn {
    display: none;
}

.mobile-toggle {
    display: none;
}

/* DROPDOWN (Smooth Stretch) */
.dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    background: var(--card);
    padding: 0 40px;
}

.dropdown.open {
    max-height: 400px;
    padding: 20px 40px;
}

.dropdown.no-animate {
    transition: none;
}

.dropdown hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 15px 0;
}

.dropdown h2 {
    text-align: center;
    margin-bottom: 10px;
}

.dropdown .info-item {
    white-space: nowrap;
    margin-bottom: 6px;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ================= MAIN CONTENT ================= */
.container {
    max-width: 1300px;
    margin: 60px auto;
    padding: 0 20px;
    transition: 0.3s ease;
}

.content-card {
    background: var(--card);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.3);
    text-align: center;
}
/* Resume content */
.content-card.section {
    background: var(--card);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.3);
    text-align: left;
    margin-bottom: 30px;
}

/* ================= PORTFOLIO NAMESPACE ================= */
.portfolio-page .portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 40px;
    font-size: 14px;
}

.portfolio-page .portfolio-filters span {
    cursor: pointer;
    transition: 0.3s;
}

.portfolio-page .portfolio-filters span.active,
.portfolio-page .portfolio-filters span:hover {
    color: var(--accent);
    font-weight: 600;
}

.portfolio-page .portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 20px;
    text-align: left;
}

.portfolio-page .portfolio-item {
    background: var(--card-light);
    padding: 15px;
    border-radius: 15px;
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.portfolio-page .portfolio-item:hover {
    transform: translateY(-5px);
}

.portfolio-page .portfolio-thumb {
    width: 100%;
    height: 200px; /*from 300px */
    overflow: hidden;
    border-radius: 12px;
    margin-bottom: 15px;
    position: relative;
}

.portfolio-page .portfolio-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.portfolio-page .portfolio-item h3 {
    margin-bottom: 5px;
}

.portfolio-page .portfolio-item p {
    font-size: 14px;
    opacity: 0.8;
}

.portfolio-page .youtube-thumb {
    position: relative;
}

.portfolio-page .youtube-thumb .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.6);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    transition: 0.3s;
}

.portfolio-page .youtube-thumb:hover .play-icon {
    background: var(--accent);
    color: var(--bg);
}

/* Make portfolio links inherit text color and remove underline */
.portfolio-page .portfolio-item a,
.portfolio-page .portfolio-item a:visited {
    color: var(--text);
    text-decoration: none;
}

.portfolio-page .portfolio-item a:hover {
    color: var(--accent);
}


.content-card.portfolio {
    background: var(--card);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.3);
    text-align: left;
    margin-bottom: 30px;
}

.top-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}

.top-nav a {
    text-decoration: none;
    color: var(--text);
    font-size: 14px;
    position: relative;
}

.top-nav a.active {
    color: var(--accent);
}

.top-nav a.active::after {
    content: "";
    width: 100%;
    height: 2px;
    background: var(--accent);
    position: absolute;
    bottom: -5px;
    left: 0;
}

.content-card h1 {
    margin-bottom: 10px;
}

.underline {
    width: 50px;
    height: 4px;
    background: var(--accent);
    margin: 10px auto 25px auto;
    border-radius: 5px;
}

.content-card p {
    max-width: 700px;
    margin: 0 auto 15px auto;
    opacity: 0.8;
    line-height: 1.6;
    text-align: justify;
}

    /* RESUME CONTENT */
.content-card h2 {
    font-size: 22px;
    margin-bottom: 20px;
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
    display: inline-block;
    padding-bottom: 5px;
}
.content-card h2 i {
    margin-right: 8px;
}
ul {
    list-style: none;
    padding-left: 0;
}

ul li {
    margin-bottom: 15px;
    padding-left: 30px;
    position: relative;
    font-size: 15px;
    line-height: 1.6;
}

ul li::before {
    content: "\f0da";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0.2em;
    color: var(--accent);
}

ul li ul li::before {
    content: "\f111";
    color: var(--text);
    font-size: 8px;
    top: 0.25em;
    margin-top: 4px;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.skills-card {
    background: var(--card-light);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    transition: 0.3s;
}
.skills-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.7);
}
.skills-card h3 {
    margin-bottom: 10px;
    color: var(--accent);
}
.skills-card p {
    opacity: 0.9;
    line-height: 1.6;
}

.pdf-link {
    color: var(--accent);
    text-decoration: none;
    cursor: pointer;
    transition: 0.3s;
}
.pdf-link:hover {
    text-decoration: underline;
}
/* PDF MODAL */
.pdf-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(6px);
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.pdf-content {
    position: relative;
    width: 80%;
    height: 80%;
    background: var(--card);
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.pdf-content iframe {
    flex: 1;
    width: 100%;
}

#closePdfBtn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: var(--accent);
    border: none;
    font-size: 24px;
    color: var(--bg);
    cursor: pointer;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    z-index: 10;
    transition: 0.3s;
}

#closePdfBtn:hover {
    background: var(--text);
    color: var(--accent);
}

.section-title {
    margin: 40px 0 20px;
    font-size: 20px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.service-card {
    background: var(--card-light);
    padding: 20px;
    border-radius: 15px;
    transition: 0.3s;
    text-align: left;
}

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

.service-card h3 {
    margin-bottom: 10px;
    color: var(--accent);
}

/* Scroll Button */
#scrollTopBtn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--accent);
    color: var(--bg);
    border: none;
    padding: 10px 12px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: none;
    transition: 0.3s;
}
/* ================= MOBILE ================= */
@media (max-width: 768px) {
    .desktop-info-wrapper {
        display: none;
    }

    .menu-btn {
        display: inline-block;
    }

    .mobile-toggle {
        display: inline-block;
    }

    .desktop-toggle {
        display: none;
    }

    .nav-info {
        flex-direction: column;
        gap: 6px;
    }
    

    .dropdown .social-icons {
        display: flex;
        justify-content: center;
        gap: 15px;
        margin-top: 10px;
    }
    
}