/* ========================================
   IRE MEDIATECH HUB - Main Stylesheet
   CAC Registered: RC 9206193
   Designed & Developed by IRE MEDIATECH HUB
   Founded by: Dada Oluwagbogo Timothy
   ======================================== */

:root {
  --primary: #7c3aed;
  --primary-dark: #6d28d9;
  --secondary: #d946ef;
  --accent: #fbbf24;
  --success: #10b981;
  --danger: #ef4444;
  --dark: #1f2937;
  --light: #f9fafb;
  --gray: #6b7280;
}

/* ========================================
   Base Styles
   ======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Sora', sans-serif;
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
  font-family: inherit;
}

ul, ol {
  list-style: none;
}

/* ========================================
   Preloader
   ======================================== */
#preloader {
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ========================================
   Navigation
   ======================================== */
#navbar {
  transition: all 0.3s ease;
}

#navbar.scrolled {
  top: 0 !important;
}

#navbar.scrolled > div > div {
  border-radius: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.nav-link {
  position: relative;
  font-weight: 500;
  color: var(--gray);
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 3px;
}

/* ========================================
   Buttons
   ======================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.35);
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.45);
}

.btn-primary:active {
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  background: transparent;
  color: var(--primary);
  font-weight: 600;
  font-size: 1rem;
  border-radius: 9999px;
  border: 2px solid var(--primary);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
  transform: translateY(-3px);
}

.btn-secondary-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  background: transparent;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 9999px;
  border: 2px solid white;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-secondary-light:hover {
  background: white;
  color: var(--primary);
  transform: translateY(-3px);
}

/* ========================================
   Mobile Menu
   ======================================== */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 320px;
  height: 100vh;
  height: 100dvh;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  z-index: 9999;
  transition: right 0.3s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu-content {
  padding: 1.5rem;
  min-height: 100%;
  display: flex;
  flex-direction: column;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: white;
  font-size: 1.125rem;
  font-weight: 600;
  padding: 1rem;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: rgba(255, 255, 255, 0.2);
  transform: translateX(5px);
}

.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  z-index: 9998;
  transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ========================================
   Service Cards
   ======================================== */
.service-card {
  background: white;
  padding: 1.5rem;
  border-radius: 1.5rem;
  border: 2px solid #f3f4f6;
  transition: all 0.3s ease;
}

@media (min-width: 640px) {
  .service-card {
    padding: 2rem;
  }
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(124, 58, 237, 0.15);
}

.service-icon {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
  transition: all 0.3s ease;
}

@media (min-width: 640px) {
  .service-icon {
    width: 4rem;
    height: 4rem;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }
}

.service-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--dark);
}

@media (min-width: 640px) {
  .service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
  }
}

.service-card p {
  color: var(--gray);
  margin-bottom: 1.25rem;
  line-height: 1.7;
  font-size: 0.9375rem;
}

@media (min-width: 640px) {
  .service-card p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
  }
}

.service-link {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
  font-size: 0.9375rem;
}

.service-link:hover {
  gap: 0.5rem;
}

/* ========================================
   Portfolio Cards
   ======================================== */
.portfolio-card {
  display: block;
  background: white;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.portfolio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(124, 58, 237, 0.15);
  border-color: var(--primary);
}

.portfolio-image {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

@media (min-width: 640px) {
  .portfolio-image {
    height: 200px;
  }
}

.portfolio-content {
  padding: 1.25rem;
}

@media (min-width: 640px) {
  .portfolio-content {
    padding: 1.5rem;
  }
}

.portfolio-content h3 {
  color: var(--dark);
  transition: color 0.3s ease;
}

/* ========================================
   Credential Badges
   ======================================== */
.credential-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: white;
  border-radius: 9999px;
  font-size: 0.6875rem;
  font-weight: 600;
}

@media (min-width: 640px) {
  .credential-badge {
    font-size: 0.75rem;
  }
}

.cac-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: white;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.8125rem;
}

@media (min-width: 640px) {
  .cac-badge {
    padding: 0.75rem 1.25rem;
    font-size: 0.875rem;
  }
}

/* ========================================
   Timeline
   ======================================== */
.timeline-item {
  position: relative;
  padding-left: 1.5rem;
  border-left: 3px solid #e5e7eb;
}

@media (min-width: 640px) {
  .timeline-item {
    padding-left: 2rem;
  }
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -9px;
  top: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border: 3px solid white;
  box-shadow: 0 0 0 3px var(--primary);
}

/* ========================================
   Social Icons
   ======================================== */
.social-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.125rem;
  transition: all 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ========================================
   WhatsApp Float Button
   ======================================== */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 55px;
  height: 55px;
  background: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  z-index: 998;
  transition: all 0.3s ease;
  animation: pulse-whatsapp 2s infinite;
}

@media (min-width: 640px) {
  .whatsapp-float {
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    font-size: 28px;
  }
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background: #128c7e;
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-10px);
}

.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  background: #333;
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  transform: translateX(0);
  display: none;
}

@media (min-width: 768px) {
  .whatsapp-tooltip {
    display: block;
  }
}

.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent transparent #333;
}

@keyframes pulse-whatsapp {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
}

/* ========================================
   Back to Top Button
   ======================================== */
.back-to-top {
  position: fixed;
  bottom: 85px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border: none;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  z-index: 997;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

@media (min-width: 640px) {
  .back-to-top {
    bottom: 100px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 12px;
    font-size: 18px;
  }
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
}

/* ========================================
   Form Styles
   ======================================== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--dark);
  font-size: 0.9375rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.75rem;
  font-family: 'Sora', sans-serif;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
  color: var(--dark);
}

@media (min-width: 640px) {
  .form-input,
  .form-select,
  .form-textarea {
    padding: 1rem 1.25rem;
  }
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #9ca3af;
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-error {
  color: var(--danger);
  font-size: 0.875rem;
  margin-top: 0.5rem;
}

/* ========================================
   Filter Buttons
   ======================================== */
.filter-btn {
  padding: 0.625rem 1.25rem;
  border: 2px solid #e5e7eb;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.875rem;
  background: white;
  color: var(--gray);
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.filter-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-color: transparent;
}

/* ========================================
   Gradient Text
   ======================================== */
.gradient-text {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================
   Scroll Margin for Anchors
   ======================================== */
.scroll-mt-32 {
  scroll-margin-top: 8rem;
}

.scroll-mt-24 {
  scroll-margin-top: 6rem;
}

/* ========================================
   Utility Classes
   ======================================== */
.text-balance {
  text-wrap: balance;
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in {
  animation: fadeIn 0.6s ease forwards;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* ========================================
   Selection & Scrollbar
   ======================================== */
::selection {
  background: var(--primary);
  color: white;
}

::-moz-selection {
  background: var(--primary);
  color: white;
}

/* Scrollbar - Desktop only */
@media (min-width: 768px) {
  ::-webkit-scrollbar {
    width: 10px;
  }

  ::-webkit-scrollbar-track {
    background: #f1f1f1;
  }

  ::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 5px;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
  }
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
  .whatsapp-float,
  .back-to-top,
  #navbar,
  .mobile-menu {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    color: black;
  }
  
  a {
    text-decoration: underline;
  }
}