html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  font-family: 'Inter', sans-serif;
}

footer {
  background-color: white;
}

/*Index*/

#index-wrapper{
  background: #f9f9f9;
  border-radius: 1rem;
  padding-left: 2rem;
  padding-right: 2rem;
  padding-bottom: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  width: 100%;
  max-width: 600px;
  transition: box-shadow 0.3s ease;
}

.divider {
  width: 66%;
  height: 1px;
  background-color: #ccc;
  margin: 1rem auto;
  opacity: 0.6;
}

#hello-bold {
  font-size: 1.5rem;
  color: #222;
}

div#profile-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: center;
  margin-bottom: 1rem;
}
#index-text p {
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
}

#index-text strong {
  font-weight: 600;
  color: #000;
}
#profile-wrapper img {
  margin-top: 2%;
  border-radius: 50%;
  width: 50%;
}

#bg-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  display: block;
}

#project-container #main-content{
  display: flex;
  flex-direction: row;
  width: 100%;
  gap:  2rem;
}

.specialization-items {
  list-style: none;
}
/*Portfolio*/
#project-container {
  display: flex;
  flex-direction: column;
}

#dynamic-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex: 1;
}

#dynamic-content .content-item {
  max-width: 500px;
  width: 100%;
  border-radius: 1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: opacity 0.3s ease-in-out;
  display: none;
  padding: 1rem;
  background: white;
}

#dynamic-content img,
#dynamic-content video {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: inherit;
}

#dynamic-content .content-item.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

canvas#c {
  flex: 1;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 5%;
  border-style: solid;
  border-color: white;
  border-width: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

#portfolio-container {
  display: flex;
  flex-direction: column;
}

#portfolio-text {
  display: flex;
  flex-direction: row;
  gap: 2rem;
}

#category-nav {
  flex: 1;
  width: 100%; 
}

#category-nav ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1rem;
}

#category-nav li {
  margin-bottom: 0;
}

#category-nav button {
  display: flex;
  align-items: center;
  background: rgb(244, 244, 244);
  border: none;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: 400px;
  border-style: solid;
  
  text-decoration: none;
  color: inherit;        
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#category-nav button:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

#category-nav button i {
  font-size: 1.3rem;
  margin-right: 1rem;
  width: 24px;
  text-align: center;
}

#category-nav button span {
  font-size: 1.1rem;
  transition: color 0.2s ease;
}

#main-content {
  width: 30%;
  transition: min-height 0.3s ease;
  min-height: 400px;
}

#text-summary {
  background: #f9f9f9;
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
  width: 100%;
  max-width: 600px;
  transition: box-shadow 0.3s ease;
}

#text-summary:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

#summary-text {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #333;
}


/* Specific styling for content sections */
#threejs-canvas {
  width: 300px;
  height: 300px;
  background-color: #eee;
}

#image-slider {
  width: 300px;
  height: 300px;
  background-color: #f8f8f8;
}

#code-block {
  font-family: 'Courier New', Courier, monospace;
  background-color: #2d2d2d;
  color: white;
  padding: 1rem;
  border-radius: 8px;
  width: 400px;
}

.link {
  color: inherit;
  text-decoration: none;
  font-weight: bold;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
  transition: all 0.2s ease-in-out;
}

.link:hover {
  color: #0077cc;
  border-bottom-color: #0077cc;
}

/*Contact page*/
div#contact-wrapper
{
  position: relative;
  height: 100%;
  margin: 0;
  margin-top: 10%;
}
.contact-item {
  display: flex;
  align-items: center;
  background: white;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  max-width: 400px;

  text-decoration: none;
  color: inherit;

  border: 1px solid rgba(0, 0, 0, 0.06); /* softer neutral border */
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.contact-item:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  border-color: transparent; /* gives it a "lifted" feel */
}

.contact-item i {
  font-size: 1.3rem;
  margin-right: 1rem;
  width: 24px;
  text-align: center;
  color: #555; /* optional: slightly soft icon color */
}

.contact-item span {
  font-size: 1.1rem;
  transition: color 0.2s ease;
}

.contact-linkedin:hover span { color: #0077b5; border-color: #0077b5;}
.contact-email:hover span { color: #d44638; border-color: #d44638; }
.contact-bluesky:hover span { color: #4daae8; border-color: #4daae8;}
.contact-github:hover span { color: #333; border-color: #333;}

#index-wrapper h3 {
  padding-top: 2rem;
}

#category-nav ul {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  margin-bottom: 2rem;
}

#category-nav .tab {
  font-family: 'Inter', sans-serif;
  background: #f0f0f0;
  border: none;
  border-radius: 2rem;
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
  color: #333;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

#category-nav .tab:hover {
  background: #eaeaea;
  transform: translateY(-1px);
}

#category-nav .tab.active {
  background: #d0ebff;
  color: #005ea8;
  font-weight: 600;
}

/*For Phones*/
@media screen and (max-width: 600px) {
  div#index-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  div#profile-wrapper {
    display: flex;
    flex-direction: row;
    justify-content: center;
  }

  #project-container #main-content{
    display: flex;
    flex-direction: column-reverse;
    width: 100%;
    gap:  2rem;
  }
  
  #portfolio-text {
    display: flex;
    flex-direction: column-reverse;
    gap: 2rem;
  }
  #portfolio-text #main-content {
    width: 100%;
  }
  #dynamic-content .content-item {
    justify-content: center;
    align-items: center;
    width: 100%;
  }
  #category-nav ul {
    flex-wrap: nowrap;
  }
  #category-nav button {
    display: flex;
    align-items: center;
    background: white;
    border: none;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 1rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    width: 100%;
    height: 100%;
    max-width: 150px;
    max-height: 300px;
    
    text-decoration: none;
    color: inherit;        
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }
}