/* ============================================
   Unique Solution Engineering Consult
   Premium Brand Stylesheet
   Brand Colors:
     Purple: #610099  |  Red: #EE2726  |  Blue: #0D2A87
   ============================================ */

:root {
  --brand-purple: #610099;
  --brand-purple-light: #7B1FB8;
  --brand-purple-dark: #4A0078;
  --brand-red: #EE2726;
  --brand-red-light: #FF4647;
  --brand-red-dark: #C81E1D;
  --brand-blue: #0D2A87;
  --brand-blue-light: #1E40C8;
  --brand-blue-dark: #081C5C;
  --bg-soft: #F7F9FA;
  --text-dark: #212529;
}

* {
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--text-dark);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, .font-heading {
  font-family: 'Poppins', 'Inter', sans-serif;
  letter-spacing: -0.02em;
}

/* ====== Navigation Link Underline ====== */
.nav-link {
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(to right, var(--brand-purple), var(--brand-red));
  border-radius: 2px;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 60%;
}
.nav-link.active {
  color: var(--brand-purple) !important;
  font-weight: 600;
}

/* ====== Brand Gradient Text ====== */
.gradient-text {
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-red));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-blue {
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ====== Brand Gradient Backgrounds ====== */
.brand-gradient {
  background: linear-gradient(135deg, var(--brand-purple) 0%, var(--brand-blue) 100%);
}

.brand-gradient-warm {
  background: linear-gradient(135deg, var(--brand-purple) 0%, var(--brand-red) 100%);
}

.hero-gradient {
  background:
    radial-gradient(circle at 20% 20%, rgba(238, 39, 38, 0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(13, 42, 135, 0.2) 0%, transparent 40%),
    linear-gradient(135deg, #4A0078 0%, #1a1a2e 50%, #0D2A87 100%);
}

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

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

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

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

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

.animate-fade-up {
  animation: fadeUp 0.7s ease-out both;
}

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

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger child reveals */
.reveal.visible > *:nth-child(1) { animation-delay: 0.05s; }
.reveal.visible > *:nth-child(2) { animation-delay: 0.1s; }
.reveal.visible > *:nth-child(3) { animation-delay: 0.15s; }
.reveal.visible > *:nth-child(4) { animation-delay: 0.2s; }

/* ====== Premium Card Styles ====== */
.service-card {
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-red));
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 0;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px -10px rgba(97, 0, 153, 0.3);
}

.service-card > * {
  position: relative;
  z-index: 1;
}

.service-card .icon-wrap {
  transition: transform 0.4s ease;
}
.service-card:hover .icon-wrap {
  transform: scale(1.1) rotate(-5deg);
}

/* Project card */
.project-card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 60px -15px rgba(13, 42, 135, 0.3);
}
.project-card .img-overlay {
  transition: all 0.4s ease;
}
.project-card:hover .img-overlay {
  transform: scale(1.05);
}

/* ====== Button Styles ====== */
.btn-primary {
  background: linear-gradient(135deg, var(--brand-red), var(--brand-red-dark));
  color: white;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 25px -5px rgba(238, 39, 38, 0.4);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px -5px rgba(238, 39, 38, 0.55);
}

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

.btn-secondary {
  background: linear-gradient(135deg, var(--brand-purple), var(--brand-purple-dark));
  color: white;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 25px -5px rgba(97, 0, 153, 0.4);
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px -5px rgba(97, 0, 153, 0.55);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: white;
  font-weight: 600;
  padding: 10px 26px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: white;
  transform: translateY(-2px);
}

/* ====== Section Title Decoration ====== */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: linear-gradient(135deg, rgba(97, 0, 153, 0.1), rgba(238, 39, 38, 0.1));
  border: 1px solid rgba(97, 0, 153, 0.2);
  color: var(--brand-purple);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border-radius: 9999px;
  margin-bottom: 1rem;
}

.section-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-red);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* ====== Form inputs ====== */
.form-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 2px solid #e5e7eb;
  background: white;
  font-size: 0.9375rem;
  transition: all 0.2s ease;
  outline: none;
}

.form-input:focus {
  border-color: var(--brand-purple);
  box-shadow: 0 0 0 4px rgba(97, 0, 153, 0.1);
}

.form-input::placeholder {
  color: #9ca3af;
}

/* ====== Scrollbar ====== */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--brand-purple), var(--brand-blue));
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--brand-purple-dark), var(--brand-blue-dark));
}

/* ====== Selection ====== */
::selection {
  background: var(--brand-purple);
  color: white;
}

/* ====== Decorative shapes ====== */
.blob-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  z-index: 0;
}

/* Grid pattern */
.grid-pattern {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Dot pattern */
.dot-pattern {
  background-image: radial-gradient(rgba(97, 0, 153, 0.15) 1.5px, transparent 1.5px);
  background-size: 24px 24px;
}

/* Number counter */
.counter {
  display: inline-block;
}

/* Print */
@media print {
  header, footer, .fixed, button { display: none !important; }
}

/* Reduce motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ====== Mobile adjustments ====== */
@media (max-width: 640px) {
  h1 { font-size: 2.25rem !important; line-height: 1.15 !important; }
  h2 { font-size: 1.875rem !important; line-height: 1.2 !important; }
}
