body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
  background-color: #111;
}

body {
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

p {
  color:aliceblue;
}

.no-scroll-content {
  overflow: hidden;
}

.no-scroll-lightbox {
  overflow: hidden;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  background-color: #333;
  z-index: 10;
}

.menu-icon {
  cursor: pointer;
  width: 38px;
  height: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.menu-icon span {
  display: block;
  width: 100%;
  height: 4px;
  background-color: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.fullscreen-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #111;
  display: flex;
  justify-content: flex-start; 
  align-items: flex-start; 
  padding-left: 10%; 
  padding-top: 10%; 
  transform: translateY(-100%);
  transition: transform 0.5s ease;
  z-index: 5;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-size: 2rem;
  display: block;
  margin: 20px 0;
  transition: color 0.3s ease;
  position: relative; 
  padding-bottom: 10px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 200%; 
  height: 1px; 
  background-color: rgba(255, 255, 255, 0.2); 
  transition: width 0.3s ease, background-color 0.3s ease;
}

.nav-links a:hover {
  color: #f39c12; 
}

.nav-links a:hover::after {
  background-color: #f39c12; 
}

.menu-icon.active span:nth-child(1) {
  transform: rotate(-10deg) translateX(-3px) translateY(3px); 
}

.menu-icon.active span:nth-child(2) {
  transform: rotate(-43deg) scale(1.12) ;
}

.menu-icon.active span:nth-child(3) {
  transform: rotate(-10deg) translateX(3px) translateY(-3px);
}

.fullscreen-nav.active {
  transform: translateY(0);
}

.navbar-name {
  flex: 1;
  text-align: center;
  font-size: 2.6rem; 
  font-weight: 400; 
  color: white; 
  font-family: 'Lato', Arial, sans-serif;
  letter-spacing: 3px; 
  padding-right: 3.2%;
}

.navbar-name a {
  text-decoration: none;
  color: inherit;
}

.navbar-banner {
  position: fixed;
  top: 50px; 
  left: 0;
  width: 100%;
  text-align: center;
  background-color: #333; 
  color: #ddd; 
  font-size: 1rem; 
  font-family: 'Lato', Arial, sans-serif;
  letter-spacing: 2px;
  padding: 10px 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 9;
  transition: transform 0.3s ease-in-out;
}

.navbar-banner.hidden {
  transform: translateY(-100%);
}

/* Footer */
footer {
  background-color: #0f4c75;
  color: #ddd;
  text-align: center;
  font-family: Arial, sans-serif;
  z-index: 5;
}

.footer-panel {
  align-items: center;
  background-color: #0f4c75;
  padding: 10px 0;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin: 10px 0;
}

.footer-links a {
  color: #ddd;
  text-decoration: none;
  font-size: 1.4rem;
  letter-spacing: 2px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #f39c12;
}

.footer-copyright {
  text-align: center;
  font-size: 1rem;
  margin: 5px 0;
  letter-spacing: 1px;
}

/* News Page */
.news-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 50px;
  padding-top: 180px;
  box-sizing: border-box;
  animation: aboutFadeIn 1s ease both;
}

.news-header {
  text-align: left;
  max-width: 1300px;
  width: 100%;
  margin-bottom: 30px; 
  margin-top: -50px;
}

.news-header h1 {
  font-size: 4rem;
  color: #ddd;
  margin: 0;
}

.fullscreen-nav.active ~ main .news-header {
  display: none; 
}

.content-container {
  display: grid;
  grid-template-columns: repeat(3, 300px);
  justify-content: center;
  gap: 20px;
  padding: 30px 20px;
}

.content-box {
  position: relative;
  height: 400px;
  overflow: hidden;
  background-color: #222;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background-color 0.3s ease;
  cursor: pointer;
  z-index: 1;
  margin: 0;
}

.content-box:hover {
  transform: scale(1.05);
  background-color: #333;
}

.content-image {
  width: 100%;
  height: 60%; 
  overflow: hidden; 
}

.content-image img, .content-image video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0; 
}

.content-info {
  padding: 10px;
  text-align: center;
  color: #ddd;
}

.content-info h2 {
  margin: 10px 0 5px;
  font-size: 1.4rem;
}

.content-info p {
  font-size: 1rem;
  color: #ddd;
}

.expanded-overlay {
  display: none; 
  position: fixed;
  top: 0; 
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9999;
  background-color: rgba(0, 0, 0, 0.7); 
}

.expanded-overlay.active {
  display: block;
}

.expanded-content {
  position: absolute;
  top: 50%; 
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  max-height: 85vh;
  overflow-y: auto; 
  background-color: #222;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
  text-align: center;
}

.expanded-close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: #ddd;
  font-size: 5rem;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), -2px -2px 4px rgba(0, 0, 0, 0.8);
  z-index: 10000;
}

.expanded-close:hover {
  color: #f39c12;
}

.expanded-content h2 {
  font-size: 2rem;
  text-align: center;
}

.expanded-content p {
  font-size: 1.4rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  text-align: left;
}

.expanded-content .image-mosaic {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, 300px);
  justify-content: center;
  justify-items: center;
}

.expanded-content .content-details > img {
  width: 100%;
  height: auto;
  margin-bottom: 20px;
}

.expanded-content .image-mosaic img,
.expanded-content .image-mosaic video {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 5px;
  display: block;
  transition: transform 0.3s ease-in-out;
}

.expanded-content .image-mosaic img:hover,
.expanded-content .image-mosaic video:hover {
  transform: scale(1.05);
}

/* Overlay Images */
.expanded-content .overlay-image {
  width: 100%;
  max-width: 3000px; 
  margin: 0 auto 20px; 
  overflow: hidden;
}

.expanded-content .overlay-image img,
.expanded-content .overlay-image video {
  width: 100%; 
  height: 100%; 
  max-height: 60vh;
  object-fit: cover; 
  display: block;
  border-radius: 5px;
}

.news-container.blur,
.news-header.blur {
  filter: blur(10px);
  pointer-events: none;
}

.content-details {
  display: none;
  padding: 20px;
}

.image-mosaic img:hover,
.image-mosaic video:hover {
  transform: scale(1.05); 
}

.image-lightbox {
  display: none; 
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.8);
  z-index: 20000; 
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.image-lightbox.active {
  display: flex;
  overflow: hidden;
}

.image-lightbox.active + html,
.image-lightbox.active + body {
  overflow: hidden;
}

.image-lightbox img {
  max-width: 80vw; 
  max-height: 80vh; 
  border-radius: 5px;
  object-fit: contain; 
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: #ddd;
  font-size: 5rem;
  font-weight: bold;
  cursor: pointer;
  user-select: none;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), -2px -2px 4px rgba(0, 0, 0, 0.8);
}

.lightbox-close:hover {
  color: #f39c12;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 5rem;
  font-weight: bold;
  color: #ddd;
  padding: 0 10px;
  cursor: pointer;
  user-select: none;
  z-index: 3000; 
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), -2px -2px 4px rgba(0, 0, 0, 0.8);
}

.lightbox-arrow.left  {
  left: 25%;
  transform: translateX(-150%) translateY(-50%); 
}

.lightbox-arrow.right {
  right: 25%;
  transform: translateX(150%) translateY(-50%);
}

.lightbox-arrow:hover {
  color: #f39c12;
}

/* Orb Canvas */
#orb-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0; 
  pointer-events: none; 
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* About Page */
.about-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin: 50px; 
  padding-top: 110px; 
  z-index: 1;
  animation: aboutFadeIn 1s ease both;
}

.about-content {
  display: flex;
  align-items: flex-start;
  gap: 50px; 
  width: 100%;
  max-width: 1800px; 
}

.about-image {
  width: 500px; 
  height: 500px; 
  border-radius: 50%; 
  border: 8px solid #ffffff; 
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(255, 255, 255, 0.3);
  flex-shrink: 0; 
}

.about-image img {
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  object-position: 65% center; 
}

.about-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 1800px;
  color: #ddd;
}

.about-header {
  text-align: left;
  margin-bottom: 30px; 
}

.about-header h1 {
  font-size: 4rem;
  color: #ddd;
  margin: 0;
}

.about-text {
  text-align: justify; 
  font-size: 1.4rem;
  color: #ddd;
  line-height: 1.6;
  background: rgba(0,0,0,0.3); 
  border-radius: 10px; 
  box-shadow: 0 4px 20px rgba(0,0,0,0.5); 
  padding: 10px 40px; 
  transition: transform 0.3s ease, background-color 0.3s ease; 
}

.about-text:hover {
  transform: scale(1.05); 
  background-color: #333; 
}

@keyframes aboutFadeIn {
  from { 
    opacity: 0; 
    transform: translateY(10px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

/* Contact Page */
.contact-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 50px; 
  padding-top: 110px; 
  box-sizing: border-box;
  animation: aboutFadeIn 1s ease both;
}

.contact-content {
  display: flex;
  align-items: flex-start;
  gap: 50px; 
  width: 100%;
  max-width: 1300px;
}

.contact-image {
  width: 500px;
  height: 500px;
  border-radius: 50%;
  border: 8px solid #ffffff;
  overflow: hidden;
  box-shadow: 0 6px 15px rgba(255, 255, 255, 0.3);
  flex-shrink: 0; 
}

.contact-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 65% center;
}

.contact-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 920px;
  color: #ddd;
}

.contact-header {
  text-align: justify;
  margin-bottom: 30px; 
}

.contact-header h1 {
  font-size: 4rem;
  color: #ddd;
  margin: 0;
}

.contact-box {
  text-align: justify;
  font-size: 2rem;
  color: #ddd;
  line-height: 1.6;
  margin-bottom: 10px; 
}

.contact-box p {
  margin: 10px 0;
}

/* Center Email Address */
.contact-box p strong {
  display: block;
  text-align: center;
  margin: 15px 0;
  font-size: 2.6rem;
  color: #ffffff;
}

/* Social Logos */
.contact-social-container {
  display: flex;
  flex-direction: row;
  gap: 30px;
}

.contact-social-logo {
  width: 65px;
  height: 65px;
  transition: transform 0.3s ease;
}

.contact-social-logo:hover {
  transform: scale(1.15);
}

/* Speaking Page */
.speaking-container {
  display: flex;
  flex-direction: column;
  align-items: center; 
  justify-content: center;
  position: relative;
  margin: 50px;     
  padding-top: 180px;
  box-sizing: border-box;
  animation: aboutFadeIn 1s ease both;
}

.speaking-header {
  text-align: left;
  max-width: 1300px; 
  width: 100%;
  margin-bottom: 30px; 
  margin-top: -50px;
}

.speaking-header h1 {
  font-size: 4rem;
  color: #ddd;
  margin: 0;
}

.speaking-text {
  text-align: justify;
  font-size: 1.4rem;
  color: #ddd;
  max-width: 1550px;
  line-height: 1.6;
  background: rgba(0,0,0,0.3);
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5); 
  padding: 20px; 
  transition: transform 0.3s ease, background-color 0.3s ease;
  margin: 0;     
}

.speaking-list {
  list-style: none; 
  padding: 0; 
}

.speaking-list li {
  display: flex;
  align-items: center;
  flex-direction: row;
  background-color: #1d1d1d;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.5);
  margin-bottom: 20px;
  line-height: 1.5;
  transition: transform 0.3s ease, background-color 0.3s ease;
  overflow: hidden;
}

.speaking-list li img.speaking-img {
  width: 180px; 
  height: 160px; 
  margin: 15px; 
  object-fit: cover; 
  border-radius: 5px; 
}

.speaking-list li img.contain-img {
  object-fit: contain; 
}

.speaking-list li a {
  display: block;
  padding: 20px; 
  color: #ddd;
  text-decoration: none;
  flex-grow: 1; 
  transition: color 0.3s ease;
}

.speaking-list li p {
  margin: 5px 0;
  color: inherit; 
}

.speaking-list li p strong {
  color: #ddd; 
}

.speaking-list li:hover {
  transform: scale(1.05);
  background-color: #f39c12; 
}

.speaking-list li:hover a {
  color: #ddd; 
}

/* Index Page */
.index-container {
  position: relative;
  width: 100%;
  height: 100vh; 
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
  padding: 0px 0px;
}

.index-content {
  position: relative;
  max-width: 800px;
  text-align: center;
  color: #ddd;
  z-index: 2;
  padding: 40px;
  background: rgba(0,0,0,0.3);
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  animation: fadeIn 2s ease both;
}

.index-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 20px;
  z-index: 1;
  opacity: 0;           
  pointer-events: none;  
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 2s linear; 
}

.index-content.with-image::before {
  background-image: url('images/homepage_image.webp');
  animation: fadeInImage 10s linear forwards;
}

.index-content::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.6); 
  z-index: 2;
  border-radius: 20px;
}

.index-content h1,
.index-content p,
.index-content .index-button {
  position: relative; 
  z-index: 3; 
}

.index-content h1 {
  font-size: 4rem;
  margin-bottom: 20px;
  font-weight: 600;
  line-height: 1.2;
}

.index-content p {
  font-size: 1.4rem;
  margin-bottom: 30px;
  line-height: 1.6;
  color: #ddd;
}

.index-button {
  justify-content: center;
  align-items: center;
  display: inline-block;
  padding: 12px 30px;
  font-size: 1.2rem;
  background: #f39c12;
  color: #fff;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.index-button:hover {
  background: #d87f0f;
}

@keyframes fadeInImage {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Tech Skills Page */
.tech-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 180px;
  margin: 50px;
  box-sizing: border-box;
}

.tech-header {
  text-align: left;
  max-width: 1300px; 
  width: 100%;
  margin-bottom: 30px; 
  margin-top: -50px;
}

.tech-header h1 {
  font-size: 4rem;
  color: #ddd;
  margin: 0;
}

.tech-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px;
  background-size: cover;
  background-position: center;
  color: #ddd;
  width: 100%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  margin-bottom: 30px;
  overflow: hidden; 
}

.tech-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); 
  z-index: 1;
}

.tech-content {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0;
  width: 100%;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.tech-content.animate {
  opacity: 1;
  transform: translateY(0);
}

.tech-box {
  display: flex;
  flex-direction: row-reverse; 
  background: rgba(0, 0, 0, 0.4);
  padding: 20px;
  border-radius: 10px;
  width: 60%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
  min-height: 200px; 
  position: relative; 
}

.tech-text {
  flex: 0 0 60%; 
  text-align: left;
  font-size: 1.6rem;
  color: #ddd;
  border-radius: 10px;
  padding: 0 20px;
}

.tech-text p {
  font-size: 1.4rem;
}

.tech-skills {
  flex: 0 0 40%; 
  display: flex;
  flex-direction: row; 
  align-items: flex-start;
  padding: 0 10px; 
  box-sizing: border-box;
}

.skill-divider {
  width: 4px; 
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  margin: 0 30px;
}

.skills-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 1.2rem;
  color: #ddd;
  text-align: left;
  line-height: 1.8;
}

.skills-list li {
  position: relative;
  padding: 0 12px; 
  margin: 0;
  list-style: none;
  line-height: 1.8;
  color: #ddd;
  margin-bottom: 20px;
}

.skills-list li::before, .skills-list li::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0; 
  width: 2px;
  background: rgba(255,255,255,0.3);
  opacity: 0; 
}

.tech-media {
  flex: 1;
  max-width: 45%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.tech-media img,
.tech-media video {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.tech-section:nth-child(even) .tech-box {
  flex-direction: row;
}

.tech-section:nth-child(odd) .tech-skills {
  flex-direction: row-reverse;
}

.tech-section:nth-child(odd) .skills-list li {
  text-align: right;
}

.tech-section:nth-child(even) .skills-list li::before {
  left: 0;                    
  opacity: 1;                
}

.tech-section:nth-child(odd) .skills-list li::after {
  right: 0;                   
  opacity: 1;                  
}

.tech-content.reverse-layout {
  flex-direction: row-reverse;
}

.tech-section:nth-child(even) .tech-content {
  flex-direction: row-reverse;
}

.tech-box:hover .tech-text {
  transform: scale(1);
  background-color: rgba(0, 0, 0, 0.3);
}

/* Tech Gallery */
.tech-gallery {
  position: relative;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  width: 500px; 
  height: 500px; 
  overflow: hidden;
  background: #000; 
}
/* Perovskite Hover Animation */
@keyframes vibrateGlow {
  0%, 100% {
    box-shadow: 0 0 20px 10px rgba(57, 255, 20, 0.8); 
  }
  50% {
    box-shadow: 0 0 30px 15px rgba(57, 255, 20, 1); 
  }
}

.perovskite:hover {
  animation: vibrateGlow 2s infinite ease-in-out; 
}

.gallery-items {
  display: flex;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
}

.gallery-items img,
.gallery-items video {
  flex: 0 0 500px;
  width: 500px;
  height: 500px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 4rem; 
  font-weight: bold;
  color: #ddd;
  padding: 0 10px;
  cursor: pointer;
  user-select: none;
  z-index: 10; 
  background: none;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), -2px -2px 4px rgba(0, 0, 0, 0.8);
  border: none;
  border-radius: 50%;
  box-shadow: none;
  outline: none;
  box-sizing: border-box; 
}

.gallery-arrow.left-arrow {
  left: 20px; 
  transform: translateX(-50%) translateY(-50%); 
}

.gallery-arrow.right-arrow {
  right: 20px;
  transform: translateX(50%) translateY(-50%);
}

.gallery-arrow:hover {
  color: #f39c12; 
}

.demo-preview {
  width: 300px;
  height: 200px;
  background: #333; 
  cursor: pointer;
  margin-top: 20px; 
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-preview-overlay {
  background: #fff;
  border: 2px solid #000;
  padding: 10px 20px;
  text-align: center;
  font-weight: bold;
}

#expanded-box-content {
  width: 100%;
  height: 100%;
  overflow: hidden; 
}

#expanded-box-content iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.loading {
  font-size: 1.5rem;
  color: #fff;
  text-align: center;
  padding: 20px;
}

.expanded-content-ml-demo {
  position: absolute;
  top: 50%; 
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 85vh;
  overflow-y: auto; 
  background-color: #222;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
  text-align: center;
}

/* Mobile Styles */
@media (max-width: 600px) {

  body, html {
    padding: 0;
    margin: 0;
  }

  .navbar {
    height: auto;
    min-height: 50px;
    padding: 0 10px;
  }

  .navbar-name {
    font-size: 1.8rem;
    letter-spacing: 1px;
  }

  .navbar-banner {
    font-size: 0.9rem;
    padding: 5px 0;
  }

  .fullscreen-nav {
    padding-top: 120px; 
  }

  .menu-icon {
    width: 30px;
    height: 24px;
  }

  .menu-icon span {
    height: 3px;
    transition: transform 0.5s ease, opacity 0.5s ease, background-color 0.5s ease;
  }

  .menu-icon.active span:nth-child(1) {
    transform: rotate(-5deg) translateX(-3px) translateY(1px); 
  }
  
  .menu-icon.active span:nth-child(2) {
    transform: rotate(-40deg) scale(1.1);
    opacity: 1;
  }
  
  .menu-icon.active span:nth-child(3) {
    transform: rotate(-5deg) translateX(3px) translateY(-1px);
  }

  .fullscreen-nav.active {
    transform: translateY(0);
  }

  .navbar-name {
    padding-right: 12%;
  }

  .nav-links a {
    font-size: 1.6rem;
  }

  /* Media Footer */
  .footer-links a {
    font-size: 1rem;
    letter-spacing: 1px;
  }

  .footer-copyright {
    font-size: 0.8rem;
  }

  /* Media News Page */
  .news-container {
    align-items: flex-start; 
    margin: 20px;
    justify-content: center;
    animation: none;
  }

  .content-container {
    padding: 20px 10px;
    gap: 10px;
    grid-template-columns: 1fr; 
    justify-items: center;     
    gap: 10px;
    box-sizing: border-box;
    max-width: 100%;
  }

  .content-box {
    width: 95%;
    height: auto;
    min-height: 300px; 
    margin: 0 auto;
    background-color: #0e0e0e;
    overflow: hidden;
  }

  .content-box:hover {
    transform: scale(1.02);
    background-color: #1b1b1b;
  }

  .content-info h2 {
    font-size: 1.2rem;
  }

  .content-info p {
    font-size: 0.9rem;
  }

  .content-image video::-webkit-media-controls {
    display: none !important;
  }

  .content-image video {
    pointer-events: none; 
    cursor: default;
  }

  .expanded-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    padding: 0;
    background-color: rgba(0, 0, 0, 0.8);
    box-sizing: border-box;
    overflow-y: auto;
    z-index: 9999;
  }

  .expanded-overlay:hover {
    transform: none;
  }

  .expanded-content h2 {
    font-size: 1.6rem;
  }

  .expanded-content p {
    font-size: 1.2rem;
  }

  .expanded-content .image-mosaic {
    display: grid; 
    gap: 10px; 
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); 
    grid-auto-rows: 100px; 
    justify-content: center; 
    padding: 10px; 
  }

  .expanded-content .image-mosaic img,
  .expanded-content .image-mosaic video {
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    border-radius: 5px; 
    display: block;
    transition: transform 0.3s ease-in-out;

  }

  .expanded-content .expanded-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 4rem;
    font-weight: bold;
    color: #ddd;
    cursor: pointer;
    z-index: 2147483647;
    -webkit-transform: translateZ(1px) 
  }

  .expanded-content .expanded-close:hover {
    color: #f39c12;
  }

  #lightbox-content {
    position: relative;
    overflow: hidden;
  }

  .lightbox-close {
    font-size: 4rem;
  }

  .image-lightbox .lightbox-close {
    display: none;
  }

  .lightbox-arrow {
    display: none;
  }

  /* Media About and Contact Pages */
  .about-container,
  .contact-container {
    margin: 20px;
    padding-top: 100px; 
  }

  .about-content,
  .contact-content {
    flex-direction: column;
    gap: 20px;
    align-items: center;
  }

  .about-image,
  .contact-image {
    width: 250px;
    height: 250px;
    margin-bottom: 20px;
  }

  .about-header h1,
  .contact-header h1,
  .news-header h1,
  .speaking-header h1,
  .tech-header h1 {
    font-size: 2.5rem;
    padding: 0px 20px;
  }

  .about-text,
  .contact-box,
  .speaking-text,
  .tech-text p {
    font-size: 1.2rem;
    padding: 0px 20px;
  }

  .about-text:hover {
    transform: none;
    background-color: inherit;
  }

  .contact-box p strong {
    font-size: 1.8rem; 
  }

  /* Media Speaking Page */
  .speaking-container {
    align-items: flex-start; 
    margin: 20px;
    justify-content: center;
  }

  .speaking-list {
    display: flex; 
    flex-direction: column; 
    align-items: flex-start; 
    text-align: left;
    justify-content: center; 
    width: 100%;
    margin: 0 auto; 
    padding: 0px 0px;
    box-sizing: border-box;
  }

  .speaking-list li {
    background-color: #0e0e0e;
    align-items: center;
    flex-direction: column;
    justify-content: left;
    margin: 10px auto;
    padding: 0px 0px;
    border-radius: 5px;
    box-sizing: border-box;
  }

  .speaking-list li img.speaking-img {
    width: 150px; 
    height: 140px; 
    margin-bottom: 10px; 
    object-fit: cover; 
    border-radius: 5px; 
  }

  .speaking-list li img.contain-img {
    object-fit: contain;
  }

  .speaking-list li a {
    align-items: flex-start;
    text-align: left;
    font-size: 1rem;
    box-sizing: border-box;
  }

  /* Media Index Page */
  .index-container {
    display: flex;
    flex-direction: column;
    justify-content: center; 
    align-items: center;        
    padding-top: 100px;
    overflow-y: auto;
    overflow-x: hidden;     
    box-sizing: border-box;
  }

  .index-content {
    text-align: center;
    font-size: 1rem;
    padding: 0 5% 10%;
    margin: 0 auto;
    max-width: 100%;
    box-sizing: border-box;
  }

.index-content h1 {
    font-size: 2rem;        
    margin-bottom: 1rem;      
    padding: 0;              
  }

.index-content p {
  font-size: 1.1rem;           
  margin-bottom: 1.5rem;    
  padding: 0;                
  }

  .index-button {
    font-size: 1rem;
    padding: 10px 20px;
  }

  /* Media Social Media Logos */
  .contact-social-logo {
    width: 50px;
    height: 50px;
    padding: 0px 20px;
    transition: transform 0.3s ease;
  }

  .contact-social-container {
    display: flex;
    flex-direction: row;
    gap: 10px;
  }

  /* Media Tech Skills Page */
  .tech-container {
    align-items: flex-start; 
    margin: 20px;
    justify-content: center;
    max-width: 100%;
  }  

  .tech-section:nth-child(even) .tech-content,
  .tech-content.reverse-layout {
    flex-direction: column !important;
  }
  
  .tech-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: auto;
    max-width: 800px;
  }

  .tech-box,
  .tech-media {
    width: 100%;
    margin-bottom: 20px; 
  }

  .tech-media {
    width: 300px; 
    height: 300px; 
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
  }
  
  .tech-box {
    flex-direction: column !important;
    align-items: flex-start; 
    width: 100%;
  }

  .tech-text,
  .tech-skills {
    width: 100%;
  }

  .tech-text h1 {
    font-size: 2rem;
  }

  .skill-divider {
    display: none; 
  }

  .skills-list {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr);          
    gap: 5px;                  
  }

  .skills-list li {
    display: flex;
    align-items: center;
    font-size: 1rem;
    margin: 5px 10px;
    text-align: left !important;
    position: relative; 
    padding-left: 5px; 
  }

  .skills-list li::after {
    content: none !important;
  }

  .skills-list li::before {
    content: '';      
    position: absolute; 
    left: 0; 
    top: 50%;
    transform: translateY(-50%);
    height: 20px;
    opacity: 1 !important; 
  }
  
  .tech-gallery {
    width: 300px; 
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px; 
    display: none;
  }
  
  .gallery-items {
    width: 300px; 
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .gallery-items img,
  .gallery-items video {
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    border-radius: 8px; 
  }

  .tech-section:nth-child(even) .tech-box,
  .tech-section:nth-child(even) .tech-content,
  .tech-section:nth-child(odd) .tech-box,
  .tech-section:nth-child(odd) .tech-content,
  .tech-section .tech-content.reverse-layout {
    flex-direction: column !important;
  }

  .tech-box:hover .tech-text {
    transform: none;
    animation: none;
    background-color: transparent;
  }

  .tech-section {
    margin-left: -6%; 
  }
}
