/* Modern Reset & Base Setup */
:root {
    --bg-dark: #060608;
    --bg-panel: rgba(20, 20, 24, 0.6);
    --bg-panel-hover: rgba(30, 30, 38, 0.7);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-hover: rgba(255, 255, 255, 0.15);

    --text-main: #f3f4f6;
    --text-muted: #9ca3af;

    --accent-primary: #38bdf8;
    /* vibrant cyan/blue */
    --accent-secondary: #818cf8;
    /* indigo */
    --accent-tertiary: #c084fc;
    /* purple */

    --radius-lg: 20px;
    --radius-md: 12px;
    --radius-sm: 8px;

    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    --shadow-subtle: 0 4px 20px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

/* Background Effects */
.bg-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float 20s infinite ease-in-out alternate;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-primary);
    top: -10%;
    left: -5%;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--accent-tertiary);
    bottom: 20%;
    right: -10%;
    animation-delay: -5s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: var(--accent-secondary);
    top: 40%;
    left: 40%;
    opacity: 0.2;
    animation-delay: -10s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, -50px) scale(1.1);
    }
}

.noise-overlay {
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="noiseFilter"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23noiseFilter)"/></svg>');
    opacity: 0.03;
    pointer-events: none;
}

/* Typography Utilities */
.gradient-text {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.text-accent {
    color: var(--accent-primary);
}

.text-muted {
    color: var(--text-muted);
}

.text-sm {
    font-size: 0.95rem;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

/* Layout */
.layout-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

/* Glassmorphism Panel base */
.glass-panel {
    background: var(--bg-panel);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    box-shadow: var(--shadow-subtle);
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
}

.avatar-container {
    width: 140px;
    height: 140px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.0));
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.avatar-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary));
    opacity: 0.1;
    z-index: 2;
    pointer-events: none;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.name {
    font-size: 2.2rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.contact-info {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 0.25rem;
}

.contact-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.contact-item i {
    color: var(--text-main);
    opacity: 0.7;
    width: 16px;
    text-align: center;
}

.contact-item:hover {
    color: var(--accent-primary);
}

.contact-item:hover i {
    color: var(--accent-primary);
    opacity: 1;
}

.sidebar-sections {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-bottom: 2rem;
}

.info-section h3 {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.4rem 0.75rem;
    border-radius: 100px;
    font-size: 0.8rem;
    transition: var(--transition);
}

.tag i {
    opacity: 0.7;
    transition: var(--transition);
}

.tag:hover {
    background: rgba(56, 189, 248, 0.1);
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.tag:hover i {
    opacity: 1;
}

.education-block h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.date-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    font-size: 0.75rem;
    margin-top: 0.5rem;
    color: var(--text-muted);
}



.sidebar-footer {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 1rem;
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.line-decorator {
    height: 1px;
    flex-grow: 1;
    background: linear-gradient(90deg, var(--border-color) 0%, transparent 100%);
}

.mt-xl {
    margin-top: 2rem;
}

/* Timeline */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.company-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, var(--bg-panel), transparent);
    border-right: none;
    padding: 1rem;
    border-radius: var(--radius-md);
}

.company-logo {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--text-main);
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.company-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
    /* So logos don't touch the edges */
    background: white;
    /* Clearbit PNGs are often transparent and meant for white backgrounds */
    border-radius: inherit;
}

.company-info h3 {
    font-size: 1.5rem;
}

.company-location {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

.timeline-items {
    position: relative;
    padding-left: 2rem;
}

.timeline-items::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--border-color), transparent);
}

.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: -2rem;
    top: 0.5rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 2px solid var(--accent-primary);
    transform: translateX(-3px);
    transition: var(--transition);
}

.interactive-card {
    background: transparent;
    border: 1px solid transparent;
    padding: 1rem;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.interactive-card:hover {
    background: var(--bg-panel);
    border-color: var(--border-color-hover);
    transform: translateX(10px);
}

.interactive-card:hover .timeline-dot {
    background: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-primary);
}

.job-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.job-title {
    font-size: 1.25rem;
    color: var(--text-main);
}

.job-date {
    font-size: 0.85rem;
    color: var(--accent-primary);
    background: rgba(56, 189, 248, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    white-space: nowrap;
}

.job-company {
    font-weight: 500;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.job-achievements {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

.job-achievements li {
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.6;
}

.job-achievements li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: var(--transition);
}

.interactive-card:hover .job-achievements li::before {
    background: var(--accent-tertiary);
}

/* Custom Cursor Glow */
#cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 9999;
    transition: width 0.3s, height 0.3s;
    mix-blend-mode: screen;
}

/* Responsive */
@media (max-width: 1024px) {
    .layout-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .sidebar {
        position: relative;
        top: 0;
        height: auto;
    }

    .sidebar-sections {
        overflow-y: visible;
        padding-bottom: 0;
    }
}

@media (max-width: 768px) {
    .layout-container {
        padding: 2rem 1.5rem;
    }

    .job-header {
        flex-direction: column;
        gap: 0.5rem;
    }

    .name {
        font-size: 2rem;
    }

    .interactive-card:hover {
        transform: none;
        /* Disable transform on mobile */
    }
}