/* ============================================================
   AVANTEC MEDIA — style.css
   Custom styles that extend Tailwind CDN
   ============================================================ */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { font-size: 16px; }

body {
  background-color: #0A0D12;
  color: #F4F8FB;
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0A0D12; }
::-webkit-scrollbar-thumb { background: #4A7FA5; border-radius: 3px; }

/* ---------- Focus ---------- */
:focus-visible {
  outline: 2px solid #4A7FA5;
  outline-offset: 3px;
}

/* ============================================================
   NAVIGATION
============================================================ */
#navbar {
  background: transparent;
}

#navbar.scrolled {
  background: rgba(10, 13, 18, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-link {
  color: #6B7F8E;
  text-decoration: none;
  letter-spacing: 0.15em;
  font-size: 0.75rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
  padding-bottom: 2px;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #4A7FA5;
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #F4F8FB;
}

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

/* Hamburger lines */
.ham-line {
  display: block;
  width: 24px;
  height: 2px;
  background: #6B7F8E;
  border-radius: 2px;
  transition: all 0.3s ease;
}

#hamburger.open .ham-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
#hamburger.open .ham-line:nth-child(2) {
  opacity: 0;
}
#hamburger.open .ham-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav-link {
  color: #6B7F8E;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  transition: color 0.2s;
}

.mobile-nav-link:hover {
  color: #F4F8FB;
}

/* ============================================================
   HERO
============================================================ */

/* Signature: animated lens ring echoing the logo icon */
.lens-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(600px, 90vw);
  height: min(600px, 90vw);
  border-radius: 50%;
  border: 1px solid rgba(74, 127, 165, 0.15);
  box-shadow:
    0 0 0 30px rgba(74, 127, 165, 0.04),
    0 0 0 80px rgba(74, 127, 165, 0.025),
    0 0 120px 40px rgba(74, 127, 165, 0.08);
  animation: lens-pulse 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes lens-pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.04);
    opacity: 1;
  }
}

/* Scroll indicator */
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, #4A7FA5, transparent);
  animation: scroll-drop 1.8s ease-in-out infinite;
}

@keyframes scroll-drop {
  0% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
  100% { opacity: 0; transform: scaleY(0); transform-origin: bottom; }
}

/* Fade in up animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
  animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   BUTTONS
============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #4A7FA5;
  color: #F4F8FB;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 2rem;
  border: none;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s;
}

.btn-primary:hover {
  background: #A8CFEA;
  color: #0A0D12;
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: #F4F8FB;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 2rem;
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s, transform 0.2s;
}

.btn-secondary:hover {
  border-color: #4A7FA5;
  color: #A8CFEA;
  transform: translateY(-1px);
}

/* ============================================================
   SECTION UTILITIES
============================================================ */
.section-pad {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

@media (min-width: 1024px) {
  .section-pad {
    padding-top: 9rem;
    padding-bottom: 9rem;
  }
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #4A7FA5;
  margin-bottom: 1rem;
}

.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.05;
  color: #F4F8FB;
}

.section-sub {
  margin-top: 1.25rem;
  font-size: 1rem;
  color: #6B7F8E;
  line-height: 1.75;
}

/* ============================================================
   SERVICE CARDS
============================================================ */
.service-card {
  position: relative;
  background: #111827;
  border: 1px solid rgba(255,255,255,0.06);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: border-color 0.3s, transform 0.3s;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #4A7FA5, transparent);
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.service-card:hover {
  border-color: rgba(74, 127, 165, 0.3);
  transform: translateY(-4px);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card--featured {
  background: #0f1d2e;
  border-color: rgba(74, 127, 165, 0.4);
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  background: rgba(74, 127, 165, 0.1);
  color: #4A7FA5;
  border-radius: 0;
  flex-shrink: 0;
}

.service-icon--featured {
  background: rgba(74, 127, 165, 0.2);
  color: #A8CFEA;
}

.service-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #F4F8FB;
}

.service-desc {
  font-size: 0.9375rem;
  color: #6B7F8E;
  line-height: 1.75;
  flex: 1;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #A8CFEA;
}

.service-features li::before {
  content: '— ';
  color: #4A7FA5;
}

.service-link {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4A7FA5;
  text-decoration: none;
  transition: color 0.2s;
  margin-top: auto;
}

.service-link:hover {
  color: #A8CFEA;
}

.service-link--featured {
  color: #A8CFEA;
}

/* ============================================================
   PACKAGE CARDS
============================================================ */
.package-card {
  background: #111827;
  border: 1px solid rgba(255,255,255,0.06);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform 0.3s, border-color 0.3s;
}

.package-card:hover {
  transform: translateY(-4px);
  border-color: rgba(74,127,165,0.3);
}

.package-card--featured {
  border-color: #4A7FA5;
  background: #0f1d2e;
  position: relative;
}

.package-tier {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #4A7FA5;
}

.package-tier--featured {
  color: #A8CFEA;
}

.package-price {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 3.5rem;
  font-weight: 800;
  color: #F4F8FB;
  line-height: 1;
}

.package-desc {
  font-size: 0.9rem;
  color: #6B7F8E;
  line-height: 1.7;
}

.package-features {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: #F4F8FB;
  flex: 1;
}

.pay-btn {
  width: 100%;
  background: #4A7FA5;
  color: #F4F8FB;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.25s, transform 0.2s;
  margin-top: auto;
}

.pay-btn:hover {
  background: #A8CFEA;
  color: #0A0D12;
  transform: translateY(-1px);
}

.pay-btn--featured {
  background: #A8CFEA;
  color: #0A0D12;
}

.pay-btn--featured:hover {
  background: #F4F8FB;
}

/* ============================================================
   PORTFOLIO GRID
============================================================ */
.portfolio-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: #111827;
  cursor: pointer;
}

.portfolio-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.portfolio-item:hover .portfolio-img {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,13,18,0.85) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #A8CFEA;
}

/* ============================================================
   ABOUT SECTION
============================================================ */
.about-img-frame {
  aspect-ratio: 1/1;
  overflow: hidden;
  background: #111827;
  border: 1px solid rgba(255,255,255,0.06);
}

/* ============================================================
   CAL.COM EMBED
============================================================ */
.cal-embed-wrapper {
  background: #111827;
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden;
}

/* ============================================================
   CONTACT FORM
============================================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6B7F8E;
}

.form-input {
  width: 100%;
  background: #111827;
  border: 1px solid rgba(255,255,255,0.1);
  color: #F4F8FB;
  padding: 0.875rem 1rem;
  font-size: 0.9375rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}

.form-input::placeholder {
  color: #3d4f5c;
}

.form-input:focus {
  outline: none;
  border-color: #4A7FA5;
  box-shadow: 0 0 0 3px rgba(74, 127, 165, 0.12);
}

select.form-input {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236B7F8E'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.25rem;
  padding-right: 2.5rem;
}

select.form-input option {
  background: #111827;
  color: #F4F8FB;
}

#form-status {
  padding: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

#form-status.success {
  background: rgba(74, 127, 165, 0.1);
  border: 1px solid rgba(74, 127, 165, 0.3);
  color: #A8CFEA;
  display: block !important;
}

#form-status.error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  display: block !important;
}

/* ============================================================
   FOOTER
============================================================ */
.footer-heading {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #F4F8FB;
}

.footer-link {
  font-size: 0.875rem;
  color: #6B7F8E;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover {
  color: #A8CFEA;
}

.social-link {
  color: #6B7F8E;
  transition: color 0.2s, transform 0.2s;
  display: inline-flex;
}

.social-link:hover {
  color: #4A7FA5;
  transform: translateY(-2px);
}

/* ============================================================
   SCROLL REVEAL (JS driven)
============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   REDUCED MOTION
============================================================ */
@media (prefers-reduced-motion: reduce) {
  .lens-ring,
  .scroll-line,
  .fade-in-up {
    animation: none;
  }
  .fade-in-up {
    opacity: 1;
    transform: none;
  }
  .reveal {
    transition: none;
    opacity: 1;
    transform: none;
  }
  * {
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   RESPONSIVE TWEAKS
============================================================ */
@media (max-width: 640px) {
  .section-pad {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
  .service-card,
  .package-card {
    padding: 1.75rem;
  }
}
