/* ✅ SmartWerk CV / Portfolio — WOW Design v2 */
:root {
  --bg: #0d1117;
  --text: #e6edf3;
  --accent: #3b82f6;
  --card: #161b22;
  --muted: #8b949e;
  --border: #30363d;
  --hover: #1f6feb;
  --font-main: 'Segoe UI', sans-serif;
}

body {
  margin: 0;
  font-family: var(--font-main);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.cv-container {
  max-width: 1100px;
  margin: 40px auto;
  padding: 20px;
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.cv-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.cv-intro {
  flex: 1;
}

.cv-intro h1 {
  font-size: 28px;
  margin: 0;
  color: var(--accent);
}

.cv-intro p {
  font-size: 14px;
  color: var(--muted);
}

section.cv-header {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  background: var(--bg);
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 30px;
}

.cv-header label {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 10px;
}

.cv-header input {
  padding: 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background-color: #0f1622;
  color: var(--text);
  width: 100%;
}

.cv-block {
  background: #10151c;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  margin-bottom: 16px;
  transition: background 0.3s, transform 0.2s;
}

.cv-block:hover {
  background: #141c27;
  transform: scale(1.01);
}

.cv-block h2 {
  margin-top: 0;
  font-size: 18px;
  color: var(--accent);
  cursor: text;
}

.cv-block p,
.cv-block ul,
.cv-block blockquote {
  font-size: 14px;
  color: var(--text);
  cursor: text;
}

.cv-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 16px;
}

.cv-buttons button {
  background-color: var(--accent);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.cv-buttons button:hover {
  background-color: var(--hover);
  transform: scale(1.03);
}

.cv-footer {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  padding-top: 20px;
}

@media (max-width: 600px) {
  .cv-header,
  .cv-block {
    padding: 12px;
  }

  .cv-buttons {
    flex-direction: column;
  }

  .cv-header input {
    font-size: 14px;
  }
}

/* 2-колонкове розташування cv-блоків */
@media (min-width: 768px) {
  .cv-section-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

  .cv-section-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    flex-wrap: wrap;
  }

  .cv-section-columns .cv-block {
    width: 100%;
  }
}

section.cv-personal-info {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 15px rgba(0, 123, 255, 0.2);
  transition: all 0.3s ease;
}

.personal-info-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1rem 2rem;
  align-items: center;
  margin-top: 1rem;
}

.personal-info-grid label {
  font-weight: bold;
  color: var(--muted, #9aa3b2);
  text-align: right;
}

.personal-info-grid input {
  padding: 10px;
  border: none;
  border-radius: 6px;
  background-color: #2a2d3a;
  color: white;
  width: 100%;
}
.personal-info-custom {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 1rem;
}

.form-row {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.form-row.single {
  justify-content: center;
}

.form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--muted, #ccc);
}

.form-group input {
  padding: 10px 14px;
  border: none;
  border-radius: 8px;
  background: #2a2d3a;
  color: white;
  font-size: 1rem;
}

.full-width {
  max-width: 500px;
  margin: 0 auto;
}

/* Business Proposal Styling */
.business-proposal {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 16px;
  box-shadow: 0 0 10px rgba(91, 139, 255, 0.15);
  transition: all 0.3s ease;
}

.business-proposal:hover {
  box-shadow: 0 0 20px rgba(91, 139, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.business-proposal h2 {
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
  color: #3b79ff;
}

.business-proposal p,
.business-proposal ul {
  line-height: 1.6;
  color: #ccc;
}

.business-proposal ul {
  padding-left: 1.2rem;
  list-style-type: disc;
}
.back-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.back-buttons a {
  display: inline-block;
  background-color: #1f2937; /* Темно-сірий */
  color: #ffffff;
  padding: 0.5rem 1rem;
  text-decoration: none;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 0.2s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.back-buttons a:hover {
  background-color: #374151; /* Темніший при наведенні */
}

.topbar {
  display: flex;
  justify-content: flex-start;
  margin: 20px 0;
  padding: 0 20px;
}

.topbar nav a.btn {
  background-color: #3b79ff;
  color: white;
  text-decoration: none;
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 10px;
  margin-right: 10px;
  display: inline-block;
  transition: background-color 0.2s ease-in-out;
}

.topbar nav a.btn:hover {
  background-color: #2a66db;
  color: white;
}
