/* ============================================
   Portfolio CV — Premium Dark Theme
   Ujikom 2 Jartel
   ============================================ */

/* === Variables === */
:root {
    --bg-primary: #060612;
    --bg-secondary: #0c0c20;
    --bg-section: #080818;
    --bg-card: rgba(18, 18, 45, 0.6);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --bg-glass-hover: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(124, 92, 252, 0.4);
    --text-primary: #eeeef8;
    --text-secondary: #9595c0;
    --text-muted: #5555a0;
    --accent: #7c5cfc;
    --accent-light: #a78bfa;
    --accent-dark: #5b3fd9;
    --accent-glow: rgba(124, 92, 252, 0.25);
    --cyan: #22d3ee;
    --cyan-glow: rgba(34, 211, 238, 0.2);
    --gold: #fbbf24;
    --gradient-accent: linear-gradient(135deg, #7c5cfc, #a78bfa, #c084fc);
    --gradient-bg: linear-gradient(135deg, #060612 0%, #0f0f2e 50%, #060612 100%);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px var(--accent-glow);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Outfit', 'Inter', sans-serif;
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.65;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* === Particles Canvas === */
#particles-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* === Container === */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }

/* === Navbar === */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 0.8rem 0;
    background: rgba(6, 6, 18, 0.75);
    backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid var(--border);
    transition: 0.3s var(--ease);
}
.navbar.scrolled { background: rgba(6, 6, 18, 0.95); padding: 0.5rem 0; }

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.logo-bracket { color: var(--text-muted); }
.logo-accent { background: var(--gradient-accent); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: 0.3s var(--ease); }

.nav-menu { display: flex; list-style: none; gap: 0.25rem; }
.nav-link {
    padding: 0.5rem 0.9rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: 0.3s var(--ease);
}
.nav-link:hover { color: var(--text-primary); background: var(--bg-glass-hover); }
.nav-link.active { color: var(--accent-light); background: rgba(124, 92, 252, 0.1); }

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: 0.3s var(--ease);
    border: none;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--gradient-accent); color: white; box-shadow: var(--shadow-glow); }
.btn-primary:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 0 50px var(--accent-glow); }
.btn-outline { background: transparent; color: var(--text-primary); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); background: rgba(124, 92, 252, 0.05); }

/* === Hero === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6rem 1.5rem 3rem;
    z-index: 1;
}
.hero-content {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4rem;
    align-items: center;
    width: 100%;
}
.hero-text { animation: fadeUp 1s ease-out; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

.hero-greeting {
    display: inline-block;
    font-size: 1rem;
    color: var(--accent-light);
    margin-bottom: 0.75rem;
    font-weight: 500;
}
.hero-name {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 1rem;
}
.name-line { display: block; }
.name-line.accent { background: var(--gradient-accent); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.hero-role {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    color: var(--cyan);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0;
}
.role-prefix { color: var(--text-muted); }
.cursor { animation: blink 1s step-end infinite; color: var(--cyan); margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }

.hero-desc { color: var(--text-secondary); max-width: 480px; font-size: 0.95rem; margin-bottom: 1.75rem; line-height: 1.7; }
.hero-desc strong { color: var(--text-primary); font-weight: 600; }

.hero-actions { display: flex; gap: 0.75rem; margin-bottom: 2rem; flex-wrap: wrap; }

.hero-social { display: flex; gap: 0.6rem; }
.social-link {
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    border-radius: var(--radius-full);
    background: var(--bg-glass);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: 0.3s var(--ease);
}
.social-link:hover { color: var(--accent-light); border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-glow); }
.social-link svg { width: 18px; height: 18px; }

/* Profile Frame */
.hero-visual { animation: fadeUp 1s ease-out 0.3s both; }
.profile-frame { position: relative; width: 300px; height: 300px; }
.profile-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse 3s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 0.5; transform: scale(1); } 50% { opacity: 0.8; transform: scale(1.05); } }
.profile-img {
    width: 100%; height: 100%;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    z-index: 2;
    border: 3px solid var(--accent);
    box-shadow: var(--shadow-glow);
}
.profile-img img { width: 100%; height: 100%; object-fit: cover; }
.profile-placeholder {
    width: 100%; height: 100%;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    background: var(--bg-secondary);
    font-size: 4rem;
    gap: 0.5rem;
}
.profile-placeholder small { font-size: 0.8rem; color: var(--text-muted); }
.profile-ring {
    position: absolute;
    inset: -8px;
    border: 2px dashed rgba(124, 92, 252, 0.2);
    border-radius: 50%;
    animation: spin 20s linear infinite;
    z-index: 1;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    animation: fadeUp 1s ease-out 1s both;
}
.scroll-arrow {
    width: 20px; height: 30px;
    border: 2px solid var(--text-muted);
    border-radius: 10px;
    position: relative;
}
.scroll-arrow::after {
    content: '';
    width: 4px; height: 8px;
    background: var(--accent-light);
    border-radius: 2px;
    position: absolute;
    top: 5px; left: 50%;
    transform: translateX(-50%);
    animation: scrollDown 1.5s ease-in-out infinite;
}
@keyframes scrollDown { 0% { opacity: 1; top: 5px; } 100% { opacity: 0; top: 18px; } }

/* === Sections === */
.section { padding: 5rem 0; position: relative; z-index: 1; }
.section-alt { background: var(--bg-section); }

.section-header { margin-bottom: 3rem; text-align: center; }
.section-tag {
    display: inline-block;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: var(--accent-light);
    background: rgba(124, 92, 252, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.75rem;
}
.section-title { font-family: var(--font-display); font-size: 2rem; font-weight: 800; }
.section-line {
    width: 60px; height: 3px;
    background: var(--gradient-accent);
    border-radius: 2px;
    margin: 0.75rem auto 0;
}

/* === About === */
.about-grid { display: block; max-width: 850px; margin: 0 auto; text-align: center; }
.about-text p { color: var(--text-secondary); margin-bottom: 1.25rem; font-size: 1rem; line-height: 1.8; }
.about-text strong { color: var(--text-primary); }

/* === Skills === */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
}

.skill-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem 1rem;
    text-align: center;
    transition: 0.3s var(--ease);
}

.skill-item:hover {
    border-color: var(--accent);
    background: rgba(124, 92, 252, 0.05);
    transform: translateY(-5px);
}

.skill-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.skill-item span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .skills-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
    .skills-grid { grid-template-columns: repeat(2, 1fr); }
}

/* === Timeline === */
.timeline { position: relative; padding-left: 2.5rem; }
.timeline::before {
    content: '';
    position: absolute;
    left: 10px; top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), transparent);
}
.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
    animation: fadeUp 0.6s ease-out both;
}
.timeline-dot {
    position: absolute;
    left: -2.5rem; top: 6px;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 3px solid var(--accent);
    z-index: 2;
    transition: 0.3s var(--ease);
}
.timeline-item:hover .timeline-dot { background: var(--accent); box-shadow: 0 0 15px var(--accent-glow); }

.timeline-content {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: 0.3s var(--ease);
}
.timeline-item:hover .timeline-content { border-color: var(--border-hover); }
.timeline-date {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--accent-light);
    background: rgba(124, 92, 252, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.timeline-content h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin-bottom: 0.25rem; }
.timeline-org { color: var(--accent-light); font-size: 0.85rem; margin-bottom: 0.5rem; font-weight: 500; }
.timeline-content p:last-child { color: var(--text-secondary); font-size: 0.88rem; }

/* === Certifications === */
.certs-grid { display: flex; flex-direction: column; gap: 1rem; }
.cert-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    transition: 0.3s var(--ease);
}
.cert-card:hover { border-color: var(--border-hover); transform: translateX(8px); box-shadow: var(--shadow-glow); }
.cert-icon { font-size: 2rem; flex-shrink: 0; }
.cert-info { flex: 1; }
.cert-info h3 { font-family: var(--font-display); font-size: 1rem; font-weight: 700; margin-bottom: 0.2rem; }
.cert-org { font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 0.4rem; }
.cert-badge {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-light);
    background: rgba(124, 92, 252, 0.1);
    padding: 0.15rem 0.6rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.cert-link {
    display: inline-block;
    margin-top: 0.8rem;
    font-size: 0.85rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    opacity: 0.8;
}

.cert-link:hover {
    opacity: 1;
    transform: translateX(5px);
}

/* === Contact === */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.contact-info h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin-bottom: 0.75rem; }
.contact-info > p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 2rem; }
.contact-items { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: 0.3s var(--ease);
}
.contact-item:hover { transform: translateX(6px); }
.contact-icon {
    width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    flex-shrink: 0;
    color: var(--accent-light);
    transition: 0.3s var(--ease);
}
.contact-item:hover .contact-icon { border-color: var(--accent); box-shadow: var(--shadow-glow); }
.contact-icon svg { width: 20px; height: 20px; }
.contact-label { display: block; font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.1rem; }
.contact-item a { color: var(--text-primary); font-size: 0.9rem; transition: 0.3s; }
.contact-item a:hover { color: var(--accent-light); }

.contact-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.contact-card-inner {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    position: relative;
    z-index: 1;
    text-align: center;
}
.contact-card-glow {
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: radial-gradient(circle at center, var(--accent-glow) 0%, transparent 60%);
    opacity: 0.3;
    z-index: 0;
}
.contact-card h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; margin-bottom: 0.75rem; }
.contact-card p { color: var(--text-secondary); font-size: 0.88rem; margin-bottom: 1.5rem; line-height: 1.6; }

/* === Footer === */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 2rem 0;
    position: relative;
    z-index: 1;
}
.footer-content { text-align: center; }
.footer-brand { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.footer-copy { font-size: 0.78rem; color: var(--text-muted); }

/* === Responsive === */
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%; left: 0; right: 0;
        background: rgba(6, 6, 18, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid var(--border);
    }
    .nav-menu.active { display: flex; }

    .hero-content { grid-template-columns: 1fr; text-align: center; gap: 2.5rem; }
    .hero-text { order: 2; }
    .hero-visual { order: 1; justify-self: center; }
    .hero-desc { margin: 0 auto 1.75rem; }
    .hero-actions { justify-content: center; }
    .hero-social { justify-content: center; }
    .profile-frame { width: 220px; height: 220px; }

    .about-grid { grid-template-columns: 1fr; }
    .about-stats { justify-content: center; }

    .skills-grid { grid-template-columns: 1fr; }

    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .hero-name { font-size: 2rem; }
    .section { padding: 3rem 0; }
    .about-stats { flex-wrap: wrap; }
}
