@import url('https://fonts.googleapis.com/css?family=Exo:100');
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

body {
  margin-top: 13.5rem; 
  color: #e0e0e0;        
  font: 400 16px/1.5 'Poppins', sans-serif;
  text-align: left;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%);
  background-attachment: fixed;
  background-size: 50px 50px;

  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: 'Poppins', sans-serif; 
  color: #e0e0e0; 
  margin: 0; 
}


body::before {
  font-size: 8rem;
  font-weight: 100;
  font-style: normal;
  position: absolute;
  width: 100%;
  text-align: center;
  top: 1rem; 
  left: 0;
  pointer-events: none;
  user-select: none;
  color: rgba(5, 245, 248, 0.1);
  font-family: 'Exo', sans-serif;
}

 /* Navigation highlight indicator */
 nav ul li a::after {
  content: '';
  display: block;
  width: 0;
  height: 3px;
  background: #05f5f8;
  transition: width 0.3s ease;
  position: absolute;
  bottom: -8px;
  left: 0;
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(5, 245, 248, 0.5);
}

nav ul li a.active::after {
  width: 100%;
}

nav ul li a.active {
  color: #05f5f8;
  font-weight: 600;
  text-shadow: 0 0 10px rgba(5, 245, 248, 0.3);
}

nav ul li a i {
  transition: color 0.3s ease;
}

nav ul li a.active i {
  color: #05f5f8;
}

   
header.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 30px;
  padding: 12px 24px;
  background: rgba(20, 20, 40, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(5, 245, 248, 0.2);
  box-shadow: 0 2px 20px rgba(5, 245, 248, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo-text {
  font-size: 24px;
  font-weight: 600;
  color: #05f5f8;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  text-shadow: 0 0 10px rgba(5, 245, 248, 0.3);
}

.logo-text:hover {
  color: #ffffff;
  text-shadow: 0 0 15px rgba(5, 245, 248, 0.5);
  transform: scale(1.02);
}

nav {
  display: flex;
  flex-grow: 1; 
  justify-content: center;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 40px;
  margin: 0;
  padding: 0;
}

nav ul li a {
  cursor: pointer;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #e0e0e0; 
  position: relative;
  padding: 5px 0;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #05f5f8;
  text-shadow: 0 0 8px rgba(5, 245, 248, 0.4);
}

nav ul li a.active {
  font-weight: bold;
  color: #05f5f8;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.hamburger div {
  width: 30px;
  height: 4px;
  background-color: #05f5f8;
  border-radius: 2px;
  transition: background-color 0.3s ease;
}

h1 {
  color: #05f5f8;
  font-size: 1.4rem;
  margin-bottom: 20px;
  text-align: center;
  text-shadow: 0 0 20px rgba(5, 245, 248, 0.3);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

.skill-card {
  background: rgba(25, 25, 50, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(5, 245, 248, 0.2);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(5, 245, 248, 0.1);
  padding: 24px 10px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  color: #e0e0e0;
}

.skill-card i {
  font-size: 2rem;
}

.icon-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  filter: brightness(1.2) contrast(1.1);
}

.skill-card:hover {
  transform: scale(1.05) translateY(-5px);
  box-shadow: 0 8px 30px rgba(5, 245, 248, 0.3);
  border-color: rgba(5, 245, 248, 0.5);
  background: rgba(5, 245, 248, 0.1);
}

.skill-card:hover i {
  transform: scale(1.15) translateY(-3px);
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.skill-card:hover .icon-img {
  transform: scale(1.15) translateY(-3px);
  filter: brightness(1.3) contrast(1.2) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.8)) drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}
.certificates-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
}

.certificates-grid img {
  width: 100%;
  height: 220px; 
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(5, 245, 248, 0.2);
  box-shadow: 0 4px 20px rgba(5, 245, 248, 0.1);
  transition: all 0.3s ease;
  filter: brightness(0.9) contrast(1.1);
}

.certificates-grid img:hover {
  transform: scale(1.02) translateY(-2px);
  box-shadow: 0 6px 18px rgba(5, 245, 248, 0.2);
  border-color: rgba(5, 245, 248, 0.35);
  filter: brightness(1.03) contrast(1.08);
}

.grid-heading {
  grid-column: 1 / -1;
  margin-top: 30px;
  margin-bottom: 10px;
  color: #05f5f8;
  text-shadow: 0 0 10px rgba(5, 245, 248, 0.3);
}

/* Certificate hover overlay styles */
.cert-item {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 12px;
  isolation: isolate;
}

/* Subtle glow on certificate hover */
.cert-item:hover::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(45deg, #05f5f8, #04c5c8);
  z-index: -1;
  opacity: 0.12;
  filter: blur(4px);
}

.cert-item a {
  position: relative;
  display: block;
  text-decoration: none;
  overflow: hidden;
  border-radius: 12px;
}

.cert-title-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(5, 245, 248, 0.6), rgba(4, 197, 200, 0.6));
  backdrop-filter: blur(15px) saturate(180%) brightness(1.1);
  -webkit-backdrop-filter: blur(15px) saturate(180%) brightness(1.1);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 12px;
  padding: 20px;
  margin: 0;
  box-sizing: border-box;
  transform: translateY(10px) scale(0.95);
  z-index: 10;
}

.cert-item:hover .cert-title-overlay {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.cert-title {
  color: #000;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px 0;
  text-shadow: 0 2px 4px rgba(255, 255, 255, 0.4);
  font-family: 'Poppins', sans-serif;
  line-height: 1.2;
  text-align: center;
  width: 100%;
  display: block;
}

.cert-subtitle {
  color: #000;
  font-size: 15px;
  font-weight: 600;
  margin: 0;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.4);
  font-family: 'Poppins', sans-serif;
  line-height: 1.3;
  text-align: center;
  width: 100%;
  display: block;
}

#lightbox-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  justify-content: center;
  align-items: center;
  z-index: 10000;
  cursor: zoom-out;
  backdrop-filter: blur(5px);
}

#lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  border: 2px solid rgba(5, 245, 248, 0.3);
  box-shadow: 0 0 50px rgba(5, 245, 248, 0.4);
  transition: transform 0.3s ease;
}

/* Certificate lightbox close button */
.certificate-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.8);
  color: #05f5f8;
  border: 2px solid #05f5f8;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10002; /* Higher z-index to ensure it's clickable */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  font-family: 'Arial', sans-serif;
  line-height: 0;
  text-align: center;
  padding: 0;
  margin: 0;
  pointer-events: auto; /* Ensure it captures click events */
}

.certificate-close:hover {
  background: rgba(5, 245, 248, 0.9);
  color: #000;
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(5, 245, 248, 0.4);
}

.timeline {
  display: flex;
  flex-direction: column;
  align-items: center; 
  justify-content: center;
  position: relative;
  margin: 0 auto; 
  padding-left: 40px; 
}

.timeline-item:hover {
  transform: scale(1.02) translateY(-2px);
  box-shadow: 0 8px 30px rgba(5, 245, 248, 0.2);
}

.timeline-item:hover .timeline-content h2 {
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  transform: translateY(-2px);
}

.timeline-item:hover .timeline-content span {
  color: #05f5f8;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  font-weight: 600;
  transform: translateY(-1px);
}

.timeline-item:hover .timeline-content p {
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  transform: translateY(-1px);
  font-weight: 500;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  background: rgba(25, 25, 50, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(5, 245, 248, 0.2);
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(5, 245, 248, 0.1);
  width: 70%; 
  max-width: 600px;
  min-height: 90px;
  transition: all 0.3s ease;
}

.timeline-icon {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  margin-right: 20px;
  margin-top: 5px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.school1-icon {
  background-image: url('images/bpsu.png'); 
}

.school2-icon {
  background-image: url('images/fisheries.png'); 
  background-color: #2980b9;
}

.school3-icon {
  background-image: url('images/fisheries.png'); 
  background-color: #8e44ad;
}

.school4-icon {
  background-image: url('images/pabloromanlogo.jpg'); 
  background-color: #2980b9;
}

.timeline-content h2 {
  margin: 0;
  font-size: 16px;
  color: #e0e0e0;
}

.timeline-content span {
  font-size: 14px;
  color: #05f5f8;
}

.timeline-content p {
  margin: 5px 0 0;
  font-size: 14px;
  color: #b0b0b0;
}

.about-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  align-items: center; 
  padding: 20px;
}

/* Profile image: ambient glow (no border) */
.profile-image {
  position: relative;
  display: inline-block;
  border-radius: 18px;
  overflow: visible;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Soft cyan/teal aura behind the image (not a border) */
.profile-image::before {
  content: '';
  position: absolute;
  inset: -16px; /* how far the glow extends */
  border-radius: 26px;
  background: radial-gradient(60% 60% at 25% 15%, rgba(5, 245, 248, 0.28), rgba(4, 197, 200, 0.18) 35%, transparent 70%);
  filter: blur(22px);
  z-index: -1;
  pointer-events: none;
}

.profile-image:hover {
  transform: translateY(-3px) scale(1.01);
}

.profile-image img {
  width: 260px;
  height: 335px;
  object-fit: cover;
  display: block;
  border: none; /* remove cyan border */
  border-radius: 16px; /* rounded corners matching aura */
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.55); /* depth without border */
}


.about-name {
  font-size: 28px;
  color: #05f5f8;
  margin: 0 0 10px 0;
  text-shadow: 0 0 15px rgba(5, 245, 248, 0.4);
}

.social-icons {
  display: flex;
  gap: 10px; 
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #05f5f8, #04c5c8); 
  color: #000;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 14px;
  box-shadow: 0 4px 15px rgba(5, 245, 248, 0.3);
}

.social-icon:hover {
  background: linear-gradient(135deg, #04c5c8, #05f5f8);
  transform: translateY(-3px) scale(1.1);
  box-shadow: 0 6px 25px rgba(5, 245, 248, 0.5);
}

.about-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-info p {
  max-width: 600px;
  text-align: justify;
  margin: 10px 0;
  color: #e0e0e0;
}

.button-container {
  display: flex;
  gap: 10px; 
  margin-top: 15px;
  justify-content: flex-start; 
  flex-wrap: wrap; 
}

.download-btn,
.downloadresume-btn {
  display: inline-block;
  text-align: center;
  padding: 10px 20px;
  background: linear-gradient(135deg, #05f5f8, #04c5c8);
  color: #000;
  text-decoration: none;
  border-radius: 20px;
  transition: all 0.3s ease;
  margin-top: 0;
  font-family: inherit;
  white-space: nowrap; 
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(5, 245, 248, 0.3);
}

.download-btn:hover,
.downloadresume-btn:hover {
  background: linear-gradient(135deg, #04c5c8, #05f5f8);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(5, 245, 248, 0.5);
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  background: rgba(25, 25, 50, 0.95);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(5, 245, 248, 0.3);
  margin: auto;
  padding: 20px;
  border-radius: 10px;
  width: 80%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 10px 40px rgba(5, 245, 248, 0.2);
}

.close {
  color: #05f5f8;
  float: right;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover {
  color: #04c5c8;
  text-shadow: 0 0 10px rgba(5, 245, 248, 0.5);
}

#cvEmailInput,
#resumeEmailInput {
  width: 95%;
  padding: 10px;
  margin-top: 10px;
  margin-bottom: 10px;
  border-radius: 20px;
  background: rgba(5, 245, 248, 0.1);
  border: 1px solid rgba(5, 245, 248, 0.3);
  color: #e0e0e0;
  font-size: 14px;
  box-sizing: border-box;
  outline: none;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
}

#cvEmailInput:focus,
#resumeEmailInput:focus {
  border: 1px solid #05f5f8;
  box-shadow: 0 0 15px rgba(5, 245, 248, 0.3);
  background: rgba(5, 245, 248, 0.15);
}

#cvRequestForm textarea,
#resumeRequestForm textarea {
  width: 90%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid rgba(5, 245, 248, 0.3);
  border-radius: 20px;
  background: rgba(5, 245, 248, 0.1);
  color: #e0e0e0;
  font-size: 14px;
  outline: none;
  resize: none;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
}

#cvRequestForm textarea:focus,
#resumeRequestForm textarea:focus {
  border: 1px solid #05f5f8;
  box-shadow: 0 0 15px rgba(5, 245, 248, 0.3);
  background: rgba(5, 245, 248, 0.15);
  outline: none;
}

#cvRequestBtn,
#resumeRequestBtn {
  padding: 10px 20px;
  background: linear-gradient(135deg, #05f5f8, #04c5c8);
  border-radius: 20px;
  color: #000;
  border: none;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(5, 245, 248, 0.3);
}

#cvRequestBtn:hover,
#resumeRequestBtn:hover {
  background: linear-gradient(135deg, #04c5c8, #05f5f8);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(5, 245, 248, 0.5);
}

#connect-section {
  margin: 0 auto;
  overflow: hidden;
}

.right-panel {
  box-sizing: border-box;
  padding-top: 15px;
  margin-bottom: 50px;
}

#feedbackForm {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#feedbackForm input,
#feedbackForm textarea {
  width: 60%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid rgba(5, 245, 248, 0.3);
  border-radius: 20px;
  background: rgba(5, 245, 248, 0.1);
  color: #e0e0e0;
  font-size: 14px;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
}

#feedbackForm textarea {
  resize: none;
  height: 100px;
}

#feedbackForm input::placeholder,
#feedbackForm textarea::placeholder {
  font-family: 'Poppins', sans-serif;
  color: #b0b0b0;
}

#feedbackForm input:focus,
#feedbackForm textarea:focus {
  border: 1px solid #05f5f8;
  outline: none;
  box-shadow: 0 0 15px rgba(5, 245, 248, 0.3);
  background: rgba(5, 245, 248, 0.15);
}

#feedbackForm button {
  background: linear-gradient(135deg, #05f5f8, #04c5c8);
  color: #000;
  border: none;
  padding: 10px 25px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(5, 245, 248, 0.3);
}

#feedbackForm button:hover {
  background: linear-gradient(135deg, #04c5c8, #05f5f8);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(5, 245, 248, 0.5);
}

#feedbackForm .stars {
  display: flex;
  gap: 5px;
  margin-bottom: 25px;
  font-size: 2rem;
  color: #555;
  cursor: pointer;
  justify-content: center;
}

#feedbackForm .stars i.fa-solid {
  color: #05f5f8;
  text-shadow: 0 0 10px rgba(5, 245, 248, 0.5);
  transition: all 0.3s ease;
}

#feedbackForm .stars i.hovered {
  color: #05f5f8;
  text-shadow: 0 0 15px rgba(5, 245, 248, 0.7);
  transform: scale(1.1);
}

/* CTA Container Styles */
.cta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin: 40px 0;
  padding: 30px;
  background: rgba(5, 245, 248, 0.05);
  border-radius: 20px;
  border: 1px solid rgba(5, 245, 248, 0.2);
}

.hire-me-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #05f5f8, #04c5c8);
  color: #000;
  text-decoration: none;
  padding: 15px 40px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 18px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(5, 245, 248, 0.4);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hire-me-btn:hover {
  background: linear-gradient(135deg, #04c5c8, #05f5f8);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(5, 245, 248, 0.6);
  color: #000;
}

.hire-me-btn i {
  font-size: 20px;
}

.contact-options {
  display: flex;
  gap: 20px;
  margin-top: 10px;
}

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #05f5f8;
  text-decoration: none;
  padding: 10px 20px;
  border: 1px solid rgba(5, 245, 248, 0.3);
  border-radius: 25px;
  transition: all 0.3s ease;
  font-weight: 500;
}

.contact-link:hover {
  background: rgba(5, 245, 248, 0.1);
  border-color: #05f5f8;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(5, 245, 248, 0.3);
  color: #05f5f8;
}

.contact-form-section {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid rgba(5, 245, 248, 0.2);
}

.contact-form-section h3 {
  text-align: center;
  color: #05f5f8;
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: 600;
}

/* Update contact form styles */
#contactForm {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#contactForm input,
#contactForm textarea {
  width: 60%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid rgba(5, 245, 248, 0.3);
  border-radius: 20px;
  background: rgba(5, 245, 248, 0.1);
  color: #e0e0e0;
  font-size: 14px;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
}

#contactForm textarea {
  resize: none;
  height: 120px;
}

#contactForm input::placeholder,
#contactForm textarea::placeholder {
  font-family: 'Poppins', sans-serif;
  color: #b0b0b0;
}

#contactForm input:focus,
#contactForm textarea:focus {
  border: 1px solid #05f5f8;
  outline: none;
  box-shadow: 0 0 15px rgba(5, 245, 248, 0.3);
  background: rgba(5, 245, 248, 0.15);
}

#contactForm button {
  background: linear-gradient(135deg, #05f5f8, #04c5c8);
  color: #000;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(5, 245, 248, 0.3);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
}

#contactForm button:hover {
  background: linear-gradient(135deg, #04c5c8, #05f5f8);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(5, 245, 248, 0.5);
}

/* Lazy loading styles */
img.lazy {
  opacity: 0;
  transition: opacity 0.3s;
}

img.loaded {
  opacity: 1;
}

section {
  padding: 20px 20px;
  position: relative;
}

/* Add subtle animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.skill-card, .timeline-item, .project-card {
  animation: fadeInUp 0.6s ease-out;
}

/* Add some glow effects */
.skill-card:hover,
.timeline-item:hover,
.project-card:hover {
  position: relative;
}

/* Keep a stronger glow for project cards */
.project-card:hover::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #05f5f8, #04c5c8, #05f5f8);
  border-radius: inherit;
  z-index: -1;
  opacity: 0.18;          /* softer glow */
  filter: blur(5px);      /* smaller blur */
}

/* Much subtler glow for Knowledge (skills) and Education timeline */
.skill-card:hover::before,
.timeline-item:hover::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: linear-gradient(45deg, #05f5f8, #04c5c8);
  border-radius: inherit;
  z-index: -1;
  opacity: 0.12;          /* very subtle */
  filter: blur(4px);      /* minimal glow */
}

.projects-section {
  padding: 64px 32px;
  text-align: center;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin: 32px auto 0 auto;
  width: 90%;
  max-width: 1200px;
}

.project-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(5, 245, 248, 0.2);
  box-shadow: 0 4px 20px rgba(5, 245, 248, 0.1);
  transition: all 0.3s ease;
  background: rgba(25, 25, 50, 0.8);
  backdrop-filter: blur(10px);
}

.project-card img {
  width: 100%;
  height: 240px; 
  object-fit: cover;
  filter: brightness(0.9) contrast(1.1);
}

.project-card:hover {
  transform: scale(1.01) translateY(-2px);
  box-shadow: 0 6px 18px rgba(5, 245, 248, 0.2);
  border-color: rgba(5, 245, 248, 0.35);
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(135deg, rgba(5, 245, 248, 0.8), rgba(4, 197, 200, 0.8));
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 15px;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

/* Project overlay buttons container */
.project-buttons {
  display: flex;
  gap: 12px;
  flex-direction: column;
  align-items: center;
}

.project-details-btn, .project-inspect-btn {
  padding: 12px 24px;
  background: rgba(0, 0, 0, 0.8);
  color: #05f5f8;
  border: 2px solid #05f5f8;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
}

.project-details-btn:hover, .project-inspect-btn:hover {
  background: #05f5f8;
  color: #000;
  transform: scale(1.05);
}

.project-title {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 600;
  color: #e0e0e0;
  padding: 0 10px 10px 10px;
}

/* Carousel Styles */
.project-carousel {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.carousel-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.carousel-slide {
  display: none;
  width: 100%;
  height: 100%;
}

.carousel-slide.active {
  display: block;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.9) contrast(1.1);
  transition: all 0.3s ease;
}

/* Special styles for portrait-oriented images (mobile apps) */
.portrait-container {
  background-color: #000000; /* Black background */
  display: flex;
  justify-content: center;
}

.portrait-slide img {
  width: auto;
  max-width: 70%;
  height: 100%;
  object-fit: contain; /* Preserve aspect ratio */
}

/* Mixed orientation container for projects with both portrait and landscape images */
.mixed-orientation-container {
  background-color: #000000;
  display: flex;
  justify-content: center;
}

/* Portrait images in mixed container */
.mixed-portrait-slide img {
  width: auto;
  max-width: 70%;
  height: 100%;
  object-fit: contain;
}

/* Landscape images in mixed container */
.mixed-landscape-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-prev, .carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: #05f5f8;
  border: 2px solid #05f5f8;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 18px;
  font-weight: bold;
  border-radius: 50%;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 2;
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  font-family: 'Arial', monospace;
  line-height: 0;
  text-align: center;
  padding: 0;
  margin: 0;
  vertical-align: middle;
  /* Firefox-specific centering */
  -moz-box-align: center;
  -moz-box-pack: center;
  /* Additional cross-browser centering */
  place-items: center;
  place-content: center;
}

.carousel-prev {
  left: 10px;
}

.carousel-next {
  right: 10px;
}

.project-card:hover .carousel-prev,
.project-card:hover .carousel-next {
  opacity: 1;
}

.carousel-prev:hover, .carousel-next:hover {
  background: rgba(5, 245, 248, 0.9);
  color: #000;
  border-color: #05f5f8;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 25px rgba(5, 245, 248, 0.4);
}

.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: #05f5f8;
  box-shadow: 0 0 10px rgba(5, 245, 248, 0.5);
}

.dot:hover {
  background: rgba(5, 245, 248, 0.8);
}

.project-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
  padding: 0;
  overflow: hidden; /* Hide outer scroll; inner content will scroll */
}

.project-modal-content {
  background: rgba(25, 25, 50, 0.95);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(5, 245, 248, 0.3);
  margin: 30px auto;
  padding: 25px;
  border-radius: 16px;
  max-width: 550px;
  width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 40px rgba(5, 245, 248, 0.2);
  height: clamp(520px, 80vh, 640px); /* Consistent, reduced height */
  overflow-y: auto; /* Scroll within modal */
  padding-top: calc(25px + env(safe-area-inset-top, 0px));
  /* Make room for consistent scrollbars */
  scrollbar-gutter: stable both-edges;  /* Reserve space for scrollbar (FF/Chromium) */
  background-clip: padding-box;         /* Keep background inside padding */
}

/* WebKit/Blink (Chrome, Edge, Safari) */
.project-modal-content::-webkit-scrollbar {
  width: 10px;
}
.project-modal-content::-webkit-scrollbar-track {
  background: linear-gradient(180deg, rgba(5, 245, 248, 0.06), rgba(4, 197, 200, 0.06));
  border-radius: 12px;
}
.project-modal-content::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #05f5f8, #04c5c8);
  border-radius: 12px;
  border: 2px solid rgba(25, 25, 50, 0.95); /* creates a gap look */
  box-shadow: 0 0 10px rgba(5, 245, 248, 0.35);
}
.project-modal-content::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #04c5c8, #05f5f8);
  box-shadow: 0 0 14px rgba(5, 245, 248, 0.5);
}

/* Firefox-only: keep scrollbar inside rounded corners */
@-moz-document url-prefix() {
  .project-modal-content {
    /* Add a bit of space so the thumb doesn't sit on the corner curve */
    padding-right: 12px;
    /* Clip painting (including scrollbar) to the rounded shape */
    clip-path: inset(0 round 16px);
  /* Thinner scrollbar only on Firefox */
  scrollbar-width: thin;
  scrollbar-color: #05f5f8 rgba(5, 245, 248, 0.15);
  }
}

/* Ensure the body doesn't double-scroll when a modal is open (optional helper) */
body.modal-open {
  overflow: hidden;
}

.project-modal-content img {
  width: 100%;
  max-height: 45vh; /* Keep image within modal height */
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid rgba(5, 245, 248, 0.2);
  margin-bottom: 24px;
  filter: brightness(1.1) contrast(1.1);
}

/* Demo GIF container for portrait mode */
.demo-gif-container {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #000000;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 24px;
}

.portrait-demo-gif {
  width: auto;
  max-width: 60%;
  height: auto;
  max-height: clamp(280px, 48vh, 420px);
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid rgba(5, 245, 248, 0.2);
  box-shadow: 0 0 20px rgba(5, 245, 248, 0.3);
}

.project-close {
  position: absolute;
  top: 1px;
  right: 10px;
  font-size: 32px;
  font-weight: bold;
  color: #05f5f8;
  cursor: pointer;
  transition: all 0.3s ease;
}

.project-close:hover {
  color: #04c5c8;
  text-shadow: 0 0 15px rgba(5, 245, 248, 0.5);
  transform: scale(1.1);
}

.project-modal-btn {
  display: inline-block;
  margin: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #05f5f8, #04c5c8);
  color: #000;
  border-radius: 20px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(5, 245, 248, 0.3);
}

.project-modal-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.project-modal-btn:hover {
  background: linear-gradient(135deg, #04c5c8, #05f5f8);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(5, 245, 248, 0.5);
}

.download-btn {
  background: linear-gradient(135deg, #05f5f8, #0482c5);
  color: #000;
  font-weight: 700;
  position: relative;
  overflow: hidden;
  padding-left: 40px;
}

.download-btn i {
  margin-right: 8px;
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.3s ease;
}

.download-btn:hover i {
  transform: translateY(-50%) scale(1.2);
}

/* === Non-destructive fix: prevent download icon overlapping text inside project modals === */
/* Keeps original button sizing & look; only adjusts internal layout for icon + label */
.project-modal .download-btn {
  display: inline-flex;            /* place icon and text on one line */
  align-items: center;             /* vertical center */
  gap: 8px;                        /* spacing between icon and text */
  padding: 10px 24px;              /* balanced horizontal padding */
  padding-left: 24px;              /* was 40px due to absolute icon; reduced */
  position: relative;              /* retain for any shadows/effects */
  white-space: nowrap;             /* keep text on single line to match design */
}

.project-modal .download-btn i {
  position: static !important;     /* override previous absolute positioning */
  left: auto; top: auto;           /* neutralize old offsets */
  transform: none !important;      /* remove translateY overlap */
  margin: 0;                       /* rely on gap for spacing */
  line-height: 1;                  /* crisp alignment */
  font-size: 0.95em;               /* slightly tune size relative to text */
}

.project-modal .download-btn:hover i {
  transform: scale(1.15) !important; /* simple hover scale effect */
}

/* Slightly tighten on very narrow screens without stretching full width */
@media (max-width: 420px) {
  .project-modal .download-btn {
    gap: 6px;
    padding: 10px 20px;
  }
  .project-modal .download-btn i { font-size: 0.9em; }
}

.project-modal-content h2 {
  margin-top: 0;
  font-size: clamp(18px, 2.5vw + 10px, 24px);
  color: #05f5f8;
  text-align: left;
  text-shadow: 0 0 10px rgba(5, 245, 248, 0.3);
  padding-right: 56px; /* keep clear of the close button */
  line-height: 1.25;
  word-break: break-word;
  hyphens: auto;
}

.project-modal-content p {
  margin: 16px 0;
  color: #e0e0e0;
  font-size: 15px;
  text-align: left;
}

.project-modal-content .tag {
  background: rgba(5, 245, 248, 0.2);
  color: #05f5f8;
  border: 1px solid rgba(5, 245, 248, 0.4);
  padding: 4px 8px;
  margin-right: 6px;
  margin-bottom: 8px; /* Add space when tags wrap to the next line */
  border-radius: 4px;
  display: inline-block;
  font-weight: 500;
  vertical-align: middle; /* Prevent visual overlap on line wraps */
}

.project-modal-content ul li {
  text-align: left;
  color: #e0e0e0;
}

/* Installation guide styling */
.installation-guide {
  margin-top: 20px;
  padding: 20px;
  background-color: rgba(5, 245, 248, 0.05);
  border-radius: 12px;
  border-left: 3px solid #05f5f8;
}

.installation-guide ol {
  padding-left: 25px;
  list-style-type: decimal;
}

.installation-guide li {
  margin-bottom: 10px;
  color: #e0e0e0;
}

.project-modal-content code {
  display: inline-block;
  background-color: rgba(0, 0, 0, 0.7);
  border-radius: 4px;
  padding: 3px 6px;
  font-family: 'Courier New', monospace;
  color: #05f5f8;
  font-size: 0.9em;
  border: 1px solid rgba(5, 245, 248, 0.2);
  word-break: break-word;
}

/* Mobile responsiveness for project modals */
@media (max-width: 768px) {
  .project-modal-content {
    margin: 20px auto;
    padding: 20px;
    max-height: calc(100vh - 40px);
    width: 95%;
    /* Ensure a consistent, slightly smaller height on tablets/phones */
    height: clamp(420px, 82vh, 560px);
  }
  
  .project-close {
    /* Keep the close button always visible on scroll */
    position: fixed;
    top: max(10px, env(safe-area-inset-top, 0px));
    right: 12px;
    z-index: 10000;
  }
  
  /* Ensure the title never runs under the fixed close button */
  .project-modal-content h2 {
    padding-right: 76px;
  }
  
  .project-modal-content img {
    max-height: 38vh;
    margin-bottom: 20px;
  }

  .portrait-demo-gif {
    max-height: clamp(240px, 44vh, 360px);
  }
}

@media (max-width: 480px) {
  .project-modal-content {
    margin: 15px auto;
    padding: 15px;
    max-height: calc(100vh - 30px);
    /* Slightly tighter on small phones */
    height: clamp(380px, 80vh, 520px);
  }
  
  .project-modal-content h2 {
  font-size: clamp(18px, 5.2vw, 22px);
    margin-bottom: 12px;
    padding-top: 10px;
  padding-right: 76px; /* extra breathing room from the close button */
  word-break: break-word;
  hyphens: auto;
  }

  .project-modal-content img {
    max-height: 34vh;
  }

  .portrait-demo-gif {
    max-height: clamp(220px, 42vh, 340px);
  }
}

footer {
  margin-top: auto;
  background: linear-gradient(135deg, rgba(5, 245, 248, 0.9), rgba(4, 197, 200, 0.9));
  backdrop-filter: blur(10px);
  padding: 10px;
  font-size: 0.9rem;
  color: #000;
  border-top: 1px solid rgba(5, 245, 248, 0.3);
  box-shadow: 0 -4px 20px rgba(5, 245, 248, 0.2);
}

.footer-container {
  display: flex;
  justify-content: center; 
  align-items: center;
  position: relative;
}

.center-text {
  flex: 1;
  text-align: center;
  font-weight: 600;
}

.right-text {
  position: absolute;
  right: 10px;
  display: flex;
  align-items: center;
  font-weight: 600;
}

footer a {
  color: #000;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #333;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

footer small img {
  height: 20px;
  vertical-align: middle;
  border: none;
}

@media (max-width: 1024px) {
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  nav {
    display: none;
  }

nav.active {
  display: flex;
  position: fixed;
  padding-left: 20px;
  top: 0;
  right: 0;
  width: 50vw;
  height: 60vh;
  background: rgba(20, 20, 40, 0.95);
  backdrop-filter: blur(15px);
  border-left: 1px solid rgba(5, 245, 248, 0.3);
  justify-content: center;
  align-items: center;
  z-index: 999;
  box-shadow: -4px 0 20px rgba(5, 245, 248, 0.2);
}

  nav ul {
    flex-direction: column;
    gap: 20px;
    width: 100%;
    text-align: center;
  }

  nav ul li {
    padding: 12px 0;
    font-size: 15px;
    border-top: none;
  }

  .hamburger {
    display: flex;
    margin-left: auto;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .certificates-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline {
    padding: 20px;
  }

  .timeline-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 85%;
  }

  .timeline-icon {
    margin: 0 0 10px 0;
  }

  .timeline-content h2 {
    font-size: 14px;
  }

  .timeline-content span,
  .timeline-content p {
    font-size: 13px;
  }

  .about-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    padding: 10px;
  }

  .profile-image img {
    width: 160px;
    height: 235px;
    border-radius: 12px;
  }

  .about-name {
    font-size: 24px;
  }

  .about-info p {
    max-width: 100%;
    font-size: 14px;
    text-align: center;
  }

  .social-icons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .social-icons a i {
    font-size: 15px;
  }

  .button-container {
    justify-content: center;
    gap: 15px;
  }

  .download-btn,
  .downloadresume-btn {
    padding: 10px 16px;
    font-size: 0.95rem;
  }

  #connect-section {
    flex-direction: column;
  }

  #connect-section p {
    font-size: 1rem;
    text-align: center;
    margin-bottom: 20px;
  }

  /* CTA Section Mobile Styles */
  .cta-container {
    margin: 30px 0;
    padding: 20px;
  }
  
  .hire-me-btn {
    padding: 12px 30px;
    font-size: 16px;
  }
  
  .contact-options {
    flex-direction: row;
    gap: 15px;
  }
  
  .contact-link {
    padding: 8px 15px;
    font-size: 14px;
  }
  
  .contact-form-section h3 {
    font-size: 20px;
  }

  /* Widen contact form inputs on mobile */
  #contactForm input,
  #contactForm textarea {
    width: 95%;
  }

  .footer-container {
    justify-content: space-between;
  }
  .right-text {
    position: static;
    margin-left: 10px;
  }
}

@media (max-width: 480px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  nav.active {
    width: 70vw;
  }

  .certificates-grid {
    grid-template-columns: 1fr;
  }

  .modal-content {
    width: 90%;
    padding: 15px;
  }
  
  .connect-section p {
    font-size: 14px;
    text-align: center;
  }
  
  /* CTA Section Small Mobile Styles */
  .contact-options {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }
  
  .contact-link {
    width: 200px;
    justify-content: center;
  }
  
  .hire-me-btn {
    width: 220px;
    justify-content: center;
  }

  .footer-container {
    flex-direction: column;
    position: static;
    text-align: center;
  }

  .right-text {
    position: static;
    margin-top: 5px;
    justify-content: center;
  }
}

  /* Scroll to top button */
  .scroll-to-top {
    position: fixed;
    bottom: 100px; /* Increased from 30px to prevent footer overlap */
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #05f5f8, #04c5c8);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000; /* Higher z-index */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(5, 245, 248, 0.4);
    border: 1px solid rgba(5, 245, 248, 0.3);
  }
  
  .scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  
  .scroll-to-top:hover {
    background: linear-gradient(135deg, #04c5c8, #05f5f8);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 30px rgba(5, 245, 248, 0.6);
  }
  
  .scroll-to-top i {
    font-size: 1.4rem;
    font-weight: bold;
    transition: all 0.3s ease;
  }
  
  /* Animation for the arrow */
  @keyframes bounceUp {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-8px);}
    60% {transform: translateY(-4px);}
  }
  
  .scroll-to-top:hover i {
    animation: bounceUp 1.2s ease infinite;
    transform: scale(1.1);
  }

  /* Responsive adjustments */
  @media (max-width: 768px) {
    .scroll-to-top {
      bottom: 80px; /* Less spacing on mobile */
      right: 20px;
      width: 50px;
      height: 50px;
    }
    
    .scroll-to-top i {
      font-size: 1.2rem;
    }
  }

/* Image Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  animation: fadeIn 0.3s ease;
}

.lightbox-modal.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

.lightbox-content {
  position: relative;
  max-width: 85%;
  max-height: 85%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 80px;
  background-color: transparent;
  flex-direction: column;
  text-align: center; /* Center the content */
}

.lightbox-close {
  position: absolute;
  top: -50px;
  right: 0;
  background: rgba(0, 0, 0, 0.8);
  color: #05f5f8;
  border: 2px solid #05f5f8;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  font-family: 'Arial', sans-serif;
  line-height: 0;
  text-align: center;
  padding: 0;
  margin: 0;
  vertical-align: middle;
  /* Firefox-specific centering */
  -moz-box-align: center;
  -moz-box-pack: center;
  /* Additional cross-browser centering */
  place-items: center;
  place-content: center;
}

.lightbox-close:hover {
  background: rgba(5, 245, 248, 0.9);
  color: #000;
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(5, 245, 248, 0.4);
}

#lightbox-image {
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(5, 245, 248, 0.3);
  border: 2px solid rgba(5, 245, 248, 0.2);
  animation: zoomIn 0.3s ease;
}

/* Special portrait mode for mobile app screenshots in lightbox */
#lightbox-image.portrait-image {
  max-width: 35%;
  height: auto;
  background-color: #000;
  padding: 20px;
  box-sizing: content-box;
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(5, 245, 248, 0.5);
  /* Add device-like frame */
  border: 8px solid #222;
  outline: 2px solid rgba(5, 245, 248, 0.3);
}

.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: #05f5f8;
  border: 2px solid #05f5f8;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  font-family: 'Arial', sans-serif;
  line-height: 0;
  text-align: center;
  padding: 0;
  margin: 0;
  vertical-align: middle;
  /* Firefox-specific centering */
  -moz-box-align: center;
  -moz-box-pack: center;
  /* Additional cross-browser centering */
  place-items: center;
  place-content: center;
}

.lightbox-prev {
  left: -70px;
}

.lightbox-next {
  right: -70px;
}

.lightbox-prev:hover, .lightbox-next:hover {
  background: rgba(5, 245, 248, 0.9);
  color: #000;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 25px rgba(5, 245, 248, 0.4);
}

.lightbox-caption {
  position: absolute;
  bottom: -60px;
  left: 0;
  right: 0;
  color: #fff;
  text-align: center;
  font-family: 'Poppins', sans-serif;
}

#lightbox-title {
  display: block;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #05f5f8;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
  background: rgba(0, 0, 0, 0.8);
  padding: 8px 16px;
  border-radius: 12px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(5, 245, 248, 0.3);
}

#lightbox-counter {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  background: rgba(0, 0, 0, 0.7);
  padding: 6px 12px;
  border-radius: 15px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(5, 245, 248, 0.3);
  display: inline-block;
  margin-top: 5px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes zoomIn {
  from { 
    opacity: 0; 
    transform: scale(0.8); 
  }
  to { 
    opacity: 1; 
    transform: scale(1); 
  }
}

/* Responsive lightbox */
@media (max-width: 768px) {
  .lightbox-content {
    max-width: 95%;
    max-height: 90%;
    margin: 0 40px;
  }
  
  .lightbox-prev {
    left: -50px;
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  
  .lightbox-next {
    right: -50px;
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  
  .lightbox-close {
    top: -40px;
    font-size: 30px;
  }
  
  .lightbox-caption {
    bottom: -50px;
  }
  
  #lightbox-title {
    font-size: 16px;
  }
  
  #lightbox-counter {
    font-size: 14px;
    padding: 4px 10px;
  }
  
  .project-buttons {
    gap: 8px;
  }
  
  .project-details-btn, .project-inspect-btn {
    font-size: 12px;
    padding: 10px 18px;
    min-width: 120px;
  }
}

/* Mobile responsiveness for lightbox */
@media (max-width: 768px) {
  .lightbox-content {
    max-width: 95%;
    max-height: 90%;
    margin: 0 40px;
  }
  
  .lightbox-close {
    top: -45px;
    right: -5px;
    width: 35px;
    height: 35px;
    font-size: 18px;
  }
  
  .lightbox-prev, .lightbox-next {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }
  
  .lightbox-prev {
    left: -55px;
  }
  
  .lightbox-next {
    right: -55px;
  }
  
  .lightbox-counter {
    font-size: 16px;
    bottom: -35px;
  }
  
  .lightbox-title {
    font-size: 18px;
    bottom: -60px;
  }
}

@media (max-width: 480px) {
  .lightbox-content {
    max-width: 98%;
    max-height: 85%;
    margin: 0 10px;
  }
  
  .lightbox-close {
    top: -40px;
    right: 0;
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
  
  .lightbox-prev {
    left: -45px;
    width: 35px;
    height: 35px;
    font-size: 18px;
  }
  
  .lightbox-next {
    right: -45px;
    width: 35px;
    height: 35px;
    font-size: 18px;
  }
  
  .lightbox-counter {
    font-size: 14px;
    bottom: -30px;
  }
  
  .lightbox-title {
    font-size: 16px;
    bottom: -50px;
  }
  
  #lightbox-image {
    border-radius: 8px;
  }
}

@media (max-width: 360px) {
  .lightbox-content {
    max-width: 100%;
    max-height: 80%;
    margin: 0 5px;
  }
  
  .lightbox-close {
    top: -35px;
    width: 30px;
    height: 30px;
    font-size: 14px;
  }
  
  .lightbox-prev {
    left: -40px;
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
  
  .lightbox-next {
    right: -40px;
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
  
  .lightbox-counter {
    font-size: 12px;
    bottom: -25px;
  }
  
  .lightbox-title {
    font-size: 14px;
    bottom: -40px;
    padding: 0 10px;
  }
}

