* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: #657b83;
  color: #002b36;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Header styles */
.main-header {
  position: relative;
  background: #003340 url("../img/header_bg.jpg") center top no-repeat;
  height: auto;
  padding: 20px 0;
}

.header-content {
  max-width: 940px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.logo {
  font-size: 60px;
  color: #859900;
  text-decoration: none;
  font-family: Sochi2014Light, Helvetica, Arial, sans-serif;
  line-height: 1;
}

.owner-name {
  font-size: 36px;
  color: #b58900;
  margin-left: 20px;
  font-family: Sochi2014Light, Helvetica, Arial, sans-serif;
}

/* Language selector */
.language-selector {
  display: flex;
  gap: 5px;
}

.lang-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #002b36;
  background: #073642;
  color: #fdf6e3;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.lang-btn:hover,
.lang-btn.active {
  background: #b58900;
  color: #073642;
}

/* Social icons */
.social-icons {
  display: flex;
  gap: 10px;
}

.social-icon {
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fdf6e3;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

/* Mobile menu button */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: #fdf6e3;
  transition: all 0.3s ease;
}

/* Navigation menu */
.main-menu {
  position: absolute;
  top: 140px;
  left: 50%;
  transform: translateX(-50%);
  width: 940px;
}

.main-menu ul {
  display: flex;
  justify-content: center;
  list-style: none;
  background: url("../img/menu_bg.png") no-repeat;
  padding: 10px 0;
}

.main-menu li {
  margin: 0 5px;
}

.main-menu a {
  display: block;
  height: 33px;
  line-height: 33px;
  color: #839496;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: bold;
  text-decoration: none;
  padding: 0 15px;
  transition: all 0.3s ease;
}

.main-menu a:hover {
  color: #fdf6e3;
  text-shadow: 2px 2px 2px rgba(200, 200, 200, 1);
}

/* Hero section */
.hero-section {
  padding: 50px 0;
  background-color: transparent;
}

.hero-container {
  max-width: 940px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.profile-photo {
  width: 270px;
  height: 320px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.hero-section h1 {
  font-size: 42px;
  color: #b58900;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.description {
  font-size: 16px;
  color: #002b36;
  margin-bottom: 40px;
  max-width: 800px;
  line-height: 1.8;
}

/* Technology icons */
.tech-icons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.tech-icons img {
  max-width: 150px;
  height: auto;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  cursor: pointer;
}

.tech-icons a:hover img {
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* About section */
.about-section {
  background-color: #fdf6e3;
  padding: 60px 20px;
}

.about-section h2 {
  text-align: center;
  font-size: 32px;
  color: #b58900;
  margin-bottom: 40px;
  text-transform: uppercase;
}

.about-content {
  max-width: 700px;
  margin: 0 auto;
}

.about-content dl {
  display: grid;
  gap: 15px;
}

.about-content dt {
  font-weight: bold;
  color: #b58900;
}

.about-content dd {
  margin-left: 20px;
  line-height: 1.6;
}

.about-content a {
  color: #073642;
  text-decoration: none;
}

.about-content a:hover {
  text-decoration: underline;
}

/* Portfolio section */
.portfolio-section {
  background-color: transparent;
  padding: 60px 20px;
}

.portfolio-section h2 {
  text-align: center;
  font-size: 32px;
  color: #b58900;
  margin-bottom: 40px;
  text-transform: uppercase;
}

.portfolio-description {
  text-align: center;
  font-size: 16px;
  color: #002b36;
  margin-bottom: 40px;
}

/* Carousel */
.carousel-container {
  max-width: 940px;
  margin: 0 auto;
  position: relative;
  padding: 20px 0;
}

.carousel-slides {
  display: flex;
  overflow-x: hidden;
  gap: 30px;
  scroll-behavior: smooth;
  padding-bottom: 20px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #fdf6e3;
  color: #073642;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  z-index: 10;
}

.carousel-btn:hover {
  background-color: #b58900;
  color: #fdf6e3;
}

.prev-btn {
  left: -25px;
}

.next-btn {
  right: -25px;
}

/* Project cards */
.project-card {
  min-width: 300px;
  height: 200px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.5);
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Project modal */
.project-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 51, 64, 0.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.project-modal.show {
  display: flex;
  flex-direction: column;
}

.close-btn {
  position: absolute;
  top: 30px;
  right: 30px;
  color: #fdf6e3;
  font-size: 40px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.close-btn:hover {
  transform: scale(1.2);
}

.project-modal h3 {
  color: #b58900;
  margin-bottom: 20px;
  font-size: 32px;
}

.project-modal p {
  color: #fdf6e3;
  max-width: 600px;
  line-height: 1.6;
}

.project-modal img {
  width: 70%;
  margin: 1em 0;
}


/* Contact section */
.contact-section {
  background-color: #fdf6e3;
  padding: 60px 20px;
}

.contact-section h2 {
  text-align: center;
  font-size: 32px;
  color: #b58900;
  margin-bottom: 40px;
  text-transform: uppercase;
}

.contact-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  align-items: center;
}

.contact-form {
  flex: 1;
  min-width: 300px;
}

.contact-form p {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  font-weight: bold;
  color: #b58900;
  margin-bottom: 8px;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #002b36;
  border-radius: 5px;
  font-size: 14px;
  font-family: Arial, Helvetica, sans-serif;
  transition: all 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #b58900;
  box-shadow: 0 0 10px rgba(181, 137, 0, 0.3);
}

.contact-form textarea {
  resize: vertical;
}

.text-center {
  text-align: center;
}

.contact-section button[type="submit"] {
  background-color: #b58900;
  color: #fdf6e3;
  border: none;
  padding: 12px 40px;
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.contact-section button[type="submit"]:hover {
  background-color: #859900;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Contact info */
.contact-info {
  flex: 1;
  min-width: 250px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  text-decoration: none;
  color: #002b36;
  transition: all 0.3s ease;
}

.contact-item:hover {
  transform: translateX(5px);
}

.contact-icon {
  width: 30px;
  height: auto;
}

.vk-link .contact-icon {
  filter: grayscale(100%);
}

.vk-link:hover .contact-icon {
  filter: grayscale(0%);
}

.geo-link .contact-icon {
  filter: grayscale(100%);
}

/* Footer */
.main-footer {
  background-color: #003340;
  padding: 40px 20px;
  text-align: center;
}

.footer-content {
  max-width: 940px;
  margin: 0 auto;
}

.footer-logo {
  display: block;
  width: 132px;
  height: 38px;
  background: url("../img/logo_footer.png") no-repeat;
  margin: 0 auto 30px;
}

/* Footer menu */
.footer-menu ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-menu li {
  display: inline-block;
}

.footer-menu span {
  color: #fdf6e3;
}

.footer-menu a {
  color: #fdf6e3;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 12px;
  transition: all 0.3s ease;
}

.footer-menu a:hover {
  color: #b58900;
}

/* Footer copyright */
.footer-copyright {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
  color: #839496;
}

/* Text utilities */
.text-center {
  text-align: center;
}

/* Responsive styles will be in responsive.css */
