/* ============================================================
   PORTFOLIO MANAGEMENT SYSTEM - CUSTOM CSS
   Premium Dark/Light Professional Design
   ============================================================ */

:root {
    --primary:    #6366f1;
    --primary-dk: #4f46e5;
    --secondary:  #ec4899;
    --accent:     #06b6d4;
    --dark:       #0f172a;
    --dark-2:     #1e293b;
    --dark-3:     #334155;
    --text-light: #94a3b8;
    --text-muted: #64748b;
    --light:      #f8fafc;
    --white:      #ffffff;
    --success:    #10b981;
    --warning:    #f59e0b;
    --danger:     #ef4444;
    --grad-1:     linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
    --grad-2:     linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --grad-3:     linear-gradient(135deg, #6366f1 0%, #06b6d4 100%);
    --shadow-sm:  0 4px 6px -1px rgba(0,0,0,.1);
    --shadow-md:  0 10px 30px rgba(0,0,0,.15);
    --shadow-lg:  0 25px 60px rgba(0,0,0,.2);
    --radius:     12px;
    --radius-lg:  20px;
    --transition: all .3s cubic-bezier(.4,0,.2,1);
}

/* ── BASE ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: var(--dark);
    color: #e2e8f0;
    line-height: 1.7;
    overflow-x: hidden;
}
::selection { background: var(--primary); color: #fff; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; }

/* ── TYPOGRAPHY ── */
h1,h2,h3,h4,h5,h6 { font-weight: 700; line-height: 1.2; color: #f1f5f9; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--secondary); }

/* ── NAVBAR ── */
.navbar-custom {
    background: rgba(15,23,42,.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(99,102,241,.15);
    padding: 1rem 0;
    transition: var(--transition);
}
.navbar-custom.scrolled {
    padding: .6rem 0;
    box-shadow: 0 4px 30px rgba(0,0,0,.4);
}
.navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--grad-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.navbar-custom .nav-link {
    color: #cbd5e1 !important;
    font-weight: 500;
    padding: .5rem 1rem !important;
    border-radius: 8px;
    position: relative;
    transition: var(--transition);
}
.navbar-custom .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    width: 0; height: 2px;
    background: var(--grad-1);
    border-radius: 1px;
    transition: var(--transition);
    transform: translateX(-50%);
}
.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: #fff !important;
}
.navbar-custom .nav-link:hover::after,
.navbar-custom .nav-link.active::after { width: 60%; }

/* ── HERO SECTION ── */
.hero-section {
    min-height: 100vh;
    background: var(--grad-2);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(99,102,241,.15) 0%, transparent 70%);
    top: -100px; right: -100px;
    border-radius: 50%;
    animation: pulse-glow 4s ease-in-out infinite;
}
.hero-section::after {
    content: '';
    position: absolute;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(236,72,153,.1) 0%, transparent 70%);
    bottom: -50px; left: -50px;
    border-radius: 50%;
    animation: pulse-glow 4s ease-in-out infinite reverse;
}
@keyframes pulse-glow {
    0%,100% { transform: scale(1); opacity: .7; }
    50%      { transform: scale(1.1); opacity: 1; }
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(99,102,241,.15);
    border: 1px solid rgba(99,102,241,.3);
    color: #a5b4fc;
    padding: .4rem 1rem;
    border-radius: 50px;
    font-size: .85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
}
.hero-badge .dot {
    width: 8px; height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }
.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: #f8fafc;
    margin-bottom: 1rem;
}
.hero-title .gradient-text {
    background: var(--grad-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 560px;
}
.hero-avatar {
    width: 380px; height: 380px;
    border-radius: var(--radius-lg);
    object-fit: cover;
    position: relative;
    z-index: 1;
    box-shadow: 0 0 60px rgba(99,102,241,.3);
    border: 3px solid rgba(99,102,241,.3);
    animation: float 3s ease-in-out infinite;
}
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }
.hero-avatar-wrapper {
    position: relative;
    display: inline-block;
}
.hero-avatar-wrapper::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: var(--grad-1);
    border-radius: calc(var(--radius-lg) + 3px);
    z-index: 0;
}
.hero-avatar-wrapper img { position: relative; z-index: 1; }

/* ── BUTTONS ── */
.btn-primary-custom {
    background: var(--grad-1);
    border: none;
    color: #fff;
    padding: .75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: .95rem;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(99,102,241,.4);
    position: relative;
    overflow: hidden;
}
.btn-primary-custom::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,.1);
    transform: translateX(-100%);
    transition: var(--transition);
}
.btn-primary-custom:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(99,102,241,.5); color:#fff; }
.btn-primary-custom:hover::before { transform: translateX(0); }
.btn-outline-custom {
    background: transparent;
    border: 2px solid rgba(99,102,241,.5);
    color: #a5b4fc;
    padding: .75rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}
.btn-outline-custom:hover { border-color: var(--primary); background: rgba(99,102,241,.1); color:#fff; transform:translateY(-2px); }

/* ── STATS ── */
.stats-card {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
}
.stats-card:hover { border-color: rgba(99,102,241,.4); transform: translateY(-4px); }
.stats-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--grad-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}
.stats-label { color: var(--text-light); font-size: .9rem; margin-top: .25rem; }

/* ── SECTION HEADER ── */
.section-tag {
    display: inline-block;
    background: rgba(99,102,241,.15);
    border: 1px solid rgba(99,102,241,.3);
    color: #a5b4fc;
    padding: .3rem .9rem;
    border-radius: 50px;
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: .75rem;
}
.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    color: #f1f5f9;
    margin-bottom: .5rem;
}
.section-line {
    width: 60px; height: 4px;
    background: var(--grad-1);
    border-radius: 2px;
    margin: 1rem auto;
}

/* ── PROJECT CARDS ── */
.project-card {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
}
.project-card:hover { transform: translateY(-8px); border-color: rgba(99,102,241,.4); box-shadow: var(--shadow-lg); }
.project-card-img {
    width: 100%; height: 220px;
    object-fit: cover;
    transition: transform .5s ease;
}
.project-card:hover .project-card-img { transform: scale(1.05); }
.project-card-img-placeholder {
    width: 100%; height: 220px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--primary);
}
.project-card-body { padding: 1.5rem; }
.project-category {
    font-size: .75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: .5rem;
}
.tech-tag {
    display: inline-block;
    background: rgba(99,102,241,.15);
    color: #a5b4fc;
    padding: .2rem .65rem;
    border-radius: 4px;
    font-size: .75rem;
    font-weight: 500;
    margin: .15rem .1rem;
    border: 1px solid rgba(99,102,241,.2);
}

/* ── SKILL BARS ── */
.skill-item { margin-bottom: 1.5rem; }
.skill-header { display: flex; justify-content: space-between; margin-bottom: .5rem; }
.skill-name { font-weight: 600; color: #e2e8f0; }
.skill-percent { font-weight: 700; color: var(--primary); }
.skill-bar-track {
    height: 8px;
    background: rgba(255,255,255,.06);
    border-radius: 50px;
    overflow: hidden;
}
.skill-bar-fill {
    height: 100%;
    border-radius: 50px;
    background: var(--grad-1);
    width: 0;
    transition: width 1.2s cubic-bezier(.4,0,.2,1);
    position: relative;
}
.skill-bar-fill::after {
    content: '';
    position: absolute;
    right: 0; top: 0;
    width: 8px; height: 8px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(99,102,241,.8);
}

/* ── TIMELINE ── */
.timeline { position: relative; padding-left: 3rem; }
.timeline::before {
    content: '';
    position: absolute;
    left: 1.1rem; top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--secondary), transparent);
}
.timeline-item { position: relative; margin-bottom: 2.5rem; }
.timeline-dot {
    position: absolute;
    left: -2.35rem;
    top: .3rem;
    width: 14px; height: 14px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid var(--dark);
    box-shadow: 0 0 0 4px rgba(99,102,241,.2);
}
.timeline-card {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: var(--transition);
}
.timeline-card:hover { border-color: rgba(99,102,241,.3); transform: translateX(4px); }
.timeline-period {
    font-size: .8rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: .25rem;
}
.timeline-title { font-size: 1.1rem; font-weight: 700; color: #f1f5f9; }
.timeline-subtitle { color: var(--text-light); font-size: .9rem; }
.timeline-desc { color: #94a3b8; font-size: .9rem; margin-top: .5rem; }
.current-badge {
    display: inline-block;
    background: rgba(16,185,129,.15);
    border: 1px solid rgba(16,185,129,.3);
    color: #6ee7b7;
    padding: .15rem .6rem;
    border-radius: 50px;
    font-size: .75rem;
    font-weight: 600;
    margin-left: .5rem;
}

/* ── RESUME PAGE ── */
.resume-wrapper {
    background: rgba(255,255,255,.02);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.resume-sidebar {
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    padding: 2.5rem 2rem;
    border-right: 1px solid rgba(255,255,255,.06);
}
.resume-main { padding: 2.5rem; }
.resume-avatar {
    width: 130px; height: 130px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid;
    border-image: var(--grad-1) 1;
    box-shadow: 0 0 30px rgba(99,102,241,.3);
}
.resume-name { font-size: 1.6rem; font-weight: 800; color: #fff; margin: 1rem 0 .25rem; }
.resume-role {
    font-size: .95rem;
    background: var(--grad-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}
.resume-contact-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: var(--text-light);
    font-size: .85rem;
    margin-bottom: .5rem;
}
.resume-contact-item i { color: var(--primary); width: 18px; }
.resume-section-heading {
    font-size: 1.15rem;
    font-weight: 700;
    color: #f1f5f9;
    border-left: 4px solid;
    border-image: var(--grad-1) 1;
    padding-left: .75rem;
    margin-bottom: 1.25rem;
    margin-top: 2rem;
}
.cert-card {
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
    transition: var(--transition);
}
.cert-card:hover { border-color: rgba(99,102,241,.3); }

/* ── CONTACT SECTION ── */
.contact-card {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
}
.form-control-custom {
    background: rgba(255,255,255,.05) !important;
    border: 1px solid rgba(255,255,255,.1) !important;
    color: #e2e8f0 !important;
    border-radius: var(--radius) !important;
    padding: .85rem 1.2rem !important;
    transition: var(--transition) !important;
}
.form-control-custom:focus {
    background: rgba(99,102,241,.08) !important;
    border-color: rgba(99,102,241,.5) !important;
    box-shadow: 0 0 0 3px rgba(99,102,241,.15) !important;
    color: #fff !important;
}
.form-control-custom::placeholder { color: var(--text-muted) !important; }
.form-label-custom { color: #94a3b8; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; }
.contact-info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.contact-icon {
    width: 50px; height: 50px;
    background: rgba(99,102,241,.15);
    border: 1px solid rgba(99,102,241,.3);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary);
    flex-shrink: 0;
    transition: var(--transition);
}
.contact-info-item:hover .contact-icon { background: var(--primary); color: #fff; }

/* ── FOOTER ── */
.footer-custom {
    background: #080f1a;
    border-top: 1px solid rgba(255,255,255,.05);
    padding: 3rem 0 1.5rem;
}
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 8px;
    color: #94a3b8;
    margin: 0 .25rem;
    transition: var(--transition);
}
.footer-social a:hover { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-3px); }

/* ── SCROLL TO TOP ── */
.scroll-top {
    position: fixed;
    bottom: 2rem; right: 2rem;
    width: 45px; height: 45px;
    background: var(--grad-1);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(99,102,241,.4);
    z-index: 9999;
    opacity: 0; visibility: hidden;
}
.scroll-top.show { opacity: 1; visibility: visible; }
.scroll-top:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(99,102,241,.6); }

/* ── PAGE HEADER ── */
.page-header {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,.05);
}
.page-header::before {
    content: '';
    position: absolute;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(99,102,241,.1) 0%, transparent 70%);
    right: -100px; top: -100px;
    border-radius: 50%;
}

/* ── FILTER TABS ── */
.filter-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.5rem; }
.filter-btn {
    padding: .5rem 1.25rem;
    border-radius: 50px;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,.1);
    color: #94a3b8;
    background: transparent;
    transition: var(--transition);
}
.filter-btn:hover, .filter-btn.active {
    background: var(--grad-1);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 15px rgba(99,102,241,.3);
}

/* ── AVAILABLE BADGE ── */
.available-pill {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(16,185,129,.12);
    border: 1px solid rgba(16,185,129,.3);
    color: #6ee7b7;
    padding: .35rem .9rem;
    border-radius: 50px;
    font-size: .8rem;
    font-weight: 600;
}

/* ── PARTICLES / GRID BG ── */
.grid-bg {
    background-image:
        linear-gradient(rgba(99,102,241,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99,102,241,.04) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* ── ADMIN STYLES ── */
.admin-sidebar {
    width: 260px;
    min-height: 100vh;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    border-right: 1px solid rgba(255,255,255,.06);
    position: fixed; top: 0; left: 0;
    z-index: 1000;
    transition: var(--transition);
    overflow-y: auto;
}
.admin-main {
    margin-left: 260px;
    min-height: 100vh;
    background: #0b1120;
}
.admin-topbar {
    background: rgba(15,23,42,.95);
    border-bottom: 1px solid rgba(255,255,255,.06);
    padding: 1rem 1.5rem;
    position: sticky; top: 0;
    z-index: 999;
    backdrop-filter: blur(10px);
}
.admin-nav-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 1.25rem;
    color: #94a3b8;
    font-weight: 500;
    border-radius: var(--radius);
    margin: .15rem .5rem;
    transition: var(--transition);
    font-size: .9rem;
}
.admin-nav-link:hover, .admin-nav-link.active {
    background: rgba(99,102,241,.15);
    color: #a5b4fc;
    border: 1px solid rgba(99,102,241,.2);
}
.admin-nav-link i { width: 20px; text-align: center; }
.admin-card {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: var(--transition);
}
.admin-card:hover { border-color: rgba(99,102,241,.2); }
.admin-stat-card {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.admin-stat-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 80px; height: 80px;
    background: var(--grad-1);
    opacity: .05;
    border-radius: 0 0 0 80px;
}
.admin-stat-card:hover { transform: translateY(-3px); border-color: rgba(99,102,241,.3); }
.admin-table th {
    background: rgba(255,255,255,.04);
    color: #94a3b8;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    border-color: rgba(255,255,255,.06) !important;
    padding: 1rem !important;
}
.admin-table td { border-color: rgba(255,255,255,.05) !important; padding: .85rem 1rem !important; vertical-align: middle; color: #cbd5e1; }
.admin-table tbody tr:hover td { background: rgba(99,102,241,.05); }

/* ── RESPONSIVE ── */
@media (max-width: 991px) {
    .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.open { transform: translateX(0); }
    .admin-main { margin-left: 0; }
    .hero-avatar { width: 280px; height: 280px; }
}
@media (max-width: 767px) {
    .hero-title { font-size: 2.2rem; }
    .resume-sidebar { border-right: none; border-bottom: 1px solid rgba(255,255,255,.06); }
}

/* ── ANIMATIONS ── */
.fade-up { opacity: 0; transform: translateY(30px); transition: opacity .6s ease, transform .6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-left { opacity: 0; transform: translateX(-30px); transition: opacity .6s ease, transform .6s ease; }
.fade-left.visible { opacity: 1; transform: translateX(0); }