/* General Styles & Dark Theme Colors */
:root {
    --bg-color: #1a1a1a;
    --container-bg: #363636;
    --border-color: #444;
    --text-color: #d4d4d4;
    --link-color: #5ebb9f;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Montserrat", sans-serif;
    color: var(--text-color);
}

html, body {
    height: 100%;
    overflow-y: auto;
    margin: 0;
    background-color: var(--bg-color);
}

::-webkit-scrollbar {
    width: 5px;
    height: 5px;    
    background: transparent;       
}

::-webkit-scrollbar-track {
    background: transparent; 
    border-radius: 2px;
}

::-webkit-scrollbar-thumb {
    background: var(--link-color);
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: color-mix(in srgb, var(--link-color) 80%, black);
}

/* Main wrapper to hold all containers */
.page-wrapper {
    max-width: 800px;
    height: 100vh;
    margin: 5px auto;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* --- Profile Container (Header) --- */
.profile-container {
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 10px;
    display: flex;
    align-items: center;
}

.profile-logo {
    width: 250px;               /* same as sidebar width */
    height: 100px;               /* some vertical space */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0 auto;
}

.profile-logo img {
    width: 100px;                 /* logo actual size */
    height: 100px;
    object-fit: contain;         /* keep original aspect */
    display: block;
}

.profile-info {
    text-align: center;
    flex-grow: 1;
}

.profile-info h2 {
    color: var(--link-color);
}

.info {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0 auto;
}

.profile-info p {
    font-size: 0.9em;
}

.contact-btn {
    margin-top: 5px;
    padding: 8px 16px 10px 16px;
    border-radius: 5px;
    cursor: pointer;
    color: var(--text-color);
    background: none;
    position: relative;
    overflow: hidden;
    z-index: 0;
    border: 1px solid transparent;
    transition: color 0.5s ease, font-weight 0.3s ease;
}

.contact-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(45deg, #5ebb9f, #4fa3c6, #8597ff, #e76dff);
    background-size: 300% 300%; 
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 1;
    pointer-events: none;
    z-index: -1;
    transition: all 0.5s ease;
}

.contact-btn:hover {
    font-weight: bold;
    color: transparent;
    background: linear-gradient(45deg, #5ebb9f, #4fa3c6, #8597ff, #e76dff);
    background-size: 300% 300%; /* make it large for smooth movement */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: moveGradient 3s linear infinite; /* animate text gradient */
}

.contact-btn:hover::before {
    animation: moveGradient 3s linear infinite; 
}

@keyframes moveGradient {
    0%   { background-position: 0%   50%; }
    50%  { background-position: 100%  50%; }
    100% { background-position: 0%   50%; }
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--bg-color);
    color: var(--text-color);
    margin: 8% auto;
    padding: 30px 25px;
    border-radius: 5px;
    width: 100%;
    max-width: 720px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    position: relative;
    animation: slideUp 0.3s ease;
}

/* Close button */
.close {
    position: absolute;
    top: 12px;
    right: 15px;
    font-size: 24px;
    color: var(--text-color);
    cursor: pointer;
    transition: color 0.2s;
}

.close:hover {
    color: var(--link-color);
}

/* Form styling */
#contactForm {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
}

#contactForm input,
#contactForm textarea {
    padding: 12px 15px;
    border-radius: 5px;
    border: 1px solid var(--border-color);
    background: var(--input-bg);
    color: var(--text-color);
    font-size: 14px;
    max-width: 100%;
    max-height: 400px;
}

#contactForm button[type="submit"] {
    padding: 12px;
    border: none;
    border-radius: 5px;
    background: var(--link-color);
    color: #fff;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
}

#contactForm button[type="submit"]:hover {
    background: color-mix(in srgb, var(--link-color) 80%, black);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(40px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.status-text {
    font-size: 14px;
    margin-top: 8px;
    color: var(--link-color);
    display: inline-block;
}

.status-text span {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin: 0 2px;
    background: var(--link-color);
    border-radius: 50%;
    animation: bounce 0.6s infinite alternate;
}

.status-text span:nth-child(2) {
    animation-delay: 0.2s;
}

.status-text span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-6px); }
}

/* --- Main Content Section (Sidebar + Main Content) --- */
.main-content-section {
    display: flex;
    flex: 1;
    gap: 5px;
    min-height: 0;
}

.sidebar-container,
.content-container {
    height: 100%;             /* <--- key line */
    overflow-y: auto;         /* so content scrolls inside if it gets long */
}

/* --- Sidebar Container --- */
.sidebar-container {
    flex-shrink: 0;
    width: 250px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    /* display: flex; */
    flex-direction: column;
    padding: 10px 20px 10px 20px;
}

.sidebar-container > * {
    margin-bottom: 10px;
    border-bottom: 1px dashed var(--text-color);
    padding: 10px 0 20px 0; /* optional spacing for breathing room */
}

.sidebar-container > *:last-child {
    border-bottom: none;
}

.sidebar-container h3 {
    margin-bottom: 6px;
    text-align: center;
}

.side-nav ul {
    list-style: none;
}

.side-nav li {
    padding: 4px 0;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    transition: color 0.2s;
}

.nav-link:hover, .nav-link.active {
    transition: all 0.5s ease;
    color: var(--link-color);
    font-weight: bold;
}

.nav-separator {
    border-bottom: 1px dashed var(--border-color);
    margin: 10px 0;
}

.social-links, .interests-boxes {
    margin-top: 10px;
}

.social-links ul, .interests-boxes ul {
    list-style: none;
    display: flex;
    justify-content: space-around;
}

.social-links i {
    font-size: 30px;
}

.social-links i:hover {
    transition: all 0.5s ease;
    color: var(--link-color);
}

.interests-boxes i {
    font-size: 40px;
}

.interests-boxes {
    overflow: hidden;
    position: relative;
}

.interests-track {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.interests-track ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    width: max-content;
}

.interests-track ul li {
    margin-right: 2rem;
}

/* leftward */
.interests-track ul:first-child {
    animation: scroll-left 15s linear infinite;
}

/* rightward */
.interests-track ul:last-child {
    animation: scroll-right 15s linear infinite;
}

@keyframes scroll-left {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes scroll-right {
    0%   { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

iframe {
    width: 100%; /* Full width */
    height: 100%; /* Adjust as needed */
    border: 0; /* Remove default border */
}

/* --- Main Content Container (Right Side) --- */
.content-container {
    flex-grow: 1;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    padding: 20px;
}

.content-section {
    display: none; /* Hide all content by default */
}

.content-section h3 {
    color: var(--link-color);
    margin-bottom: 20px;
    opacity: 0;                 /* hidden at start */
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.content-section h3.show {
    opacity: 1;
    transform: translateX(0);
}

.content-section.active {
    display: block; /* Show the active content */
}

/* About-content section */
.about-content h3 {
    font-weight: normal;
}

.about-content {
    display: block;
}

.about-text p {
    text-indent: 2em;
    margin-bottom: 1em;
    text-align: justify;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 1.5s ease, transform 1.5s ease;
}

.about-text p.show {
    opacity: 1;
    transform: translateX(0);
}

.about-text .name {
    color: linear-gradient(45deg, #5ebb9f, #4fa3c6, #8597ff, #e76dff);
    font-weight: bold;
}

.about-text .name {
    background: linear-gradient(45deg, #5ebb9f, #4fa3c6, #8597ff, #e76dff);
    background-size: 800% 800%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
    animation: nameGradient 6s ease infinite;
}

@keyframes nameGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.profile-photo {
    float: left;
    width: 200px;
    height: auto;
    margin: 0 20px 0px 0;
    shape-outside: url('assets/images/profilepic.png');
    -webkit-shape-outside: url('assets/images/profilepic.png');
    shape-margin: 10px;
    -webkit-shape-margin: 10px;
    clip-path: inset(0); /* required so the image itself isn't hidden */
    display: block;
}

.about-content::after {
    content: "";
    display: table;
    clear: both;
}

.profile-photo img {
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 1.5s ease, transform 1.5s ease;
}

.profile-photo img.show {
    opacity: 1;
    transform: translateX(0);
}

/* Education-content section */
.education-card {
    border: solid 1px var(--border-color);
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 15px;
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 1s ease, transform 1s ease;
}

.education-card.show {
    opacity: 1;
    transform: translateX(0);
}

.education-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.education-header h4 {
    margin-bottom: 6px;
}

.education-awards {
    margin-top: 10px;
    list-style: none;
}

.education-awards li {
    margin-bottom: 4px;
}


/* Skills-content section */
#webSkillsChart, #otherSkillsChart {
    background: #1a1a1a; /* dark background */
    padding-bottom: 20px;
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 1.5s ease, transform 1.5s ease;
}

#webSkillsChart.show, #otherSkillsChart.show {
    opacity: 1;
    transform: translateX(0);
}

/* Experience-content section */
.experience-item {
    position: relative;
    padding-left: 30px;      /* space for the line */
    padding-bottom: 10px;
    opacity: 0;
    transform: translateX(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.experience-item.show{
    opacity: 1;
    transform: translateX(0);
}

.experience-item::before {
    content: "";
    position: absolute;
    left: 0;              /* aligns with the line */
    top: 5px;                 /* vertically centers the dot */
    width: 12px;
    height: 12px;
    border: 2px solid var(--link-color);
    background-color: transparent;
    border-radius: 50%;
}

.experience-item::after {
    content: "";
    position: absolute;
    left: 7px;
    top: 20px;
    width: 2px;
    height: calc(100% - 15px);
    background-color: var(--link-color);
}

.job-title {
    color: var(--link-color);
    font-size: 1.2rem;
    font-weight: 600;
}

.company-name {
    font-style: italic;
}

.job-dates {
    color: var(--text-muted, #888);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.job-responsibilities {
    list-style: disc outside;
    margin-bottom: 12px;
    padding-left: 20px;
}

.skills-earned {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.skill-card {
    padding: 4px 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 0.85rem;
    background: rgba(94, 187, 159, 0.158);
}

#output {
    white-space: pre;
    font-family: monospace;
    font-size: 8px;
    line-height: 12px;
    letter-spacing: unset;
    transform: unset;
    overflow-y: hidden;
    color: linear-gradient(45deg, #5ebb9f, #4fa3c6, #8597ff, #e76dff);
    font-weight: bold;
    background: linear-gradient(45deg, #5ebb9f, #4fa3c6, #8597ff, #e76dff);
    background-size: 800% 800%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
    animation: projectGradient 6s ease infinite;
}

@keyframes projectGradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* --- Footer --- */
.footer-container {
    padding: 5px;
    text-align: center;
    font-size: 0.8em;
}





