/* ===========================
   HYPERLINK STUDIOS — STYLES
   =========================== */

:root {
  --hs-primary: #4f46e5;
  --hs-primary-dark: #3730a3;
  --hs-dark: #0f0f1a;
  --hs-navbar-h: 72px;
}

/* ---- Global ---- */
* { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: #1e1e2e;
  background-color: #ffffff;
}

.section-padding { padding-top: 5rem; padding-bottom: 5rem; }
.py-6 { padding-top: 5rem !important; padding-bottom: 5rem !important; }
.mb-6 { margin-bottom: 5rem !important; }

.text-gradient {
  background: linear-gradient(135deg, var(--hs-primary) 0%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.letter-spacing { letter-spacing: 0.08em; }

/* ---- Navbar ---- */
#mainNav {
  height: var(--hs-navbar-h);
  background-color: rgba(15, 15, 26, 0.95) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: all 0.3s ease;
}

#mainNav .navbar-brand {
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  color: #fff !important;
}

#mainNav .nav-link {
  color: rgba(255,255,255,0.75) !important;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  border-radius: 8px;
}

#mainNav .nav-link:hover,
#mainNav .nav-link.active {
  color: #fff !important;
  background-color: rgba(255,255,255,0.08);
}

/* ---- Hero ---- */
.hero-section {
  min-height: 100vh;
  padding-top: calc(var(--hs-navbar-h) + 3rem);
  padding-bottom: 4rem;
  background: linear-gradient(135deg, #0f0f1a 0%, #1e1040 60%, #0f0f1a 100%);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.hero-section h1,
.hero-section p,
.hero-section .badge,
.hero-section .d-flex,
.hero-section small { color: #fff; }
.hero-section p.lead { color: rgba(255,255,255,0.65) !important; }
.hero-section .border-start,
.hero-section .border-end { border-color: rgba(255,255,255,0.15) !important; }

.hero-img {
  border: 1px solid rgba(255,255,255,0.1);
  transition: transform 0.5s ease;
}
.hero-img:hover { transform: translateY(-6px); }

/* ---- Page Header ---- */
.page-header {
  min-height: 320px;
  padding-top: calc(var(--hs-navbar-h) + 2rem);
  padding-bottom: 3rem;
  background: linear-gradient(135deg, #0f0f1a 0%, #1e1040 100%);
}

/* ---- Cards ---- */
.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #fff;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(79, 70, 229, 0.12) !important;
}

.project-card { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.project-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(0,0,0,0.12) !important; }

.project-img { transition: transform 0.4s ease; height: 220px; object-fit: cover; width: 100%; }
.project-img-wrap { max-height: 220px; }
.project-card:hover .project-img { transform: scale(1.05); }

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(79, 70, 229, 0.75);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.project-card:hover .project-overlay { opacity: 1; }

.team-card { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.team-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(0,0,0,0.1) !important; }

/* ---- CTA Section ---- */
.cta-section {
  background: linear-gradient(135deg, var(--hs-primary) 0%, #7c3aed 100%);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* ---- Client Logos ---- */
.client-logo { transition: opacity 0.3s; }
.client-logo:hover { opacity: 1 !important; }

/* ---- Bootstrap overrides ---- */
.btn-primary {
  background-color: var(--hs-primary);
  border-color: var(--hs-primary);
  font-weight: 500;
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--hs-primary-dark);
  border-color: var(--hs-primary-dark);
}
.btn-outline-primary { color: var(--hs-primary); border-color: var(--hs-primary); font-weight: 500; }
.btn-outline-primary:hover { background-color: var(--hs-primary); border-color: var(--hs-primary); }

.bg-primary { background-color: var(--hs-primary) !important; }
.text-primary { color: var(--hs-primary) !important; }
.bg-primary-subtle { background-color: rgba(79, 70, 229, 0.1) !important; }

/* ---- Pricing ---- */
.pricing-card { transition: transform 0.3s ease, box-shadow 0.3s ease; }
.pricing-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(79, 70, 229, 0.12) !important; }
.pricing-featured {
  background: linear-gradient(160deg, #f5f3ff 0%, #ede9fe 100%);
  border: 2px solid var(--hs-primary) !important;
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: var(--hs-primary); border-radius: 4px; }

/* ---- Responsive tweaks ---- */
@media (max-width: 768px) {
  .hero-section { min-height: auto; padding-top: calc(var(--hs-navbar-h) + 1.5rem); }
  .display-4 { font-size: 2.2rem; }
  .display-5 { font-size: 1.9rem; }
  .py-6 { padding-top: 3.5rem !important; padding-bottom: 3.5rem !important; }
}
