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

html, body {
    height: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #F5F5DC; /* Soft Beige */
    color: #5D4037; /* Dark Brown */
    margin: 0;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.home-body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* Background Canvas Styles */
#background-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2; /* Behind everything else */
}

/* Page Loader Styles */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #F5F5DC; /* Soft Beige */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.75s, visibility 0.75s;
}

#loader.loader-hidden {
    opacity: 0;
    visibility: hidden;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#loader::after {
    content: '';
    border: 8px solid rgba(93, 64, 55, 0.2); /* Dark Brown with opacity */
    border-top: 8px solid #5D4037; /* Dark Brown */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

.container {
    max-width: 700px;
    padding: 0 2rem;
    margin: 0 auto; /* Center containers on non-homepage */
}

h1 {
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -3px;
    color: #4E342E; /* Darker Brown */
}

p {
    font-size: 1.2rem;
    color: #795548; /* Lighter Brown */
    margin-bottom: 2.5rem;
}

.links a {
    text-decoration: none;
    color: #5D4037; /* Dark Brown */
    margin: 0 1.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
}

.links a i {
    margin-right: 0.5rem;
}

.links a:hover {
    color: #A1887F; /* Muted Beige/Brown for hover */
}

.links a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -8px;
    left: 0;
    background-color: #A1887F; /* Muted Beige/Brown for underline */
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.links a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.about-me, .skills {
    margin-bottom: 3rem;
    margin-top: 3rem; /* Add margin to top for about and skills sections */
}

.about-me h2, .skills h2 {
    font-size: 2.5rem;
    color: #4E342E;
    margin-bottom: 1.5rem;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.skill-list span {
    background-color: #A1887F;
    color: #F5F5DC;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    font-weight: 500;
}

.back-link {
    margin-top: 4rem;
    text-align: center;
}

.back-link a {
    text-decoration: none;
    color: #5D4037; /* Dark Brown */
    font-weight: 500;
    font-size: 1.1rem;
}

.back-link a:hover {
    color: #A1887F; /* Muted Beige/Brown for hover */
}