:root {
  --background: #121212;        /* Charcoal */
  --primary: #3B82F6;           /* Electric Blue */
  --accent: #A855F7;            /* Neon Purple */
  --sidebar: #181824;           /* Slightly lighter charcoal for sidebar */
  --card: #23232A;              /* Card background, slightly lighter than main bg */
  --text: #B0BEC5;              /* Cool Gray for text */
  --active: #A855F7;            /* Neon Purple for active nav */
  --glow: 0 0 10px #3B82F6, 0 0 20px #A855F7;
}

html {
  box-sizing: border-box;
  font-size: 18px;
  scroll-behavior: smooth;
  background: var(--background);
}
*, *:before, *:after {
  box-sizing: inherit;
}
body {
  margin: 0;
  font-family: 'Segoe UI', 'Roboto', 'Arial', sans-serif;
  background: var(--background);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* Header */
.site-header {
  width: 100%;
  background: var(--card);
  color: var(--primary);
  padding: 0; /* Remove all header padding */
  text-align: left;
  box-shadow: 0 2px 14px rgba(168,85,247,0.10);
  border-bottom: 4px solid var(--accent);
  position: relative;
  z-index: 2;
}
.site-header .header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2.2rem;
  background: var(--card);
}
.site-header .header-photo {
  width: 180px;
  height: 180px;
  border-radius: 18px;
  object-fit: cover;
  border: 3px solid var(--accent);
  background: var(--sidebar);
  box-shadow: var(--glow);
  margin-left: 2rem;
  margin-top: 0.7rem;
  margin-bottom: 0.7rem;
}
.site-header .header-info {
  flex: 1;
}
.site-header h1 {
  font-size: 2.5rem;
  margin: 0;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 2px;
  text-shadow: none; /* Remove glow */
}
.site-header h2 {
  font-size: 1.2rem;
  color: var(--accent);
  font-weight: 400;
  margin: 0.3rem 0 0.7rem 0;
  letter-spacing: 1px;
  text-shadow: 0 0 6px var(--accent);
}
.site-header p {
  color: var(--text);
  margin: 0.1rem 0;
}
.site-header a {
  color: var(--primary);
  text-decoration: underline;
  font-size: 1rem;
}
@media (max-width: 700px) {
  .site-header .header-container {
    flex-direction: column;
    align-items: flex-start;
    padding: 0 0.7rem;
    gap: 1rem;
  }
  .site-header .header-photo { width: 100px; height: 100px; margin-left: 0; }
}

/* Layout */
.main-layout {
  display: flex;
  min-height: calc(100vh - 0px);
  background: var(--background);
}

/* Sidebar Navigation */
.sidebar {
  width: 240px;
  background: var(--sidebar);
  color: var(--primary);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: 0 2px 14px rgba(59,130,246,0.08);
  padding-top: 0;
  padding-bottom: 0;
  min-height: 100vh;
  position: sticky;
  top: 0;
  z-index: 1;
}
.sidebar-nav {
  width: 100%;
  margin-top: 2rem;
}
.sidebar-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-nav li {
  margin: 0.6rem 0;
}
.sidebar-nav a {
  display: block;
  color: var(--text);
  background: none;
  text-decoration: none;
  padding: 0.95rem 2.2rem;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 1px;
  transition: background 0.18s, color 0.18s, box-shadow 0.2s;
}
.sidebar-nav a.active,
.sidebar-nav a:hover {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 6px var(--primary);
  text-shadow: 0 0 4px var(--primary);
}

/* Main content area */
.main-content {
  flex: 1;
  padding: 0; /* Remove all padding */
  background: var(--background);
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.container {
  width: 100%;
  margin: 0;
  padding: 1.2rem 2.8rem;
  box-sizing: border-box;
}
section {
  background: var(--card);
  margin: 0 0 1.3rem 0;
  border-radius: 0;
  box-shadow: 0 2px 14px rgba(59,130,246,0.06);
  color: var(--text);
  text-align: left;
  width: 100%;
  border-bottom: 1px solid #222;
}
section h3, section h4 {
  text-align: left;
}
section h3 {
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
  letter-spacing: 1px;
  text-shadow: 0 0 8px var(--accent);
}
section h4 {
  color: var(--accent);
  margin-bottom: 0.3rem;
  font-weight: 600;
  text-shadow: 0 0 6px var(--primary);
}
ul {
  margin: 0.8rem 0 0.8rem 1.2rem;
  padding: 0;
}
li {
  margin-bottom: 0.4rem;
}
.project {
  margin-bottom: 1rem;
}
.skills p {
  margin: 0.5rem 0;
}
.job {
  margin-bottom: 1.1rem;
}
.date {
  color: var(--accent);
  font-weight: 500;
  margin-left: 0.5rem;
  font-size: 1rem;
}
footer {
  background: var(--sidebar);
  color: var(--primary);
  text-align: center;
  padding: 0.5rem 0 0.5rem 0;
  margin-top: 0;
  font-weight: 600;
  letter-spacing: 1px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  box-shadow: 0 -2px 18px #3B82F6;
}
::-webkit-scrollbar {
  width: 10px;
  background: var(--sidebar);
}
::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 5px;
}
@media (max-width: 1000px) {
  .main-layout { flex-direction: column; }
  .sidebar { width: 100%; min-height: unset; flex-direction: row; align-items: flex-start; padding-top: 0; }
  .sidebar-nav { margin-top: 0; }
  .container { padding: 1.2rem 1rem; }
}
@media (max-width: 700px) {
  html { font-size: 15px; }
  .container { padding: 0.7rem 0.2rem; }
  section { padding: 0.7rem 0.2rem; }
  .main-content { padding: 0; }
}
@media (max-width: 460px) {
  html { font-size: 12px; }
  section h3 { font-size: 0.9rem; }
}