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

:root {
    --text-color: rgb(0, 0, 0);
    --background-color: rgb(255, 255, 255);
    --link-hover-color: rgb(100, 100, 100);
}

body {
    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
    text-align: center;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    opacity: 1;
    z-index: -1;
}

#background-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

header {
    padding: 20px;
    text-align: center;
}

.logo {
    width: 60px;
    height: auto;
}

main {
    width: 100%;
    display: flex;
    justify-content: center;
}

#typewriter-content {
    text-align: left;
    display: inline-block;
    max-width: 680px;
    width: 100%;
    font-size: 27px;
    color: var(--text-color);
    box-sizing: border-box;
    font-family: "Reenie Beanie", cursive;
    font-weight: 400;
    font-style: normal;
    line-height: 1.5;
}

#typewriter-content a,
#typewriter-content a:link,
#typewriter-content a:visited {
    color: var(--text-color);
    text-decoration: none;
    outline: none;
    transition: color 0.3s ease;
}

#typewriter-content a:hover,
#typewriter-content a:active {
    color: var(--link-hover-color);
}

/* --- Contact Tooltip --- */
#contact-wrapper {
    position: relative;
    display: inline-block;
    cursor: default; /* Changed from pointer to default for hover interaction */
    outline: none; /* Remove default focus outline */
}

@media (hover: hover) and (pointer: fine) {
    #contact-wrapper {
        cursor: pointer;
    }
}

.contact-tooltip {
    position: absolute;
    bottom: 100%; /* Position above the "Contact" text */
    left: 50%;
    transform: translateX(-50%) translateY(10px) scale(0); /* Start hidden, slightly below */
    transform-origin: bottom center;
    display: flex;
    gap: 15px;
    padding: 10px 15px;
    background-color: var(--background-color);
    border-radius: 50px; /* Pill shape */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s ease, visibility 0.2s;
    visibility: hidden;
}

#contact-wrapper.active .contact-tooltip {
    transform: translateX(-50%) translateY(-10px) scale(1); /* Animate to visible, slightly above */
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.contact-tooltip a {
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-tooltip a i {
    transition: transform 0.2s ease;
}

.contact-tooltip a:hover i {
    transform: scale(1.2);
}

.inter-font {
    font-family: "Inter", sans-serif;
    font-weight: 600;
    font-size: 22px;
}

.section-tight {
    margin-bottom: 40px;
}

.section-tight div {
    line-height: 1.2;
}

.section-spaced {
    margin-bottom: 40px;
}

.section-spaced .header {
    margin-bottom: 20px;
}

.section-spaced div:not(.header) {
    line-height: 1.5;
}

/* Reenie Beanie font class */
.reenie-beanie {
    font-family: "Reenie Beanie", cursive;
    font-weight: 400;
    font-style: normal;
    font-size: 27px;
}

/* Character-by-character typewriter blur animation */
.reveal-char {
    opacity: 0;
    filter: blur(6px);
    display: inline-block; /* Changed for better layout consistency */
    animation: typewriterBlur 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes typewriterBlur {
    0% {
        opacity: 0;
        filter: blur(6px);
    }
    100% {
        opacity: 1;
        filter: blur(0px);
    }
}

/* Mobile Responsiveness */
@media screen and (max-width: 480px) {
    body {
        padding: 15px;
    }

    #typewriter-content {
        font-size: 25px;
    }
    
    .inter-font {
        font-size: 19px;
    }

    .section-tight,
    .section-spaced {
        margin-bottom: 30px;
    }

    .section-spaced .header {
        margin-bottom: 15px;
    }
}