/* Glass effects */
.glass-slide {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.glass-tag {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Slide container - Wider appearance */
.slides-wrapper {
  border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
}

/* Navigation dots (kept for structure but hidden) */
.nav-dot.active-dot {
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  width: 12px;
  height: 12px;
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

/* Drag overlay for better UX */
.drag-overlay {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.drag-overlay:hover {
  opacity: 1;
}

/* Enhance iframe appearance - now fills container perfectly */
iframe {
  transition: transform 0.3s ease;
  width: 100%;
  height: 100%;
  display: block;
}

iframe:hover {
  transform: scale(1.01);
}

/* Wider container adjustments */
.max-w-\[98\%\] {
  max-width: 98% !important;
}

/* Scroll arrow animation */
@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.scroll-arrow i {
  animation: arrowBounce 2s infinite;
}

.scroll-arrow i:last-child {
  animation-delay: 0.2s;
}

@keyframes arrowBounce {

  0%,
  100% {
    transform: translateY(0);
    opacity: 0.7;
  }

  50% {
    transform: translateY(6px);
    opacity: 1;
  }
}

/* Hero full-screen layout - iframe fills all space */
.hero-full {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
  /* account for navbar */
  padding-bottom: 1rem;
  box-sizing: border-box;
}

/* Make the inner container take full available height */
.hero-full .slides-wrapper,
.hero-full .glass-slide,
.hero-full .relative.bg-black\/30 {
  height: 100%;
  min-height: 60vh;
  /* fallback, but flex will expand */
  flex: 1 1 auto;
}

/* Ensure the iframe container fills the glass slide */
.hero-full .relative.bg-black\/30 {
  display: flex;
  flex-direction: column;
}

.hero-full .relative.w-full.h-full {
  flex: 1 1 0%;
  min-height: 0;
  /* important for flex children */
}

/* Responsive adjustments for mobile */
@media (max-width: 640px) {
  .glass-slide {
    border-radius: 20px;
  }

  /* Adjust project name for mobile */
  .absolute.top-4.left-4 .glass-tag {
    padding: 0.4rem 0.6rem;
    max-width: 200px;
  }

  .absolute.top-4.left-4 .font-serif {
    font-size: 0.875rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .absolute.top-4.left-4 .w-8 {
    width: 1.5rem;
    height: 1.5rem;
  }

  .absolute.top-4.left-4 i {
    font-size: 0.75rem;
  }

  /* Adjust tour tag for mobile */
  .absolute.top-4.right-4 .glass-tag {
    padding: 0.3rem 0.5rem;
  }

  .absolute.top-4.right-4 span {
    font-size: 0.75rem;
  }

  /* Adjust drag instruction for mobile */
  .absolute.bottom-4 .glass-tag {
    padding: 0.3rem 0.5rem;
  }

  .absolute.bottom-4 span {
    font-size: 0.75rem;
  }

  .absolute.bottom-4 i {
    font-size: 0.75rem;
  }
}

@media (max-width: 480px) {

  /* Further adjustments for very small screens */
  .absolute.top-4.left-4 .glass-tag {
    max-width: 160px;
    padding: 0.3rem 0.5rem;
  }

  .absolute.top-4.left-4 .font-serif {
    font-size: 0.75rem;
  }

  .absolute.top-4.right-4 {
    right: 2px;
    top: 2px;
  }

  .absolute.top-4.left-4 {
    left: 2px;
    top: 2px;
  }

  .absolute.bottom-4 {
    bottom: 2px;
  }

  .absolute.bottom-4 span {
    display: none;
    /* Hide text on very small screens */
  }

  .absolute.bottom-4 .glass-tag {
    padding: 0.4rem;
  }

  .absolute.bottom-4 i {
    margin: 0;
  }

  /* Adjust padding for mobile */
  .px-2 {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* Tablet adjustments */
@media (min-width: 641px) and (max-width: 1024px) {
  .absolute.top-4.left-4 .font-serif {
    font-size: 1rem;
  }

  .absolute.top-4.left-4 .glass-tag {
    padding: 0.5rem 0.75rem;
  }

  /* Wider on tablets */
  .max-w-\[98\%\] {
    max-width: 98% !important;
  }
}

/* Desktop - Even wider */
@media (min-width: 1025px) {
  .max-w-\[98\%\] {
    max-width: 98% !important;
  }

  /* Optional: Remove max-width on very large screens */
  @media (min-width: 1536px) {
    .max-w-\[98\%\] {
      max-width: 99% !important;
    }
  }
}

/* Dragging cursor feedback */
.cursor-grab {
  cursor: grab;
}

.cursor-grabbing {
  cursor: grabbing;
}

/*Service section*/

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes neonGlow {

  0%,
  100% {
    text-shadow: 0 0 5px #3b82f6, 0 0 10px #3b82f6, 0 0 15px #3b82f6;
  }

  50% {
    text-shadow: 0 0 10px #60a5fa, 0 0 20px #60a5fa, 0 0 30px #60a5fa;
  }
}

@keyframes iconNeon {

  0%,
  100% {
    filter: drop-shadow(0 0 5px #3b82f6) drop-shadow(0 0 10px #3b82f6);
    stroke: #93c5fd;
  }

  50% {
    filter: drop-shadow(0 0 10px #60a5fa) drop-shadow(0 0 20px #60a5fa);
    stroke: #dbeafe;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.marquee-wrapper {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
  /* default speed (desktop) */
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

.marquee-wrapper:hover {
  animation-play-state: paused;
}

.marquee-item {
  flex: 0 0 25vw;
  min-width: 280px;
  padding: 0 2.5rem;
}

@media (max-width: 640px) {
  .marquee-item {
    min-width: 85vw;
  }
}

/*about section*/
.neon-text {
  text-shadow: 0 0 4px rgba(34, 211, 238, 0.6), 0 0 8px rgba(34, 211, 238, 0.4), 0 0 12px rgba(34, 211, 238, 0.2);
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.6;
  }

  50% {
    transform: scale(1.1);
    opacity: 1;
  }
}

.animate-pulse {
  animation: pulse 2s infinite ease-in-out;
}

/*stats section*/
.stat-box {
  @apply text-center p-4 rounded-xl border border-blue-900/40 bg-blue-950/10 hover:border-cyan-500/50 hover:bg-blue-900/20 transition;
}

.stat-value {
  @apply text-2xl font-light text-white mb-1;
  text-shadow: 0 0 10px rgba(34, 211, 238, 0.6);
}

.stat-label {
  @apply text-xs uppercase tracking-wider text-blue-300/70;
}

/*portfolio section*/
.grid>div {
  opacity: 0;
  transform: translateY(35px);
  transition: all 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

.grid>div.visible {
  opacity: 1;
  transform: translateY(0);
}

/*footer section*/

.social-icon {
  @apply w-10 h-10 rounded-full bg-gray-800/50 flex items-center justify-center text-gray-400 hover:text-cyan-300 hover:bg-gray-800 transition-all duration-300;
}

.footer-link {
  @apply text-gray-400 hover:text-cyan-300 transition-colors duration-300;
}

.contact-link {
  @apply block;
}

/* Modal animations */
#termsModal {
  animation: fadeIn 0.3s ease-out;
}

#termsModal>div {
  animation: slideUp 0.4s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Modern glass effects */
.glass-navbar {
  background: rgba(15, 15, 20, 0.874);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  /* border-bottom: 1px solid rgba(255, 255, 255, 0.07); */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.glass-overlay {
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
}

.glass-icon {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Modern nav links - REMOVED HOVER EFFECTS */
.nav-link-modern {
  position: relative;
  padding: 8px 0;
  transition: none; /* Removed transition */
  color: rgba(255, 255, 255, 0.75);
}

/* Removed hover styles for nav-link-modern */
.nav-link-modern:hover {
  color: rgba(255, 255, 255, 0.75); /* Kept same as default */
}

/* Removed the hover underline effect */
.nav-link-modern::before {
  display: none; /* Hidden completely */
}

/* Mobile link animation - REMOVED HOVER EFFECTS */
.mobile-link-modern {
  position: relative;
  overflow: hidden;
  padding: 12px 0;
}

/* Removed hover gradient effect */
.mobile-link-modern::before {
  display: none; /* Hidden completely */
}

.mobile-link-modern:hover::before {
  width: 0%; /* No effect */
}

/* Enhanced hamburger animation - KEPT */
.hamburger-modern span {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger-modern.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.hamburger-modern.active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.hamburger-modern.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* Social icons hover effect - KEPT AND REFINED */
.social-icon-modern {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.social-icon-modern::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: -100%;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.2), transparent);
  transition: left 0.6s ease;
}

.social-icon-modern:hover::after {
  left: 100%;
}

/* Overlay animation */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.slide-in {
  animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Mobile menu items stagger animation */
.stagger-item:nth-child(1) {
  animation-delay: 0.1s;
}

.stagger-item:nth-child(2) {
  animation-delay: 0.2s;
}

.stagger-item:nth-child(3) {
  animation-delay: 0.3s;
}

.stagger-item:nth-child(4) {
  animation-delay: 0.4s;
}

/* Logo glow effect - KEPT */
.logo-glow:hover {
  filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.3));
}

/* Remove old fixed heights - iframe now expands with flex */
.hero-full .h-\[300px\] {
  height: auto;
  min-height: 50vh;
}

/* ACTIVE PAGE ONLY */
.nav-link-modern.active {
  color: #22d3ee; /* active text color */
}

/* Active underline (separate from hover underline if you have one) */
.nav-link-modern.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #22d3ee, transparent);
  border-radius: 2px;
  opacity: 1;
}