body {
	font-family: "Sora", sans-serif;
	height: auto !important;
	font-weight: 300;
	color: #1E1E1E;
	letter-spacing: 0.5px;
	font-size: 16px;
}

a {
	text-decoration: none ;
}
a:focus, .btn:focus {
	outline: none;
	outline-offset: 0px;
}
a:hover, a:focus {
	text-decoration: none;
}
ul {
	margin: 0px;
	padding: 0px;
}
li {
	list-style: none;
}
header {
	transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	will-change: transform, opacity, box-shadow;
	backface-visibility: hidden;
}

/* Header Hide/Show Animation with Enhanced Smoothness */
.header-hidden {
	transform: translate3d(0, -100%, 0);
	opacity: 0.95;
	/* box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05); */
	transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
	            opacity 0.3s ease-out,
	            box-shadow 0.3s ease-out;
}

.header-visible {
	transform: translate3d(0, 0, 0);
	opacity: 1;
	/* box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); */
	transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1),
	            opacity 0.4s ease-in,
	            box-shadow 0.4s ease-in;
}

/* Additional smooth animations for header elements */
header * {
	transition: all 0.3s ease;
}

/* Backdrop blur effect when header is sticky */
.sticky-header header {
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	background-color: #0E2837;
}

.dark .sticky-header header {
	background-color: #0E2837;
}

/* Smooth hover effects for header links */
header a {
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
}

header a:hover {
	transform: translateY(-1px);
}

/* Smooth scaling animation for logo/icons */
header svg, header img {
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

header svg:hover, header img:hover {
	transform: scale(1.05);
}

/* Smooth scrolling state effects */
.is-scrolling header {
}

/* Enhanced mobile menu animations */
.menu-togg {
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


/* Smooth header content animations */
.smooth-header .header-content {
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Additional smooth effects for buttons in header */
header button, header .btn {
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	transform-origin: center;
}

header button:hover, header .btn:hover {
	transform: translateY(-1px) scale(1.02);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

header button:active, header .btn:active {
	transform: translateY(0) scale(0.98);
	transition: all 0.1s ease;
}

/* Smooth text animations */
header .text-animate {
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced dark mode transitions */
.dark header {
	transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Parallax-like effect for header background */
@media (prefers-reduced-motion: no-preference) {
	header {
		transform-style: preserve-3d;
	}
	
	.header-visible {
		animation: slideInDown 0.5s cubic-bezier(0.23, 1, 0.32, 1);
	}
	
	.header-hidden {
		animation: slideOutUp 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
	}
}

@keyframes slideInDown {
	from {
		transform: translate3d(0, -100%, 0);
		opacity: 0.8;
	}
	to {
		transform: translate3d(0, 0, 0);
		opacity: 1;
	}
}

@keyframes slideOutUp {
	from {
		transform: translate3d(0, 0, 0);
		opacity: 1;
	}
	to {
		transform: translate3d(0, -100%, 0);
		opacity: 0.9;
	}
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
	header, .header-hidden, .header-visible {
		animation: none;
		transition: opacity 0.2s ease;
	}
}
section {
	position: relative;
	z-index: 5;
}
p {
	font-weight: normal;
}
.container {
	max-width: 1151px !important;
	margin: 0 auto;
}

@tailwind base;
@tailwind components;
@tailwind utilities;

.menu-togg {
  display: none !important;
}

.banner-section {
  height: 100vh;
  background-image: url('../img/banner-bg.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

/* Dropdown Menu Animations */
.sub-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
  min-width: 200px;
  padding: 8px 0;
  margin-top: 8px;
  z-index: 1000;
}

.dark .sub-menu {
  background: rgba(17, 24, 39, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Hover state for dropdown */
.relative:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Individual dropdown items */
.sub-menu li {
  position: relative;
  overflow: hidden;
}

.sub-menu li a {
  display: block;
  padding: 12px 20px;
  color: #374151;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  z-index: 2;
}

.dark .sub-menu li a {
  color: #e5e7eb;
}

/* Hover effect for dropdown items */
.sub-menu li a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(248, 153, 33, 0.1), transparent);
  transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.sub-menu li:hover a::before {
  left: 100%;
}

.sub-menu li:hover a {
  color: #F89921;
  transform: translateX(8px);
  background: rgba(248, 153, 33, 0.05);
}

.dark .sub-menu li:hover a {
  color: #F89921;
  background: rgba(248, 153, 33, 0.1);
}

/* Smooth arrow indicator */
.menu-outer ul > li.main-menu > a::after {
  content: '';
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.7;
}

.relative:hover > a::after {
  transform: translateY(-50%) rotate(180deg);
}

/* Focus states for accessibility */
.relative:focus-within .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Mobile dropdown adjustments */
@media (max-width: 768px) {
  .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    border: none;
    margin: 0;
    padding: 0;
    min-width: auto;
  }
  
  .sub-menu li a {
    padding: 8px 0 8px 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
  }
  
  .dark .sub-menu li a {
    color: rgba(229, 231, 235, 0.8);
  }
  
  .sub-menu li:hover a {
    color: #F89921;
    transform: none;
    background: none;
  }
}

/* Enhanced animation for dropdown items */
@keyframes slideInFromTop {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.sub-menu li {
  animation: slideInFromTop 0.3s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.sub-menu li:nth-child(1) { animation-delay: 0.05s; }
.sub-menu li:nth-child(2) { animation-delay: 0.1s; }
.sub-menu li:nth-child(3) { animation-delay: 0.15s; }
.sub-menu li:nth-child(4) { animation-delay: 0.2s; }

/* JavaScript-controlled dropdown states */
.dropdown-active .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.dropdown-showing {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Enhanced dropdown arrow animation */
.dropdown-active > a::after {
  transform: translateY(-50%) rotate(180deg);
}

/* Smooth dropdown item stagger animation */
.dropdown-showing .sub-menu li {
  animation: slideInFromTop 0.3s cubic-bezier(0.4, 0, 0.2, 1) both;
}

.dropdown-showing .sub-menu li:nth-child(1) { animation-delay: 0.05s; }
.dropdown-showing .sub-menu li:nth-child(2) { animation-delay: 0.1s; }
.dropdown-showing .sub-menu li:nth-child(3) { animation-delay: 0.15s; }
.dropdown-showing .sub-menu li:nth-child(4) { animation-delay: 0.2s; }

/* Enhanced focus states for accessibility */
.dropdown-active > a {
  color: #F89921 !important;
  transform: translateY(-1px);
}

/* Smooth transition for dropdown container */
.relative {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced mobile dropdown behavior */
@media (max-width: 768px) {
  .dropdown-active .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: none;
    box-shadow: none;
    border: none;
    margin: 8px 0;
    padding: 0;
    border-radius: 8px;
  }
  
  .dropdown-active .sub-menu li a {
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .dropdown-active .sub-menu li:last-child a {
    border-bottom: none;
  }
  
  .dropdown-active .sub-menu li:hover a {
    color: #F89921;
    background: rgba(248, 153, 33, 0.1);
    transform: none;
  }
}

/* Performance optimizations */
.sub-menu {
  will-change: transform, opacity, visibility;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .sub-menu,
  .sub-menu li,
  .relative > a::after {
    transition: none;
    animation: none;
  }
  
  .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}

header::after, header::before {
  display: none !important;
}

.sticky-header header::after, .sticky-header header::before {
  display: block !important;
}


.filter-btn.active {
  background-color: #0E2837 !important;
  color: white !important;
  border-color: #0E2837 !important;
}

.portfolio-item {
  transition: all 0.5s ease-in-out;
}

.portfolio-item.hidden {
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
}

.portfolio-item.visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}
.popup-btns {
background-color: #0c2d3b; 
  color: white; 
  border: none; 
  border-radius: 30px; 
  padding: 12px 28px; 
  font-size: 16px; 
  cursor: pointer; 
  display: inline-flex; 
  align-items: center;
  gap: 8px;

}
/* Gallery */
.project-gallery h3 { margin-top:0; }
.gallery-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-item img { width:100%; display:block; border-radius:10px; box-shadow: 0 6px 16px rgba(0,0,0,.06); }

@media (max-width: 980px){
  .project-body .project-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px){
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px){
  .gallery-grid { grid-template-columns: 1fr; }
}

/* Lightbox */
.lb { position: fixed; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.82);
  z-index: 9999; padding: 24px; }
.lb[hidden] { display: none; }
.lb__img { max-width: 92vw; max-height: 88vh; border-radius: 8px; box-shadow: 0 12px 40px rgba(0,0,0,.5); }
.lb__close, .lb__prev, .lb__next {
position: absolute; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3);
color: #fff; backdrop-filter: blur(4px); border-radius: 999px; width: 44px; height: 44px;
display: grid; place-items: center; cursor: pointer;
}
.lb__close { top: 16px; right: 16px; font-size: 26px; line-height: 1; }
.lb__prev  { left: 18px;  top: 50%; transform: translateY(-50%); font-size: 22px; }
.lb__next  { right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; }
.lb__close:hover, .lb__prev:hover, .lb__next:hover { background: rgba(255,255,255,.28); }

/* ===== Gallery Grid ===== */
.project-gallery .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.project-gallery h3 {
  font-size: clamp(1.25rem, 1.6vw, 1.75rem);
  margin: 0 0 1rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.gallery-item {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 4 / 3; /* keeps tidy tiles even before image loads */
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s ease, filter .35s ease;
  will-change: transform;
}

.gallery-item:focus-visible img,
.gallery-item:hover img {
  transform: scale(1.04);
  filter: brightness(1.02);
}

/* ===== Lightbox ===== */
.lb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lb-overlay[aria-hidden="false"] { display: flex; }

.lb-frame {
  position: relative;
  max-width: min(92vw, 1200px);
  max-height: 86vh;
  width: 100%;
  outline: none;
}

.lb-image {
  width: 100%;
  height: auto;
  max-height: 86vh;
  display: block;
  border-radius: 12px;
}

.lb-close,
.lb-prev,
.lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: rgba(0,0,0,.55);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0;
}

.lb-close { 
  top: 12px; 
  right: 12px; 
  transform: none; 
  width: 40px; 
  height: 40px;
}

.lb-prev { left: -56px; }
.lb-next { right: -56px; }

.lb-next::before,
.lb-prev::before,
.lb-close::before {
  display: inline-block;
  font-size: 18px;
  line-height: 1;
}

.lb-prev::before { content: "◀"; }
.lb-next::before { content: "▶"; }
.lb-close::before { content: "✕"; }

/* Hide arrows on very small screens to avoid overlap; swipe still works */
@media (max-width: 640px) {
  .lb-prev, .lb-next { display: none; }
}

/* Optional: fade-in animation */
@keyframes lbFade {
  from { opacity: 0; transform: scale(.98); }
  to   { opacity: 1; transform: scale(1); }
}
.lb-image { animation: lbFade .2s ease; }
.page-numbers {
  display: inline-block;
  padding: 8px 12px;
  border: 1px solid #ccc;
  margin: 0 4px;
}

.page-numbers.current {
  background-color: #333;
  color: white;
}
.single-description ul li { list-style: disc !important; margin: 0 0 1rem 1.25rem; }
.single-description ol li { list-style: decimal !important; margin: 0 0 1rem 1.25rem; }
.single-description li { margin: 0.25rem 0; }
.single-description p { margin: 0 0 1rem; line-height: 1.6; }
.single-description h3 { margin: 1.5rem 0 0.75rem; font-size: 1.25rem; font-weight: 600; }

