/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /*outline: 1px solid red; /* FOR DEBUGGING */
}

body {
  font-family: monospace;
  background: black;
  height: 100vh;

  overflow-x: hidden;
  overflow-y: auto;


  display: flex;
  align-items: center;
  justify-content: center;


}

/* Background */
.background {
  position: fixed;
  inset: 0;
  background: url("bg3.jpg") center/cover no-repeat;
  transform: scale(1);
  z-index: -5;
}

/* Layout Wrapper */
.wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  height: 100vh;
}

/* Card Styles */
.card,
.card-alt {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 1rem;
  padding: 2rem;
  width: 350px;
  color: white;
  text-align: center;
  font-family: monospace;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  transition: opacity 0.6s ease, transform 0.6s ease;
}


.card-alt {
  display: none;
}

/* Avatar */
.avatar {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #f0ff9b;
  margin-bottom: 1rem;
}

.name {
  font-size: 2rem; /* Slightly larger */
  font-weight: 700; /* Bold instead of semi-bold */
  color: 	#9db8d6; /* Brighter, more saturated blue */
  margin-bottom: 0.4rem;
  font-family: 'Inter', -apple-system, sans-serif;
  text-shadow: 
    0 1px 4px rgba(0, 0, 0, 0.2),
    0 0 5px rgba(180, 230, 255, 0.3); /* Added glow effect */
  letter-spacing: -0.5px; /* Tighter for bold text */
}

.role {
  font-size: 1.05rem; /* Slightly larger */
  color: #ffffff; /* Pure white instead of gray */
  margin-bottom: 1.2rem;
  font-weight: 600; /* Semi-bold */
  letter-spacing: 0.2px;
  opacity: 0.9; /* Subtle transparency */
}

.desc {
  font-size: 1rem;
  color: #ffffff;
  line-height: 1.7;
  font-weight: 500;
  margin-bottom: 2rem;
  max-width: 80%;
  padding: 0 1rem;
  text-align: center; /* This centers the text */
  margin-left: auto; /* These two ensure the container */
  margin-right: auto; /* itself is centered if needed */
}

/* Navigation Items */
.nav-item {
  font-size: 1.1rem;
  color: #ffffff;
  font-weight: 600;
  margin: 0.75rem 0;
  padding: 0.5rem 0;
  position: relative;
}

.nav-item::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 25%;
  width: 50%;
  height: 1px;
  background: rgba(255, 255, 255, 0.2); /* Subtle underline */
}

/* Contact Section */
.contact-label {
  color: #323d43;
  font-size: 0.95rem;
  font-weight: 600; /* Bolder */
  letter-spacing: 0.5px;
}

.contact-text {
  color: #ffffff;
  font-weight: 500;
  text-shadow: 0 0 8px rgba(180, 230, 255, 0.3); /* Glow effect */
}


/* Buttons */
.buttons {
  display: flex;
  flex-wrap: wrap;
  max-width: 400px;
  justify-content: center;
  gap: 0.75rem;
  margin-inline: auto;
}

.extra-button {
  margin-top: 2rem;
}

button {
  /* Base Style */
  font-family: monospace;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  min-width: 120px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #b8e3ff;
  border: 1px solid rgba(150, 211, 252, 0.4);
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

button:hover {
  /* Hover State */
  background: rgba(150, 211, 252, 0.15);
  color: #d4f0ff;
  border-color: rgba(150, 211, 252, 0.8);
  box-shadow: 
    0 0 12px rgba(150, 211, 252, 0.3),
    inset 0 0 8px rgba(150, 211, 252, 0.2);
  transform: translateY(-1px);
}

button:active {
  /* Click Effect */
  transform: translateY(0);
  background: rgba(150, 211, 252, 0.25);
}

/* Pulsing Glow Effect for Active Items */
button.active {
  animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
  0% { box-shadow: 0 0 0 0 rgba(150, 211, 252, 0.4); }
  70% { box-shadow: 0 0 0 6px rgba(150, 211, 252, 0); }
  100% { box-shadow: 0 0 0 0 rgba(150, 211, 252, 0); }
}

/* Optional Icon Support */
button.with-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Engineering Services List */
.services {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  text-align: left;
}

.services li {
  margin-bottom: 0.5rem;
}

/* Contact */
.contact {
  margin-top: 1rem;
  color: #96d3fc;
  font-size: 0.9rem;
}

/* project */
.project {
  background: rgba(66, 72, 85, 0.05);
  padding: 0.5rem;
  border-radius: 10px;
  margin-bottom:0.51rem;
  text-align: left;
}

.project-title {
  font-size: 1.2rem;
  color: #96d3fc;
  margin-bottom: 0.3rem;
}

.download-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid #96d3fc;
  color: #96d3fc;
  text-decoration: none;
  border-radius: 8px;
  transition: 0.3s ease;
}

.download-btn:hover {
  background: #96d3fc;
  color: black;
  box-shadow: 0 0 8px #96d3fc;
}


.hyperlink{
  color: #96d3fc;
}

/* music */
.music {
  background: rgba(66, 72, 85, 0.05);
  padding: 0.5rem;
  border-radius: 10px;
  margin-bottom:0.51rem;
  text-align: left;
}

.project-title {
  font-size: 1.2rem;
  color: #96d3fc;
  margin-bottom: 0.3rem;
}

.download-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid #96d3fc;
  color: #96d3fc;
  text-decoration: none;
  border-radius: 8px;
  transition: 0.3s ease;
}

.download-btn:hover {
  background: #96d3fc;
  color: black;
  box-shadow: 0 0 8px #96d3fc;
}


.hyperlink{
  color: #96d3fc;
}
.contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;  
  background: rgba(255, 255, 255, 0.05);
  padding: 1.5rem;
  border-radius: 0.5rem;
  font-family: monospace;
  font-size: 0.95rem;
  color: white;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact p {
  margin: 0.5rem 0;
}

.contact i {
  margin-right: 0.5rem;
  color: #96d3fc;
}
.contact strong {
  font-weight: bold;
  color: white;
}
.contact a {
  color: #96d3fc;
}
.contact a:hover {
  text-decoration: underline;
}

#about-card{
  min-width: 900px;
  overflow: visible;
}

.about-text {
  text-align: left;
  line-height: 1.6;
  font-size: 0.9rem;
  color: #e5e5e5;
  margin-top: 1rem;
  padding: 0 1rem;
}

/* Parent container for the services */
#service-card {
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  display: none;
  text-align: center;
}

.service-card-inner {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: stretch;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}


/* Each individual subcard */
.service-subcard {
  background: rgba(0, 0, 0, 0.75);
  transition: opacity 0.5s ease, transform 0.5s ease;
  padding: 1.5rem;
  border-radius: 1rem;
  width: 400px;
  max-width: 90vw;
  text-align: center;
  color: white;
  font-family: monospace;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-subcard:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.1);
}


/* Art Gallery Container */
.Art-alt {
  transition: opacity 0.5s ease, transform 0.5s ease;
  display: none;
  opacity: 0;
  transform: scale(0.95);
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-radius: 15px;
  padding: 2rem;
  width: 90vw; 
  max-width: 1400px;
  margin: 2rem auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3),
              inset 0 0 12px rgba(255, 255, 255, 0.03);
  color: #e0f0ff;
  position: relative;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
  max-height: 90vh;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

/* Hide scrollbar for Chrome, Safari and Opera */
.Art-alt::-webkit-scrollbar {
  display: none;
}

/* Fixed back button for art gallery */
.Art-alt .extra-button {
  position: static;
  bottom: auto;
  left: auto;
  z-index: auto;
  margin: 2rem 0 0 0;
  display: flex;
  justify-content: center;
}

/* Top right back button for art gallery */
.Art-alt .top-back-button {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  margin: 0;
}

.Art-alt .extra-button button,
.Art-alt .top-back-button button {
  background: rgba(150, 211, 252, 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #d4f0ff;
  border: 1px solid rgba(150, 211, 252, 0.7);
  box-shadow: 
    0 0 10px rgba(150, 211, 252, 0.25),
    inset 0 0 6px rgba(150, 211, 252, 0.15);
  padding: 0.6rem 1.2rem;
  border-radius: 6px;
  font-weight: normal;
  font-size: 0.9rem;
  width: auto;
  height: auto;
  min-width: 120px;
  letter-spacing: 0.5px;
}

.Art-alt .extra-button button:hover,
.Art-alt .top-back-button button:hover {
  background: rgba(150, 211, 252, 0.3);
  color: #ffffff;
  border-color: rgba(150, 211, 252, 0.9);
  box-shadow: 
    0 0 15px rgba(150, 211, 252, 0.4),
    inset 0 0 10px rgba(150, 211, 252, 0.25);
  transform: translateY(-1px);
}

.Art-alt .extra-button button::before,
.Art-alt .top-back-button button::before {
  content: none;
}

/* Art Grid Layout - Masonry style */
.art-grid {
  column-count: 3;
  column-gap: 1.5rem;
  margin: 2rem 0;
  width: 100%;
  padding: 0 1rem;
}

/* Tablet optimization */
@media (min-width: 769px) and (max-width: 1200px) {
  .art-grid {
    column-count: 2;
    column-gap: 1.2rem;
  }
}

/* Individual Art Items */
.art-item {
  position: relative;
  border-radius: 12px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  background: rgba(20, 20, 20, 0.6);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  width: 100%;
  display: inline-block;
  margin-bottom: 1.5rem;
  break-inside: avoid;
}

.art-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4),
              0 0 20px rgba(255, 255, 255, 0.1);
}

/* Image container - Perfect fit */
.art-image-container {
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
}

.art-image {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  transition: transform 0.7s ease;
}

.art-item:hover .art-image {
  transform: scale(1.05);
}

/* Link styling */
.art-image-link {
  display: contents;
  color: inherit; 
  text-decoration: none; 
}

/* Replace your existing mobile media queries with this updated version */

@media (max-width: 768px) {
  body {
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1rem 0;
  }

  .wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: auto;
    height: auto;
    padding: 1rem;
  }

  /* Profile card specific mobile styling */
  .card {
    width: 90vw;
    max-width: 350px;
    padding: 1.5rem;
    margin: 0 auto;
  }

  /* Other cards */
  .card-alt {
    width: 90vw;
    max-width: 400px;
    padding: 1.5rem;
    margin: 0 auto;
  }

  /* About card specific */
  #about-card {
    min-width: unset;
    min-height: auto;
    height: auto;
    width: 90vw;
    max-width: 500px;
    padding: 1.5rem;
  }

  .about-text {
    padding: 0;
    font-size: 0.85rem;
    text-align: left;
  }

  /* Profile card content adjustments */
  .avatar {
    width: 80px;
    height: 80px;
    margin-bottom: 0.8rem;
  }

  .name {
    font-size: 1.6rem;
    margin-bottom: 0.3rem;
  }

  .role {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }

  .desc {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
  }

  /* Button adjustments for mobile */
  .buttons {
    gap: 0.5rem;
    max-width: 100%;
  }

  button {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    min-width: 100px;
  }

  .service-card-inner {
    flex-direction: column;
    align-items: center;
  }

  .service-subcard {
    width: 90vw;
    max-width: 350px;
    font-size: 0.85rem;
    padding: 1rem;
  }

  .Art-alt {
    padding: 1rem 0.5rem;
    width: 100%;
    max-width: 100vw;
    margin: 0 auto;
    overflow-y: visible;
    max-height: none;
    height: auto;
  }
  
  .Art-alt .name {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    word-wrap: break-word;
  }
  
  .art-grid {
    column-count: 2;
    column-gap: 0.8rem;
    padding: 0.5rem;
    margin: 1.5rem 0;
  }
  
  .art-item {
    width: 100%;
    display: inline-block;
    margin-bottom: 0.8rem;
    break-inside: avoid;
  }
  
  .art-image-container {
    width: 100%;
    height: auto;
  }
  
  .art-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
  }
  
  .Art-alt .extra-button {
    position: static;
    bottom: auto;
    left: auto;
    margin: 2rem 0 0 0;
  }
  
  .Art-alt .top-back-button {
    top: 1rem;
    right: 1rem;
  }
  
  .Art-alt .extra-button button,
  .Art-alt .top-back-button button {
    width: auto;
    height: auto;
    border-radius: 6px;
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    min-width: 100px;
  }
  
  .Art-alt .extra-button button::before,
  .Art-alt .top-back-button button::before {
    content: none;
  }
}

@media (max-width: 480px) {
  .wrapper {
    padding: 0.5rem;
  }

  /* Even smaller profile card for very small screens */
  .card {
    width: 95vw;
    max-width: 320px;
    padding: 1.2rem;
  }

  .card-alt {
    width: 95vw;
    max-width: 350px;
    padding: 1.2rem;
  }

  .avatar {
    width: 70px;
    height: 70px;
  }

  .name {
    font-size: 1.4rem;
  }

  .role {
    font-size: 0.85rem;
  }

  .desc {
    font-size: 0.85rem;
  }

  button {
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    min-width: 90px;
  }

  .Art-alt {
    padding: 0.8rem;
    width: 98vw;
  }
  
  .Art-alt {
    padding: 0.8rem 0.5rem;
    width: 100%;
    max-width: 100vw;
    max-height: none;
    overflow-y: visible;
    height: auto;
  }
  
  .Art-alt .name {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
  }
  
  .art-grid {
    column-count: 2;
    column-gap: 0.5rem;
    padding: 0.2rem;
  }
  
  .art-item {
    width: 100%;
    display: inline-block;
    margin-bottom: 0.5rem;
    break-inside: avoid;
  }
  
  .art-image-container {
    width: 100%;
    height: auto;
  }
  
  .art-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
  }
  
  .Art-alt .extra-button {
    position: static;
    bottom: auto;
    left: auto;
    margin: 1.5rem 0 0 0;
  }
  
  .Art-alt .top-back-button {
    top: 0.8rem;
    right: 0.8rem;
  }
  
  .Art-alt .extra-button button,
  .Art-alt .top-back-button button {
    width: auto;
    height: auto;
    border-radius: 6px;
    font-size: 0.75rem;
    padding: 0.4rem 0.8rem;
    min-width: 90px;
  }
  
  .Art-alt .extra-button button::before,
  .Art-alt .top-back-button button::before {
    content: none;
  }
}
