/* Reset and base */
:root {
    --bg-color: #80cfd3;
    --color-text: #ffffffe0;
    --color-button-bg: #5da8ac;
    --color-button-hover: #f53b24;
}

body {
    font-family: 'Press Start 2P', cursive;
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    padding: 1.25rem;
    overflow-x: hidden;
}


/* Generic Styles for Headings */

h1 {
    font-family: 'Press Start 2P', cursive;
    font-size: 1rem;
    margin-bottom: 0.625rem;
    text-shadow: 0.125rem 0.125rem 0 #000;
    color: var(--color-text);
    text-align: center;
}

h2 {
    font-family: 'Press Start 2P', cursive;
    font-size: 1.5 rem;
    color: var(--color-button-hover);
    text-shadow: 0.125rem 0.125rem 0 #000;
    text-align: center;
}

/* Header Styles */

.profile-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.875rem;
    text-align: center;
}

.profile-image {
    width: 150px;
    height: 150px;

    border-radius: 0.625rem;
    object-fit: cover;
    margin-bottom: 0.938rem;
    animation: pixel-zoom 2s infinite alternate;
}


/* Navigation/Links Styles */

.links-container {
    display: flex;
    flex-direction: column;
    min-width: 1.25rem;
    width: 100%;
}

.pixel-button {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--color-text);
    background-color: var(--color-button-bg);
   
    margin-bottom: 1.25rem;
    padding: 0.938rem;
    border-radius: 0.313rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pixel-button:hover {
    background-color: var(--color-button-hover);
    color: var(--color-button-bg);
    transform: scale(1.05);
}

.button-icon {
    margin-right: 10px;
    font-size: 1.2rem;
}
.pixel-button:last-child {
    margin-bottom: 0;
}

/* Footer Styles */

footer {
    margin-top: 1.875rem;
    text-align: center;
}

.social-icons {
    display: flex;
    justify-content: center;
    margin-bottom: 0.938rem;
}

.social-icon {
    text-decoration: none;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    margin: 0 0.625rem; 
}

.social-icon:hover {
    transform: rotate(360deg);
}

.footer-image {
    max-width: 12.5rem;
    height: auto;
    margin-top: 1,25rem;
    animation: pixel-shimmer 2s infinite alternate;
}

/* Animations */

@keyframes colorPulse {
    0% { background-color: var(--color-button-bg); }
    50% { background-color: #0f8c92; }
    100% { background-color: var(--color-button-bg); }
 }

 /* opacity */

@keyframes pixel-shimmer {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes pixel-zoom {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

@keyframes shake {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(3px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(3px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(1px, 2px) rotate(0deg); }
}
.pixel-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: all 0.5s;
}

.pixel-button:hover::before {
    left: 100%;
}

.pixel-button:hover .button-icon {
    animation: shake 0.5s;
    animation-iteration-count: 1;
    display: inline-block;
}


/* Micro-interactions */

.pixel-button:active {
    transform: scale(0.95);
}

/* Hover Shake Animations for Images */

.profile-image:hover,
.footer-image:hover,
.social-icon:hover {
    animation: shake 0.5s;
    animation-iteration-count: 1;
}

 .pixel-button {
    animation: colorPulse 5s ease infinite alternate;
 }


/* Media Queries pour responsive */

/* Small devices (landscape phones, 576px and up) */
@media screen and (min-width: 576px) {
    body {
        max-width: 500px;
        padding: 1.875rem 1.25rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1rem;
    }

    .profile-image {
        width: 180px;
        height: 180px;
    }

    .links-container {
        max-width: 450px;
    }
}

/* Medium devices (tablets, 768px and up) */
@media screen and (min-width: 768px) {
    body {
        max-width: 600px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.1rem;
    }

    .profile-image {
        width: 200px;
        height: 200px;
    }
}

/* Large devices (desktops, 992px and up) */
@media screen and (min-width: 992px) {
    body {
        max-width: 700px;
    }

    h1 {
        font-size: 2.2rem;
    }

    h2 {
        font-size: 1.2rem;
    }
}
