/* Link Styling */
a:link, a:visited {
    background-color: #ffbbb7; /* Primary color for links */
    color: white;             /* Text color */
    padding: 0.9375em 1.5625em; /* Padding for click area */
    text-align: center;
    text-decoration: none;
    display: inline-block;
    border-radius: 5px;       /* Rounded corners */
    transition: all 0.3s ease-in-out; /* Smooth transition */
}

a:hover, a:active {
    background-color: #ffb5b5; /* Hover and active color */
    color: #333;              /* Text color for contrast */
    transform: scale(1.05);   /* Slight zoom on hover */
    text-shadow: 0px 1px 2px rgba(0, 0, 0, 0.2); /* Subtle shadow */
}

/* Resume Links in Footer */
.resume-links {
    margin-top: 20px;
}

.resume-links ul {
    list-style-type: none;
    padding: 0;
}

.resume-links li {
    margin: 5px 0;
}

.resume-links a {
    text-decoration: none;
    color: #007BFF;
    background: none;
    padding: 0; /* Remove button-like styling */
}

.resume-links a:hover {
    text-decoration: underline;
    color: #FF69B4;
}

/* Reset some defaults */
body, h1, h2, p {
    margin: 0;
    padding: 0;
}

/* Body Styling */
body {
    font-family: "PlayfairDisplay-Medium", sans-serif;
    background: linear-gradient(to bottom, #135656, #fac9e2);
    color: #fac9e2;
    text-align: center;
    overflow-x: hidden;
    cursor: url('./gifs/retro_cursor.gif'), auto;
    scroll-behavior: smooth;
}

/* Container */
.container {
    width: 90%;
    margin: auto;
    padding: 20px;
    border: 5px solid #646464;
    box-shadow: 0 0 20px #bcc5ff, 0 0 30px #00ffff;
    background-color: #94a0ba;
}

/* Header Styling */
header {
    background: url('./clipart/header_bg.gif') no-repeat center;
    background-size: cover;
    padding: 20px;
    border-bottom: 5px dotted #000;
}

header h1 {
    font-size: 2.5rem;
    color: #ffd2c2;
    background: linear-gradient(to right, #00ffff, #ff69b4);
    -webkit-background-clip: text; /* Webkit-specific */
    -moz-background-clip: text;    /* Mozilla-specific */
    background-clip: text;         /* Standard */
    -webkit-text-fill-color: transparent; /* Required for gradient text effect */
    text-shadow: 2px 2px #3970b2;
}

header p {
    font-size: 1.2rem;
}

header .Gif {
    width: 150px;
    height: auto; /* Maintain aspect ratio */
}

/* Navigation */
nav {
    margin: 20px 0;
    padding: 10px;
    background-color: #2f4646;
    border: 3px solid #757575;
    display: flex;
    justify-content: center;
    gap: 20px;
}

nav a {
    text-decoration: none;
    font-size: 1.2rem;
    color: #6fd6ed;
    font-weight: bold;
}

nav a:hover {
    color: #FF69B4;
    text-shadow: 1px 1px #8e7575;
}

/* Sections */
section {
    margin: 20px 0;
    padding: 20px;
    border: 5px dashed #cab9ff;
    background-color: #6d6e73;
}

/* Projects */
.project {
    display: flex;
    align-items: flex-start; /* Align items at the top */
    margin: 20px 0;
    padding: 15px;
    border: 3px solid #4e1958;
    background-color: #ffe3f1;
    color: #4f4f4f;
    box-shadow: 0 0 10px #ff69b4, 0 0 15px #00ffff;
    gap: 20px; /* Add space between the GIF and text */
}

.project img {
    flex-shrink: 0; /* Prevent shrinking of the image */
    width: auto; /* Natural width */
    height: 200px; /* Set a consistent height */
    object-fit: contain; /* Maintain aspect ratio without clipping */
    border-radius: 5px;       /* Rounded corners */
}

.project .description {
    text-align: left;
    flex: 1; /* Allows description to take up remaining space */
}

/* Footer */
footer {
    margin-top: 20px;
    padding: 10px;
    background: #f4bdff;
    color: #000;
    font-size: 1rem;
}

/* Animations */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.clipart {
    width: 100px;
    height: auto; /* Maintain aspect ratio */
    margin: 10px 0;
    animation: bounce 2s infinite;
}

/* Font Face */
@font-face {
    font-family: 'PlayfairDisplay-Medium';
    src: url('./fonts/Playfair_Display/static/PlayfairDisplay-Black.woff2') format('woff2'),
         url('./fonts/Playfair_Display/static/PlayfairDisplay-Black.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Newsreader_24pt-SemiBold';
    src: url('./fonts/Newsreader/static/Newsreader_36pt-SemiBold.woff2') format('woff2'),
         url('./fonts/Newsreader/static/Newsreader_36pt-SemiBold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
    header .Gif {
        width: 100px; /* Scale down GIFs in header */
        height: auto; /* Maintain aspect ratio */
    }

    .project {
        flex-direction: column; /* Stack image and description */
        align-items: center;
        text-align: center;
    }

    .project img {
        height: auto; /* Maintain natural height */
        width: 100%; /* Full width of container */
    }

    nav {
        flex-direction: column;
    }
}
