/* =============================================
   PORTFOLIO — Design System & Styles
   Matches AI_Timeline aesthetic: dark glassmorphism
   ============================================= */

/* --- Reset & Variables --- */
:root {
    --bg-color: #0d0f17;
    --bg-surface: #1a1e2b;
    --bg-surface-hover: #242938;
    --text-main: #e2e8f0;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-cyan: #06b6d4;
    --accent-emerald: #10b981;

    --glow-blue: rgba(59, 130, 246, 0.4);
    --glow-purple: rgba(139, 92, 246, 0.4);
    --glow-cyan: rgba(6, 182, 212, 0.3);

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.03) 0%, transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.03) 0%, transparent 25%);
}

h1, h2, h3, h4, h5 {
    font-family: 'Outfit', sans-serif;
    line-height: 1.2;
}

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

img {
    max-width: 100%;
    display: block;
}

/* --- Floating Nav --- */
.floating-nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    z-index: 1000;
    opacity: 0;
    transition: transform 0.5s var(--transition), opacity 0.5s ease;
}

.floating-nav.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: rgba(15, 17, 25, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    padding: 0.6rem 1.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.nav-logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 0.25rem;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    padding: 0.4rem 0.9rem;
    border-radius: 100px;
    transition: all var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

/* --- Hero Section --- */
.hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 2rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    animation: float 8s ease-in-out infinite;
}

.orb-hero-1 {
    width: 500px;
    height: 500px;
    background: var(--accent-blue);
    top: -15%;
    left: -10%;
    animation-delay: 0s;
}

.orb-hero-2 {
    width: 400px;
    height: 400px;
    background: var(--accent-purple);
    bottom: -10%;
    right: -5%;
    animation-delay: -3s;
}

.orb-hero-3 {
    width: 300px;
    height: 300px;
    background: var(--accent-cyan);
    top: 50%;
    left: 60%;
    opacity: 0.15;
    animation-delay: -5s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.05); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

.particle-field {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: drift linear infinite;
}

@keyframes drift {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    padding: 0.4rem 1.2rem;
    border-radius: 100px;
    margin-bottom: 2rem;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 900;
    margin-bottom: 1rem;
    letter-spacing: -2px;
}

.gradient-text {
    background: linear-gradient(135deg, #fff 0%, #94a3b8 50%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-dim);
    max-width: 550px;
    margin: 0 auto 3rem;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 2rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #fff;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    box-shadow: 0 4px 20px var(--glow-blue);
    transition: all var(--transition);
    animation: ctaPulse 3s ease-in-out infinite;
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--glow-purple);
}

@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 4px 20px var(--glow-blue); }
    50% { box-shadow: 0 4px 30px var(--glow-purple); }
}

/* --- Sections --- */
.section {
    padding: 8rem 2rem;
    position: relative;
}

.section-dark {
    background: rgba(0, 0, 0, 0.2);
}

.section-container {
    max-width: 1100px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-cyan);
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Card Glass (shared) --- */
.card-glass {
    background: rgba(26, 30, 43, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.card-glass:hover {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* --- Bio Section --- */
.bio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.bio-card {
    padding: 2rem;
}

.bio-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bio-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.15));
    color: var(--accent-cyan);
    margin-bottom: 1.5rem;
}

.bio-highlight {
    font-weight: 600;
    color: var(--accent-blue);
    font-size: 0.95rem;
}

.bio-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.bio-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.08), transparent);
    margin: 1rem 0;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.skill-tag {
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.3rem 0.8rem;
    border-radius: 100px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    color: var(--accent-blue);
    transition: all var(--transition);
}

.skill-tag:hover {
    background: rgba(59, 130, 246, 0.2);
    transform: translateY(-1px);
}

.bio-narrative {
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.bio-narrative::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-purple));
    border-radius: 4px;
}

.bio-narrative p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.bio-narrative p:last-child {
    margin-bottom: 0;
}

.bio-narrative strong {
    color: var(--text-main);
}

/* --- Value Proposition --- */
.value-statement {
    padding: 3rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.value-statement::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 10rem;
    font-family: 'Outfit', sans-serif;
    color: rgba(139, 92, 246, 0.06);
    line-height: 1;
    pointer-events: none;
}

.value-statement blockquote {
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--text-main);
    line-height: 1.8;
    max-width: 800px;
    margin: 0 auto;
    font-style: italic;
}

.accent-highlight {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
    font-style: normal;
}

.value-pillars {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.pillar {
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
}

.pillar:hover {
    transform: translateY(-4px);
}

.pillar-number {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(139, 92, 246, 0.08));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 1rem;
}

.pillar h3 {
    font-size: 1.2rem;
    color: #fff;
    margin-bottom: 1rem;
}

.pillar p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* --- Artifacts Gallery --- */
.artifacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.artifact-card {
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.artifact-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent-cyan);
    box-shadow: 0 12px 40px var(--glow-cyan);
}

.artifact-thumb {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.artifact-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.artifact-card:hover .artifact-thumb img {
    transform: scale(1.08);
}

.artifact-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13, 15, 23, 0.9), transparent 60%);
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity var(--transition);
}

.artifact-card:hover .artifact-overlay {
    opacity: 1;
}

.artifact-view-btn {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.3);
    padding: 0.5rem 1.2rem;
    border-radius: 100px;
}

.artifact-body {
    padding: 1.5rem 2rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.artifact-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-purple);
    margin-bottom: 0.75rem;
}

.artifact-title {
    font-size: 1.3rem;
    color: #fff;
    margin-bottom: 0.75rem;
}

.artifact-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.artifact-meta {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 1.5rem;
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.meta-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent-cyan);
}

.meta-value {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Placeholder artifact */
.artifact-placeholder {
    cursor: default;
    opacity: 0.5;
}

.artifact-placeholder:hover {
    transform: none;
    border-color: rgba(255, 255, 255, 0.06);
    box-shadow: none;
}

.placeholder-thumb {
    background: linear-gradient(135deg, var(--bg-surface), var(--bg-color));
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-icon {
    color: var(--text-dim);
}

.placeholder-tag {
    color: var(--text-dim) !important;
}

.placeholder-title {
    color: var(--text-dim) !important;
}

/* --- Footer --- */
.site-footer {
    text-align: center;
    padding: 4rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(0, 0, 0, 0.15);
}

.footer-inner {
    max-width: 600px;
    margin: 0 auto;
}

.footer-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.3rem;
}

.footer-course {
    font-size: 0.85rem;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all var(--transition);
}

.footer-link:hover {
    color: #fff;
    border-color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.1);
}

/* --- Animations / Fade-In --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.show {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media screen and (max-width: 768px) {
    .section {
        padding: 5rem 1.25rem;
    }

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

    .value-pillars {
        grid-template-columns: 1fr;
    }

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

    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 2.8rem;
        letter-spacing: -1px;
    }

    .hero-subtitle {
        font-size: 1rem;
        letter-spacing: 1px;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .value-statement blockquote {
        font-size: 1.1rem;
    }

    .bio-narrative {
        padding: 2rem 1.5rem 2rem 2rem;
    }
}

@media screen and (max-width: 480px) {
    .artifacts-grid {
        grid-template-columns: 1fr;
    }

    .artifact-thumb {
        height: 180px;
    }

    .hero-badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.8rem;
    }
}
