/* ==========================================================================
   CSS Variables & Theming
   ========================================================================== */
   :root {
    /* Light Theme (Default) */
    --bg-primary: #f8fafc;
    --bg-secondary: #f1f5f9;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --accent-1: #0284c7; /* Sky 600 */
    --accent-2: #4f46e5; /* Indigo 600 */
    
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
    
    --orb-1: rgba(56, 189, 248, 0.4);
    --orb-2: rgba(129, 140, 248, 0.4);
}

[data-theme="dark"] {
    /* Dark Theme */
    --bg-primary: #0f172a; /* Slate 900 */
    --bg-secondary: #1e293b; /* Slate 800 */
    --text-primary: #f8fafc; /* Slate 50 */
    --text-secondary: #cbd5e1; /* Slate 300 */
    --text-muted: #94a3b8; /* Slate 400 */
    --accent-1: #38bdf8; /* Sky 400 */
    --accent-2: #818cf8; /* Indigo 400 */
    
    --glass-bg: rgba(30, 41, 59, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    
    --orb-1: rgba(2, 132, 199, 0.35);
    --orb-2: rgba(79, 70, 229, 0.35);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    line-height: 1.6;
    transition: background-color 0.4s ease, color 0.4s ease;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    line-height: 1.2;
}

a {
    color: var(--accent-1);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-2);
}

/* ==========================================================================
   Background & Orbs (Premium Feel)
   ========================================================================== */
.bg-gradient-orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    animation: float 20s infinite ease-in-out;
}

.orb-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--orb-1) 0%, transparent 70%);
}

.orb-2 {
    bottom: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--orb-2) 0%, transparent 70%);
    animation-delay: -10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* ==========================================================================
   Layout & Container
   ========================================================================== */
.app-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
    position: relative;
}

.resume-wrapper {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: var(--glass-shadow);
}

.two-column-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

@media (max-width: 900px) {
    .two-column-layout {
        grid-template-columns: 1fr;
    }
    .resume-wrapper {
        padding: 2rem 1.5rem;
    }
}

/* ==========================================================================
   UI Components & Glassmorphism
   ========================================================================== */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.hover-glow:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-1);
}

.hover-lift {
    transition: transform 0.2s ease, background-color 0.2s ease;
}
.hover-lift:hover {
    transform: translateY(-2px);
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

/* Theme Toggle */
.theme-toggle {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    font-size: 1.5rem;
    backdrop-filter: blur(8px);
    z-index: 100;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background: var(--bg-secondary);
    transform: rotate(15deg);
}

[data-theme="dark"] .dark-icon { display: none; }
[data-theme="light"] .light-icon { display: none; }

/* ==========================================================================
   Header Section
   ========================================================================== */
.resume-header {
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 2rem;
}

.resume-header h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
}

.title-role {
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.contact-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-secondary);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.9rem;
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.contact-pill i {
    color: var(--accent-1);
    font-size: 1.1rem;
}

/* ==========================================================================
   Summary Section
   ========================================================================== */
.summary-card {
    position: relative;
    padding: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
}

.highlight-icon {
    position: absolute;
    top: -15px;
    left: 20px;
    font-size: 2rem;
    color: var(--accent-1);
    background: var(--bg-primary);
    border-radius: 50%;
    padding: 5px;
    box-shadow: var(--glass-shadow);
}

/* ==========================================================================
   Sections & Typography
   ========================================================================== */
.section {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.4);
}

.section-header h3 {
    font-size: 1.8rem;
    font-weight: 700;
}

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

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-1), var(--accent-2), transparent);
    opacity: 0.5;
}

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

.timeline-dot {
    position: absolute;
    left: -2rem;
    top: 1.5rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 3px solid var(--accent-1);
    z-index: 1;
    transform: translateX(-1px);
    transition: all 0.3s ease;
}

.timeline-item:hover .timeline-dot {
    background: var(--accent-1);
    box-shadow: 0 0 10px var(--accent-1);
}

.experience-card {
    padding: 1.75rem;
}

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

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

.company-name {
    display: block;
    color: var(--accent-1);
    font-weight: 500;
    margin-top: 0.25rem;
}

.date-badge {
    background: var(--bg-secondary);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
}

.job-desc {
    margin-bottom: 1.25rem;
}

.achievements-list strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.5rem;
}

.achievements-list ul {
    list-style: none;
}

.achievements-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
}

.achievements-list li::before {
    content: '▹';
    position: absolute;
    left: 0;
    color: var(--accent-1);
    font-weight: bold;
}

/* ==========================================================================
   Skills & Sidebar Elements
   ========================================================================== */
.skills-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.skill-category {
    padding: 1.25rem;
}

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

.skill-tags {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.progress-bar {
    height: 6px;
    background: var(--bg-secondary);
    border-radius: 3px;
    margin-top: 0.75rem;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    border-radius: 3px;
    transition: width 1s ease-in-out;
}

.education-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.edu-inst {
    color: var(--text-secondary);
    margin: 0.25rem 0;
}

.edu-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.styled-list {
    list-style: none;
}

.styled-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.styled-list li::before {
    content: '✦';
    position: absolute;
    left: 0;
    color: var(--accent-2);
    font-size: 0.9em;
}

/* ==========================================================================
   Animations
   ========================================================================== */
.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

.slide-up {
    opacity: 0;
    transform: translateY(20px);
    animation: slideUp 0.6s ease-out forwards;
}

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

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