/* Rebellious App Section Styles */
.rebel-app-section {
  position: relative;
  overflow: hidden;
  padding: 0;
  color: #0a4697; /* Changed from #333 to blue */
}

/* Glitch Effect Background */
.glitch-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../img/image6.png') center center;
  background-size: cover;
  filter: none;
  opacity: 1;
  z-index: 1;
}

.glitch-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: none;
  mix-blend-mode: normal;
}

.glitch-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: none;
  animation: none;
  opacity: 0;
}

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

/* Diagonal Divider */
.rebel-divider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  overflow: hidden;
}

.rebel-divider::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background: #fbfbf7;
  transform: rotate(-5deg);
  transform-origin: top left;
  z-index: -1;
}

/* Content Container */
.rebel-app-content {
  position: relative;
  z-index: 3;
  padding: 120px 20px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Rebellious Header */
.rebel-app-header {
  margin-bottom: 60px;
  position: relative;
  text-align: center;
}

.rebel-app-title {
  font-family: 'GIAZA', sans-serif !important;
  font-size: 4.375rem; /* Increased by 25% from 3.5rem */
  text-transform: uppercase;
  margin: 0 auto;
  line-height: 1;
  color: #0a4697; /* Changed from #333 to blue */
  letter-spacing: 2px;
  position: relative;
  display: flex; /* Use flexbox for alignment */
  align-items: center;
  justify-content: center;
  gap: 15px; /* Space between words and logo */
}

.rebel-app-title::before {
  content: '';
  position: absolute;
  top: -2.2rem;
  left: 0;
  font-size: 1.8rem;
  font-weight: bold;
  color: #F3471F;
  transform: skew(5deg);
  letter-spacing: 5px;
  font-family: 'GIAZA', sans-serif !important;
  text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.3);
  background-color: rgba(251, 251, 247, 0.8);
  padding: 5px 10px;
  border-radius: 3px;
}

.rebel-app-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 0; /* Set to 0 to remove the underline */
  height: 0; /* Set to 0 to remove the underline */
  background: none; /* Remove the gradient background */
}

.rebel-app-subtitle {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 30px;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  display: inline-block;
  padding: 10px 20px;
  background-color: rgba(0, 0, 0, 0.7);
  border-left: 4px solid #F3471F;
}

/* Feature Grid */
.rebel-features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-bottom: 20px;
}

/* Feature Cards */
.rebel-feature {
  position: relative;
  background-color: rgba(255, 255, 255, 0.7);
  padding: 30px;
  border-radius: 5px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.rebel-feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(243, 71, 31, 0.1) 0%, rgba(10, 70, 151, 0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.rebel-feature:hover::before {
  opacity: 1;
}

.rebel-feature:hover {
  transform: translateY(-5px) rotate(1deg);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

.rebel-feature:nth-child(even):hover {
  transform: translateY(-5px) rotate(-1deg);
}

.rebel-app-section .rebel-feature-icon {
  width: 120px !important;
  height: 120px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 30px !important;
  position: relative !important;
}

.rebel-app-section .rebel-feature-icon svg { /* Target the SVG element */
  width: 4.5rem !important; /* Use width and height for SVG sizing */
  height: 4.5rem !important;
  z-index: 2 !important;
  color: #F3471F !important;
}

.rebel-feature .rebel-feature-icon svg { /* Target the SVG element */
  color: #F3471F !important;
}

.rebel-feature-icon::before {
  display: none; /* Removed the circles around the icons as requested */
}

.rebel-feature-title {
  font-family: 'GIAZA', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.rebel-feature:nth-child(odd) .rebel-feature-title {
  color: #F3471F;
}

.rebel-feature:nth-child(even) .rebel-feature-title {
  color: #0a4697;
}

.rebel-feature-description {
  color: #0a4697; /* Changed from #333 to blue */
  line-height: 1.6;
  position: relative;
  z-index: 2;
}

/* Anarchy Symbol */
.anarchy-symbol.tape {
  position: absolute;
  width: var(--width, 100px);
  height: 30px;
  background-color: rgba(243, 71, 31, 0.7);
  transform: rotate(var(--rotate, 0deg));
  z-index: 2;
  display: none; /* Hide tape elements since they don't match the new light theme */
}

/* Rebellious CTA */
.rebel-cta-container {
  text-align: center;
  margin-top: 50px;
  position: relative;
}

.rebel-cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(135deg, #F3471F 0%, #0a4697 100%);
  color: white;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none;
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: all 0.3s ease;
  transform: skew(-5deg);
}

.rebel-cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0a4697 0%, #F3471F 100%);
  transition: all 0.5s ease;
  z-index: -1;
}

.rebel-cta-button:hover::before {
  left: 0;
}

.rebel-cta-button:hover {
  transform: skew(-5deg) translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Glitch Text Effect */
@keyframes glitch {
  0% {
    text-shadow: 
      0.05em 0 0 rgba(255, 0, 0, 0.75),
      -0.05em -0.025em 0 rgba(0, 255, 0, 0.75),
      -0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
  }
  14% {
    text-shadow: 
      0.05em 0 0 rgba(255, 0, 0, 0.75),
      -0.05em -0.025em 0 rgba(0, 255, 0, 0.75),
      -0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
  }
  15% {
    text-shadow: 
      -0.05em -0.025em 0 rgba(255, 0, 0, 0.75),
      0.025em 0.025em 0 rgba(0, 255, 0, 0.75),
      -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
  }
  49% {
    text-shadow: 
      -0.05em -0.025em 0 rgba(255, 0, 0, 0.75),
      0.025em 0.025em 0 rgba(0, 255, 0, 0.75),
      -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
  }
  50% {
    text-shadow: 
      0.025em 0.05em 0 rgba(255, 0, 0, 0.75),
      0.05em 0 0 rgba(0, 255, 0, 0.75),
      0 -0.05em 0 rgba(0, 0, 255, 0.75);
  }
  99% {
    text-shadow: 
      0.025em 0.05em 0 rgba(255, 0, 0, 0.75),
      0.05em 0 0 rgba(0, 255, 0, 0.75),
      0 -0.05em 0 rgba(0, 0, 255, 0.75);
  }
  100% {
    text-shadow: 
      -0.025em 0 0 rgba(255, 0, 0, 0.75),
      -0.025em -0.025em 0 rgba(0, 255, 0, 0.75),
      -0.025em -0.05em 0 rgba(0, 0, 255, 0.75);
  }
}

.glitch-text {
  animation: glitch 1s infinite linear alternate-reverse;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .rebel-app-title {
    font-size: 3rem;
  }
  
  .rebel-features-grid {
    grid-template-columns: 1fr;
  }
}

/* Tape Effect */
.tape {
  position: absolute;
  background-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  transform: rotate(var(--rotate));
  width: var(--width);
  height: 30px;
  opacity: 0.6;
  z-index: 3;
}
