/* =====================
   CSS Variables
   ===================== */
:root {
  --sidebar-bg: #35393c;
  --main-bg: #282b30;
  --about-bg: #dde6ee;
  --works-bg: #282b30;
  --accent: #56d364;
  --text: #fff;
  --subtle: rgba(255,255,255,0.62);
  --nav-hover: #56d364;
  --border: rgba(255,255,255,0.25);
  --font-main: 'Jost', 'Segoe UI', Arial, sans-serif;
  --transition: 0.18s cubic-bezier(.61,.17,.39,.86);
  --section-bg-accent: #9d9d9d;
  --text-main: #23272a;
  --text-muted: #697484;
  --card-bg: #fff;
  --border-radius: 18px;
  --card-shadow: 0 10px 34px 0 rgba(50, 50, 93, 0.08);
}

/* =====================
   Reset & Base Elements
   ===================== */
*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: var(--font-main);
  color: var(--text);
  background: var(--main-bg);
  font-weight: 300;
  letter-spacing: 0.03em;
  line-height: 1.62;
  transition: background 0.3s;
}

/* Remove default margins on headings and paragraphs */
h1, h2, h3, h4, h5, h6, p {
  margin: 0;
  font-weight: inherit;
}

/* Remove bullets and padding from lists */
ul, li {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Default link style */
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s;
}

/* Images responsive by default */
img {
  max-width: 100%;
  display: block;
  height: auto;
}

/* Buttons and inputs inherit font */
button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* Remove outline on button click, but keep for accessibility */
button:focus, input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Utility classes (optional, helpful globally) */
.hide { display: none !important; }
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-2 { margin-top: 8px !important; }
.mb-2 { margin-bottom: 8px !important; }

/* Scrollbar styles (optional) */
::-webkit-scrollbar { width: 8px; background: #2c2f35; }
::-webkit-scrollbar-thumb { background: #40444b; border-radius: 6px; }

/* Desktop max width, plenty of space */
.section-container, .section-content {
  max-width: 1600px;  /* or whatever feels good for XL screens */
}

/* Tablet: shrink max width */
@media (max-width: 1100px) {
  .section-container { padding-left: var(--sidebar-width-tablet); }
}
@media (max-width: 800px) {
  .section-container { padding-left: 0; }
}

/* Phone: always use 100vw, minimal padding */
@media (max-width: 600px) {
  .section-container, .section-content {
    max-width: 100vw;
    padding-left: 0.5vw;
    padding-right: 0.5vw;
  }
}
