/* ===== Variables ===== */
:root {
    --bg:          #080818;
    --bg-2:        #0d0d24;
    --surface:     rgba(255,255,255,0.05);
    --surface-2:   rgba(255,255,255,0.09);
    --border:      rgba(255,255,255,0.08);
    --border-2:    rgba(255,255,255,0.14);
    --accent:      #a855f7;
    --accent-hover:#9333ea;
    --accent-glow: rgba(168,85,247,0.28);
    --accent-soft: rgba(168,85,247,0.12);
    --text:        #f1f5f9;
    --muted:       #94a3b8;
    --muted-2:     #64748b;
}

/* ===== Base ===== */
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg);
    color: var(--text);
    padding-top: 70px;
}

.text-accent  { color: var(--accent) !important; }
.bg-accent    { background-color: var(--accent) !important; }

/* ===== Navbar ===== */
.site-navbar {
    background: rgba(8,8,24,0.65);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    transition: padding 0.3s, box-shadow 0.3s, background 0.3s;
}

.site-navbar.scrolled {
    padding-top: 6px;
    padding-bottom: 6px;
    background: rgba(8,8,24,0.9);
    box-shadow: 0 4px 30px rgba(0,0,0,.5);
}

.site-navbar .navbar-toggler {
    border-color: rgba(255,255,255,.2);
}

.site-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.8)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.site-navbar .navbar-collapse {
    background: rgba(8,8,24,0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-top: 1px solid var(--border);
    padding: 12px 0;
    margin-top: 4px;
}

.navbar-brand {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--accent) !important;
    letter-spacing: 1px;
}

.nav-link {
    font-weight: 500;
    color: rgba(255,255,255,.7) !important;
    transition: color .2s;
    position: relative;
    padding-bottom: 4px !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%; right: 50%;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transition: left .25s, right .25s;
}

.nav-link:hover,
.nav-link.nav-active {
    color: #fff !important;
}

.nav-link:hover::after,
.nav-link.nav-active::after {
    left: 0; right: 0;
}

/* ===== Buttons ===== */
.btn-accent {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    border: none;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 20px var(--accent-glow);
    transition: transform .2s, box-shadow .2s;
}
.btn-accent:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-outline-light {
    border-color: rgba(255,255,255,.3) !important;
    color: rgba(255,255,255,.85) !important;
    transition: border-color .2s, color .2s, background .2s;
}
.btn-outline-light:hover {
    background: rgba(255,255,255,.08) !important;
    border-color: rgba(255,255,255,.6) !important;
    color: #fff !important;
}

/* ===== Hero ===== */
.hero-section {
    min-height: 100vh;
    background: var(--bg);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
}

.hero-orb--1 {
    width: 650px; height: 650px;
    background: radial-gradient(circle, rgba(168,85,247,0.22), transparent 70%);
    top: -180px; right: -180px;
    animation: orbFloat 8s ease-in-out infinite;
}

.hero-orb--2 {
    width: 420px; height: 420px;
    background: radial-gradient(circle, rgba(99,102,241,0.18), transparent 70%);
    bottom: -120px; left: -100px;
    animation: orbFloat 11s ease-in-out infinite reverse;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%       { transform: translate(30px, -30px) scale(1.06); }
}

.hero-eyebrow {
    font-size: .9rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
}

.hero-name {
    font-size: clamp(2.2rem, 5.5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    background: linear-gradient(135deg, #fff 40%, rgba(168,85,247,0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title {
    font-size: clamp(.95rem, 2vw, 1.15rem);
    color: var(--muted);
    font-weight: 400;
}

.hero-tagline {
    font-size: 1.05rem;
    color: var(--muted-2);
    line-height: 1.8;
}

/* ===== Sections ===== */
.section-pad { padding: 100px 0; }

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
}

.section-divider {
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #6366f1);
    border-radius: 2px;
    margin-top: 12px;
}

/* ===== About ===== */
.avatar-placeholder {
    width: 180px; height: 180px;
    border-radius: 50%;
    background: var(--surface);
    border: 3px solid var(--accent);
    box-shadow: 0 0 30px var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-placeholder .fa-user-tie { color: var(--muted) !important; }

/* ===== Glass Cards (shared) ===== */
.glass-card {
    background: var(--surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: background .25s, border-color .25s, box-shadow .25s, transform .25s;
}

.glass-card:hover {
    background: var(--surface-2);
    border-color: var(--border-2);
    box-shadow: 0 0 32px var(--accent-glow);
    transform: translateY(-4px);
}

/* ===== Projects ===== */
.project-card {
    background: var(--surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: background .25s, border-color .25s, box-shadow .25s, transform .25s;
    height: 100%;
}

.project-card:hover {
    background: var(--surface-2);
    border-color: rgba(168,85,247,0.35);
    box-shadow: 0 0 36px var(--accent-glow);
    transform: translateY(-5px);
}

.project-card .card-body { color: var(--text); }
.project-card .card-title { color: var(--text); }
.project-card .card-text  { color: var(--muted); }

.project-icon { line-height: 1; }

.badge-tag {
    background: var(--accent-soft);
    color: #c084fc;
    border: 1px solid rgba(168,85,247,0.25);
    font-size: .75rem;
    font-weight: 500;
    padding: .3em .7em;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 4px;
}

.privacy-link {
    font-size: .78rem;
    color: var(--muted-2);
    white-space: nowrap;
    transition: color .2s;
}
.privacy-link:hover { color: var(--accent); text-decoration: none; }

/* ===== Skills ===== */
.skill-group {
    background: var(--surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px;
    height: 100%;
    transition: background .25s, border-color .25s, box-shadow .25s;
}

.skill-group:hover {
    background: var(--surface-2);
    border-color: var(--border-2);
    box-shadow: 0 0 24px var(--accent-glow);
}

.skill-group-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 16px;
    color: var(--text);
}

.skill-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.skill-list li {
    padding: 7px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: .92rem;
    color: var(--muted);
}

.skill-list li:last-child { border-bottom: none; }

/* ===== Contact ===== */
.social-links { display: flex; justify-content: center; gap: 28px; }

.social-link {
    color: var(--muted-2);
    transition: color .2s, transform .2s, filter .2s;
    display: inline-block;
}

.social-link:hover {
    color: var(--accent);
    transform: translateY(-4px);
    filter: drop-shadow(0 0 8px var(--accent-glow));
    text-decoration: none;
}

/* ===== Footer ===== */
.site-footer {
    background: #04040e;
    border-top: 1px solid var(--border);
}

.site-footer .text-muted { color: var(--muted-2) !important; }

/* ===== Hobbies ===== */
.hobbies-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.hobby-badge {
    display: inline-flex;
    align-items: center;
    background: var(--accent-soft);
    color: #c084fc;
    border: 1px solid rgba(168,85,247,0.25);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: .85rem;
    font-weight: 500;
}

/* ===== Blog ===== */
.blog-page-hero {
    padding: 120px 0 60px;
    position: relative;
    overflow: hidden;
}

.blog-card-link { text-decoration: none; display: block; height: 100%; }
.blog-card-link:hover { text-decoration: none; }

.blog-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    transition: transform .25s, box-shadow .25s, background .25s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 36px var(--accent-glow);
}

.blog-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.blog-img-placeholder {
    height: 200px;
    background: linear-gradient(135deg, var(--accent-soft), rgba(99,102,241,0.12));
}

.blog-card-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-category-badge {
    display: inline-block;
    background: var(--accent-soft);
    color: #c084fc;
    border: 1px solid rgba(168,85,247,0.25);
    border-radius: 20px;
    padding: 3px 12px;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.blog-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.4;
}

.blog-card-excerpt {
    font-size: .875rem;
    color: var(--muted);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 16px;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    font-size: .78rem;
    color: var(--muted-2);
    border-top: 1px solid var(--border);
    padding-top: 12px;
}

.blog-read-more {
    color: var(--accent);
    font-weight: 600;
    font-size: .78rem;
}

.blog-pagination .pagination { justify-content: center; }
.blog-pagination .page-item .page-link {
    background: var(--surface);
    border-color: var(--border);
    color: var(--muted);
}
.blog-pagination .page-item.active .page-link {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.blog-pagination .page-item .page-link:hover {
    background: var(--surface-2);
    color: var(--text);
}

/* ===== Blog Post (show) ===== */
.post-hero-image {
    position: relative;
    height: 400px;
    overflow: hidden;
}

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

.post-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 40%, var(--bg) 100%);
}

.post-hero-placeholder {
    height: 120px;
}

.post-container { margin-top: 40px; }

.post-back-link {
    color: var(--muted);
    font-size: .875rem;
    transition: color .2s;
    text-decoration: none;
}
.post-back-link:hover { color: var(--accent); text-decoration: none; }

.post-title {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 700;
    color: var(--text);
    line-height: 1.25;
    margin-bottom: 12px;
}

.post-meta {
    color: var(--muted-2);
    font-size: .875rem;
    margin-bottom: 8px;
}

.post-content {
    color: var(--muted);
    line-height: 1.85;
    font-size: 1rem;
}

.post-content h1, .post-content h2, .post-content h3,
.post-content h4, .post-content h5 {
    color: var(--text);
    margin-top: 2rem;
    margin-bottom: .75rem;
    font-weight: 700;
}

.post-content h2 { font-size: 1.5rem; }
.post-content h3 { font-size: 1.25rem; }

.post-content p { margin-bottom: 1.25rem; }

.post-content a { color: var(--accent); }
.post-content a:hover { color: var(--accent-hover); }

.post-content ul, .post-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
    color: var(--muted);
}

.post-content li { margin-bottom: .4rem; }

.post-content strong { color: var(--text); font-weight: 600; }

.post-content blockquote {
    border-left: 3px solid var(--accent);
    padding: 12px 20px;
    margin: 1.5rem 0;
    background: var(--surface);
    border-radius: 0 8px 8px 0;
    color: var(--muted);
    font-style: italic;
}

.post-content code {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: .875em;
    color: #c084fc;
}

.post-content pre {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 20px;
    overflow-x: auto;
    margin-bottom: 1.25rem;
}

.post-content img {
    max-width: 100%;
    border-radius: 10px;
    margin: 1rem 0;
}

.post-footer { border-top: 1px solid var(--border); padding-top: 32px; }

/* ===== Privacy Pages ===== */
.privacy-page { padding-bottom: 80px; }

.privacy-hero {
    background: linear-gradient(135deg, var(--bg) 0%, var(--bg-2) 100%);
    border-bottom: 1px solid var(--border);
    color: var(--text);
    padding: 80px 0 60px;
    margin-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.privacy-hero::before {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168,85,247,0.12), transparent 70%);
    top: -100px; right: -100px;
    pointer-events: none;
}

.privacy-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text);
}

.privacy-subtitle {
    color: var(--accent);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
}

.privacy-meta {
    font-size: .875rem;
    color: var(--muted);
    padding: 14px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.privacy-section-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-top: 40px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.privacy-body p,
.privacy-body li { color: var(--muted); }

.privacy-body a { color: var(--accent); }
.privacy-body a:hover { color: var(--accent-hover); }

.privacy-table { font-size: .9rem; color: var(--muted); }
.privacy-table thead th { background: var(--surface); color: var(--text); border-color: var(--border); }
.privacy-table td, .privacy-table th { border-color: var(--border); }
.privacy-table td:first-child { font-family: monospace; font-size: .82rem; color: #c084fc; }

.alert-privacy-notice {
    background: var(--accent-soft);
    border: 1px solid rgba(168,85,247,0.3);
    color: #c084fc;
    border-radius: 10px;
    padding: 14px 18px;
}

.privacy-back { border-top: 1px solid var(--border); padding-top: 32px; }
