/* Global Variables */
:root {
    /* Colors */
    --dark-main: #1a1a1a;
    --ember-main: #e64100;
    --light-main: #f5f5f5;
}

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

body {
    background-color: var(--dark-main);
    background-image: url('../images/body_background.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--light-main);
    font-family: "Epunda Slab", serif;
    font-weight: 400;
}

/* Sections */
section {
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero {
    text-align: center;
    min-height: 30vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 1rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 2rem;
    color: var(--light-main);
}

.projects {
    padding: 6rem 2rem;
    max-width: 1200px;
    margin: 6rem auto 2rem;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 250px));
    gap: 2rem;
    margin-top: 2rem;
    justify-content: center;
}

.project-card {
    border-radius: 8px;
    border: 2px solid var(--ember-main);
    transition: all 0.3s;
    aspect-ratio: 4/3;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    /* border-color: var(--ember-main); */
    filter: drop-shadow(0 0 4px var(--ember-main));
}

.project-image {
    width: 100%;
    height: 150px;
    border-radius: 0 0 8px 8px;
    object-fit: cover;
    display: block;
    margin-top: auto;
}

.project-card h3 {
    text-align: center;
    color: var(--light-main);
    padding: 0.5rem;
    margin: 0;
}

.project-card a {
    text-decoration: none;
}

.contact {
    position: fixed;
    bottom: 10px;
    left: 20px;
    padding: 0 !important;
}

/* Buttons */

/* Images */
.floating-logo {
    position: fixed;
    top: 20px;
    left: 20px;
    height: 60px;
    width: auto;
    z-index: 1000;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.floating-logo:hover {
    transform: scale(1.2);
}

/* Text */
.ember-text { color: var(--ember-main); }
.dark-text { color: var(--dark-main); }
.light-text { color: var(--light-main); }

/* Socials */
.socials-links {
    display: flex;
    gap: 2rem;
    justify-content: center;
    margin-top: 0;
    padding: 0;
}

.socials-icon {
    width: auto;
    height: 40px;
    transition: transform 0.3s ease;
    cursor: pointer;
    /* filter: invert(1); */
}

.socials-icon:hover {
    transform: scale(1.2);
}

.socials-links a:hover .socials-icon {
    filter: drop-shadow(0 0 8px var(--ember-main));
}

/* Sparks Style & Animation */
.spark {
    position: fixed;
    width: 4px;
    height: 4px;
    background: var(--ember-main);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    box-shadow: 0 0 6px var(--ember-main);
}

/* Sparks Animation */
@keyframes sparkLife {
    0% {
        opacity: 0;
        transform: translateY(0px) scale(0.5);
    }
    10% {
        opacity: 1;
        transform: translateY(-10px) scale(1);
    }
    90% {
        opacity: 1;
        transform: translateY(-50px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-80px) scale(0.5);
    }
}

.spark.animate {
    animation: sparkLife 3s ease-out forwards;
}

