:root {
    --cream: #FEF1D4;
    --sand: #F2D28C;
    --stone: #D1D6C0;
    --green: #637911;
    --dark: #46540C;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 20px;
}

/* Preloader */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--cream);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3;
    overflow: hidden;
    transition: opacity 0.8s ease, visibility 2s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
    display: none;
}

.loading-text {
    position: absolute;
    bottom: 40px;
    font-size: 1.2rem;
    color: var(--dark);
    font-family: "League Spartan", sans-serif;
    animation: blink 1.5s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}


/* paw animation */
.paw-track {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 200px;
}

.paw-load {
    position: absolute;
    width: 40px;
    opacity: 0;
    rotate: 25deg;
    animation: paw-walk 2s ease-in-out infinite;
}

/* paw placement */
.paw1 {
    animation-delay: 0s;
    left: 20px;
    top: 140px;
}

.paw2 {
    animation-delay: 0.3s;
    left: 40px;
    top: 65px;
}

.paw3 {
    animation-delay: 0.6s;
    left: 120px;
    top: 40px;
}

/* Step animation */
@keyframes paw-walk {

    0%,
    100% {
        opacity: 0;
        transform: scale(0.8) rotate(-10deg);
    }

    20%,
    90% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

body {
    font-family: 'League Spartan', sans-serif;
    background-color: var(--cream);
    margin: 0;
    padding: 0;
    overflow-y: scroll;
}

section {
    padding: 20px;
}

/* Typography */
h1 {
    font-weight: 200;
    text-transform: uppercase;
    font-size: 150px;
    color: var(--green);
}

h2 {
    font-weight: 500;
    font-size: 50px;
    color: var(--green);
}

h3 {
    font-weight: 600;
    font-size: 30px;
    margin: 0;
}

p {
    font-weight: 500;
    font-size: 16px;
    color: var(--dark);
}

a {
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
}

/* Navigation */
nav {
    position: fixed;
    right: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: var(--stone);
    color: var(--dark);
    box-shadow: 5px 10px 20px rgba(0, 0, 0, 0.3);
    border-radius: 0 0 20px 20px;

    z-index: 10;
}

nav .right :hover {
    background-color: var(--green);
    color: var(--sand);
}

nav .left {
    display: flex;
    align-items: center;
}

nav .logo {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    padding: 5px;
    background-color: var(--sand);
    border-radius: 50%;
}

nav .right {
    display: flex;
    gap: 20px;
    transition: all 0.3s ease;
}

nav a {
    background-color: var(--sand);
    color: var(--dark);
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
}

.nav-toggle {
    display: none;
    cursor: pointer;
}

.nav-toggle img {
    width: 28px;
    height: 28px;
}

/* Hero Section */
section.hero {
    padding-top: 100px;
}

.hero {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 100vh;
    width: 100%;
    box-sizing: border-box;
    position: relative;
}

.intro {
    display: flex;
    align-items: flex-start;
    gap: 50px;
    position: relative;
}

.meerkat {
    height: 80vh;
    object-fit: contain;
    margin-bottom: 0;
}

.title {
    margin: 0;
    font-size: 150px;
    font-weight: 200;
    text-transform: uppercase;
    color: var(--green);
    position: relative;
    top: 0;
    left: 0;
    transform: translateY(0);
}

.hero-info {
    display: flex;
    align-items: center;
    background-color: var(--sand);
    padding: 0 40px;
    margin: 0;
    margin-bottom: 50px;
    border-radius: 20px;
    height: 100px;
    position: relative;
}

.hero-info h3 {
    position: absolute;
    left: 0;
    top: -5px;
    transform: translateY(-50%);
    margin: 0;
    padding-left: 20px;
    color: var(--green);
    z-index: 1;
}

.hero-info .row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    width: 100%;
    height: 100%;
}


.hero-info .col {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    text-align: right;
    gap: 2px;
}

.hero-info .col p {
    margin: 0;
    font-size: 14px;
    color: var(--dark);
}

.hero-info h3,
.hero-info p {
    margin: 5px;
}

.hero-info h3 {
    color: var(--green);
}

.hero-info p {
    color: var(--dark);
}

.paw {
    width: 50px;
    height: 50px;
}

/* Projects Section */
section#projects {
    background-color: var(--stone);
}

.projects h2 {
    position: relative;
    color: var(--green);
}

.carousel {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.cards {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 50px;
    justify-content: center;
}

.card {
    background-color: var(--sand);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    width: 384px;
    transition: transform 0.3s ease;
}

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

.visual .img {
    display: block;
    width: 100%;
    height: auto;
}

.content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.name {
    margin: 0;
    color: var(--green);
}

.desc {
    color: var(--dark);
    margin-bottom: 1.5rem;
}

.card-link {
    background-color: var(--green);
    color: var(--sand);
    padding: 10px 0;
    border-radius: 20px;
    font-weight: 300;
    text-align: center;
    transition: background-color 0.3s ease;
}

.card-link:hover {
    color: var(--dark);
    background-color: var(--stone);
}

/* About Me */
/* Bio */
.bio {
    color: var(--dark);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    max-width: 400px;
}

.download {
    background-color: var(--green);
    color: var(--sand);
    padding: 10px 20px;
    border-radius: 20px;
    text-align: center;
    font-weight: 600;
    width: fit-content;
    transition: background-color 0.3s ease;
}

.download:hover {
    background-color: var(--stone);
    color: var(--dark);
}

/* Skills */
#hide {
    display: none;
}

#selected {
    font-weight: 600;
}

.block {
    display: flex;
    gap: 50px;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding-top: 20px;
}

.skills-card {
  background: var(--sand);
  border-radius: 16px;
  padding: 20px;
  width: 100%;
  max-width: 480px;
  max-height: 300px;
  font-family: sans-serif;
  margin: 20px;
}

.skills-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}
 .skills-header h3 {
  color: var(--dark);
  padding: 0px;
} 

.tags {
  display: flex;
  gap: 8px;
}

.tag {
  background: var(--green);
  color: var(--sand);
  font-size: 14px;
  font-weight: 100;
  padding: 6px 16px;
  border-radius: 999px;
}

.tag:hover{
    background-color: var(--stone);
    color: var(--dark);
}

.skills-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.skill-name {
  color: var(--dark);
  margin-bottom: 8px;
}

.progress-bg {
  width: 100%;
  background: var(--stone);
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--green);
  border-radius: 999px;
  transition: width 0.3s ease;
}

 
.skills {
    display: flex;
    gap: 20px;
}

.soft-skills-container {
  margin: 20px;
  padding: 20px;
  color: var(--dark);

} 

.soft-skill h3 {
    padding: 0;
}

.skills-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 5px;
}

.skills-row {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.skill-tag {
  background: var(--sand);
  color: var(--dark);
  padding: 7px 5px;
  border-radius: 999px;
  font-weight: 600;
  text-align: center;
  display: flex;
  align-items: center;
}


/* PFP */
.pfp {
    width: 100%;
    max-width: 300px;
    height: auto;
    object-fit: cover;
    object-position: center 30%;
    border-radius: 20px;
    display: block;
}

.contact {
    display: flex;
    align-items: center;
    background-color: var(--sand);
    padding: 0 40px;
    margin: 0;
    margin-top: 50px;
    border-radius: 20px;
    height: 100px;
    width: 300px;
    position: relative;
}

.contact h3 {
    position: absolute;
    right: 0;
    top: 0;
    transform: translateY(-50%);
    margin: 0;
    padding-right: 20px;
    color: var(--green);
    z-index: 1;
}

.contact a {
    color: var(--dark);
    font-weight: 700;
    font-size: 16px;
    padding: 5px;
    text-decoration: none;
}

.contact .row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    width: 100%;
    height: 100%;
}

.contact .paw {
    width: 50px;
    height: 50px;
    margin: 0;
    padding-left: 20px;
}

.contact .col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: right;
    gap: 2px;
}

.linkedin {
    color: var(--dark);
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.linkedin img {
    width: 20px;
    height: 20px;
}

/* popup */
.popup {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 50;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(2px);
    animation: fadeIn 0.3s ease;
}


/* Open button */
.open-btn {
    background-color: var(--green);
    color: var(--sand);
    margin-top: 5px;
    padding: 5px 10px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
    font-family: 'League Spartan', sans-serif;
}

.open-btn:hover {
    background-color: var(--dark);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Timeline */
.timeline {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    max-width: 500px;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 5px;
    background-color: var(--sand);
    border-radius: 50px;
    z-index: -1;
}

.education {
    display: flex;
    align-items: center;
    margin: 20px 0;
    position: relative;
}

.school {
    flex: 1;
    text-align: right;
    padding-right: 20px;
}

.school p {
    margin: 0;
}

.school .place {
    font-size: 14px;
    margin-top: 4px;
}

.year {
    flex: 1;
    text-align: left;
    padding-left: 20px;
    margin: 0;
    color: var(--green);
}

/* Footer */
footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: var(--stone);
    color: var(--dark);
    border-radius: 20px 20px 0 0;
}

footer .left {
    display: flex;
    align-items: center;
    gap: 12px;
}

footer .left p {
    margin: 0;
    padding: 5px 10px;
    border-radius: 20px;
}

footer .logo {
    width: 40px;
    height: 40px;
    padding: 5px;
    background-color: var(--sand);
    border-radius: 50px;
}


#feedback-form {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-left: 20px;
}

#feedback-form input {
    min-width: 280px;
    max-width: 720px;
    width: 40vw;
    min-height: 30px;
    resize: vertical;
    padding: 10px;
    border-radius: 10px;
    border: 2px solid var(--green);
    background: var(--sand);
    font-family: 'league spartan', sans-serif;
    font-size: 14px;
    color: var(--dark);
}

#feedback-form button {
    background: var(--green);
    color: var(--sand);
    border: none;
    padding: 10px 12px;
    border-radius: 20px;
    cursor: pointer;

}

#feedback-form button:hover {
    background: var(--dark);
}

#feedback-form input:focus {
    outline: none;
    border-color: var(--dark);
}

/* Make form stack on small screens */
@media (max-width: 576px) {
    #feedback-form {
        flex-direction: column;
        align-items: stretch;
        margin: 10px;
    }

    #feedback-form textarea {
        width: 100%;
    }

    #feedback-form button {
        width: 100%;
    }
}

/* responsive */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 50px;
    }

    .title {
        margin: 0;
        margin-top: 70px;
        font-weight: 200;
        text-transform: uppercase;
        font-size: 60px;
        color: var(--green);
        text-align: left;
    }

    h2 {
        font-size: 32px;
        margin: 0;
    }

    h3 {
        font-size: 22px;
    }

    p {
        font-weight: 500;
        font-size: 16px;
        color: var(--dark);
    }

    a {
        font-weight: 700;
        font-size: 16px;
        text-decoration: none;
    }

    /* Navigation */
    nav .logo {
        width: 30px;
        height: 30px;
        margin-right: 10px;
        padding: 5px;
        background-color: var(--sand);
        border-radius: 50%;
    }

    nav {
        flex-wrap: wrap;
    }

    .nav-toggle {
        display: block;
        position: absolute;
        top: 15px;
        right: 20px;
        z-index: 2;
    }

    nav .right {
        display: none;
        flex-direction: row;
        justify-content: center;
        width: 100%;
        background-color: var(--stone);
        text-align: center;
        padding: 10px 0;
    }

    .right a {
        margin: 10px 0;
        display: block;
    }

    .right.open {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Hero */
    .hero {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        height: auto;
        padding: 20px;
    }

    .intro {
        display: flex;
        align-items: flex-start;
        gap: 50px;
        position: relative;
    }

    .hero-info {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        background-color: var(--sand);
        width: 60%;
        height: auto;
        min-height: 80px;
        padding: 10px 20px;
        border-radius: 20px;
        z-index: 1;
    }

    .hero-info h3 {
        position: absolute;
        left: 0;
        top: -5px;
        transform: translateY(-50%);
        margin: 0;
        padding-left: 20px;
        color: var(--green);
    }

    .hero-info .row {
        display: flex;
        align-items: center;
        justify-content: space-around;
        gap: 10px;
    }


    .hero-info .col {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        justify-content: center;
        text-align: right;
        gap: 2px;
    }

    .hero-info .col p {
        margin: 0;
        font-size: 14px;
        color: var(--dark);
    }

    .hero-info h3,
    .hero-info p {
        margin: 5px;
    }

    .hero-info h3 {
        color: var(--green);
    }

    .hero-info p {
        color: var(--dark);
    }


    .meerkat {
        margin-bottom: 20px;
        width: 90px;
        height: auto;
    }


    /* Projects */
    .card {
        flex-wrap: wrap;
        max-width: 300px;
    }

    /* About Me */
    .bio {
        padding: 10px;
        gap: 10px;
        max-width: 100%;
    }

    .bio p {
        margin: 0;
    }

    .block {
        flex-direction: column;
        gap: 20px;
        padding-top: 0;
    }

    .skills {
        flex-direction: row;
        justify-content: center;
        gap: 20px;
        margin-left: 10px;
        margin-right: 10px;
    }

    .hard,
    .soft {
        padding: 10px;
    }

    .skill {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 5px;
        align-items: center;
        justify-items: center;
        width: 80%;
    }

    .skill img {
        width: auto;
        height: 40px;
    }

    .pfp {
        display: none;
    }

    .block .meerkat {
        display: none;
    }
}