/* ========================================
   Publicize360 - Custom Styles
   ======================================== */

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Hide scrollbar for service tags */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

/* Desktop Optimization - Above 640px */
@media (min-width: 641px) {
  .hero-section {
    padding-top: 12rem;
    padding-bottom: 5rem;
  }

  .hero-section .badge {
    font-size: 0.875rem;
    padding: 0.75rem 1.75rem;
    margin-bottom: 1.5rem;
    margin-top: 1rem;
  }

  .hero-section h1 {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.15;
  }

  .hero-section p {
    font-size: 1.125rem;
    margin-bottom: 1.75rem;
    line-height: 1.7;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-section .service-tags {
    margin-bottom: 2rem;
  }

  .hero-section .service-tags span {
    font-size: 0.875rem;
    padding: 0.75rem 1.5rem;
  }

  .hero-section .stats-section {
    margin-bottom: 2.5rem;
    gap: 2rem;
  }

  .hero-section .stats-section > div {
    padding: 1.5rem 1rem;
  }

  .hero-section .stats-section .text-2xl {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 900;
  }

  .hero-section .stats-section .text-\\[10px\\] {
    font-size: 0.875rem;
  }

  .hero-section .cta-buttons {
    gap: 1.25rem;
  }

  .hero-section .cta-buttons button,
  .hero-section .cta-buttons a {
    font-size: 1rem;
    padding: 1rem 2.5rem;
  }
}

/* Large Desktop - Above 1024px */
@media (min-width: 1024px) {
  .hero-section {
    padding-top: 9rem;
    padding-bottom: 5rem;
  }

  .hero-section h1 {
    font-size: 4.5rem;
    margin-bottom: 1.75rem;
  }

  .hero-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
  }

  .hero-section .service-tags {
    margin-bottom: 2.25rem;
  }

  .hero-section .stats-section {
    margin-bottom: 2.75rem;
    gap: 2.5rem;
  }

  .hero-section .stats-section .text-2xl {
    font-size: 3rem;
  }

  .hero-section .stats-section .text-\\[10px\\] {
    font-size: 1rem;
  }
}

/* Mobile Hero Optimization - 401px to 640px */
@media (min-width: 401px) and (max-width: 640px) {
  .hero-section {
    min-height: 100svh;
    padding-top: 68px;
    padding-bottom: 16px;
    display: flex;
    align-items: center;
  }

  .hero-section .badge {
    margin-bottom: 1.5rem;
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
  }

  .hero-section h1 {
    font-size: 40px;
    margin-bottom: 1.5rem;
    line-height: 1.15;
  }

  .hero-section p {
    font-size: 15px;
    margin-bottom: 1.75rem;
    line-height: 1.6;
  }

  .hero-section .service-tags {
    margin-bottom: 1.75rem;
  }

  .hero-section .service-tags span {
    font-size: 13px;
    padding: 0.625rem 1.25rem;
  }

  .hero-section .stats-section {
    margin-bottom: 2rem;
    gap: 0.75rem;
  }

  .hero-section .stats-section > div {
    padding: 0.875rem 0.375rem;
    overflow: visible;
  }

  .hero-section .stats-section .text-2xl {
    font-size: 1.75rem;
  }

  .hero-section .stats-section .text-\\[10px\\] {
    font-size: 10px;
  }

  .hero-section .cta-buttons {
    gap: 1rem;
  }

  .hero-section .cta-buttons button,
  .hero-section .cta-buttons a {
        padding: 1.75rem 0.25rem;
        margin-top: 1rem;
        font-size: 16px;
    }
}
/* Extra small screens - 400px and below */
@media (max-width: 400px) {
  .hero-section {
    min-height: 100svh;
    padding-top: 60px;
    padding-bottom: 12px;
    display: flex;
    align-items: center;
  }

  .hero-section > div {
    justify-content: center;
  }

  /* Badge */
  .hero-section .badge {
    margin-bottom: 0.875rem;
    padding: 0.375rem 1rem;
  }
  .hero-section .badge span:last-child {
    font-size: 10px;
  }

  /* Headline */
  .hero-section h1 {
            font-size: 35px;
        margin-bottom: 0.875rem;
    line-height: 1.15;
    padding: 0 0.5rem;
  }

  /* Description */
  .hero-section p {
    font-size: 12px;
    margin-bottom: 1.125rem;
    line-height: 1.5;
    padding: 0 0.75rem;
  }

  /* Service Tags */
  .hero-section .service-tags {
    margin-bottom: 1.125rem;
    padding: 0 0.5rem;
  }
  .hero-section .service-tags span {
    font-size: 10px;
    padding: 0.375rem 0.75rem;
  }

  /* Stats */
  .hero-section .stats-section {
    margin-bottom: 1.375rem;
    gap: 0.5rem;
    padding: 0 0.5rem;
  }
  .hero-section .stats-section > div {
    padding: 0.625rem 0.25rem;
    overflow: visible;
  }
  .hero-section .stats-section .text-2xl {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
  }
  .hero-section .stats-section .text-\\[10px\\] {
    font-size: 8px;
  }

  /* CTA Buttons */
  .hero-section .cta-buttons {
    gap: 0.75rem;
    padding: 0 0.25rem;
  }
  .hero-section .cta-buttons button,
  .hero-section .cta-buttons a {
    padding: 0.875rem 1.5rem;
    font-size: 13px;
  }
}

/* Selection */
::selection {
  background: rgba(255, 33, 79, 0.2);
  color: #2d3748;
}

/* Floating Background Animations */
@keyframes float {
  0%,
  100% {
    transform: translateY(0) translateX(0) scale(1);
  }
  33% {
    transform: translateY(-30px) translateX(20px) scale(1.05);
  }
  66% {
    transform: translateY(20px) translateX(-20px) scale(0.95);
  }
}

@keyframes float-reverse {
  0%,
  100% {
    transform: translateY(0) translateX(0) rotate(0deg);
  }
  33% {
    transform: translateY(25px) translateX(-25px) rotate(5deg);
  }
  66% {
    transform: translateY(-25px) translateX(25px) rotate(-5deg);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.1);
  }
}

.floating-shape {
  animation: float 20s ease-in-out infinite;
}

.floating-shape-2 {
  animation: float-reverse 25s ease-in-out infinite;
}

.floating-shape-3 {
  animation: pulse-glow 15s ease-in-out infinite;
}

.floating-shape-4 {
  animation: float 30s ease-in-out infinite reverse;
}

/* Triangle Animations */
@keyframes triangle-float-1 {
  0%,
  100% {
    transform: translateY(0) translateX(0) rotate(0deg);
  }
  33% {
    transform: translateY(-30px) translateX(20px) rotate(10deg);
  }
  66% {
    transform: translateY(20px) translateX(-15px) rotate(-8deg);
  }
}

@keyframes triangle-float-2 {
  0%,
  100% {
    transform: translateY(0) translateX(0) rotate(180deg);
  }
  33% {
    transform: translateY(25px) translateX(-20px) rotate(190deg);
  }
  66% {
    transform: translateY(-20px) translateX(25px) rotate(170deg);
  }
}

@keyframes triangle-float-3 {
  0%,
  100% {
    transform: translateY(0) translateX(0) rotate(45deg);
  }
  33% {
    transform: translateY(-25px) translateX(-25px) rotate(55deg);
  }
  66% {
    transform: translateY(30px) translateX(20px) rotate(35deg);
  }
}

.triangle-float-1 {
  animation: triangle-float-1 18s ease-in-out infinite;
}

.triangle-float-2 {
  animation: triangle-float-2 22s ease-in-out infinite;
}

.triangle-float-3 {
  animation: triangle-float-3 15s ease-in-out infinite;
}

@keyframes triangle-float-4 {
  0%,
  100% {
    transform: translateY(0) translateX(0) rotate(90deg);
  }
  33% {
    transform: translateY(30px) translateX(15px) rotate(100deg);
  }
  66% {
    transform: translateY(-25px) translateX(-20px) rotate(80deg);
  }
}

@keyframes triangle-float-5 {
  0%,
  100% {
    transform: translateY(0) translateX(0) rotate(270deg);
  }
  33% {
    transform: translateY(-28px) translateX(22px) rotate(280deg);
  }
  66% {
    transform: translateY(22px) translateX(-18px) rotate(260deg);
  }
}

@keyframes triangle-float-6 {
  0%,
  100% {
    transform: translateY(0) translateX(0) rotate(135deg);
  }
  33% {
    transform: translateY(20px) translateX(-25px) rotate(145deg);
  }
  66% {
    transform: translateY(-30px) translateX(18px) rotate(125deg);
  }
}

.triangle-float-4 {
  animation: triangle-float-4 20s ease-in-out infinite;
}

.triangle-float-5 {
  animation: triangle-float-5 17s ease-in-out infinite;
}

.triangle-float-6 {
  animation: triangle-float-6 19s ease-in-out infinite;
}

/* Circle Animations */
@keyframes circle-float-1 {
  0%,
  100% {
    transform: translateY(0) translateX(0) scale(1);
  }
  33% {
    transform: translateY(-25px) translateX(-20px) scale(1.1);
  }
  66% {
    transform: translateY(20px) translateX(15px) scale(0.95);
  }
}

@keyframes circle-float-2 {
  0%,
  100% {
    transform: translateY(0) translateX(0) scale(1);
  }
  33% {
    transform: translateY(30px) translateX(25px) scale(1.08);
  }
  66% {
    transform: translateY(-22px) translateX(-18px) scale(0.92);
  }
}

@keyframes circle-float-3 {
  0%,
  100% {
    transform: translateY(0) translateX(0) scale(1);
  }
  33% {
    transform: translateY(-28px) translateX(22px) scale(1.12);
  }
  66% {
    transform: translateY(25px) translateX(-20px) scale(0.9);
  }
}

@keyframes circle-float-4 {
  0%,
  100% {
    transform: translateY(0) translateX(0) scale(1);
  }
  33% {
    transform: translateY(18px) translateX(-24px) scale(1.05);
  }
  66% {
    transform: translateY(-20px) translateX(20px) scale(0.97);
  }
}

.circle-float-1 {
  animation: circle-float-1 16s ease-in-out infinite;
}

.circle-float-2 {
  animation: circle-float-2 21s ease-in-out infinite;
}

.circle-float-3 {
  animation: circle-float-3 18s ease-in-out infinite;
}

.circle-float-4 {
  animation: circle-float-4 23s ease-in-out infinite;
}

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

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

::-webkit-scrollbar-thumb {
  background: #ff214f;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #e81e47;
}

/* ========================================
   Animations
   ======================================== */

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

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}

.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

.delay-400 {
  animation-delay: 0.4s;
}

.delay-500 {
  animation-delay: 0.5s;
}

/* Pulse Slow */
@keyframes pulseSlow {
  0%,
  100% {
    opacity: 0.3;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.1);
  }
}

.animate-pulse-slow {
  animation: pulseSlow 4s ease-in-out infinite;
}

/* Bounce Slow */
@keyframes bounceSlow {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-bounce-slow {
  animation: bounceSlow 2s ease-in-out infinite;
}

/* Modal Animation */
@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.animate-modal-in {
  animation: modalIn 0.3s ease-out forwards;
}

/* Float Animation */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

.animate-float {
  animation: float 6s ease-in-out infinite;
}

/* Glow Pulse */
@keyframes glowPulse {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.6);
  }
}

.animate-glow {
  animation: glowPulse 2s ease-in-out infinite;
}

/* Gradient Shift */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.animate-gradient {
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

/* ========================================
   Component Styles
   ======================================== */

/* Stat Cards */
.stat-card {
  position: relative;
  overflow: hidden;
}

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

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

/* Service Tags */
.service-tag {
  position: relative;
  overflow: hidden;
}

.service-tag::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition:
    width 0.6s,
    height 0.6s;
}

.service-tag:hover::after {
  width: 300px;
  height: 300px;
}

/* CTA Button Shine */
.cta-btn {
  position: relative;
  overflow: hidden;
}

.cta-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: 0.6s;
}

.cta-btn:hover::before {
  left: 100%;
}

/* ========================================
   Modal Styles
   ======================================== */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.modal-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 26rem;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
  overflow: visible;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.modal-overlay.show .modal-content {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background-color: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  z-index: 10;
  cursor: pointer;
  border: none;
}

.modal-close-btn:hover {
  background-color: #e5e7eb;
  transform: rotate(90deg);
}

/* Form Input Focus States */
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

/* Select Dropdown Arrow */
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239CA3AF'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.5em;
  padding-right: 3rem;
}

/* ========================================
   WhatsApp Button
   ======================================== */

.whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
}

.whatsapp-btn::before {
  content: "";
  position: absolute;
  inset: -4px;
  background: #25d366;
  border-radius: 50%;
  animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
  opacity: 0.3;
}

@keyframes ping {
  75%,
  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* ========================================
   Responsive Adjustments
   ======================================== */

@media (max-width: 768px) {
  .stat-card {
    padding: 1rem;
  }

  .stat-card .text-3xl {
    font-size: 1.5rem;
  }

  .modal-content {
    max-width: 90%;
    margin: 0 auto;
  }

  .modal-container {
    padding: 1rem;
  }
}

@media (max-width: 640px) {
  nav span {
    font-size: 1rem;
  }

  h1 {
    font-size: 2rem;
  }

  .modal-content {
    max-width: 95%;
    border-radius: 0.875rem;
  }

  .modal-container {
    padding: 0.5rem;
  }
}

/* ========================================
   Loading State
   ======================================== */

.loading {
  position: relative;
  pointer-events: none;
}

.loading::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Spinner */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #00d4ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* ========================================
   Utility Classes
   ======================================== */

.text-gradient {
  background: linear-gradient(135deg, #dc2626, #ef4444, #f87171);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient-radial {
  background: radial-gradient(circle at center, var(--tw-gradient-stops));
}

.backdrop-blur-xs {
  backdrop-filter: blur(2px);
}

/* Glass Effect */
.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Neon Glow */
.neon-glow {
  text-shadow:
    0 0 5px #dc2626,
    0 0 10px #dc2626,
    0 0 20px #dc2626,
    0 0 40px #dc2626;
}

/* Border Gradient */
.border-gradient {
  border: 2px solid transparent;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, #dc2626, #ef4444) border-box;
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
  .whatsapp-btn,
  #contactModal,
  nav {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }
}
