:root {
  --main-bg: linear-gradient(rgb(161, 228, 189), rgb(255, 255, 255));
  --secondary-bg: rgb(102, 177, 114);
  --card-bg: rgb(223, 241, 227);
  --main-text: rgb(49, 83, 49);
  --secondary-text: rgb(96, 145, 96);
  --shadow-elem: rgba(114, 244, 97, 0.5);
  --shadow-action: rgba(114, 244, 97, 0.6);
  --header-height: 80px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
  overflow-anchor: none;
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding-top: var(--header-height);
  font-family: 'candara', system-ui, -apple-system, sans-serif;
  font-size: 20px;
  background-image: var(--main-bg);
  background-attachment: fixed;
  line-height: 1.6;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: transparent;
  transition: all 0.3s ease;
  border-bottom: 1px solid var(--main-text);
}

header.scrolled {
  background: rgba(161, 228, 189, 0.6);
  backdrop-filter: blur(10px);
}

main {
  flex: 1;
}

section {
  scroll-margin-top: 80px;
}

a {
  text-decoration: none;
}

.container {
  max-width: 1300px;
  margin: 0 auto;
}

/* Header */
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 15px;
  padding-inline: 25px;
}

.brand {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
}

.brand-logo {
  font-family: 'HUNoodles', sans-serif;
  grid-row: span 2;
  color: white;
  background: var(--secondary-bg);
  padding: 6px 10px 0;
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: 1px;
}

.brand-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 18px;
  font-weight: 600;
}

.brand-sub {
  font-size: 13px;
}

a.brand,
a.brand:visited {
  color: var(--main-text);
}

.nav-menu ul {
  display: flex;
  gap: 20px;
}

.nav-menu a {
  position: relative;
  padding: 0.5rem 0;
  color: var(--main-text);
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary-bg);
  transition: width 0.3s ease;
}

.nav-menu a:hover::after {
  width: 100%;
}

nav li {
  list-style: none;
}

body.menu-open {
  overflow: hidden;
}

/* Burger Menu */
.burger-nav {
  display: none;
}

.burger-checkbox:checked~.menu-list {
  transform: translateX(0);
}

.burger-social-networks {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  gap: 15px;
  padding: 20px 0;
}

.burger-social-networks i {
  color: var(--main-text);
  font-size: 1.6rem;
}

.burger-social-networks a {
  display: block;
  width: 40px;
  height: 40px;
  transition: transform 0.3s ease;
}

.burger-social-networks a:hover {
  transform: scale(1.1);
}

.menu-list {
  top: 0;
  right: 0;
  position: fixed;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 80px 30px 30px;
  margin: 0;
  background: rgba(161, 228, 189, 0.98);
  backdrop-filter: blur(10px);
  font-size: 18px;
  text-align: center;
  list-style-type: none;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  width: 250px;
  z-index: 999;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
}

.menu-item {
  display: block;
  padding: 12px 0;
  color: var(--main-text);
  font-weight: 500;
  transition: color 0.3s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.menu-item:hover {
  color: var(--secondary-bg);
}

.burger-checkbox {
  display: none;
}

.burger {
  display: none;
  cursor: pointer;
  position: relative;
  border: none;
  background: transparent;
  width: 30px;
  height: 26px;
  z-index: 1000;
}

.burger::before,
.burger::after {
  content: '';
  position: absolute;
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 10px;
  background: var(--main-text);
  transition: all 0.3s ease;
  left: 0;
}

.burger::before {
  top: 0;
  transform: translateY(0);
}

.burger::after {
  bottom: 0;
  transform: translateY(0);
}

.burger::before {
  box-shadow: 0 11px 0 var(--main-text);
}

.burger-checkbox:checked+.burger::before {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  box-shadow: none;
}

.burger-checkbox:checked+.burger::after {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  z-index: 998;
}

.burger-checkbox:checked~.overlay {
  opacity: 1;
  visibility: visible;
}

/* Sections */
.section-inner {
  padding: 40px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  color: var(--main-text);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.2rem;
  color: var(--secondary-text);
}

.section-divider {
  width: 80px;
  height: 4px;
  background-color: var(--secondary-bg);
  margin: 0 auto;
  border-radius: 2px;
}

/* Hero section */
.hero-inner {
  display: flex;
  align-items: center;
  padding-inline: 5%;
  flex-wrap: wrap;
  gap: 2rem;
}

.hero-content {
  flex: 1;
  padding-right: 2rem;
  min-width: 300px;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: var(--main-text);
  word-wrap: break-word;
}

.hero-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  line-height: 1.6;
  color: var(--secondary-text);
  max-width: 600px;
}

.hero-button {
  display: inline-block;
  position: relative;
  z-index: 10;
  background-color: var(--secondary-bg);
  color: white;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px var(--shadow-elem);
}

.hero-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--shadow-action);
}

.hero-image {
  flex: 1;
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 300px;
}

.profile-image {
  width: 350px;
  height: 350px;
  object-fit: contain;
  border: 7px solid white;
  border-radius: 20px;
  position: relative;
  z-index: 10;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* About section */
.about-intro {
  text-align: center;
  max-width: 1150px;
  margin: 0 auto;
}

.intro-text {
  font-size: 1.4rem;
  color: var(--main-text);
  text-align: justify;
}

.about-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.detail-card {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 5px 15px var(--shadow-elem);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.detail-card i {
  color: var(--secondary-bg);
}

.detail-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--secondary-bg);
}

.card-title {
  font-size: 1.3rem;
  color: var(--main-text);
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.card-list {
  list-style: none;
  padding-left: 0;
}

.card-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  color: var(--secondary-text);
  line-height: 1.6;
}

.card-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--secondary-bg);
  font-weight: bold;
}

/* Skills */
.skills-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
}

.skills-image {
  background: var(--card-bg);
  border: 1px solid var(--secondary-bg);
  border-radius: 12px;
  padding: 15px;
  text-align: center;
  min-width: 100px;
}

.skills-image img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 3px;
  display: block;
  margin: 0 auto 8px;
}

.skills-image p {
  font-size: 0.9rem;
  color: var(--main-text);
}

/* Portfolio */
.portfolio-inner {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 50px;
  flex-wrap: wrap;
}

.project-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 280px;
}

.projects {
  position: relative;
  display: block;
  width: 280px;
  height: 280px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow-elem);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.projects img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}

.projects::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 15px;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.2),
      rgba(0, 0, 0, 0.6));
  pointer-events: none;
}

.project-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  font-size: 1.2rem;
  text-align: center;
  color: white;
  z-index: 50;
}

.page-link {
  display: block;
  position: relative;
  bottom: 40%;
  position: absolute;
  bottom: 40%;
  left: 0;
  right: 0;
  z-index: 50;
}

.link-text {
  display: inline-block;
  background: rgba(114, 244, 97, 0.3);
  color: white;
  font-size: 1rem;
  text-align: center;
  padding: 10px 20px;
  border-radius: 5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transform: translate(35%);
}

/* Services */
.services-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1200px;
}

.service-card {
  position: relative;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 0.9em;
  color: var(--main-text);
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 15px var(--shadow-elem);
  text-align: center;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px var(--shadow-action);
}

.service-card:hover .service-icon i,
.service-card:hover h3,
.service-card:hover p {
  color: white;
}

.service-card:hover .service-icon i,
.service-card:hover h3,
.service-card:hover p {
  color: white;
}

.service-icon i {
  font-size: 3rem;
  color: var(--secondary-bg);
  margin-bottom: 1.5rem;
  transition: color 0.3s ease;
}

.service-card h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
  font-weight: 600;
}

.service-card p {
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.service-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(102, 177, 114, 0.5);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 15px;
}

.service-card:hover .service-hover {
  opacity: 1;
}

/* Reviews */
.reviews-inner {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.review-card {
  background: white;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0 auto;
}

.review-header {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.reviews-w-icon i {
  font-size: 2rem;
  color: pink;
  margin-right: 15px;
}

.reviews-m-icon i {
  font-size: 2rem;
  color: cornflowerblue;
  margin-right: 15px;
}

.review-author h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--main-text);
  margin: 0;
}

.review-rating {
  color: #ffd700;
  font-size: 1rem;
  margin-top: 5px;
}

.review-content {
  margin-bottom: 15px;
  flex-grow: 1;
  overflow-y: hidden;
  max-height: 180px;
  position: relative;
  padding-right: 0;
}

.review-content.scrollable {
  overflow-y: auto;
}

.review-content::-webkit-scrollbar {
  width: 4px;
}

.review-content::-webkit-scrollbar-thumb {
  background: #ddd;
  border-radius: 2px;
}

.review-indicator-container {
  position: relative;
  width: 100%;
  margin-top: 5px;
  height: 30px;
  display: none;
}

.review-content.scrollable~.review-indicator-container {
  display: block;
}

.review-content p {
  font-size: 1.05rem;
  font-style: italic;
  color: var(--secondary-text);
  line-height: 1.5;
  margin: 0;
}

.review-date {
  font-size: 0.9rem;
  color: #999;
  text-align: right;
  margin-top: auto;
  padding-top: 10px;
}

.review-form {
  max-width: 500px;
  margin: 0 auto;
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.review-form input,
.review-form textarea {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
}

.review-form input:focus,
.review-form textarea:focus {
  outline: none;
  border-color: var(--secondary-bg);
}

.review-form input[type='text'],
.review-form textarea {
  font-size: 16px !important;
  line-height: 1.4;
}

.review-form textarea {
  resize: vertical;
  height: 150px;
}

.text-form {
  color: var(--secondary-text);
}

.rating-stars {
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 5px;
  margin-top: 5px;
}

.rating-stars input[type='radio'] {
  display: none;
}

.star-label {
  font-size: 28px;
  color: #ddd;
  cursor: pointer;
  transition: color 0.2s ease;
  order: 2;
}

.rating-stars input[type='radio']:checked~.star-label,
.star-label:hover,
.star-label:hover~.star-label {
  color: #ffd700 !important;
}

.rating-stars input[type='radio']:checked+.star-label,
.rating-stars input[type='radio']:checked~.star-label {
  color: #ffd700 !important;
}

.gender-selection {
  display: flex;
  gap: 20px;
  margin: 10px 0 20px 0;
}

.gender-selection input[type='radio'] {
  display: none;
}

.gender-label {
  padding: 8px 16px;
  border: 2px solid #ddd;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  color: var(--secondary-text);
}

.gender-selection input[type='radio']:checked+.gender-label {
  background-color: var(--secondary-bg);
  color: white;
  border-color: var(--secondary-bg);
}

.gender-label:hover {
  border-color: var(--secondary-bg);
  color: var(--secondary-bg);
}

.form-status {
  text-align: center;
  margin-top: 1rem;
  font-size: 14px;
  min-height: 20px;
}

.review-form button {
  background-color: var(--secondary-bg);
  color: white;
  border: none;
  text-align: center;
  padding: 0.8rem 2rem;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.review-form button:hover {
  background-color: var(--secondary-text);
  transform: translateY(-3px);
}

/* Slider */
.slideshow-container {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.slide {
  display: none;
}

.slideshow-inner {
  min-height: 350px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.slide img {
  max-width: 90%;
  max-height: 90%;
  object-fit: cover;
  display: block;
  margin: auto;
}

.numbertext {
  position: absolute;
  top: 0;
  left: 6%;
  color: white;
  font-size: 1.1rem;
}

.prev,
.next {
  position: absolute;
  top: 30%;
  width: auto;
  padding: 18px;
  cursor: pointer;
  color: var(--secondary-bg);
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  z-index: 10;
}

.prev {
  left: -50px;
  border-radius: 0 3px 3px 0;
}

.next {
  right: -50px;
  border-radius: 3px 0 0 3px;
}

.dots-container {
  text-align: center;
}

.dot {
  height: 10px;
  width: 10px;
  margin: 0 4px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background 0.3s;
  cursor: pointer;
}

.dot.active {
  background-color: var(--secondary-bg);
}

.fade {
  animation: fade 1s;
}

/* Contacts */
.contacts-inner {
  display: flex;
  gap: 3rem;
  max-width: 1200px;
  align-items: center;
}

.contacts-info {
  flex: 1;
  color: var(--main-text);
  background: white;
  height: 250px;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.contacts-details {
  margin-top: 2rem;
}

.contacts-details i {
  color: var(--secondary-bg);
  font-size: 1.2rem;
}

.contacts-details a {
  color: var(--secondary-text);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--card-bg);
  color: white;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-links a:hover {
  transform: translateY(-3px);
}

.contact-form {
  flex: 1;
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem;
  margin-bottom: 1rem;
  font-size: 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--secondary-bg);
}

.contact-form input[type='text'],
.contact-form textarea {
  font-size: 16px !important;
  line-height: 1.4;
}

.contact-form textarea {
  height: 150px;
  resize: vertical;
}

.contact-form button {
  background-color: var(--secondary-bg);
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.contact-form button:hover {
  background-color: var(--secondary-text);
  transform: translateY(-3px);
}

/* Projects Page */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.project-card {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px var(--shadow-elem);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px var(--shadow-action);
}

.project-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

.project-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 40px 20px 20px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.project-info h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 8px;
  font-family: 'Playfair Display', Georgia, serif;
}

.project-info p {
  font-size: 1rem;
  margin-bottom: 5px;
  opacity: 0.9;
}

.paragraphs-container {
  display: flex;
  justify-content: space-between;
}

.project-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
}

.project-card:hover .project-info {
  transform: translateY(0);
}

/* Project Page */
.project-page {
  padding-top: 100px;
  display: flex;
  flex-direction: column;
}

.project-hero {
  position: relative;
  max-width: 1200px;
  width: 90%;
  height: 60vh;
  min-height: 400px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.project-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-hero-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: white;
  padding: 40px 25px 25px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.project-hero-left h1 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  font-family: 'Playfair Display', Georgia, serif;
}

.project-hero-left .project-area {
  font-size: 1.2rem;
  opacity: 0.9;
}

.project-hero-right .project-year {
  font-size: 1.5rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 16px;
  border-radius: 25px;
  backdrop-filter: blur(10px);
}

.project-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 25px;
  flex: 1;
}

.project-description {
  background: var(--card-bg);
  padding: 40px;
  border-radius: 20px;
  margin-bottom: 60px;
  box-shadow: 0 5px 15px var(--shadow-elem);
}

.project-description h2 {
  color: var(--main-text);
  font-size: 1.8rem;
  margin-bottom: 20px;
  font-family: 'Playfair Display', Georgia, serif;
}

.project-description p,
.project-description div {
  color: var(--secondary-text);
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.project-description ul {
  list-style: '-';
  color: var(--secondary-text);
  font-size: 1.1rem;
  padding-left: 20px;
}

.project-description li {
  padding-left: 5px;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 60px;
}

.project-gallery img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 5px 15px var(--shadow-elem);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.project-gallery img:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px var(--shadow-action);
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--secondary-bg);
  color: white;
  padding: 12px 24px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-bottom: 40px;
  margin-top: 20px;
}

.back-button:hover {
  background: var(--secondary-text);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--shadow-action);
}

.back-button::before {
  content: '←';
  font-size: 1.2rem;
}

/* Modal for image gallery */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}

.modal-content {
  margin: 30px auto;
  display: block;
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 10px;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
}

.modal-close:hover {
  color: var(--secondary-bg);
}

/* Slider for modal */
.gallery-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}

.gallery-modal-container {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.gallery-modal-content {
  max-width: 90%;
  max-height: 80%;
  object-fit: contain;
  border-radius: 5px;
}

.gallery-modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
}

.gallery-modal-close:hover {
  color: var(--secondary-bg);
}

.gallery-modal-prev,
.gallery-modal-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  cursor: pointer;
  user-select: none;
  transition: 0.3s;
  z-index: 1001;
}

.gallery-modal-prev {
  left: 10%;
}

.gallery-modal-next {
  right: 10%;
}

.gallery-modal-prev.large-image {
  left: 2%;
}

.gallery-modal-next.large-image {
  right: 2%;
}

.gallery-modal-dots {
  text-align: center;
  padding: 20px 0;
  position: absolute;
  bottom: 0;
  width: 100%;
}

.gallery-modal-dot {
  cursor: pointer;
  height: 15px;
  width: 15px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.3s ease;
}

.gallery-modal-dot.active,
.gallery-modal-dot:hover {
  background-color: var(--secondary-bg);
}

/* Footer */
.footer-inner {
  font-size: 1.1rem;
  text-align: center;
  padding: 1.5rem;
  color: var(--main-text);
  margin-top: auto;
}

.footer-inner a {
  color: var(--main-text);
  transition: color 0.3s ease;
}

.footer-inner a:hover {
  color: var(--secondary-bg);
}

/* 404 Page */
.error-wrapper {
  flex: 1;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.error-card {
  max-width: 800px;
  background: var(--card-bg);
  border-radius: 20px;
  padding: 40px 24px;
  box-shadow: 0 10px 30px var(--shadow-elem);
  text-align: center;
}

.error-code {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(72px, 14vw, 160px);
  line-height: 1;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--secondary-bg), var(--main-text));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-title {
  font-size: clamp(24px, 4vw, 32px);
  color: var(--main-text);
  margin-bottom: 16px;
}

.error-subtitle {
  color: var(--secondary-text);
  margin: 0 auto 32px;
  font-size: 1.1rem;
  line-height: 1.6;
}

.error-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.button-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 25px;
  border: 2px solid var(--secondary-bg);
  color: var(--main-text);
  background: white;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.button-outline:hover {
  background: var(--secondary-bg);
  color: #fff;
  transform: translateY(-2px);
}

/* Reviews-loader */
.slideshow-container .reviews-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  padding: 40px;
}

.reviews-inner .reviews-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.loading-spinner {
  color: var(--secondary-bg);
  margin-bottom: 20px;
}

.loading-spinner .fa-spin {
  animation: fa-spin 1s infinite linear;
}

@keyframes fa-spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

@-webkit-keyframes fade {
  from {
    opacity: 0.5;
  }

  to {
    opacity: 1;
  }
}

@keyframes fade {
  from {
    opacity: 0.5;
  }

  to {
    opacity: 1;
  }
}

@font-face {
  font-family: 'candara';
  src: url('./fonts/candara.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'HUNoodles';
  src: url('./fonts/HUNoodles-Bold.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@media (hover: hover) {
  button:hover {
    background-color: var(--secondary-bg);
  }
}

@media (max-width: 1900px) {
  .gallery-modal-prev {
    left: 5%;
  }

  .gallery-modal-next {
    right: 5%;
  }
}

@media (max-width: 1700px) {
  .gallery-modal-prev {
    left: 2%;
  }

  .gallery-modal-next {
    right: 2%;
  }
}

@media (max-width: 1400px) {
  .container {
    max-width: 1200px;
    padding-inline: 24px;
  }

  .hero-title {
    font-size: 3.2rem;
  }

  .profile-image {
    width: 340px;
    height: 340px;
  }
}

@media (max-width: 1200px) {
  .container {
    max-width: 1000px;
    padding-inline: 20px;
  }

  .hero-title {
    font-size: 2.8rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .profile-image {
    width: 300px;
    height: 300px;
  }

  .about-details {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }

  .services-inner {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }

  .gallery-modal-content {
    max-width: 85%;
  }

  .gallery-modal-prev.large-image {
    left: 0;
  }

  .gallery-modal-next.large-image {
    right: 0;
  }
}

@media (max-width: 992px) {
  .container {
    max-width: 900px;
    padding-inline: 16px;
  }

  .header-inner {
    padding-block: 12px;
    padding-inline: 16px;
  }

  .brand-name {
    font-size: 16px;
  }

  .brand-sub {
    font-size: 12px;
  }

  .hero-content {
    padding-right: 0;
  }

  .hero-title {
    font-size: 2.4rem;
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
  }

  .hero-image {
    height: auto;
  }

  .profile-image {
    width: 280px;
    height: 280px;
  }

  .section-title {
    font-size: 2rem;
  }

  .services-inner {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.2rem;
  }

  .service-card {
    padding: 1.5rem;
  }

  .service-icon i {
    font-size: 2.4rem;
  }
}

@media (max-width: 968px) {
  .nav-menu {
    display: none;
  }

  .burger-nav {
    display: block;
  }

  .burger {
    display: block;
  }

  .hero-content {
    padding-left: 2rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-button {
    padding: 0.7rem 1.6rem;
  }

  .profile-image {
    width: 260px;
    height: 260px;
  }

  .intro-text {
    font-size: 1.2rem;
  }
}

@media (max-width: 768px) {
  body {
    font-size: 18px;
    padding-top: 70px;
  }

  main {
    padding-top: 0;
  }

  section {
    scroll-margin-top: 70px;
  }

  .container {
    padding-inline: 16px;
  }

  .hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 40px;
    padding-inline: 16px;
    padding-block: 10px;
  }

  .hero-content {
    padding-left: 0;
    order: 2;
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.3;
  }

  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.5;
  }

  .hero-button {
    font-size: 0.95rem;
  }

  .hero-image {
    height: auto;
    order: 1;
  }

  .profile-image {
    width: 240px;
    height: 240px;
    border-width: 5px;
  }

  .section-title {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
  }

  .section-divider {
    width: 60px;
    height: 3px;
  }

  .about-details {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 30px;
  }

  .detail-card {
    padding: 25px;
  }

  .intro-text {
    font-size: 1rem;
    line-height: 1.6;
  }

  .skills-image {
    padding: 10px 12px;
    min-width: 80px;
  }

  .skills-image p {
    font-size: 0.85rem;
    margin-top: 8px;
  }

  .portfolio-inner {
    gap: 25px;
    flex-direction: column;
    align-items: center;
  }

  .services-inner {
    grid-template-columns: 1fr;
    gap: 20px;
    max-width: 350px;
  }

  .service-card {
    padding: 1.3rem;
    font-size: 0.9em;
  }

  .service-icon i {
    font-size: 2.2rem;
  }

  .reviews-inner {
    padding: 0 15px;
  }

  .review-header {
    margin-bottom: 12px;
  }

  .reviews-w-icon i,
  .reviews-m-icon i {
    font-size: 1.7rem;
    margin-right: 12px;
  }

  .review-content {
    max-height: 150px;
  }

  .review-indicator-container {
    height: 28px;
    margin-top: 3px;
  }

  .review-author h3 {
    font-size: 1.1rem;
  }

  .review-content p {
    font-size: 0.95rem;
    line-height: 1.4;
  }

  .review-date {
    font-size: 0.85rem;
  }

  .prev {
    left: 5px;
  }

  .next {
    right: 5px;
  }

  .prev,
  .next {
    padding: 12px;
    font-size: 18px;
    top: 40%;
  }

  .contacts-inner {
    flex-direction: column;
    gap: 1.5rem;
    align-items: stretch;
    text-align: center;
  }

  .contacts-info,
  .contact-form {
    padding: 1.5rem;
  }

  .social-links {
    justify-content: center;
    gap: 15px;
  }

  .footer-inner {
    font-size: 0.95rem;
    padding: 1.2rem;
  }

  .gallery-modal-content {
    max-width: 70%;
  }

  .gallery-modal-prev {
    top: 53%;
    left: 5%;
  }

  .gallery-modal-next {
    top: 53%;
    right: 5%;
  }

  .gallery-modal-dots {
    padding: 15px 0;
  }

  .gallery-modal-dot {
    height: 12px;
    width: 12px;
    margin: 0 4px;
  }

  .project-hero {
    height: 35vh;
    min-height: 280px;
    width: 95%;
  }

  .project-hero-info {
    gap: 12px;
    padding: 25px 20px 20px;
  }

  .project-hero-left h1 {
    font-size: 1.8rem;
  }

  .project-hero-left .project-area {
    font-size: 0.95rem;
  }

  .project-hero-right .project-year {
    font-size: 1.1rem;
    padding: 6px 12px;
  }

  .project-content {
    padding: 30px 20px;
  }

  .project-description {
    padding: 25px 20px;
    margin-bottom: 40px;
  }

  .project-description h2 {
    font-size: 1.4rem;
  }

  .project-description p,
  .project-description div {
    font-size: 0.95rem;
  }

  .project-gallery {
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 40px;
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
  }

  .project-info {
    transform: translateY(0);
    padding: 30px 15px 15px;
  }

  .error-card {
    padding: 25px 15px;
  }

  .error-code {
    font-size: 3rem;
  }

  .error-title {
    font-size: 1.3rem;
  }

  .error-subtitle {
    font-size: 0.95rem;
    margin-bottom: 25px;
  }

  .error-actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .button-outline {
    width: 190px;
    justify-content: center;
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .review-form {
    padding: 15px;
    margin: 0 15px;
  }

  .star-label {
    font-size: 24px;
  }

  .slideshow-container .reviews-loading {
    min-height: 250px;
    padding: 30px 15px;
  }

  .reviews-inner .reviews-loading {
    min-height: 150px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .profile-image {
    width: 220px;
    height: 220px;
  }

  .section-title {
    font-size: 1.3rem;
  }

  .service-card {
    padding: 1rem;
    min-height: 180px;
  }

  .service-icon i {
    font-size: 1.8rem;
  }

  .review-content {
    max-height: 140px;
  }

  .review-indicator-container {
    height: 26px;
  }

  .contacts-info,
  .contact-form {
    padding: 1rem;
  }

  .project-hero-left h1 {
    font-size: 1.2rem;
  }

  .gallery-modal-prev {
    top: 55%;
    left: 3%;
  }

  .gallery-modal-next {
    top: 55%;
    right: 3%;
  }
}

@media (max-width: 360px) {
  .container {
    padding-inline: 8px;
  }

  .header-inner {
    padding-inline: 8px;
  }

  .hero-inner {
    padding: 40px 8px 0;
  }

  .hero-title {
    font-size: 1.3rem;
  }

  .profile-image {
    width: 160px;
    height: 160px;
  }

  .service-card {
    padding: 0.8rem;
    min-height: 160px;
  }

  .review-card {
    padding: 12px;
    min-height: 220px;
  }

  .contacts-info,
  .contact-form {
    padding: 0.8rem;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 0.6rem;
    font-size: 0.85rem;
  }

  .contact-form button {
    padding: 0.6rem 1.2rem;
    font-size: 0.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  ::before,
  ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}