﻿*{margin:0;padding:0;box-sizing:border-box;}
html{scroll-behavior:smooth;}

body{
  font-family:'Manrope',sans-serif;
  background:var(--bg-main);
  color:var(--text-main);
  overflow-x:hidden;
}


:root{
  --bg-main:#060606;
  --bg-secondary:#0e0e0e;
  --text-main:#ffffff;
  --text-muted:rgba(255,255,255,0.7);
  --accent1:#7b2ff7;
  --accent2:#ff7a18;
	--header-bg:rgba(10,10,10,0.85);
--header-bg-solid:#0e0e0e;
}

body{
  background:var(--bg-main);
  color:var(--text-main);
  transition:background 0.4s ease,color 0.4s ease;
	text-align: center;
}

/* LIGHT MODE */
body.light-mode{
  --bg-main:#f6f7fb;
  --bg-secondary:#ffffff;
  --text-main:#111111;
  --text-muted:#555;
	--header-bg:rgba(255,255,255,0.85);
--header-bg-solid:#ffffff;
}

/* Progress bar */
#progress-bar{position:fixed;top:0;left:0;height:4px;background:linear-gradient(90deg,#7b2ff7,#ff7a18);width:0;z-index:9999;transition:0.25s ease;}

/* Background Animation */
body, html{
  width:100%;
  min-width:100%;
}

.bg-creative{
  position:fixed;
  top:0; left:0;
  width:100vw;
  height:100vh;
  z-index:-1;
  background:
    radial-gradient(circle at 20% 30%, rgba(123,47,247,0.12), transparent 60%),
    radial-gradient(circle at 80% 70%, rgba(255,122,24,0.10), transparent 60%);
  animation:bgmove 20s infinite alternate linear;
}

/* Scrollbar */
::-webkit-scrollbar{width:10px;}
::-webkit-scrollbar-track{background:#111;}
::-webkit-scrollbar-thumb{background:linear-gradient(#3a0ca3,#7b2ff7);border-radius:10px;}

/* Header */
.header{
  position:sticky;
  top:0;
  height:110px;
  background:var(--header-bg);
  backdrop-filter:blur(15px);
  display:flex;
  align-items:center;
  z-index:1000;
  transition:0.3s ease;
}

.container{width:90%;max-width:1300px;margin:auto;}
.nav-container{display:flex;justify-content:space-between;align-items:center;}
.logo img{height:105px;}
.nav{display:flex;gap:20px;align-items:center;}
.nav a{font-family:'Sora',sans-serif;font-weight:600;text-decoration:none;color:var(--text-main);letter-spacing:.5px;transition:.3s;}
.nav a:hover{color:#7b2ff7;}
.header-socials{display:flex;gap:18px;}
.header-socials a{color:var(--text-main);font-size:18px;transition:.3s;}
.header-socials a:hover{color:#7b2ff7;transform:translateY(-2px);}

/* Hero Section - Fully Horizontal */
.hero{display:flex;justify-content:space-between;align-items:center;gap:50px;min-height:80vh;padding:0 20px;}
.hero-text h1{font-family:'Sora',sans-serif;font-size:50px;font-weight:700;background:linear-gradient(90deg,#7b2ff7,#ff7a18);-webkit-background-clip:text;-webkit-text-fill-color:transparent;}
.hero-text p{margin:20px 0 30px;font-size:20px;opacity:.8;}
.hero-image img{
  width:320px; /* half size */
  border-radius:15px;
}




/* Buttons */
.btn{ background:linear-gradient(135deg,#3a0ca3,#7b2ff7);
  color:#ffffff !important;padding:14px 32px;border-radius:40px;text-decoration:none;font-weight:600;display:inline-flex;align-items:center;gap:10px;transition:.3s;overflow:hidden;position:relative;}
.btn:hover{transform:translateY(-3px);}
.small{padding:12px 30px;font-size:14px;}
.large{padding:18px 50px;font-size:18px;}
.magnetic{transition:transform 0.2s ease;}
.ripple-effect{position:absolute;border-radius:50%;transform:scale(0);animation:ripple 0.6s linear;background:rgba(255,255,255,0.3);}
@keyframes ripple{to{transform:scale(4);opacity:0;}}


body.light-mode .btn{
  color:#ffffff !important;
}

/* Sections */
.section{
  scroll-margin-top: 130px;
  padding:100px 0;   /* was 140px */
  opacity:0;
  transform:translateY(60px);
  transition:1s ease;
}
.section.active{opacity:1;transform:translateY(0);}
h2{font-family:'Sora',sans-serif;font-size:36px;font-weight:600;margin-bottom:10px;}

/* AI Section - Neon Glow + Tilt */
.ai-priority{margin-top:-60px;}
.ai-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:30px;}

.ai-card{
  position:relative;
  overflow:hidden;
  border-radius:20px;
  height:550px;
  border:3px solid rgba(255,255,255,0.8);
  background:#000;
}

.ai-card img{width:100%;height:100%;object-fit:cover;display:block;}
.ai-gif{position:absolute;top:0;left:0;opacity:0;}
.ai-card:hover .ai-gif{opacity:1;}
.ai-card:hover .ai-thumb{opacity:0;}


/* ===== Premium Section Divider ===== */

.section-divider{
  position:relative;
  width:100%;
  height:120px;
  overflow:hidden;
  pointer-events:none;
}

.section-divider svg{
  position:absolute;
  bottom:0;
  width:100%;
  height:100%;
}

.section-divider path{
  fill:var(--bg-main);
  transition:fill 0.4s ease;
}

/* Animated gradient glow behind wave */
.section-divider::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(
    120deg,
    rgba(123,47,247,0.15),
    rgba(255,122,24,0.15),
    rgba(123,47,247,0.15)
  );
  background-size:200% 200%;
  animation:dividerFlow 12s ease infinite;
  opacity:0.6;
}

@keyframes dividerFlow{
  0%{background-position:0% 50%;}
  50%{background-position:100% 50%;}
  100%{background-position:0% 50%;}
}



/* Horizontal AI Scroll System */
.ai-scroll-wrapper{
  position:relative;
  display:flex;
  align-items:center;
}

.ai-scroll{
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  display:flex;
  width:100%;
}

.ai-scroll::-webkit-scrollbar{
  display:none;
}

.ai-page{
  min-width:100%;
  scroll-snap-align:start;
  padding: 45px 45px;
}

/* Keep your existing grid */
.ai-page .ai-grid{
  grid-template-columns:repeat(3,1fr);
}

/* Navigation arrows */
.ai-nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:45px;
  height:45px;
  border-radius:50%;
  border:none;
  background:rgba(0,0,0,0.7);
  color:white;
  cursor:pointer;
  z-index:10;
  transition:0.3s;
}

.ai-nav:hover{
  background:linear-gradient(135deg,#7b2ff7,#ff7a18);
}

.ai-nav.left{left:-20px;}
.ai-nav.right{right:-20px;}


/* Galleries */
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:40px;}
.grid img{width:100%;border-radius:20px;transition:.4s;}


@keyframes strokeFlow{
  0%{background-position:0% 50%;}
  100%{background-position:100% 50%;}
}



.grid a{
  position: relative;
  display: block;
  border-radius: 20px;
  overflow: hidden;
}

/* INNER GRADIENT STROKE */
.grid a::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:20px;
  padding:5px;

  background: linear-gradient(120deg, #7b2ff7, #ff7a18, #7b2ff7);
  background-size: 300% 300%;

  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;

  opacity:0;
  transition:0.3s ease;
  pointer-events:none;
}

/* SHOW ON HOVER */
.grid a:hover::before{
  opacity:1;
  animation:strokeFlow 2.5s linear infinite;
}

/* IMAGE STAYS STILL */
.grid img{
  border-radius:20px;
  display:block;
}











/* Section button spacing */
.see-more-wrapper{margin-top:70px;text-align:center;}

/* Full Portfolio Footer Button */
.full-portfolio-footer{text-align:center;margin:80px 0;}
.full-portfolio-footer .btn{font-size:18px;padding:18px 50px;}

/* Footer */
.footer{border-top:1px solid rgba(255,255,255,0.1);padding:30px 0;}
.footer-inner{display:flex;flex-direction:column;align-items:center;gap:20px;}
.footer-links{display:flex;gap:25px;}
.footer-links a{color:var(--text-main);font-size:18px;opacity:.6;transition:.3s;}
.footer-links a:hover{opacity:1;color:#7b2ff7;}

/* Scroll Top */
#scrollTopBtn{position:fixed;bottom:30px;right:30px;width:50px;height:50px;border:none;border-radius:50%;background:#3a0ca3;color:white;display:none;justify-content:center;align-items:center;cursor:pointer;transition:.3s;}
#scrollTopBtn:hover{background:#7b2ff7;}

/* About Me Social Icons */
.about-socials{margin-top:40px;display:flex;gap:25px;justify-content:center;}
.about-socials a{color:#A2A2A2;font-size:22px;transition:.3s;}
.about-socials a:hover{color:#7b2ff7;transform:translateY(-3px);}

/* Responsive */
@media(max-width:992px){
  .hero{flex-direction:column;text-align:center;}
  .hero-image img{
  width:220px;
  margin-top:20px;
	  
	  
}
	
.hamburger{
  display:flex;
}

.nav{
  display:none;
}
	
  .grid,.ai-grid{grid-template-columns:1fr;}
  .nav{display:none;}
	
	
	.hero-text h1{font-size:36px;}
.hero-text p{font-size:16px;}
h2{font-size:26px;margin-bottom:35px;}
.ai-card{height:420px;}
	
}


.about-box{
  max-width:750px;
  background:rgba(255,255,255,0.04);
  border:1px solid rgba(255,255,255,0.08);
  padding:40px;
  border-radius:20px;
  backdrop-filter:blur(10px);
  line-height:1.8;
	display: inline-block;
}

.about-text{
  max-width:650px;
}



/* Animated Border Layer */
.ai-card::before{
  content:'';
  position:absolute;
  inset:0;
  border-radius:20px;
  padding:2px;
  background:linear-gradient(120deg,#ffffff,#7b2ff7,#ff7a18,#ffffff);
  background-size:300% 300%;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity:0;
  transition:opacity 0.4s ease;
  pointer-events:none;
}

.ai-card:hover::before{
  opacity:1;
  animation:borderFlow 3s linear infinite;
}

@keyframes borderFlow{
  0%{background-position:0% 50%;}
  100%{background-position:100% 50%;}
}



.ai-card::after{
  content:'';
  position:absolute;
  top:0;
  left:-75%;
  width:50%;
  height:100%;
  background:linear-gradient(
    120deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.2) 50%,
    rgba(255,255,255,0) 100%
  );
  transform:skewX(-20deg);
}

.ai-card:hover::after{
  animation:lightSweep 1s ease forwards;
}

@keyframes lightSweep{
  100%{left:130%;}
}



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

.theme-toggle{
  background:transparent;
  border:1px solid rgba(255,255,255,0.2);
  width:42px;
  height:42px;
  border-radius:50%;
  cursor:pointer;
  color:var(--text-main);
  transition:0.3s;
}

.theme-toggle:hover{
  border-color:var(--accent1);
  transform:rotate(15deg);
}

/* Hamburger */
.hamburger{
  display:none;
  flex-direction:column;
  gap:5px;
  cursor:pointer;
}

.hamburger span{
  width:24px;
  height:2px;
  background:var(--text-main);
  transition:0.3s;
}







.mobile-menu{
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg,#0e0e0e,#060606);
  padding: 120px 30px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  transition: 0.5s ease;
  z-index: 999;
}

.mobile-menu a{
  font-size: 22px;
  text-decoration: none;
  color: white;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  opacity: 0;
  transform: translateX(30px);
  transition: 0.4s;
}

.mobile-menu.open a{
  opacity: 1;
  transform: translateX(0);
}

/* stagger animation */
.mobile-menu.open a:nth-child(1){transition-delay:0.1s;}
.mobile-menu.open a:nth-child(2){transition-delay:0.2s;}
.mobile-menu.open a:nth-child(3){transition-delay:0.3s;}
.mobile-menu.open a:nth-child(4){transition-delay:0.4s;}
.mobile-menu.open a:nth-child(5){transition-delay:0.5s;}





.hamburger.active span:nth-child(1){
  transform: rotate(45deg) translate(5px,5px);
}
.hamburger.active span:nth-child(2){
  opacity: 0;
}
.hamburger.active span:nth-child(3){
  transform: rotate(-45deg) translate(6px,-6px);
}













.header{
  transition:0.3s ease;
}

.header.shrink{
  height:90px;
  background:var(--header-bg-solid);
}


.section-separator{
  position: relative;
  width: 60%;       /* centered, not full width */
  height: 3px;      /* very thin */
  margin: 60px auto; /* space between sections & center */
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(123,47,247,0), #7b2ff7, #ff7a18, rgba(123,47,247,0));
  background-size: 300% 100%;
  animation: separatorMove 5s linear infinite;
}

@keyframes separatorMove{
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Light Mode Override */
body.light-mode .section-separator{
  background: linear-gradient(90deg, rgba(255,255,255,0), #7b2ff7, #ff7a18, rgba(255,255,255,0));
}





/* Modal overlay */
.ai-modal{
  position: fixed;
  top:0; left:0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.4);      /* lighter dark, not full black */
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  overflow: hidden;
  backdrop-filter: blur(12px);      /* more elegant blur */
  transition: background 0.3s ease;
}

/* Modal content */
.ai-modal-content{
  position: relative;
  width: 90%;
  max-width: 1200px;
  height: 90%;
  background: rgba(10,10,10,0.95);   /* slightly transparent black */
  border-radius: 20px;
  overflow: hidden;
  transform: scale(0.8);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

/* Show modal content animation */
.ai-modal.show .ai-modal-content{
  transform: scale(1);
  opacity: 1;
}

/* Iframe */
.ai-modal-content iframe{
  width: 100%;
  height: 100%;
  border: none;
}

/* Close button */
.ai-modal-close{
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 28px;
  color: #fff;
  background: rgba(0,0,0,0.2);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  padding: 5px 12px;
  transition: transform 0.2s, background 0.3s;
}

.ai-modal-close:hover{
  transform: scale(1.2);
  background: rgba(255,255,255,0.2);
  color: #ff7a18;
}
















/* Skills Section */
.skills-section{
  text-align:center;
  padding:100px 180px;
}

.skills-intro{
  max-width:700px;
  margin: 0 auto 60px auto;
  font-size:18px;
  opacity:0.8;
}




/* Grid of software */
.skills-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:40px;
  justify-items:center;
  align-items:center;
}

.skills-grid img{
  width:60px;  /* Adjust as needed */
  height:60px;
  margin-bottom:15px;
  transition: transform 0.3s ease;
}



/* Individual skill cards */
.skill-card{
  
	background-color: #191919;
  border-radius:20px;
  padding:30px;
  width:150px;
  height:150px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  cursor:pointer;
  position:relative;
  overflow:hidden;
}

.skill-card img{
  width:60px;
  height:60px;
  margin-bottom:15px;
  transition: transform 0.3s ease;
}

.skill-card span{
  font-family:'Sora',sans-serif;
  font-weight:600;
  color:var(--text-main);
}

/* Hover animations */
.skill-card:hover{
  transform: translateY(-8px) scale(1.05);
}

.skill-card:hover img{
  transform: scale(1.2) rotate(10deg);
}

/* Fade-in on scroll */
.skills-section, .skill-card{
  opacity:0;
  transform:translateY(40px);
  transition: all 0.8s ease;
}

.skills-section.active, .skill-card.active{
  opacity:1;
  transform:translateY(0);
}

/* Light mode override */
body.light-mode .skill-card{
  background: #f6f7fb;
  border:2px solid rgba(0,0,0,0.08);
}












/* Interactive Drawings Section */
.interactive-drawings{
  padding:120px 0;
  text-align:center;
  position:relative;
}

.interactive-drawings h2{
  font-family:'Sora',sans-serif;
  font-size:36px;
  font-weight:700;
  margin-bottom:25px;
}

.interactive-drawings p{
  font-size:18px;
  opacity:0.8;
}

.floating-drawings{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:40px;
  perspective:1000px;
}

.floating-drawings .drawing-card{
  background:rgba(255,255,255,0.03);
  border:1px solid rgba(255,255,255,0.1);
  border-radius:25px;
  padding:15px;
  width:260px;
  height:auto;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  cursor:pointer;
  transition:transform 0.3s ease, box-shadow 0.3s ease;
  position:relative;
}

.floating-drawings .drawing-card img{
  width:100%;
  height:320px;
  object-fit:cover;
  border-radius:20px;
  margin-bottom:15px;
}

.drawing-title{
  font-size:18px;
  font-weight:700;
  color:orange;
  margin-bottom:5px;
}

.drawing-subtext{
  font-size:14px;
  color:white;
  margin-bottom:10px;
  opacity:0.85;
}

.drawing-price{
  font-size:16px;
  font-weight:600;
  color:grey;
  margin-bottom:10px;
}

.order-button{
  background:orange;
  color:#111;
  border:none;
  border-radius:12px;
  padding:8px 16px;
  font-weight:700;
  cursor:pointer;
  transition:all 0.3s ease;
}

.order-button:hover{
  background:#ff9c33;
  transform:scale(1.05);
}

/* Tooltip */
.floating-drawings .drawing-card::after{
  position:absolute;
  bottom:-30px;
  left:50%;
  padding:5px 12px;
  border-radius:10px;
  font-size:13px;
  opacity:0;
  pointer-events:none;
  transition:opacity 0.5s;
}



/* Floating Animation */
.floating-drawings .drawing-card{
  animation:float 5s ease-in-out infinite alternate;
}

.floating-drawings .drawing-card:nth-child(2){animation-delay:0.3s;}
.floating-drawings .drawing-card:nth-child(3){animation-delay:0.6s;}
.floating-drawings .drawing-card:nth-child(4){animation-delay:0.9s;}
.floating-drawings .drawing-card:nth-child(5){animation-delay:1.2s;}

@keyframes float{
  0%{transform:translateY(0px);}
  100%{transform:translateY(-20px);}
}













body.light-mode .drawing-card {
  background: #f0f0f0; /* light background for the card */
  border: 1px solid #ddd;
}

body.light-mode .drawing-card img {
  filter: brightness(1); /* remove any darkening effect */
}

body.light-mode .drawing-title {
  color: #ff7a18; /* still stands out on light background */
}

body.light-mode .drawing-subtext {
  color: #333; /* darker text for readability */
  opacity: 0.85;
}

body.light-mode .about-socials {
	color: #ff7a18;
}

body.light-mode .drawing-price {
  color: #111; /* clear, readable price */
}

body.light-mode .order-button {
  background: linear-gradient(135deg,#3a0ca3,#7b2ff7); /* same gradient */
  color: #fff; /* button text stays white on gradient */
}









@media (max-width: 768px){

  /* Global spacing */
  .section{
    padding: 70px 0;
  }

  .container{
    width: 92%;
  }

  h2{
    font-size: 24px;
    margin-bottom: 25px;
    text-align: center;
  }

  p{
    font-size: 15px;
    line-height: 1.6;
  }

}










@media (max-width: 768px){

  .hero{
    flex-direction: column;
    gap: 25px;
    text-align: center;
    padding-top: 40px;
  }

  .hero-text h1{
    font-size: 28px;
    line-height: 1.2;
  }

  .hero-text p{
    font-size: 16px;
    margin: 15px 0 20px;
  }

  .hero-image img{
    width: 180px;
    border-radius: 12px;
  }

	
	@media (max-width: 768px){
  .hero-image{
    display: none;
	  overflow: hidden;
  }
}
	@media (max-width: 768px){

  .hero{
    text-align: center;
    padding: 60px 20px;
	  min-height: auto;
  }

  .hero-content{
    max-width: 100%;
  }
}
	
	
  .hero-text img{
    width: 90px;
    margin-bottom: 10px;
  }

}





















@media (max-width: 768px){

  .grid{
    gap: 20px;
  }

  .ai-grid{
    gap: 20px;
  }

  .ai-card{
    height: 360px;
  }

}











@media (max-width: 768px){

  .btn{
    padding: 14px 22px;
    font-size: 14px;
  }

  .small{
    padding: 12px 20px;
  }

}





@media (max-width: 768px){

  .ai-card:active{
    transform: scale(0.97);
  }

  .btn:active{
    transform: scale(0.96);
  }

}













/* ===== Horizontal Scroll Sections ===== */

.horizontal-section{
  position: relative;
}

.h-scroll-wrapper{
  position: relative;
  display: flex;
  align-items: center;
}

.h-scroll{
  display: flex;
  gap: 25px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 0 50px; /* space for arrows */
}

.h-scroll::-webkit-scrollbar{
  display: none;
}

/* Default item */
.h-item{
  flex: 0 0 calc(25% - 20px); /* 4 per row default */
}

.h-scroll[data-scroll="5"] .h-item{
  flex: 0 0 calc(20% - 20px); /* 5 per row */
}








/* Images */
.h-item img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  transition: 0.4s;
}

.h-item img:hover{
  transform: scale(1.05);
}

/* Navigation buttons */
.h-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.7);
  color: white;
  cursor: pointer;
  z-index: 10;
  transition: 0.3s;
}

.h-nav:hover{
  background: linear-gradient(135deg,#7b2ff7,#ff7a18);
}

.h-nav.left{left:-20px;}
.h-nav.right{right:-20px;}

/* ===== Recent Works Card ===== */

.work-card{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.work-info h3{
  font-size: 16px;
  font-weight: 600;
}

.work-info p{
  font-size: 14px;
  opacity: 0.7;
}

/* ===== MOBILE ===== */

@media (max-width: 768px){

  .h-item{
    flex: 0 0 75%;
  }

  .h-scroll[data-scroll="5"] .h-item{
    flex: 0 0 75%;
  }

  .h-nav{
    display: none;
  }

}














#bw-drawings .h-item{
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
}

/* FORCE visible glow */
#bw-drawings .h-item::before{
  content:'';
  position:absolute;
  inset:0;
  border-radius:18px;
  padding:2px;
  background:linear-gradient(120deg,#ffffff,#7b2ff7,#ff7a18,#ffffff);
  background-size:300% 300%;

  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;

  opacity:0;
  transition:0.4s;
  pointer-events:none;
}

#bw-drawings .h-item:hover::before{
  opacity:1;
  animation: bwGlowFlow 2.5s linear infinite;
}

@keyframes bwGlowFlow{
  0%{background-position:0% 50%;}
  100%{background-position:100% 50%;}
}

#bw-drawings .h-item img{
  display:block;
  width:100%;
  transition:0.4s;
}

#bw-drawings .h-item:hover img{
  transform:scale(1.06);
}

















/* ===== Image Viewer ===== */

.image-viewer{
  position: fixed;
  top:0;
  left:0;
  width:100vw;
  height:100vh;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(14px);
  display:flex;
  justify-content:center;
  align-items:center;
  z-index:99999;

  opacity:0;
  visibility:hidden;
  transition:0.4s ease;
}

.image-viewer.active{
  opacity:1;
  visibility:visible;
}

.image-viewer img{
  max-width:90%;
  max-height:85%;
  border-radius:14px;
  box-shadow:0 20px 60px rgba(0,0,0,0.6);
  transform:scale(0.9);
  transition:0.4s ease;
}

.image-viewer.active img{
  transform:scale(1);
}

/* close button */
.viewer-close{
  position:absolute;
  top:25px;
  right:30px;
  font-size:32px;
  color:white;
  background:rgba(0,0,0,0.3);
  border:none;
  border-radius:50%;
  width:45px;
  height:45px;
  cursor:pointer;
  transition:0.3s;
}

.viewer-close:hover{
  background:linear-gradient(135deg,#7b2ff7,#ff7a18);
}







/* AI Videos for gallery */

.ai-video{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  object-fit:cover;
  opacity:0;
  pointer-events:none;
  transition:opacity 0.3s ease;
}

.ai-card:hover .ai-video{
  opacity:1;
}

.ai-card:hover .ai-thumb{
  opacity:0;
}




/* NFTs MP4 display */

.media-wrapper{
  position: relative;
  width: 100%;
  height: 320px;
  border-radius:20px;
  overflow:hidden;
}

.media-wrapper img,
.media-wrapper video{
  position:absolute;
  width:100%;
  height:100%;
  object-fit:cover;
  top:0;
  left:0;
}

.drawing-video{
  opacity:1;
}










.work-modal-content{
  max-width: 900px;
  height: 90%;
  overflow-y: auto;
  padding: 20px;
}

.work-gallery{
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.work-gallery img{
  width: 100%;
  border-radius: 12px;
  transition: 0.3s;
}

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











#skills h2{
  margin-bottom: 8px;   /* tight to icons */
}

.tools-grid{
  display:flex;
  justify-content:center;
  gap:14px;
  margin-top:0;         /* removes extra gap */
}

.tool-box{
  width:38px;           /* bigger than before */
  height:38px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:10px;
  background:rgba(255,255,255,0.05);
  border:1px solid rgba(255,255,255,0.1);
  transition:0.25s ease;
}

.tool-box i{
  font-size:16px;       /* bigger icons */
  color:rgba(255,255,255,0.7);
  transition:0.25s ease;
}

.tool-box:hover i{
  color:#7b2ff7;
}

.tool-box:hover{
  background:rgba(123,47,247,0.12);
  border-color:rgba(123,47,247,0.4);
}













.works-scroll-wrapper{
  position:relative;
  display:flex;
  align-items:center;
}

.works-scroll{
  display:flex;
  overflow-x:auto;
  scroll-behavior:smooth;
  scroll-snap-type:x mandatory;
  width:100%;
}

.works-scroll::-webkit-scrollbar{
  display:none;
}

.works-page{
  min-width:100%;
  scroll-snap-align:start;
  padding:10px 0;
}

/* keep your existing grid but make it inside pages */
.works-page .grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:40px;
}

/* nav buttons */
.works-nav{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:45px;
  height:45px;
  border-radius:50%;
  border:none;
  background:rgba(0,0,0,0.7);
  color:white;
  cursor:pointer;
  z-index:10;
}

.works-nav.left{left:-20px;}
.works-nav.right{right:-20px;}

.works-nav:hover{
  background:linear-gradient(135deg,#7b2ff7,#ff7a18);
}



/* =========================
   VEHICLE HOVER STROKE
========================= */

.h-item{
  position: relative;
  border-radius: 18px;
  overflow: hidden;
	padding: 15px;
}

/* gradient inner stroke */
.h-item::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius:18px;
  padding:3px;

  background: linear-gradient(120deg,#7b2ff7,#ff7a18,#7b2ff7);
  background-size:300% 300%;

  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;

  opacity:0;
  transition:0.3s ease;
  pointer-events:none;
}

/* activate stroke */
.h-item:hover::before{
  opacity:1;
  animation: strokeFlow 2.5s linear infinite;
}

/* image behavior (NO SCALE ON IMAGE ITSELF) */
.h-item img{
  width:100%;
  display:block;
  border-radius:18px;
  transition:transform 0.35s ease;
}

/* subtle zoom only on hover container */
.h-item:hover img{
  transform: scale(1.03);
}

/* reuse your existing animation */
@keyframes strokeFlow{
  0%{background-position:0% 50%;}
  100%{background-position:100% 50%;}
}
