
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', sans-serif; }

:root {
    --accent-color: #00f2ff; 
    --accent-glow: rgba(0, 242, 255, 0.5);
}

.fe-body { background: #050505; color: #fff; min-height: 100vh; }

.fe-nav {
    position: fixed; top: 0; width: 100%; padding: 20px 50px;
    display: flex; justify-content: space-between; align-items: center;
    z-index: 100; background: rgba(5,5,5,0.8); backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.logo { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.5rem; letter-spacing: 2px; }
.logo span { color: var(--accent-color); }

.fe-hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.4), #050505), url('') center/cover no-repeat;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center; padding: 20px;
}
.fe-role { color: var(--accent-color); letter-spacing: 4px; text-transform: uppercase; margin-bottom: 15px; font-size: 0.9rem; text-shadow: 0 0 10px var(--accent-glow); }
.fe-name { font-family: 'Space Grotesk', sans-serif; font-size: 5rem; font-weight: 700; line-height: 1; margin-bottom: 20px; }
.fe-bio { max-width: 600px; color: #aaa; margin-bottom: 40px; line-height: 1.6; }
.btn-contact { border: 1px solid var(--accent-color); color: var(--accent-color); padding: 15px 40px; font-size: 1rem; text-transform: uppercase; letter-spacing: 1px; text-decoration: none; display: inline-block; font-weight: 700; }

.fe-about-section { padding: 100px 20px; background: #0a0a0a; border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05); }

.about-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 250px 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.about-img-col {
    display: flex;
    justify-content: center;
    align-items: center;
    position: sticky;
    top: 100px;
}

.about-img-col img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 16px;
    border: 2px solid var(--accent-color);
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.about-img-col img:hover { transform: translateY(-5px) scale(1.02); }

.about-placeholder {
    width: 100%; height: 400px; background: #1a1a1a; border-radius: 16px;
    display: flex; align-items: center; justify-content: center; border: 2px dashed #444; color: #555;
}

.about-text-col h2 { font-family: 'Space Grotesk', sans-serif; font-size: 2.5rem; margin-bottom: 30px; color: #fff; }
.about-text-col h2 span { color: var(--accent-color); }
.about-text-col p { color: #aaa; line-height: 1.8; font-size: 1.1rem; margin-bottom: 20px; }

.skills-col h3 { font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; margin-bottom: 30px; color: #fff; text-transform: uppercase; letter-spacing: 2px; }
.skills-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 20px; }
.skill-item { background: #111; border: 1px solid rgba(255,255,255,0.1); padding: 20px; text-align: center; border-radius: 8px; cursor: default; }
.skill-item i { font-size: 2rem; color: var(--accent-color); margin-bottom: 10px; display: block; }
.skill-item span { display: block; color: #ccc; font-size: 0.9rem; font-weight: 600; }


.fe-container { max-width: 1200px; margin: 0 auto; padding: 100px 20px; }
.fe-section-title { font-family: 'Space Grotesk'; font-size: 2.5rem; margin-bottom: 60px; border-left: 4px solid var(--accent-color); padding-left: 20px; }
.fe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 40px; }
.fe-card { cursor: pointer; }
.fe-img-wrap { overflow: hidden; aspect-ratio: 4/3; margin-bottom: 20px; border-radius: 4px; }
.fe-img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: transform 0.3s ease, filter 0.3s ease; }
.fe-card:hover .fe-img { transform: scale(1.05); filter: grayscale(0%); }
.fe-cat { color: var(--accent-color); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }
.fe-p-title { font-family: 'Space Grotesk'; font-size: 1.5rem; margin: 10px 0; }
.fe-p-desc { color: #888; font-size: 0.9rem; line-height: 1.5; }


.fe-contact-section { padding: 100px 20px; background: #050505; text-align: center; border-top: 1px solid rgba(255,255,255,0.05); }
.contact-container { max-width: 800px; margin: 0 auto; }
.contact-title { font-family: 'Space Grotesk'; font-size: 3rem; margin-bottom: 20px; color: #fff; }
.contact-subtitle { color: #aaa; font-size: 1.2rem; margin-bottom: 50px; line-height: 1.6; }
.contact-info-box { background: #111; border: 1px solid rgba(255,255,255,0.1); padding: 40px; border-radius: 8px; margin-bottom: 40px; }
.contact-row { display: flex; align-items: center; justify-content: center; gap: 20px; margin: 20px 0; font-size: 1.5rem; color: #fff; text-decoration: none; transition: color 0.3s ease; }
.contact-row:hover { color: var(--accent-color); transform: translateX(10px); }
.contact-row i { width: 30px; text-align: center; }
.social-links { display: flex; justify-content: center; gap: 30px; margin-top: 40px; }
.social-icon { font-size: 2rem; color: #666; transition: color 0.3s ease, transform 0.3s ease; }
.social-icon:hover { color: var(--accent-color); transform: scale(1.2); }


.fe-footer { padding: 50px; text-align: center; border-top: 1px solid rgba(255,255,255,0.1); color: #666; font-size: 0.9rem; }


.admin-trigger { position: fixed; bottom: 20px; right: 20px; color: white; font-size: 20px; opacity: 0.25; z-index: 999; transition: all 0.3s ease; }
.admin-trigger:hover { opacity: 1; transform: scale(1.1); color: var(--accent-color); }
.btn-login { display: none; }


.admin-layout { display: flex; height: 100vh; background: #f0f0f1; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: #3c434a; overflow: hidden; }

.admin-sidebar { 
    width: 160px; 
    background: #1d2327; 
    color: #fff; 
    display: flex; 
    flex-direction: column; 
    flex-shrink: 0; 
    transition: transform 0.3s ease; 
    z-index: 1000;
}

.admin-logo { height: 50px; display: flex; align-items: center; justify-content: center; background: #000; font-weight: 700; }
.admin-logo span { color: #2271b1; }
.admin-menu { flex: 1; padding-top: 10px; overflow-y: auto; }
.admin-menu a { display: block; padding: 10px 15px; color: #fff; font-size: 13px; transition: 0.2s; border-left: 4px solid transparent; }
.admin-menu a:hover, .admin-menu a.active { background: #2c3338; color: #fff; }
.admin-menu a.active { border-left-color: #2271b1; font-weight: 600; }
.admin-menu i { width: 20px; text-align: center; margin-right: 10px; opacity: 0.7; }
.admin-user { padding: 15px; border-top: 1px solid #2c3338; }
.btn-logout { color: #f0f0f1; font-size: 13px; display: block; width: 100%; text-align: left; background: none; border: none; cursor: pointer; }

.admin-main { flex: 1; overflow-y: auto; padding: 30px 40px; position: relative; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; flex-wrap: wrap; gap: 15px; }
.admin-title { font-size: 23px; font-weight: 400; margin: 0; padding: 9px 0 4px; line-height: 1.3; }

.scms-card { background: #fff; border: 1px solid #c3c4c7; padding: 0; box-shadow: 0 1px 1px rgba(0,0,0,.04); margin-bottom: 20px; }
.scms-body { padding: 20px; }
.scms-header { padding: 12px 20px; border-bottom: 1px solid #c3c4c7; font-weight: 600; background: #fff; display: flex; justify-content: space-between; align-items: center; }

.form-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.form-table td { padding: 15px 10px; vertical-align: top; }
.form-table label { display: block; font-weight: 600; margin-bottom: 5px; font-size: 14px; }
.regular-text { width: 100%; max-width: 400px; padding: 6px 8px; border: 1px solid #8c8f94; font-size: 14px; line-height: 2; transition: border-color 0.3s ease; }
.large-text { width: 100%; min-height: 100px; padding: 10px; border: 1px solid #8c8f94; font-size: 14px; }


.button { display: inline-block; text-decoration: none; font-size: 13px; line-height: 2.15384615; min-height: 30px; margin: 0; padding: 0 10px; cursor: pointer; border-width: 1px; border-style: solid; border-radius: 3px; white-space: nowrap; box-sizing: border-box; transition: background-color 0.2s; }
.button-primary { background: #2271b1; border-color: #2271b1; color: #fff; }
.button-primary:hover { background: #135e96; border-color: #135e96; }
.button-secondary { background: #f6f7f7; border-color: #c3c4c7; color: #2271b1; }
.button-secondary:hover { background: #f0f0f1; border-color: #8c8f94; color: #135e96; }


.scms-list-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #c3c4c7; box-shadow: 0 1px 1px rgba(0,0,0,.04); }
.scms-list-table th { text-align: left; padding: 8px 10px; font-size: 13px; background: #f0f0f1; border-bottom: 1px solid #c3c4c7; }
.scms-list-table td { padding: 10px; border-bottom: 1px solid #c3c4c7; font-size: 13px; }
.row-actions { font-size: 12px; color: #ddd; margin-top: 5px; }
.row-actions span { color: #a7aaad; margin: 0 3px; }
.row-actions a { text-decoration: none; color: #2271b1; }

.login-wrap { height: 100vh; background: #f0f0f1; display: flex; align-items: center; justify-content: center; }
.login-box { width: 320px; padding: 26px 24px 46px; background: #fff; border: 1px solid #c3c4c7; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.login-logo { text-align: center; margin-bottom: 20px; font-weight: 700; font-size: 24px; }

.notice { background: #fff; border-left: 4px solid #72aee6; box-shadow: 0 1px 1px 0 rgba(0,0,0,.1); margin: 5px 0 15px; padding: 10px 12px; }
.notice-success { border-left-color: #00a32a; }
.notice-error { border-left-color: #d63638; }


.icon-picker-btn { background: #f0f0f1; border: 1px solid #ccc; padding: 5px 10px; cursor: pointer; font-size: 12px; display: inline-block; margin-top: 5px; }
.icon-picker-modal { display: none; position: fixed; z-index: 3000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.8); backdrop-filter: blur(5px); }
.icon-picker-content { background-color: #fff; margin: 5% auto; padding: 20px; border: 1px solid #888; width: 90%; max-width: 800px; border-radius: 8px; box-shadow: 0 0 20px #000; }
.icon-search { width: 100%; padding: 10px; margin-bottom: 20px; border: 1px solid #ddd; border-radius: 4px; font-size: 16px; box-sizing: border-box; }
.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(60px, 1fr)); gap: 10px; max-height: 400px; overflow-y: auto; }
.icon-item { border: 1px solid #eee; padding: 10px; text-align: center; cursor: pointer; border-radius: 4px; font-size: 24px; color: #333; transition: 0.2s; }
.icon-item:hover { background-color: var(--accent-color); color: #fff; border-color: var(--accent-color); }
.close-picker { float: right; font-size: 28px; font-weight: bold; cursor: pointer; color: #aaa; }
.close-picker:hover { color: #000; }


.modal { display: none; position: fixed; z-index: 2000; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.9); backdrop-filter: blur(5px); opacity: 0; }
.modal.show { display: flex; align-items: center; justify-content: center; opacity: 1; }
.modal-content { background-color: #111; margin: auto; width: 90%; max-width: 1200px; border: 1px solid var(--accent-color); box-shadow: 0 0 30px rgba(0,0,0,0.8); position: relative; display: flex; flex-direction: row; overflow: hidden; border-radius: 4px; animation: slideUp 0.4s ease; }
.modal-left { flex: 2; background: #000; display: flex; align-items: center; justify-content: center; }
.modal-left img { width: 100%; height: 100%; object-fit: contain; max-height: 85vh; display: block; }
.modal-right { flex: 1; padding: 40px; display: flex; flex-direction: column; justify-content: center; border-left: 1px solid rgba(255,255,255,0.1); min-width: 300px; }
.modal-cat { color: var(--accent-color); text-transform: uppercase; letter-spacing: 2px; font-size: 0.9rem; margin-bottom: 10px; font-weight: bold; }
.modal-title { font-family: 'Space Grotesk'; font-size: 2.5rem; margin-bottom: 20px; line-height: 1.1; }
.modal-desc { color: #ccc; line-height: 1.6; font-size: 1rem; margin-bottom: 30px; }
.close-modal { position: absolute; top: 15px; right: 20px; color: #fff; font-size: 30px; font-weight: bold; cursor: pointer; z-index: 2001; }
.close-modal:hover { color: var(--accent-color); }
@keyframes slideUp { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }


a, button, .button, .btn-login, .btn-contact, .btn-logout, .admin-trigger { transition: all 0.3s ease; }
input[type="text"], input[type="password"], input[type="email"], input[type="url"], input[type="search"], textarea, select { transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease; }
.admin-menu a { transition: background-color 0.3s ease, color 0.3s ease, border-left-color 0.3s ease; }
.scms-list-table tr, .scms-list-table td { transition: background-color 0.3s ease; }
.fe-card, .fe-img, .fe-img-wrap { transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease; }
.skill-item, .skill-item i { transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease; }
.social-icon { transition: color 0.3s ease, transform 0.3s ease; }


@media screen and (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; text-align: center; }
    .about-img-col { position: static; margin-bottom: 30px; }
    .about-img-col img { max-width: 250px; height: 250px; }
    .skills-list { justify-content: center; }
}

@media screen and (max-width: 768px) {

    .modal-content { flex-direction: column; height: 90vh; overflow-y: auto; }
    .modal-left { flex: 1; min-height: 40vh; }
    .modal-left img { height: auto; max-height: 50vh; }
    .modal-right { flex: 1; padding: 20px; }
    .modal-title { font-size: 1.8rem; }
    .contact-row { font-size: 1.2rem; flex-direction: column; gap: 10px; }
    

    .admin-layout { flex-direction: column; }
    

    .mobile-toggle { display: block; font-size: 20px; cursor: pointer; color: #1d2327; margin-right: 15px; }
    
    .admin-sidebar { 
        position: fixed; 
        left: -160px; 
        top: 0; 
        bottom: 0; 
        height: 100vh;
        width: 160px; 
        z-index: 2000; 
        box-shadow: 2px 0 5px rgba(0,0,0,0.2);
    }
    
    .admin-sidebar.active { 
        left: 0; 
    }
    
    .sidebar-overlay {
        display: block; 
        position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
        background: rgba(0,0,0,0.5); z-index: 1999; 
        opacity: 0; pointer-events: none; 
        transition: opacity 0.3s ease;
    }
    .sidebar-overlay.active { opacity: 1; pointer-events: auto; }

    .admin-main { padding: 15px; width: 100%; }
    .admin-header { flex-direction: column; align-items: flex-start; }
}


.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #fff;
    border: 1px solid #c3c4c7;
    padding: 20px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.stat-icon {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #f0f0f1;
    color: #2271b1;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
}

.stat-info h3 { margin: 0; font-size: 24px; font-weight: 700; color: #1d2327; }
.stat-info p { margin: 0; font-size: 13px; color: #646970; }

.chart-container {
    height: 300px;
    width: 100%;
    position: relative;
}


details { margin-bottom: 10px; border: 1px solid #c3c4c7; border-radius: 4px; background: #fff; }
summary { padding: 12px 20px; cursor: pointer; font-weight: 600; background: #f6f7f7; list-style: none; display: flex; justify-content: space-between; align-items: center; }
summary:hover { background: #f0f0f1; }
summary::after { content: '+'; font-weight: bold; font-size: 1.2rem; }
details[open] summary::after { content: '-'; }
.accordion-body { padding: 20px; border-top: 1px solid #c3c4c7; }

ul.draggable-list { list-style: none; padding: 0; margin: 0; width: 100%; }
.sortable-row { display: flex; align-items: center; width: 100%; max-width: 100%; background: #fff; border: 1px solid #e0e0e0; margin-bottom: 8px; padding: 10px 15px; border-radius: 4px; cursor: grab; transition: all 0.2s ease; box-sizing: border-box; }
.sortable-row.dragging { opacity: 0.5; background: #f9f9f9; border: 2px dashed #2271b1; }
.drag-handle { margin-right: 15px; color: #aaa; cursor: grab; font-size: 18px; flex-shrink: 0; }
.row-content { flex: 1; display: flex; align-items: center; gap: 15px; min-width: 0; }
.row-img { width: 50px; height: 50px; object-fit: cover; border-radius: 4px; border: 1px solid #eee; flex-shrink: 0; }
.row-info { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.row-info div { font-weight: 600; font-size: 15px; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-cat { font-size: 12px; color: #666; margin-top: 2px; }
.row-actions { margin-left: auto; display: flex; gap: 10px; flex-shrink: 0; }
.row-actions a { text-decoration: none; font-size: 13px; cursor: pointer; }
.row-actions .edit { color: #2271b1; }
.row-actions .del { color: #d63638; }
.save-order-container { display: none; align-items: center; justify-content: center; margin-top: 20px; padding: 15px; background: #fff3cd; border: 1px solid #ffecb5; border-radius: 4px; color: #856404; }
.save-order-btn { background: #d63638; color: #fff; border: none; padding: 8px 16px; border-radius: 3px; cursor: pointer; font-weight: 600; }