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

/* general stuff */
html, body {
    width: 100%;
    height: 100%;
}
a {
    text-decoration: none;
    color: black;
}

body {
    background: white;
    background-image: radial-gradient(#C56D07, rgba(197, 109, 7, 0.2) 1px, transparent 2px),
        radial-gradient(#C56D07, rgba(197, 109, 7, 0.15) 2px, transparent 3px),
        radial-gradient(#C56D07, rgba(197, 109, 7, 0.1) 3px, transparent 4px),
        radial-gradient(ellipse at center, #C56D07 0%, transparent 2px),
        radial-gradient(ellipse at 30% 40%, #C56D07 0%, transparent 2px),
        radial-gradient(circle at 70% 60%, #C56D07 0%, transparent 1px);
    background-size: 250px 250px, 400px 400px, 350px 350px, 300px 300px, 200px 200px, 150px 150px;
    background-position: 0 0, 40px 60px, 130px 270px, 70px 100px, 200px 200px, 150px 150px;
    min-height: 100vh;
    animation: twinkling 20s linear infinite;
    overflow-anchor: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
@keyframes twinkling {
    from {
        background-position: 0 0, 40px 60px, 130px 270px, 70px 100px, 200px 200px, 150px 150px;
    }
    to {
        background-position: 250px 250px, 440px 460px, 330px 470px, 270px 300px, 400px 400px, 350px 350px;
    }
}

html {
    overflow-x: hidden;
    scroll-padding-top: 20px;  /* Add padding for anchor links */
    scroll-behavior: smooth;  /* Add this line */
}

/* index styles */
.main-stack {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    height: 90%;
    width: 100%;
    align-self: center;
    position: relative;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;  
    padding-top: 0;  
    margin-top: -40px;;   
}
.main-logo {
    width: 500px;
    height: 500px;
    background-image: url(images/main-logo.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin: 0 auto;
    margin-top: -100px;  /* Increase negative margin to move logo higher */
    transition: background-image 0.3s ease;
    transition: scale 0.3s ease;
}
.main-logo:hover {
    background-image: url(images/main-logo-clear.svg);
    scale: 1.05;
}
.main-stack .redirect {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 20px;
    margin: 0.2%;
}
.redirect:hover {
    text-decoration: underline;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.marquee-text {
    overflow: clip;
    width: 100%;
    font-size: clamp(14px, 2.5vw, 18px);
}
.marquee-text-track {
    display: flex;
    padding-left: 4.8rem;
    gap: 4.8rem;
    width: max-content;
    animation: marquee-move-text var(--speed, 10s) linear infinite var(
        --direction,
        forwards
    );
}
.marquee-text-track:hover {
    animation-play-state: paused;
}
.marquee-text p {
    border: 1px solid white;
    border-radius: 999px;
    padding: 1rem 2.5rem;
}
@keyframes marquee-move-text {
    to {
        transform: translateX(-50%);
    }
}



/* Add this where the index-star CSS was */
.index-back {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: fit-content;
    transition: all 0.8s ease; 
    animation: bounce 2s infinite;
}

.index-back.scrolled {
    left: auto;
    right: 20px;
    transform: none;
    animation: none;
}

.index-back a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #C56D07;
}

.index-back img {
    width: 20px;
    height: auto;
    margin-right: 10px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.index-back img:hover {
    opacity: 1;
}

.index-back .image-text {
    font-size: 1.2rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
    font-family: 'Inter', sans-serif;
}

.index-back:hover img,
.index-back:hover .image-text {
    opacity: 1;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* about page styles*/
.about-stack {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-family: 'Inter' sans-serif;
    height: 100vh; 
    width: 100%;
    position: relative; 
    margin: 0;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.headshot-backdrop {
    width: 23.75%;
    height: 50%;
    background-image: url(images/headshot-backdrop.svg);
    background-size: cover;
    background-position: center;
    align-items: center;
    justify-content: center;
    margin: 0 auto; 
    display: flex;
    position: relative; 
}
.headshot {
    position: relative; 
    width: min-content;
    margin: 0 auto; 
}
.about-blurb {
    width: 90%;
    max-width: 600px;
    margin: 2rem auto;
    font-size: clamp(16px, 3vw, 20px);
    text-align: center;
    padding: 15px;
}
.headshot-container {
    position: relative;
    width: 500px;
    height: 500px;
    margin: 0 auto;
}
.backdrop, .headshot {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}
/*Projects page styles*/
.projects body {
    font-family: Arial, sans-serif;
    text-align: center;
    background-color: white;
    margin: 0;
    padding: 0;
}
.projects-header {
    position: relative;
    height: 200px;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
}
.projects-header h1 {
    font-size: 24px;
    font-weight: bold;
}
.character {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 100px;
    background-color: lightgray;
    border-radius: 50%;
}
.character:before {
    content: "";
    position: absolute;
    top: -20px;
    left: 35px;
    width: 30px;
    height: 40px;
    background-color: green;
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}
.projects-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 50px;
    max-width: 1400px;
    margin: 0 auto;
}
.project-card {
    width: calc(30% - 40px); 
    min-width: 300px;
    border-radius: 10px;
    background-color: lightgrey;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.8s ease;
}
.project-card .text-container {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}
.project-card h2 {
    color: #C56D07;
    margin-top: 0;
    margin-bottom: 10px;
    text-align: center;
    font-family: 'Inter', sans-serif;
}
.project-card p {
    color: #333;
    line-height: 1.5;
    margin: 0;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 5px;
    padding: 8px;
    margin-top: 15px;
    font-family: 'Inter', sans-serif;
}
.project-card img {
    width: 100%;
    height: 200px; 
    object-fit: cover; 
    border-radius: 20px;
    transition: transform 0.3s ease;
    border:  #216417 5px solid;
    opacity: 0.9;
}
.project-card img:hover {
    opacity: 1;
}

.project-card:hover {
    transform: scale(1.1); /* Makes only the image 10% bigger on hover */
}

.back-button {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    width: 50px; /* Set container width */
}
.back-button a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #C56D07;
}
.back-button img {
    width: 20px; /* Smaller fixed width */
    height: auto;
    margin-right: 10px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}
.image-text {
    font-size: 1.2rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}
.back-button a:hover img,
.back-button a:hover .image-text {
    opacity: 1;
}
.back-button img {
    width: 100%; /* Take up full width of container */
    height: auto; /* Maintain aspect ratio */
    opacity: 0.8;
    transition: opacity 0.3s ease;
    object-fit: contain; /* Ensure image fits within bounds */
}
.back-button img:hover {
    opacity: 1;
}

.skills {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    background-color: #C56D07;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.9em;
    font-family: 'Inter', sans-serif;
}

.skill-tag:hover {
    opacity: 0.9;
    transform: scale(1.05);
    transition: all 0.2s ease;
}

.section-divider {
    height: 20px;  /* Reduced from 50px */
    width: 100%;
}

.about-section, .projects-section {
    min-height: 100vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px 0;  /* Reduced from 50px */
    flex-direction: column;
    align-items: center;
}

.section-title {
    color: #C56D07;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;  
    font-family: 'Inter', sans-serif;
    opacity: 0.9;
}

/* Update existing navigation links */
.redirect.about a, .redirect.projects a {
    cursor: pointer;
    text-decoration: none;
}

.redirect.about a[href="about.html"] {
    href: "#about"
}

.redirect.projects a[href="projects.html"] {
    href: "#projects"
}

.redirect a {
    position: relative;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
    display: inline-block;
}

.redirect a:hover {
    transform: translateY(-2px);
}

.redirect a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #C56D07;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.redirect a:hover::after {
    transform: scaleX(1);
}

/* Add clickable class */
.clickable {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.clickable:hover {
    opacity: 0.8;
}

.footer {
    text-align: center;
    padding: 20px;
    color: #C56D07;
    opacity: 0.8;
    font-family: 'Inter', sans-serif;
    margin-top: 40px;
}

.footer p {
    margin: 0;
    font-size: 0.9rem;
}

/* Responsiveness stuff*/

/* Media queries for smaller screens */
@media screen and (max-width: 768px) {
    .main-stack {
        gap: 15px;
    }
    .back-button {
        top: 10px;
        left: 10px;
    }
    .back-button img {
        width: 15px;
    }
    .image-text {
        font-size: 14px;
    }
    .marquee-text p {
        padding: 0.5rem 1.5rem;
    }
    .main-logo {
        width: 350px;
        height: 350px;
    }
    .headshot-container {
        width: 350px;
        height: 350px;
    }
}
@media screen and (max-width: 480px) {
    .about-stack {
        padding: 10px;
    }
    .headshot-container {
        width: 250px;
        height: 250px;
    }
    .about-blurb {
        width: 95%;
        padding: 10px;
    }
    .main-logo {
        width: 250px;
        height: 250px;
    }
    .footer {
        padding: 15px;
        margin-top: 20px;
    }
}


