:root {
    --bg-white: #ffffff;
    --sidebar-blue: #f0f7ff; /* Decent Light Blue */
    --accent-blue: #2563eb;  /* Strong Professional Blue */
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --border-light: #e2e8f0;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', system-ui, sans-serif; }

body { background-color: var(--bg-white); color: var(--text-dark); line-height: 1.6; }

.layout-wrapper { display: flex; min-height: 100vh; }

/* MAIN CONTENT (LEFT) */
.main-content { flex: 1; padding: 60px 80px; }
.hello-tag { color: var(--accent-blue); font-weight: 700; font-size: 0.85rem; letter-spacing: 1px; }
.intro h2 { font-size: 3.2rem; margin: 10px 0 20px 0; font-weight: 800; }
.name-highlight { color: var(--accent-blue); }
.bio { font-size: 1.25rem; color: var(--text-muted); max-width: 700px; }

/* SKILLS SECTION */
.skills-section { margin-top: 60px; }
.skills-section h3 { font-size: 1.8rem; margin-bottom: 5px; }
.sub-heading { color: var(--text-muted); margin-bottom: 30px; }

.languages-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 20px; }
.lang-card {
    background: #f8fafc;
    padding: 30px 15px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}
.lang-card i { font-size: 3.5rem; margin-bottom: 15px; display: block; }
.lang-card span { font-weight: 600; font-size: 0.95rem; }
.lang-card:hover { transform: translateY(-8px); border-color: var(--accent-blue); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }

.tools-flex { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.tool-tag { background: white; padding: 10px 18px; border-radius: 30px; border: 1px solid var(--border-light); font-size: 0.9rem; font-weight: 500; }

/* SIDEBAR (RIGHT) */
.sidebar-right {
    width: 340px;
    background-color: var(--sidebar-blue);
    height: 100vh;
    position: sticky;
    top: 0;
    padding: 60px 40px;
    border-left: 1px solid #dbeafe;
    display: flex;
    flex-direction: column;
}

.profile-box { text-align: center; margin-bottom: 50px; }
.profile-img { width: 120px; height: 120px; border-radius: 24px; margin-bottom: 20px; border: 5px solid white; box-shadow: 0 8px 15px rgba(37, 99, 235, 0.1); }
.profile-box h1 { font-size: 1.5rem; color: #1e3a8a; }
.profile-box p { color: #60a5fa; font-weight: 500; font-size: 0.9rem; }

.side-nav { flex-grow: 1; }
.nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    color: #475569;
    padding: 14px 20px;
    border-radius: 12px;
    margin-bottom: 8px;
    transition: 0.3s;
    font-weight: 500;
}
.nav-link:hover { color: var(--accent-blue); background: #ffffff80; }
.nav-link.active { background: var(--accent-blue); color: white; box-shadow: 0 4px 10px rgba(37, 99, 235, 0.2); }

.sidebar-footer { text-align: center; padding-top: 30px; border-top: 1px solid #dbeafe; }
.social-links { display: flex; justify-content: center; gap: 20px; font-size: 1.6rem; margin-bottom: 12px; }
.social-links a { color: #64748b; transition: 0.3s; }
.social-links a:hover { color: var(--accent-blue); }
.copyright { font-size: 0.8rem; color: #94a3b8; }

/* TOGGLE BUTTONS - HIDDEN ON DESKTOP */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 2.2rem;
    color: var(--text-dark);
}

.mobile-header { display: none; }

/* RESPONSIVE DESIGN (Tablets and Phones) */
@media (max-width: 1024px) {
    .mobile-header { 
        display: flex; 
        justify-content: space-between; 
        align-items: center; 
        padding: 15px 25px; 
        background: white; 
        border-bottom: 1px solid var(--border-light); 
        position: sticky; 
        top: 0; 
        z-index: 100; 
    }
    
    .menu-toggle { display: block; } /* Show buttons only on mobile */

    .sidebar-right {
        position: fixed; 
        right: 0; 
        top: 0; 
        transform: translateX(100%); /* Slide out to the right */
        z-index: 200; 
        transition: transform 0.4s ease;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        height: 100vh;
    }

    .sidebar-right.open { transform: translateX(0); } /* Slide back in */

    .close-btn {
        position: absolute;
        top: 20px;
        right: 20px;
    }

    .main-content { padding: 40px 25px; }
    .intro h2 { font-size: 2.5rem; }
}

/* --- PROJECT SPECIFIC STYLES --- */

.projects-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
}

.project-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    overflow: hidden;
    display: flex; /* Horizontal card layout */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.project-image {
    width: 40%;
    min-height: 200px;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-info {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.project-icon {
    font-size: 1.8rem;
    color: var(--accent-blue);
    background: var(--sidebar-blue);
    padding: 10px;
    border-radius: 12px;
}

.project-info h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
}

.project-info p {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 1rem;
}

.project-tags {
    display: flex;
    gap: 10px;
}

.project-tags span {
    font-size: 0.75rem;
    font-weight: 700;
    background: #f1f5f9;
    color: #475569;
    padding: 5px 12px;
    border-radius: 6px;
    text-transform: uppercase;
}

/* RESPONSIVE PROJECTS */
@media (max-width: 768px) {
    .project-card {
        flex-direction: column; /* Stack image on top of text for mobile */
    }
    .project-image {
        width: 100%;
        height: 200px;
    }
}

/* --- CAREER TIMELINE STYLES --- */

.career-timeline {
    position: relative;
    max-width: 800px;
    margin-top: 50px;
    padding-left: 30px; /* Space for the line */
}

/* The vertical line */
.career-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background-color: var(--border-light);
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

/* The dot on the line */
.timeline-marker {
    position: absolute;
    left: -35px; /* Centers dot on the line */
    top: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: var(--accent-blue);
    border: 3px solid var(--bg-white);
    outline: 2px solid var(--accent-blue);
}

.career-box {
    background: #ffffff;
    padding: 25px;
    border-radius: 16px;
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.career-box:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 10px 20px rgba(37, 99, 235, 0.05);
}

.career-header {
    margin-bottom: 12px;
}

.career-date {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-blue);
    background: var(--sidebar-blue);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 10px;
}

.career-header h3 {
    font-size: 1.4rem;
    color: var(--text-dark);
}

.company {
    font-weight: 600;
    color: var(--text-muted);
    font-size: 1rem;
}

.career-body p {
    color: var(--text-muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

/* RESPONSIVE CAREER */
@media (max-width: 768px) {
    .career-timeline {
        padding-left: 20px;
    }
    .timeline-marker {
        left: -26px;
    }
}

/* --- EDUCATION GRID STYLES --- */

.education-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.edu-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 30px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.edu-card:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 12px 24px rgba(37, 99, 235, 0.06);
    transform: translateY(-5px);
}

.edu-icon-wrapper {
    width: 60px;
    height: 60px;
    background: var(--sidebar-blue);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.edu-icon {
    font-size: 2rem;
    color: var(--accent-blue);
}

.edu-icon-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

.edu-year {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-blue);
    background: #e0eeff;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 15px;
    display: inline-block;
}

.edu-content h3 {
    font-size: 1.3rem;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.school-name {
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 15px;
    font-size: 1rem;
}

.edu-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* RESPONSIVE EDUCATION */
@media (max-width: 600px) {
    .education-grid {
        grid-template-columns: 1fr; /* Stack into single column on phones */
    }
}

/* --- TESTIMONIALS STYLES --- */

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 40px 30px 30px 30px;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.testimonial-card:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.04);
    border-color: var(--accent-blue);
}

.testimonial-quote-icon {
    position: absolute;
    top: 20px;
    left: 20px;
    font-size: 2.5rem;
    color: var(--sidebar-blue); /* Very light blue for the icon */
    z-index: 0;
}

.testimonial-text {
    font-style: italic;
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
    border-top: 1px solid var(--border-light);
    padding-top: 20px;
    margin-top: auto; /* Pushes author to bottom if text lengths vary */
}

.author-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--sidebar-blue);
}

.author-info h4 {
    font-size: 1rem;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.author-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* RESPONSIVE TESTIMONIALS */
@media (max-width: 600px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

/* --- DIPLOMA GALLERY STYLES --- */

.diploma-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.diploma-card {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.diploma-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.08);
    border-color: var(--accent-blue);
}

.diploma-preview {
    position: relative;
    height: 200px;
    background: #f8fafc;
    overflow: hidden;
    border-bottom: 1px solid var(--border-light);
}

.diploma-preview img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Shows full certificate without cropping */
    padding: 10px;
    transition: transform 0.5s ease;
}

.diploma-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(37, 99, 235, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.diploma-card:hover .diploma-overlay { opacity: 1; }
.diploma-card:hover .diploma-preview img { transform: scale(1.05); }

.diploma-overlay i {
    font-size: 2.5rem;
    color: var(--accent-blue);
    background: white;
    padding: 15px;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.diploma-details {
    padding: 20px;
}

.diploma-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.diploma-meta i {
    color: var(--accent-blue);
    font-size: 1.1rem;
}

.diploma-meta span {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.diploma-details h3 {
    font-size: 1.15rem;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.diploma-details p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* RESPONSIVE DIPLOMAS */
@media (max-width: 600px) {
    .diploma-grid {
        grid-template-columns: 1fr;
    }
}