/* Color Theme */
:root {
  --background: #0F1115;
  --secondary-bg: #171A21;
  --primary-text: #F5F7FA;
  --secondary-text: #B8C0CC;
  --accent: #4DA3FF;
  --accent-hover: #2F80ED;
}

html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: var(--background);
  color: var(--primary-text);
}

header {
  width: 100%;
  background: var(--secondary-bg);
  border-bottom: 1px solid rgba(77, 163, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: transparent;
  color: var(--accent);
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}

.logo {
  font-size: 22px;
  font-weight: bold;
  color: var(--primary-text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--secondary-text);
  font-size: 15px;
  transition: 0.2s;
}

.nav-links a:hover {
  color: var(--accent);
}

.right-section {
  display: flex;
  align-items: center;
  gap: 16px;
}

.icons {
  display: flex;
  gap: 15px;
}

.icon-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  text-decoration: none;
  transition: 0.3s;
  font-size: 18px;
}

.icon-link:hover {
  background: var(--accent);
  color: #000;
  transform: scale(1.1);
}

.contact-btn {
  padding: 10px 18px;
  border: none;
  border-radius: 22px;
  background: var(--accent);
  color: #000;
  cursor: pointer;
  font-size: 14px;
  transition: 0.2s;
  font-weight: bold;
}

.contact-btn:hover {
  background: var(--accent-hover);
}

.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 32px;
  display: grid;
  grid-template-columns: minmax(0, 580px) 250px;
  grid-template-areas:
    "title photo"
    "copy photo";
  align-items: center;
  justify-content: center;
  column-gap: 40px;
  row-gap: 16px;
  scroll-margin-top: 100px;
}

.hero h1 {
  grid-area: title;
  font-size: 48px;
  color: var(--primary-text);
  text-align: left;
  width: 100%;
}

.hero-copy {
  grid-area: copy;
}

.hero p {
  font-size: 18px;
  color: var(--secondary-text);
  max-width: 580px;
  margin: 0;
  line-height: 1.9;
  text-align: justify;
}

.download-btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 28px;
  background: var(--accent);
  color: #000;
  text-decoration: none;
  border-radius: 22px;
  font-size: 15px;
  transition: 0.2s;
  border: none;
  cursor: pointer;
  font-weight: bold;
}

.download-btn:hover {
  background: var(--accent-hover);
}

.profile-photo {
  grid-area: photo;
  width: 250px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 0 25px rgba(77, 163, 255, 0.2), 0 8px 20px rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(77, 163, 255, 0.15);
  transition: 0.3s ease;
}

.profile-photo:hover {
  box-shadow: 0 0 35px rgba(77, 163, 255, 0.3), 0 12px 30px rgba(0, 0, 0, 0.3);
}

.skills-section {
  max-width: 1200px;
  margin: 100px auto;
  padding: 0 32px;
  scroll-margin-top: 100px;
}

.skills-section h2 {
  font-size: 36px;
  margin-bottom: 40px;
  text-align: center;
  color: var(--primary-text);
}

.skills-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.cards-wrapper {
  display: flex;
  gap: 20px;
  overflow: hidden;
  width: 940px;
  max-width: 100%;
}

.cards-scroll {
  display: flex;
  gap: 20px;
  transition: transform 0.3s ease;
}

.skill-card {
  flex: 0 0 300px;
  background: #1F242F;
  border: 2px solid rgba(77, 163, 255, 0.3);
  border-radius: 12px;
  padding: 50px 30px;
  text-align: center;
  box-shadow: 0 0 20px rgba(77, 163, 255, 0.1), 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: 0.3s ease;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.skill-card:hover {
  box-shadow: 0 0 30px rgba(77, 163, 255, 0.3), 0 8px 24px rgba(77, 163, 255, 0.15);
  border-color: var(--accent);
  transform: translateY(-5px);
}

.skill-card img {
  width: 80px;
  height: 80px;
  margin-bottom: 15px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(1) brightness(1.15) drop-shadow(0 0 8px rgba(77, 163, 255, 0.25));
}

.skill-card h3 {
  font-size: 22px;
  margin-top: 15px;
  margin-bottom: 15px;
  font-weight: bold;
  color: var(--primary-text);
}

.skill-card p {
  font-size: 16px;
  color: var(--secondary-text);
}

.slider-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: #000;
  cursor: pointer;
  font-size: 22px;
  transition: 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.slider-btn:hover {
  background: var(--accent-hover);
}

.slider-btn:disabled {
  background: var(--secondary-text);
  cursor: not-allowed;
  opacity: 0.5;
}

@media (max-width: 900px) {
  nav {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 20px;
  }

  .menu-toggle {
    display: flex;
    align-self: flex-end;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding-top: 14px;
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .right-section {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "photo"
      "copy";
    justify-items: center;
    padding: 70px 24px;
    row-gap: 24px;
  }

  .hero h1 {
    text-align: center;
  }

  .hero p {
    text-align: center;
  }

  .hero-copy {
    text-align: center;
  }

  .skills-container {
    gap: 0;
    position: relative;
  }

  .cards-wrapper {
    width: min(300px, calc(100vw - 140px));
  }

  .skill-card {
    flex-basis: min(300px, calc(100vw - 140px));
  }

  .slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 54px;
    height: 54px;
    font-size: 28px;
  }

  #prevBtn {
    left: 0;
  }

  #nextBtn {
    right: 0;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 34px;
  }

  .nav-links {
    gap: 16px;
  }
}

.experiences-section {
  max-width: 1200px;
  margin: 100px auto;
  padding: 0 32px;
  scroll-margin-top: 100px;
}

.experiences-section h2 {
  font-size: 36px;
  margin-bottom: 20px;
  text-align: center;
  color: var(--primary-text);
}

.experience-card {
  background: var(--secondary-bg);
  border: 2px solid rgba(77, 163, 255, 0.3);
  border-radius: 12px;
  padding: 35px 40px;
  text-align: center;
  box-shadow: 0 0 20px rgba(77, 163, 255, 0.1), 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: 0.3s ease;
  max-width: 400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.experience-card:hover {
  box-shadow: 0 0 30px rgba(77, 163, 255, 0.3), 0 8px 24px rgba(77, 163, 255, 0.15);
  border-color: var(--accent);
  transform: translateY(-5px);
}

.experience-card img {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(77, 163, 255, 0.25));
}

.experience-card h3 {
  font-size: 24px;
  margin-bottom: 10px;
  font-weight: bold;
  color: var(--primary-text);
}

.experience-card p {
  font-size: 16px;
  color: var(--secondary-text);
  margin-bottom: 20px;
}

.more-info-btn {
  padding: 10px 28px;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 22px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

.more-info-btn:hover {
  background: var(--accent-hover);
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 17, 21, 0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  background: var(--secondary-bg);
  margin: 5% auto;
  padding: 40px;
  border: 2px solid rgba(77, 163, 255, 0.3);
  border-radius: 12px;
  max-width: 600px;
  box-shadow: 0 0 40px rgba(77, 163, 255, 0.2);
  position: relative;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.close {
  position: absolute;
  right: 20px;
  top: 20px;
  font-size: 28px;
  font-weight: bold;
  color: var(--secondary-text);
  cursor: pointer;
  transition: 0.2s;
}

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

.modal-content h2 {
  font-size: 28px;
  color: var(--primary-text);
  margin-bottom: 10px;
}

.modal-subtitle {
  font-size: 16px;
  color: var(--accent);
  font-weight: bold;
  margin-bottom: 5px;
}

.modal-company {
  font-size: 16px;
  color: var(--secondary-text);
  margin-bottom: 5px;
}

.modal-date {
  font-size: 14px;
  color: var(--secondary-text);
  margin-bottom: 20px;
  font-style: italic;
}

.modal-description {
  font-size: 16px;
  color: var(--secondary-text);
  line-height: 1.8;
  text-align: justify;
  margin-bottom: 30px;
}

.modal-close-btn {
  background: var(--accent);
  color: #000;
  padding: 12px 32px;
  border: none;
  border-radius: 22px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
  width: 100%;
}

.modal-close-btn:hover {
  background: var(--accent-hover);
}

/* Projects Section */
.projects-section {
  max-width: 1200px;
  margin: 100px auto;
  padding: 0 32px;
  scroll-margin-top: 100px;
}

.projects-section h2 {
  font-size: 36px;
  margin-bottom: 40px;
  text-align: center;
  color: var(--primary-text);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.project-card {
  background: var(--secondary-bg);
  border: 2px solid rgba(77, 163, 255, 0.3);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 0 20px rgba(77, 163, 255, 0.1), 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.project-card:hover {
  box-shadow: 0 0 30px rgba(77, 163, 255, 0.3), 0 8px 24px rgba(77, 163, 255, 0.15);
  border-color: var(--accent);
  transform: translateY(-5px);
}

.project-card img {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  object-fit: contain;
  filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(77, 163, 255, 0.25));
}

.project-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: bold;
  color: var(--primary-text);
  line-height: 1.4;
}

.project-type {
  font-size: 14px;
  color: var(--accent);
  font-weight: bold;
  margin-bottom: 5px;
}

.project-year {
  font-size: 13px;
  color: var(--secondary-text);
  margin-bottom: 20px;
}

.project-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap;
  justify-content: center;
}

.tech-btn {
  padding: 8px 16px;
  background: transparent;
  border: 2px solid var(--accent);
  border-radius: 20px;
  color: var(--accent);
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

.tech-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.project-squares {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  justify-content: center;
}

.project-square {
  width: 40px;
  height: 40px;
  background: rgba(77, 163, 255, 0.15);
  border: 1px solid rgba(77, 163, 255, 0.3);
  border-radius: 6px;
}

.project-card .more-info-btn {
  width: 100%;
  margin-top: auto;
}

/* Publications Section */
.publications-section {
  max-width: 1200px;
  margin: 100px auto;
  padding: 0 32px;
  scroll-margin-top: 100px;
}

.publications-section h2 {
  font-size: 36px;
  margin-bottom: 40px;
  text-align: center;
  color: var(--primary-text);
}

.publications-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.publication-card {
  background: var(--secondary-bg);
  border: 2px solid rgba(77, 163, 255, 0.3);
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 0 20px rgba(77, 163, 255, 0.1), 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: 0.3s ease;
}

.publication-card:hover {
  box-shadow: 0 0 30px rgba(77, 163, 255, 0.3), 0 8px 24px rgba(77, 163, 255, 0.15);
  border-color: var(--accent);
  transform: translateY(-5px);
}

.publication-card h3 {
  font-size: 22px;
  color: var(--primary-text);
  margin-bottom: 12px;
  font-weight: bold;
  line-height: 1.4;
}

.publication-authors {
  font-size: 14px;
  color: var(--secondary-text);
  margin-bottom: 8px;
  font-style: italic;
}

.publication-conference {
  font-size: 15px;
  color: var(--secondary-text);
  margin-bottom: 15px;
  font-weight: 500;
}

.publication-badge-container {
  margin-bottom: 15px;
}

.publication-badge {
  display: inline-block;
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
}

.publication-description {
  font-size: 16px;
  color: var(--secondary-text);
  margin-bottom: 20px;
  line-height: 1.6;
}

.publication-link {
  display: inline-block;
  color: var(--accent);
  text-decoration: none;
  padding: 10px 20px;
  border: 2px solid var(--accent);
  border-radius: 22px;
  transition: 0.2s;
  font-weight: bold;
  font-size: 14px;
}

.publication-link:hover {
  background: var(--accent);
  color: #000;
}

/* Contact Section */
.contact-section {
  background: linear-gradient(135deg, rgba(77, 163, 255, 0.05) 0%, rgba(47, 128, 237, 0.03) 100%);
  padding: 100px 32px;
  margin-top: 100px;
  scroll-margin-top: 100px;
}

.contact-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.contact-header {
  text-align: center;
  margin-bottom: 60px;
}

.contact-header h2 {
  font-size: 36px;
  color: var(--primary-text);
  margin-bottom: 10px;
}

.contact-subtitle {
  font-size: 16px;
  color: var(--secondary-text);
}

.contact-content {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

.contact-info-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 900px;
}

.contact-info-card {
  background: var(--secondary-bg);
  border: 2px solid rgba(77, 163, 255, 0.3);
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  transition: 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-info-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(77, 163, 255, 0.2);
  transform: translateY(-5px);
}

.contact-icon {
  font-size: 40px;
  margin-bottom: 15px;
  color: var(--accent);
}

.contact-info-card:hover .contact-icon {
  color: var(--accent-hover);
}

.contact-info-card h3 {
  font-size: 18px;
  color: var(--primary-text);
  margin-bottom: 10px;
  font-weight: bold;
}

.contact-detail {
  font-size: 13px;
  color: var(--secondary-text);
  margin-bottom: 15px;
  word-break: break-word;
}

.contact-action {
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
  font-weight: bold;
  transition: 0.2s;
  border-bottom: 2px solid transparent;
}

.contact-action:hover {
  border-bottom-color: var(--accent);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 350px;
}

.form-input,
.form-textarea {
  background: var(--secondary-bg);
  border: 2px solid rgba(77, 163, 255, 0.3);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--primary-text);
  font-family: inherit;
  font-size: 14px;
  transition: 0.2s;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--secondary-text);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(77, 163, 255, 0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.form-submit {
  background: var(--accent);
  color: #000;
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
  margin-top: 8px;
  width: fit-content;
}

.form-submit:hover {
  background: var(--accent-hover);
}

@media (max-width: 900px) {
  .contact-content {
    grid-template-columns: 1fr;
  }

  .contact-info-group {
    grid-template-columns: 1fr;
    grid-column: auto;
  }

  .contact-form {
    grid-column: auto;
  }
}
