:root {
  --bg-dark: #0a0a0f;
  --bg-panel: #13131f;
  --accent: #00ffcc;
  --accent-dim: rgba(0, 255, 204, 0.1);
  --secondary: #7000ff;
  --text-main: #e0e0e0;
  --text-dim: #858595;
  --grid-line: rgba(255, 255, 255, 0.03);
  --font-display: 'JetBrains Mono', monospace;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; cursor: none; }

html { scroll-behavior: smooth; }

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
}

/* --- NEW BACKGROUND CANVAS --- */
#bg-canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2; /* Behind everything */
    opacity: 1; /* Subtle effect */
    pointer-events: none; /* Let clicks pass through */
}

/* --- CUSTOM ROBOTIC CURSOR --- */
.cursor-dot, .cursor-outline {
  position: fixed; top: 0; left: 0; transform: translate(-50%, -50%);
  border-radius: 50%; z-index: 9999; pointer-events: none;
}
.cursor-dot { width: 5px; height: 5px; background-color: var(--accent); }
.cursor-outline {
  width: 30px; height: 30px; border: 1px solid var(--accent);
  transition: width 0.2s, height 0.2s, background-color 0.2s;
}
body.hovering .cursor-outline { width: 50px; height: 50px; background-color: rgba(0, 255, 204, 0.1); border-color: var(--secondary); }

/* --- BACKGROUND --- */
.grid-overlay {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background-image: 
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 40px 40px; z-index: -1; pointer-events: none;
}
.scanline {
    width: 100%; height: 100px; z-index: 999; pointer-events: none;
    background: linear-gradient(0deg, rgba(0,0,0,0) 0%, rgba(0, 255, 204, 0.03) 50%, rgba(0,0,0,0) 100%);
    opacity: 0.1; position: absolute; bottom: 100%; animation: scanline 10s linear infinite;
}
@keyframes scanline { 0% { bottom: 100%; } 100% { bottom: -100px; } }

/* --- NAV --- */
nav {
  display: flex; justify-content: space-between; padding: 1.5rem 4rem;
  align-items: center; font-family: var(--font-display); position: fixed; width: 100%; top: 0;
  background: rgba(10, 10, 15, 0.95); backdrop-filter: blur(10px); z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.logo { font-weight: 700; color: var(--accent); font-size: 1.1rem; }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { color: var(--text-dim); text-decoration: none; font-size: 0.8rem; transition: 0.3s; cursor: none; }
.nav-links a:hover { color: var(--text-main); text-shadow: 0 0 10px var(--accent-dim); }

/* --- HERO --- */
header { min-height: 100vh; display: flex; align-items: center; padding: 0 10%; position: relative; padding-top: 80px; }
.header-content { display: flex; justify-content: space-between; width: 100%; align-items: center; }

/* FIX FOR GLOBE CLICKING */
.text-zone { max-width: 600px; z-index: 10; position: relative; pointer-events: none; }
.text-zone h1, .text-zone .console-box, .text-zone .status-indicator, .cta-group { pointer-events: auto; }

.status-indicator {
  font-family: var(--font-display); font-size: 0.75rem; color: var(--accent);
  margin-bottom: 1.5rem; display: inline-flex; align-items: center; gap: 10px;
  background: rgba(0, 255, 204, 0.05); padding: 5px 10px; border: 1px solid rgba(0, 255, 204, 0.2);
}
.blink { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 5px var(--accent); animation: blinker 2s linear infinite; }
@keyframes blinker { 50% { opacity: 0; } }

h1 { font-family: var(--font-display); font-size: 3.5rem; line-height: 1.1; margin-bottom: 1.5rem; letter-spacing: -2px; }
.highlight { color: transparent; -webkit-text-stroke: 1px var(--text-main); position: relative; }
.highlight::after { content: 'ARCHITECT'; position: absolute; left: 0; top: 0; color: var(--accent); opacity: 0.3; filter: blur(2px); }

.console-box {
    background: rgba(0,0,0,0.3); border-left: 2px solid var(--secondary);
    padding: 1rem; margin-bottom: 2rem; font-family: var(--font-display); font-size: 0.85rem;
}
.console-text { color: var(--text-dim); margin-bottom: 0.3rem; }
.prompt { color: var(--secondary); margin-right: 8px; }

.cta-group { display: flex; gap: 1rem; flex-wrap: wrap; }
.btn {
  padding: 0.8rem 1.5rem; font-family: var(--font-display); font-size: 0.8rem; cursor: none;
  text-decoration: none; transition: 0.3s; display: inline-flex; align-items: center; gap: 8px;
}
.primary { 
    background: var(--accent); color: var(--bg-dark); font-weight: 700; 
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.primary:hover { transform: translateY(-3px); box-shadow: 0 0 20px var(--accent-dim); }
.secondary { border: 1px solid var(--text-dim); color: var(--text-main); }
.secondary:hover { border-color: var(--accent); color: var(--accent); }

#canvas-container { 
    width: 45vw; height: 45vw; max-width: 600px; max-height: 600px; 
    position: absolute; right: -5%; top: 50%; transform: translateY(-50%); 
    z-index: 1; pointer-events: auto; /* ALLOWS GLOBE ROTATION */
}

/* --- SECTIONS --- */
section { padding: 5rem 10%; position: relative; overflow: hidden; }
.section-header { display: flex; align-items: center; margin-bottom: 3rem; font-family: var(--font-display); }
.section-num { color: var(--secondary); margin-right: 1rem; font-weight: 700; }
.section-header h2 { font-size: 1.5rem; letter-spacing: 1px; }
.line { flex-grow: 1; height: 1px; background: rgba(255,255,255,0.1); margin-left: 2rem; transform-origin: left; }

/* --- ACTIVE RESEARCH --- */
.research-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.research-card {
    background: rgba(19, 19, 31, 0.4); border: 1px solid rgba(255,255,255,0.1); padding: 2rem;
    transition: 0.3s; position: relative; overflow: hidden;
}
.research-card:hover { border-color: var(--accent); background: rgba(19, 19, 31, 0.8); }
.card-icon { font-size: 2rem; color: var(--secondary); margin-bottom: 1rem; }
.research-card h3 { font-family: var(--font-display); font-size: 1.1rem; color: var(--text-main); margin-bottom: 0.5rem; }
.tech-stack { font-family: var(--font-display); font-size: 0.75rem; color: var(--accent); margin-bottom: 1rem; }
.research-desc { font-size: 0.9rem; color: var(--text-dim); }

/* --- SKILLS --- */
.skills-container { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 3rem; }
.skill-category h3 { font-family: var(--font-display); color: var(--text-main); font-size: 1rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--secondary); padding-bottom: 10px; display: inline-block; }
.tag-list { display: flex; flex-direction: column; gap: 10px; }
.tag-list span { 
    background: rgba(255,255,255,0.03); padding: 8px 12px; font-size: 0.85rem; 
    border-left: 2px solid var(--accent); color: var(--text-dim); font-family: var(--font-display);
    transition: 0.3s; cursor: none;
}
.tag-list span:hover { background: rgba(0, 255, 204, 0.1); padding-left: 18px; color: var(--text-main); }

/* --- LOGS --- */
.timeline-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.col-title { font-family: var(--font-display); color: var(--secondary); margin-bottom: 2rem; font-size: 1rem; border-bottom: 1px solid rgba(112,0,255,0.3); padding-bottom: 10px; }
.log-entry { margin-bottom: 3rem; position: relative; padding-left: 25px; border-left: 1px solid rgba(255,255,255,0.1); }
.log-entry::before { content: ''; position: absolute; left: -5px; top: 0; width: 9px; height: 9px; background: var(--bg-dark); border: 2px solid var(--accent); border-radius: 50%; }
.log-date { font-family: var(--font-display); font-size: 0.75rem; color: var(--accent); margin-bottom: 5px; opacity: 0.8; }
.log-entry h4 { font-size: 1.1rem; margin-bottom: 2px; }
.log-loc { color: var(--text-dim); font-size: 0.85rem; font-style: italic; margin-bottom: 1rem; }
.log-list { padding-left: 1rem; color: var(--text-dim); font-size: 0.9rem; list-style: square; }
.log-list li { margin-bottom: 8px; }

/* --- PROJECTS --- */
.projects-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 2rem; }
.project-card {
  background: rgba(19, 19, 31, 0.6); border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 2rem; position: relative; transition: 0.3s; display: flex; flex-direction: column;
}
.project-card::before, .project-card::after {
  content: ''; position: absolute; width: 20px; height: 20px; opacity: 0.5; transition: 0.3s; pointer-events: none;
}
.project-card::before { top: 0; left: 0; border-top: 2px solid var(--accent); border-left: 2px solid var(--accent); }
.project-card::after { bottom: 0; right: 0; border-bottom: 2px solid var(--accent); border-right: 2px solid var(--accent); }
.project-card:hover { transform: translateY(-5px); background: rgba(19, 19, 31, 0.9); }
.project-card::before, .project-card:hover::after { opacity: 1; width: 100%; height: 100%; border-color: rgba(0, 255, 204, 0.1); }
.project-card h3 { font-family: var(--font-display); color: #fff; margin-bottom: 1rem; font-size: 1.2rem; }
.tags { margin-bottom: 1rem; display: flex; flex-wrap: wrap; gap: 8px; }
.tag { background: rgba(112, 0, 255, 0.1); color: var(--accent); padding: 4px 10px; font-family: var(--font-display); font-size: 0.7rem; border: 1px solid rgba(112, 0, 255, 0.2); }
.project-desc { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 2rem; flex-grow: 1; }
.project-links a { 
    font-family: var(--font-display); font-size: 0.8rem; color: var(--text-main); cursor: none;
    text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 2px; 
    transition: 0.3s;
}
.project-links a:hover { color: var(--accent); background: rgba(0, 255, 204, 0.1); }

/* --- VISION --- */
.vision-container { display: flex; justify-content: center; }
.terminal-window { background: var(--bg-panel); border: 1px solid rgba(255,255,255,0.1); border-radius: 8px; width: 100%; max-width: 800px; }
.terminal-header { background: #1a1a25; padding: 0.8rem 1rem; display: flex; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.05); }
.buttons { display: flex; gap: 6px; margin-right: 1rem; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.red { background: #ff5f56; } .yellow { background: #ffbd2e; } .green { background: #27c93f; }
.terminal-body { padding: 2rem; font-family: var(--font-display); font-size: 1rem; color: var(--text-main); min-height: 200px; }
.highlight-text { color: var(--accent); font-weight: 700; margin: 1rem 0; border-left: 3px solid var(--accent); padding-left: 1rem; display: block;}

footer { text-align: center; padding: 2rem; color: var(--text-dim); font-family: var(--font-display); font-size: 0.7rem; border-top: 1px solid rgba(255,255,255,0.05); }

/* --- CONTACT UPLINK --- */
.contact-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.contact-card {
    /* Matches the exact Glass style of your Projects/Research */
    background: rgba(19, 19, 31, 0.25); 
    border: 1px solid rgba(255,255,255,0.1);
    padding: 1.5rem 2.5rem;
    border-radius: 4px;
    text-decoration: none;
    color: var(--text-main);
    font-family: var(--font-display);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: 0.3s;
    position: relative;
    overflow: hidden;
    cursor: none; /* Keeps your custom cursor active */
}

.contact-card i {
    font-size: 1.2rem;
    color: var(--accent);
    transition: 0.3s;
}

/* Hover Effects */
.contact-card:hover {
    background: rgba(0, 255, 204, 0.1);
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(0, 255, 204, 0.15);
}

.contact-card:hover i {
    color: #fff;
    transform: scale(1.1);
}

/* Corner Markers for Tech Feel */
.contact-card::before {
    content: ''; position: absolute; top: 0; left: 0; width: 10px; height: 10px;
    border-top: 2px solid var(--accent); border-left: 2px solid var(--accent);
    opacity: 0; transition: 0.3s;
}
.contact-card::after {
    content: ''; position: absolute; bottom: 0; right: 0; width: 10px; height: 10px;
    border-bottom: 2px solid var(--accent); border-right: 2px solid var(--accent);
    opacity: 0; transition: 0.3s;
}
.contact-card:hover::before, .contact-card:hover::after { opacity: 1; }

/* --- MOBILE OPTIMIZATION --- */
@media (max-width: 900px) {
    * { cursor: auto; }
    .cursor-dot, .cursor-outline { display: none; }
    header { flex-direction: column; padding-top: 120px; text-align: center; }
    .text-zone { margin-bottom: 3rem; width: 100%; }
    #canvas-container { position: relative; right: auto; top: auto; transform: none; width: 80vw; height: 80vw; max-height: 300px; margin: 0 auto; z-index: 1; }
    .nav-links { display: none; }
    .timeline-grid { grid-template-columns: 1fr; }
    h1 { font-size: 2.5rem; }
    .console-box { text-align: left; }
    .cta-group { justify-content: center; }
   .contact-grid { flex-direction: column; align-items: center; width: 100%; }
   .contact-card { width: 100%; justify-content: center; }
}

