/* ==================================================
   📄 PROFESSIONAL CV STYLES (cv.css)
   ================================================== */

:root {
    --cv-bg: #0f172a;
    --cv-card-bg: #1e293b;
    --cv-accent: #6366f1;
    --cv-text-main: #f1f5f9;
    --cv-text-muted: #94a3b8;
    --cv-border: rgba(255, 255, 255, 0.1);
}

body {
    background-color: var(--bg-dark);
    /* Fallback/Base */
    color: var(--cv-text-main);
}

/* Page Container - Full Website Layout */
.cv-page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 2rem 4rem;
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 5rem;
    position: relative;
}

/* --------------------------------------------------
   SIDEBAR (LEFT) - FIXED/STICKY
   -------------------------------------------------- */
.cv-sidebar {
    position: sticky;
    top: 7rem;
    height: fit-content;
    background: transparent;
    border-right: 1px solid var(--cv-border);
    padding-right: 2rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
    text-align: left;
}

.cv-profile-img {
    width: 180px;
    height: 180px;
    border-radius: 24px;
    /* More modern than 50% circle */
    object-fit: cover;
    border: 2px solid var(--cv-accent);
    margin-bottom: 1rem;
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.4), -20px -20px 60px rgba(255, 255, 255, 0.02);
}

.cv-contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    font-size: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--cv-text-muted);
    transition: color 0.3s;
}

.contact-item:hover {
    color: white;
}

.contact-item i {
    color: var(--cv-accent);
    width: 24px;
    font-size: 1.1rem;
    text-align: center;
    background: rgba(99, 102, 241, 0.1);
    padding: 8px;
    border-radius: 8px;
    box-sizing: content-box;
}

.sidebar-section h3 {
    color: white;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.cv-tag {
    background: rgba(15, 23, 42, 0.6);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--cv-text-muted);
    border: 1px solid var(--cv-border);
    transition: all 0.2s ease;
}

.cv-tag:hover {
    border-color: var(--cv-accent);
    color: white;
    transform: translateY(-2px);
    background: rgba(99, 102, 241, 0.1);
}

/* --------------------------------------------------
   MAIN CONTENT (RIGHT)
   -------------------------------------------------- */
.cv-main {
    padding: 0;
}

/* Premium Header */
.cv-header-name h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(165, 180, 252, 0.2));
}

.cv-header-name .role {
    font-size: 1.1rem;
    color: var(--cv-accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 50px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* Enhanced Section Titles */
.cv-section-title {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.cv-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--cv-accent);
    box-shadow: 0 0 15px var(--cv-accent);
    border-radius: 3px;
}

.cv-section-title i {
    font-size: 1.8rem;
    color: var(--cv-accent);
    background: rgba(99, 102, 241, 0.1);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.cv-section-title h2 {
    font-size: 2rem;
    color: white;
    font-weight: 700;
}

/* Glowing Skill Tags */
.cv-tag {
    background: rgba(15, 23, 42, 0.6);
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    font-size: 0.9rem;
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cv-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.cv-tag:hover {
    border-color: var(--cv-accent);
    color: white;
    transform: translateY(-3px) scale(1.05);
    background: rgba(99, 102, 241, 0.15);
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.2);
}

.cv-tag:hover::before {
    transform: translateX(100%);
}

/* Timeline/Experience Wrappers */
.timeline-wrapper {
    position: relative;
    border-left: 2px solid var(--cv-border);
    padding-left: 2.5rem;
    margin-left: 0.8rem;
    /* Offset to align with title icon */
}

/* Interactive Timeline Items */
.cv-experience-item {
    margin-bottom: 3rem;
    position: relative;
    padding: 1.5rem;
    border-radius: 12px;
    background: transparent;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid transparent;
}

.cv-experience-item:last-child {
    margin-bottom: 0;
}

.cv-experience-item:hover {
    background: rgba(255, 255, 255, 0.03);
    transform: translateX(10px);
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* Dots removed as requested */

/* Sidebar Interactivity */
.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--cv-text-muted);
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
}

.contact-item:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(5px);
}

.cv-profile-img {
    width: 180px;
    height: 180px;
    border-radius: 24px;
    object-fit: cover;
    border: 2px solid var(--cv-accent);
    margin-bottom: 1rem;
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.4), -20px -20px 60px rgba(255, 255, 255, 0.02);
    transition: transform 0.5s ease;
}

.cv-profile-img:hover {
    transform: scale(1.05) rotate(2deg);
    border-color: white;
}

.cv-job-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 0.5rem;
    /* Adjust line-height to align with dot */
    min-height: 1rem;
}

.cv-job-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    line-height: 1.1;
}

.cv-job-date {
    font-size: 0.9rem;
    color: var(--cv-accent);
    font-weight: 600;
}

.cv-company {
    font-size: 1rem;
    color: var(--cv-text-muted);
    margin-bottom: 1rem;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cv-description {
    color: #cbd5e1;
    line-height: 1.7;
    font-size: 0.95rem;
}

@media (max-width: 900px) {
    .cv-page-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 6rem 1.5rem 2rem;
    }

    .cv-sidebar {
        /* On mobile, sidebar is not sticky, just stacked */
        position: relative;
        top: 0;
        border-right: none;
        border-bottom: 1px solid var(--cv-border);
        padding-bottom: 2rem;
        padding-right: 0;
        margin-bottom: 2rem;
    }

    .cv-profile-img {
        width: 120px;
        height: 120px;
    }
}