html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Rubik', sans-serif;
  margin: 0;
  background-color: transparent; 
  font-size: 16px;
  color: #fff;
  overflow-x: hidden;
}

*::-moz-selection {
  background: #9409d4;
  color: #fff;
}

*::selection {
  background: #9409d4;
  color: #fff;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
}

#particles-js {
  position: fixed; 
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1; 
  background-color: #080808; 
}

.bigContainer {
  position: relative; 
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
}

.header {
  background: transparent;
  width: 100%;
  height: auto;
  min-height: 4em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 5%; 
  box-sizing: border-box;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo img {
  width: 55px; 
  height: auto;
}

.lang-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: #fff;
  border: 1px solid #04cde7;
  border-radius: 20px;
  padding: 4px 12px;
  transition: all 0.3s ease;
}

.lang-switch:hover {
  background-color: #04cde7;
  color: #000;
}

.lang-switch span {
  font-size: 13px;
  font-weight: bold;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-right: 40px;
}

.portfolio_link, .resume_link {
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
  color: #fff;
  font-size: 16px;
  display: flex;
  align-items: center;
  transition: opacity 0.3s, color 0.3s;
}

.portfolio_link:hover { opacity: 0.8; }
.resume_link:hover { color: #04cde7; }
.portfolio_link img { width: 22px; margin-right: 8px; }
.resume_link img { width: 28px; }
.resume_link span { margin-right: 8px; }

.hero {
  min-height: auto; 
  padding: 40px 5% 60px 5%; 
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: left;
}

.welcomeSection {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 50px;
  width: 100%;
  max-width: 1200px;
  margin-top: 10px;
}

.welcome {
  flex: 1;
  min-width: 300px;
}

.welcome h1 {
  font-size: 2.3em;
  line-height: 1.3em;
  font-weight: 600;
  color: #e0e0e0;
  margin-top: 0; 
}

.welcome .greeting {
  font-size: 0.8em;
  color: #888;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.welcome strong {
  color: #04cde7;
  font-weight: 700;
}

.welcome .highlight-text {
  color: #fff;
  background: linear-gradient(90deg, #04cde7 0%, #d500f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700;
}

.webTech {
  flex: 0.8;
  min-width: 300px;
  padding-top: 10px; 
}

.tech-title strong {
  font-size: 1.4em; 
  color: #fff;
  display: block;
  margin-bottom: 20px;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.techGroup h3 {
  color: #888;
  font-size: 0.9em;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.iconsContainer {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 50px;
  transition: transform 0.3s;
}

.icon:hover { transform: translateY(-5px); }
.icon img { width: 45px; height: 45px; margin-bottom: 5px; }
.icon p { font-size: 13px; margin: 0; color: #ccc; }

.bio {
  margin: 60px 0; 
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s, transform 0.8s;
}

.bio.show {
  opacity: 1;
  transform: translateY(0);
}

.bio-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

.bio-image img {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #1a1a1a;
  box-shadow: 0 0 30px rgba(4, 205, 231, 0.1);
}

.bio-text {
  flex: 1;
  font-size: 1.05em;
  line-height: 1.8;
  color: #ddd;
}

.bio-text strong {
  font-size: 1.8em;
  color: #04cde7;
  display: block;
  margin-bottom: 15px;
}

.contact-section {
  text-align: center;
  margin: 80px 0;
}

.contact-section h2 {
  color: #04cde7;
  font-size: 1.8em;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px 0;
  gap: 10px;
}

.contact-item a {
  color: #fff;
  text-decoration: none;
  font-size: 1.1em;
  transition: color 0.3s;
}

.contact-item a:hover { color: #04cde7; }
.contact-item img { width: 22px; }

.portfolio {
  padding: 40px 0;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.portfolio h2 {
  text-align: center;
  font-size: 2.2em;
  margin-bottom: 60px;
  color: #fff;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
  opacity: 0; 
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.project {
  border: 1px solid #1f1f1f;
  background: linear-gradient(145deg, #0e0e0e, #141414);
  border-radius: 20px;
  margin: 0 auto 80px auto;
  padding: 2.5em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
  box-shadow: 0 10px 40px -10px rgba(0,0,0,0.6);
  transition: all 0.3s ease;
}

.project:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px -10px rgba(0,0,0,0.8);
  border-color: #333;
}

.project:nth-child(even) {
  flex-direction: row-reverse;
}

.project-details {
  flex: 1;
  text-align: left;
}

.project-title {
  font-size: 2em;
  color: #fff;
  margin: 0;
  font-weight: 700;
}

.project-subtitle {
  font-size: 1em;
  margin: 5px 0 15px 0;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.project-url {
  display: inline-block;
  font-size: 1em;
  margin-bottom: 15px;
  color: #04cde7;
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  transition: border-color 0.3s;
}

.project-url:hover {
  border-color: currentColor;
}

.project-description {
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 0.95em;
}

.project ul {
  list-style: none;
  padding: 0;
}

.project ul li {
  margin-bottom: 8px;
  color: #bbb;
  font-size: 0.9em;
}

.project-imageContainer {
  flex: 1.3;
}

.project-image {
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  transition: transform 0.3s;
  cursor: zoom-in;
}

.project-image:hover {
  transform: scale(1.02);
}

.github-link {
  text-align: center;
  margin-top: 40px;
}

.github-link p { font-size: 1.1em; color: #ccc; }
.github-link a { color: #04cde7; text-decoration: none; font-weight: bold; font-size: 1.1em;}

.footer {
  text-align: center;
  padding: 30px;
  color: #555;
  font-size: 0.9em;
}

.modal {
  display: none; 
  position: fixed; 
  z-index: 9999; 
  padding-top: 0; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: hidden; 
  background-color: rgba(0, 0, 0, 0.96); 
  
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#modal-caption {
  margin: 0 0 20px 0;
  color: #04cde7; 
  font-family: 'Poppins', sans-serif;
  font-size: 1.8em;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  animation: fadeDown 0.4s ease;
}

.modal-content {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 10px;
  box-shadow: 0 0 50px rgba(4, 205, 231, 0.1);
  will-change: opacity;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }

.close-modal {
  position: absolute;
  top: 20px;
  right: 40px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}

.close-modal:hover { color: #04cde7; }

@media (max-width: 900px) {
  .welcomeSection { flex-direction: column; align-items: center; text-align: center; margin-top: 20px;}
  .welcome { text-align: center; }
  .tech-grid { grid-template-columns: 1fr; }
  .bio-content { flex-direction: column; }
  .project, .project:nth-child(even) { flex-direction: column; padding: 2em; gap: 30px; }
  .header { flex-direction: column; gap: 15px; }
  .header-nav { gap: 15px; }
  .project-title { font-size: 1.8em; text-align: center; }
  .project-subtitle { text-align: center; }
  .project-url { display: block; text-align: center; }
}