﻿/* Universal shared theme */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-start: #edf2ff;
  --bg-end: #f8fbff;
  --surface: #ffffff;
  --surface-soft: #f8faff;
  --accent: #5661d2;
  --accent-dark: #4458b4;
  --accent-soft: #7c88f5;
  --text: #1d2740;
  --muted: #5f6f8d;
  --border: #d8e2f0;
  --shadow: 0 30px 70px rgba(38, 64, 141, 0.12);
  --transition: all 0.25s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: 'Lato', sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, rgba(86, 97, 210, 0.16), transparent 30%), linear-gradient(180deg, var(--bg-start), var(--bg-end));
}

a,
button {
  font: inherit;
}

button {
  cursor: pointer;
}

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(86, 97, 210, 0.12);
  box-shadow: 0 10px 30px rgba(15, 32, 88, 0.08);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.logo {
  color: var(--accent-dark);
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-decoration: none;
}

.navigation {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

.anchor {
  position: relative;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.06em;
  transition: color var(--transition);
  padding: 0.45rem 0;
}

.anchor::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.anchor:hover {
  color: var(--accent-dark);
}

.anchor:hover::after {
  width: 100%;
}

.hero {
  padding: 7.5rem 2rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  right: -120px;
  top: -120px;
  background: radial-gradient(circle, rgba(86, 97, 210, 0.16), transparent 58%);
  pointer-events: none;
}

.hero-content {
  max-width: 760px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(24px);
  animation: slideUpFade 0.95s ease-out forwards;
}

.introduction {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 5vw, 4rem);
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.05em;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  font-size: 1.2rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.24em;
}

.container {
  width: min(1200px, calc(100% - 4rem));
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.section-title,
.projects-title,
.contact-title,
.about-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3vw, 2.8rem);
  color: var(--accent-dark);
  text-align: center;
  margin-bottom: 1.5rem;
  letter-spacing: 0.08em;
}

.section-title::after,
.projects-title::after,
.contact-title::after,
.about-title::after {
  content: '';
  display: block;
  width: 100px;
  height: 2px;
  margin: 1.25rem auto 0;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.project-container,
.tools-grid {
  display: grid;
  gap: 1.75rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 2rem;
}

.project-card,
.tool-card,
.card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: var(--shadow);
  padding: 2rem;
  transition: transform var(--transition), border-color var(--transition);
}

.project-card:hover,
.tool-card:hover,
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(86, 97, 210, 0.24);
}

.project-title,
.tool-card h2 {
  margin: 0 0 1rem;
  font-size: 1.45rem;
  color: var(--text);
}

.project-description,
.tool-card p,
.contact-description,
.intro,
.result-label,
.note,
.subtitle {
  color: var(--muted);
  line-height: 1.75;
}

.project-link {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: 999px;
  padding: 0.95rem 1.6rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none;
}

.button:hover,
button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 28px rgba(86, 97, 210, 0.18);
}

.button:disabled,
button:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.tool-icon {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  display: grid;
  place-items: center;
  margin-bottom: 1.5rem;
  background: rgba(86, 97, 210, 0.1);
  color: var(--accent-dark);
  font-size: 1.6rem;
}

.contact-container,
.about-container,
.results,
.field,
.input-group,
.additions-section {
  width: 100%;
}

.contact-container {
  max-width: 760px;
  margin: 0 auto;
}

.contact-description {
  text-align: center;
  margin-bottom: 2rem;
}

.contact-form,
.field,
.additions-section {
  display: grid;
  gap: 1.25rem;
}

.contact-form {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

label {
  font-weight: 700;
  color: var(--text);
}

input,
textarea,
select {
  width: 100%;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-soft);
  color: var(--text);
  font: inherit;
  transition: border-color var(--transition), box-shadow var(--transition);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 6px rgba(86, 97, 210, 0.1);
}

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

.success-message {
  margin-top: 1.5rem;
  padding: 1.4rem 1.2rem;
  border-radius: 18px;
  background: rgba(158, 172, 255, 0.14);
  color: var(--accent-dark);
  border: 1px solid rgba(86, 97, 210, 0.16);
}

.input-container {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.input-container input {
  flex: 1;
}

.stats {
  margin-top: 1.5rem;
  padding: 1.25rem 1.4rem;
  border-radius: 18px;
  background: rgba(86, 97, 210, 0.08);
  color: var(--muted);
}

.empty-message {
  text-align: center;
  color: var(--muted);
  padding: 1.5rem 0;
}

.result-panel {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 2rem;
  margin-top: 1.75rem;
  box-shadow: var(--shadow);
}

.brand {
  margin-bottom: 24px;
  text-align: center;
}

.brand__title,
.contact-title {
  margin: 0;
  font-size: 2.2rem;
  color: var(--text);
}

.brand__subtitle,
.note,
.status {
  color: var(--muted);
}

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.radio-row label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  font-weight: 600;
}

.result-amount {
  display: inline-block;
  margin-top: 1rem;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-dark);
}

.status {
  display: inline-block;
  margin-top: 0.85rem;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  background: rgba(86, 97, 210, 0.08);
  color: var(--accent-dark);
}

.field small {
  color: var(--muted);
}

.hidden {
  display: none !important;
}

.task-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 1.2rem 1.1rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  border-radius: 18px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.task-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(38, 64, 141, 0.08);
}

.task-item.completed {
  opacity: 0.7;
}

.task-item.completed .task-text {
  text-decoration: line-through;
  color: #8d96ae;
}

.task-checkbox {
  width: 20px;
  height: 20px;
  accent-color: var(--accent);
  cursor: pointer;
}

.task-text {
  flex: 1;
  font-size: 1rem;
  color: var(--text);
}

.delete-btn {
  background: #ff6b6b;
  color: #fff;
  padding: 0.75rem 1.1rem;
  border: none;
  border-radius: 999px;
  font-weight: 700;
}

.delete-btn:hover {
  background: #ff5252;
}

.btn,
.calculate-btn,
.reset-btn,
#addBtn {
  width: 100%;
  padding: 1rem 1.2rem;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn,
.calculate-btn,
#addBtn {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
}

.reset-btn {
  background: #f0f0f0;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn:hover,
.calculate-btn:hover,
#addBtn:hover,
.reset-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 28px rgba(86, 97, 210, 0.15);
}

.additions-section {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.5rem;
}

.additions-list {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.addition-entry {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.98);
  padding: 1rem;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.addition-entry input {
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--border);
}

.addition-entry label {
  margin-bottom: 0.35rem;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 700;
}

.addition-entry-field.currency-field,
.addition-entry-field.days-field {
  position: relative;
}

.addition-entry-field.currency-field .currency,
.addition-entry-field.days-field .unit {
  position: absolute;
  font-size: 0.9rem;
  color: var(--muted);
  top: 50%;
  transform: translateY(-50%);
}

.addition-entry-field.currency-field .currency {
  left: 14px;
}

.addition-entry-field.days-field .unit {
  right: 14px;
}

#calculator {
  width: min(420px, 100%);
  margin: 2rem auto 0;
  padding: 1.4rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 30px;
  box-shadow: 0 30px 60px rgba(38, 64, 141, 0.12);
}

#display-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

#display {
  flex: 1;
  height: 5rem;
  padding: 1rem 1.2rem;
  font-size: 1.8rem;
  text-align: right;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-soft);
  color: var(--text);
}

#buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.btn {
  width: 100%;
  padding: 1rem 0.9rem;
  font-size: 1.25rem;
  border: none;
  border-radius: 18px;
  background: rgba(86, 97, 210, 0.08);
  color: var(--text);
}

.btn.operator,
.btn.equals {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
}

#btn-C {
  background: var(--accent-dark);
  color: #fff;
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 18px;
  padding: 0;
}

@media (max-width: 900px) {
  .header-container {
    padding: 1rem 1.2rem;
  }

  .hero {
    padding: 6rem 1.5rem 2.5rem;
  }

  .container {
    padding: 2rem 1.5rem 3rem;
  }
}

@media (max-width: 720px) {
  .projects-title,
  .contact-title,
  .about-title,
  .section-title {
    font-size: 2.2rem;
  }

  .header-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .navigation {
    width: 100%;
    gap: 0.85rem;
  }

  .project-container,
  .tools-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .logo {
    font-size: 1.55rem;
  }

  .anchor {
    font-size: 0.95rem;
  }

  .introduction {
    font-size: 2.7rem;
  }

  .button,
  button {
    width: 100%;
  }

  .input-container {
    flex-direction: column;
  }
}

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.footer {
  text-align: center;
  padding: 1.5rem 2rem;
  background: rgba(255, 255, 255, 0.92);
  border-top: 1px solid rgba(86, 97, 210, 0.12);
  box-shadow: 0 -10px 30px rgba(15, 32, 88, 0.08);
  margin: auto;
}
.fas.fa-envelope,
.fab.fa-github,
.fab.fa-linkedin {
  font-size: 1.75rem;
  color: var(--muted);
  transition: color var(--transition);
  margin-left: 0.75rem;
}
.fas.fa-envelope:hover,
.fab.fa-github:hover,
.fab.fa-linkedin:hover {
  color: var(--accent);
}
.container{display:flex;
    flex-direction:column;
    align-items:center;
    gap:1.5rem;
    background:rgba(255,255,255,0.96);
    border:1px solid var(--border);
    border-radius:18px;
    padding:2rem;
    box-shadow:var(--shadow)}