/* === Global Site Style (light & clean) === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.site-body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    color: #222;
    background: #f7f7fb;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 16px;
}

.section {
    padding: 48px 0;
}

.section-alt {
    background: #ffffff;
}

section h2 {
    font-size: 1.6rem;
    margin-bottom: 16px;
}

.site-footer {
    margin-top: 40px;
    padding: 24px 0;
    text-align: center;
    font-size: 0.85rem;
    color: #666;
}

/* === Header / Nav === */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand-logo {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #2e7dff, #00c8a8);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
}

.brand-name {
    font-weight: 600;
    letter-spacing: 0.03em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.9rem;
}

.nav-link {
    text-decoration: none;
    color: #333;
    padding: 4px 8px;
    border-radius: 999px;
    transition: background 0.15s ease, color 0.15s ease;
}

.nav-link:hover {
    background: #e3f2fd;
    color: #1a73e8;
}

.nav-cta {
    background: #1a73e8;
    color: #fff;
}

.nav-cta:hover {
    background: #1557b0;
    color: #fff;
}

/* === Hero === */
.hero {
    padding: 64px 0 40px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 32px;
    align-items: center;
}

.hero-text h1 {
    font-size: 2.4rem;
    margin-bottom: 4px;
}

.hero-typer {
    font-size: 1rem;
    color: #1a73e8;
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: 0.98rem;
    color: #555;
    margin-bottom: 16px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: #555;
    margin-right: 10px;
}

.hero-meta a {
    color: #1a73e8;
    text-decoration: none;
}

.hero-photo {
    display: flex;
    justify-content: center;
}

.profile-pic {
    width: 200px;
    height: 200px;
    object-fit: cover;
}

.profile-pic.round {
    border-radius: 50%;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}

.btn.primary {
    background: #1a73e8;
    color: #fff;
}

.btn.primary:hover {
    background: #1557b0;
}

.btn.ghost {
    background: #fff;
    color: #1a73e8;
    border-color: #c5daf8;
}

.btn.ghost:hover {
    background: #e3f2fd;
}

.btn.small {
    padding: 5px 12px;
    font-size: 0.8rem;
}

.btn:active {
    transform: translateY(1px);
}

/* === Dropdowns (Education) === */
.education-item {
    margin: 6px 0;
    padding: 8px;
    border-left: 2px solid rgba(0, 229, 255, 0.4);
}

.dropdown-btn {
    padding: 4px 10px;
    background-color: #002b36;
    color: #e0f7fa;
    border: 1px solid rgba(0, 229, 255, 0.5);
    cursor: pointer;
    border-radius: 5px;
    margin-left: 10px;
}

/* === Dropdown in CV === */
.dropdown-content {
    display: none;
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    padding: 10px 14px;
    margin-top: 8px;
    border-radius: 4px;
}

.dropdown-content a {
    color: #1a73e8;
}

.dropdown-content a:hover {
    text-decoration: underline;
}

.show {
    display: block;
}

/* === Skill & Tag Pills === */
.language,
.pill,
.tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: #e3f2fd;
    color: #0d47a1;
    font-size: 0.8rem;
    margin-right: 6px;
    margin-bottom: 4px;
}

.languages-list {
    list-style-type: none;
    display: inline;
    margin-left: 10px;
}

ul {
    list-style-type: none;
    padding-left: 0;
}

/* === Projects Grid / Cards === */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 12px;
}

.project-card {
    background: #ffffff;
    padding: 16px;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    border: 1px solid #e3e7f0;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.project-card h3 {
    margin-bottom: 6px;
}

.project-card p {
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #555;
}

.project-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.project-link {
    font-size: 0.85rem;
    color: #1a73e8;
    text-decoration: none;
}

.project-link:hover {
    text-decoration: underline;
}

.project-toggle {
    border: none;
    background: transparent;
    color: #1a73e8;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0;
}

.info-panel {
    margin-top: 16px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #eef2ff;
    display: none;
    font-size: 0.9rem;
}

.info-panel.active {
    display: block;
}

/* === Timeline === */
.timeline {
    position: relative;
    margin-top: 10px;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e0e7ff;
}

.timeline-item {
    position: relative;
    padding-left: 26px;
    margin-bottom: 18px;
}

.timeline-dot {
    position: absolute;
    left: 3px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #1a73e8;
}

.timeline-meta {
    font-size: 0.8rem;
    color: #666;
}

.timeline-content p {
    font-size: 0.9rem;
    color: #555;
}

.experience-controls {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.experience-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.experience-toggle i {
    font-size: 0.75rem;
    transition: transform 0.25s ease;
}

.experience-toggle.is-expanded i {
    transform: rotate(180deg);
}

.timeline-extra {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.55s ease, opacity 0.35s ease, margin-top 0.35s ease;
    margin-top: 0;
}

.timeline-extra.expanded {
    max-height: 2000px;
    opacity: 1;
    margin-top: 12px;
    pointer-events: auto;
}

/* === Posts Grid === */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.post-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
    max-width: 320px;
    margin: 0 auto;
}

.post-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
}

.post-image-wrap {
    position: relative;
    overflow: hidden;
}

.post-image {
    width: 100%;
    display: block;
    object-fit: cover;
    height: 150px;
}

.post-caption {
    text-align: center;
    padding: 10px 12px 12px;
    font-size: 0.9rem;
}

/* === Single Blog Post === */
.blog-post {
    max-width: 760px;
    margin: 0 auto;
    background: #ffffff;
    padding: 20px 20px 28px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12);
}

.blog-post h1 {
    font-size: 1.8rem;
    margin-bottom: 4px;
}

.blog-section-title {
    margin-top: 18px;
    margin-bottom: 4px;
    font-size: 1.05rem;
}

.blog-post p {
    font-size: 0.98rem;
    line-height: 1.8;
    margin-top: 6px;
}

.blog-post ul {
    list-style-type: disc;
    padding-left: 22px;
    margin-top: 6px;
}

.blog-post ul li {
    margin-bottom: 4px;
    font-size: 0.96rem;
}

.blog-tags {
    margin-top: 10px;
    font-size: 0.86rem;
    color: #555;
}

.blog-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0 22px;
}

.blog-gallery .post-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
}

/* === Lightbox for blog images === */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.85);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 50;
}

.lightbox-overlay.open {
    display: flex;
}

.lightbox-inner {
    position: relative;
    max-width: 900px;
    width: 90%;
    overflow: hidden;
}

.lightbox-image {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6);
    cursor: zoom-in;
    transition: transform 0.25s ease;
}

.lightbox-image.zoomed {
    cursor: zoom-out;
}

.lightbox-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 14px;
}

.lightbox-btn {
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 0.85rem;
    padding: 6px 16px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.lightbox-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

.lightbox-close {
    position: absolute;
    top: 8px;
    right: 12px;
    font-size: 1.4rem;
    color: #fff;
    cursor: pointer;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    color: #ffffff;
    cursor: pointer;
    padding: 6px 10px;
    user-select: none;
}

.lightbox-prev {
    left: -26px;
}

.lightbox-next {
    right: -26px;
}

@media (max-width: 768px) {
    .blog-post {
        padding: 16px 14px 22px;
    }

    .blog-gallery {
        grid-template-columns: 1fr;
    }

    .blog-gallery .post-image {
        height: 160px;
    }
}

/* === CV Layout === */
.cv-header {
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding: 18px 0;
}

.cv-header-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cv-tagline {
    font-size: 0.9rem;
    color: #555;
}

.cv-contact span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    margin-right: 12px;
}

.cv-contact a {
    color: #1a73e8;
    text-decoration: none;
}

.cv-content {
    padding: 24px 16px 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cv-section {
    background: #ffffff;
    border-radius: 16px;
    padding: 22px 24px 22px 38px;
    border: 1px solid #e4e7ec;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    position: relative;
    overflow: hidden;
}

.cv-section::after {
    content: "";
    position: absolute;
    inset: 12px auto auto 12px;
    width: 4px;
    height: calc(100% - 24px);
    background: linear-gradient(180deg, #2e7dff, #00c8a8);
    border-radius: 999px;
    opacity: 0.3;
}

.section-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.section-indicator {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 999px;
    background: rgba(26, 115, 232, 0.1);
    color: #1a73e8;
}

.section-body {
    margin-top: 4px;
    font-size: 0.95rem;
    color: #444;
}

.cv-list li {
    display: flex;
    gap: 10px;
    margin-bottom: 6px;
}

.cv-years,
.edu-years {
    font-size: 0.8rem;
    color: #666;
    min-width: 80px;
}

.skill-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 8px;
}

.skill-group h3 {
    font-size: 0.95rem;
    color: #0f172a;
    margin-bottom: 10px;
}

.skill-meter {
    margin-bottom: 14px;
}

.skill-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.skill-bar {
    height: 8px;
    border-radius: 999px;
    background: #e5e7eb;
    overflow: hidden;
    position: relative;
}

.skill-bar::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 6px rgba(15, 23, 42, 0.18);
    pointer-events: none;
}

.skill-bar-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2e7dff, #7f5dff, #00c8a8);
    width: var(--progress, 0%);
    transition: width 0.6s ease;
}

/* === Responsive === */
@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .nav-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .main-nav {
        flex-wrap: wrap;
    }

    .cv-header-grid {
        flex-direction: column;
        align-items: flex-start;
    }
}



