/* Minimalist Starry Cyberpunk Theme inspired by utkusen.com */

:root {
    --color: #b0c4de;              /* Light blue-grey text */
    --background-color: #02040a;   /* Deep space black-blue */
    --theme-color: #4da3ff;        /* Electric blue accent */
    --theme-color-hover: #78b8ff;
    --border-color: #1c2e4a;       /* Subtle dark blue borders */
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--background-color);
    color: var(--color);
    font-family: 'Source Code Pro', monospace;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Starry background effect */
body::before {
    content: " ";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.9) 0px, rgba(255, 255, 255, 0.9) 2px, transparent 4px),
        radial-gradient(circle at 28% 32%, rgba(255, 255, 255, 0.85) 0px, rgba(255, 255, 255, 0.85) 1.5px, transparent 3px),
        radial-gradient(circle at 42% 12%, rgba(255, 255, 255, 0.95) 0px, rgba(255, 255, 255, 0.95) 3px, transparent 5.5px),
        radial-gradient(circle at 64% 52%, rgba(255, 255, 255, 0.85) 0px, rgba(255, 255, 255, 0.85) 2.5px, transparent 4.5px),
        radial-gradient(circle at 82% 22%, rgba(255, 255, 255, 0.9) 0px, rgba(255, 255, 255, 0.9) 3.5px, transparent 6px),
        radial-gradient(circle at 15% 75%, rgba(255, 255, 255, 0.8) 0px, rgba(255, 255, 255, 0.8) 2px, transparent 4px),
        radial-gradient(circle at 50% 82%, rgba(255, 255, 255, 0.95) 0px, rgba(255, 255, 255, 0.95) 3.5px, transparent 6.5px),
        radial-gradient(circle at 73% 85%, rgba(255, 255, 255, 0.8) 0px, rgba(255, 255, 255, 0.8) 2px, transparent 4.5px),
        radial-gradient(circle at 91% 68%, rgba(255, 255, 255, 0.9) 0px, rgba(255, 255, 255, 0.9) 2.5px, transparent 5px),
        radial-gradient(circle at 35% 60%, rgba(255, 255, 255, 0.75) 0px, rgba(255, 255, 255, 0.75) 1.5px, transparent 3px),
        radial-gradient(circle at 58% 28%, rgba(255, 255, 255, 0.8) 0px, rgba(255, 255, 255, 0.8) 2px, transparent 4px),
        radial-gradient(circle at 85% 78%, rgba(255, 255, 255, 0.95) 0px, rgba(255, 255, 255, 0.95) 3px, transparent 5.5px);
    background-size: 650px 650px;
    z-index: -1;
    opacity: 0.9;
}

/* Red-pink cyber glow at the top */
body::after {
    content: "";
    position: fixed;
    top: -50%;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 0%, rgba(77, 163, 255, 0.15), transparent 60%);
    z-index: -1;
    pointer-events: none;
}

.content {
    max-width: 1440px;
    width: min(1440px, 95vw);
    padding: 34px 44px;
    margin: 24px auto 60px;
    background: rgba(8, 12, 22, 0.9);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
}

a:link, a:visited {
    color: var(--theme-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover, a:active {
    color: var(--theme-color-hover);
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    margin: 1.2em 0 0.6em 0;
    color: #e6f2ff;
}

h1 {
    font-size: 2em;
    border-bottom: 2px double var(--theme-color);
    padding-bottom: 10px;
}

h2 {
    font-size: 1.5em;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 5px;
}

/* Header style resembling utkusen.com */
.site-header {
    margin-bottom: 30px;
}

.site-title {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
}

.site-title h2 {
    margin: 0;
    border: none;
    font-size: 1.8em;
    color: #e6f2ff;
}

.subtitle {
    margin: 5px 0 20px 0;
    color: #8cb3d9;
    font-size: 0.95em;
}

/* Navigation Menu */
.nav-container {
    position: relative;
    border-top: 1px dashed var(--border-color);
    border-bottom: 1px dashed var(--border-color);
    padding: 10px 0;
    margin-bottom: 30px;
}

.nav-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu li {
    margin: 0;
    white-space: nowrap;
}

.nav-menu .nav-separator {
    color: var(--color);
    opacity: 0.4;
    padding: 0 10px;
}

.nav-menu a {
    font-weight: bold;
}

/* Lists */
ul, ol {
    padding-left: 20px;
}

li {
    margin: 0.5em 0;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.profile-container {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
}

.profile-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--theme-color);
    box-shadow: 0 0 18px rgba(77, 163, 255, 0.3);
}

/* Forms & Inputs */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="url"],
textarea {
    width: 100%;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: #fff;
    font-family: 'Source Code Pro', monospace;
    font-size: 0.95em;
    margin-top: 5px;
    box-sizing: border-box;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--theme-color);
    background: rgba(255, 255, 255, 0.05);
}

button, .btn, a.btn, a.btn:link, a.btn:visited {
    padding: 10px 20px;
    background: var(--theme-color);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-family: 'Source Code Pro', monospace;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
    display: inline-block;
}

button:hover, .btn:hover {
    background: var(--theme-color-hover);
    text-decoration: none;
}

.btn-secondary {
    background: #2b3a4a;
}
.btn-secondary:hover {
    background: #3b4e64;
}

.btn-danger {
    background: #a93226;
}
.btn-danger:hover {
    background: #cb4335;
}

/* Hero + Sections */
.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 0.9fr);
    gap: 48px;
    align-items: stretch;
    min-height: 380px;
}

.hero-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 26px 28px;
    max-width: 420px;
    width: 100%;
    justify-self: center;
}

.hero-meta {
    margin-top: 15px;
    display: grid;
    gap: 10px;
}

.meta-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    font-size: 0.9em;
    color: #b0c4de;
}

.meta-label {
    color: #8cb3d9;
    font-weight: 600;
}

.eyebrow {
    color: #8cb3d9;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.75em;
    margin-bottom: 8px;
}

.lead {
    font-size: 1.05em;
    color: #c7d8f1;
}

.muted {
    color: #95a6c2;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 15px;
}

.section {
    margin-top: 40px;
}

.section-title {
    color: var(--theme-color);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-icon {
    width: 20px;
    height: 20px;
    color: #8cb3d9;
    flex-shrink: 0;
}

.two-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.pill-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.pill {
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.03);
    color: #cfe6ff;
    font-size: 0.85em;
}

.post-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 20px;
}

.post-item {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 16px 18px;
    background: rgba(0, 0, 0, 0.25);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.post-item:hover {
    border-color: var(--theme-color);
    box-shadow: 0 0 12px rgba(77, 163, 255, 0.2);
}

.post-date {
    color: #8cb3d9;
    font-size: 0.85em;
}

.post-summary {
    margin: 8px 0 0 0;
    color: #b0c4de;
    font-size: 0.95em;
}

.link-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 15px;
}

.link-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    color: #d2e6ff;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.link-card:hover {
    border-color: var(--theme-color);
    text-decoration: none;
}

/* Auth (Admin Login) */
.auth-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-card {
    width: min(560px, 92vw);
    padding: 32px 34px;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.25);
    box-shadow: 0 0 24px rgba(0, 0, 0, 0.6);
}

.auth-title {
    margin-top: 0;
    text-align: center;
    color: var(--theme-color);
    letter-spacing: 1px;
}

.auth-card button {
    width: 100%;
    padding: 12px 20px;
    font-size: 1em;
}

/* Certificates */
.certificate-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.certificate-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 18px 20px;
}

.certificate-card h3 {
    color: #80bfff;
    margin: 0 0 8px 0;
}

.certificate-card a {
    display: inline-flex;
    margin-top: 10px;
    font-size: 0.85em;
    color: var(--theme-color);
}

@media (max-width: 980px) {
    .content {
        max-width: 980px;
        width: 94vw;
        padding: 26px 24px;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-card {
        justify-self: stretch;
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .content {
        padding: 22px 20px;
    }
}

/* Admin Dashboard Table */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.admin-table th, .admin-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    color: #8cb3d9;
    font-weight: bold;
}

.admin-table tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

.actions {
    display: flex;
    gap: 10px;
}

/* Codeblocks */
code {
    background: #111b27;
    color: #7dc0ff;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
}

pre code {
    display: block;
    padding: 15px;
    overflow-x: auto;
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

/* Markdown preview */
.preview-container {
    border: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
    padding: 20px;
    border-radius: 4px;
    margin-top: 15px;
    min-height: 200px;
}

/* Utility alert boxes */
.alert {
    padding: 12px;
    background: rgba(77, 163, 255, 0.12);
    border: 1px solid var(--theme-color);
    color: #9fcaff;
    border-radius: 4px;
    margin-bottom: 20px;
}

.alert-success {
    background: rgba(46, 204, 113, 0.1);
    border: 1px solid #2ecc71;
    color: #2ecc71;
}

@media (max-width: 600px) {
    .profile-container {
        flex-direction: column;
        text-align: center;
    }
}

/* Projects and Portfolio Items */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.project-item {
    background: rgba(255, 255, 255, 0.02);
    padding: 20px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.project-item:hover {
    border-color: var(--theme-color);
    box-shadow: 0 0 12px rgba(77, 163, 255, 0.2);
}

.project-title {
    font-size: 1.1em;
    font-weight: bold;
    color: #e6f2ff;
    display: block;
    margin-bottom: 5px;
}

.project-header {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 8px;
}

.project-icon {
    width: 28px;
    height: 28px;
    color: #8cb3d9;
    flex-shrink: 0;
}

.project-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.project-link {
    font-size: 0.85em;
    color: var(--theme-color);
}

.project-desc {
    font-size: 0.9em;
    color: #b0c4de;
    margin: 8px 0 0 0;
    line-height: 1.5;
}

/* Certificate Styles & Logos */
.cert-org {
    font-size: 0.9em;
    color: var(--theme-color);
    font-weight: bold;
    margin: -4px 0 8px 0;
}

/* Admin Image Upload Styles */
.upload-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
}
.upload-list {
    margin-top: 15px;
    max-height: 180px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.upload-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0,0,0,0.2);
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid rgba(28, 46, 74, 0.5);
    font-size: 0.85em;
}
.upload-item-name {
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 60%;
}
.upload-item-actions {
    display: flex;
    gap: 8px;
}
