/* Базові стилі */
:root {
  --primary: #10b981;
  --primary-dark: #059669;
  --primary-light: #d1fae5;
  --secondary: #f1f5f9;
  --dark: #1e293b;
  --text: #334155;
  --text-light: #64748b;
  --white: #ffffff;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius: 0.5rem;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: linear-gradient(to bottom, #f8fafc, #f1f5f9);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* Кнопки */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 0.875rem;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-outline:hover {
  background-color: rgba(16, 185, 129, 0.05);
}

.btn-full {
  width: 100%;
}

/* Бейджі */
.badge {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}

.badge-green {
  background-color: var(--primary-light);
  color: var(--primary-dark);
}

.badge-blue {
  background-color: #dbeafe;
  color: #1e40af;
}

.badge-amber {
  background-color: #fef3c7;
  color: #92400e;
}

.badge-light {
  background-color: var(--secondary);
  color: var(--text);
}

/* Хедер */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 4rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-icons {
  display: flex;
  color: var(--primary);
}

.logo-icons i {
  font-size: 1.25rem;
  margin-right: 0.25rem;
}

.logo-text {
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--dark);
}

.desktop-nav {
  display: none;
}

.desktop-nav ul {
  display: flex;
  gap: 1.5rem;
}

.desktop-nav a {
  color: var(--text);
  font-weight: 500;
}

.desktop-nav a:hover {
  color: var(--primary);
}

.mobile-menu-btn {
  background: none;
  border: none;
  color: var(--dark);
  font-size: 1.25rem;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  background-color: var(--white);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
  display: block;
}

.mobile-menu nav {
  padding: 1rem 0;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu a {
  display: block;
  padding: 0.5rem 0;
  color: var(--text);
  font-weight: 500;
}

.mobile-menu .btn {
  margin-top: 1rem;
}

/* Секція Про мене */
.hero {
  padding-top: 6rem;
  padding-bottom: 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.hero-content h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.badges {
  margin: 0.75rem 0 1.5rem;
}

.hero-description {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.contact-info {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-item i {
  color: var(--primary);
}

.contact-item a:hover {
  color: var(--primary);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-image {
  display: flex;
  justify-content: center;
}

.profile-image {
  position: relative;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--white);
  box-shadow: var(--shadow-md);
}

.profile-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.code-badge {
  position: absolute;
  bottom: -1rem;
  right: -1rem;
  background-color: var(--white);
  padding: 0.75rem;
  border-radius: 50%;
  box-shadow: var(--shadow);
}

.code-badge code {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  background-color: var(--primary);
  color: var(--white);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Загальні стилі для секцій */
section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 1rem;
}

.section-divider {
  width: 5rem;
  height: 0.25rem;
  background-color: var(--primary);
  margin: 0 auto;
}

.section-description {
  max-width: 36rem;
  margin: 1rem auto 0;
  color: var(--text-light);
}

/* Секція Досвід роботи */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.experience-card {
  background-color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
  transition: var(--transition);
}

.experience-card:hover {
  box-shadow: var(--shadow-md);
}

.experience-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.25rem 1.25rem 0.5rem;
}

.experience-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.experience-period {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-light);
  font-size: 0.875rem;
}

.experience-icon {
  color: var(--primary);
  font-size: 1.25rem;
}

.experience-content {
  padding: 0 1.25rem 1.25rem;
}

.experience-description {
  list-style-type: disc;
  padding-left: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.experience-tags {
  display: flex;
  flex-wrap: wrap;
  margin-top: 1rem;
}

/* Секція Навички */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.skill-card {
  background-color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.skill-card:hover {
  box-shadow: var(--shadow-md);
}

.skill-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.25rem 0.5rem;
}

.skill-icon {
  color: var(--primary);
  font-size: 1.25rem;
}

.skill-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark);
}

.skill-content {
  padding: 0.5rem 1.25rem 1.25rem;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
}

.skills-approach {
  background-color: var(--secondary);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 4rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.skills-approach h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 1rem;
}

.skills-approach p {
  max-width: 36rem;
  margin: 0 auto;
  color: var(--text);
}

/* Секція Контакти */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-card {
  background-color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-card-icon {
  background-color: var(--primary-light);
  color: var(--primary);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.contact-card-content h3 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.contact-card-content a:hover {
  color: var(--primary);
}

.contact-form-container {
  background-color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--dark);
}

.form-group input,
.form-group textarea {
  padding: 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.875rem;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

.form-success {
  text-align: center;
  padding: 2rem 1rem;
}

.form-success i {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.form-success h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.form-success p {
  color: var(--text-light);
}

/* Футер */
.footer {
  background-color: var(--dark);
  color: var(--white);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-info p {
  color: #94a3b8;
  margin-bottom: 1rem;
}

.footer-social {
  display: flex;
  gap: 1rem;
}

.footer-social a {
  color: #94a3b8;
  font-size: 1.25rem;
}

.footer-social a:hover {
  color: var(--primary);
}

.footer-nav ul,
.footer-contact ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-nav a,
.footer-contact a {
  color: #94a3b8;
}

.footer-nav a:hover,
.footer-contact a:hover {
  color: var(--primary);
}

.footer-contact li {
  color: #94a3b8;
}

.footer-copyright {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid #334155;
  color: #64748b;
  font-size: 0.875rem;
}

/* Медіа-запити */
@media (min-width: 640px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .contact-info {
    grid-template-columns: 1fr 1fr;
  }

  .hero-buttons {
    flex-wrap: nowrap;
  }
}

@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
  }

  .mobile-menu-btn {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 7fr 5fr;
    align-items: center;
  }

  .hero-content {
    order: 1;
  }

  .hero-image {
    order: 2;
    justify-content: flex-end;
  }

  .profile-image {
    width: 20rem;
    height: 20rem;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .hero-content h1 {
    font-size: 3rem;
  }

  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

