/* ================================================================
   PORTFOLIO.CSS — Custom dark theme on top of Bootstrap
   Warna aksen: #ff4309 (orange)  |  Font: Poppins
================================================================ */

/* ── Global ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

:root {
    --accent:      #ff4309;
    --accent-soft: rgba(255, 67, 9, 0.15);
    --bg:          #232323;
    --bg-dark:     #181818;
    --glass-bg:    rgba(255,255,255,0.05);
    --glass-border:rgba(255,255,255,0.10);
    --text-muted-custom: #9ca3af;
    --card-hover-border: rgba(255,67,9,0.30);
}

html { scroll-behavior: smooth; }

.portfolio-body {
    font-family: 'Poppins', sans-serif;
    color: #fff;
    background-color: var(--bg);
    background-image: radial-gradient(ellipse at top, #222 0%, #181818 70%);
    background-attachment: fixed;
    position: relative;
    z-index: 1;
    overflow-x: hidden;
}

/* Noise texture overlay */
.portfolio-body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 800'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E");
    opacity: 0.03;
    z-index: -1;
    pointer-events: none;
}

/* Bootstrap overrides */
.text-muted { color: var(--text-muted-custom) !important; }
a { color: var(--accent); }

/* ── Navbar ────────────────────────────────────────────────── */
.nav-bar {
    top: 1rem !important;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 800px;
    border-radius: 9999px;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.05) inset;
    transition: all 0.5s ease;
    z-index: 1050;
}

.nav-inner { padding: 0.5rem 0.75rem; }

.nav-bar.scrolled {
    background: rgba(20,20,20,0.85);
    backdrop-filter: blur(28px) saturate(200%);
    -webkit-backdrop-filter: blur(28px) saturate(200%);
    border-color: rgba(255,255,255,0.08);
    box-shadow: 0 12px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04) inset;
}

.nav-logo-img { height: 2.25rem; transition: all 0.3s; }
.nav-divider { width: 1px; height: 1.5rem; background: rgba(255,255,255,0.2); margin: 0 0.25rem; flex-shrink: 0; }

/* Desktop nav link */
.nav-link-item {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: all 0.3s;
}
.nav-link-item:hover { color: #fff; transform: translateY(-1px); }

.nav-link--active { color: #fff !important; text-shadow: 0 0 20px rgba(255,128,78,0.6); }

.nav-active-bg {
    position: absolute; inset: 0; border-radius: 9999px;
    background: linear-gradient(to right, rgba(255,78,9,0.8), rgba(255,128,78,0.6));
    filter: blur(1px);
    animation: pulse-glow 2.5s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.85; }
    50% { opacity: 1; box-shadow: 0 0 12px rgba(255,78,9,0.5); }
}

.nav-link-content { position: relative; z-index: 1; display: flex; align-items: center; gap: 0.5rem; }
.nav-icon { font-size: 0.75rem; }

.nav-link-hover {
    position: absolute; inset: 0; border-radius: 9999px;
    background: rgba(255,255,255,0);
    transition: all 0.3s;
}
.nav-link-item:hover .nav-link-hover { background: rgba(255,255,255,0.1); }

/* Mobile menu button */
.mobile-menu-btn {
    position: relative;
    display: flex; align-items: center; justify-content: center;
    width: 2.5rem; height: 2.5rem;
    border-radius: 9999px;
    background: rgba(255,255,255,0.1);
    border: none; cursor: pointer;
    transition: all 0.3s;
}
.mobile-menu-btn:hover { background: rgba(255,255,255,0.2); }

.menu-icon { width: 1.25rem; height: 1.25rem; color: #fff; transition: all 0.3s; }
.menu-icon--close { position: absolute; opacity: 0; transform: rotate(90deg) scale(0.75); }
.mobile-menu-btn.is-open .menu-icon:not(.menu-icon--close) { opacity: 0; transform: rotate(90deg) scale(0.75); }
.mobile-menu-btn.is-open .menu-icon--close { opacity: 1; transform: rotate(0deg) scale(1); }

/* Mobile menu dropdown */
.mobile-menu {
    position: fixed;
    top: 4.5rem; left: 50%; transform: translateX(-50%) translateY(-8px) scale(0.97);
    z-index: 1040; width: 90%; max-width: 28rem;
    opacity: 0; pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.mobile-menu.hidden { display: none; }
.mobile-menu.open {
    opacity: 1; transform: translateX(-50%) translateY(0) scale(1); pointer-events: all;
    display: block !important;
}

.mobile-menu-inner {
    border-radius: 1rem;
    background: rgba(26,26,26,0.95);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    overflow: hidden;
}

.mobile-nav-link {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.75rem 1rem; border-radius: 0.75rem;
    font-size: 0.875rem; font-weight: 600;
    color: rgba(255,255,255,0.7); text-decoration: none;
    transition: all 0.2s;
}
.mobile-nav-link:hover { color: #fff; background: rgba(255,255,255,0.08); }
.mobile-nav-link--active {
    background: linear-gradient(to right, rgba(255,78,9,0.3), rgba(255,128,78,0.2));
    color: #FF804E;
    border: 1px solid rgba(255,78,9,0.3);
}

.mobile-nav-icon {
    display: flex; align-items: center; justify-content: center;
    width: 2rem; height: 2rem; border-radius: 0.5rem;
    font-size: 0.75rem;
    background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.6);
}
.mobile-nav-icon--active {
    background: linear-gradient(135deg, #FF4E09, #FF804E);
    color: #fff;
}
.mobile-nav-dot { width: 0.375rem; height: 0.375rem; border-radius: 9999px; background: #FF4E09; }

/* ── Glass Card ──────────────────────────────────────────── */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.glass-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
    border-color: var(--card-hover-border);
}

/* ── Accent Badge (tech pill) ──────────────────────────── */
.tech-badge {
    display: inline-block;
    padding: 0.2rem 0.75rem;
    font-size: 0.8rem; font-weight: 600;
    color: var(--accent);
    background: var(--accent-soft);
    border: 2px solid var(--accent);
    border-radius: 0.75rem;
    line-height: 1.5;
}

/* ── Section headings ─────────────────────────────────── */
.section-title {
    color: var(--accent);
    font-weight: 700;
    font-size: 2.25rem;
    text-align: center;
}
.section-subtitle {
    color: var(--text-muted-custom);
    font-size: 1.05rem;
    text-align: center;
    margin-top: 0.5rem;
}

/* ── Hero ─────────────────────────────────────────────── */
.hero-header {
    position: relative;
    width: 100%;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex; flex-direction: column;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: rgba(0,0,0,0.50);
}
.hero-content {
    position: relative; z-index: 10;
    display: flex; flex-direction: column;
    height: 100%;
    padding-top: 7rem; /* clear navbar */
}
.hero-title-area { margin-top: auto; margin-bottom: 45%; }
.hero-subtitle-area { position: absolute; bottom: 12%; right: 0; text-align: right; }

.hero-cta {
    display: inline-block; margin-top: 1rem;
    padding: 0.75rem 2rem;
    border-radius: 0.375rem;
    background: linear-gradient(to right, #FF4E09, #FF804E);
    color: #fff; font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(255,78,9,0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hero-cta:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 8px 30px rgba(255,78,9,0.5); color: #fff; }

/* ── Info card (about section) ─────────────────────────── */
.info-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex; align-items: center; justify-content: center;
}
.info-card-label { font-size: 0.8rem; color: var(--text-muted-custom); }
.info-card-value { font-size: 1.05rem; font-weight: 600; color: #fff; margin-top: 0.25rem; }

/* ── Requirement card ──────────────────────────────────── */
.requirement-card {
    height: 100%;
    transition: transform 0.3s ease;
}
.requirement-card:hover { transform: translateY(-8px); }
.requirement-card .glass-card {
    display: flex; flex-direction: column;
    align-items: center; padding: 2rem;
    height: 100%;
}
.req-icon { font-size: 3rem; color: #fff; }
.req-title { font-size: 1.25rem; font-weight: 400; margin-top: 1rem; text-align: center; color: #fff; }

/* Proficiency bar */
.proficiency-bar-wrapper { width: 100%; margin-top: auto; padding-top: 1.5rem; }
.proficiency-label { display: flex; justify-content: space-between; align-items: baseline; }
.proficiency-label-text { font-size: 0.875rem; color: #fff; }
.proficiency-text { font-size: 0.875rem; font-weight: 700; color: var(--accent); }
.proficiency-line-container { width: 100%; height: 0.5rem; background: #4b5563; border-radius: 9999px; margin-top: 0.375rem; }
.proficiency-line-fill { height: 100%; background: var(--accent); border-radius: 9999px; width: 0%; transition: width 0.8s ease-out; }

/* ── Swiper / Skill carousel ──────────────────────────── */
.skill-group {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}
.skill-group:hover {
    transform: translateY(-16px);
}

.skill-wrapper {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    height: 9rem;
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}
.skill-group:hover .skill-wrapper { 
    transform: translateY(-8px); 
    border-color: var(--card-hover-border); 
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.skill-img-wrap {
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.skill-img { max-height: 5rem; object-fit: contain; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.skill-hover-info {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    align-items: flex-start; justify-content: center;
    padding: 1rem; opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.skill-group:hover .skill-img-wrap { opacity: 0; transform: scale(0.75); }
.skill-group:hover .skill-hover-info { opacity: 1; }

.skill-name { text-align: center; font-size: 1rem; font-weight: 400; color: #fff; margin-top: 0.75rem; }
.skill-drag-hint { font-size: 0.75rem; color: #6b7280; text-align: center; margin-top: 0.5rem; }

/* ── Experience card ─────────────────────────────────── */
.exp-logo-wrap {
    width: 7rem; height: 7rem; border-radius: 50%;
    border: 2px solid var(--glass-border);
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.07);
    padding: 1rem; overflow: hidden; flex-shrink: 0;
}
.exp-meta-col { min-width: 200px; }
.view-detail-btn { cursor: pointer; transition: gap 0.2s; }
.view-detail-btn:hover { gap: 0.75rem !important; }

/* ── Experience modal ────────────────────────────────── */
.exp-modal {
    position: fixed; inset: 0; z-index: 2000;
    display: flex; align-items: flex-start; justify-content: center;
    padding: 2rem 1rem;
    opacity: 0; transition: opacity 0.3s;
}
.exp-modal.hidden { display: none; }
.exp-modal.open { opacity: 1; }

.modal-backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.75);
}
.modal-content {
    position: relative; z-index: 1;
    width: 100%; max-width: 820px;
    max-height: 90vh; overflow-y: auto;
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 1rem;
    box-shadow: 0 25px 60px rgba(0,0,0,0.6);
    transform: translateY(20px) scale(0.97);
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
    scrollbar-width: thin; scrollbar-color: var(--accent) transparent;
}
.modal-content.open { transform: translateY(0) scale(1); }

.exp-modal-header {
    position: sticky; top: 0; z-index: 5;
    display: flex; align-items: flex-start; justify-content: space-between;
    padding: 1.5rem 2rem;
    background: rgba(26,26,26,0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.exp-modal-close {
    display: flex; align-items: center; justify-content: center;
    width: 2.5rem; height: 2.5rem; border-radius: 9999px;
    border: none; cursor: pointer;
    background: rgba(255,255,255,0.08); color: #fff;
    flex-shrink: 0; transition: background 0.2s;
}
.exp-modal-close:hover { background: rgba(255,255,255,0.15); }
.exp-modal-icon {
    width: 2rem; height: 2rem; border-radius: 0.5rem;
    background: rgba(255,67,9,0.12);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

/* ── Lightbox ────────────────────────────────────────── */
.lightbox {
    position: fixed; inset: 0; z-index: 3000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; transition: opacity 0.25s;
}
.lightbox.hidden { display: none; }
.lightbox.open { opacity: 1; }
.lightbox-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.9); }
.lightbox-inner { position: relative; z-index: 1; padding: 1rem; max-width: 90vw; }
.lightbox-img { max-width: 100%; max-height: 85vh; border-radius: 0.5rem; object-fit: contain; }
.lightbox-close {
    position: absolute; top: -0.5rem; right: -0.5rem;
    width: 2.5rem; height: 2.5rem; border-radius: 9999px;
    border: none; cursor: pointer;
    background: rgba(255,255,255,0.2); color: #fff; transition: background 0.2s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.35); }

/* ── Certificate card ────────────────────────────────── */
.cert-card { transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s; }
.cert-card:hover { transform: translateY(-6px); border-color: var(--card-hover-border); box-shadow: 0 12px 40px rgba(0,0,0,0.4); }

/* ── Comments section ─────────────────────────────────── */

.comment-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    animation: comment-enter 0.5s ease forwards;
}
.comment-card:hover { 
    border-color: var(--card-hover-border); 
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Staggered delays for each comment */
.comment-card:nth-child(1)  { animation-delay: 0ms; }
.comment-card:nth-child(2)  { animation-delay: 80ms; }
.comment-card:nth-child(3)  { animation-delay: 160ms; }
.comment-card:nth-child(4)  { animation-delay: 240ms; }
.comment-card:nth-child(5)  { animation-delay: 320ms; }
.comment-card:nth-child(6)  { animation-delay: 400ms; }
.comment-card:nth-child(7)  { animation-delay: 480ms; }
.comment-card:nth-child(8)  { animation-delay: 560ms; }
.comment-card:nth-child(9)  { animation-delay: 640ms; }
.comment-card:nth-child(10) { animation-delay: 720ms; }

@keyframes comment-enter {
    to { opacity: 1; transform: translateY(0); }
}

/* Pulse border for freshly posted comment */
.comment-card--new {
    border-color: var(--accent) !important;
    animation: comment-enter 0.5s ease forwards, comment-new-pulse 1.6s ease 0.5s 2;
}

@keyframes comment-new-pulse {
    0%, 100% { border-color: var(--accent); box-shadow: none; }
    50%       { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,67,9,0.20); }
}


.comment-avatar {
    width: 2.5rem; height: 2.5rem; border-radius: 9999px;
    background: linear-gradient(135deg, #ff4309, #ff6b35);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; font-weight: 700; color: #fff; flex-shrink: 0;
}

/* Form inputs dark theme */
.form-control-dark {
    background: rgba(0,0,0,0.2) !important;
    border: 1px solid rgba(255,255,255,0.10) !important;
    border-radius: 0.75rem !important;
    color: #fff !important;
    transition: border-color 0.2s, box-shadow 0.2s !important;
}
.form-control-dark::placeholder { color: #6b7280 !important; }
.form-control-dark:focus {
    outline: none !important;
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 0.2rem rgba(255,67,9,0.15) !important;
    background: rgba(0,0,0,0.3) !important;
}

/* ── Footer ───────────────────────────────────────────── */
.portfolio-footer { color: #fff; }
.footer-upper {
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(24px);
    border-top: 1px solid rgba(255,255,255,0.10);
}
.footer-lower {
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(24px);
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 1.5rem;
}
.footer-logo { height: 3rem; }
.footer-desc { color: #d1d5db; font-size: 0.9rem; line-height: 1.7; }
.footer-social { color: #d1d5db; text-decoration: none; transition: color 0.2s; }
.footer-social:hover { color: var(--accent); }
.footer-heading { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 0.75rem; }
.footer-text { color: #d1d5db; font-size: 0.9rem; }
.footer-text-sm { color: #d1d5db; font-size: 0.85rem; }
.footer-email { display: inline-block; margin-top: 0.75rem; font-weight: 700; color: var(--accent); text-decoration: none; transition: opacity 0.2s; }
.footer-email:hover { opacity: 0.8; color: var(--accent); }
.footer-link { color: #d1d5db; text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.footer-link:hover { color: var(--accent); }
.footer-copyright { color: #9ca3af; font-size: 0.875rem; }

.status-dot {
    display: inline-block; width: 0.625rem; height: 0.625rem;
    border-radius: 9999px; background: #22c55e; flex-shrink: 0;
}

/* ── Accent button ────────────────────────────────────── */
.btn-accent {
    background: var(--accent);
    color: #fff; border: none;
    border-radius: 0.75rem;
    font-weight: 700;
    padding: 0.75rem 2rem;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(255,67,9,0.2);
}
.btn-accent:hover { background: rgba(255,67,9,0.8); color: #fff; transform: translateY(-2px); box-shadow: 0 8px 30px rgba(255,67,9,0.3); }
.btn-accent:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* ── Responsive helpers ──────────────────────────────── */
@media (max-width: 767.98px) {
    .nav-bar { width: 95%; top: 0.5rem !important; }
    .hero-header { background-attachment: scroll; }
    .section-title { font-size: 1.75rem; }
    .hero-title-area { margin-bottom: 50%; }
    .hero-subtitle-area { bottom: 8%; }
}

/* ── Project Overview (TinyMCE rich text) ────────────── */
.project-overview-content h1,
.project-overview-content h2,
.project-overview-content h3,
.project-overview-content h4,
.project-overview-content h5,
.project-overview-content h6 {
    color: #ffffff;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}
.project-overview-content p { margin-bottom: 1rem; }
.project-overview-content ul,
.project-overview-content ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    color: #d1d5db;
}
.project-overview-content li { margin-bottom: 0.25rem; }
.project-overview-content a { color: var(--accent); text-decoration: underline; }
.project-overview-content a:hover { opacity: 0.8; }
.project-overview-content strong { color: #fff; }
.project-overview-content em { color: #e5e7eb; }
.project-overview-content blockquote {
    border-left: 4px solid var(--accent);
    padding: 0.75rem 1rem;
    margin: 1rem 0;
    background: rgba(255,255,255,0.04);
    border-radius: 0 0.5rem 0.5rem 0;
    color: #9ca3af;
    font-style: italic;
}
.project-overview-content pre,
.project-overview-content code {
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 0.375rem;
    padding: 0.125rem 0.5rem;
    font-size: 0.875rem;
    color: #fb923c;
}
.project-overview-content pre { padding: 1rem; overflow-x: auto; }
.project-overview-content img { max-width: 100%; border-radius: 0.5rem; margin: 0.5rem 0; }

/* ===== SOCIAL SHARE BUTTONS ===== */
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 1rem;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    white-space: nowrap;
}
.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.35);
    opacity: 0.9;
}
.share-btn--twitter  { background: #000; color: #fff; }
.share-btn--linkedin { background: #0077b5; color: #fff; }
.share-btn--whatsapp { background: #25d366; color: #fff; }
.share-btn--copy     { background: rgba(255,255,255,0.1); color: #e2e8f0; border: 1px solid rgba(255,255,255,0.15); }
.share-btn--copy.copied { background: rgba(34,197,94,0.2); border-color: rgba(34,197,94,0.4); color: #4ade80; }

/* Toast */
.copy-toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(80px);
    background: #1f2937;
    color: #d1fae5;
    border: 1px solid rgba(34,197,94,0.3);
    padding: 0.6rem 1.4rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), opacity 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.copy-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ===== AESTHETIC UI: CUSTOM GLOW CURSOR ===== */
@media (hover: hover) and (pointer: fine) {
    /* Hide default cursor on desktop */
    body, .portfolio-body {
        cursor: none;
    }
    a, button, input, textarea, select, .nav-link, .btn {
        cursor: none; /* We override with our custom scale effect on hover */
    }

    .custom-cursor-dot {
        position: fixed;
        top: 0;
        left: 0;
        width: 8px;
        height: 8px;
        background: var(--accent);
        border-radius: 50%;
        pointer-events: none;
        z-index: 99999;
        transform: translate(-50%, -50%);
        transition: transform 0.15s ease-out; /* Scaling transition */
    }

    .custom-cursor-outline {
        position: fixed;
        top: 0;
        left: 0;
        width: 32px;
        height: 32px;
        border: 1px solid rgba(255, 67, 9, 0.4);
        background: rgba(255, 67, 9, 0.05);
        border-radius: 50%;
        pointer-events: none;
        z-index: 99998;
        transform: translate(-50%, -50%);
        transition: width 0.2s, height 0.2s, background 0.2s;
    }

    /* Hover effect over interactive elements */
    .custom-cursor-dot.hover-scale {
        transform: translate(-50%, -50%) scale(1.5);
    }
    .custom-cursor-outline.hover-scale {
        width: 48px;
        height: 48px;
        background: rgba(255, 67, 9, 0.1);
        border-color: rgba(255, 67, 9, 0.8);
    }
}

/* Fallback for mobile/touch - ensure cursor is normal */
@media (hover: none) and (pointer: coarse) {
    .custom-cursor-dot, .custom-cursor-outline {
        display: none !important;
    }
}

/* ===== AESTHETIC UI: MOUSE SPOTLIGHT (GLASS CARDS) ===== */
.glass-card, .cert-card, .timeline-card {
    position: relative;
    overflow: hidden;
}

.glass-card::before, .cert-card::before, .timeline-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    /* Glow size 400px circle focused on mouse X/Y */
    background: radial-gradient(400px circle at var(--mouse-x, -500px) var(--mouse-y, -500px), rgba(255, 67, 9, 0.12), transparent 40%);
    pointer-events: none; /* Let clicks pass through */
    z-index: 0;
    transition: opacity 0.3s ease;
    opacity: 0;
}

.glass-card:hover::before, .cert-card:hover::before, .timeline-card:hover::before {
    opacity: 1;
}

/* Ensure content above the glow is readable */
.glass-card > *, .cert-card > *, .timeline-card > * {
    position: relative;
    z-index: 1;
}
