/* Custom CSS for tools Studio Landing Page */

:root {
  --primary-color: #4361ee;
  --secondary-color: #3bc9db;
  --tertiary-color: #4d8af0;
  --dark-color: #2b2d42;
  --light-color: #f8f9fc;
  --danger-color: #e74a3b;
  --warning-color: #f6c23e;
  --success-color: #1cc88a;
  --info-color: #36b9cc;
  --gray-color: #6c757d;
  --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  --hover-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

body {
  font-family: 'Nunito', sans-serif;
  background-color: var(--light-color);
  color: #333;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #3a5ccc;
}

/* Navigation Bar */
.navbar-custom {
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  padding: 15px 0;
  transition: all 0.3s ease;
}

.navbar-custom.scrolled {
  padding: 10px 0;
  background-color: rgba(255, 255, 255, 0.98);
}

.navbar-brand {
  font-weight: 800;
  color: var(--primary-color) !important;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.navbar-brand i {
  transition: transform 0.3s ease;
}

.navbar-brand:hover i {
  transform: rotate(20deg);
}

.nav-link {
  font-weight: 600;
  color: var(--dark-color) !important;
  transition: all 0.3s ease;
  position: relative;
  padding: 0.5rem 1rem;
  margin: 0 0.2rem;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--primary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 70%;
}

.nav-link:hover {
  color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--tertiary-color) 100%);
  color: white;
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><polygon fill="rgba(255,255,255,0.1)" points="0,100 100,0 100,100"/></svg>');
  background-size: cover;
  z-index: -1;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 70px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 100"><path fill="%23f8f9fc" fill-opacity="1" d="M0,64L80,69.3C160,75,320,85,480,80C640,75,800,53,960,48C1120,43,1280,53,1360,58.7L1440,64L1440,100L1360,100C1280,100,1120,100,960,100C800,100,640,100,480,100C320,100,160,100,80,100L0,100Z"></path></svg>');
  background-size: cover;
  z-index: 0;
}

.hero-title {
  font-weight: 800;
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  background: linear-gradient(to right, #ffffff, #e6e6e6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.hero-subtitle {
  font-weight: 400;
  font-size: 1.5rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
  opacity: 0.9;
}

.hero-image img {
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.5s ease;
  transform: perspective(1000px) rotateY(-5deg);
}

.hero-image:hover img {
  transform: perspective(1000px) rotateY(0deg);
}

/* Tools Section */
.tools-section {
  padding: 100px 0 80px;
  background-color: var(--light-color);
  position: relative;
}

.section-title {
  font-weight: 700;
  margin-bottom: 3rem;
  position: relative;
  display: inline-block;
  color: var(--dark-color);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(to right, var(--primary-color), var(--tertiary-color));
  border-radius: 2px;
}

.category-title {
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--dark-color);
  position: relative;
  display: inline-block;
  padding-left: 15px;
}

.category-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 25px;
  background-color: var(--primary-color);
  border-radius: 2px;
}

.tool-category {
  padding: 30px 0;
}

.tool-card {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  transition: all 0.4s ease;
  margin-bottom: 30px;
  border: none;
  height: 100%;
  min-height: 300px;
  background-color: white;
  position: relative;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, var(--primary-color), var(--tertiary-color));
  opacity: 0;
  transition: opacity 0.4s ease;
}

.tool-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--hover-shadow);
}

.tool-card:hover::before {
  opacity: 1;
}

.tool-card .card-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: flex-start;
}

.tool-card .card-title {
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

.tool-card .card-text {
  color: var(--gray-color);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.tool-icon {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  display: inline-block;
  color: var(--primary-color);
  transition: all 0.3s ease;
}

.tool-card:hover .tool-icon {
  transform: scale(1.1);
}

#json-tools .tool-icon {
  color: var(--primary-color);
}

#text-tools .tool-icon {
  color: var(--success-color);
}

#security-tools .tool-icon {
  color: var(--info-color);
}

#animation-tools .tool-icon {
  color: var(--warning-color);
}

/* About Section */
.about-section {
  padding: 100px 0;
  background-color: #f1f5fd;
  position: relative;
}

.about-section::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  width: 100%;
  height: 70px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 100"><path fill="%23f8f9fc" fill-opacity="1" d="M0,32L80,42.7C160,53,320,75,480,74.7C640,75,800,53,960,42.7C1120,32,1280,32,1360,32L1440,32L1440,0L1360,0C1280,0,1120,0,960,0C800,0,640,0,480,0C320,0,160,0,80,0L0,0Z"></path></svg>');
  background-size: cover;
  z-index: 1;
}

.about-image img {
  box-shadow: var(--card-shadow);
  transition: all 0.5s ease;
}

.about-image:hover img {
  transform: scale(1.02);
  box-shadow: var(--hover-shadow);
}

/* Privacy Section */
.privacy-section {
  padding: 100px 0;
  background-color: white;
  position: relative;
}

.privacy-content {
  background-color: #f8f9fc;
  padding: 30px;
  border-radius: 15px;
  box-shadow: var(--card-shadow);
}

.privacy-content h5 {
  color: var(--primary-color);
  margin-top: 20px;
  margin-bottom: 10px;
  font-weight: 700;
}

/* Footer */
.footer {
  background-color: var(--dark-color);
  color: white;
  padding: 60px 0 30px;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 0;
  width: 100%;
  height: 70px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 100"><path fill="white" fill-opacity="1" d="M0,64L80,69.3C160,75,320,85,480,80C640,75,800,53,960,48C1120,43,1280,53,1360,58.7L1440,64L1440,0L1360,0C1280,0,1120,0,960,0C800,0,640,0,480,0C320,0,160,0,80,0L0,0Z"></path></svg>');
  background-size: cover;
  z-index: 1;

}
.footer .container{
    margin-top: 1rem;
}

.footer h5 {
  font-weight: 700;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.footer h5::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 1.5px;
}

.footer a {
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.3s ease;
  display: inline-block;
  margin-bottom: 8px;
}

.footer a:hover {
  color: white;
  text-decoration: none;
  transform: translateX(5px);
}

.footer hr {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 30px 0;
}

/* Buttons */
.btn-custom {
  padding: 0.6rem 1.8rem;
  font-weight: 600;
  border-radius: 30px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-custom::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.1);
  z-index: -2;
}

.btn-custom::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
  z-index: -1;
}

.btn-custom:hover::before {
  width: 100%;
}

.card-body .btn-custom {
  margin-top: auto;
}

.btn-primary-custom {
  background: linear-gradient(to right, var(--primary-color), var(--tertiary-color));
  border: none;
  color: white;
  box-shadow: 0 4px 15px rgba(77, 97, 240, 0.3);
}

.btn-primary-custom:hover {
  box-shadow: 0 6px 20px rgba(77, 97, 240, 0.4);
  transform: translateY(-2px);
}

/* Additional Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.6s ease forwards;
}

.animate-fade-in-right {
  animation: fadeInRight 0.6s ease forwards;
}

.animate-pulse {
  animation: pulse 2s infinite;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .hero-title {
    font-size: 3rem;
  }

  .hero-section {
    padding: 100px 0 80px;
  }

  .about-section, .privacy-section {
    padding: 80px 0;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .tools-section, .about-section, .privacy-section {
    padding: 60px 0;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .category-title {
    font-size: 1.5rem;
  }

  .tool-card {
    min-height: 280px;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .btn-custom {
    padding: 0.5rem 1.5rem;
  }

  .tool-card {
    min-height: 260px;
  }

  .tool-icon {
    font-size: 2rem;
  }
}
