:root {
  --animate-duration: 1s;
  --blue-500: rgb(59, 130, 246);
  --blue-600: rgb(37, 99, 235);
  --gray-50: rgb(249, 250, 251);
  --gray-600: rgb(75, 85, 99);
  --gray-900: rgb(17, 24, 39);
  --white: rgb(255, 255, 255);

  /* Modern color palette */
  --primary: #2563eb;
  --primary-light: #3b82f6;
  --bg-dark: #0f172a;
  --bg-light: #f8fafc;
  --text-dark: #1e293b;
  --text-light: #f1f5f9;
  --accent: #06b6d4;
  
  /* Spacing system */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2rem;
  --space-xl: 4rem;
  
  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: var(--gray-900);
  color: var(--white);
  min-height: 100vh;
}

.unscrollable {
  overflow: hidden;
}

.navbar {
  padding: 1.5rem 0;
  position: relative;
  z-index: 10;
}

.container {
  width: min(100% - 2rem, 80ch);
  margin-inline: auto;
  padding: var(--space-sm);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr; /* One column, full width */
  gap: 20px; /* Space between project cards */
  width: 100%;
}

.project-card {
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Adjust values for desired effect */
  transition: transform 0.3s ease, box-shadow 0.3s ease;

}

.project-card:hover {
  transform: scale(0.99);
  box-shadow: 0 0px 8px rgba(18, 200, 255, 0.171); /* Blue Shadow */
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}


.project-gallery img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 0.5rem;
  cursor: pointer;
}

.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px; /* Adjust as needed */
}

.loading-spinner {
  border: 4px solid rgba(255, 255, 255, 0.3); /* Light gray */
  border-top: 4px solid var(--blue-500); /* Blue */
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Page Transition Animation (Fade) */
.page-enter-active,
.page-leave-active {
  transition: opacity 0.3s ease;  /* Adjust duration as needed */
}

.page-enter-from,
.page-leave-to {
  opacity: 0;
}

.page-transition {
  opacity: 0; /* Initially hidden */
  transition: opacity 0.3s ease; /* This is used to smooth out transition*/
}

.page-transition.page-transition-active { /* Uses a class to trigger the animation */
  opacity: 1;
  animation: pageFadeIn 0.3s ease;
}

@keyframes pageFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pageFadeOut {
from { opacity: 1; }
to { opacity: 0; }
}


/* Usage in your project display area: */
.projects-grid.loading {  /* Add loading class when fetching projects */
    display: flex; /* Ensure flex layout for centering */
    justify-content: center;
    align-items: center;
}


.video-container {
  position: relative;
  padding-bottom: 56.25%;
  margin: 1rem 0;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 0.5rem;
}

.add-project-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 100;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 600px;
  margin: 2rem auto;
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
  border-radius: 0.5rem;
}

.button-group {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
}


.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;  /* spacing between links */
}

.nav-links a {
  position: relative;
  padding: 0.5rem;
  text-align: center;
  align-items: center;
  color: var(--gray-50);
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--blue-500);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: var(--blue-500);
}

.nav-links a.active {
  color: var(--blue-500);
}

.nav-links a.active::after {
  width: 100%;
}

.hero {
  min-height: calc(100vh - 5rem);
  display: grid;
  place-items: center;
  position: relative;
  padding: 4rem 0;
  overflow: hidden;
  perspective: 1000px;
  align-items: center;
}

.grid-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(var(--grid-color, 75, 85, 99), 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(var(--grid-color, 75, 85, 99), 0.08) 1px, transparent 1px);
  background-size: clamp(20px, 3vw, 40px) clamp(20px, 3vw, 40px);
  transform-origin: 0 0;
  mask-image: radial-gradient(circle at center, 
    rgba(0, 0, 0, 1) 0%, 
    rgba(0, 0, 0, 0.8) 40%, 
    rgba(0, 0, 0, 0) 80%
  );
  opacity: 0.8;
}

.content {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background: var(--blue-500);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.title {
  display: block;
  font-size: 3.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}



.description {
  color: var(--gray-50);
  font-size: 1.125rem;
  margin: 1.5rem 0 2rem;
  line-height: 1.6;
}

.buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 9999px; /* Full round */
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  position: relative;
  isolation: isolate;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.btn:hover {
  transform: scale(1.02);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(255,255,255,0.8), transparent);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
}

.btn:hover::before {
  opacity: 0.15;
  animation: shine 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn:active {
  transform: scale(0.98);
}

@keyframes shine {
  0% {
    transform: translateY(100%) rotate(-35deg);
  }
  100% {
    transform: translateY(-100%) rotate(-35deg);
  }
}

.btn-primary {
  background: var(--blue-500);
  color: var(--white);
}


.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  backdrop-filter: blur(1px);
}

.arrow-icon {
  width: 1rem;
  height: 1rem;
}

.gradient-orbs {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.orb {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(80px);
}

.orb-1 {
  top: 25%;
  left: 25%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15), transparent);
}

.orb-2 {
  bottom: 25%;
  right: 25%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15), transparent);
}



@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.5;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}


/* Animation Keyframes */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes reveal {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes typewriter {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes grid-fade-in {
  from, to {
    opacity: 1;
  }
}

/* Animation Classes */
.floating {
    animation: float 3s ease-in-out infinite;
}

.hover-float:hover {
    transform: translateY(-5px);
    transition: transform 0.3s ease;
}

.reveal-content {
    opacity: 0;
    animation: reveal 1s ease forwards;
    animation-delay: 0.5s;
}

.typewriter {
    overflow: hidden;
    white-space: nowrap;
    animation: typewriter 2s steps(20) forwards,
             blink 0.75s step-end infinite;
}

@keyframes blink {
    from, to { border-color: transparent }
    50% { border-color: currentColor; }
} 

/* Glass effect for cards */
.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(100px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
}

/* Feature grid */
.feature-grid {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-top: 4rem;
  mask-image: linear-gradient(
      90deg,
      transparent 0%,
      black 15%,
      black 85%,
      transparent 100%
  );
  -webkit-mask-image: linear-gradient(
      90deg,
      transparent 0%,
      black 15%,
      black 85%,
      transparent 100%
  );
}

.feature-grid-inner {
  display: flex;
  gap: 1.5rem;
  width: fit-content;
  animation: infiniteScroll 40s linear infinite;
  transform: translateZ(0);
  will-change: transform;
}


.feature-card {
  flex: 0 0 auto;
  width: 300px;  /* Fixed width */
  padding: 2rem;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1px;
  padding: 50px;
  transform: scale(0.8);
}

.social-icons .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 24px;
  color: #4d8df7;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: 0.3s ease;
  color: #3b82f6;
  text-shadow: 0 0 4px #3b82f6;
}

.social-icons .icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(0, 132, 255, 0.6);
  box-shadow: 0 0 15px rgba(0, 132, 255, 0.9);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: scale(0.8);
}

.social-icons .icon i {
  position: relative;
  z-index: 1;
}

.social-icons .icon:hover::before {
  transform: scale(1.2);
}

.social-icons .icon:hover {
  color: #2093ff;
  text-shadow: 0 0 2px #2093ff;
  transform: scale(1.05);
}

.icon.guns i {
  transform: rotate(-35deg);
}

@media (max-width: 768px) { /* Adjust breakpoint as needed */
  .container {
    padding: var(--space-sm); /* Reduce padding on smaller screens */
    width: calc(100% - 2 * var(--space-sm)); /*Container takes full width*/
  }

  .projects-grid {
    grid-template-columns: 1fr; /* Single column layout for smaller screens */
  }

  .hero {
    min-height: auto; /* Remove min-height for better adaptation */
    padding: 2rem 0; /* Reduce padding */
  }

  .title {
    font-size: 2.5rem; /* Smaller title */
  }

  .description {
    font-size: 1rem; /* Smaller description */
  }



    /* Adjust other elements as needed */
    .feature-grid-inner {
        display: none; /* Stack feature cards vertically */
    }
    .feature-card {
        width: 0%; /* Feature cards take full width */
    }
}











@keyframes infiniteScroll {
  0% { 
      transform: translateX(0);
  }
  100% { 
      transform: translateX(-3228px);
  }
}