/* ===== NAVBAR HIDE/SHOW ANIMATION - Same as workshop ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.2rem 2rem;
    z-index: 1000;
    transition: transform 0.3s ease, background 0.3s ease, padding 0.3s ease;
    background: transparent;
    backdrop-filter: none;
}

/* Hide navbar when scrolling down */
.navbar.hide {
    transform: translateY(-100%);
}

/* Scrolled state - solid background */
.navbar.scrolled {
    background: transparent;
    backdrop-filter: blur(10px);
    padding: 0.8rem 2rem;
    border-bottom: 1px solid rgba(204, 47, 1, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* When navbar is hidden AND scrolled */
.navbar.hide.scrolled {
    background:transparent;
    backdrop-filter: blur(10px);
}



.page-header {
    min-height: 30vh;
    display: flex;
    align-items: flex-end;
    position: relative;
    padding: 8rem 0 4rem;
    /* YOUR IMAGE HERE - replace 'your-image.jpg' with actual filename */
    background: linear-gradient(0deg, var(--marubi-charcoal) 0%, rgba(36, 35, 35, 0.6) 100%),
                url('/images/gallery/resume.JPG');
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow: hidden;
    border-bottom: 1px solid rgba(204, 47, 1, 0.2);
}

/* Darker gradient overlay for text readability */
.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(36, 35, 35, 0.4) 100%),
        radial-gradient(circle at 30% 30%, rgba(204, 47, 1, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(204, 47, 1, 0.1) 0%, transparent 50%);
    pointer-events: none;
    animation: emberPulse 8s ease infinite alternate;
}

/* Optional: Add an ember glow border at bottom */
.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--marubi-ember) 20%, 
        var(--marubi-ember-light) 50%, 
        var(--marubi-ember) 80%, 
        transparent 100%);
    pointer-events: none;
    z-index: 2;
}

.header-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.page-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: var(--marubi-cream);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.page-title .ember {
    color: var(--marubi-ember);
    position: relative;
    display: inline-block;
    text-shadow: 0 0 20px rgba(204, 47, 1, 0.3);
}

.page-title .ember::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--marubi-ember);
    transform: scaleX(0);
    transform-origin: left;
    animation: slideIn 1s ease 1s forwards;
}

.page-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    line-height: 1.8;
    margin-bottom: 2rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.header-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Mobile optimization */
@media (max-width: 768px) {
    .page-header {
        background-attachment: scroll;
        background-position: center 20%;
        min-height: 35vh;
        padding: 6rem 0 3rem;
    }
    
    .page-header::before {
        background: 
            linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(36, 35, 35, 0.5) 100%),
            radial-gradient(circle at 30% 30%, rgba(204, 47, 1, 0.2) 0%, transparent 60%),
            radial-gradient(circle at 70% 70%, rgba(204, 47, 1, 0.12) 0%, transparent 60%);
    }
    
    .page-subtitle {
        font-size: 0.95rem;
        text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
    }
    
    .page-title {
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    }
}
.page-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: var(--marubi-cream);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
    line-height: 1.1;
}

.page-title .ember {
    color: var(--marubi-ember);
    position: relative;
    display: inline-block;
    text-shadow: 0 0 20px rgba(204, 47, 1, 0.3);
}

.page-title .ember::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--marubi-ember);
    transform: scaleX(0);
    transform-origin: left;
    animation: slideIn 1s ease 1s forwards;
}

.page-subtitle {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.header-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ===== RESUME SECTION ===== */
.resume-section {
    padding: var(--space-2xl) 0;
    background: var(--marubi-charcoal);
}

.resume-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: var(--space-lg);
    background: rgba(36, 35, 35, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(204, 47, 1, 0.2);
    border-radius: 24px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.resume-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--marubi-ember), transparent);
}

/* ===== LEFT COLUMN ===== */
.resume-left {
    border-right: 1px solid rgba(204, 47, 1, 0.2);
    padding-right: 2rem;
}

.profile-card {
    text-align: center;
    margin-bottom: 2rem;
}

.profile-image {
    width: 150px;
    height: 150px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--marubi-ember);
    box-shadow: var(--shadow-ember);
}

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

.profile-name {
    margin-bottom: 0.5rem;
}

.profile-name .first {
    display: block;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 4px;
    margin-bottom: 0.25rem;
    font-family: 'JetBrains Mono', monospace;
}

.profile-name .last {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--marubi-ember);
    line-height: 1.2;
}

.profile-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
    padding: 0.5rem;
    background: rgba(204, 47, 1, 0.1);
    border: 1px solid rgba(204, 47, 1, 0.2);
    border-radius: 4px;
    display: inline-block;
}

.profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(204, 47, 1, 0.15);
    border: 1px solid var(--marubi-ember);
    border-radius: 30px;
    font-size: 0.9rem;
    color: var(--marubi-ember);
}

.block-title {
    font-size: 1.2rem;
    color: var(--marubi-cream);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(204, 47, 1, 0.2);
    padding-bottom: 0.5rem;
}

.block-title i {
    color: var(--marubi-ember);
    font-size: 1.1rem;
}

.contact-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.contact-item i {
    width: 30px;
    color: var(--marubi-ember);
    font-size: 1rem;
}

.contact-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--marubi-ember);
}

.edu-item {
    margin-bottom: 1.5rem;
}

.edu-item h3 {
    color: white;
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.edu-meta {
    color: var(--marubi-ember);
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.edu-date {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.cert-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cert-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.cert-item i {
    color: var(--marubi-ember);
    width: 20px;
}

.skills-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-mini {
    padding: 0.3rem 0.8rem;
    background: rgba(204, 47, 1, 0.1);
    border: 1px solid rgba(204, 47, 1, 0.2);
    border-radius: 20px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.9);
}

/* ===== RIGHT COLUMN ===== */
.resume-right {
    padding-left: 1rem;
}

.summary-text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    font-size: 0.95rem;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.2);
    border-left: 3px solid var(--marubi-ember);
    border-radius: 0 8px 8px 0;
}

.exp-item {
    margin-bottom: 2rem;
    padding-left: 1rem;
    border-left: 2px solid var(--marubi-ember);
}

.exp-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.exp-header h3 {
    color: white;
    font-size: 1.1rem;
}

.exp-date {
    color: var(--marubi-ember);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
}

.exp-list {
    margin-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
}

.exp-list li {
    margin-bottom: 0.25rem;
}

.exp-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.exp-tech span {
    padding: 0.2rem 0.8rem;
    background: rgba(204, 47, 1, 0.1);
    border: 1px solid rgba(204, 47, 1, 0.2);
    border-radius: 20px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

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

.project-mini-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(204, 47, 1, 0.2);
    border-radius: 8px;
    padding: 1rem;
    transition: var(--transition-fast);
}

.project-mini-card:hover {
    border-color: var(--marubi-ember);
    transform: translateY(-3px);
}

.project-mini-card h4 {
    color: var(--marubi-ember);
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.project-mini-card p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.project-status {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    background: rgba(204, 47, 1, 0.2);
    border-radius: 4px;
    color: var(--marubi-ember);
}

.achievement-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.achievement-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(204, 47, 1, 0.03);
    border: 1px solid rgba(204, 47, 1, 0.1);
    border-radius: 8px;
}

.achievement-item i {
    color: var(--marubi-ember);
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.achievement-item h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.achievement-item p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.skills-grid {
    display: grid;
    gap: 1.5rem;
}

.skill-category h4 {
    color: var(--marubi-ember);
    font-size: 1rem;
    margin-bottom: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    padding: 0.4rem 1rem;
    background: rgba(204, 47, 1, 0.05);
    border: 1px solid rgba(204, 47, 1, 0.2);
    border-radius: 30px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    transition: var(--transition-fast);
}

.skill-tag:hover {
    background: var(--marubi-ember);
    color: white;
    transform: translateY(-2px);
}

.language-bars {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.lang-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-bar span {
    width: 80px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.fill {
    height: 100%;
    background: var(--marubi-ember);
    border-radius: 4px;
}

.resume-footer-actions {
    margin-top: 3rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.ref-note {
    color: rgba(255, 255, 255, 0.4);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
}

.footer-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* ===== MOBILE DROPDOWN STYLES ===== */
@media (max-width: 768px) {
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 0.75rem !important;
    }

    .page-header {
        min-height: auto !important;
        padding: 70px 0 25px !important;
        text-align: center !important;
    }

    .page-title {
        font-size: 1.8rem !important;
        margin-bottom: 0.5rem !important;
    }

    .page-subtitle {
        font-size: 0.9rem !important;
        margin-bottom: 1.25rem !important;
    }

    .header-actions {
        flex-direction: column !important;
        gap: 0.5rem !important;
        max-width: 260px !important;
        margin: 0 auto !important;
    }

    .resume-section {
        padding: 1.5rem 0 !important;
    }

    .resume-container {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
        padding: 0.75rem !important;
    }

    .resume-left,
    .resume-right {
        width: 100% !important;
        padding: 0 !important;
        border: none !important;
    }

    .resume-left {
        border-bottom: 1px solid rgba(204, 47, 1, 0.2) !important;
        padding-bottom: 0.75rem !important;
        margin-bottom: 0.5rem !important;
    }

    .profile-image {
        width: 85px !important;
        height: 85px !important;
    }

    .profile-name .last {
        font-size: 1.3rem !important;
    }

    /* Collapsible sections */
    .resume-block {
        margin-bottom: 0.5rem !important;
        border: 1px solid rgba(204, 47, 1, 0.15) !important;
        border-radius: 6px !important;
        overflow: hidden !important;
    }

    .block-title {
        margin: 0 !important;
        padding: 0.8rem !important;
        font-size: 0.9rem !important;
        cursor: pointer !important;
        position: relative !important;
        background: rgba(204, 47, 1, 0.08) !important;
        border-bottom: 1px solid rgba(204, 47, 1, 0.15) !important;
    }

    .block-title::after {
        content: '\f107';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        position: absolute;
        right: 0.8rem;
        top: 50%;
        transform: translateY(-50%);
        color: var(--marubi-ember);
        transition: transform 0.3s ease;
    }

    .block-title.active::after {
        transform: translateY(-50%) rotate(180deg);
    }

    .block-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
        background: rgba(0, 0, 0, 0.15);
    }

    .block-content.show {
        max-height: 600px;
        overflow-y: auto;
    }

    .contact-list,
    .cert-list,
    .skills-mini,
    .summary-text,
    .exp-item,
    .project-row,
    .achievement-list,
    .skills-grid,
    .language-bars,
    .edu-item {
        padding: 0.75rem !important;
        margin: 0 !important;
    }

    .project-row {
        grid-template-columns: 1fr !important;
        gap: 0.4rem !important;
    }

    .footer-buttons {
        flex-direction: column !important;
        gap: 0.4rem !important;
        max-width: 220px !important;
        margin: 0.75rem auto 0 !important;
    }

    .footer-buttons .btn {
        width: 100% !important;
    }

    .scroll-indicator {
        display: none !important;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes emberPulse {
    0% { opacity: 0.3; }
    50% { opacity: 0.6; }
    100% { opacity: 0.3; }
}

@keyframes slideIn {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}