:root {
    --background: #efeff6;
    --on-background: #1b1c1c;
    --primary: #000000;
    --on-primary: #ffffff;
    --secondary: #5d5f5f;
    --outline-variant: rgba(196, 199, 199, 0.2); /* outline-variant/20 */
    --footer-border: rgba(196, 199, 199, 0.1); /* outline-variant/10 */
    --surface-container-lowest: #ffffff;
    --on-secondary-fixed-variant: #454747;
    --emerald-500: #10b981;
    --orange-500: #f97316;
    
    --font-headline: 'Manrope', sans-serif;
    --font-body: 'Hanken Grotesk', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    background-color: var(--background);
}

body {
    color: var(--on-background);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    font-weight: 400;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#dot-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    background-color: rgba(239, 239, 246, 0.8); /* background/80 */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 96%;
    margin: 0 auto;
    padding: 0.75rem 1rem; /* py-3 px-4 */
}

@media (min-width: 768px) {
    .nav-container {
        padding: 24px 16px; /* py-md px-margin */
    }
}

.logo {
    font-family: var(--font-headline);
    font-weight: 700;
    letter-spacing: -0.025em; /* tracking-tight */
    color: var(--primary);
    font-size: 1.25rem; /* text-xl */
}

@media (min-width: 768px) {
    .logo {
        font-size: 32px; /* text-headline-md */
        line-height: 1.3;
    }
}

.contact-btn {
    background-color: var(--primary);
    color: var(--on-primary);
    font-weight: 600;
    font-size: 0.875rem; /* text-sm */
    text-decoration: none;
    padding: 0.5rem 1rem; /* py-2 px-4 */
    border-radius: 0.5rem; /* rounded-lg */
    transition: transform 0.2s ease;
    display: inline-block;
}

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

.contact-btn:hover {
    transform: scale(0.95);
}

@media (min-width: 768px) {
    .contact-btn {
        font-size: 19px; /* text-label-md */
        letter-spacing: 0.05em;
        padding: 12px 48px; /* py-sm px-lg */
        border-radius: 0.75rem; /* rounded-xl */
    }
}

/* Main Content */
.main-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 32px 0 32px; /* pt-[120px] px-margin */
}

@media (min-width: 768px) {
    .main-container {
        padding-top: 220px; /* pt-[220px] */
    }
}

.hero-content {
    width: 100%;
    max-width: 56rem; /* max-w-4xl */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-title {
    font-family: var(--font-headline);
    font-weight: 800;
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    max-width: 1014px;
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 36px;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 74px; /* text-headline-lg */
        line-height: 1.1;
        letter-spacing: -0.03em;
        margin-bottom: 32px;
    }
}

.animated-text {
    transition: color 1s ease;
    cursor: default;
}

.text-emerald:hover {
    color: var(--emerald-500);
}

.text-muted {
    color: var(--on-secondary-fixed-variant);
}

.text-muted:hover {
    color: var(--orange-500);
}

.emoji-hover {
    display: inline-block;
    transition: transform 1s ease;
    cursor: default;
    user-select: none;
}

.emoji-hover:hover {
    transform: scale(1.1);
}

.font-tight {
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1rem; /* text-base */
    color: var(--secondary);
    max-width: 760px;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 640px) {
    .hero-subtitle {
        font-size: 1.125rem; /* text-lg */
    }
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 24px; /* text-body-lg */
        line-height: 1.6;
        margin-bottom: 64px;
    }
}

/* Social Links */
.social-container {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem; /* gap-x-2 */
    margin-left: 4px; /* ml-xs */
}

@media (min-width: 768px) {
    .social-container {
        gap: 11px; /* gap-x-[11px] */
    }
}

.social-link {
    width: 2.25rem; /* w-9 */
    height: 2.25rem; /* h-9 */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem; /* rounded-lg */
    border: 1px solid var(--outline-variant);
    background-color: var(--surface-container-lowest);
    transition: transform 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    color: inherit;
}

.social-link:hover {
    transform: scale(0.95);
}

.social-link.linkedin:hover {
    color: #0a66c2;
}

.social-link.instagram:hover .social-icon {
    fill: url(#instagram-gradient);
}

@media (min-width: 768px) {
    .social-link {
        width: 42px; /* w-[42px] */
        height: 42px; /* h-[42px] */
        border-radius: 11px; /* rounded-[11px] */
    }
}

.social-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: fill 0.2s ease;
}

@media (min-width: 768px) {
    .social-icon {
        width: 21px;
        height: 21px;
    }
}

/* Footer */
.footer {
    width: 100%;
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 96%;
    margin: 80px auto 0 auto; /* mt-xl */
    padding: 48px 16px; /* py-lg px-margin */
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 19px; /* text-label-md */
    letter-spacing: 0.05em;
    color: var(--secondary);
    border-top: 1px solid var(--footer-border);
}

@media (min-width: 768px) {
    .footer-container {
        flex-direction: row;
        justify-content: space-between;
    }
}

.copyright {
    margin-bottom: 24px; /* mb-md */
}

@media (min-width: 768px) {
    .copyright {
        margin-bottom: 0;
    }
}

/* Falling Word Effect */
.falling-word {
    display: inline-block;
    cursor: pointer;
}

.falling-word.is-falling {
    animation: fallAndReturn 4.5s linear forwards;
}

@keyframes fallAndReturn {
    0% {
        transform: translateY(0);
        opacity: 1;
        animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.19); /* ease-in */
    }
    20% {
        transform: translateY(100vh);
        opacity: 1;
    }
    20.1% {
        transform: translateY(-100vh);
        opacity: 0;
    }
    80% {
        transform: translateY(-100vh);
        opacity: 0;
    }
    80.1% {
        transform: translateY(-100vh);
        opacity: 1;
        animation-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1); /* ease-out */
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

