/* ============================================
   DF_137 — DESIGN SYSTEM
   Dark Purple/Red Theme | Montserrat
   ============================================ */

/* CSS Variables */
/* Montserrat, served from this site (SIL OFL 1.1, see /fonts/Montserrat-OFL.txt).
   One variable file covers every weight. "Montserrat Fallback" is Arial scaled
   to Montserrat's metrics, so text does not move when the web font arrives. */
@font-face {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 300 800;
    font-display: swap;
    src: url('../fonts/montserrat-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Montserrat Fallback';
    src: local('Arial'), local('ArialMT'), local('Liberation Sans');
    size-adjust: 113.39%;
    ascent-override: 85.37%;
    descent-override: 22.14%;
    line-gap-override: 0%;
}

:root {
    --bg-primary: #150B22;
    --bg-secondary: #1C0D2A;
    --mid-1: #2b0057;
    --mid-2: #4a0149;
    --mid-3: #5b001f;
    --accent: #C7A6FF;
    --text: #F5F3FF;
    --text-muted: rgba(245, 243, 255, 0.6);
    --text-dim: rgba(245, 243, 255, 0.5); /* 4.8:1 on the background (WCAG AA) */
    --glass-bg: rgba(28, 13, 42, 0.55);
    --glass-border: rgba(199, 166, 255, 0.15);
    --glass-blur: 20px;
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    --transition-fast: 0.25s ease;
    --transition-slow: 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    --font: 'Montserrat', 'Montserrat Fallback', Arial, sans-serif;
    --max-width: 1280px;
    --nav-height: 72px;
    --shadow-glow: 0 0 40px rgba(199, 166, 255, 0.15);
    --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.4);
    --gradient-1: linear-gradient(135deg, #2b0057, #5b001f);
    --gradient-2: linear-gradient(135deg, #4a0149, #2b0057);
    --gradient-accent: linear-gradient(135deg, #C7A6FF, #5b001f);
    --gradient-text: linear-gradient(135deg, #C7A6FF 0%, #F5F3FF 50%, #5b001f 100%);
}

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

/* Keyboard focus is always visible (mouse clicks do not show it). */
:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 10001;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: var(--bg-primary);
    font-weight: 700;
    transform: translateY(-160%);
    transition: transform 0.2s ease;
}
.skip-link:focus { transform: none; }
/* In-page link targets (e.g. <main> after the skip link) get focus
   programmatically; a ring around a whole section is only noise. */
[tabindex="-1"]:focus { outline: none; }

/* Read by screen readers and search engines, not shown. */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.no-js { display: none; }
.no-js body { cursor: auto; }

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; }

::selection {
    background: rgba(199, 166, 255, 0.3);
    color: var(--text);
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(var(--mid-1), var(--mid-3));
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ============================================
   PAGE LOADER
   ============================================ */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.returning .page-loader { display: none; }

.page-loader { animation: loaderFailsafe 0.4s ease 2.5s forwards; }

@keyframes loaderFailsafe {
    to { opacity: 0; visibility: hidden; pointer-events: none; }
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-logo {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    display: flex;
    align-items: center;
    gap: 4px;
}

.loader-bracket {
    color: var(--accent);
    font-weight: 400;
    animation: bracketPulse 1.5s ease-in-out infinite;
}

.loader-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes bracketPulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

.loader-bar {
    width: 200px;
    height: 2px;
    background: rgba(199, 166, 255, 0.15);
    border-radius: 2px;
    overflow: hidden;
}

.loader-bar-fill {
    height: 100%;
    width: 0;
    background: var(--gradient-accent);
    border-radius: 2px;
    animation: loaderFill 1.8s ease-in-out forwards;
}

@keyframes loaderFill {
    0% { width: 0; }
    100% { width: 100%; }
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */
.has-cursor,
.has-cursor *:not(input):not(textarea):not(select) { cursor: none !important; }

.cursor-dot,
.cursor-ring { display: none; top: 0; left: 0; will-change: transform; }
.has-cursor .cursor-dot,
.has-cursor .cursor-ring { display: block; }

.cursor-dot {
    position: fixed;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate3d(-100px, -100px, 0);
    transition: width 0.2s, height 0.2s, opacity 0.2s;
}

.cursor-ring {
    position: fixed;
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(199, 166, 255, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate3d(-100px, -100px, 0);
    transition: width 0.3s, height 0.3s, border-color 0.3s, background 0.3s;
}

.cursor-ring.hover {
    width: 56px;
    height: 56px;
    border-color: var(--accent);
    background: rgba(199, 166, 255, 0.08);
}

.cursor-dot.hover {
    width: 10px;
    height: 10px;
}

@media (max-width: 768px) {
    .cursor-dot, .cursor-ring { display: none; }
    body { cursor: auto; }
    button { cursor: pointer; }
}

/* ============================================
   THREE.JS CANVAS
   ============================================ */
.three-canvas { opacity: 0; transition: opacity 1.2s ease; }
.three-canvas.is-ready { opacity: 1; }

.three-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ============================================
   NOISE OVERLAY
   ============================================ */
.noise-overlay {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: all var(--transition);
}

.navbar.scrolled {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 2px;
    z-index: 1002;
}

.logo-bracket {
    color: var(--accent);
    font-weight: 400;
}

.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-link {
    padding: 8px 16px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    position: relative;
    transition: all var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--gradient-accent);
    border-radius: 2px;
    transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 60%;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    z-index: 1002;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        gap: 16px;
        background: var(--glass-bg);
        backdrop-filter: blur(var(--glass-blur));
        -webkit-backdrop-filter: blur(var(--glass-blur));
        border-left: 1px solid var(--glass-border);
        transform: translateX(100%);
        visibility: hidden;
        transition: transform var(--transition), visibility var(--transition);
    }
    .nav-links.open { transform: translateX(0); visibility: visible; }
    .nav-link { font-size: 1.1rem; padding: 12px 24px; }
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    position: relative;
    z-index: 2;
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow-x: hidden;
}

/* Sections are flex items here. Without an explicit width, their
   "margin: 0 auto" shrinks them to their content, and the portfolio, blog and
   report grids collapsed to a single ~600px column on wide screens. */
.main-content > * {
    width: 100%;
    min-width: 0;
}

/* ============================================
   SECTIONS
   ============================================ */
.section {
    padding: 120px 32px;
    max-width: var(--max-width);
    margin: 0 auto;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

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

/* ============================================
   HERO
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 32px 80px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-greeting {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 24px;
    animation: heroIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0s both;
}

.hero-name {
    font-size: clamp(2.3rem, 7vw, 5.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    text-wrap: balance;
    margin-bottom: 28px;
    animation: heroIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both;
}

.hero-name .gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 6s ease infinite;
}

@keyframes heroIn {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: none; }
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 400;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 48px;
    animation: heroIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.hero-owner {
    display: block;
    font-size: clamp(1.15rem, 2.4vw, 1.6rem);
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text);
}

.hero-greeting,
.hero-affiliation,
.hero-roles { text-wrap: balance; }

.hero-affiliation {
    display: block;
    margin-top: 6px;
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    color: var(--text-muted);
}

.hero-roles {
    display: block;
    margin-top: 18px;
    font-size: 0.85rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
}

.hero-subtitle .accent-dot {
    color: var(--accent);
    margin: 0 8px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: heroIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-dim);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    z-index: 3;
}

.scroll-indicator-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    position: relative;
    overflow: hidden;
}

.scroll-indicator-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: var(--accent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(200%); }
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    border-radius: var(--radius-md);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--text);
    box-shadow: 0 4px 20px rgba(199, 166, 255, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(199, 166, 255, 0.4);
}

.btn-ghost {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--text);
}

.btn-ghost:hover {
    border-color: var(--accent);
    background: rgba(199, 166, 255, 0.08);
    transform: translateY(-2px);
}

/* ============================================
   PORTFOLIO CARDS
   ============================================ */
.portfolio-section {
    padding: 120px 32px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.filter-tabs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 10px 24px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    border-radius: 100px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.filter-tab:hover {
    color: var(--text);
    border-color: rgba(199, 166, 255, 0.3);
}

.filter-tab.active {
    background: var(--gradient-accent);
    color: var(--text);
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(199, 166, 255, 0.25);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 24px;
}

.portfolio-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    position: relative;
    transform-style: preserve-3d;
}

.portfolio-card:hover {
    border-color: rgba(199, 166, 255, 0.3);
    box-shadow: var(--shadow-card), var(--shadow-glow);
}

.portfolio-card-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    position: relative;
}

.portfolio-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.portfolio-card:hover .portfolio-card-image img {
    transform: scale(1.08);
}

.portfolio-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(21, 11, 34, 0.9), transparent 60%);
    opacity: 0;
    transition: opacity var(--transition);
    display: flex;
    align-items: flex-end;
    padding: 20px;
}

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

.portfolio-card-body {
    padding: 24px;
}

.portfolio-card-category {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}

.portfolio-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.portfolio-card-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.portfolio-card-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.portfolio-card-tag {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 100px;
    background: rgba(199, 166, 255, 0.08);
    color: var(--accent);
    border: 1px solid rgba(199, 166, 255, 0.15);
}

/* ============================================
   SKILLS SECTION
   ============================================ */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.skill-item {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 24px;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.skill-name {
    font-size: 0.9rem;
    font-weight: 600;
}

.skill-percent {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
}

.skill-bar {
    width: 100%;
    height: 6px;
    background: rgba(199, 166, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    width: 0;
    background: var(--gradient-accent);
    border-radius: 3px;
    transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ============================================
   FEATURED PROJECTS
   ============================================ */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 32px;
}

.featured-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    cursor: pointer;
}

.featured-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.featured-card:hover img { transform: scale(1.06); }

.featured-card-content {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(21, 11, 34, 0.95) 0%, rgba(21, 11, 34, 0.3) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px;
}

.featured-card-category {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}

.featured-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.featured-card-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ============================================
   ABOUT PAGE — TIMELINE
   ============================================ */
.about-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    padding: 120px 32px 80px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.about-profile-card {
    perspective: 1000px;
}

.about-profile-card-inner {
    transform-style: preserve-3d;
    transition: transform 0.1s ease;
}

.about-profile-image {
    width: 100%;
    aspect-ratio: 1;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-card), var(--shadow-glow);
}

.about-profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-text h1,
.about-text h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.1;
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 1.05rem;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .about-hero { grid-template-columns: 1fr; gap: 32px; padding-top: 100px; }
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 32px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--accent), transparent);
    transform: translateX(-50%);
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr 60px 1fr;
    gap: 0;
    margin-bottom: 48px;
    align-items: center;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    margin: 0 auto;
    box-shadow: 0 0 20px rgba(199, 166, 255, 0.5);
    position: relative;
    z-index: 2;
}

.timeline-content {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 24px;
}

.timeline-item:nth-child(odd) .timeline-content { grid-column: 1; text-align: right; }
.timeline-item:nth-child(even) .timeline-content { grid-column: 3; }

.timeline-date {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 8px;
}

.timeline-title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.timeline-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .timeline::before { left: 20px; }
    .timeline-item { grid-template-columns: 40px 1fr; gap: 16px; }
    .timeline-dot { margin: 0; }
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content { grid-column: 2; text-align: left; }
}

/* Circular Progress */
.skills-circular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 32px;
    justify-items: center;
}

.circular-skill {
    text-align: center;
}

.circular-progress {
    position: relative;
    width: 140px;
    height: 140px;
    margin-bottom: 12px;
}

.circular-progress svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.circular-progress circle {
    fill: none;
    stroke-width: 6;
    stroke-linecap: round;
}

.circular-progress .bg-ring {
    stroke: rgba(199, 166, 255, 0.1);
}

.circular-progress .fill-ring {
    stroke: url(#circularGradient);
    stroke-dasharray: 408;
    stroke-dashoffset: 408;
    transition: stroke-dashoffset 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.circular-percent {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
}

.circular-skill-name {
    font-size: 0.9rem;
    font-weight: 600;
}

/* Stats Counter */
.stats-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 32px;
    padding: 80px 32px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
}

/* ============================================
   PORTFOLIO DETAIL
   ============================================ */
.portfolio-detail-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-1);
}

.portfolio-detail-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.portfolio-detail-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(21, 11, 34, 0.6), rgba(21, 11, 34, 0.95));
    z-index: 1;
}

.portfolio-detail-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 32px;
    max-width: 800px;
}

.portfolio-detail-body {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 48px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 80px 32px;
}

.portfolio-detail-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.portfolio-detail-content h3 {
    color: var(--text);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 32px 0 16px;
}

.portfolio-detail-content p { margin-bottom: 16px; }

.portfolio-detail-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

.info-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 28px;
}

.info-card h4 {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(199, 166, 255, 0.08);
    font-size: 0.875rem;
}

.info-row:last-child { border-bottom: none; }
.info-row .label { color: var(--text-muted); }
.info-row .value { font-weight: 600; }

@media (max-width: 900px) {
    .portfolio-detail-body { grid-template-columns: 1fr; }
    .portfolio-detail-sidebar { position: static; }
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin: 32px 0;
}

.gallery-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: zoom-in;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img { transform: scale(1.1); }

/* Next/Prev Nav */
.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 48px 32px 80px;
}

.post-nav-link {
    flex: 1;
    padding: 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.post-nav-link:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.post-nav-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 4px;
}

.post-nav-title {
    font-size: 1rem;
    font-weight: 600;
}

.post-nav-link.next { text-align: right; }

/* ============================================
   BLOG
   ============================================ */
.blog-featured {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 120px 32px 48px;
}

.blog-featured-card {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 21 / 9;
    display: flex;
    align-items: flex-end;
}

.blog-featured-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    transition: transform 0.8s ease;
}

.blog-featured-card:hover img { transform: scale(1.05); }

.blog-featured-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(21, 11, 34, 0.95), rgba(21, 11, 34, 0.2) 60%, transparent);
    z-index: 1;
}

.blog-featured-content {
    position: relative;
    z-index: 2;
    padding: 48px;
    max-width: 600px;
}

.blog-featured-tag {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
}

.blog-featured-title {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 12px;
}

.blog-featured-excerpt {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.blog-meta {
    display: flex;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-dim);
    align-items: center;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 32px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 48px 32px 120px;
}

.blog-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
}

.blog-card:hover {
    border-color: rgba(199, 166, 255, 0.3);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.blog-card:hover .blog-card-image img { transform: scale(1.08); }

.blog-card-body { padding: 24px; }

.blog-card-tag {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.blog-card-excerpt {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px;
}

/* ============================================
   BLOG DETAIL
   ============================================ */
.blog-detail-hero {
    position: relative;
    height: 50vh;
    min-height: 350px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-1);
}

.blog-detail-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.blog-detail-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(21, 11, 34, 0.5), rgba(21, 11, 34, 0.95));
    z-index: 1;
}

.blog-detail-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 32px;
    max-width: 800px;
}

.blog-detail-hero-content h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.blog-detail-body {
    max-width: 760px;
    margin: 0 auto;
    padding: 64px 32px 80px;
}

.blog-detail-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.blog-detail-content h2 {
    color: var(--text);
    font-size: 1.6rem;
    font-weight: 700;
    margin: 40px 0 16px;
}

.blog-detail-content h3 {
    color: var(--text);
    font-size: 1.3rem;
    font-weight: 600;
    margin: 32px 0 12px;
}

.blog-detail-content p { margin-bottom: 20px; }

.blog-detail-content img {
    border-radius: var(--radius-md);
    margin: 24px 0;
}

.blog-detail-content blockquote {
    border-left: 3px solid var(--accent);
    padding: 16px 24px;
    margin: 24px 0;
    background: rgba(199, 166, 255, 0.05);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--text);
}

.blog-detail-content pre {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 20px;
    overflow-x: auto;
    margin: 24px 0;
}

.blog-detail-content code {
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: var(--accent);
}

.blog-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 40px 0;
}

.blog-tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 100px;
    background: rgba(199, 166, 255, 0.08);
    color: var(--accent);
    border: 1px solid rgba(199, 166, 255, 0.15);
}

/* ============================================
   REPORTS
   ============================================ */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 48px 32px 120px;
}

.report-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.report-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity var(--transition);
}

.report-card:hover {
    border-color: rgba(199, 166, 255, 0.3);
    transform: translateY(-4px);
    box-shadow: var(--shadow-card), var(--shadow-glow);
}

.report-card:hover::before { opacity: 1; }

.report-card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: rgba(199, 166, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--accent);
}

.report-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}

.report-card-excerpt {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.report-card-meta {
    display: flex;
    gap: 16px;
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.report-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.report-card-actions {
    display: flex;
    gap: 12px;
}

.report-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 100px;
    background: var(--gradient-accent);
    color: var(--text);
    transition: all var(--transition-fast);
}

.report-download-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(199, 166, 255, 0.3);
}

.report-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 100px;
    background: transparent;
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.report-view-btn:hover {
    border-color: var(--accent);
    color: var(--text);
}

/* ============================================
   REPORT DETAIL
   ============================================ */
.report-detail-hero {
    position: relative;
    height: 50vh;
    min-height: 350px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.report-detail-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.report-detail-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(21, 11, 34, 0.5), rgba(21, 11, 34, 0.95));
    z-index: 1;
}

.report-detail-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 32px;
    max-width: 800px;
}

.report-detail-body {
    max-width: 800px;
    margin: 0 auto;
    padding: 64px 32px 80px;
}

.report-section {
    margin-bottom: 48px;
}

.report-section > h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--glass-border);
}


.report-attachments {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-top: 32px;
}

.report-attachments h4 {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.attachment-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(199, 166, 255, 0.08);
}

.attachment-item:last-child { border-bottom: none; }

.attachment-name {
    font-size: 0.875rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.attachment-size {
    font-size: 0.75rem;
    color: var(--text-dim);
}

/* ============================================
   CONTACT
   ============================================ */
.contact-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 120px 32px;
    align-items: center;
}

.contact-info h1,
.contact-info h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.1;
}

.contact-info p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 32px;
}

.contact-social {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.contact-social-link {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.contact-social-link:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(199, 166, 255, 0.2);
}

.contact-form-wrapper {
    perspective: 1000px;
}

.contact-form {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: var(--shadow-card), var(--shadow-glow);
    transition: transform 0.1s ease;
    transform-style: preserve-3d;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 14px 18px;
    background: rgba(21, 11, 34, 0.5);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.9rem;
    font-family: var(--font);
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(199, 166, 255, 0.1);
    background: rgba(21, 11, 34, 0.7);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-message {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    margin-bottom: 20px;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

.form-message.error {
    display: block;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

@media (max-width: 768px) {
    .contact-section { grid-template-columns: 1fr; gap: 32px; padding-top: 100px; }
    .form-input, .form-textarea { cursor: text; }
}

/* ============================================
   LOGIN PAGE
   ============================================ */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    position: relative;
    overflow: hidden;
}

.login-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 48px;
    width: 100%;
    max-width: 420px;
    box-shadow: var(--shadow-card), var(--shadow-glow);
    position: relative;
    z-index: 2;
}

.login-logo {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.login-logo .logo-bracket { color: var(--accent); }

.login-subtitle {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.login-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    margin-bottom: 20px;
    text-align: center;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    position: relative;
    z-index: 2;
    padding: 80px 32px 32px;
    border-top: 1px solid var(--glass-border);
    background: rgba(21, 11, 34, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
}

.footer-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(199, 166, 255, 0.08), transparent 70%);
    pointer-events: none;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    position: relative;
    z-index: 1;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.1em;
}

.footer-tagline {
    font-size: 0.875rem;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.social-link:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(199, 166, 255, 0.2);
}

.footer-bottom {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-dim);
    padding-top: 24px;
    border-top: 1px solid rgba(199, 166, 255, 0.08);
    width: 100%;
}

/* ============================================
   READING PROGRESS BAR
   ============================================ */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    transform: scaleX(0);
    transform-origin: 0 50%;
    height: 3px;
    background: var(--gradient-accent);
    z-index: 9999;
    will-change: transform;
    box-shadow: 0 0 10px rgba(199, 166, 255, 0.5);
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: rgba(21, 11, 34, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.lightbox.open { display: flex; }

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    font-size: 1.5rem;
    transition: all var(--transition-fast);
}

.lightbox-close:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: rotate(90deg);
}

/* ============================================
   SCROLL REVEAL
   ============================================ */
.reveal {
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal-ready .reveal:not(.visible) {
    opacity: 0;
    transform: translateY(40px);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-scale {
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal-ready .reveal-scale:not(.visible) {
    opacity: 0;
    transform: scale(0.9);
}

.reveal-scale.visible {
    opacity: 1;
    transform: scale(1);
}

/* ============================================
   EMPTY STATE
   ============================================ */
.empty-state {
    text-align: center;
    padding: 80px 32px;
    color: var(--text-muted);
}

.empty-state h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
}

.empty-state p {
    font-size: 0.9rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .section { padding: 80px 20px; }
    .portfolio-section { padding: 80px 20px; }
    .portfolio-grid { grid-template-columns: 1fr; }
    .featured-grid { grid-template-columns: 1fr; }
    .blog-grid { grid-template-columns: 1fr; }
    .reports-grid { grid-template-columns: 1fr; }
    .stats-section { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .skills-circular-grid { grid-template-columns: repeat(2, 1fr); }
    .blog-featured-content { padding: 24px; }
    .contact-form { padding: 24px; }
    .login-card { padding: 24px; }
    .footer { padding: 60px 20px 32px; }
    
    /* Hide decorative parallax orbs & footer glow to prevent mobile horizontal overflow & lag */
    .parallax-orb, .footer-glow { display: none !important; }
    
    /* Fix Timeline Grid Layout on mobile */
    .timeline::before { left: 20px; transform: none; }
    .timeline-item { grid-template-columns: 40px 1fr; gap: 16px; display: grid; }
    .timeline-dot { grid-column: 1; grid-row: 1; margin: 0 auto; }
    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content { grid-column: 2; grid-row: 1; text-align: left; }
    .timeline-item > div:not([class]) { display: none; }
}

@media (max-width: 480px) {
    .stats-section { grid-template-columns: 1fr; }
    .skills-circular-grid { grid-template-columns: 1fr; }
    .filter-tabs { gap: 6px; }
    .filter-tab { padding: 8px 16px; font-size: 0.8rem; }
    .hero { padding: 100px 16px 60px; }
    .about-text, .contact-info { padding: 0 8px; }
}

/* ============================================
   PREFERS REDUCED MOTION
   ============================================ */
/* ============================================
   MEDIA PLACEHOLDER — shown where a portfolio item, post or report has no
   image yet (resources/views/components/media-placeholder.blade.php).
   It fills its container, which already has a fixed size or aspect ratio.
   ============================================ */
.media-ph {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
    isolation: isolate;
    color: var(--accent);
    background:
        radial-gradient(110% 90% at 12% 8%, rgba(199, 166, 255, 0.2), transparent 55%),
        radial-gradient(90% 80% at 92% 100%, rgba(91, 0, 31, 0.6), transparent 60%),
        linear-gradient(135deg, var(--mid-1) 0%, var(--bg-secondary) 55%, var(--mid-2) 100%);
}

.media-ph::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgba(245, 243, 255, 0.16) 1px, transparent 1.5px);
    background-size: 18px 18px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 25%, transparent 75%);
    mask-image: radial-gradient(ellipse at 50% 50%, #000 25%, transparent 75%);
}

.media-ph::after {
    content: '';
    position: absolute;
    z-index: -1;
    width: min(46%, 220px);
    aspect-ratio: 1;
    border-radius: 50%;
    border: 1px solid rgba(199, 166, 255, 0.28);
    box-shadow: 0 0 80px rgba(199, 166, 255, 0.18), inset 0 0 40px rgba(199, 166, 255, 0.12);
}

.media-ph svg {
    width: clamp(36px, 16%, 88px);
    height: auto;
    opacity: 0.9;
    filter: drop-shadow(0 0 14px rgba(199, 166, 255, 0.45));
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.media-ph--cover {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.portfolio-card:hover .media-ph svg,
.featured-card:hover .media-ph svg,
.blog-card:hover .media-ph svg { transform: scale(1.1); }

/* ============================================
   BLOG EMPTY STATE
   ============================================ */
.empty-state--blog {
    max-width: 620px;
    margin: 24px auto 0;
    padding: 40px 32px 44px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    background: var(--glass-bg);
}

.empty-state-art {
    width: 132px;
    height: 132px;
    margin: 0 auto 24px;
    border-radius: 50%;
    overflow: hidden;
}

.empty-state--blog p {
    max-width: 440px;
    margin: 0 auto;
    line-height: 1.7;
}

.empty-state-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .three-canvas { display: none; }
    .noise-overlay { display: none; }
    .cursor-dot, .cursor-ring { display: none; }
    body { cursor: auto; }
    .reveal, .reveal-scale { opacity: 1; transform: none; }
}
