:root {
  --primary: #d56e00;
  --primary-d: #e1a867;
  --dark: #2c1900;
  --light-bg: #f5f0e6;
  --white: #ffffff;
  --text: #444b5a;
  --text-light: #6c757d;
  --border: #e2e8f0;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Nunito", sans-serif;
  color: var(--text);
  background: var(--light-bg) url("../bg-pattern.png") repeat;
  background-size: 60px 60px;
  font-size: 15px;
  line-height: 1.7;
}
a {
  text-decoration: none;
  color: var(--primary);
  transition: color 0.25s;
}
a:hover {
  color: var(--primary-d);
}
#app {
  display: flex;
  min-height: 100vh;
}
#sidebar {
  width: 280px;
  min-width: 280px;
  background: var(--dark);
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 1.5rem 2rem;
  overflow-y: auto;
  z-index: 100;
}
.avatar-circuit {
  width: 110px;
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
}
.avatar-circuit img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.sidebar-name {
  font-family: "Raleway", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: white;
  text-align: center;
  margin-top: 1rem;
  line-height: 1.4;
}
nav#nav {
  width: 100%;
  margin-top: 2.5rem;
}
nav#nav ul {
  list-style: none;
  width: 100%;
}
nav#nav ul li a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.2rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 0.4rem;
  transition: background 0.25s, color 0.25s;
  position: relative;
  margin-bottom: 2px;
}
nav#nav ul li a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 3px;
  background: var(--primary);
  border-radius: 2px;
  opacity: 0;
  transition: opacity 0.25s;
}
nav#nav ul li a:hover,
nav#nav ul li a.active {
  background: rgba(213, 110, 0, 0.1);
  color: var(--primary);
}
nav#nav ul li a:hover::before,
nav#nav ul li a.active::before {
  opacity: 1;
}
.nav-icon {
  font-size: 1rem;
  width: 20px;
  text-align: center;
}
#main {
  margin-left: 280px;
  flex: 1;
  min-height: 100vh;
}
.section {
  padding: 4rem 3.5rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.section-title {
  font-family: "Raleway", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--dark);
  position: relative;
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 48px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3.5rem;
  margin-top: 2.5rem;
  align-items: start;
}
.contact-info p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-icon {
  width: 44px;
  height: 44px;
  background: rgba(213, 110, 0, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.contact-val {
  font-size: 0.92rem;
  color: var(--dark);
  font-weight: 600;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: 0.6rem;
  font-family: "Nunito", sans-serif;
  font-size: 0.88rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.25s, box-shadow 0.25s;
  outline: none;
  resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(213, 110, 0, 0.12);
}
.form-group textarea {
  min-height: 130px;
}
.btn-send {
  align-self: flex-start;
  padding: 0.75rem 2.2rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 2rem;
  font-family: "Nunito", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
}
.btn-send:hover {
  background: var(--primary-d);
  transform: translateY(-2px);
}
.success-msg {
  display: none;
  margin-top: 1rem;
  padding: 0.75rem 1.25rem;
  background: rgba(213, 110, 0, 0.1);
  border: 1px solid rgba(213, 110, 0, 0.3);
  border-radius: 0.5rem;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.88rem;
}
footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
footer span {
  color: var(--primary);
}

/* ─── Tablet (769px – 1024px) ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  #sidebar {
    width: 240px;
    min-width: 240px;
  }
  #main {
    margin-left: 240px;
  }
  .section {
    padding: 3rem 2.5rem;
  }
}

/* ─── Small tablet / large phone landscape (651px – 768px) ──────────────── */
@media (max-width: 768px) {
  #sidebar {
    width: 200px;
    min-width: 200px;
  }
  #main {
    margin-left: 200px;
  }
  .section {
    padding: 2.5rem 1.8rem;
  }
}

/* ─── Mobile (≤ 650px) — sidebar hidden, topbar shown ───────────────────── */
@media (max-width: 650px) {
  #sidebar {
    display: none !important;
  }
  #main {
    margin-left: 0 !important;
    padding-top: 56px !important;
  }
  .section {
    padding: 1.8rem 1rem !important;
    min-height: calc(100vh - 56px) !important;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
}
