:root {
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-accent: #f1f3f5;
    --text-primary: #2c3e50;
    --text-secondary: #5a6c7d;
    --text-muted: #95a5a6;
    /* --accent-primary: #3498db; */
    --accent-primary: #4b84aa;
    --accent-secondary: #2c3e50;
    --accent-tertiary: #16a085;
    --border-color: #dee2e6;
    --shadow-soft: rgba(0, 0, 0, 0.08);
    --grid-color: #e9ecef;
}

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

body {
    font-family: 'Work Sans', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    position: relative;
    overflow-x: hidden;
}

/* Subtle grid background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.5;
    z-index: 0;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    position: relative;
    z-index: 1;
}

p {
  color: var(--text-secondary);
}

/* Header Section */
header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    margin-bottom: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid var(--border-color);
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-left h1 {
    font-family: 'Crimson Pro', serif;
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.header-left .tagline {
    font-size: 1.25rem;
    color: var(--accent-secondary);
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* Contact Info */
.contact-info {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    justify-content: center;
}

.contact-info a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
    font-weight: 400;
}

.contact-info a:hover {
    color: var(--accent-primary);
    transform: translateX(-3px);
}

/* Main Layout */
.main-content {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    animation: fadeIn 1s ease-out 0.3s both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.main-content a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
    font-weight: 400;
}

.main-content a:hover {
    color: var(--accent-primary);
    transform: translateX(-3px);
}

footer a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
    font-weight: 400;
}

footer a:hover {
    color: var(--accent-primary);
    transform: translateX(-3px);
}

/* Left Column - Main Content */
.left-column {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

section {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 12px var(--shadow-soft);
}

section:hover {
    box-shadow: 0 4px 20px rgba(212, 120, 95, 0.12);
    transform: translateY(-2px);
}

section h2 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--accent-primary);
    font-weight: 600;
    letter-spacing: -0.3px;
}

/* Experience Items */
.experience-item {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
    border-left: 3px solid var(--border-color);
    transition: border-color 0.3s ease;
}

.experience-item:hover {
    border-left-color: var(--accent-tertiary);
}

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

.experience-item h3 {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.experience-item .company {
    color: var(--accent-primary);
    font-weight: 500;
    font-size: 1.05rem;
}

.experience-item .period {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    font-weight: 300;
}

.experience-item ul {
    list-style: none;
    margin-top: 0.75rem;
}

.experience-item li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.experience-item li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-tertiary);
    font-size: 1.2rem;
}

/* Nested sub-items */
.experience-item ul ul {
    margin-top: 0.5rem;
    margin-left: 1rem;
}

.experience-item ul ul li {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.experience-item ul ul li::before {
    content: '◦';
    font-size: 1rem;
    color: var(--accent-primary);
}

/* Right Column - Skills Sidebar */
.right-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.skills-section {
    background: var(--bg-secondary);
    padding: 1.75rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    box-shadow: 0 2px 12px var(--shadow-soft);
}

.skills-section:hover {
    box-shadow: 0 4px 20px rgba(90, 138, 127, 0.12);
    transform: translateY(-2px);
}

.skills-section h3 {
    font-family: 'Crimson Pro', serif;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--accent-secondary);
    font-weight: 600;
    letter-spacing: -0.2px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.skill-tag {
    background: var(--bg-accent);
    color: var(--text-primary);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    cursor: default;
    font-weight: 400;
}

.skill-tag:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 120, 95, 0.2);
}

/* Progress bars for proficiency */
.skill-item {
    margin-bottom: 1rem;
}

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

.skill-name {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* .skill-level {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 300;
} */

/* .skill-bar {
    height: 8px;
    background: var(--bg-accent);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-tertiary), var(--accent-primary));
    border-radius: 10px;
    transition: width 1s ease-out;
    animation: slideProgress 1.5s ease-out;
}

@keyframes slideProgress {
    from { width: 0; }
} */

/* Certifications/Links Section */
/* .cert-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background: var(--bg-accent);
    border-radius: 12px;
    margin-bottom: 0.75rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-primary);
}

.cert-item:hover {
    border-color: var(--accent-primary);
    transform: translateX(5px);
    background: var(--bg-secondary);
    box-shadow: 0 2px 8px var(--shadow-soft);
}

.cert-icon {
    width: 24px;
    height: 24px;
    margin-right: 0.75rem;
    color: var(--accent-tertiary);
} */

/* Print Styles */
@media print {
    body::before {
        display: none;
    }
    
    section,
    .skills-section {
        break-inside: avoid;
        box-shadow: none;
    }

    .container {
        padding: 1rem;
    }

    a {
        color: var(--text-primary);
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .main-content {
        grid-template-columns: 1fr;
    }

    .right-column {
        order: -1;
    }

    header {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .contact-info {
        text-align: center;
    }

    .header-left h1 {
        font-size: 2.5rem;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-accent);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-primary);
}
