:root {
    --bg-color: #0f0f11;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --accent: #6d28d9;
    --accent-glow: #8b5cf6;
    --blob-1: #4c1d95; /* Deep Purple */
    --blob-2: #2e1065; /* Dark Violet */
    --blob-3: #5b21b6; /* Mid Purple */
    --border: #333333;
    --paper-color: #f4f4f5;
    --paper-text: #1f1f1f;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    height: 100vh;
    overflow: hidden;
    position: relative;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* --- 1. BACKGROUND WAVES (The "Lava Lamp" Effect) --- */
.bg-waves {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Behind everything */
    overflow: hidden;
    filter: blur(80px); /* This makes the blobs soft and wave-like */
    opacity: 0.6;
}

.blob {
    position: absolute;
    border-radius: 50%;
    animation: morph 10s infinite alternate;
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1); /* Smooth mouse follow */
}

/* Positioning and Coloring the Blobs */
.blob-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: var(--blob-1);
    animation-delay: 0s;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 700px;
    height: 700px;
    background: var(--blob-2);
    animation-delay: -2s;
}

.blob-3 {
    top: 30%;
    left: 40%;
    width: 500px;
    height: 500px;
    background: var(--blob-3);
    opacity: 0.7;
    animation-delay: -5s;
}

/* Keyframe for organic pulsating movement */
@keyframes morph {
    0% { transform: scale(1); border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    100% { transform: scale(1.1); border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}

/* Add a grid overlay for texture */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* --- Navigation --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
}
.logo { font-weight: 800; font-size: 1.2rem; letter-spacing: 1px; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { font-size: 0.9rem; color: var(--text-muted); cursor: pointer; }
.nav-links a:hover { color: var(--text-main); }

/* --- Hero Section --- */
.hero {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
}
.greeting { color: var(--accent-glow); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; font-size: 0.9rem; margin-bottom: 10px; display: block; }
.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin: 0;
    background: linear-gradient(to right, #fff, #999);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.subtitle { font-size: 2rem; color: var(--text-muted); font-weight: 400; margin-bottom: 20px; }
.hero p { color: var(--text-muted); font-size: 1.1rem; max-width: 500px; margin: 0 auto 40px; }
.hero-btns { display: flex; gap: 15px; justify-content: center; }

/* Buttons */
.btn {
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}
.primary-btn { background-color: var(--accent); color: white; }
.primary-btn:hover { background-color: var(--accent-glow); transform: translateY(-2px); box-shadow: 0 10px 20px rgba(109, 40, 217, 0.3); }
.secondary-btn { border: 1px solid var(--border); color: var(--text-main); }
.secondary-btn:hover { border-color: var(--text-main); background-color: rgba(255,255,255,0.05); }

/* --- 2. WORK IN PROGRESS TOAST --- */
.wip-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px); /* Hidden initially */
    background: rgba(15, 15, 17, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border);
    border-left: 4px solid var(--accent);
    padding: 15px 25px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 200;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    min-width: 320px;
    overflow: hidden;
}

.wip-toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast-icon {
    font-size: 1.5rem;
    color: var(--accent-glow);
    animation: bounce 1s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.toast-content { display: flex; flex-direction: column; }
.toast-title { font-weight: 700; font-size: 0.9rem; color: #fff; }
.toast-msg { font-size: 0.8rem; color: var(--text-muted); }

/* Loading Line Animation at bottom of toast */
.loader-line {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--accent-glow);
    width: 0%;
    transition: width 0s; /* Reset immediately */
}

.wip-toast.show .loader-line {
    width: 100%;
    transition: width 3s linear; /* Animate over 3s */
}

/* --- Resume Modal (Paper) --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(5px);
    z-index: 1000; display: flex; justify-content: center; align-items: center;
    opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }

.paper-container { perspective: 1000px; width: 90%; max-width: 500px; }
.paper {
    background: var(--paper-color); color: var(--paper-text); padding: 40px;
    border-radius: 4px; position: relative; box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    transform-origin: top center; transform: rotateX(-90deg); opacity: 0;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s;
}
.paper.unfold { transform: rotateX(0deg); opacity: 1; }
.close-btn { position: absolute; top: 10px; right: 15px; background: none; border: none; font-size: 1.5rem; color: #555; cursor: pointer; }
.resume-header { text-align: center; border-bottom: 2px solid #ddd; padding-bottom: 15px; margin-bottom: 15px; }
.resume-header h2 { font-size: 1.8rem; margin-bottom: 5px; }
.role { font-weight: 600; color: var(--accent); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; }
.location { font-size: 0.85rem; color: #666; margin-top: 5px; }
.res-section { margin-bottom: 20px; }
.res-section h3 { font-size: 1rem; text-transform: uppercase; border-bottom: 1px solid #eee; margin-bottom: 8px; color: #444; }
.res-section p { font-size: 0.9rem; line-height: 1.5; color: #333; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { background: #e0e0e0; color: #333; font-size: 0.75rem; padding: 4px 8px; border-radius: 4px; font-weight: 600; }
.paper-actions { display: flex; gap: 10px; margin-top: 20px; }
.action-btn { flex: 1; text-align: center; padding: 10px; border-radius: 4px; font-size: 0.9rem; font-weight: 600; cursor: pointer; }
.action-btn.view { background: #333; color: #fff; }
.action-btn.view:hover { background: #000; }
.action-btn.download { background: var(--accent); color: #fff; }
.action-btn.download:hover { background: var(--accent-glow); }

@media (max-width: 768px) {
    .hero h1 { font-size: 3rem; }
    .hero-btns { flex-direction: column; }
    .btn { width: 100%; justify-content: center; }
}