/* Header Section */
.header-wrapper {
  background: url('images/3_4.png') no-repeat center center;
  background-size: cover;
  position: relative;
}

.site-header {
  padding-top: 60px;
  padding-bottom: 37px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: none;
  box-shadow: none;
  backdrop-filter: none;
  transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}

.site-header.scrolled {
  background: rgba(30, 30, 30, 0.6);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 32px;
  font-weight: 700;
}

.logo-highlight {
  color: var(--color-primary);
}

.main-nav ul {
  display: flex;
  gap: 40px;
}

.main-nav a {
  font-size: 18px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: var(--color-primary);
}

/* Mobile Navigation Styles */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 0;
}

.mobile-nav-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--color-text-primary);
  transition: all 0.3s ease;
}

.mobile-close-btn {
  display: none;
  position: absolute;
  top: 30px;
  right: 30px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 30px;
  color: var(--color-text-primary);
  transition: color 0.3s ease;
  z-index: 1001;
}

.mobile-close-btn:hover {
  color: var(--color-primary);
}

@media (max-width: 1024px) {
  .main-nav {
    display: none;
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    transition: left 0.3s ease;
    z-index: 1000;
  }
  
  .main-nav.active {
    left: 0;
    display: flex;
  }
  
  .header-container > .btn {
    display: none;
  }
  
  .mobile-nav-toggle {
    display: flex;
  }
  
  .main-nav ul {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }
  
  .main-nav a {
    font-size: 24px;
    font-weight: 600;
  }
  
  .mobile-close-btn {
    display: block;
  }
  
  /* Hamburger Animation */
  .mobile-nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .mobile-nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }
  
  /* Prevent body scroll when menu is open */
  body.menu-open {
    overflow: hidden;
  }
}

@media (min-width: 1025px) {
  .mobile-nav-toggle,
  .mobile-close-btn {
    display: none !important;
  }
  
  .main-nav {
    display: flex !important;
  }
  
  .header-container > .btn {
    display: inline-flex !important;
  }
}

/* Hero Section */
#hero {
  padding: 80px 0 260px;
  text-align: center;
  background: none;
  position: relative;
}

.hero-icons {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-title {
  font-size: 48px;
  font-weight: 500;
  margin: 0 0 24px;
  display: flex;
  gap: 16px;
}

.hero-subtitle {
  font-size: 48px;
  font-weight: 500;
  margin: 0 0 24px;
}

.hero-description {
  font-size: 24px;
  font-weight: 400;
  line-height: 32px;
  color: var(--color-text-secondary);
  max-width: 740px;
  margin: 0;
}

.hero-bg-2 {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 223px;
  opacity: 0.1;
  z-index: 0;
}

@media (max-width: 1200px) {
  .hero-icons { display: none; }
}

/* Hero Icons Positioning */
.hero-icon-1 {
  position: absolute;
  top: 220px;
  left: 180px;
  width: 98px;
  height: 97px;
  --rotation: -9.05deg;
}

.hero-icon-2 {
  position: absolute;
  top: 200px;
  left: 1122px;
  width: 99px;
  height: 94px;
  --rotation: 9.12deg;
}

.hero-icon-3 {
  position: absolute;
  top: 518px;
  left: 1078px;
  width: 64px;
  height: 64px;
  --rotation: 0deg;
}

.hero-icon-4 {
  position: absolute;
  top: 500px;
  left: 280px;
  width: 48px;
  height: 48px;
  --rotation: 0deg;
}

.hero-icon-5 {
  position: absolute;
  top: 500px;
  left: 680px;
  width: 34px;
  height: 34px;
  --rotation: -2.93deg;
}

.hero-icon-5 img {
  filter: blur(2px);
}

@media (max-width: 768px) {
  #hero {
    padding: 100px 0;
  }
  .hero-title, .hero-subtitle {
    font-size: 36px;
    flex-direction: column;
    gap: 0;
  }
  .hero-description {
    font-size: 18px;
  }
}

/* About Section */
#about {
  padding: 120px 0;
  background: none;
  position: relative;
  z-index: 1;
}

.about-container {
  display: flex;
  align-items: flex-start;
  gap: 54px;
}

.about-image-wrapper {
  width: 198px;
  height: 263px;
  overflow: hidden;
  flex-shrink: 0;
}

.about-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text-left {
  flex-basis: 410px;
  flex-shrink: 0;
}

.about-me-tag {
  font-size: 20px;
  font-weight: 400;
  margin: 0 0 42px;
}

.about-title {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
}

.about-divider {
  width: 1px;
  background-color: #808080;
  align-self: stretch;
  margin-top: -1px;
  margin-bottom: -1px;
}

.about-text-right {
  flex-grow: 1;
  padding-top: 62px;
}

.about-text-right p {
  font-size: 16px;
  font-weight: 400;
  line-height: 28px;
  margin: 0;
}

@media (max-width: 1200px) {
  .about-container {
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
  }
  .about-divider {
    display: none;
  }
  .about-text-left, .about-text-right {
    flex-basis: 100%;
    text-align: center;
  }
  .about-text-right {
    padding-top: 0;
  }
}

/* Services Section */
#services {
  padding: 78px 0 145px;
  background: url('images/11_68.svg') no-repeat center center;
  background-size: cover;
  position: relative;
}

.services-container {
  position: relative;
  z-index: 2;
}

.services-title-group {
  margin-bottom: 83px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

.service-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(2px);
  padding: 24px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-primary);
  box-shadow: 0 15px 35px rgba(255, 157, 0, 0.2);
  background: rgba(255, 255, 255, 0.15);
}

.service-card-content {
  background-color: var(--color-bg-secondary);
  padding: 24px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 200px;
}

.service-card-content img {
  transition: transform 0.3s ease;
}

.service-card:hover .service-card-content img {
  transform: scale(1.05);
}

.service-card h3 {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  transition: color 0.3s ease;
}

.service-card:hover h3 {
  color: var(--color-primary);
}

.service-card p {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
  margin: 0;
  transition: color 0.3s ease;
}

.service-card:hover p {
  color: var(--color-text-primary);
}

/* Skills Section */
#skills {
  padding: 80px 0;
}

.skills-container {
  display: flex;
  align-items: center;
  gap: 71px;
}

.skills-text {
  flex: 1;
}

.skills-tag {
  font-size: 24px;
  margin: 0 0 22px;
}

.skills-title {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  flex-shrink: 0;
}

.skill-icon {
  width: 106px;
  height: 106px;
  background-color: var(--color-bg-secondary);
  border-radius: 30px;
  box-shadow: inset 4px 4px 8px 0px #322b1f, inset -4px -4px 8px 0px #10100f;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  box-sizing: border-box;
  transition: all 0.3s ease;
  cursor: pointer;
}

.skill-icon:hover {
  transform: rotate(15deg) scale(1.1);
  box-shadow: inset 4px 4px 8px 0px #322b1f, inset -4px -4px 8px 0px #10100f, 0 10px 30px rgba(255, 157, 0, 0.3);
  background-color: rgba(255, 157, 0, 0.1);
}

.skill-icon img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

@media (max-width: 1200px) {
  .skills-container {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .skill-icon {
    width: 90px;
    height: 90px;
  }
}

/* Works Section */
#works {
  padding: 100px 0;
  background: url('images/12_153.svg') no-repeat center center;
  background-size: cover;
  position: relative;
}

.works-container {
  position: relative;
  z-index: 2;
}

.works-title-group {
  margin-bottom: 60px;
}

.works-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}

.filter-btn {
  background-color: var(--color-bg-secondary);
  color: var(--color-text-primary);
  border: none;
  padding: 12px 24px;
  border-radius: 200px;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn.active {
  background-color: #322b1f;
  border: 1px solid var(--color-primary);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.work-card {
  background-color: var(--color-bg-secondary);
  overflow: hidden;
  height: 450px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  cursor: pointer;
}

.work-card:hover .work-card-title {
  color: var(--color-primary);
}

.work-card img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.work-card:hover img {
  filter: grayscale(0%);
}

.work-card-caption {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.work-card-title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: var(--color-text-primary);
}

.work-card-caption p {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.full-width-card {
  grid-column: 1 / -1;
}

@media (max-width: 900px) {
  .works-grid {
    grid-template-columns: 1fr;
  }
}

.work-card[hidden] { display: none !important; }


/* Contact Section */
#contact {
  background-color: var(--color-bg-secondary);
  padding: 144px 0;
}

.contact-container {
  display: flex;
  align-items: center;
  gap: 111px;
}

.contact-text {
  flex: 1;
}

.contact-tag {
  font-size: 24px;
  margin: 0 0 22px;
}

.contact-title {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 40px;
}

.social-icons {
  display: flex;
  gap: 16px;
}

.social-icons a {
  display: block;
  width: 48px;
  height: 48px;
}

.social-icons img {
  width: 100%;
  height: 100%;
}

.contact-form {
  flex: 1;
  max-width: 546px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-row {
  display: flex;
  gap: 24px;
}

.contact-form input, .contact-form textarea {
  width: 100%;
  background-color: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  padding: 21px;
  color: var(--color-text-secondary);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  box-sizing: border-box;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  align-self: flex-start;
}

@media (max-width: 1024px) {
  .contact-container {
    flex-direction: column;
    gap: 60px;
    text-align: center;
  }
  .social-icons {
    justify-content: center;
  }
  .contact-form button {
    align-self: center;
  }
}

@media (max-width: 560px) {
  .form-row {
    flex-direction: column;
  }
}

/* Footer Section */
.site-footer {
  background-color: var(--color-bg-secondary);
  border-top: 1px solid var(--color-border);
  padding: 30px 0;
  text-align: center;
}

.site-footer p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 16px;
}
