/* ===== Reset & Base ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0f0a1e;
    --bg-secondary: #161030;
    --bg-card: rgba(255, 255, 255, 0.04);
    --bg-card-hover: rgba(255, 255, 255, 0.08);
    --accent: #c8415b;
    --accent-light: #e05570;
    --accent-dark: #9e2e45;
    --gold: #d4a44a;
    --gold-light: #e8c06a;
    --cream: #f0e0c8;
    --purple-deep: #3d2266;
    --text-primary: #f5f0ff;
    --text-secondary: #bfaed4;
    --text-muted: #8878a0;
    --border: rgba(200, 65, 91, 0.18);
    --border-hover: rgba(200, 65, 91, 0.4);
    --shadow-accent: rgba(200, 65, 91, 0.3);
    --font-body: 'Inter', sans-serif;
    --font-display: 'Bricolage Grotesque', 'Inter', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
}

strong {
    color: var(--accent-light);
    font-weight: 600;
}

/* ===== Background Effects ===== */
.bg-mesh {
    position: fixed;
    inset: 0;
    z-index: -3;
    background:
        radial-gradient(ellipse 80% 60% at 20% 20%, rgba(200, 65, 91, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 80% 80%, rgba(61, 34, 102, 0.2) 0%, transparent 60%),
        radial-gradient(ellipse 50% 50% at 50% 50%, rgba(212, 164, 74, 0.06) 0%, transparent 60%);
    animation: meshShift 12s ease-in-out infinite alternate;
}

@keyframes meshShift {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.05) translate(-1%, 2%); }
}

.bg-noise {
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    pointer-events: none;
}

.orb {
    position: fixed;
    border-radius: 50%;
    z-index: -2;
    filter: blur(80px);
    pointer-events: none;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(200, 65, 91, 0.15), transparent 70%);
    top: -10%;
    left: -5%;
    animation: orbFloat1 18s linear infinite;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 164, 74, 0.1), transparent 70%);
    bottom: 10%;
    right: -5%;
    animation: orbFloat2 22s linear infinite;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(240, 224, 200, 0.06), transparent 70%);
    top: 40%;
    left: 50%;
    animation: orbFloat3 25s linear infinite;
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(60px, 80px); }
    50% { transform: translate(-30px, 120px); }
    75% { transform: translate(40px, 40px); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0); }
    25% { transform: translate(-50px, -60px); }
    50% { transform: translate(40px, -100px); }
    75% { transform: translate(-70px, -30px); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(80px, -60px); }
    66% { transform: translate(-60px, 40px); }
}

/* ===== Animations ===== */
.anim {
    opacity: 0;
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: var(--delay, 0s);
}

.anim.fade-up {
    transform: translateY(40px);
}

.anim.fade-left {
    transform: translateX(-40px);
}

.anim.fade-right {
    transform: translateX(40px);
}

.anim.visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 24px;
    position: relative;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.avatar-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 16px;
}

.avatar-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(var(--accent), var(--gold), var(--cream), var(--accent));
    animation: ringRotate 4s linear infinite;
}

@keyframes ringRotate {
    to { transform: rotate(360deg); }
}

.avatar-img {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    z-index: 1;
    border: 3px solid var(--bg-primary);
}

.avatar-fallback {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 800;
    color: var(--accent-light);
    z-index: 1;
}

.hero-name {
    font-family: var(--font-display);
    font-size: clamp(56px, 10vw, 110px);
    font-weight: 800;
    letter-spacing: -3px;
    line-height: 1;
    background: linear-gradient(135deg, var(--text-primary), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-handle {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 500;
}

.hero-role {
    font-size: 20px;
    font-weight: 600;
    color: var(--accent-light);
    display: flex;
    align-items: center;
    gap: 10px;
}

.dot-badge {
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    display: inline-block;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
    50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
}

.hero-tagline {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
    box-shadow: 0 4px 24px var(--shadow-accent);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px var(--shadow-accent);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-hover);
    transform: translateY(-3px);
}

/* ===== Scroll Hint ===== */
.scroll-hint {
    position: absolute;
    bottom: 40px;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
    animation: scrollBob 2s ease-in-out infinite;
}

@keyframes scrollBob {
    0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.5; }
    50% { transform: rotate(45deg) translate(5px, 5px); opacity: 1; }
}

/* ===== Stats Bar ===== */
.stats-bar {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
}

.stats-bar .container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 24px;
}

.stat {
    text-align: center;
}

.stat-value {
    display: block;
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 800;
    color: var(--accent-light);
    letter-spacing: -1px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ===== Section Titles ===== */
.section-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 6vw, 56px);
    font-weight: 800;
    text-align: center;
    margin-bottom: 48px;
    letter-spacing: -2px;
    background: linear-gradient(135deg, var(--text-primary), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-top: -36px;
    margin-bottom: 48px;
    font-size: 16px;
}

.section-halo {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(200, 65, 91, 0.06), transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* ===== Quote Section ===== */
.quote-section {
    padding: 80px 0;
}

.quote-block {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.quote-mark {
    font-size: 80px;
    color: var(--accent-dark);
    line-height: 1;
    display: block;
    opacity: 0.5;
}

.quote-text {
    font-size: 22px;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.7;
    font-style: italic;
    margin-bottom: 24px;
}

.quote-author {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.quote-name {
    font-weight: 700;
    color: var(--accent-light);
    font-size: 16px;
}

.quote-title {
    font-size: 13px;
    color: var(--text-muted);
}

/* ===== About Section ===== */
.about-section {
    padding: 90px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.about-text p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 18px;
    line-height: 1.8;
}

.about-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.mini-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    transition: all 0.3s ease;
}

.mini-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(200, 65, 91, 0.1);
}

.mini-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: rgba(200, 65, 91, 0.1);
    border: 1px solid rgba(200, 65, 91, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-light);
    margin-bottom: 12px;
}

.mini-card h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.mini-card p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== Roles & Projects Section ===== */
.roles-section {
    padding: 90px 0;
}

.title-accent {
    -webkit-text-fill-color: var(--accent-light);
}

.roles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.role-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 20px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.3s ease;
}

.role-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(200, 65, 91, 0.1);
}

.role-ico {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 11px;
    background: rgba(200, 65, 91, 0.1);
    border: 1px solid rgba(200, 65, 91, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-light);
    transition: all 0.3s ease;
}

.role-card:hover .role-ico {
    background: rgba(200, 65, 91, 0.2);
    border-color: var(--accent-light);
}

.role-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.role-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.role-sub {
    font-size: 11px;
    color: var(--text-muted);
}

/* ===== Skills Section ===== */
.skills-section {
    padding: 90px 0;
}

.skills-grid {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 600;
}

.skill-pct {
    color: var(--accent-light);
}

.skill-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 100px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent), var(--gold));
    border-radius: 100px;
    transition: width 1.2s ease;
}

.skill-fill.animate {
    width: var(--width);
}

/* ===== Tags ===== */
.tags-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 48px;
}

.tag {
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
}

.tag-crimson {
    background: rgba(200, 65, 91, 0.12);
    color: var(--accent-light);
    border: 1px solid rgba(200, 65, 91, 0.25);
}

.tag-gold {
    background: rgba(212, 164, 74, 0.12);
    color: var(--gold-light);
    border: 1px solid rgba(212, 164, 74, 0.25);
}

.tag-cream {
    background: rgba(240, 224, 200, 0.1);
    color: var(--cream);
    border: 1px solid rgba(240, 224, 200, 0.2);
}

/* ===== Timeline Section ===== */
.timeline-section {
    padding: 90px 0;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-dark), var(--gold), var(--accent-dark));
    opacity: 0.4;
}

.timeline-item {
    position: relative;
    margin-bottom: 32px;
}

.timeline-dot {
    position: absolute;
    left: -33px;
    top: 24px;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border-radius: 50%;
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 0 3px rgba(200, 65, 91, 0.3);
}

.timeline-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    transition: all 0.3s ease;
}

.timeline-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.timeline-date {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-light);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.timeline-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 6px 0 10px;
}

.timeline-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== Advantages Section ===== */
.advantages-section {
    padding: 90px 0;
}

.advantages-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.adv-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px;
    transition: all 0.3s ease;
}

.adv-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(200, 65, 91, 0.1);
}

.adv-icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    background: rgba(200, 65, 91, 0.1);
    border: 1px solid rgba(200, 65, 91, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-light);
    margin-bottom: 16px;
}

.adv-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.adv-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 90px 0;
}

.cta-box {
    background: linear-gradient(135deg, rgba(200, 65, 91, 0.15), rgba(61, 34, 102, 0.15));
    border: 1px solid rgba(200, 65, 91, 0.3);
    border-radius: 28px;
    padding: 64px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 40%, rgba(200, 65, 91, 0.08), transparent 50%);
    pointer-events: none;
}

.cta-box h2 {
    font-family: var(--font-display);
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1.5px;
    position: relative;
}

.cta-box p {
    font-size: 16px;
    color: var(--text-secondary);
    max-width: 550px;
    margin: 0 auto 32px;
    line-height: 1.7;
    position: relative;
}

.cta-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    position: relative;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(200, 65, 91, 0.15);
    color: var(--accent-light);
}

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

.social-link:hover svg {
    opacity: 1;
}

/* ===== Footer ===== */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .roles-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .hero-name {
        letter-spacing: -2px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
    }

    .roles-grid {
        grid-template-columns: 1fr 1fr;
    }

    .about-cards {
        grid-template-columns: 1fr;
    }

    .stats-bar .container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .cta-box {
        padding: 40px 24px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .timeline {
        padding-left: 32px;
    }

    .timeline-dot {
        left: -25px;
    }

    .timeline::before {
        left: 7px;
    }
}
