/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0a0e17;
  --bg-light:  #112240;
  --navy:      #0d1b2e;
  --slate:     #8892b0;
  --light-slate: #a8b2d8;
  --lightest:  #ccd6f6;
  --accent:    #64ffda;
  --accent-dim: rgba(100,255,218,0.1);
  --font-mono: 'Fira Code', monospace;
  --font-sans: 'Raleway', sans-serif;
  --sidebar-w: 260px;
  --transition: all 0.25s cubic-bezier(0.645,0.045,0.355,1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--slate);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  display: flex;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }
ul { list-style: none; }

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--bg-light); border-radius: 3px; }

/* ===== SIDEBAR ===== */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 0;
  border-right: 1px solid rgba(100,255,218,0.05);
  z-index: 100;
}

.logo {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--accent);
  border: 2px solid var(--accent);
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  margin-bottom: 48px;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  padding: 0 24px;
  flex: 1;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--slate);
  padding: 10px 16px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: attr(data-label);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--light-slate);
}

.nav-link:hover,
.nav-link.active {
  background: var(--accent-dim);
  color: var(--accent);
}

.nav-link.active::after { color: var(--accent); }

.social-links {
  display: flex;
  gap: 20px;
  margin-top: auto;
}

.social-links a {
  color: var(--slate);
  transition: var(--transition);
}
.social-links a:hover { color: var(--accent); transform: translateY(-3px); }
.social-links svg { width: 20px; height: 20px; }

/* ===== MAIN CONTENT ===== */
.content {
  margin-left: var(--sidebar-w);
  flex: 1;
  max-width: 900px;
  padding: 0 80px;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
}

.hero-greeting {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: 20px;
  opacity: 0;
  animation: fadeUp 0.5s ease forwards 0.3s;
}

.hero-name {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  color: var(--lightest);
  line-height: 1.1;
  opacity: 0;
  animation: fadeUp 0.5s ease forwards 0.5s;
}

.hero-tagline {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 700;
  color: var(--slate);
  line-height: 1.1;
  margin-top: 8px;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.5s ease forwards 0.7s;
}

.hero-desc {
  max-width: 520px;
  font-size: 1.05rem;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.5s ease forwards 0.9s;
}

.highlight { color: var(--accent); }

.btn {
  display: inline-block;
  padding: 14px 28px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  transition: var(--transition);
  opacity: 0;
  animation: fadeUp 0.5s ease forwards 1.1s;
}

.btn:hover {
  background: var(--accent-dim);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px -10px rgba(100,255,218,0.15);
}

/* ===== SECTIONS ===== */
.section {
  padding: 100px 0;
  max-width: 700px;
}

.section-title {
  display: flex;
  align-items: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--lightest);
  margin-bottom: 48px;
  white-space: nowrap;
  gap: 12px;
}

.section-title::after {
  content: '';
  display: block;
  height: 1px;
  background: var(--bg-light);
  width: 200px;
}

.section-num {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--accent);
  font-weight: 400;
}

/* ===== ABOUT ===== */
.about-text p {
  margin-bottom: 16px;
  font-size: 1rem;
}

/* ===== EXPERIENCE ===== */
.job {
  border-left: 2px solid var(--bg-light);
  padding-left: 28px;
  position: relative;
}

.job::before {
  content: '';
  position: absolute;
  left: -5px; top: 6px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.job-header {
  margin-bottom: 20px;
}

.job-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--lightest);
}

.job-company {
  color: var(--accent);
  font-weight: 400;
}

.job-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--slate);
  margin-top: 4px;
}

.job-duties li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 12px;
  font-size: 0.97rem;
}

.job-duties li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.8rem;
  top: 3px;
}

/* ===== PROJECTS ===== */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.project-card {
  background: var(--bg-light);
  border-radius: 6px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  border: 1px solid transparent;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(100,255,218,0.15);
  box-shadow: 0 20px 40px -15px rgba(0,0,0,0.4);
}

.project-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.folder-icon {
  width: 40px; height: 40px;
  color: var(--accent);
}

.project-link {
  color: var(--slate);
  transition: var(--transition);
}
.project-link:hover { color: var(--accent); transform: translateY(-2px); }
.project-link svg { width: 20px; height: 20px; }

.project-name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--lightest);
  margin-bottom: 12px;
  transition: var(--transition);
}

.project-card:hover .project-name { color: var(--accent); }

.project-desc {
  font-size: 0.88rem;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 20px;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-tech li {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
}

/* ===== SKILLS ===== */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.skill-group-title {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent);
  margin-bottom: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.skill-group ul li {
  font-size: 0.92rem;
  padding-left: 16px;
  position: relative;
  margin-bottom: 8px;
  color: var(--light-slate);
}

.skill-group ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.75rem;
  top: 3px;
}

/* ===== FOOTER ===== */
.footer {
  padding: 60px 0 40px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--slate);
}

.footer-sub {
  margin-top: 8px;
  font-size: 0.72rem;
  opacity: 0.6;
}

.footer-sub a { color: var(--slate); }
.footer-sub a:hover { color: var(--accent); }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .sidebar { display: none; }
  .content { margin-left: 0; padding: 0 32px; }
  .projects-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 500px) {
  .content { padding: 0 20px; }
  .skills-grid { grid-template-columns: 1fr; }
}
