@import url('https://fonts.googleapis.com/css2?family=TASA+Explorer:wght@400..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,500;1,500&display=swap');

@font-face {
    font-family: 'EvaSlide';
    src: url("../fonts/EPKAISHO.TTF");
}

:root {
    --base-color: #f7f4ea;
    --base-variant: white;
    --text-color: black;
    --primary-color: #0eb10e;
    --accent-color: #068d06;
    --glow-color: #12f395;
}

.darkmode {
    --base-color: #1f1e1e;
    --base-variant: black;
    --text-color: white;
    --primary-color: #068d06;
    --accent-color: #0eb10e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--base-color);
    min-height: 100vh;
}

header {
    position: sticky;
    top:0;
    z-index: 999;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0px 2.5%;
    background-color: var(--base-variant);
}

h1 {
    font-family: 'EvaSlide', sans-serif;
    padding-right: 5px;
    font-size:40px;
    cursor: pointer;
}

li, a, button {
    font-family: "TASA Explorer", sans-serif;
    font-weight: 500;
    font-size: 24px; 
    color: var(--text-color);
    text-decoration: none;
}

.logo {
    margin-right: auto;
}

.logo:hover {
    box-shadow: var(--accent);
}

.nav__links {
    list-style: none;
}

.nav__links li {
    display: inline-block;
    padding: 0px 15px;
}

.nav__links li a {
    transition: all 0.3s ease 0s;
}

.nav__links li a:hover {
    color:var(--accent-color);
}

button {
    color: var(--base-variant);
    margin-left: 20px;
    padding: 9px 25px;
    background-color: var(--accent-color);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease 0s;
}

button:hover {
    background-color: var(--accent-color);
}

.section-title {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 40px;
    font-family: "TASA Explorer", sans-serif;
    font-size: 36px;
    color: var(--text-color);
}

.portfolio {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto 100px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.project-card {
    display: flex;
    flex-direction: column;
    background-color: var(--base-variant);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: var(--text-color);
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

.project-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #ccc; /* placeholder color */
}

.project-content {
    padding: 20px;
}

.project-content h3 {
    font-family: "TASA Explorer", sans-serif;
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.project-content ul {
    list-style-type: disc;
    padding-left: 20px;
}

.project-content li {
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 5px;
}

.resume-section {
    text-align: center;
    margin-top: 60px;
}

.resume-btn {
    display: inline-block;
    font-family: "TASA Explorer", sans-serif;
    font-size: 22px;
    color: var(--base-variant);
    background-color: var(--accent-color);
    padding: 12px 36px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.resume-btn:hover {
    background-color: var(--primary-color);
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.resume-update {
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    color: var(--text-color);
    margin-top: 10px;
    opacity: 0.8;
}

#theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#theme-toggle img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: brightness(0) invert(0); /* ensures dark icon on light bg */
}

.darkmode #theme-toggle img {
    filter: brightness(0) invert(1); /* ensures light icon on dark bg */
}

#theme-toggle:hover img {
    transform: scale(1.1);
}
