:root {
    --primary: #3b82f6;
    --primary-light: #60a5fa;
    --primary-dark: #2563eb;
    --accent: #8b5cf6;
    --accent-light: #a78bfa;
    --background: #0a0a0f;
    --surface: #12121a;
    --surface-light: #1a1a24;
    --surface-hover: #22222e;
    --text: #f1f5f9;
    --text-secondary: #94a3b8;
    --muted: #64748b;
    --border: #1e293b;
    --border-light: #334155;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-light: 0 4px 16px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.15);
    --transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --max-width: 900px;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--background);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-image: 
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59, 130, 246, 0.15), transparent),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(139, 92, 246, 0.1), transparent),
        url('background.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-blend-mode: overlay;
}

/* ---- Layout ---- */
.page {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 80px 32px;
}

/* ---- Header / Nav ---- */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 100px;
    padding-bottom: 24px;
}

.brand {
    font-family: 'Inter', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.5px;
    text-decoration: none;
    background: linear-gradient(135deg, var(--text) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}



nav {
    display: flex;
    gap: 4px;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    border: 1px solid transparent;
    position: relative;
    overflow: hidden;
}

nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    opacity: 0;
    transition: opacity var(--transition);
}

nav a:hover::before {
    opacity: 1;
}

nav a:hover {
    color: var(--text);
    border-color: var(--border-light);
    transform: translateY(-1px);
}

/* ---- Sections ---- */
section {
    margin-bottom: 100px;
}

h1, h2, h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.5px;
}

h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: var(--text);
    line-height: 1.2;
}

h2 {
    font-size: 2rem;
    margin-bottom: 2.5rem;
    color: var(--text);
    font-weight: 700;
    position: relative;
    display: inline-block;
}



h3 {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.8;
}

/* ---- Hero ---- */
.hero {
    padding: 40px 0 60px;
    text-align: center;
}

.hero-image-wrapper {
    width: 160px;
    height: 160px;
    margin: 0 auto 32px;
    border-radius: 50%;
    background: var(--surface);
    border: 3px solid var(--border);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    font-size: 0.85rem;
    box-shadow: var(--shadow-glow);
    position: relative;
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    z-index: -1;
    opacity: 0.5;
}

.hero-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--text) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .location {
    font-size: 1rem;
    color: var(--muted);
    font-weight: 500;
    margin-bottom: 1rem;
}

.hero .tagline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 2.5rem;
}

/* ---- Buttons ---- */
.button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 14px 32px;
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition);
    border: 1px solid transparent;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.3);
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
}

.button-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    box-shadow: none;
}

.button-outline:hover {
    border-color: var(--primary);
    color: var(--text);
    background: var(--surface-hover);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.2);
}

/* ---- Opportunities ---- */
.opportunities {
    padding: 20px 0 60px;
}

.opportunities-content {
    margin: 0 auto;
    padding: 32px 36px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
}

.opportunities p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 0.85rem;
}

.opportunities p:last-child {
    margin-bottom: 0;
}

.opportunities-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition);
}

.opportunities-cta:hover {
    color: var(--text);
    transform: translateX(4px);
}

/* ---- Resume ---- */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.timeline-item {
    padding: 28px 32px;
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.timeline-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity var(--transition);
}

.timeline-item:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.timeline-item:hover::before {
    opacity: 1;
}

.timeline-item .role {
    font-weight: 700;
    color: var(--text);
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.timeline-item .company {
    color: var(--primary);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 8px;
}

.timeline-item .period {
    color: var(--muted);
    font-size: 0.85rem;
    margin-bottom: 8px;
    font-family: 'SF Mono', 'Consolas', 'Monaco', 'Courier New', monospace;
}

.timeline-item-header + ul {
    margin-bottom: 64px;
}

.timeline-item li {
    margin-bottom: 3px;
}

.timeline-item-header:last-of-type + ul {
    margin-bottom: 0;
}

.timeline-item-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 8px;
    margin-top: 32px;
}

.timeline-item-header:first-child {
    margin-top: 0;
}

.company-date {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
}

.timeline-item .role {
    margin-bottom: 0;
}

.timeline-item .company {
    margin-bottom: 0;
}

.timeline-item .period {
    margin-bottom: 0;
}

.timeline-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.timeline-item li {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 6px;
    padding-left: 20px;
}

.skills-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.skill-tag {
    padding: 8px 18px;
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition);
}

.skill-tag:hover {
    border-color: var(--primary);
    color: var(--text);
    background: var(--surface-hover);
    transform: translateY(-1px);
}

.values-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.value-tag {
    padding: 8px 18px;
    background: linear-gradient(135deg, var(--surface-light), var(--surface));
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition);
}

.value-tag:hover {
    border-color: var(--accent);
    color: var(--text);
    transform: translateY(-1px);
}

/* ---- Highlights Gallery ---- */
.post-grid {
    columns: 3;
    column-gap: 20px;
    margin-top: 1.5rem;
}

.gallery-item {
    break-inside: avoid;
    display: block;
    margin-bottom: 20px;
    border-radius: var(--radius);
    overflow: hidden;
    text-decoration: none;
    border: 1px solid var(--border);
    transition: all var(--transition);
    position: relative;
}

.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--border-light);
}

.gallery-item img {
    width: 100%;
    display: block;
    border-radius: var(--radius);
    transition: transform var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .post-grid {
        columns: 2;
        column-gap: 16px;
    }
}

@media (max-width: 480px) {
    .post-grid {
        columns: 1;
    }
}

/* ---- Footer ---- */
footer {
    margin-top: 100px;
    padding-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition);
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-secondary);
}

.social-link:hover {
    transform: translateY(-2px);
    color: var(--text);
    box-shadow: var(--shadow-light);
}

.social-link svg {
    flex-shrink: 0;
}

.social-link.x:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.social-link.linkedin:hover {
    background: rgba(10, 102, 194, 0.15);
    border-color: rgba(10, 102, 194, 0.4);
}

.social-link.email:hover {
    background: rgba(96, 165, 250, 0.15);
    border-color: rgba(96, 165, 250, 0.3);
}

.copyright {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
    .page {
        padding: 60px 24px;
    }

    header {
        margin-bottom: 80px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .post-grid {
        columns: 2;
        column-gap: 16px;
    }

    nav a {
        font-size: 0.85rem;
        padding: 8px 16px;
    }

    .timeline-item {
        padding: 24px 28px;
    }

    .timeline-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .separator-horizontal {
        display: none;
    }

    h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .page {
        padding: 40px 20px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .post-grid {
        columns: 1;
    }

    header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .brand {
        font-size: 1.5rem;
    }

    nav {
        width: 100%;
    }

    nav a {
        flex: 1;
        text-align: center;
    }

    footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .hero-image-wrapper {
        width: 140px;
        height: 140px;
    }

    .button {
        width: 100%;
        justify-content: center;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .timeline-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .separator-horizontal {
        display: none;
    }
}

/* ---- Animations ---- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero, .timeline-item, .gallery-item {
    animation: fadeIn 0.6s ease-out;
}

.timeline-item:nth-child(2) {
    animation-delay: 0.1s;
}

.timeline-item:nth-child(3) {
    animation-delay: 0.2s;
}

.timeline-item:nth-child(4) {
    animation-delay: 0.3s;
}

.gallery-item:nth-child(2) {
    animation-delay: 0.1s;
}

.gallery-item:nth-child(3) {
    animation-delay: 0.2s;
}

.gallery-item:nth-child(4) {
    animation-delay: 0.3s;
}
