/* 1. Global Reset & Fonts */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* 2. Dark Theme Base */
body {
    background-color: #000000; /* Pure Black */
    color: #ffffff;            /* White Text */
    line-height: 1.6;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

body.page-enter {
    opacity: 0;
    transform: translateY(8px);
}

body.page-exit {
    opacity: 0;
    transform: translateY(-6px);
}

/* 3. Navigation Bar Styling */
.navbar {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: fixed; /* Keeps nav at top when scrolling */
    width: 100%;
    top: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.6); /* Increased transparency */
    backdrop-filter: blur(10px); /* The "frosted glass" effect */
    transition: background-color 0.25s ease, backdrop-filter 0.25s ease;
}

.navbar.scrolled {
    background-color: rgba(32, 32, 32, 0.7); /* Dark grey, still matte */
}

.logo {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.5px;
    line-height: 1.1;
    text-transform: uppercase;
}

.logo span {
    display: block;
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: row;
    gap: 30px;
    align-items: center;
}

.nav-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 14px;
}

.social-links {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.social-links a {
    display: inline-flex;
    width: 20px;
    height: 20px;
    color: #bbbbbb;
    opacity: 0.85;
    transition: color 0.2s ease, opacity 0.2s ease, transform 0.15s ease;
}

.social-links a:hover,
.social-links a:focus-visible {
    color: #ffffff;
    opacity: 1;
    transform: translateY(-1px);
}

.social-links svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.nav-links a {
    text-decoration: none;
    color: #888888; /* Grey color for links */
    transition: color 0.3s ease, transform 0.25s ease;
    font-size: 0.95rem;
    position: relative;
    display: inline-block;
    padding-bottom: 6px; /* Space for underline animation */
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.25s ease;
    opacity: 0.8;
}

.nav-links a:hover {
    color: #ffffff; /* Turns white on hover */
}

.nav-links a.active {
    color: #ffffff;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a.active::after {
    transform: scaleX(1);
}

.lang-toggle {
    margin-left: 12px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.06);
    color: #e6e6e6;
    font-size: 0.85rem;
    letter-spacing: 0.2px;
    text-decoration: none;
    backdrop-filter: blur(12px);
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.lang-toggle:hover,
.lang-toggle:focus-visible {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
    color: #ffffff;
    transform: translateY(-1px);
}

/* Push page content away from the fixed left navbar */
body {
    padding-left: 0;
    padding-top: 80px;
}

.footer {
    margin-top: 16px;
    background-color: rgba(20, 20, 20, 0.95);
    padding: 48px 40px 56px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 28px 36px;
}

.footer-column h4 {
    color: #777777;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-column ul {
    list-style: none;
    display: grid;
    gap: 8px;
}

.footer-column a {
    color: #d3d3d3;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease, transform 0.15s ease;
}

.footer-column a:hover,
.footer-column a:focus-visible {
    color: #ffffff;
    transform: translateX(2px);
}

.footer-bottom {
    grid-column: 1 / -1;
    text-align: center;
    color: #808080;
    font-size: 0.85rem;
    margin-top: 8px;
}

/* 4. Hero Section (Center of page) */
.hero-section {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    padding: 0 40px;
    gap: 16px;
}

.hero-copy {
    max-width: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
}

.hero-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}

.hero-text {
    flex: 1;
    min-width: 520px;
}

.typewriter {
    font-size: 2.8rem;
    font-weight: 600;
    letter-spacing: -1px;
    line-height: 1.2;
    min-height: 3.4rem;
}

.caret {
    display: inline-block;
    width: 2px;
    height: 1.05em;
    background-color: #ffffff;
    margin-left: 4px;
    vertical-align: -0.1em;
    animation: blink 1s steps(1) infinite;
}

.placeholder-line {
    font-size: 2.1rem;
    color: #dcdcdc;
    min-height: 2.6rem;
    min-width: 520px;
}

#placeholder-word {
    font-family: Georgia, "Times New Roman", serif;
    background-color: #0000ff;
    color: #ffffff;
    padding: 0 4px;
}

#placeholder-word:empty {
    background: none;
    padding: 0;
}

.hero-link {
    margin-top: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #b5b5b5;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.hero-link svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform: translateY(-1px);
}

.hero-link .link-icon {
    fill: currentColor;
    stroke: none;
    width: 14px;
    height: 14px;
    transform: translateY(1px);
    margin-right: 2px;
}
.hero-link:hover,
.hero-link:focus-visible {
    color: #ffffff;
}

.hero-links {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero-about {
    margin-top: 24px;
    color: #cfcfcf;
    line-height: 1.6;
    max-width: 640px;
}

.hero-side {
    flex: 1;
    max-width: 520px;
    display: grid;
    gap: 18px;
    color: #8d8d8d;
}

.side-block {
    display: grid;
    gap: 6px;
}

.side-title {
    font-weight: 700;
    color: #c4c4c4;
}

.side-sub {
    color: #7a7a7a;
}

.hero-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.hero-pill:hover,
.hero-pill:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.nav-resume {
    padding: 8px 14px;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.1;
    gap: 8px;
}

.pill-cta {
    display: inline-flex;
    align-items: center;
    position: relative;
    gap: 12px;
    margin-top: 24px;
    margin-left: auto;
    height: 52px;
    padding: 0 60px 0 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.2;
    border: 1px solid rgba(255, 255, 255, 0.14);
    transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.pill-cta:hover,
.pill-cta:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.pill-cta__icon {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #0000ff;
    flex-shrink: 0;
}

.pill-cta__icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #ffffff;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
@keyframes blink {
    0%, 50% { opacity: 1; }
    50.01%, 100% { opacity: 0; }
}

h1 {
    font-size: 4rem;
    font-weight: 600;
    letter-spacing: -2px; /* Tight spacing like OpenAI */
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.5rem;
    color: #888888;
}
