/* assets/css/style.css - Shared styles for every public page (layout, navigation, hero, cards, footer, floating menu, modal) */

/* ----- RESET & BASE ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* LIGHT THEME (Default) */
:root {
    --bg-gradient-1: #eef3f8;
    --bg-gradient-2: #dce5ed;
    --text-main: #0b1f2f;
    --text-secondary: #1e405e;
    --card-bg: rgba(255, 255, 255, 0.45);
    --card-bg-hover: rgba(255, 255, 255, 0.55);
    --border-color: rgba(255, 255, 255, 0.7);
    --footer-border: rgba(0, 30, 60, 0.06);
    --btn-bg: #ffffff;
    --btn-color: #003d5e;
    --shadow-color: rgba(0, 30, 60, 0.08);
    --badge-bg: rgba(10, 40, 70, 0.06);
    --badge-border: rgba(0, 30, 60, 0.06);
    --nav-active-bg: #0b2a44;
    --nav-active-text: #ffffff;
    --modal-bg: #ffffff;
    --modal-overlay: rgba(0, 0, 0, 0.5);
    --phone-btn-bg: #f3f6f9;
    --phone-btn-border: #e2e8f0;
    --number-text: #0b2a44;
    --status-bg-completed: #d4edda;
    --status-text-completed: #155724;
    --status-bg-progress: #fff3cd;
    --status-text-progress: #856404;
}

/* DARK THEME Variables */
body.dark-mode {
    --bg-gradient-1: #1a1e24;
    --bg-gradient-2: #0e1217;
    --text-main: #e4edf5;
    --text-secondary: #a0b8cc;
    --card-bg: rgba(20, 30, 40, 0.85);
    --card-bg-hover: rgba(30, 45, 60, 0.9);
    --border-color: rgba(255, 255, 255, 0.08);
    --footer-border: rgba(255, 255, 255, 0.06);
    --btn-bg: #2a3b4c;
    --btn-color: #7aa9d0;
    --shadow-color: rgba(0, 0, 0, 0.5);
    --badge-bg: rgba(255, 255, 255, 0.05);
    --badge-border: rgba(255, 255, 255, 0.08);
    --nav-active-bg: #1f6390;
    --nav-active-text: #ffffff;
    --modal-bg: #1e2a36;
    --modal-overlay: rgba(0, 0, 0, 0.8);
    --phone-btn-bg: #2a3b4c;
    --phone-btn-border: #3d5568;
    --number-text: #ffffff;
    --status-bg-completed: #1e3a2a;
    --status-text-completed: #8bc99b;
    --status-bg-progress: #3a3a1e;
    --status-text-progress: #dbc98b;
}

body {
    font-family: "Plus Jakarta Sans", sans-serif;
    background: linear-gradient(145deg, var(--bg-gradient-1), var(--bg-gradient-2));
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--text-main);
    padding: 0;
    transition: background 0.3s ease, color 0.3s ease;
}

/* ----- SIDEBAR (mobile) ----- */
.sidebar {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100%;
    background: rgba(10, 30, 50, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 2rem 1.5rem;
    transition: left 0.3s cubic-bezier(0.2, 0.9, 0.3, 1);
    z-index: 999;
    box-shadow: 6px 0 30px rgba(0, 0, 0, 0.25);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}
.sidebar.open { left: 0; }
.sidebar .close-btn {
    background: none; border: none; color: rgba(255, 255, 255, 0.7);
    font-size: 1.8rem; align-self: flex-end; cursor: pointer; margin-bottom: 0.5rem;
}
.sidebar .close-btn:hover { color: white; }
.sidebar .nav-item {
    color: rgba(255, 255, 255, 0.7); text-decoration: none;
    font-weight: 600; font-size: 1.1rem; padding: 0.6rem 0.8rem;
    border-radius: 40px; transition: 0.15s; display: flex; align-items: center;
    gap: 0.8rem; border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.sidebar .nav-item i { width: 1.6rem; color: #7aa9d0; }
.sidebar .nav-item:hover { background: rgba(255, 255, 255, 0.08); color: white; }
.sidebar .nav-item.active { background: rgba(60, 130, 200, 0.25); color: white; }

/* overlay */
.overlay {
    position: fixed; inset: 0; background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(2px); z-index: 998; opacity: 0;
    pointer-events: none; transition: opacity 0.25s;
}
.overlay.active { opacity: 1; pointer-events: auto; }

/* ----- MAIN WRAPPER (MAX WIDTH: 1200px) ----- */
.main-wrapper {
    max-width: 1200px; width: 100%; margin: 0 auto;
    padding: 1.5rem 1.5rem 0.5rem; flex: 1; display: flex;
    flex-direction: column; position: relative;
}

/* ----- NAVIGATION ----- */
.navbar {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.5rem 0.8rem 0.8rem 0.8rem;
    border-bottom: 1px solid var(--footer-border); margin-bottom: 1.5rem; flex-wrap: wrap;
}
.nav-logo {
    font-weight: 800; font-size: 1.6rem;
    background: linear-gradient(135deg, #0b2a44, #1e4b70);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
    letter-spacing: -0.5px;
}
.nav-logo i { -webkit-text-fill-color: #1f6390; margin-right: 0.2rem; }
.nav-links { display: flex; gap: 0.2rem 1.2rem; align-items: center; flex-wrap: wrap; }
.nav-links a {
    text-decoration: none; color: var(--text-secondary); font-weight: 600;
    font-size: 0.95rem; padding: 0.3rem 0.6rem; border-radius: 40px; transition: 0.15s;
}
.nav-links a:hover { background: rgba(0, 40, 80, 0.05); }
.nav-links a.active { background: var(--nav-active-bg); color: var(--nav-active-text); }
.hamburger {
    background: none; border: none; font-size: 1.8rem;
    color: var(--text-main); cursor: pointer; display: none; padding: 0.2rem 0.6rem; border-radius: 30px;
}
.hamburger:hover { background: rgba(0,0,0,0.04); }

/* ----- PAGE HERO ----- */
.hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 3.2rem;
    padding: 2.2rem 2.8rem;
    margin: 0.8rem 0 2rem 0;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: 0 12px 30px -12px rgba(0, 30, 60, 0.08);
}

.hero-text {
    flex: 1 1 280px;
}
.hero-text .greeting {
    font-size: 1rem;
    font-weight: 600;
    color: #1f6390;
    letter-spacing: 0.3px;
}
.hero-text h1 {
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0.2rem 0 0.5rem;
    background: linear-gradient(135deg, #0b2a44, #1e5b85);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-text .subhead {
    font-size: 1.2rem;
    font-weight: 500;
    color: #1e405e;
    margin-bottom: 0.4rem;
}
.hero-text .desc {
    color: #1f4462;
    max-width: 480px;
    font-weight: 400;
    line-height: 1.5;
}
.hero-badge {
    margin-top: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
}
.hero-badge span {
    background: rgba(10, 40, 70, 0.08);
    padding: 0.2rem 1rem;
    border-radius: 40px;
    font-weight: 500;
    font-size: 0.8rem;
}
.hero-avatar {
    flex: 0 0 auto;
    background: rgba(255,255,255,0.3);
    border-radius: 60px;
    padding: 0.8rem 1.8rem;
    border: 1px solid rgba(255,255,255,0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-weight: 600;
}
.hero-avatar i {
    font-size: 2.6rem;
    color: #1f6390;
}

/* ----- PORTFOLIO CARD (PROJECTS GRID) ----- */
.portfolio-card {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 3.2rem;
    padding: 2.2rem 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 20px 40px -16px rgba(0, 30, 60, 0.12);
    margin: 1rem 0 1.8rem;
}

/* PROJECTS GRID & CARD STYLES */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .projects-grid { grid-template-columns: 1fr; }
}

.project-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(4px);
    border-radius: 1.8rem;
    padding: 1.5rem 1.8rem;
    border: 1px solid rgba(255, 255, 255, 0.6);
    transition: 0.2s ease;
    display: flex;
    flex-direction: column;
}
.project-card:hover {
    background: var(--card-bg-hover);
    transform: translateY(-4px);
    box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.1);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.4rem;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.2rem;
}
.project-company {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
    display: block;
    margin-bottom: 0.4rem;
}
.project-company i { color: #1f6390; margin-right: 0.3rem; }

.project-status {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.7rem;
    border-radius: 40px;
    text-transform: uppercase;
    white-space: nowrap;
}
.status-completed {
    background: var(--status-bg-completed);
    color: var(--status-text-completed);
}
.status-progress {
    background: var(--status-bg-progress);
    color: var(--status-text-progress);
}

.project-category {
    font-size: 0.75rem;
    font-weight: 600;
    color: #1f6390;
    background: rgba(31, 99, 144, 0.1);
    display: inline-block;
    padding: 0.1rem 0.8rem;
    border-radius: 30px;
    margin-bottom: 0.6rem;
}

.project-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.8rem;
    flex-grow: 1;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
}
.project-tags span {
    background: var(--badge-bg);
    border: 1px solid var(--badge-border);
    padding: 0.1rem 0.7rem;
    border-radius: 30px;
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.project-year {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    font-weight: 500;
}
.project-year i { color: #1f6390; margin-right: 0.3rem; }

/* "Visit Project" Button Styles */
.visit-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: #1f6390;
    color: #ffffff;
    padding: 0.3rem 1.2rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    align-self: flex-start;
}
.visit-link-btn i { font-size: 0.8rem; }
.visit-link-btn:hover {
    background: transparent;
    color: #1f6390;
    border-color: #1f6390;
    transform: translateX(5px);
}

/* ----- FOOTER ----- */
.footer {
    margin-top: 1.2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem 2.2rem;
    padding: 1.2rem 1rem 0.8rem;
    border-top: 1px solid var(--footer-border);
    font-size: 0.85rem;
    color: var(--text-secondary);
}
.footer i {
    color: #1f6390;
    margin-right: 0.3rem;
    width: 1.2rem;
}

/* ----- FLOATING CENTER-RIGHT BUTTONS ----- */
.floating-menu {
    position: fixed;
    top: 50%;
    right: 30px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.floating-btn {
    position: relative;
    width: 55px;
    height: 55px;
    background-color: var(--btn-bg);
    border-radius: 50%;
    border: none;
    color: var(--btn-color);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0px 4px 12px var(--shadow-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s, color 0.3s;
}

.floating-btn:hover {
    transform: scale(1.08);
    box-shadow: 0px 6px 18px rgba(0, 0, 0, 0.15);
}

/* Tooltip styles */
.floating-btn .tooltip-text {
    visibility: hidden;
    width: auto;
    white-space: nowrap;
    background-color: #1e2f3d;
    color: #ffffff;
    text-align: center;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    position: absolute;
    right: 65px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.floating-btn .tooltip-text::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 100%;
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent transparent transparent #1e2f3d;
}
.floating-btn:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* ----- CONTACT MODAL ----- */
.modal-overlay {
    position: fixed; inset: 0; background: var(--modal-overlay);
    backdrop-filter: blur(4px); z-index: 9999; display: none;
    justify-content: center; align-items: center; opacity: 0;
    transition: opacity 0.3s ease;
}
.modal-overlay.active { display: flex; opacity: 1; }
.modal-content {
    background: var(--modal-bg); border-radius: 2rem;
    padding: 2.5rem 3rem; max-width: 450px; width: 90%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative; text-align: center; color: var(--text-main);
    transform: scale(0.95); transition: transform 0.3s ease;
}
.modal-overlay.active .modal-content { transform: scale(1); }
.modal-content h2 {
    font-size: 1.5rem; margin-bottom: 0.5rem; color: var(--text-main);
}
.modal-content p {
    font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 1.5rem;
}
.modal-close {
    position: absolute; top: 15px; right: 20px; background: none; border: none;
    font-size: 1.5rem; color: var(--text-secondary); cursor: pointer; transition: 0.2s;
}
.modal-close:hover { color: var(--text-main); transform: rotate(90deg); }

.phone-option {
    display: flex; justify-content: space-between; align-items: center;
    background: var(--phone-btn-bg); padding: 1rem 1.5rem;
    border-radius: 1rem; border: 1px solid var(--phone-btn-border);
    margin-bottom: 1rem; transition: 0.2s;
}
.phone-option:hover { border-color: #1f6390; transform: translateX(-5px); }
.phone-option .info { 
    display: flex; align-items: center; gap: 1rem; 
    flex: 1; min-width: 0;
}
.phone-option .info i { font-size: 1.2rem; color: #1f6390; width: 24px; }
.phone-option .info .phone-number {
    font-weight: 600; font-size: 0.9rem; color: var(--number-text);
    white-space: nowrap;
}
.phone-actions { display: flex; gap: 8px; }
.phone-actions button, .phone-actions a {
    background: transparent; border: 1px solid var(--phone-btn-border);
    border-radius: 50%; width: 36px; height: 36px; display: flex;
    align-items: center; justify-content: center; color: var(--text-secondary);
    cursor: pointer; transition: 0.2s; text-decoration: none;
}
.phone-actions button:hover, .phone-actions a:hover {
    background: #1f6390; color: white; border-color: #1f6390;
}

/* ----- RESPONSIVE ----- */
@media (max-width: 680px) {
    .hamburger { display: block; }
    .nav-links { display: none; }
    .navbar { padding: 0.2rem 0.2rem 0.6rem; }
    .hero-text h1 { font-size: 2.2rem; }
    .portfolio-card { padding: 1.5rem; }
    
    .floating-menu {
        right: 15px;
        gap: 12px;
    }
    .floating-btn {
        width: 48px;
        height: 48px;
        font-size: 17px;
    }
    .floating-btn .tooltip-text {
        display: none;
    }
    .modal-content { padding: 1.5rem; width: 95%; max-width: 380px; }
    .phone-option { 
        flex-direction: column; gap: 12px; align-items: stretch; padding: 0.8rem 1rem;
    }
    .phone-option .info { justify-content: center; }
    .phone-option .info .phone-number { white-space: normal; font-size: 0.85rem; text-align: center; }
    .phone-actions { justify-content: center; }
}

@media (min-width: 681px) {
    .sidebar, .overlay { display: none !important; }
}

/* Toast notification for copying */
.toast {
    position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%) translateY(80px);
    background: #1e2f3d; color: white; padding: 10px 24px; border-radius: 40px;
    font-size: 0.9rem; opacity: 0; pointer-events: none;
    transition: all 0.4s ease; z-index: 99999; box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ----- LINKS INSIDE CARDS (detail pages by hash_id) ----- */
.project-title a,
.project-company a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}
.project-title a:hover,
.project-company a:hover { color: #1f6390; }
body.dark-mode .project-title a:hover,
body.dark-mode .project-company a:hover { color: #7aa9d0; }

.project-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}
/* Slightly tighter so both buttons fit on one line in a 340px card */
.project-actions .visit-link-btn,
.project-actions .details-link-btn { padding: 0.3rem 0.9rem; }

/* "View Details" outline button, pairs with .visit-link-btn */
.details-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    color: #1f6390;
    padding: 0.3rem 1.2rem;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    border: 1px solid #1f6390;
    align-self: flex-start;
}
.details-link-btn i { font-size: 0.8rem; }
.details-link-btn:hover {
    background: #1f6390;
    color: #ffffff;
    transform: translateX(5px);
}
body.dark-mode .details-link-btn { color: #7aa9d0; border-color: #7aa9d0; }
body.dark-mode .details-link-btn:hover { background: #1f6390; border-color: #1f6390; color: #ffffff; }

/* Section heading inside a portfolio card (Experience page) */
.section-title {
    font-size: 1.4rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.section-title i { color: #1f6390; }
.projects-grid + .section-title,
.empty-state + .section-title { margin-top: 2.5rem; }

.empty-state {
    text-align: center;
    color: var(--text-secondary);
    padding: 2rem 1rem;
    font-weight: 500;
}
.empty-state i { display: block; font-size: 2rem; color: #1f6390; margin-bottom: 0.6rem; }

/* ----- ALERTS (form results) ----- */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.8rem 1.2rem;
    border-radius: 1.2rem;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1.2rem;
    border: 1px solid transparent;
}
.alert i { margin-top: 0.15rem; }
.alert-success { background: var(--status-bg-completed); color: var(--status-text-completed); }
.alert-error { background: #f8d7da; color: #842029; }
body.dark-mode .alert-error { background: #3a1e22; color: #e6a3aa; }

/* Visually hidden but readable by screen readers */
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ----- DARK MODE ----- */
/* Many light-theme surfaces above use fixed white glass; in dark mode they switch
   to dark glass so text keeps its contrast. */
body.dark-mode .nav-logo {
    background: linear-gradient(135deg, #e4edf5, #7aa9d0);
    -webkit-background-clip: text; background-clip: text;
}
body.dark-mode .nav-logo i { -webkit-text-fill-color: #7aa9d0; }
body.dark-mode .nav-links a:hover { background: rgba(255, 255, 255, 0.06); }
body.dark-mode .hamburger:hover { background: rgba(255, 255, 255, 0.06); }

body.dark-mode .hero {
    background: var(--card-bg);
    border-color: var(--border-color);
    box-shadow: 0 12px 30px -12px var(--shadow-color);
}
body.dark-mode .hero-text .greeting { color: #7aa9d0; }
body.dark-mode .hero-text h1 {
    background: linear-gradient(135deg, #e4edf5, #7aa9d0);
    -webkit-background-clip: text; background-clip: text;
}
body.dark-mode .hero-text .subhead,
body.dark-mode .hero-text .desc { color: var(--text-secondary); }
body.dark-mode .hero-badge span { background: rgba(255, 255, 255, 0.06); color: var(--text-main); }
body.dark-mode .hero-avatar {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}
body.dark-mode .hero-avatar i { color: #7aa9d0; }

body.dark-mode .portfolio-card {
    background: var(--card-bg);
    border-color: var(--border-color);
    box-shadow: 0 20px 40px -16px var(--shadow-color);
}
body.dark-mode .project-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}
body.dark-mode .project-card:hover { background: rgba(255, 255, 255, 0.07); box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.5); }
body.dark-mode .project-company i,
body.dark-mode .project-year i,
body.dark-mode .footer i,
body.dark-mode .section-title i,
body.dark-mode .empty-state i { color: #7aa9d0; }
body.dark-mode .project-category { color: #8fbbe0; background: rgba(122, 169, 208, 0.12); }
body.dark-mode .visit-link-btn:hover { color: #7aa9d0; border-color: #7aa9d0; }

/* ----- SMALL SCREENS ----- */
/* Cards in a grid may shrink below their content instead of pushing the page wider */
.projects-grid > *,
.certs-grid > *,
.detail-grid > * { min-width: 0; }
.project-title,
.cert-title,
.hero-text h1 { overflow-wrap: anywhere; }

@media (max-width: 680px) {
    /* The four round buttons become one bar at the bottom centre,
       so they never cover text or cards on the right edge */
    body { padding-bottom: 84px; }
    .floating-menu {
        top: auto;
        bottom: 14px;
        right: 50%;
        transform: translateX(50%);
        flex-direction: row;
        gap: 10px;
        padding: 7px;
        border-radius: 40px;
        background: var(--card-bg);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border: 1px solid var(--border-color);
        box-shadow: 0 12px 30px -10px rgba(0, 30, 60, 0.35);
    }
    .floating-btn { width: 44px; height: 44px; font-size: 16px; box-shadow: none; }
    .floating-btn:hover { transform: scale(1.05); }
    .toast { bottom: 96px; }

    /* Status pill drops below the title when there is no room beside it */
    .project-header { flex-wrap: wrap; gap: 0.4rem 0.6rem; }
    .project-actions .visit-link-btn,
    .project-actions .details-link-btn { flex: 1 1 auto; justify-content: center; }
    .hero-avatar { max-width: 100%; }
    .breadcrumb { margin-left: 0; }
}

@media (max-width: 400px) {
    .main-wrapper { padding: 1rem 0.9rem 0.5rem; }
    .navbar { padding: 0.2rem 0.2rem 0.6rem; }
    .nav-logo { font-size: 1.35rem; }
    .hero { padding: 1.4rem 1.2rem; border-radius: 2rem; }
    .hero-text h1 { font-size: 1.9rem; }
    .portfolio-card, .certs-card, .contact-card { padding: 1.1rem; border-radius: 2rem; }
    .project-card { padding: 1.2rem 1.1rem; }
    .floating-btn { width: 40px; height: 40px; font-size: 15px; }
    .footer { gap: 0.4rem 1rem; font-size: 0.8rem; }
}
