/* Extracted styles from index.html */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}
body {
    background-color: #0A0118;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(168, 85, 247, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(45, 212, 191, 0.1) 0%, transparent 40%),
        linear-gradient(rgba(168, 85, 247, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(168, 85, 247, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
    min-height: 100vh;
}
.glass-panel {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(25, 10, 50, 0.3);
    border: 1px solid rgba(168, 85, 247, 0.2);
    box-shadow:
        0 10px 30px -10px rgba(0, 0, 0, 0.5),
        inset 0 0 15px rgba(168, 85, 247, 0.05);
    transition: all 0.3s ease;
}
.glass-panel:hover {
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow:
        0 15px 40px -10px rgba(168, 85, 247, 0.2),
        inset 0 0 20px rgba(168, 85, 247, 0.1);
}
.text-glow-purple { text-shadow: 0 0 15px rgba(168, 85, 247, 0.6); }
.text-glow-teal { text-shadow: 0 0 15px rgba(45, 212, 191, 0.6); }
.skill-icon-glow { filter: drop-shadow(0 0 8px currentColor); }
.system-log {
    background: rgba(0, 0, 0, 0.4);
    font-family: 'JetBrains Mono', monospace;
    border-left: 2px solid rgba(45, 212, 191, 0.3);
}

/* Smooth anchor behavior */
html{scroll-behavior:smooth}
/* Offset anchors so fixed navbar doesn't cover section headings */
[id] { scroll-margin-top: 5rem; }
@media (min-width: 768px) { [id] { scroll-margin-top: 6.5rem; } }

/* Project details accordion styling */
details.project summary { list-style: none; display: flex; gap: 1rem; align-items: flex-start; cursor: pointer; }
details.project summary::-webkit-details-marker { display: none; }
details.project summary img { flex-shrink: 0; }
details.project .project-body { max-height: 0; overflow: hidden; transition: max-height 0.32s ease, opacity 0.28s ease; opacity: 0; }
details.project[open] .project-body { max-height: 1200px; opacity: 1; }

/* Modal for project details */
.modal-overlay { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(180deg, rgba(0,0,0,0.45), rgba(0,0,0,0.6)); opacity: 0; pointer-events: none; transition: opacity 0.22s ease; z-index: 60; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal-dialog { background: linear-gradient(180deg, rgba(20,10,40,0.7), rgba(10,2,30,0.85)); padding: 1rem; width: min(920px, calc(100% - 3rem)); max-height: 85vh; overflow: auto; border-radius: 14px; box-shadow: 0 30px 80px rgba(10,8,30,0.7); border: 1px solid rgba(168,85,247,0.12); transform: translateY(10px) scale(0.98); opacity: 0; transition: transform 0.26s cubic-bezier(.2,.9,.2,1), opacity 0.22s ease; }
.modal-overlay.open .modal-dialog { transform: translateY(0) scale(1); opacity: 1; }
.modal-dialog.glass-panel { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.modal-header { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:0.75rem; }
.modal-title { font-family: Space Grotesk, Inter, sans-serif; font-weight:800; font-size:1.125rem; color: #FFF; display:flex; align-items:center; gap:0.6rem; }
.modal-body img { max-height: 220px; object-fit: cover; border-radius:8px; }
.modal-close { background: linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02)); border: 1px solid rgba(255,255,255,0.04); color: rgba(255,255,255,0.9); cursor: pointer; font-size: 1rem; padding:6px 8px; border-radius:10px; }
body.modal-open { overflow: hidden; }

/* Modal content enhancements */
.modal-body { color: rgba(255,255,255,0.9); line-height:1.4; }
.modal-body .tech-badges { display:flex; gap:0.5rem; flex-wrap:wrap; margin:0.5rem 0 1rem; }
.modal-body .tech-badges .badge { background: linear-gradient(90deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02)); border:1px solid rgba(255,255,255,0.04); padding:6px 10px; border-radius:999px; font-size:0.75rem; color:rgba(255,255,255,0.9); display:inline-flex; gap:0.5rem; align-items:center; }
.modal-body .images-grid { display:grid; grid-template-columns: repeat(2, 1fr); gap:0.5rem; justify-items:center; align-items:center; }
.modal-body .images-grid img { width:100%; height:auto; max-height:320px; object-fit:contain; border-radius:8px; border:1px solid rgba(255,255,255,0.04); }
.modal-body .images-grid video { grid-column: 1 / -1; justify-self: center; width:100%; max-width:560px; height:auto; border-radius:8px; object-fit:cover; border:1px solid rgba(255,255,255,0.04); }
.modal-footer { margin-top:1rem; display:flex; gap:0.5rem; justify-content:space-between; align-items:center; }
.modal-cta { background: linear-gradient(90deg, #A855F7, #2DD4BF); color:#000; padding:8px 12px; border-radius:10px; font-weight:700; border:none; cursor:pointer; }

@media (max-width: 640px) {
    .modal-body .images-grid img { height:100px; }
}

@media (max-width: 640px) {
    .modal-body .images-grid { grid-template-columns: 1fr; }
    .modal-body .images-grid video { max-width: 100%; }
}

/* Small tech thumbnails used inside project detail views */
.bit-images { display:flex; gap:0.5rem; align-items:center; }
.bit-images img { width:44px; height:36px; object-fit:cover; border-radius:8px; border:1px solid rgba(255,255,255,0.04); box-shadow: 0 6px 18px rgba(0,0,0,0.45); }

/* Generic badge used both in modal and inline project bodies */
.badge { display:inline-flex; align-items:center; gap:0.5rem; background: linear-gradient(90deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02)); border:1px solid rgba(255,255,255,0.04); padding:6px 10px; border-radius:999px; font-size:0.78rem; color:rgba(255,255,255,0.92); }
.badge .material-symbols-outlined { font-size:14px; color: rgba(255,255,255,0.9); }

.project-title { margin-left: 0.15rem; }
details.project[open] summary .material-symbols-outlined { transform: rotate(180deg); transition: transform 0.28s ease; }

/* Center media (images/video) inside project body images-grid */
.project-body .images-grid { display:flex; justify-content:center; gap:0.5rem; }
.project-body .images-grid img,
.project-body .images-grid video { max-width: 560px; width:100%; height:auto; border-radius:8px; object-fit:cover; border:1px solid rgba(255,255,255,0.04); }

@media (max-width: 640px) {
    .project-body .images-grid img,
    .project-body .images-grid video { max-width: 100%; height:auto; }
}

