:root {
    /* Light Mode - Base colors */
    --bg-color: #f0f4f8;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --accent-color: #2563eb;
    --accent-glow: rgba(37, 99, 235, 0.15);
    
    --card-bg: rgba(255, 255, 255, 0.7);
    --card-border: rgba(255, 255, 255, 0.5);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    
    --timeline-line: #cbd5e1;
    --timeline-dot: #2563eb;
    
    --tag-bg: #e2e8f0;
    --tag-text: #0f172a;
    --tag-hover-bg: #2563eb;
    --tag-hover-text: #ffffff;
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition-speed: 0.3s;
}

/* Dark Mode Colors */
body.dark-mode {
    --bg-color: #0c1222;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-color: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.2);
    
    --card-bg: rgba(30, 41, 59, 0.5);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    
    --timeline-line: #334155;
    --timeline-dot: #3b82f6;
    
    --tag-bg: #1e293b;
    --tag-text: #f1f5f9;
    --tag-hover-bg: #3b82f6;
    --tag-hover-text: #ffffff;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
    background-image: radial-gradient(var(--accent-glow) 1px, transparent 1px);
    background-size: 30px 30px;
    overflow-x: hidden;
    padding-top: 2.6rem;
}

/* Status Banner */
.status-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    text-align: center;
    padding: 0.6rem 1rem;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    background: linear-gradient(135deg, #2563eb, #7c3aed, #2563eb);
    color: #ffffff;
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.35);
    animation: bannerSlideIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

body.dark-mode .status-banner {
    background: linear-gradient(135deg, #1e40af, #6d28d9, #1e40af);
    box-shadow: 0 2px 12px rgba(37, 99, 235, 0.25);
}

@keyframes bannerSlideIn {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Typography */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    line-height: 1.3;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color var(--transition-speed);
}

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

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

/* Layout Container */
.container {
    max-width: 1300px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 2rem;
    align-items: start;
}

/* Glassmorphism Panels */
.glass-panel {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--card-shadow);
    transition: box-shadow 0.3s ease;
    transform-style: preserve-3d;
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    top: 4rem;
    right: 1.5rem;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: var(--card-shadow);
    font-size: 1.2rem;
    color: var(--text-primary);
    transition: all var(--transition-speed) ease;
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(15deg);
    background: var(--accent-color);
    color: #fff;
}

body.dark-mode .dark-icon { display: none; }
body.light-mode .light-icon { display: none; }

/* Interactive Hover States */
.hover-slide {
    display: inline-block;
    transition: transform 0.2s ease;
}
.hover-slide:hover {
    transform: translateX(5px);
    color: var(--text-primary);
}

.hover-zoom img {
    transition: transform 0.4s ease;
}
.hover-zoom:hover img {
    transform: scale(1.08);
}

/* Profile Sidebar */
.profile-sidebar {
    position: sticky;
    top: 2rem;
}

.profile-img-container {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--card-bg);
    box-shadow: 0 8px 20px var(--accent-glow);
    transform: translateZ(30px);
}

.profile-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--timeline-line);
    transform: translateZ(20px);
}

.profile-info h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

/* Experience Counter */
.experience-counter {
    text-align: center;
    padding: 1.5rem 1rem;
    margin-bottom: 1.8rem;
    background: linear-gradient(135deg, var(--accent-glow), transparent);
    border-radius: 16px;
    border: 1px solid var(--card-border);
    transform: translateZ(20px);
}

.counter-number {
    font-family: var(--font-heading);
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, var(--accent-color), #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.counter-plus {
    font-size: 2rem;
}

.counter-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Typing Effect */
.type-wrap {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    min-height: 1.5rem;
}
.cursor {
    display: inline-block;
    width: 3px;
    background-color: var(--accent-color);
    animation: blink 1s step-end infinite;
    opacity: 1;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
    text-align: left;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.contact-item i {
    width: 20px;
    color: var(--accent-color);
    text-align: center;
}

/* Button & Ripple */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.primary-btn {
    background: var(--accent-color);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.primary-btn:hover {
    background: #1d4ed8;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--accent-glow);
}

/* Sidebar Sections */
.skills-section, .education-section, .certifications-section {
    margin-bottom: 1.8rem;
    transform: translateZ(15px);
}

.skills-section h3, .education-section h3, .certifications-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.skills-section h3 i, .education-section h3 i {
    color: var(--accent-color);
}

/* Skills Tags with Tooltips */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    min-height: 60px;
}

.skill-tag {
    background: var(--tag-bg);
    color: var(--tag-text);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
    display: inline-block;
    position: relative;
}

.skill-tag[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-primary);
    color: var(--bg-color);
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 400;
    white-space: normal;
    width: max-content;
    max-width: 240px;
    line-height: 1.4;
    z-index: 100;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    animation: tooltipFadeIn 0.2s ease forwards;
    pointer-events: none;
}

.skill-tag[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--text-primary);
    z-index: 100;
    animation: tooltipFadeIn 0.2s ease forwards;
}

@keyframes tooltipFadeIn {
    from { opacity: 0; transform: translateX(-50%) translateY(4px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.skill-tag.hide {
    opacity: 0;
    transform: scale(0.5);
    position: absolute;
    pointer-events: none;
}

.skill-tag:hover {
    background: var(--tag-hover-bg);
    color: var(--tag-hover-text);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 4px 10px var(--accent-glow);
}

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

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

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

/* Education Items */
.edu-item h4 {
    font-size: 1rem;
    font-weight: 600;
}

.edu-item p {
    font-size: 0.9rem;
    margin-bottom: 0.2rem;
}

/* Main Content Area */
.content-area {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid var(--accent-glow);
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateZ(20px);
}

.section-title i {
    color: var(--accent-color);
}

/* Highlight Lists */
.highlight-list {
    list-style: none;
}

.highlight-list li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0.8rem;
    color: var(--text-secondary);
    transform: translateZ(10px);
}

.highlight-list li::before {
    content: "\f058";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 0.9rem;
    top: 3px;
}

.highlight-list li strong {
    color: var(--text-primary);
}

.highlight-panel {
    border: 1px solid var(--accent-glow);
    background: linear-gradient(145deg, var(--card-bg), var(--accent-glow));
}

/* Project Showcase */
.project-showcase {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.project-card {
    padding: 0.5rem 0;
}

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

.project-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent-color), #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.project-card:hover .project-icon-wrap {
    transform: scale(1.1) rotate(5deg);
}

.project-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0;
}

.project-subtitle {
    font-size: 0.85rem;
    color: var(--accent-color) !important;
    font-weight: 600;
    margin-bottom: 0 !important;
}

.project-description {
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.project-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.tech-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
    background: linear-gradient(135deg, var(--accent-glow), transparent);
    color: var(--accent-color);
    border: 1px solid var(--accent-glow);
    transition: all 0.3s ease;
}

.tech-badge:hover {
    background: var(--accent-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--accent-glow);
}

/* Philosophy / What I Bring Section */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

.philosophy-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 1.5rem 1.2rem;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
}

.philosophy-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 12px 30px var(--accent-glow);
    border-color: var(--accent-color);
}

.philosophy-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 1rem;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent-color), #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: #fff;
    transition: transform 0.3s ease;
}

.philosophy-card:hover .philosophy-icon {
    transform: scale(1.1) rotate(5deg);
}

.philosophy-card h4 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.philosophy-card p {
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Company Header (no-link variant) */
.company-header-nolink {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.2rem;
}

.company-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-color), #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.timeline-item:hover .company-icon-circle {
    transform: scale(1.1) rotate(5deg);
}

.company-header-nolink h3 {
    margin-bottom: 0;
    color: var(--text-primary);
}

.timeline-location {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.timeline-location i {
    color: var(--accent-color);
    font-size: 0.8rem;
}

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

.timeline::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    height: 100%;
    width: 2px;
    background: var(--timeline-line);
}

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

.timeline-item.none-border::before {
    display: none;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -2.35rem;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 3px solid var(--timeline-dot);
    box-shadow: 0 0 0 4px var(--bg-color);
    transition: all 0.3s ease;
    z-index: 10;
}

.timeline-item:hover::before {
    background: var(--timeline-dot);
    box-shadow: 0 0 0 6px var(--accent-glow);
    transform: scale(1.2);
}

.timeline-date {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--accent-glow);
    color: var(--accent-color);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    transform: translateZ(10px);
}

.timeline-content ul {
    list-style: none;
}

.timeline-content ul li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0.6rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.timeline-content ul li::before {
    content: "\f058";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 0.85rem;
    top: 3px;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-family: var(--font-heading);
    border-top: 1px solid var(--card-border);
}

/* Animations */
.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateY(20px);
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

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

/* Responsive Design */
@media (max-width: 992px) {
    .container {
        grid-template-columns: 1fr;
    }
    
    .profile-sidebar {
        position: relative;
        top: 0;
    }

    .philosophy-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        margin: 1rem auto;
        padding: 0 1rem;
    }
    
    .glass-panel {
        padding: 1.5rem;
    }
    
    .timeline::before {
        left: 0;
    }
    
    .timeline-item::before {
        left: -2.35rem;
    }

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

    .status-banner {
        font-size: 0.8rem;
        padding: 0.5rem 0.5rem;
    }

    .project-header {
        flex-direction: column;
        text-align: center;
    }

    .project-tech-stack {
        justify-content: center;
    }
}
