:root {
    --bg-base: #f4f5f6;
    /* Stark off-white background */
    --grid-line: rgba(0, 0, 0, 0.06);
    --border-color: #cbd5e1;
    /* Slightly darker for sharper contrast */

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #94a3b8;

    --brand-primary: #2563eb;
    /* Premium Cobalt Blue replacing Orange */
    --brand-primary-hover: #1d4ed8;
    --brand-accent: #3b82f6;

    --card-bg: #ffffff;
    --card-hover: #fafafa;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

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

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    /* Richer background grid */
    background-image:
        linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
    background-size: 32px 32px;
}

@keyframes slideUpFade {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-up {
    animation: slideUpFade 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.animate-delay-1 {
    animation-delay: 0.1s;
}

.animate-delay-2 {
    animation-delay: 0.2s;
}

.animate-delay-3 {
    animation-delay: 0.3s;
}

.display-text {
    font-family: 'VT323', monospace;
    font-size: 6rem;
    line-height: 0.85;
    letter-spacing: -2px;
    text-transform: uppercase;
    color: var(--text-primary);
}

h1,
h2,
h3,
h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
}

/* Structural Borders */
.frame-border {
    border: 1px solid var(--border-color);
}

.b-bottom {
    border-bottom: 1px solid var(--border-color);
}

.b-top {
    border-top: 1px solid var(--border-color);
}

.b-right {
    border-right: 1px solid var(--border-color);
}

.b-left {
    border-left: 1px solid var(--border-color);
}

/* Main Container Frame */
.app-container {
    max-width: 1600px;
    margin: 0 auto;
    background: transparent;
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: 100vh;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.02);
}

/* Sidebar Navbar */
.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    background: var(--card-bg);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.logo-section {
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--card-bg);
}

/* Advanced CSS Logo */
.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-accent));
    border-radius: 8px;
    border: 2px solid var(--text-primary);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    box-shadow: 3px 3px 0px var(--text-primary);
}

.logo-icon::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 3px;
    background: var(--text-primary);
}

.logo-icon .eye {
    width: 6px;
    height: 6px;
    background-color: var(--card-bg);
    border-radius: 50%;
    border: 1px solid var(--text-primary);
}

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1;
    letter-spacing: 1px;
}

.logo-text span {
    font-weight: 500;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.nav-menu {
    flex: 1;
    padding: 2rem 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.nav-menu li a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.2s;
    letter-spacing: 0.5px;
}

.nav-menu li a:hover {
    background: var(--bg-base);
    color: var(--text-primary);
}

.nav-menu li a.active {
    color: var(--brand-primary);
    border-left: 3px solid var(--brand-primary);
    background: var(--bg-base);
}

.sidebar-footer {
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    font-family: 'VT323', monospace;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

/* Main Content Area */
.main-content {
    background: transparent;
    display: flex;
    flex-direction: column;
}

/* Header Tools */
.top-header {
    height: 80px;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 3rem;
    position: sticky;
    top: 0;
    z-index: 90;
}

.top-status {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.top-status span {
    color: #10b981;
    margin-right: 5px;
}

/* Profile Hero Grid */
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    min-height: calc(100vh - 80px);
}

.profile-intro {
    padding: 4rem;
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
}

.badge-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tech-badge {
    background: rgba(4, 120, 87, 0.1);
    border: 1px solid var(--brand-primary);
    color: var(--brand-primary);
    padding: 0.3rem 0.8rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.profile-intro h1 {
    margin-bottom: 1.5rem;
}

.lead-text {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 3rem;
}

/* Grid Layout for About Details */
.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.info-block {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.info-block:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Complex Corner Brackets */
.info-block::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    width: 6px;
    height: 6px;
    border-top: 2px solid var(--text-primary);
    border-left: 2px solid var(--text-primary);
}

.info-block::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 6px;
    height: 6px;
    border-bottom: 2px solid var(--text-primary);
    border-right: 2px solid var(--text-primary);
}

.info-label {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--brand-primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.info-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.info-subtext {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}

/* Visual Details Sidebar */
.profile-visual {
    background: var(--bg-base);
    padding: 3rem;
    display: flex;
    flex-direction: column;
}

.photo-container {
    width: 100%;
    aspect-ratio: 3/4;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 10px;
    position: relative;
    margin-bottom: 2rem;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.photo-container:hover {
    transform: scale(1.02) rotate(1deg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    /* Premium hover lift */
}

.photo-inner {
    width: 100%;
    height: 100%;
    background: #e2e8f0 url('https://placehold.co/400x500/e2e8f0/94a3b8?text=DK') center/cover;
    filter: grayscale(100%) contrast(1.2);
    border: 1px solid var(--border-color);
}

/* Detailed Experience Section */
.content-section {
    padding: 4rem;
    border-top: 1px solid var(--border-color);
    background: var(--card-bg);
}

.section-head {
    margin-bottom: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.section-head h2 {
    font-size: 2.5rem;
    letter-spacing: -1px;
}

.view-all {
    color: var(--brand-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
}

.timeline {
    position: relative;
    max-width: 900px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px dashed var(--border-color);
    margin-bottom: 3rem;
    transition: transform 0.3s ease, background 0.3s ease;
}

.timeline-item:hover {
    transform: translateX(10px);
    /* Slide slightly on hover */
    background: rgba(255, 255, 255, 0.5);
    /* Highlight active timeline item */
    border-radius: 8px;
    padding: 1.5rem;
    margin-left: -1.5rem;
    margin-right: -1.5rem;
    border-bottom: 1px solid transparent;
    /* Hide dash on hover */
    box-shadow: var(--shadow-sm);
}

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

.time-meta {
    font-family: 'Space Grotesk', sans-serif;
}

.time-date {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 600;
    display: block;
    margin-bottom: 0.5rem;
}

.company-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.company-type {
    font-size: 0.8rem;
    color: var(--brand-primary);
    text-transform: uppercase;
    font-weight: 700;
    margin-top: 0.2rem;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.timeline-tasks {
    list-style: none;
}

.timeline-tasks li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.timeline-tasks li::before {
    content: '❯';
    position: absolute;
    left: 0;
    color: var(--brand-primary);
    font-size: 0.8rem;
    top: 2px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    text-align: center;
    border-radius: 4px;
    transition: all 0.2s;
    cursor: pointer;
}

.btn-primary {
    background: var(--brand-primary);
    color: white;
    border: 1px solid var(--brand-primary);
}

.btn-primary:hover {
    background: var(--brand-primary-hover);
    box-shadow: 0 4px 10px rgba(4, 120, 87, 0.2);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--text-primary);
    background: var(--bg-base);
}

@media (max-width: 1100px) {
    .app-container {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }

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

    .profile-visual {
        border-top: 1px solid var(--border-color);
        border-left: none;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}