/* ====================================
   MY.CV – Base Stylesheet
   Location: /assets/css/style.css
==================================== */

/* ---- CSS Variables ---- */
:root {
  --bg: #f6f8fb;
  --page: #ffffff;
  --fg: #1a1a1a;
  --muted: #5b667a;
  --line: #e6eaf0;

  --brand: #1058e6;
  --brand-600: #0e4dcc;
  --brand-700: #0b3fa8;

  --success: #16a34a;
  --warn: #d97706;
  --danger: #dc2626;

  --radius: 8px;
  --shadow: 0 2px 6px rgba(0,0,0,.06);
}

/* ---- Global Reset ---- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font: 15px/1.55 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand);
  text-decoration: none;
  transition: color .2s ease;
}
a:hover { color: var(--brand-600); }

h1, h2, h3, h4, h5 {
  font-weight: 600;
  line-height: 1.3;
}

/* ---- Layout ---- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---- Header ---- */
header {
  background: var(--page);
  border-bottom: 1px solid var(--line);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
}
header .logo { font-weight: 700; font-size: 1.3rem; color: var(--brand); }
header nav a {
  margin-left: 1.2rem;
  font-weight: 500;
}

/* ---- Hero ---- */
.hero {
  text-align: center;
  padding: 5rem 2rem;
  background: linear-gradient(135deg, var(--brand), var(--brand-700));
  color: #fff;
}
.hero h1 { font-size: 2.5rem; margin-bottom: 1rem; }
.hero p { font-size: 1.2rem; max-width: 600px; margin: 0 auto 2rem; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: .7rem 1.4rem;
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff;
  font-weight: 500;
  font-size: 1rem;
  transition: background .2s ease, transform .1s ease;
}
.btn:hover { background: var(--brand-600); transform: translateY(-1px); }
.btn:active { background: var(--brand-700); transform: translateY(0); }

/* Variants */
.btn-outline {
  background: transparent;
  border: 1px solid var(--brand);
  color: var(--brand);
}
.btn-outline:hover { background: var(--brand); color: #fff; }

/* ---- Forms ---- */
form {
  margin: 1.5rem 0;
}
label {
  display: block;
  margin-bottom: .6rem;
  font-weight: 500;
}
input, select, textarea {
  width: 100%;
  padding: .7rem .9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 1rem;
  margin-bottom: 1rem;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--brand);
  outline: none;
  box-shadow: 0 0 0 2px rgba(16,88,230,.2);
}

/* ---- Cards ---- */
.card {
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

/* ---- Grid ---- */
.grid {
  display: grid;
  gap: 1.5rem;
}
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }

/* ---- Footer ---- */
footer {
  text-align: center;
  padding: 2rem;
  background: var(--page);
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  font-size: .9rem;
  color: var(--muted);
}

/* ---- Responsive ---- */
@media (max-width: 720px) {
  .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.9rem; }
  .hero p { font-size: 1rem; }
}
