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

:root {
    --primary: #1a1a2e;
    --accent: #0f9b8e;
    --accent-light: #16c4b4;
    --text: #e0e0e0;
    --text-muted: #9ca3af;
    --bg: #0f0f1a;
    --card-bg: #1a1a2e;
    --card-bg-light: #22223a;
    --border: rgba(255, 255, 255, 0.06);
    --shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    --radius: 16px;
    --radius-sm: 8px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* === Card Container === */
.card-container {
    width: 100%;
    max-width: 720px;
    perspective: 1200px;
}

.card {
    position: relative;
    width: 100%;
    border-radius: var(--radius);
    background: var(--card-bg);
    box-shadow: var(--shadow);
    overflow: hidden;
    animation: cardEntrance 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
    transform: translateY(30px);
}

@keyframes cardEntrance {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-inner {
    position: relative;
}

/* === Header === */
.card-header {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    padding: 2.5rem 2.5rem 2rem;
    background: linear-gradient(135deg, var(--card-bg) 0%, #1e2a4a 100%);
    border-bottom: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.card-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(15, 155, 142, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.photo-wrapper {
    flex-shrink: 0;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    padding: 3px;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    box-shadow: 0 0 30px rgba(15, 155, 142, 0.25);
    position: relative;
    z-index: 1;
}

.photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.header-text {
    position: relative;
    z-index: 1;
}

.header-text h1 {
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.2rem;
    background: linear-gradient(135deg, #fff 0%, #cdd6f4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-text .title {
    font-size: 1rem;
    font-weight: 500;
    color: var(--accent-light);
    margin-bottom: 0.25rem;
}

.header-text .tagline {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* === Card Body === */
.card-body {
    padding: 2rem 2.5rem;
}

.card-body section {
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.card-body section.visible {
    opacity: 1;
    transform: translateY(0);
}

.card-body section:last-child {
    margin-bottom: 0;
}

h2 {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

h2::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border), transparent);
}

/* === About === */
.about p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* === Skills === */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    padding: 0.35rem 0.8rem;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 500;
    background: rgba(15, 155, 142, 0.1);
    color: var(--accent-light);
    border: 1px solid rgba(15, 155, 142, 0.2);
    transition: all 0.25s ease;
    cursor: default;
}

.tag:hover {
    background: rgba(15, 155, 142, 0.2);
    border-color: rgba(15, 155, 142, 0.4);
    transform: translateY(-1px);
}

/* === Timeline (Experience) === */
.timeline {
    position: relative;
    padding-left: 1rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.5rem;
    bottom: 0.5rem;
    width: 2px;
    background: linear-gradient(180deg, var(--accent), transparent);
    border-radius: 2px;
}

.timeline-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.25rem;
    position: relative;
    padding-left: 1rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -1rem;
    top: 0.45rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--card-bg);
    box-shadow: 0 0 0 2px var(--accent);
}

.timeline-item .year {
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    min-width: 70px;
    padding-top: 0.15rem;
}

.timeline-content h3 {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.15rem;
}

.timeline-content .company {
    font-size: 0.78rem;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 0.3rem;
}

.timeline-content .description {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* === Education === */
.edu-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.edu-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.edu-item .year {
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    min-width: 70px;
    padding-top: 0.15rem;
}

.edu-item h3 {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.1rem;
}

.edu-item .company {
    font-size: 0.78rem;
    color: var(--accent);
    font-weight: 500;
}

/* === Interests === */
.interest-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.interest {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.9rem;
    border-radius: var(--radius-sm);
    background: var(--card-bg-light);
    font-size: 0.82rem;
    color: var(--text-muted);
    border: 1px solid var(--border);
    transition: all 0.25s ease;
    cursor: default;
}

.interest:hover {
    color: var(--text);
    border-color: rgba(15, 155, 142, 0.3);
    transform: translateY(-1px);
}

/* === Footer === */
.card-footer {
    padding: 1.5rem 2.5rem;
    border-top: 1px solid var(--border);
    background: rgba(0, 0, 0, 0.15);
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.25s ease;
}

a.contact-link:hover {
    color: var(--accent-light);
}

.icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* === Scroll Hint === */
.scroll-hint {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    opacity: 0.6;
    transition: opacity 0.5s ease;
    pointer-events: none;
    animation: bounce 2s infinite;
}

.scroll-hint.hidden {
    opacity: 0;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-6px); }
    60% { transform: translateX(-50%) translateY(-3px); }
}

/* === Responsive === */
@media (max-width: 600px) {
    body {
        padding: 1rem 0.5rem;
    }

    .card-header {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem 1.5rem;
        gap: 1rem;
    }

    .photo-wrapper {
        width: 90px;
        height: 90px;
    }

    .header-text h1 {
        font-size: 1.5rem;
    }

    .card-body {
        padding: 1.5rem;
    }

    .timeline-item {
        flex-direction: column;
        gap: 0.3rem;
    }

    .edu-item {
        flex-direction: column;
        gap: 0.3rem;
    }

    .card-footer {
        padding: 1.25rem 1.5rem;
    }

    .contact-info {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
}

@media (max-width: 400px) {
    .header-text h1 {
        font-size: 1.3rem;
    }

    .skill-tags {
        gap: 0.35rem;
    }

    .tag {
        font-size: 0.72rem;
        padding: 0.25rem 0.6rem;
    }
}
