@import url('../css/global.css');

.home-content {
  margin-block-start: max(var(--nav-height, 60px), 4rem);
}
/* icons */
#github-icon, #youtube-icon, #instagram-icon, #tiktok-icon, #linkedin-icon, #linktree-icon {
    width: 24px;
    height: 24px; 
    transition: var(--theme-transition);
  }
  .dark-mode #github-icon {
    content: url('../assets/images/home/dark-github-icon.png');
  }
  .light-mode #github-icon {
    content: url('../assets/images/home/light-github-icon.png');
  }
  .dark-mode #youtube-icon {
    content: url('../assets/images/home/dark-youtube-icon.png');
  }
  .light-mode #youtube-icon {
    content: url('../assets/images/home/light-youtube-icon.png');
  }
  .dark-mode #instagram-icon {
    content: url('../assets/images/home/dark-instagram-icon.png');
  }
  .light-mode #instagram-icon {
    content: url('../assets/images/home/light-instagram-icon.png');
  }
  .dark-mode #tiktok-icon {
    content: url('../assets/images/home/dark-tiktok-icon.png');
  }
  .light-mode #tiktok-icon {
    content: url('../assets/images/home/light-tiktok-icon.png');
  }
  .dark-mode #linkedin-icon {
    content: url('../assets/images/home/dark-linkedin-icon.png');
  }
  .light-mode #linkedin-icon {
    content: url('../assets/images/home/light-linkedin-icon.png');
  }
  .dark-mode #linktree-icon {
    content: url('../assets/images/home/dark-linktree-icon.png');
  }
  .light-mode #linktree-icon {
    content: url('../assets/images/home/light-linktree-icon.png');
  }
  
  .dark-mode, .light-mode {
  /* Example usage */
  .full-height-element {
    height: calc(var(--vh, 1vh) * 100);
  }  
}
.herorow {
    max-width: 1200px;
    display: flex;
  }

  .column-text {
    width: 70%;
    box-sizing: border-box;
    padding: 10px;
    padding-top: 40px;  
  }
  .column-text h2 {
    padding: 20px;
    padding-left: 11px;
    padding-right: 0px;
    margin: 0px;    
  }
  .social-row {
    padding-left: 20px;
    padding-bottom: 20px;
  }
  .social-group {
    display: flex;
    gap: 12px;
  }
  .social-link {
    transition: transform 0.1s ease-in-out, var(--theme-transition);
  }
  .social-link:hover {
    transform: scale(1.1);
  }
  @media (max-width: 750px) {
    .column-text {
      width: 100%;
      padding: 0px;
      text-align: center;
    }
    .column-text h2 {
      font-size: 75px;
      text-align: center;
    }
    .social-row, .social-group {
      justify-content: center;
      padding: 0px;
      margin-bottom: 10px;
    }
    .slideshow-container {
      width: 100%;
    }
    .herorow {
      flex-direction: column;
    }
  }


/* grid and items */
.grid-content {
  max-width: 1200px;
  margin: 0 auto;
}
.grid-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 20px; 
}

.responsive {
  max-width: 1200px;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  float: left;
}
.gallery {
  width: 33%;
  padding: 1%;
  box-sizing: border-box;
}  
.inner {
  text-align: center;
  border-radius: 2px;
  margin-bottom: 1%;
  transition: var(--theme-transition);
}
@media only screen and (max-width: 750px) {
  .gallery {
    width: 50%;
  }
}
@media only screen and (max-width: 500px) {
  .gallery {
    width: 100%;
  }
}
.dark-mode .inner {
  border: 1px solid #C8C8C8;
}
.light-mode .inner {
  border: 1px solid #000000;
}
.inner img {
  max-width: 100%;
  height: auto;
  transition: var(--theme-transition);
}
.dark-mode .inner img {
  border-bottom: 1px solid #C8C8C8;
}
.light-mode .inner img {
  border-bottom: 1px solid #000000;
}
.desc {
  margin: 5px;
  font-size: 14px;
}

.line-header {
  display: flex;
  align-items: center;
  gap: 20px;
}

.line-header h1 {
  margin: 20px;
  text-align: left;
  white-space: nowrap;
}

.dark-mode .line-header .line {
  flex-grow: 1;
  height: 2px;
  background-color: #C8C8C8;
  margin-right: 20px; /* Ensures margin on the right */
  transition: var(--theme-transition);
}
.light-mode .line-header .line {
  flex-grow: 1;
  height: 2px;
  background-color: #000000;
  margin-right: 20px; /* Ensures margin on the right */
  transition: var(--theme-transition);
}

@media (max-width: 750px) {
  .line-header .line {
    margin-right: 10px; /* Adjust margin for smaller screens */
  }
}

/* zig zag blocks, row length, shaded zig zag and connect page */
.row {
  max-width: 1200px;
}
/* .background-2, .background-4 {
  transition: background-color 0.2s ease;
}
.dark-mode .background-2, .dark-mode .background-4 {
  background-color: rgb(22, 22, 22);
}
.light-mode .background-2, .light-mode .background-4 {
  background-color: rgb(245, 245, 245);
} */
.container-1, .container-2, .container-3, .container-4 {
  display: flex;
  justify-content: center;
  align-items: center;
}
/* block 1 */
.background-1 {
  height: 100vh;
  width: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
@media (max-width: 750px) {
  .background-1 {
    height: auto; /* Remove the height property */
  }
}
.container-1 {
  display: flex;
  justify-content: center;
  align-items: center;
}

.scrollable-blog {
  max-height: 400px; /* Adjust height as needed */
  max-width: 1200px;
  overflow-y: auto; /* Enables vertical scrolling */
  padding: 10px; /* Optional: padding */
  margin: 20px;
}
.dark-mode .scrollable-blog {
  border: 1px solid #C8C8C8; /* Optional: border for visibility */
}
.light-mode .scrollable-blog {
  border: 1px solid #000000; /* Optional: border for visibility */
}

.image-container {
  position: relative;
  display: inline-block; /* Ensure the container fits the image size */
}

.image-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, black, transparent); /* Gradient from black to transparent */
  opacity: 0.5; /* Adjust the opacity as needed */
  pointer-events: none; /* Ensure the overlay doesn't interfere with interactions */
  z-index: 1; /* Ensure the gradient is on top */
}
.dark-mode .image-container::before {
  background: linear-gradient(135deg, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 100%);
}
.light-mode .image-container::before {
  background: linear-gradient(135deg, rgb(255, 255, 255) 20%, rgba(0,0,0,0) 100%);
}

.image-container img {
  display: block; /* Remove any extra space below the image */
  width: 100%; /* Ensure the image fits the container */
  height: auto; /* Maintain the aspect ratio */
}


/* Override global scrollbar hiding for the blog section */
.scrollable-blog::-webkit-scrollbar {
  display: block !important; /* Ensure the scrollbar is displayed */
  width: 12px; /* Width of the scrollbar */
}

/* Scrollbar Thumb */
.scrollable-blog::-webkit-scrollbar-thumb {
  background-color: #000000; /* Color of the scrollbar thumb */
  border-radius: 10px; /* Rounded corners */
  border: 4px solid transparent; /* Space around the thumb */
  background-clip: content-box; /* Ensures the border is visible */
  transition: background-color 0.2s ease; /* Transition for color change */
}

/* Scrollbar Track */
.scrollable-blog::-webkit-scrollbar-track {
  background: transparent; /* Make the scrollbar track transparent */
}

/* Dark Mode Scrollbar */
.dark-mode .scrollable-blog::-webkit-scrollbar-thumb {
  transition: background-color 0.2s ease; /* Transition for color change */
  background-color: #C8C8C8; /* Darker color for dark mode */
}

.dark-mode .scrollable-blog::-webkit-scrollbar-track {
  background: transparent; /* Make the scrollbar track transparent in dark mode */
}

  #container {
    width: 30%;
    height: justify;
    display: flex;
    flex-direction: column; /* Stack items vertically */
    justify-content: center; /* Centers items horizontally */
    align-items: center; /* Centers items vertically */
    max-width: 750px;
  }
  #dim-container {
    max-width: 100%;
    flex-shrink: 1;
    max-width: 750px;
  
  }
  @media (max-width: 750px) {
  #container {
    width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column-reverse;
  }
  #dim-container {
    width: 100vw; /* Adjust this value as needed */
    transform: translate(0%, -20%);
    max-width:100vw;
    flex-shrink: 1;
}


}
  .rotate-instruction {
    text-align: center;
    font-size: 14px;
}

.background-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: auto;
  z-index: -1;
  opacity: 0.2; /* 50% transparency */
  filter: invert(0); /* Default color */
  transition: transform 0.1s ease-out, var(--theme-transition);
}
.light-mode .background-image {
  filter: invert(1); /* Change color to black */
}

/* Hero Section Enhancements */
.subtitle {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #555;
}

.highlight {
    font-weight: 600;
}

.dark-mode .highlight {
    color: #FFFFFF;
}

.light-mode .highlight {
    color: #000000;
}

.animate-text {
    animation: fadeInUp 1s ease-out;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
}

.cta-button {
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.primary-button {
    background-color: #0077cc;
    color: white;
}

.primary-button:hover {
    background-color: #005fa3;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.secondary-button {
    background-color: transparent;
    color: #0077cc;
    border: 2px solid #0077cc;
}

.secondary-button:hover {
    background-color: rgba(0, 119, 204, 0.1);
    transform: translateY(-2px);
}

.social-hover {
    transition: transform 0.3s ease;
}

.social-hover:hover {
    transform: translateY(-5px);
}

/* Media queries for responsiveness */
@media (max-width: 768px) {
    .cta-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .blog-date-badge {
        position: relative;
        top: 0;
        right: 0;
        margin-bottom: 1rem;
        align-self: flex-start;
    }
    
    .blog-card {
        display: flex;
        flex-direction: column;
    }
}

/* Demo section for theme transitions */
.demo-section {
  padding: 60px 20px;
  background-color: rgba(20, 20, 20, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.light-mode .demo-section {
  background-color: rgba(240, 240, 240, 0.5);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.demo-section .container {
  max-width: 1100px;
  margin: 0 auto;
}

.demo-header {
  text-align: center;
  margin-bottom: 40px;
}

.demo-header h2 {
  font-size: 2.2rem;
  margin-bottom: 10px;
  text-align: center;
}

.demo-header p {
  font-size: 1.1rem;
  opacity: 0.8;
  max-width: 700px;
  margin: 0 auto;
}

.demo-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.demo-example {
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  background-color: rgba(30, 30, 30, 0.5);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease, var(--theme-transition);
}

.light-mode .demo-example {
  background-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.demo-example:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.demo-example h3 {
  font-size: 1.3rem;
  padding: 20px 20px 10px 20px;
  margin: 0;
  text-align: center;
}

.demo-example > div {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
}

.theme-aware-container {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-aware-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.theme-replacement-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.filter-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: invert(0);
  transition: filter 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}

.light-mode .filter-image {
  filter: invert(1);
}

.description {
  padding: 0 20px 20px;
  font-size: 0.95rem;
  text-align: center;
  opacity: 0.8;
}

.demo-note {
  text-align: center;
  margin-top: 40px;
}

.demo-toggle-button {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #6366f1;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.demo-toggle-button:hover {
  background-color: #4f46e5;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .demo-examples {
    flex-direction: column;
    align-items: center;
  }
  
  .demo-example {
    width: 100%;
    max-width: 350px;
  }
}

/* End of demo section */