@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(-45deg, #f3f4f6, #e2e8f0, #f8fafc, #edf2f7);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    min-height: 100vh;
    overflow-x: hidden;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

html {
  scroll-behavior: smooth;
}

p {
  color: rgb(85, 85, 85);
  line-height: 1.6;
}

a, .btn {
  transition: all 300ms ease;
}

nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 17vh;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
  width: 100%;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  font-size: 1.5rem;
}

a {
  color: black;
  text-decoration: none;
}

a:hover {
  color: grey;
  text-decoration: underline;
  text-underline-offset: 1rem;
  text-decoration-color: rgb(181, 181, 181);
}

.logo {
  font-size: 2rem;
  cursor: default;
}

#hamburger-nav {
  display: none;
}

.hamburger-menu {
  position: relative;
  display: inline-block;
}

.hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 24px;
  width: 30px;
  cursor: pointer;
}

.hamburger-icon span {
  width: 100%;
  height: 2px;
  background-color: black;
  transition: all 0.3s ease-in-out;
}

.menu-links {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: rgba(255, 255, 255, 0.95);
  width: fit-content;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease-in-out;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border-radius: 8px;
  z-index: 100; 
}

.menu-links a {
  display: block;
  padding: 10px;
  text-align: center;
  font-size: 1.5rem;
  color: black;
}

.menu-links li {
  list-style: none;
}

.menu-links.open {
  max-height: 300px;
}

.hamburger-icon.open span:first-child {
  transform: rotate(45deg) translate(10px, 5px);
}

.hamburger-icon.open span:nth-child(2) {
  opacity: 0;
}

.hamburger-icon.open span:last-child {
  transform: rotate(-45deg) translate(10px, -5px);
}

section {
  padding: 3rem 2rem;
  margin: 0 auto;
  max-width: 1200px;
  width: 100%;
  min-height: auto;
  height: fit-content;
}

.title {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #1e293b 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: black; 
}

.section__text__p1 {
  text-align: center;
}

#profile {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5rem;
  height: fit-content; 
  margin-top: 5vh;
  margin-bottom: 0rem;
}

.section__pic-container {
  display: flex;
  height: 400px;
  width: 400px;
  margin: auto 0;
}

.section__text {
  align-self: center;
  text-align: center;
}

.section__text p {
  font-weight: 600;
}

.section__text__p2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

#socials-container {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
  gap: 1rem;
}

.icon {
  cursor: pointer;
  height: 2rem;
  transition: transform 0.2s; 
}

.icon:hover {
  transform: scale(1.1);
}

.btn-container {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  font-weight: 600;
  padding: 1rem;
  width: 8rem;
  border-radius: 2rem;
  border: rgb(53, 53, 53) 0.1rem solid;
  cursor: pointer;
  background: transparent; 
}

.btn-color-1, .btn-color-2 {
    transition: all 0.3s ease;
}

.btn-color-1:hover,
.btn-color-2:hover {
  background: rgb(30, 30, 30); 
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15); 
}

.btn-color-2 {
  background: none;
}

#projects {
  position: relative;
  padding-bottom: 3rem;
}

.experience-details-container {
  display: flex;
  justify-content: center;
  flex-direction: column;
}

.about-containers {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.details-container {
  padding: 1.5rem;
  flex: 1;
  background: rgba(255, 255, 255, 0.6); 
  backdrop-filter: blur(12px);         
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5); 
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  border-radius: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  min-width: 280px;
  max-width: 400px;
  transition: transform 0.3s ease;
}

.details-container:hover {
    transform: translateY(-5px); 
}

.article-container {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.project-img {
  border-radius: 2rem;
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.project-img:hover {
  transform: scale(1.05);
}

.project-title {
  margin: 1rem 0;
  color: black;
  font-size: 1.75rem;
  font-weight: 600;
}

#about {
  padding-bottom: 5rem;
}

.about-text-container {
  max-width: 800px;
  margin: 2rem auto;
  text-align: center;
  font-size: 1.1rem;
  padding: 2rem; 
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(5px);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.3);
}

#contact {
  display: flex;
  justify-content: flex-start;
  flex-direction: column;
  padding-top: 1rem;
  padding-bottom: 4rem;
}

.contact-info-upper-container {
  display: flex;
  justify-content: center;
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  margin: 2rem auto;
  padding: 0.5rem;
  flex-wrap: wrap;
}

.contact-info-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1rem;
}

.contact-info-container p {
  font-size: larger;
}

.email-icon {
  height: 2.5rem;
}

footer {
  height: 26vh;
  margin: 0 1rem;
}

footer nav {
  height: fit-content;
  margin-bottom: 2rem;
}

footer p {
  text-align: center;
}

.project-page {
  padding: 2rem;
}
.project-meta-grid {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2rem;
  text-align: left;
  border-bottom: 1px solid #ccc;
  padding-bottom: 2rem;
}
.meta-column {
  flex: 1;
}
.meta-column h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
  color: black;
}
.meta-column ul {
  list-style-type: none;
  padding: 0;
}
.meta-column li {
  margin-bottom: 0.5rem;
  color: rgb(85, 85, 85);
}
.project-context-section {
  text-align: left;
  margin-bottom: 3rem;
}
.project-context-section h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}
.modal-body {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}
.modal-panel {
  display: flex;
  flex-direction: column-reverse;
  gap: 3rem;
}
.modal-images {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  width: 100%;
}
.modal-images img {
  width: 100%;
  max-width: 900px;
  height: auto;
  object-fit: contain;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  border-radius: 8px;
}
.gallery-images {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
  width: 100%;
  margin-top: 2rem;
}
.gallery-item {
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
}
.gallery-item img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
  margin-bottom: 1rem;
}
.gallery-item p {
  font-size: 1rem;
  color: rgb(85, 85, 85);
  background: #f9f9f9;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid rgb(53, 53, 53);
}
.project-trailer-section {
  display: flex;
  justify-content: center;
  margin: 0 auto 3rem auto;
  max-width: 1000px;
  padding: 0 1rem;
}
.trailer-container {
  width: 100%;
}
.trailer-container iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}


nav, #desktop-nav, #hamburger-nav {
    position: relative; 
    z-index: 9999;     
    background: transparent;
}


.nav-links li a {
    position: relative;
    z-index: 10000;
}


.project-img {
    z-index: 10;
    position: relative;
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem; 
}

#tech-stack {
    padding: 3rem 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    margin-bottom: 2rem;
}

.slider {
    margin: auto;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.slide-track {
    display: flex;
    width: calc(150px * 16); 
    animation: scroll 30s linear infinite; 
}

.slide {
    height: 80px;
    width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
}

.slide img {
    height: 60px;
    width: auto;
    object-fit: contain;
    filter: grayscale(0%) opacity(1); 
    transition: all 0.3s ease;
    cursor: pointer;
}

.slide img:hover {
    filter: grayscale(0%) opacity(1);
    transform: scale(1.1);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-150px * 8)); } 
}
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(to right, #3b82f6, #8b5cf6);
    z-index: 10001; 
    transition: width 0.1s;
}
.glitch-hover {
    position: relative;
    display: inline-block;
}

.glitch-hover::before,
.glitch-hover::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f3f4f6; 
    overflow: hidden;
    opacity: 0; 
    transition: opacity 0.1s;
}

.glitch-hover:hover::before {
    left: 2px;
    text-shadow: -1px 0 red;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-1 1s infinite linear alternate-reverse;
    opacity: 1;
}

.glitch-hover:hover::after {
    left: -2px;
    text-shadow: -1px 0 blue;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim-2 1s infinite linear alternate-reverse;
    opacity: 1;
}

@keyframes glitch-anim-1 {
    0% { clip: rect(30px, 9999px, 10px, 0); }
    20% { clip: rect(70px, 9999px, 90px, 0); }
    40% { clip: rect(10px, 9999px, 50px, 0); }
    60% { clip: rect(40px, 9999px, 80px, 0); }
    80% { clip: rect(80px, 9999px, 20px, 0); }
    100% { clip: rect(50px, 9999px, 60px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(10px, 9999px, 80px, 0); }
    20% { clip: rect(80px, 9999px, 10px, 0); }
    40% { clip: rect(40px, 9999px, 50px, 0); }
    60% { clip: rect(20px, 9999px, 90px, 0); }
    80% { clip: rect(90px, 9999px, 30px, 0); }
    100% { clip: rect(60px, 9999px, 40px, 0); }
}
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05); 
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #333, #555); 
    border-radius: 5px;
    border: 2px solid transparent; 
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #3b82f6, #1d4ed8); 
    border-radius: 5px;
    border: 2px solid transparent;
    background-clip: content-box;
}

::selection {
    background: #3b82f6; 
    color: white;
    text-shadow: 0 0 5px rgba(59, 130, 246, 0.5); 
}
#shader-toast {
    position: fixed;
    bottom: 20px;
    right: -300px; 
    background: #1a1a1a;
    color: #ccc;
    padding: 10px 15px;
    border-radius: 4px;
    border-left: 3px solid #0078d7; 
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: sans-serif;
    font-size: 0.85rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    z-index: 9998;
    transition: right 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

#shader-toast.show {
    right: 20px;
}

.loader-spinner {
    width: 12px;
    height: 12px;
    border: 2px solid #555;
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.achievements-box {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.achievements-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.achievements-list li {
    font-size: 1.1rem;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 15px;
}

.achievements-list li:last-child {
    border-bottom: none;
}

.achievements-list li::before {
    content: '✅';
    font-size: 1.2rem;
}

.achievements-list li:hover {
    padding-left: 10px;
    background: rgba(255,255,255,0.4);
    border-radius: 8px;
    transition: all 0.2s ease;
}
.achievements-box {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.achievements-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.achievements-list li {
    font-size: 1.1rem;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgb(60, 60, 60); 
}

.achievements-list li::before {
    content: ''; 
    font-size: 1.2rem;
    flex-shrink: 0; 
}

.achievements-list a.achievement-link {
    text-decoration: none;
    color: #3b82f6; 
    font-weight: 500;
    border-bottom: 1px dashed rgba(59, 130, 246, 0.4); 
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.achievements-list a.achievement-link::after {
    content: '↗'; 
    font-size: 0.85em;
    opacity: 0.6;
}

.achievements-list a.achievement-link:hover {
    color: #1d4ed8; 
    border-bottom-style: solid; 
    transform: translateX(3px); 
}
.achievements-list a.achievement-link:hover::after {
    opacity: 1;
}
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); 
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none; 
  transition: opacity 0.3s ease;
  z-index: 10000;
  backdrop-filter: blur(5px);
}

.modal[aria-hidden="false"] {
  opacity: 1;
  pointer-events: all;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 20px;
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #333;
  line-height: 1;
}

.modal-close:hover {
  color: #ef4444; 
}
#theme-toggle {
  position: fixed;
  top: 20px;
  left: 20px; 
  z-index: 10001; 
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 1.5rem;
  cursor: pointer;
  backdrop-filter: blur(5px);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

#theme-toggle:hover {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.8);
}


body.dark-mode {
  background: linear-gradient(-45deg, #0f172a, #1e293b, #334155, #1e293b);
  background-size: 400% 400%;
  color: #e2e8f0; 
}

body.dark-mode p, 
body.dark-mode h1, 
body.dark-mode h2, 
body.dark-mode h3, 
body.dark-mode a,
body.dark-mode .nav-links a,
body.dark-mode .logo,
body.dark-mode .experience-sub-title,
body.dark-mode .achievements-list li {
  color: #f1f5f9;
}

body.dark-mode .details-container,
body.dark-mode .contact-info-upper-container,
body.dark-mode .about-text-container,
body.dark-mode .achievements-box,
body.dark-mode .modal-content,
body.dark-mode #tech-stack,
body.dark-mode .gallery-item p,
body.dark-mode .glass-card p {
  background: rgba(0, 0, 0, 0.6); 
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}

body.dark-mode .btn-color-1, 
body.dark-mode .btn-color-2 {
  border-color: #f1f5f9;
  color: #f1f5f9;
}
body.dark-mode .btn-color-1:hover,
body.dark-mode .btn-color-2:hover {
  background: #f1f5f9;
  color: #0f172a;
}

body.dark-mode .icon,
body.dark-mode .hamburger-icon span {
  filter: invert(1);
}

body.dark-mode .title {
  background: linear-gradient(135deg, #60a5fa 0%, #c084fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.dark-mode .meta-column h3 {
  color: #f1f5f9;
}

body.dark-mode .meta-column li {
  color: #e2e8f0;
}

body.dark-mode .project-meta-grid {
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

.sun-icon {
    display: none;
}
.moon-icon {
    display: block;
}

body.dark-mode .moon-icon {
  display: none !important;
}

body.dark-mode .sun-icon {
  display: block !important;
}

.trailer-container {
  width: 100%;
}

.trailer-container iframe,
.trailer-container video {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  background: black; 
  border: none;
  display: block;
}

body.dark-mode .slide img[alt="GitHub"] {
  filter: invert(1);
}

body.dark-mode .slide img[alt="Unreal"] {
  filter: invert(1);
}

.gallery-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); 
  gap: 1.5rem; 
  width: 100%;
  max-width: 1000px; 
  margin: 2rem auto 0 auto;
}

.gallery-item {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.gallery-item video, 
.gallery-item img {
  width: 100%;
  aspect-ratio: 16 / 9; 
  object-fit: cover;    
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
  margin-bottom: 0.5rem;
  background: black;
}

.gallery-item p {
  font-size: 0.9rem;
  color: rgb(100, 100, 100);
  background: transparent; 
  padding: 0.5rem 0 0 0;
  border: none; 
  margin-top: 0;
}

.gallery-images {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
  width: 100%;
  margin-top: 2rem;
}

.gallery-images.float-grid-mode {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); 
  gap: 1.5rem;
  max-width: 1000px;
  margin: 2rem auto;
}

.gallery-images.float-grid-mode .gallery-item {
  width: 100%;
}

.gallery-images.float-grid-mode .gallery-item video,
.gallery-images.float-grid-mode .gallery-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  margin-bottom: 0.5rem;
}

.gallery-images.float-grid-mode .gallery-item p {
  font-size: 0.9rem;
  color: rgb(100, 100, 100);
  background: transparent;
  padding: 0.5rem 0 0 0;
  border: none;
  margin-top: 0;
}

body.dark-mode {
  background: linear-gradient(-45deg, #020202, #0f0b15, #16121d, #020202);
  background-size: 400% 400%;
  color: #e2e8f0;
}

body.dark-mode .details-container,
body.dark-mode .contact-info-upper-container,
body.dark-mode .about-text-container,
body.dark-mode .achievements-box,
body.dark-mode .modal-content,
body.dark-mode #tech-stack,
body.dark-mode .gallery-item p {
  background: rgba(0, 0, 0, 0.75); 
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body.dark-mode {
  background: linear-gradient(-45deg, #020202, #0f0b15, #16121d, #020202);
  background-size: 400% 400%;
  color: #e2e8f0;
}

body.dark-mode p, 
body.dark-mode h1, 
body.dark-mode h2, 
body.dark-mode h3, 
body.dark-mode h4,
body.dark-mode h5,
body.dark-mode h6,
body.dark-mode li,
body.dark-mode span,
body.dark-mode a,
body.dark-mode .project-title,
body.dark-mode .experience-sub-title,
body.dark-mode .nav-links a,
body.dark-mode .logo {
  color: #f1f5f9 !important; 
}

body.dark-mode a {
    color: #60a5fa !important;
}
body.dark-mode .nav-links a {
    color: #f1f5f9 !important;
}

body.dark-mode .details-container,
body.dark-mode .contact-info-upper-container,
body.dark-mode .about-text-container,
body.dark-mode .achievements-box,
body.dark-mode .modal-content,
body.dark-mode #tech-stack, 
body.dark-mode .glass-card {
  background: rgba(0, 0, 0, 0.75) !important; 
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 30px rgba(0,0,0,0.5);
  color: #e2e8f0 !important;
}

body.dark-mode .btn-color-1, 
body.dark-mode .btn-color-2 {
  border-color: #f1f5f9;
  color: #f1f5f9 !important;
}
body.dark-mode .btn-color-1:hover,
body.dark-mode .btn-color-2:hover {
  background: #f1f5f9;
  color: #0f172a !important; 
}

.info-box {
    font-size: 1rem;
    color: rgb(85, 85, 85);
    background: #f9f9f9;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid rgb(53, 53, 53);
    margin-top: 1rem;
    text-align: left;
}

body.dark-mode .info-box {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #e2e8f0 !important;
    border-left: 4px solid #e2e8f0;
    border-right: none;
    border-top: none;
    border-bottom: none;
}

body.dark-mode .icon,
body.dark-mode .hamburger-icon span,
body.dark-mode .slide img[alt="GitHub"],
body.dark-mode .slide img[alt="Unreal"] {
  filter: invert(1);
}

.sun-icon { display: none; }
.moon-icon { display: block; }
body.dark-mode .moon-icon { display: none !important; }
body.dark-mode .sun-icon { display: block !important; }

body.dark-mode .title {
  background: linear-gradient(135deg, #93c5fd 0%, #c4b5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #fff !important; 
}
body.dark-mode .gallery-item p {
    background: transparent !important; 
    border: none !important;            
    box-shadow: none !important;        
    padding: 0.5rem 0 0 0 !important;   
    color: #a3a3a3 !important;          
    margin-top: 0;
}
.gallery-images.float-grid-mode {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); 
  gap: 2rem; 
  width: 100%;
  max-width: 1200px;
  margin: 2rem auto;
  align-items: stretch; 
}

.gallery-images.float-grid-mode .gallery-item {
  width: 100%;
  height: 100%; 
  display: flex; 
  flex-direction: column; 
  justify-content: flex-start; 
}

.gallery-images.float-grid-mode .gallery-item video,
.gallery-images.float-grid-mode .gallery-item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  margin-bottom: 0.75rem; 
  flex-shrink: 0; 
}

.gallery-images.float-grid-mode .gallery-item p {
  font-size: 0.95rem;
  color: rgb(85, 85, 85);
  background: transparent;
  padding: 0;
  border: none;
  margin-top: 0;
  line-height: 1.5;
}

body.dark-mode .gallery-images.float-grid-mode .gallery-item p {
    color: #a3a3a3 !important;
}

body.dark-mode .gallery-item p,
body.dark-mode .gallery-images.float-grid-mode .gallery-item p {
    color: #f1f5f9 !important;
}