/* 
 * DESIGN SYSTEM: MONOCHROME + GEOMETRIC BRUTALISM
 */
:root {
    --bg-color: #E2E2E2;
    /* Slightly darker off-white for depth */
    --ink-color: #050505;
    /* Deep Black */
    --gray-light: #B0B0B0;
    --gray-med: #707070;
    --gray-dark: #303030;

    --font-headline: 'Impact', 'Helvetica Neue', Arial, sans-serif;
    --font-body: 'Menlo', 'Monaco', 'Courier New', monospace;

    --spacing-unit: 8px;
}

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

body {
    background-color: var(--bg-color);
    color: var(--ink-color);
    font-family: var(--font-body);
    overflow-x: hidden;
    width: 100vw;
    min-height: 100vh;
    cursor: crosshair;
}

/* 
 * ATMOSPHERE: FILM GRAIN & GEOMETRIC BG
 */
#grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.12;
    /* Increased grain for grit */
    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.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

#parallax-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

/* Abstract Geometric Shapes */
.geo-shape {
    position: absolute;
    opacity: 0.4;
    will-change: transform;
    border: 2px solid var(--ink-color);
    background: transparent;
}

/* Lined Circle */
.geo-circle {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    top: 10%;
    left: 5%;
    background: repeating-linear-gradient(45deg,
            transparent,
            transparent 10px,
            rgba(0, 0, 0, 0.05) 10px,
            rgba(0, 0, 0, 0.05) 20px);
}

/* Wireframe Grid Box */
.geo-grid {
    width: 300px;
    height: 300px;
    top: 50%;
    right: 10%;
    background-image:
        linear-gradient(var(--ink-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--ink-color) 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: center;
    opacity: 0.2;
    transform: rotate(15deg);
}

/* Solid Triangle (CSS Border Hack) */
.geo-tri {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173.2px solid var(--gray-dark);
    top: 80%;
    left: 35%;
    opacity: 0.1;
}

/* 
 * LAYOUT & SECTIONS 
 */
section {
    padding: 6rem 2rem;
    min-height: 80vh;
    position: relative;
    border-bottom: 1px solid var(--gray-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* SECTION 1: ENTRANCE */
#entrance {
    height: 100vh;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-text {
    font-family: var(--font-headline);
    font-size: clamp(3rem, 12vw, 10rem);
    /* MASSIVE TYPE */
    line-height: 0.85;
    text-transform: uppercase;
    letter-spacing: -4px;
}

.hero-line {
    display: block;
}

/* 
 * SCROLL REVEAL ANIMATION 
 */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Text Scramble Effect Class */
.scramble-text {
    display: inline-block;
    cursor: default;
}

.scramble-text:hover {
    color: var(--gray-med);
}

/* SECTION 2: IDENTITY */
#identity {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.profile-collage {
    position: relative;
    border: 2px solid var(--ink-color);
    padding: 2rem;
    background: white;
    box-shadow: 8px 8px 0 var(--gray-dark);
}

.profile-img-placeholder {
    width: 100%;
    height: 400px;
    background: #ccc;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-headline);
    font-size: 2rem;
    color: var(--bg-color);
    background-color: var(--ink-color);
    /* Digital noise pattern */
    background-image: url("data:image/svg+xml,%3Csvg width='4' height='4' viewBox='0 0 4 4' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 3h1v1H1V3zm2-2h1v1H3V1z' fill='%23333' fill-opacity='1' fill-rule='evenodd'/%3E%3C/svg%3E");
}

.identity-text h2 {
    font-family: var(--font-headline);
    font-size: 4rem;
    margin-bottom: 2rem;
    letter-spacing: -2px;
}

.identity-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 600px;
    border-left: 2px solid var(--gray-light);
    padding-left: 1rem;
}

.pipeline {
    display: flex;
    gap: 0;
    /* Connected */
    margin-top: 3rem;
    font-family: var(--font-headline);
    flex-wrap: wrap;
}

.pipeline span {
    padding: 1rem 1.5rem;
    border: 1px solid var(--ink-color);
    background: white;
    transition: all 0.2s ease;
    cursor: default;
}

.pipeline span:hover {
    background: var(--ink-color);
    color: white;
    transform: translateY(-5px);
}

/* SECTION 3: TECH STACK */
#tech-stack {
    background-color: var(--ink-color);
    color: var(--bg-color);
    padding-top: 6rem;
}

#tech-stack h2 {
    font-family: var(--font-headline);
    font-size: 6rem;
    margin-bottom: 4rem;
    color: transparent;
    -webkit-text-stroke: 2px var(--bg-color);
    /* Outline */
    opacity: 0.8;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1px;
    background-color: var(--gray-dark);
    border: 1px solid var(--gray-dark);
}

.grid-item {
    background-color: var(--ink-color);
    padding: 3rem 2rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 250px;
    position: relative;
    overflow: hidden;
}

.grid-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.grid-item:hover::after {
    opacity: 0.1;
}

.grid-item h3 {
    font-family: var(--font-headline);
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--gray-light);
}

.grid-item ul {
    list-style: none;
}

.grid-item li {
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
    font-size: 1.1rem;
}

/* SECTION 4: THE EXHIBITION (DOORS) */
#exhibition {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    perspective: 2000px;
}

#exhibition h2 {
    font-family: var(--font-headline);
    font-size: 3rem;
    margin-bottom: 5rem;
    text-align: center;
}

.doors-container {
    display: flex;
    gap: 3rem;
    transform-style: preserve-3d;
}

.door-wrapper {
    position: relative;
    width: 240px;
    height: 400px;
    perspective: 1000px;
    cursor: pointer;
}

.door {
    width: 100%;
    height: 100%;
    position: absolute;
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    transform-origin: left center;
    border: 2px solid var(--ink-color);
    background: var(--bg-color);
    box-shadow: 10px 10px 20px rgba(0, 0, 0, 0.2);
}

.door-front {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-right: 4px solid #bbb;
}

.door-label {
    font-family: var(--font-headline);
    font-size: 8rem;
    /* Giant Numbers */
    color: rgba(0, 0, 0, 0.05);
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    text-align: center;
}

.door-title {
    font-family: var(--font-headline);
    font-size: 1.5rem;
    text-align: center;
    padding: 1rem;
    background: var(--ink-color);
    color: white;
    margin-top: auto;
    width: 100%;
    text-transform: uppercase;
}

.door-knob {
    width: 12px;
    height: 12px;
    background: var(--ink-color);
    border-radius: 50%;
    position: absolute;
    right: 15px;
    top: 50%;
}

.door-wrapper:hover .door {
    transform: rotateY(-20deg) translateX(10px);
}

.door-wrapper:nth-child(2) .door-front {
    background: #e5e5e5;
}

.door-wrapper:nth-child(3) .door-front {
    background: #d5d5d5;
}

/* 
 * SOCIAL DOCK
 */
.social-dock {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 1rem 2rem;
    border: 2px solid var(--ink-color);
    border-radius: 50px;
    display: flex;
    gap: 2rem;
    z-index: 1000;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}

.social-icon {
    width: 32px;
    height: 32px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    fill: var(--ink-color);
    cursor: pointer;
}

.social-icon:hover {
    transform: scale(1.4) translateY(-5px);
    fill: var(--gray-dark);
}

/* 
 * PROJECT PAGES
 */
.project-page {
    padding: 4rem 2rem;
    max-width: 900px;
    margin: 0 auto;
    min-height: 100vh;
}

.back-btn {
    font-family: var(--font-headline);
    font-size: 1.2rem;
    text-decoration: none;
    color: var(--ink-color);
    border-bottom: 2px solid var(--ink-color);
    padding-bottom: 2px;
}

.project-header h1 {
    font-family: var(--font-headline);
    font-size: 5rem;
    margin: 3rem 0 1rem 0;
    line-height: 0.9;
}

.project-meta {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--gray-med);
    border-top: 1px solid var(--gray-light);
    border-bottom: 1px solid var(--gray-light);
    padding: 1rem 0;
    margin-bottom: 3rem;
    display: flex;
    gap: 2rem;
}

.project-content {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.8;
}

.project-content blockquote {
    font-family: var(--font-headline);
    font-size: 2rem;
    margin: 3rem 0;
    color: var(--gray-dark);
}

@media (max-width: 768px) {
    #identity {
        grid-template-columns: 1fr;
    }

    .doors-container {
        flex-direction: column;
    }

    .hero-text {
        font-size: 5rem;
    }

    #tech-stack h2 {
        font-size: 4rem;
    }
}

/* 
 * PROJECT 2: GALLERY (MUSEUM STYLE)
 */
.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    align-items: center;
}

.art-frame {
    background: white;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.4s ease;
    border: 1px solid #eee;
}

.art-frame:hover {
    transform: translateY(-10px) scale(1.02);
    z-index: 10;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.art-content {
    background: #f0f0f0;
    width: 100%;
    aspect-ratio: 3/4;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.art-placeholder {
    font-family: var(--font-headline);
    font-size: 2rem;
    color: var(--gray-med);
    text-align: center;
    padding: 1rem;
    border: 2px dashed var(--gray-light);
}

.art-label {
    margin-top: 1.5rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--gray-dark);
    text-align: center;
    border-top: 1px solid var(--gray-light);
    padding-top: 1rem;
}

.art-title {
    font-weight: bold;
    display: block;
    margin-bottom: 0.25rem;
    font-family: var(--font-headline);
    font-size: 1.2rem;
}

/* 
 * PROJECT 1: CODE VAULT (TERMINAL STYLE)
 */
.code-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.terminal-window {
    background: #1e1e1e;
    border-radius: 6px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    margin-bottom: 3rem;
    font-family: 'Fira Code', 'Monaco', monospace;
    /* Ensure monospace */
}

.terminal-header {
    background: #2d2d2d;
    padding: 0.8rem 1rem;
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid #333;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.terminal-body {
    padding: 1.5rem;
    color: #d4d4d4;
    font-size: 0.95rem;
    line-height: 1.6;
}

.code-block {
    display: block;
    white-space: pre-wrap;
    font-family: inherit;
}

.code-keyword {
    color: #569cd6;
}

/* Blue */
.code-string {
    color: #ce9178;
}

/* Orange */
.code-func {
    color: #dcdcaa;
}

/* Yellow */
.code-comment {
    color: #6a9955;
}

/* Green */

.system-diagram {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 4rem 0;
    align-items: center;
    flex-wrap: wrap;
}

.sys-node {
    border: 2px solid var(--ink-color);
    padding: 1rem 2rem;
    font-family: var(--font-headline);
    background: white;
}

.sys-connector {
    height: 2px;
}

/* 
 * PROJECT 3: MORNING BOARD (APP SHOWCASE)
 */
.intro-text {
    font-size: 1.4rem;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 2.5rem;
    color: var(--ink-color);
    max-width: 800px;
}

.feature-list {
    list-style: none;
    margin-bottom: 3rem;
    border-top: 2px solid var(--ink-color);
    border-bottom: 2px solid var(--ink-color);
    padding: 2rem 0;
}

.feature-list li {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    position: relative;
    font-size: 1.1rem;
}

.feature-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--ink-color);
    font-weight: bold;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tag {
    font-family: var(--font-headline);
    font-size: 0.9rem;
    text-transform: uppercase;
    border: 1px solid var(--gray-med);
    padding: 0.5rem 1rem;
    color: var(--gray-dark);
    letter-spacing: 0.5px;
}

.primary-btn {
    font-family: var(--font-headline);
    font-size: 1.2rem;
    padding: 1rem 2rem;
    background: var(--ink-color);
    color: var(--bg-color);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    display: inline-block;
}

.primary-btn:hover {
    background: var(--gray-dark);
    transform: translateY(-3px);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
}


/* 
 * GLOBAL UX: TRANSITION & STATUS
 */
.transition-curtain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--ink-color);
    z-index: 10000;
    transform: translateY(0);
    /* Start visible (covering screen) */
    transition: transform 0.6s cubic-bezier(0.8, 0, 0.2, 1);
    pointer-events: none;
}

.transition-curtain.reveal {
    transform: translateY(-100%);
    /* Slide up to reveal */
}

.system-status {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--ink-color);
    background: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1rem;
    border: 1px solid var(--ink-color);
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(4px);
    pointer-events: none;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #00ff00;
    /* Classic Terminal Green */
    border-radius: 50%;
    animation: blink 2s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* =========================================================================
   EXTRACTED UTILITIES & COMPONENTS
   ========================================================================= */

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

.pt-4 {
    padding-top: 4rem;
}

.mt-1 {
    margin-top: 1rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.mt-4 {
    margin-top: 4rem;
}

.ml-small {
    margin-left: 10px;
}

.project-header-title {
    font-family: var(--font-headline);
    font-size: 4rem;
    margin-top: 1rem;
}

.project-header-subtitle {
    font-family: var(--font-body);
    color: var(--gray-med);
}

/* App Showcase Placeholder */
.app-showcase-placeholder {
    width: 100%;
    height: 300px;
    background: #222;
    border: 1px solid #444;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 2rem 0;
}

.app-showcase-placeholder span {
    color: #666;
}

/* Button Outline Variant */
.btn-outline {
    text-decoration: none;
    border: 1px solid currentColor;
    padding: 10px 20px;
    display: inline-block;
}

/* Visual Studio specific */
.offset-y-30 {
    transform: translateY(30px);
}

/* Terminal Info */
.terminal-info {
    font-family: monospace;
    color: #999;
    font-size: 0.8rem;
}

/* System Diagram Inverted Node */
.sys-node.inverted {
    background: var(--ink-color);
    color: white;
}

/* Text Colors */
.text-green {
    color: #27c93f;
}

.text-blue {
    color: #569cd6;
}

.section-title {
    font-family: var(--font-headline);
    margin-bottom: 2rem;
}