.home {
  padding-top: 80px;
  position: relative;
}

.hero {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(
    135deg,
    rgba(10, 14, 23, 0.95),
    rgba(20, 27, 45, 0.98)
  );
  position: relative;
  overflow: hidden;
}

.cyber-grid {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(0, 229, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.05) 1px, transparent 1px);
  background-size: 30px 30px;
  animation: gridMove 15s linear infinite;
  opacity: 0.3;
}

@keyframes gridMove {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(30px);
  }
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle at center,
    var(--accent-glow) 0%,
    transparent 70%
  );
  opacity: 0.5;
}

.hero-content {
  max-width: 800px;
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 4rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  background: linear-gradient(120deg, #fff, var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.8);
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.features {
  padding: 4rem 2rem;
  margin: 2rem auto;
  max-width: 1200px;
}

.features h2 {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--accent-color);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
  width: 100%;
}

/* Add these media queries to fix mobile alignment */
@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
    padding: 0 1rem;
  }
  
  .feature-card {
    width: 100%;
    margin: 0 auto;
  }
}

.feature-card {
  background: rgba(20, 27, 45, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.05);
  position: center;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 229, 255, 0.1),
    transparent
  );
  transition: 0.5s;
}

.feature-card:hover::before {
  left: 100%;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 229, 255, 0.2);
  box-shadow: 
    0 8px 30px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(0, 229, 255, 0.1);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 229, 255, 0.1);
  border-radius: 16px;
  color: var(--accent-color);
  position: relative;
}

.feature-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 2px;
  background: linear-gradient(45deg, transparent, var(--accent-color), transparent);
  -webkit-mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  mask: 
    linear-gradient(#fff 0 0) content-box, 
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.feature-icon svg {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

.stats {
  padding: 4rem 2rem;
  margin: 2rem auto;
  max-width: 1200px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  text-align: center;
}

.stat-item h3 {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
  .home {
    padding: 0;
    padding-top: 60px;
    overflow-x: hidden;
  }

  .hero {
    min-height: auto;
    padding: 2rem 1rem;
  }

  .hero-content {
    max-width: 100%;
    padding: 1rem;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .hero-content p {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
  }

  .features {
    padding: 2rem 1rem;
    margin: 1rem auto;
  }

  .features h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  .feature-card {
    padding: 1.5rem;
    width: 100%;
    margin: 0 auto;
    max-width: calc(100% - 2rem);
  }

  .feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
  }

  .stats {
    padding: 2rem 1rem;
    margin: 1rem auto;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .stat-item h3 {
    font-size: 2rem;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  .cta-buttons button {
    width: 100%;
    padding: 0.8rem;
    font-size: 1rem;
  }

  .gallery-section {
    padding: 2rem 1rem;
  }

  .gallery-section h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 0;
  }

  .gallery-item {
    height: 200px;
  }

  .show-more-container {
    margin: 1.5rem 0;
  }

  .show-more-button {
    width: 100%;
    justify-content: center;
  }

  .section-container {
    width: 100%;
    padding: 0 1rem;
  }

  .text-center-mobile {
    text-align: center;
  }

  .section-spacing {
    margin: 2rem 0;
  }

  img {
    max-width: 100%;
    height: auto;
  }

  .features,
  .section-container {
    padding: 2rem 1rem;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .tools-grid,
  .results-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: 100%;
    padding: 0;
    margin: 0 auto;
  }

  .tool-card,
  .result-card,
  .gallery-item {
    width: 100%;
    margin: 0 auto;
    max-width: 100%;
  }

  .tools-section,
  .results-section,
  .gallery-section {
    padding: 2rem 1rem;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
  }

  .section-content {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
  }

  .container {
    width: 100%;
    max-width: 100%;
    padding: 0 1rem;
    margin: 0 auto;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .home {
    padding-top: 70px;
  }

  .hero-content {
    max-width: 90%;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@supports (padding: max(0px)) {
  .home {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }
}

@media (hover: none) {
  .feature-card,
  .gallery-item,
  .cta-button {
    transition: transform 0.2s ease;
  }

  .feature-card:active,
  .gallery-item:active,
  .cta-button:active {
    transform: scale(0.98);
  }
}

@media (max-width: 320px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content p {
    font-size: 0.9rem;
  }

  .features h2,
  .gallery-section h2 {
    font-size: 1.6rem;
  }
}

.loading-placeholder {
  background: linear-gradient(90deg,
    rgba(0, 229, 255, 0.1) 25%,
    rgba(0, 229, 255, 0.2) 50%,
    rgba(0, 229, 255, 0.1) 75%
  );
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Show More Button Styles */
.show-more-container {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.show-more-button {
  background: rgba(0, 229, 255, 0.05);
  color: var(--accent-color);
  border: 1px solid var(--accent-color);
  border-radius: 25px;
  padding: 0.8rem 2rem;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  font-family: 'Inter', sans-serif; /* Match your site's font */
  box-shadow: 0 0 5px rgba(0, 229, 255, 0.1);
}

.show-more-button:hover {
  background: rgba(0, 229, 255, 0.15);
  box-shadow: 0 0 15px var(--accent-glow);
  transform: translateY(-2px);
}

.show-more-button:active {
  transform: translateY(1px);
}

.arrow-icon {
  display: inline-block;
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.gallery-section {
  padding: 4rem 2rem;
  background: rgba(0, 229, 255, 0.02);
  max-width: var(--max-width);
  margin: 0 auto;
}

.gallery-section h2 {
  text-align: center;
  color: var(--accent-color);
  margin-bottom: 3rem;
  font-size: 2.5rem;
  position: relative;
  padding-bottom: 1rem;
}

.gallery-section h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background: var(--accent-color);
  box-shadow: 0 0 10px var(--accent-glow);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 1rem;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  height: 250px;
  background: rgba(0, 229, 255, 0.05);
  border: 1px solid rgba(0, 229, 255, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .gallery-section {
    padding: 2rem 1rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .gallery-item {
    height: 200px;
  }

  .gallery-section h2 {
    font-size: 2rem;
  }
}

.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(0, 229, 255, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  overflow: hidden;
  backdrop-filter: blur(4px);
}

.arrow-icon {
  color: rgb(0, 229, 255);
  font-size: 1.5rem;
  position: relative;
  z-index: 2;
}

.button-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(0, 229, 255, 0.2) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.scroll-to-top:hover .button-glow {
  opacity: 1;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.3;
  }
}

/* Media query for mobile devices */
@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 3rem;
    height: 3rem;
  }
}

/* Additional Container Control */
.features,
.tools-section,
.results-section,
.gallery-section {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  overflow: hidden;
}

/* Grid Container Base Styles */
.features-grid,
.tools-grid,
.results-grid,
.gallery-grid {
  width: 100%;
  margin: 0 auto;
}

/* Card Base Styles */
.feature-card,
.tool-card,
.result-card,
.gallery-item {
  width: 100%;
  margin: 0 auto;
}