@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

:root {
    --primary-bg: #0a0a0a;
    --primary-text: #d4fdd6;
    --primary-border: #66ff66;
    --highlight-bg: #33cc33;
    --highlight-text: #0a0a0a;
    --highlight-border: #66ff66;
    --accent-color: #66ff66;
}

body.light-mode {
    --primary-bg: #fff1e7;
    --primary-text: #444;
    --primary-border: #ff7f2a;
    --highlight-bg: #ff9f5a;
    --highlight-text: #fff;
    --highlight-border: #ff7f2a;
    --accent-color: #ff7f2a;
}

body {
    background-color: var(--primary-bg);
    color: var(--primary-text);
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    transition: background-color 0.5s, color 0.5s;
}

header, footer {
    background-color: var(--primary-bg);
    color: var(--primary-text);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

#who-i-am p {
    font-size: large;
    max-width: 800px;
    margin: 0 auto 1rem auto;
    line-height: 1.6;
    text-align: justify;
}
#my-vision p {
    font-size: large;
    max-width: 800px;
    margin: 0 auto 1rem auto;
    line-height: 1.6;
    text-align: justify;
}


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

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.nav-links a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: color 0.3s, background-color 0.3s;
}

.nav-links a:hover {
    background-color: var(--highlight-bg);
    color: var(--highlight-text);
}

.theme-toggle-container {
    margin-left: auto;
}

.theme-toggle {
    cursor: pointer;
    background: none;
    border: 2px solid var(--accent-color);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1.25rem;
    transition: background-color 0.3s, color 0.3s, transform 0.2s;
}

.theme-toggle:hover {
    background-color: var(--highlight-bg);
    color: var(--highlight-text);
    transform: scale(1.15);
}

.page-section {
    padding: 1rem 2rem;
    text-align: center;
}

.page-subtitle {
    margin-top: 0.5rem;
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 0.85;
}

.hero {
    text-align: center;
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.hero-avatar {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-color);
}

.hero-card {
    background-color: var(--primary-bg);
    color: var(--primary-text);
    padding: 2rem;
    border: 3px solid var(--accent-color);
    border-radius: 10px;
    display: inline-block;
    margin-top: 2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
    cursor: pointer;
}

.hero-card:hover {
    transform: translateY(-10px);
}

footer {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
}

.footer-social {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.footer-social img {
    width: 40px;
    height: 40px;
    transition: transform 0.3s, filter 0.3s;
    filter: invert(100%);
}

body.light-mode .footer-social img {
    filter: invert(0%);
}

.footer-social img:hover {
    transform: scale(1.15);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 200;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--primary-bg);
    color: var(--primary-text);
    padding: 2rem;
    border-radius: 10px;
    position: relative;
    width: 80%;
    max-width: 600px;
    max-height: 800px;
    overflow-y: auto;
    font-weight: 400;
}

.modal-content img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.modal-buttons {
    display: flex;
    justify-content: space-evenly;
    gap: 1rem;
    margin-top: 1.5rem;
}

.project-link, .github-link {
    background-color: var(--primary-bg);
    color: var(--primary-text);
    border: 2px solid var(--primary-border);
    padding: 0.8rem 1.5rem;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, transform 0.2s, border-color 0.3s;
    flex: 1;
    text-align: center;
}

.project-link:hover, .github-link:hover {
    background-color: var(--highlight-bg);
    color: var(--highlight-text);
    border-color: var(--highlight-border);
    transform: scale(1.05);
}

.skill-bars {
    margin: 1.1rem 0;
}

.skill {
    margin-bottom: 1rem;
}

.skill span {
    display: block;
    margin-bottom: 0.2rem;
    font-weight: 600;
}

.skill-bar {
    width: 100%;
    background-color: #cfcfcf;
    border-radius: 8px;
    overflow: hidden;
    height: 24px;
    margin-bottom: 0.2rem;
}

.skill-level {
    height: 100%;
    background-color: var(--accent-color);
    border-radius: 10px;
    width: 0;
    transition: width 1.5s ease-in-out;
}

.modal.active .skill-level.python {
    --target-width: 95%;
}

.modal.active .skill-level.multiprocessing {
    --target-width: 75%;
}

.modal.active .skill-level.software-planning {
    --target-width: 85%;
}

.modal.active .skill-level.research {
    --target-width: 80%;
}

.flip-card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 5rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.flip-card {
    perspective: 1000px;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 180px;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    border-radius: 10px;
    cursor: alias
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg) translateX(-2rem);
    transform-origin: center;
}

.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border: 2px solid var(--primary-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-color: var(--primary-bg);
    color: var(--primary-text);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.flip-card-back {
    transform: rotateY(180deg);
    background-color: var(--highlight-bg);
    color: var(--highlight-text);
}

.flip-card-front h3, .flip-card-back p {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    font-size: 1.5rem;
}

@media (max-width: 640px) {
    .page-section {
        padding: 2rem 1rem;
    }

    .flip-card-container {
        grid-template-columns: 1fr;
        max-width: 90%;
    }

    .flip-card-inner {
        height: 160px;
    }

    footer {
        flex-direction: column;
        text-align: center;
    }
}


