/* 
Digital CV Styling
 */

/* Color palette variables */

:root {
  --bg: #0b1220;
  --surface: #101a2f;
  --surface-2: #0f172a;

  --text: #e6edf7;
  --muted: #b7c3d6;

  --accent: #38bdf8;
  --accent-2: #a78bfa;
  --border: rgba(230, 237, 247, 0.12);
}

/* Base reset + readable defaults */
* {
  box-sizing: border-box;
}
/* Base size */
html {
  font-size: 16px;
}

body {
  margin: 0;
  padding: 24px;

  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    "Open Sans",
    "Helvetica Neue",
    sans-serif;
  line-height: 1.6;

  background:
    radial-gradient(
      1200px 700px at 20% 0%,
      rgba(56, 189, 248, 0.15),
      transparent 55%
    ),
    radial-gradient(
      900px 600px at 80% 20%,
      rgba(167, 139, 250, 0.12),
      transparent 55%
    ),
    var(--bg);

  color: var(--text);
}

/* Layout */

/* Limit line length for readability */
body > * {
  max-width: 800px;
  margin: 0 auto 18px auto;
}

section,
header,
footer {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 18px;
}

/* Header */
header {
  text-align: center;
}

/* Profile image: rounded, subtle shadow  */
header img {
  border-radius: 50%;
  border: 2px solid var(--border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* Big name heading with text shadow to stand out */
header h1 {
  margin: 0 0 6px 0;
  font-size: 2.5rem;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

header nav {
  color: var(--muted);
  font-size: 0.98rem;
}

/* Headings */
h2 {
  margin: 0 0 10px 0;
  font-size: 1.35rem;

  text-align: left;
  text-transform: uppercase;
  letter-spacing: 1px;

  text-shadow: 0 1px 10px rgba(56, 189, 248, 0.18);
}

h3 {
  margin: 0 0 6px 0;
  font-size: 1.1rem;
}

h4 {
  margin: 10px 0 6px 0;
  font-size: 1rem;
  font-weight: normal;
  color: var(--muted);
}

/* Fix spacing around headings inside lists  */
li h3,
li h4 {
  margin-top: 10px;
}

/* Text */
p {
  margin: 0 0 10px 0;
  color: var(--text);
}

.summary p {
  color: var(--muted);
}

ul {
  margin: 8px 0 10px 18px;
  padding: 0;
  list-style-type: disc;
}

li {
  margin: 6px 0;
}

/* Links */
a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

a:hover {
  color: var(--accent-2);
  text-decoration: underline;
}

/* Table (Tools section) */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border);
}

thead th {
  text-align: left;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 12px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

tbody td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  vertical-align: top;
  font-size: 0.95rem;
}

tbody tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.03);
}

/* Forms for Contact Section */

form {
  margin-top: 12px;
}

label {
  display: inline-block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--muted);
}

input[type="text"],
input[type="email"],
textarea {
  margin-top: 6px;
  width: min(680px, 100%);
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  color: var(--text);
  /* font-size: 1rem; */
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

/* Buttons */

input[type="submit"],
input[type="reset"] {
  margin-top: 12px;
  padding: 10px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(56, 189, 248, 0.12);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}

input[type="submit"]:hover,
input[type="reset"]:hover {
  background: var(--muted);
  color: var(--bg);
}

footer p {
  margin: 0 0 10px 0;
  font-size: 0.9rem;
  color: var(--muted);
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 6px 0 0 0;
}

footer ul li {
  margin: 6px 0;
}

/* Mobile Adjustments  */

@media (max-width: 600px) {
  body {
    padding: 14px;
  }
  header img {
    width: 120px;
    height: 120px;
  }
  body > * {
    margin: 0 auto 12px auto;
  }

  header h1 {
    font-size: 2rem;
  }
}
