@font-face {
  font-family: 'Barrio';
  src: url('../fonts/barrio.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'ClashDisplay';
  src: url('../fonts/ClashDisplay.ttf') format('truetype');
  font-display: swap;
}

@font-face {
  font-family: 'Renade';
  src: url('../fonts/Ranade-Bold.otf') format('truetype');
  font-display: swap;
}

body {
  font-family: 'Renade', sans-serif;
  margin: 0;
  color: #222;
}

h1, h2, h3, .navbar-brand {
  font-family: 'Renade', serif;
  margin: 0;
}

a {
  text-decoration: none;
}

.navbar {
  background-color: #fff !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.navbar-nav .nav-link {
  color: #222 !important;
  margin-left: 15px;
}

.navbar-nav .nav-link:hover {
  color: #678a72 !important;
}

.hero-banner {
  height: 100vh;
  width: 100%;
  background: url('../images/digital_art/hands_portfolio.jpg') no-repeat center/cover;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: white;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 1;
}

.hero-name {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 5vw;
  font-family: 'Barrio';
  font-size: clamp(5rem, 12vw, 10rem);
  line-height: 1;
  color: #f39191;
}

.hero-name .first-name {
  display: block;
  text-align: left;
}

.hero-name .last-name {
  display: block;
  text-align: right;
  margin-top: 0.2em;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-top: 40px;
  animation: fadeIn 1.5s ease forwards;
  opacity: 0;
}

.hero-description {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

.hero-btn {
  font-size: 1rem;
  padding: 10px 25px;
  background-color: #f39191;
  color: #f8f9fa;
  border: none;
  border-radius: 5px;
  transition: 0.3s;
}

.hero-btn:hover {
  background-color: #9cc4a9;
  color: #f8f9fa;
}

.bg-about {
  background-color: #60846b; 
}

.about-intro {
  display: flex;
  align-items: flex-start; 
  gap: 20px; 
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.about-img-container {
  flex: 0 0 auto;
  position: relative;
  text-align: center;
}

.about-title {
  font-family: 'Barrio';
  position: absolute;
  top: -65px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 4rem;
  color: #f39191;
  white-space: nowrap;
  margin: 0;
  margin-left: 40px;
}

.about-img {
  width: 200px;
  height: 200px;
  border-radius: 70%;
  object-fit: cover;
  display: block;
  margin: 0;
  margin-top: 10px;
}

.about-text {
  flex: 1;
  color: #fff;
  margin: 0;
  line-height: 1.5;
  text-align: justify;
  margin-top: 20px;
}

.tools-skills {
  width: 100%;
  margin-top: 20px;
  color: #fff;
  margin-bottom: 0;
  padding: 0;
}

.tools-skills h4 {
  color: #f39191;
  font-family: 'Barrio';
}

.tools-skills ul {
  padding-left: 20px;
}

.tools-skills p {
  margin-top: 10px;
}

.project {
  margin-bottom: 30px;
}

.project a {
  color: #9cc4a9;
}

.project a:hover {
  text-decoration: underline;
}

.section {
  padding: 80px 0;
}

.section h2 {
  margin-bottom: 50px; 
}

.section:not(.bg-about):not(.bg-light) {
  background-color: #ffffff;
}

.bg-light {
  background-color: #f8f9fa;
}

.bg-about {
  background-color: #60846b;
}

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

#artwork-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.95);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.modal-close-btn {
  position: fixed;
  top: 20px;
  right: 40px;
  color: white;
  font-size: 50px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10000;
}

.modal-close-btn:hover {
  color: #f39191;
}

.artwork-content {
  display: flex;
  gap: 40px;
  align-items: center;
  justify-content: center;
  max-width: 1400px;
  width: 100%;
}

#artwork-img {
  max-height: 85vh !important;
  max-width: 70% !important;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.artwork-text {
  max-width: 400px;
  color: white;
  font-family: 'Renade';
  flex-shrink: 0;
}

.artwork-text h2 {
  font-family: 'Barrio';
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: #f39191;
}

.artwork-text p {
  font-size: 1.1rem;
  line-height: 1.7;
}

.gallery-img {
  width: 100%;
  border-radius: 8px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.gallery-img:hover {
  transform: scale(1.03);
}

#artwork-modal {
  transition: opacity 0.3s ease;
}

#artwork-modal[style*="display: flex"] {
  animation: fadeIn 0.3s ease;
}

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

.artwork-content {
  animation: slideUp 0.4s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-content {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  text-align: justify;
}

.project-content img {
  max-width: 400px;
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.project-content p {
  flex: 1;
}

.gallery-video {
  cursor: pointer;
  overflow: hidden;
  border-radius: 8px;
  transition: transform 0.3s ease;
  height: 100%;
  min-height: 250px;
  background: #000;
}

.gallery-video:hover {
  transform: scale(1.03);
}

.gallery-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.row.g-4 .col-md-4 {
  display: flex;
}

#gallery-intro {
  margin-top: 90px;
  margin-bottom: 0px;
  text-align: center;
  padding: 20px 0;
  background-color: #f8f9fa;
}

#gallery-intro p {
  margin-bottom: 0;
  line-height: 1.6;
  font-size: 1.1rem;
  max-width: 1300px;
  margin-left: auto;
  margin-right: auto;
}

#contact a {
  color: #9cc4a9;
  text-decoration: none;
  transition: color 0.3s ease;
}

#contact a:hover {
  color: #f39191;
  text-decoration: underline;
}

.code-project {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.code-project:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.code-project-preview {
  padding: 20px;
  background: white;
}

.code-project-preview h4 {
  color: #000;
  font-family: 'Renade';
  margin-bottom: 10px;
  font-size: 1rem;
}

.code-project-preview p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 15px;
  min-height: 70px;
}

.code-project .gallery-img {
  border-radius: 8px 8px 0 0;
  cursor: pointer;
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.code-project .gallery-img:hover {
  opacity: 0.9;
}

.project-links {
  margin-bottom: 10px;
}

.project-link {
  display: inline-block;
  background-color: #9cc4a9;
  color: white;
  padding: 8px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.project-link:hover {
  background-color: #8ab397;
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
}

.click-hint {
  color: #888;
  font-style: italic;
  font-size: 0.85rem;
  display: block;
  margin-top: 10px;
}

.artwork-text {
  max-width: 500px;
  color: white;
  font-family: 'Renade';
  flex-shrink: 0;
}

.artwork-text h2 {
  font-family: 'Barrio';
  font-size: 2.2rem;
  margin-bottom: 15px;
  color: #f39191;
}

.artwork-text p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  max-height: 300px;
  overflow-y: auto;
  padding-right: 10px;
}

.artwork-text p::-webkit-scrollbar {
  width: 6px;
}

.artwork-text p::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
}

.artwork-text p::-webkit-scrollbar-thumb {
  background: #f39191;
  border-radius: 3px;
}

.project-link-modal {
  margin-top: 20px;
}

.project-link-btn {
  display: inline-block;
  background-color: #9cc4a9;
  color: white;
  padding: 12px 24px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.project-link-btn:hover {
  background-color: #8ab397;
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.project-link-btn.secondary {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.project-link-btn.secondary:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.link-icon {
  font-size: 1.1rem;
}

.project-video-container {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  max-width: 1400px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
}

.video-wrapper {
  flex: 1;
  position: relative;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
}

.project-video {
  width: 100%;
  max-height: 70vh;
  display: block;
  border-radius: 10px;
}

.video-controls-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, transparent 100%);
  color: white;
  z-index: 2;
}

.video-title {
  font-family: 'Barrio';
  font-size: 1.5rem;
  color: #f39191;
  opacity: 0.9;
}

.artwork-text {
  flex: 0 0 400px;
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 10px;
}

.artwork-text h2 {
  font-family: 'Barrio';
  font-size: 2.2rem;
  margin-bottom: 15px;
  color: #f39191;
}

.artwork-text p {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 25px;
}

.project-details {
  margin: 25px 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border-left: 4px solid #9cc4a9;
}

.project-details h5 {
  color: #f39191;
  font-family: 'Barrio';
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.tech-stack {
  margin-bottom: 20px;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tech-tag {
  background: rgba(156, 196, 169, 0.2);
  color: #9cc4a9;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  border: 1px solid rgba(156, 196, 169, 0.3);
}

.project-features ul {
  padding-left: 20px;
  margin: 10px 0;
}

.project-features li {
  margin-bottom: 8px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.project-link-modal {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 25px;
}

.project-link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #9cc4a9;
  color: white;
  padding: 14px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.3s ease;
  text-align: center;
}

.project-link-btn:hover {
  background-color: #8ab397;
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
}

.video-icon {
  color: #f39191;
  margin-right: 5px;
  font-size: 0.9rem;
}

.artwork-text::-webkit-scrollbar {
  width: 6px;
}

.artwork-text::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.artwork-text::-webkit-scrollbar-thumb {
  background: #f39191;
  border-radius: 3px;
}

.video-wrapper.autoplay-blocked::before {
  content: '▶ Click to play video';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 15px 25px;
  border-radius: 30px;
  font-family: 'Barrio';
  font-size: 1.2rem;
  z-index: 3;
  cursor: pointer;
  border: 2px solid #f39191;
}

.video-wrapper.autoplay-blocked:hover::before {
  background: rgba(243, 145, 145, 0.9);
  color: #000;
}

@media (max-width: 1200px) {
  .project-video-container {
    flex-direction: column;
    gap: 30px;
    max-height: 95vh;
  }
  .video-wrapper {
    order: 1;
  }
  .artwork-text {
    flex: none;
    max-height: 40vh;
    order: 2;
    width: 100%;
  }
}

@media (max-width: 992px) {
  .artwork-content {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
  #artwork-img {
    max-width: 90vw !important;
    max-height: 50vh !important;
  }
  .artwork-text {
    max-width: 90%;
  }
  .artwork-text h2 {
    font-size: 1.8rem;
  }
  .artwork-text p {
    font-size: 0.95rem;
    max-height: 200px;
  }
}

@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .about-img-container {
    margin-bottom: 20px;
  }
  .about-title {
    top: -20px;
    font-size: 1.8rem;
  }
  .about-text {
    max-width: 100%;
  }
  .modal-close-btn {
    top: 15px;
    right: 20px;
    font-size: 40px;
  }
  #artwork-img {
    max-height: 55vh !important;
  }
  .code-project-preview p {
    min-height: auto;
  }
  .code-project .gallery-img {
    height: 200px;
  }
  .artwork-text p {
    font-size: 0.9rem;
  }
  .project-video-container {
    gap: 20px;
  }
  .project-video {
    max-height: 50vh;
  }
  .artwork-text h2 {
    font-size: 1.8rem;
  }
  .project-details {
    padding: 15px;
  }
  .project-link-modal {
    flex-direction: column;
  }
  .project-link-btn {
    padding: 12px 20px;
    font-size: 0.95rem;
  }
}