@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --bg-body: #f8fafc; /* Warm light gray background */
    --bg-panel: #ffffff; /* Clean white for primary panels */
    --border-color: #e2e8f0;
    --border-hover: rgba(99, 102, 241, 0.2);
    
    --primary: #4f46e5; /* Royal Indigo */
    --primary-light: #6366f1;
    --primary-bg: rgba(99, 102, 241, 0.05);
    
    --secondary: #0ea5e9;
    --accent: #d946ef;
    
    --text-main: #334155; /* Slate-700 */
    --text-muted: #64748b; /* Slate-500 */
    --text-dark: #0f172a; /* Slate-900 */
    
    --font-heading: 'Be Vietnam Pro', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.01);
    --shadow-md: 0 10px 30px rgba(99, 102, 241, 0.04);
}

/* Base resets */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    font-weight: 700;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
}

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

::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.12);
    border-radius: 4px;
}

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

/* Portfolio Container Layout */
.portfolio-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Left Sidebar (Fixed on Desktop) */
.sidebar {
    width: 320px;
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    background: var(--bg-panel);
    border-right: 1px solid var(--border-color);
    z-index: 100;
    transition: var(--transition);
}

.close-sidebar-btn {
    display: none;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-dark);
    cursor: pointer;
}

.sidebar-scroll {
    height: 100%;
    overflow-y: auto;
    padding: 2.5rem 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    scrollbar-width: none; /* Firefox */
}

.sidebar-scroll::-webkit-scrollbar {
    display: none; /* Safari/Chrome */
}

/* Sidebar Profile Card */
.profile-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.avatar-container {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.08);
}

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

.profile-name {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.profile-tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.4;
    padding: 0 0.5rem;
}

.sidebar-divider {
    height: 1px;
    background: #f1f5f9;
}

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

.contact-link {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.contact-link i {
    font-size: 1rem;
    color: var(--primary);
    margin-top: 0.25rem;
    background: var(--primary-bg);
    padding: 0.4rem;
    border-radius: 8px;
}

.contact-val {
    display: flex;
    flex-direction: column;
}

.contact-val span {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-val a, .contact-val p {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-dark);
}

.contact-val a:hover {
    color: var(--primary);
}

/* Sidebar Nav Links */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.7rem 1rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: 10px;
}

.sidebar-nav a i {
    font-size: 1rem;
    width: 18px;
    text-align: center;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
    color: var(--primary);
    background: var(--primary-bg);
}

/* Sidebar Info Block */
.sidebar-info-block {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.sidebar-info-title {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.sidebar-info-val {
    font-size: 0.88rem;
    color: var(--text-main);
}

.sidebar-info-val strong {
    color: var(--text-dark);
}

.sidebar-actions {
    margin-top: auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 10px;
    font-size: 0.92rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-cv {
    background: linear-gradient(135deg, var(--primary) 0%, #6366f1 100%);
    color: #ffffff;
    width: 100%;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.15);
}

.btn-cv:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.25);
}

.btn-submit {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.15);
}

.btn-submit:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.25);
}

/* Main Content Panel */
.main-panel {
    margin-left: 320px;
    flex: 1;
    min-height: 100vh;
    padding: 4rem 5rem;
    max-width: calc(100vw - 320px);
}

.mobile-bar {
    display: none;
}

/* Section styling */
.panel-section {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.panel-section:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.panel-section-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 10px;
}

.panel-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

/* About / Hero Panel Layout */
.section-title-alt {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

.hero-para {
    font-size: 1.05rem;
    color: var(--text-main);
    margin-bottom: 1.2rem;
    text-align: justify;
}

.gradient-accent {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

/* Metrics Grid block */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.metric-box {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.metric-value {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-heading);
}

.metric-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
    line-height: 1.3;
}

/* Education Cards Sub-section */
.education-card {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.panel-sub-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.panel-sub-title i {
    color: var(--primary);
}

.edu-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.edu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.edu-header h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.edu-date {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-bg);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
}

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

/* Experience Timeline Panels */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 2.2rem;
    position: relative;
    padding-left: 24px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: var(--border-color);
}

.timeline-card {
    position: relative;
}

.timeline-card::before {
    content: '';
    position: absolute;
    left: -30px;
    top: 8px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bg-panel);
    border: 3px solid var(--primary);
    z-index: 2;
    transition: var(--transition);
}

.timeline-card:hover::before {
    background: var(--secondary);
    border-color: var(--primary);
    transform: scale(1.25);
}

.timeline-meta {
    margin-bottom: 0.5rem;
}

.timeline-date {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-bg);
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    display: inline-block;
}

.timeline-body h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
}

.timeline-comp {
    font-size: 0.98rem;
    color: var(--secondary);
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.timeline-bullets {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding-left: 1.1rem;
}

.timeline-bullets li {
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.5;
}

/* Projects Panel Grid Layout */
.projects-panel-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.project-panel-card {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    position: relative;
}

.project-panel-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.project-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.project-card-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-bg);
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
}

.project-card-metric {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 850;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.project-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
}

.project-card-desc {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.project-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: auto;
}

.project-card-tags span {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    padding: 0.25rem 0.65rem;
    border-radius: 6px;
}

/* Skills Panel List Layout */
.skills-panel-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.skills-panel-box {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.skills-panel-box:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.skills-panel-box h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-dark);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.skills-panel-box h3 i {
    color: var(--primary);
}

.skills-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.skills-list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
    color: var(--text-main);
    padding: 0.65rem 0.9rem;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: var(--transition);
}

.skills-list li:hover {
    background: var(--primary-bg);
    border-color: var(--primary-light);
    color: var(--primary);
    transform: translateX(4px);
}

.skills-list li i {
    font-size: 1.1rem;
    color: var(--primary);
    width: 20px;
    text-align: center;
    transition: var(--transition);
}

.skills-list li:hover i {
    transform: scale(1.15);
}

/* Brands Panel Grid */
.brands-panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.2rem;
}

.brand-panel-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.8rem 1.2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.brand-panel-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.brand-logo-container {
    height: 45px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    filter: none;
    opacity: 0.85;
    transition: var(--transition);
}

.brand-panel-card:hover .brand-logo {
    opacity: 1;
    transform: scale(1.05);
}
.brand-desc {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 700;
    color: var(--text-muted);
    transition: var(--transition);
}

.brand-panel-card:hover .brand-desc {
    color: var(--primary);
}

/* Contact Panel Layout */
.contact-panel-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.contact-panel-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
}

.panel-contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group-panel {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group-panel label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.form-group-panel input, .form-group-panel textarea {
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: var(--text-dark);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group-panel input:focus, .form-group-panel textarea:focus {
    outline: none;
    border-color: var(--primary);
    background: var(--bg-panel);
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.05);
}

.form-group-panel textarea {
    resize: none;
    min-height: 120px;
}

.panel-form-message {
    padding: 0.9rem;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 500;
    display: none;
}

.panel-form-message.success {
    display: block;
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.15);
    color: #10b981;
}

/* Footer Section Panel */
.panel-footer {
    padding-top: 2rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.panel-footer p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-icons {
    display: flex;
    gap: 0.8rem;
}

.footer-icons a {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.footer-icons a:hover {
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

/* Scroll reveal helper */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Styles (Tablet and Mobile View) */
@media (max-width: 1024px) {
    .main-panel {
        padding: 3rem 2.5rem;
    }
}

@media (max-width: 768px) {
    .portfolio-container {
        flex-direction: column;
    }
    
    /* Mobile Top Bar */
    .mobile-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 60px;
        background: var(--bg-panel);
        border-bottom: 1px solid var(--border-color);
        padding: 0 1.5rem;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 90;
        box-shadow: 0 2px 10px rgba(0,0,0,0.01);
    }
    
    .mobile-logo {
        font-family: var(--font-heading);
        font-size: 1.25rem;
        font-weight: 800;
        color: var(--text-dark);
    }
    
    .mobile-logo span {
        color: var(--primary);
    }
    
    .hamburger-btn {
        background: none;
        border: none;
        font-size: 1.3rem;
        color: var(--text-dark);
        cursor: pointer;
    }
    
    /* Sidebar collapse overlay style */
    .sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: -320px; /* Hide to left */
        width: 300px;
        height: 100vh;
        box-shadow: 10px 0 30px rgba(0,0,0,0.08);
    }
    
    .sidebar.mobile-active {
        left: 0; /* Slide in */
    }
    
    .close-sidebar-btn {
        display: block;
    }
    
    /* Scroll content adjustments */
    .main-panel {
        margin-left: 0;
        max-width: 100vw;
        padding: 5rem 1.5rem 2rem 1.5rem;
    }
    
    .panel-section {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-top: 1.5rem;
    }
    
    .projects-panel-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-panel-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 1.2rem;
    }
}
