:root {
    --color-bg: #051014; 
    --color-blob-1: #003b46; 
    --color-blob-2: #07575b; 
    --color-blob-3: #2a6f41; 
    --color-interactive: rgba(221, 161, 94, 0.4); 
    --text-white: #e8f1f2;
    --text-muted: rgba(232, 241, 242, 0.5);
    --mouse-x: 50vw;
    --mouse-y: 50vh;
}

body.portfolio-home {
    font-family: 'Inter', sans-serif;
    background-color: var(--color-bg);
    color: var(--text-white);
    margin: 0; padding: 0;
    overflow-x: hidden; 
    position: relative;
}

.bg-container {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    z-index: -2; overflow: hidden; background: var(--color-bg);
}

.blob {
    position: absolute; border-radius: 50%; filter: blur(90px);
    opacity: 0.8; animation: drift 30s infinite alternate ease-in-out; pointer-events: none;
}
.blob-1 { height: 700px; width: 800px; background: var(--color-blob-1); top: -20%; left: -10%; }
.blob-2 { height: 500px; width: 500px; background: var(--color-blob-2); bottom: -10%; right: -10%; }
.blob-3 { height: 600px; width: 600px; background: var(--color-blob-3); top: 30%; left: 40%; opacity: 0.4; }

.interactive-blob {
    position: fixed; 
    width: 36px; 
    height: 36px;
    background: transparent;
    /* Crisp, high-end technical border */
    border: 1.5px solid rgba(232, 241, 242, 0.7); 
    border-radius: 50%; 
    top: 0; left: 0;
    transform: translate(calc(var(--mouse-x) - 18px), calc(var(--mouse-y) - 18px));
    pointer-events: none; 
    /* Bring it to the very front layer */
    z-index: 9999; 
    /* Smooth, slight lag for a premium tracking feel */
    transition: transform 0.1s ease-out; 
    /* Optional: Inverts color over light/dark elements */
    mix-blend-mode: difference; 
}

.noise-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1; opacity: 0.4; pointer-events: none;
    background-image: radial-gradient(rgba(0,0,0,0) 1px, rgba(255,255,255,0.04) 1px);
    background-size: 3px 3px; backdrop-filter: contrast(110%) brightness(100%);
}

.portfolio-home .container {
    min-height: 100vh; display: flex; flex-direction: column;
    justify-content: space-between; padding: 2.5rem 4rem; position: relative; z-index: 10;
}

header { display: flex; justify-content: space-between; font-size: 0.75rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.brand { flex: 1; display: flex; gap: 1rem; }
.brand span:last-child { color: var(--text-muted); }
.nav-center { flex: 2; display: flex; justify-content: center; gap: 4rem; }
.nav-center a { text-decoration: none; color: var(--text-white); transition: color 0.3s ease; }
.nav-center a:hover { color: #dda15e; } 
.header-data { flex: 1; text-align: right; color: var(--text-muted); display: flex; flex-direction: column; gap: 0.5rem; font-family: monospace; }

main { flex-grow: 1; display: flex; justify-content: center; align-items: center; text-align: center; margin-top: 15vh; margin-bottom: 15vh; }
h1 { font-size: clamp(3rem, 6vw, 6rem); font-weight: 500; line-height: 1.1; letter-spacing: -0.02em; max-width: 900px; }
h1 span.highlight { display: block; background: linear-gradient(to right, #e8f1f2, #66b2b2); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

.project-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-bottom: 6rem; width: 100%; }

.project-card {
    background: linear-gradient(145deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.01) 100%);
    border-top: 1px solid rgba(255,255,255,0.1);
    border-left: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px; padding: 2.5rem 2rem;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.project-card:hover { transform: translateY(-10px); border-top-color: var(--color-interactive); border-left-color: var(--color-interactive); }
.project-card h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 1rem; color: var(--text-white); }
.project-card p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 2rem; }

.project-card h2 .project-link {
    transition: color 0.2s ease-in-out, text-shadow 0.2s ease-in-out;
}

.project-card h2 .project-link:hover {
    color: #ffffff !important;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.7);
}
.reveal { opacity: 0; transform: translateY(40px); transition: 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(10%, 5%) scale(1.1); } }
