/* ================================
   Variables
================================ */

/* 
   COLOR THEMES - Uncomment ONE theme to use it
   ============================================
*/

/* Theme 1: Cyan/Teal */
/*
:root {
    --accent: #06b6d4;
    --accent-secondary: #14b8a6;
    --accent-dim: rgba(6, 182, 212, 0.12);
    --gradient: linear-gradient(135deg, #06b6d4 0%, #14b8a6 100%);
}
*/

/* Theme 2: Emerald Green */

/* :root {
    --accent: #10b981;
    --accent-secondary: #22c55e;
    --accent-dim: rgba(16, 185, 129, 0.12);
    --gradient: linear-gradient(135deg, #10b981 0%, #22c55e 100%);
} */


/* Theme 3: Orange/Amber */

:root {
    --accent: #f59e0b;
    --accent-secondary: #f97316;
    --accent-dim: rgba(245, 158, 11, 0.12);
    --gradient: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
}


/* Theme 4: Rose/Pink */
/*
:root {
    --accent: #f43f5e;
    --accent-secondary: #ec4899;
    --accent-dim: rgba(244, 63, 94, 0.12);
    --gradient: linear-gradient(135deg, #f43f5e 0%, #ec4899 100%);
}
*/

/* Theme 5: Blue */
/*
:root {
    --accent: #3b82f6;
    --accent-secondary: #0ea5e9;
    --accent-dim: rgba(59, 130, 246, 0.12);
    --gradient: linear-gradient(135deg, #3b82f6 0%, #0ea5e9 100%);
}
*/

/* Theme 6: Lime/Yellow (ACTIVE) */
/* 
:root {
    --accent: #84cc16;
    --accent-secondary: #eab308;
    --accent-dim: rgba(132, 204, 22, 0.12);
    --gradient: linear-gradient(135deg, #84cc16 0%, #eab308 100%);
}
 */

/* Theme 7: Purple */
/*
:root {
    --accent: #a78bfa;
    --accent-secondary: #f472b6;
    --accent-dim: rgba(167, 139, 250, 0.12);
    --gradient: linear-gradient(135deg, #a78bfa 0%, #f472b6 100%);
}
*/

/* Base colors */
:root {
    --bg: #0f0f0f;
    --bg-card: #171717;
    --bg-hover: #1f1f1f;
    --text: #f5f5f5;
    --text-muted: #777777;
    --border: #222222;
    --border-hover: #333333;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

/* ================================
   Reset
================================ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 680px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ================================
   Hero
================================ */
.hero {
    padding: 120px 0 80px;
}

.hero-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 16px;
}

.hero-text {
    flex: 1;
}

.avatar {
    width: 90px;
    height: 90px;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid #333333;
    transition: all 0.3s ease;
    position: relative;
    flex-shrink: 0;
}

.avatar::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient);
    border-radius: 18px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.avatar:hover {
    border-color: transparent;
    transform: scale(1.05);
}

.avatar:hover::before {
    opacity: 1;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.avatar:hover img {
    transform: scale(1.1);
}

.greeting {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.name {
    font-family: var(--font-mono);
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.role {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.bio {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 28px;
}

.highlight {
    color: var(--accent);
    font-weight: 500;
}

.highlight:hover {
    text-decoration: underline;
}

/* Socials */
.socials {
    display: flex;
    gap: 8px;
}

.socials a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.socials a:hover {
    color: var(--accent);
    border-color: var(--border-hover);
    background: var(--bg-card);
}

.socials svg {
    width: 18px;
    height: 18px;
}

/* ================================
   Sections
================================ */
.section {
    padding: 50px 0;
}

.section-title {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 20px;
}

/* ================================
   About
================================ */
.about-content p {
    color: var(--text-muted);
    margin-bottom: 14px;
    line-height: 1.7;
    font-size: 15px;
}

.about-content p:last-of-type {
    margin-bottom: 20px;
}

/* Tech Stack */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tech {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    padding: 5px 10px;
    border-radius: 4px;
    background: var(--bg-card);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.tech[data-type="lang"] {
    color: var(--accent);
    border-color: transparent;
    background: var(--accent-dim);
}

.tech[data-type="framework"] {
    color: var(--text);
}

/* ================================
   Projects - Left Gradient Bar
================================ */
.projects {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.project {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.project::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 4px;
    background: var(--gradient);
    opacity: 0.8;
    transition: opacity 0.2s, width 0.2s;
}

.project:hover {
    border-color: var(--border-hover);
    background: var(--bg-hover);
}

.project:hover::before {
    opacity: 1;
    width: 5px;
}

.project:hover .project-name {
    color: var(--accent);
}

.project-image {
    flex-shrink: 0;
    width: 100px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    background: var(--bg);
}

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

.project-info {
    flex: 1;
    min-width: 0;
}

.project-name {
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 600;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 6px;
}

.project-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-bottom: 8px;
}

.project-lang {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 4px;
    background: var(--accent-dim);
    color: var(--accent);
}

/* ================================
   Articles
================================ */
.articles {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.article {
    display: block;
    padding: 16px 18px;
    margin: 0 -18px;
    border-radius: 10px;
    transition: background 0.2s ease;
}

.article:hover {
    background: var(--bg-card);
}

.article-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.article-date {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

.article-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 7px;
    background: var(--accent-dim);
    color: var(--accent);
    border-radius: 3px;
}

.article h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    transition: color 0.2s;
}

.article:hover h3 {
    color: var(--accent);
}

.article p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ================================
   Footer
================================ */
.footer {
    padding: 40px 0;
    text-align: center;
}

.footer p {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
}

/* ================================
   Project Page
================================ */
.project-nav {
    padding: 24px 0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--text-muted);
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--accent);
}

.back-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.project-header {
    padding: 20px 0 60px;
}

.project-header .container,
.project-content .container,
.project-nav .container {
    max-width: 900px;
}

/* Gallery Wrapper - Main + Thumbnails side by side */
.project-gallery-wrapper {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
}

.project-hero-image {
    flex: 1;
    min-width: 0;
    height: 320px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border);
    cursor: zoom-in;
    transition: border-color 0.2s;
}

.project-hero-image:hover {
    border-color: var(--border-hover);
}

.project-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-hero-image:hover img {
    transform: scale(1.02);
}

/* Gallery Thumbnails - Vertical on right */
.gallery-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100px;
    flex-shrink: 0;
    height: 320px;
}

.gallery-thumb {
    width: 100%;
    flex: 1;
    min-height: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--border);
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.2s ease;
}

.gallery-thumb:hover {
    opacity: 0.8;
    border-color: var(--border-hover);
    transform: translateX(-2px);
}

.gallery-thumb.active {
    opacity: 1;
    border-color: var(--accent);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-title {
    font-family: var(--font-mono);
    font-size: 36px;
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px;
}

.project-subtitle {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 24px;
    max-width: 560px;
}

.project-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.tech-badge {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 6px;
    background: var(--bg-card);
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.project-links {
    display: flex;
    gap: 12px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.project-link svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.project-link.primary {
    background: var(--gradient);
    color: #000;
}

.project-link.primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.project-link.secondary {
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
}

.project-link.secondary:hover {
    border-color: var(--border-hover);
    background: var(--bg-hover);
}

.project-content {
    padding: 40px 0;
}

.project-description h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text);
}

.project-description h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 24px 0 12px;
    color: var(--text);
}

.project-description p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 16px;
}

.features-list {
    list-style: none;
}

.features-list li {
    position: relative;
    padding-left: 20px;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.features-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.project-gallery {
    padding: 40px 0;
}

.project-gallery h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.gallery-item:hover {
    border-color: var(--border-hover);
    transform: scale(1.02);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ================================
   Responsive
================================ */
@media (max-width: 600px) {
    .hero {
        padding: 80px 0 60px;
    }
    
    .hero-header {
        flex-direction: column-reverse;
        align-items: flex-start;
        gap: 16px;
    }
    
    .name {
        font-size: 38px;
    }
    
    .role, .bio {
        font-size: 15px;
    }
    
    .project {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .project-desc {
        white-space: normal;
    }
    
    .project-title {
        font-size: 28px;
    }
    
    .project-links {
        flex-direction: column;
        width: 100%;
    }
    
    .project-link {
        justify-content: center;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ================================
   Admin Mode
================================ */
.admin-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
}

.admin-toggle button {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-family: var(--font-mono);
    font-size: 12px;
    transition: all 0.2s;
}

.admin-toggle button:hover {
    border-color: var(--border-hover);
    color: var(--text);
}

.admin-badge {
    display: inline-block;
    background: var(--accent-dim);
    color: var(--accent);
    padding: 4px 10px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 11px;
    margin-right: 8px;
}

.add-project {
    border: 2px dashed var(--border);
    background: transparent;
    justify-content: center;
    min-height: 100px;
}

.add-project:hover {
    border-color: var(--accent);
    background: var(--accent-dim);
}

.add-project-icon {
    font-size: 32px;
    color: var(--text-muted);
    margin-right: 16px;
}

.project-admin-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.project-admin-actions button {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 6px 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.project-admin-actions .edit-btn:hover {
    background: var(--accent-dim);
    border-color: var(--accent);
}

.project-admin-actions .delete-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: #ef4444;
}

/* Modal */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 20px;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-content h2 {
    font-size: 20px;
    margin-bottom: 24px;
    color: var(--text);
}

.modal-content input,
.modal-content textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 12px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
}

.modal-content textarea {
    min-height: 80px;
    resize: vertical;
}

.modal-content input:focus,
.modal-content textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 16px;
}

.modal-actions button {
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.modal-actions button[type="button"] {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
}

.modal-actions button[type="submit"] {
    background: var(--gradient);
    border: none;
    color: #000;
}

.modal-actions button[type="submit"]:hover {
    opacity: 0.9;
}

/* Inline edit buttons */
.edit-inline-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    border: 1px dashed var(--border);
    color: var(--text-muted);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    margin-top: 12px;
    transition: all 0.2s;
}

.edit-inline-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.add-skill-btn {
    background: transparent;
    border: 1px dashed var(--border);
    color: var(--text-muted);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
}

.add-skill-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.remove-skill {
    background: transparent;
    border: none;
    color: var(--text-muted);
    margin-left: 4px;
    cursor: pointer;
    opacity: 0.5;
}

.remove-skill:hover {
    color: #ef4444;
    opacity: 1;
}

.edit-socials-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 42px;
    height: 42px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.edit-socials-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.add-article {
    border: 1px dashed var(--border) !important;
    background: transparent !important;
}

.add-article:hover {
    border-color: var(--accent) !important;
    background: var(--accent-dim) !important;
}

.edit-btn-small,
.delete-btn-small {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 2px 6px;
    font-size: 12px;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.edit-btn-small:hover,
.delete-btn-small:hover {
    opacity: 1;
}

.social-row {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}

.social-row select {
    width: 120px;
    padding: 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
}

.social-row input {
    flex: 1;
}


