/* ==========================================
   RESET & VARIABLES
   ========================================== */

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

:root {
    --primary: #c4b5fd;
    --primary-bright: #a78bfa;
    --accent: #67e8f9;
    --accent-dim: #22d3ee;
    --bg: #0c0c0f;
    --bg-card: #141418;
    --bg-elevated: #1c1c22;
    --border: #2a2a33;
    --border-hover: #3a3a44;
    --text: #f0f0f5;
    --text-secondary: #9898a8;
    --text-muted: #5c5c6e;
    --radius: 16px;
    --radius-sm: 10px;
    --font-body: 'Inter', -apple-system, sans-serif;
    --font-display: 'Sora', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

/* ==========================================
   GRAIN OVERLAY
   ========================================== */

.grain {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ==========================================
   CURSOR GLOW
   ========================================== */

.cursor-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    opacity: 0;
}

.cursor-glow.visible {
    opacity: 1;
}

/* ==========================================
   NAVIGATION
   ========================================== */

/* Unified Accordion Nav */
.acc-nav {
    position: fixed;
    top: 20px;
    left: 24px;
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 6px;
    background: rgba(20, 20, 24, 0.75);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: 50px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(196, 181, 253, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: border-color 0.3s ease;
}

.acc-nav:hover {
    border-color: var(--border-hover);
}

/* Logo inside the pill */
.acc-logo {
    font-family: var(--font-mono);
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 1px;
    padding: 6px 12px;
    border-radius: 50px;
    transition: background 0.2s;
    flex-shrink: 0;
}

.acc-logo:hover {
    background: rgba(196, 181, 253, 0.08);
}

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

/* Animated logo text — width transitions between "dj" and "dimijimz" */
.acc-logo-word {
    display: inline-block;
    position: relative;
    overflow: hidden;
    vertical-align: bottom;
    color: var(--text);
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-full,
.logo-short {
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.logo-full {
    display: inline-block;
}

.logo-short {
    position: absolute;
    left: 0;
    top: 0;
}

/* Collapsed: show "dj" */
.logo-short { opacity: 1; }
.logo-full { opacity: 0; }

/* Expanded: show "dimijimz" */
.acc-nav.expanded .logo-full { opacity: 1; }
.acc-nav.expanded .logo-short { opacity: 0; }

/* Divider between logo and links */
.acc-divider {
    width: 1px;
    height: 20px;
    background: var(--border);
    margin: 0 2px;
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.3s ease 0.1s;
}

.acc-nav.expanded .acc-divider {
    opacity: 1;
}

/* Links container — accordion via max-width + overflow */
.acc-links {
    display: flex;
    align-items: center;
    gap: 2px;
    position: relative;
    overflow: hidden;
    max-width: 0;
    opacity: 0;
    transition: max-width 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.3s ease;
}

.acc-nav.expanded .acc-links {
    max-width: 500px;
    opacity: 1;
}

/* Sliding active indicator */
.acc-slider {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: rgba(196, 181, 253, 0.1);
    border-radius: 50px;
    transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                left 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
    z-index: 0;
}

.acc-slider.visible {
    border: 1px solid rgba(196, 181, 253, 0.12);
}

.acc-link {
    position: relative;
    z-index: 1;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 50px;
    letter-spacing: 0.02em;
    transition: color 0.25s ease;
    white-space: nowrap;
    user-select: none;
}

.acc-link:hover {
    color: var(--text);
}

.acc-link.active {
    color: var(--text);
}

/* ==========================================
   HERO
   ========================================== */

.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 24px 80px;
}

.hero-content {
    max-width: 820px;
    width: 100%;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--accent);
    letter-spacing: 0.05em;
    margin-bottom: 32px;
    opacity: 0;
    animation: fadeUp 0.6s ease forwards;
    animation-delay: 0.2s;
}

.hero-label-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.hero-title {
    margin-bottom: 28px;
}

.hero-line {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(3.2rem, 8vw, 6.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    opacity: 0;
    animation: fadeUp 0.7s ease forwards;
}

.hero-line-1 { animation-delay: 0.35s; }
.hero-line-2 { animation-delay: 0.5s; }
.hero-line-3 { animation-delay: 0.65s; }

.hero-line-outline {
    -webkit-text-stroke: 2px var(--primary);
    color: transparent;
}

.hero-glow-hover {
    transition: color 0.3s ease, text-shadow 0.3s ease, -webkit-text-stroke-color 0.3s ease, opacity 0.7s ease, transform 0.7s ease;
    cursor: default;
}

.hero-glow-hover:hover {
    color: var(--primary);
    -webkit-text-stroke-color: var(--primary-bright);
    text-shadow:
        0 0 20px rgba(167, 139, 250, 0.5),
        0 0 40px rgba(167, 139, 250, 0.3),
        0 0 80px rgba(167, 139, 250, 0.15);
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 520px;
    line-height: 1.7;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeUp 0.7s ease forwards;
    animation-delay: 0.8s;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 16px;
    opacity: 0;
    animation: fadeUp 0.7s ease forwards;
    animation-delay: 0.95s;
}

/* Buttons */
.btn-primary {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 14px 28px;
    background: var(--primary);
    color: var(--bg);
    border-radius: var(--radius-sm);
    transition: all 0.25s ease;
    letter-spacing: 0.02em;
}

.btn-primary:hover {
    background: var(--primary-bright);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(167, 139, 250, 0.25);
}

.btn-ghost {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 500;
    padding: 14px 28px;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all 0.25s ease;
    letter-spacing: 0.02em;
}

.btn-ghost:hover {
    border-color: var(--primary);
    color: var(--text);
    transform: translateY(-2px);
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
    animation-delay: 1.4s;
}

.hero-scroll-indicator span {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--text-muted), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 1; scaleY: 1; }
    50% { opacity: 0.3; }
}

/* ==========================================
   SECTIONS (SHARED)
   ========================================== */

.section {
    padding: 120px 24px;
    position: relative;
}

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

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

.section-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--primary);
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}

/* ==========================================
   WORK / PROJECTS
   ========================================== */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.project-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    cursor: default;
}

.project-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.project-card-wide {
    grid-column: span 2;
}

.project-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bg-elevated);
}

.project-card-wide .project-image {
    aspect-ratio: 21 / 9;
}

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

.project-card:hover .project-image img {
    transform: scale(1.04);
}

.project-info {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.project-tags span {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 100px;
    letter-spacing: 0.02em;
}

.project-name {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.project-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    flex: 1;
}

.project-arrow {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translate(-4px, 4px);
}

.project-card:hover .project-arrow {
    opacity: 1;
    transform: translate(0, 0);
    color: var(--primary);
}

/* ==========================================
   SERVICES
   ========================================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: border-color 0.3s ease, transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
}

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

.service-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: var(--primary);
}

.service-name {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.service-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==========================================
   SIDE PROJECTS
   ========================================== */

.side-projects {
    margin-top: 48px;
}

.side-projects-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.side-projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 480px;
}

.project-card-small {
    opacity: 0.7;
    transition: opacity 0.3s ease, border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}

.project-card-small:hover {
    opacity: 1;
}

.project-card-small .project-name {
    font-size: 1.1rem;
}

.project-card-small .project-desc {
    font-size: 0.8rem;
}

/* ==========================================
   ABOUT SECTION
   ========================================== */

/* Bio */
.about-bio {
    max-width: 800px;
    margin-bottom: 64px;
}

.about-bio p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 20px;
}

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

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

/* Tech Stack */
.tech-stack {
    margin-bottom: 64px;
}

.tech-stack-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
}

.tech-category {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: border-color 0.3s ease;
}

.tech-category:hover {
    border-color: var(--border-hover);
}

.tech-category-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--primary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.tech-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.tech-icon-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 56px;
}

.tech-icon-item i {
    font-size: 1.75rem;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.tech-icon-item:hover i {
    color: var(--primary-bright);
}

.tech-icon-item span {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-muted);
    text-align: center;
    letter-spacing: 0.02em;
}

.tech-icon-svg {
    width: 1.75rem;
    height: 1.75rem;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.tech-icon-item:hover .tech-icon-svg {
    color: var(--primary-bright);
}

/* Beyond the Code */
.beyond-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.beyond-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.beyond-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.beyond-card:hover {
    border-color: var(--border-hover);
}

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

.beyond-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary);
}

.beyond-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text);
}

.beyond-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ==========================================
   ABOUT / BENTO GRID
   ========================================== */

.bento-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 16px;
}

.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: border-color 0.3s ease;
}

.bento-card:hover {
    border-color: var(--border-hover);
}

.bento-card-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.bento-icon {
    font-family: var(--font-mono);
    color: var(--primary);
    font-size: 0.9rem;
}

.stack-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.stack-tags span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    padding: 6px 14px;
    background: var(--bg-elevated);
    border-radius: 100px;
    border: 1px solid var(--border);
    transition: border-color 0.2s, color 0.2s;
}

.stack-tags span:hover {
    border-color: var(--primary);
    color: var(--text);
}

/* Values card */
.bento-values {
    grid-column: span 1;
}

.values-list li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    position: relative;
    padding-left: 16px;
}

.values-list li:last-child {
    border-bottom: none;
}

.values-list li::before {
    content: '~';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-family: var(--font-mono);
}

/* Experience card */
.bento-experience {
    grid-column: span 1;
}

.experience-items {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.exp-item {
    padding: 16px;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.exp-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--primary);
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.exp-detail {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Status card */
.bento-status {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 28px;
    background: linear-gradient(135deg, rgba(167, 139, 250, 0.05), rgba(103, 232, 249, 0.05));
    border-color: rgba(167, 139, 250, 0.15);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    animation: pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

.status-text {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* ==========================================
   CURRENTLY BUILDING
   ========================================== */

.building-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.building-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 32px;
    transition: border-color 0.3s ease;
}

.building-item:hover {
    border-color: var(--border-hover);
}

.building-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    gap: 16px;
}

.building-item-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
}

.building-badge {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 100px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.badge-progress {
    background: rgba(167, 139, 250, 0.1);
    color: var(--primary-bright);
    border: 1px solid rgba(167, 139, 250, 0.2);
}

.badge-shipped {
    background: rgba(52, 211, 153, 0.1);
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.2);
}

.badge-exploring {
    background: rgba(103, 232, 249, 0.1);
    color: var(--accent);
    border: 1px solid rgba(103, 232, 249, 0.2);
}

.building-item-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 8px;
}

.building-item-date {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

/* ==========================================
   CONTACT
   ========================================== */

.contact {
    padding-bottom: 80px;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contact-title {
    margin-bottom: 0;
}

.contact-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 20px;
    margin-bottom: 40px;
    line-height: 1.7;
}

.contact-email {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text);
    padding: 16px 32px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    margin-bottom: 32px;
}

.contact-email:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(167, 139, 250, 0.12);
}

.contact-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.contact-link {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.contact-link:hover {
    color: var(--primary);
}

.contact-divider {
    color: var(--text-muted);
    font-size: 0.8rem;
}

.contact-location {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* ==========================================
   FOOTER
   ========================================== */

.footer {
    padding: 24px;
    border-top: 1px solid var(--border);
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-name {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.footer-copy {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ==========================================
   PROJECT IMAGE OVERLAY
   ========================================== */

.project-image {
    position: relative;
    cursor: pointer;
}

.project-image-overlay {
    position: absolute;
    inset: 0;
    background: rgba(12, 12, 15, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-image-overlay {
    opacity: 1;
}

.project-view-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(167, 139, 250, 0.2);
    border: 1px solid rgba(167, 139, 250, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.3s ease, background 0.3s ease;
}

.project-card:hover .project-view-icon {
    transform: scale(1.1);
    background: rgba(167, 139, 250, 0.35);
}

/* ==========================================
   LIGHTBOX
   ========================================== */

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(8, 8, 11, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.lightbox.open {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius);
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
    transition: opacity 0.25s ease;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2.2rem;
    cursor: pointer;
    z-index: 10001;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: color 0.2s ease, background 0.2s ease;
}

.lightbox-close:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
}

.lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10001;
    transition: all 0.25s ease;
}

.lightbox-arrow:hover {
    background: rgba(167, 139, 250, 0.15);
    border-color: rgba(167, 139, 250, 0.3);
    color: var(--text);
    transform: translateY(-50%) scale(1.08);
}

.lightbox-arrow.hidden {
    opacity: 0;
    pointer-events: none;
}

.lightbox-prev {
    left: 24px;
}

.lightbox-next {
    right: 24px;
}

.lightbox-counter {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 16px;
    letter-spacing: 0.08em;
}

/* ==========================================
   ANIMATIONS
   ========================================== */

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Scroll-triggered fade in */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 900px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card-wide {
        grid-column: span 1;
    }

    .project-card-wide .project-image {
        aspect-ratio: 16 / 9;
    }

    .tech-stack-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .bento-experience {
        grid-column: span 2;
    }

    .bento-status {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .acc-nav {
        top: 14px;
        left: 14px;
        padding: 5px;
    }

    .acc-logo {
        font-size: 0.9rem;
        padding: 5px 10px;
    }

    .acc-link {
        font-size: 0.7rem;
        padding: 6px 10px;
    }

    .acc-nav.expanded .acc-links {
        max-width: 340px;
    }

    .section {
        padding: 80px 20px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .hero {
        padding: 100px 20px 60px;
    }

    .hero-line {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

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

    .hero-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .btn-primary,
    .btn-ghost {
        width: 100%;
        text-align: center;
    }

    .hero-scroll-indicator {
        display: none;
    }

    .tech-stack-grid {
        grid-template-columns: 1fr;
    }

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

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

    .bento-experience {
        grid-column: span 1;
    }

    .bento-status {
        grid-column: span 1;
    }

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

    .side-projects-grid {
        max-width: 100%;
    }

    .experience-items {
        grid-template-columns: 1fr;
    }

    .project-info {
        padding: 20px;
    }

    .project-name {
        font-size: 1.2rem;
    }

    .contact-email {
        font-size: 1rem;
        padding: 14px 24px;
    }

    .building-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 768px) {
    .lightbox-arrow {
        width: 40px;
        height: 40px;
    }

    .lightbox-prev {
        left: 12px;
    }

    .lightbox-next {
        right: 12px;
    }

    .lightbox-close {
        top: 12px;
        right: 12px;
    }
}

@media (max-width: 480px) {
    .hero-line {
        font-size: clamp(2.2rem, 11vw, 3rem);
    }

    .hero-line-outline {
        -webkit-text-stroke-width: 1.5px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .bento-card {
        padding: 22px;
    }

    .contact-email {
        font-size: 0.85rem;
        word-break: break-all;
    }

    .building-item {
        padding: 22px;
    }
}
