@import url('https://fonts.googleapis.com/css2?family=Bitcount+Single:wght@100..900&family=Jersey+15&family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');

html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    overflow: visible; 
    opacity: 0;
    transition: opacity 0.2s ease-in;
}

body.loaded {
    opacity: 1;
}
/*========== MAIN CONTAINER ==========*/
.container {
    padding-top: 20px;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-gap: 15px;
    grid-template-columns: 230px minmax(0, 1fr); 
    overflow: hidden;
}

body {
    background-image: url("https://dl.glitter-graphics.com/pub/711/711492quxsntt3op.gif");
    background-attachment: fixed;
    background-repeat: no-repeat; 
    background-size: cover; 
    background-position: center; 
}

 /*========== BASIC DESIGN ==========*/
header, footer, .content, .project, .navigation, .status {
    border: rgb(187, 174, 194) 3px solid;
    border-radius: 10px;
    background-color: rgb(239, 231, 241);
}

/*========== KEY SECTIONS ==========*/
header {
    grid-row: 1/2;
    grid-column: 1/3;
    font-family: 'Bitcount Single', monospace;
    color:rgb(132, 97, 138);
    text-align: center;
    font-size: larger;
}

nav {
    grid-row: 2/3;
    grid-column: 1/2;
    display: flex;
    flex-direction: column;
    gap: 10px; 
    background: transparent;
    border: none;
}

main {
    grid-row: 2/3;
    grid-column: 2/3;
    font-family: 'Jersey 15', monospace;

    display: flex;
    flex-direction: column;
}

footer {
    grid-row: 3/4;
    grid-column: 1 / 3;
    width: 100%;
    max-width: 1100px; 
    margin: 15px auto 0 auto;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    box-sizing: border-box;
}

/*========== HEADER CONTINUED ==========*/
header h1 {
    margin: 0;
    font-weight: normal;
}

.content {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    text-align: left;
}

.content h1, h2, h3 {
    font-weight: 500;
}

.content p {
    text-indent: 25px;
    margin-bottom: 15px;
    line-height: 1.5; /* Makes text easier to read */
}

.content a {
    font-size: 20px;
}

.content a:hover {
    color:  rgb(167, 140, 172);
}

/*========== NAV CONTINUED ==========*/
.navigation {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    padding-top: 25px;
}

.navigation img {
    height: 180px;
    object-fit:contain;
    margin-bottom: 15px;
    border-width:8px;
    border-style:solid;
    border-image: url("https://foollovers.com/mat/baf/flower/fl32-005-d.gif") 7 fill round;                               
}

.navigation ul {
    list-style: none;
    padding: 0;
    width: 190px; /* Make buttons span width of the box */
}

.navigation li {
    text-align: center;
    margin-bottom: 12px;
}

.navigation a {
    display: block;
    padding: 12px 20px;
    font-family: 'Jersey 15', monospace;
    font-size: 20px;
    color: black;
    background-color: rgb(255, 254, 249);
    border: 1.5px solid rgb(197, 182, 167);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.navigation a:hover {
    background-color: rgb(167, 140, 172);
    color: white;
    border-radius: 12px;
    transform: scale(1.07); /* Makes the button grow slightly */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.status {
    text-indent: 25px;
    border: rgb(187, 174, 194) 3px solid;
    border-radius: 10px;
    background-color: rgb(239, 231, 241);
    font-family: 'Jersey 15', monospace;
    transition: transform 0.2s;
    padding-bottom: 15px;
}

.status h3 {
    font-size: 24px;
    font-family: 'Bitcount Single', monospace;
    color: rgb(71, 54, 37);
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.status img {
    max-width: 100%;    /* Prevents the GIF from being wider than the box */
    height: auto;
    display: block;
    margin: 10px auto;
    border-radius: 8px;
}

.emoji-icon {
    height: 1.2em; 
    width: auto;
    vertical-align: middle; 
    margin-right: 5px; 
    display: inline-block;
    image-rendering: pixelated;
}

.side-socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
    padding-top: 15px;
    width: 100%;
    border-top: 1px solid rgba(187, 174, 194, 0.3);
}

.side-socials a {
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    display: inline-block !important;
    padding: 5px !important;
    font-size: 26px;
    color: rgb(71, 54, 37);
    transition: transform 0.3s, color 0.3s;
}

.side-socials a:hover {
    color: rgb(167, 140, 172);
    transform: scale(1.2);
    background: none !important;
}

/*========== MAIN CONTINUED ==========*/
#contact-section {
    scroll-margin-top: 20px;
    font-family: 'Jersey 15', monospace;
}

.project {
    border: rgb(187, 174, 194) 3px solid;
    border-radius: 10px;
    background-color: rgb(239, 231, 241);
    padding: 25px;
    font-family: 'Jersey 15', monospace;
    transition: transform 0.2s;
}

.project:hover {
    transform: translateY(-5px); /* Subtle lift when hover */
    background-color: rgb(225, 194, 217);
    box-shadow: 0 4px 20px rgba(154, 28, 127, 0.65);
}

.skill-section {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.skill-section h2 + .content {
    padding-top: 20px !important; 
    display: flex;
    flex-direction: column;
}

.skill-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
    padding: 0 25px;
}

.skill-name {
    font-family: 'Jersey 15', monospace;
    font-size: 20px;
    color: rgb(71, 54, 37);
    flex: 1;
}

.skill-bar-container {
    flex: 2;
    height: 12px;
    background-color: rgb(255, 254, 249);
    border: 1.5px solid rgb(197, 182, 167);
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}

.skill-bar-fill {
    height: 100%;
    background-color: rgb(172, 140, 164);
    width: calc(var(--percent) * 100%);
    border-radius: 4px;
    transition: width 1s ease-in-out; /* Animates the bar on page load */
}

.skill-row:hover .skill-bar-fill {
    filter: brightness(1.25);
    box-shadow: 0 0 8px rgba(167, 140, 172, 0.5);
}

.skills-list {
    padding-left: 0;
    list-style-type: none;
}

.intro-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Keeps everything flush to the left */
}

.project-section h2, .skill-section h2 {
    width: 100%;
    margin-top: 15px; 
    margin-bottom: 10px;
    padding-bottom: 5px;
    
    border-bottom: 2px solid rgba(255, 254, 249, 0.5); 
    color: rgb(255, 254, 249) !important; 
    font-family: 'Bitcount Single', monospace;
    font-size: 28px;
    display: block;
}

.project h3 {
    color: black !important;
    font-family: 'Jersey 15', monospace;
    font-size: 22px;
    padding-bottom: 8px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2); 
    display: inline-block;
    width: 100%;
}

#project-section {
    scroll-margin-top: 50px;
}

.project-grid {
    display: flex;
    flex-wrap: wrap; /* Projects to move to a new row if run out of space */
    gap: 15px;       /* Spacing even between boxes */
    width: 100%;
}

.project {
    flex: 1 1 calc(33.333% - 15px); /* 3 Columns */
    min-width: 250px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.project img {
    max-width: 100%; 
    height: auto;
    display: block;
    margin-top: 15px;
    border-radius: 8px;
}

@media (max-width: 900px) {
    .project {
        flex: 1 1 calc(50% - 15px); /* Drops to 2 columns on tablets */
    }
}

@media (max-width: 600px) {
    .project {
        flex: 1 1 100%; /* Drops to 1 column on phones */
    }
}

.art-category {
    margin-bottom: 40px; /* Space between different categories */
}

.category-header {
    font-family: 'Jersey 15', monospace;
    font-size: 24px;
    border-bottom: 2px solid rgba(0,0,0,0.1);
    margin-bottom: 15px;
    padding-bottom: 5px;
}

.art-row {
    display: flex;
    flex-direction: row;
    gap: 15px;
    
    width: 100%;
    overflow-x: auto; 
    overflow-y: hidden;
    white-space: nowrap; 
    
    padding-bottom: 15px;
    padding: 10px 0;
    -webkit-overflow-scrolling: touch;
}

.art-row::-webkit-scrollbar {
    height: 8px;
}

.art-row::-webkit-scrollbar-thumb {
    background: rgb(167, 140, 172);
    border-radius: 10px;
}

.art-row::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

.art-item {
    flex-shrink: 0;
}

.art-item img {
    height: 300px;
    width: auto;
    display: block;
    border-radius: 4px;
}

.art-item:hover img {
    transform: scale(1.02);
    background-color: rgb(225, 194, 217);
    box-shadow: 0 4px 10px rgba(149, 95, 159, 0.8);
}

.category-header {
    padding-left: 20px; 
    font-family: 'Jersey 15', monospace;
    margin-bottom: 15px;
    color: #333;
}

.art-row::-webkit-scrollbar:horizontal {
    height: 8px;
}

.art-row::-webkit-scrollbar-thumb:horizontal {
    background-color: rgb(167, 140, 172);
    border-radius: 10px;
}

.art-row::-webkit-scrollbar-track:horizontal {
    background: rgba(0, 0, 0, 0.05);
}

/*========== FOOTER CONTINUTED ==========*/
#contact-section {
    scroll-margin-top: 30px;
    padding: 25px;
}

.contact-wrapper {
    width: 100%;
    box-sizing: border-box;
    margin: 0; 
    padding: 25px;
    text-align: left;
    background-color: rgb(239, 231, 241);
    border: rgb(187, 174, 194) 3px solid;
    border-radius: 10px;
}

.copyright {
    text-align: center;
    font-family: 'Jersey 15', monospace;
    font-size: 18px;
    margin: 20px 0;
    color: rgb(255, 254, 249);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.input-group {
    display: flex;
    gap: 15px;
}

.contact-form input, .contact-form textarea {
    width: 100%;
    padding: 12px;
    font-family: 'Jersey 15', monospace;
    font-size: 18px;
    background-color: rgb(255, 254, 249);
    border: 1.5px solid rgb(197, 182, 167);
    border-radius: 8px;
    box-sizing: border-box;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical; 
    padding: 15px;
    line-height: 1.6;
}

.button-group {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 15px;
}

.submit-btn, .copy-btn {
    height: 45px; 
    padding: 0 25px;
    
    display: flex;
    align-items: center;
    justify-content: center;
    
    font-family: 'Bitcount Single', monospace;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.copy-btn {
    display: flex;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
    background-color: rgb(225, 215, 230);
    border: 1px solid rgba(0, 0, 0, 0.1);
    height: 45px;
}

.icon-tab {
    background-color: rgba(0, 0, 0, 0.05); /* Slightly darker for contrast */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease;
}

.btn-text {
    padding: 0 20px;
    display: flex;
    align-items: center;
}

.copy-btn:hover .icon-tab {
    background-color: rgba(0, 0, 0, 0.1);
}

.submit-btn {
    width: 150px;
    padding: 12px;
    margin-top: 10px;
    align-self: flex-start;
    font-family: 'Jersey 15', monospace;
    font-size: 20px;
    cursor: pointer;
    color: black;
    background-color: rgb(255, 254, 249);
    border: 1.5px solid rgb(197, 182, 167);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background-color: rgb(167, 140, 172); 
    color: white;
    border-radius: 12px;
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#copy-status {
    visibility: hidden;
    background-color: #333;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    padding: 5px 12px;
    
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    
    font-size: 12px;
    white-space: nowrap;
    z-index: 10;
}

#copy-status.show {
    visibility: visible;
}