/* set default variables */
:root {
    scroll-behavior: smooth;
    --bg: rgb(240, 240, 240);
    --text: black;
}

[data-theme='dark'] {
    --bg: rgb(36, 36, 36);
    --text: white;
}

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

#anchor {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    padding-top: 10px;
}

#anchor1 {
    font-weight: bold;
    font-size: 1.3rem;
    padding-right: 10px;
    border-right: solid 3px var(--text);
    text-decoration: none;
    color: var(--text);
}
#anchor2 {
    font-weight: bold;
    font-size: 1.3rem;
    text-decoration: none;
    color: var(--text);
}

#themeToggle {
    position: absolute;
    top: 10px;
    right: 20px;
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease;
}
#themeToggle:hover,
#github-logo:hover {
    cursor: pointer;
    transform: scale(1.1);
}

#github-logo {
    position: absolute;
    top: 10px;
    left: 20px;
    width: 35px;
    height: 35px;
    transition: transform 0.3s ease;
}

.pfp {
    border-radius: 15%;
    transition: transform 0.3s ease-in-out;
}
.pfp:hover {
    transform: scale(1.05);
    will-change: transform;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: auto;
}

/* HERO */
#hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    padding: 100px 0;
}

#hero div {
    flex: 1 1 300px;
}

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
}

/* PROJECTS */
#projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding-bottom: 60px;
}

.card {
    background: lime;
    border: solid 2px var(--text);
    color: black;
    border-radius: 10px;
    padding: 10px;
    text-decoration: none;
    transition: transform 0.3s ease-in-out;
}
.card:hover {
    opacity: 0.9;
    cursor: pointer;
    transform: translateY(-4px);
}

/* CONTACT */
#contact {
    padding: 20px 0;
}

.contact-title {
    font-weight: bold;
    font-size: 2rem;
    border-bottom: solid 3px cyan;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 60px;
    padding-top: 20px;
}

.contact-app-logo {
    width: 2rem;
    transition: transform 0.3s ease-in-out;
}
.contact-app-logo:hover {
    transform: scale(1.1);
}