:root {
    --bg-color: #000000;
    --acc-color: #ededed;
    --muted-color: #888888;

    --border-color: rgba(255, 255, 255, 0.1);
    --border-glow: rgba(255, 255, 255, 0.15);
    --surface-color: rgba(10, 10, 10, 0.5);
    --surface-hover: rgba(20, 20, 20, 0.8);

    --glow-cyan: rgba(0, 212, 255, 0.15);
    --glow-emerald: rgba(16, 185, 129, 0.15);

    --font-sans: 'Satoshi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --max-width: 1000px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-color);
}

body {
    background-color: transparent;
    color: var(--acc-color);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* BACKGROUND GRID AND VERCEL GLOW */
.background-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: linear-gradient(to bottom, black 20%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 20%, transparent 100%);
    z-index: -2;
    pointer-events: none;
}

.background-glow {
    position: fixed;
    top: -30%;
    left: 50%;
    transform: translateX(-50%);
    width: 60vw;
    height: 60vh;
    background: radial-gradient(circle, var(--glow-cyan) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    filter: blur(80px);
}

/* UTILS */
.text-muted {
    color: var(--muted-color);
    font-size: 0.95rem;
}

.hidden {
    display: none !important;
}

.muted {
    color: var(--muted-color);
    font-weight: 500;
}

/* MAIN CONTAINER */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 5%;
}

/* NAVBAR */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.6);
}

.nav-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}

.lang-toggle {
    display: flex;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 0.2rem;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--muted-color);
    padding: 0.3rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    border-radius: 999px;
    transition: all 0.2s ease;
}

.lang-btn.active {
    background: var(--acc-color);
    color: #000;
}

.lang-btn:not(.active):hover {
    color: var(--acc-color);
}

/* VERCEL HERO */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    min-height: 80vh;
    padding: 2rem 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-size: 0.85rem;
    color: var(--muted-color);
    margin-bottom: 2rem;
    backdrop-filter: blur(8px);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    50% {
        opacity: 0.4;
    }
}

.hero-title {
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    max-width: 800px;
}

.hero-title span {
    display: block;
}

.gradient-text {
    background: linear-gradient(180deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--muted-color);
    max-width: 600px;
    margin-bottom: 2.5rem;
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.8rem 1.6rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-primary {
    background: var(--acc-color);
    color: #000;
}

.btn-primary:hover {
    background: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(255, 255, 255, 0.2);
}

.btn-primary svg {
    transition: transform 0.2s ease;
}

.btn-primary:hover svg {
    transform: translateX(3px);
}

.btn-secondary {
    background: transparent;
    color: var(--acc-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ABOUT METRICS */
.about-section {
    margin-bottom: 8rem;
}

.grid-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.5) 0%, rgba(10, 10, 10, 0.5) 100%);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--border-glow);
    transform: translateY(-2px);
    background: linear-gradient(180deg, rgba(30, 30, 30, 0.5) 0%, rgba(15, 15, 15, 0.5) 100%);
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover .card-glow {
    opacity: 1;
}

.card-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--acc-color);
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* MARQUEE SECTION */
.marquee-section {
    margin-bottom: 8rem;
    text-align: center;
    overflow: hidden;
}

.marquee-title {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.marquee-container {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    display: flex;
    flex-wrap: nowrap;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    gap: 2rem;
}

.marquee-content {
    display: flex;
    flex-wrap: nowrap;
    gap: 2rem;
    flex-shrink: 0;
    min-width: max-content;
    animation: marquee-scroll 20s linear infinite;
    padding: 0.5rem 0;
}

@keyframes marquee-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(calc(-100% - 2rem));
    }
}

.tech-pill {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.5rem 1.2rem;
    border-radius: 999px;
    font-size: 0.9rem;
    color: var(--muted-color);
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.tech-pill:hover {
    color: var(--acc-color);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

/* TIMELINE SECTION */
.timeline-section {
    margin-bottom: 8rem;
    scroll-margin-top: 100px;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent);
}

.timeline-item {
    position: relative;
    padding-bottom: 3rem;
    padding-left: 2rem;
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -24px;
    top: 0;
    width: 10px;
    height: 10px;
    background: #000;
    border: 2px solid var(--acc-color);
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 0 10px var(--glow-cyan);
}

.timeline-date {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--muted-color);
    margin-bottom: 0.5rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
}

.timeline-content h4 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* PROJECTS */
.projects-section {
    margin-bottom: 8rem;
    scroll-margin-top: 100px;
}

.section-header {
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    color: inherit;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    min-height: 200px;
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
}

.project-card:hover {
    background: var(--surface-hover);
    border-color: rgba(255, 255, 255, 0.15);
}

.project-top h3 {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.project-meta {
    margin-top: 2rem;
    font-size: 0.8rem;
    color: var(--muted-color);
}

.web-badge {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--acc-color);
    padding: 0.1rem 0.6rem;
    border-radius: 999px;
    font-size: 0.70rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.05);
}

.skeleton-card {
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    height: 200px;
    animation: skeleton-breath 2s infinite ease;
}

@keyframes skeleton-breath {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

/* LINKS */
.links-section {
    margin-bottom: 6rem;
    scroll-margin-top: 100px;
}

.links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.link-item {
    text-decoration: none;
    color: var(--acc-color);
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 0.8rem 1.6rem;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.2s ease;
    backdrop-filter: blur(8px);
}

.link-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

/* CTA SECTION */
.cta-section {
    margin-top: 4rem;
    margin-bottom: 8rem;
    display: flex;
    justify-content: center;
}

.cta-card {
    position: relative;
    background: linear-gradient(180deg, rgba(20, 20, 20, 0.4) 0%, rgba(5, 5, 5, 0.8) 100%);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
    width: 100%;
    max-width: 800px;
    overflow: hidden;
    backdrop-filter: blur(12px);
}

.cta-glow {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 100px;
    background: var(--glow-emerald);
    filter: blur(40px);
    border-radius: 50%;
    pointer-events: none;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.cta-card p {
    font-size: 1.1rem;
    max-width: 500px;
    margin: 0 auto 2.5rem;
    line-height: 1.5;
}

.cta-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* FOOTER */
footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 5%;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted-color);
    font-size: 0.9rem;
}

.footer-right .dot-separator {
    display: inline-block;
    width: 4px;
    height: 4px;
    background: var(--muted-color);
    border-radius: 50%;
    opacity: 0.5;
    margin: 0 0.5rem;
    vertical-align: middle;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .grid-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .footer-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ANIMATIONS */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}