:root {
  --primary: #1e3a8a;
  --secondary: #2563eb;
  --bg: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --light-gray: #f9fafb;
  --border: #e5e7eb;
  --nav-h: 64px;
}

/* ===================
   GLOBAL STYLING
   =================== */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  font-family: 'Inter', system-ui, Segoe UI, Roboto, Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
}

main {
  flex: 1;
}

/* ===================
   HEADER & NAVIGATION
   =================== */
header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  padding: 0 18px;
}
.menu .cta-btn {
  font-size: 0.9rem;
  padding: 5px 12px;
  border-radius: 4px;
}

/* ==========================
   NAVIGATION DROPDOWN FIX (HOVER ON DESKTOP + CLICK ON MOBILE)
  Default dropdown hidden */
.dropdown {
  display: none;
  position: absolute;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  min-width: 180px;
  z-index: 999;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

/* Show dropdown when hovering (DESKTOP only) */
@media (min-width: 901px) {
  .menu-item:hover .dropdown {
    display: block;
  }
}

/* Keep .show for MOBILE toggle use */
.menu-item .dropdown.show {
  display: block;
}


/*///////////////////*/


.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  width: 42px;
  height: 42px;
  background: white;
  color: var(--primary);
  border-radius: 8px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-link {
  text-decoration: none;
  color: white;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-title {
  font-size: 18px;
  font-weight: 600;
}

.subtitle {
  font-size: 12px;
  color: #e0e7ff;
}

/* ===================
   MENU
   =================== */
.menu {
  display: flex;
  gap: 10px;
}

.menu-item {
  position: relative;
}

.menu-button {
  background: transparent;
  border: none;
  color: white;
  padding: 10px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
}

.menu-button:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Animated dropdown */
.menu-item .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  min-width: 180px;
  z-index: 1000;

  max-height: 0;
  opacity: 0;
  transform: translateY(0);
  overflow: hidden;
  transition: all 0.3s ease;
}

/* Fix dropdown going above screen */
.menu-item .dropdown.show {
  max-height: 500px;
  opacity: 1;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 8px 12px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
}

.dropdown a:hover {
  background: var(--light-gray);
  color: var(--secondary);
}

/* ===================
   HERO SECTION
   =================== */
.hero {
  max-width: 1100px;
  margin: 40px auto;
  padding: 40px 28px;
  background: var(--light-gray);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
}

.hero h1 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 10px;
}

.hero p {
  max-width: 700px;
  margin: 0 auto 20px;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-btn {
  background: var(--secondary);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.hero-btn:hover {
  background: #1d4ed8;
}

/* ===================
   CONTENT + SIDEBAR LAYOUT
   =================== */
.repair-content,
.network-content,
.datarecovery-content,
.contact-content,
.remote-content {
  max-width: 1100px;
  margin: 40px auto;
  display: grid;
  grid-template-columns: 2fr 1fr; /* main content 2/3, sidebar 1/3 */
  gap: 24px;
}

.repair-content .card,
.repair-content .sidebar,
.network-content .card,
.network-content .sidebar,
.datarecovery-content .card,
.datarecovery-content .sidebar,
.contact-content .card,
.contact-content .sidebar,
.remote-content .card,
.remote-content .sidebar {
  background: white;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
}

.repair-content .sidebar p,
.repair-content .card li,
.network-content .sidebar p,
.network-content .card li,
.datarecovery-content .sidebar p,
.datarecovery-content .card li,
.contact-content .sidebar p,
.contact-content .card li,
.remote-content .sidebar p,
.remote-content .card li {
  color: var(--text);
  margin-bottom: 8px;
}

.contact-content .card h2,
.contact-content .sidebar h3,
.remote-content .card h2,
.remote-content .sidebar h3,
.remote-content .sidebar h4 {
  color: var(--primary);
  margin-bottom: 16px;
}

.contact-content input,
.contact-content textarea,
.contact-content select,
.remote-content input,
.remote-content textarea,
.remote-content select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 1rem;
}

.contact-content button.hero-btn,
.remote-content button.hero-btn {
  width: 100%;
  margin-top: 8px;
}

/* ===================
   HOME PAGE (INDEX.HTML)
   =================== */
.home .services-section {
  max-width: 1100px;
  margin: 60px auto;
  padding: 0 18px;
  text-align: center;
}

.home .services-section h2 {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 24px;
}

.home .services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.home .service-card {
  background: white;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.home .service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.home .service-card h3 {
  color: var(--secondary);
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.home .service-card p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ===================
   FOOTER
   =================== */
footer {
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 18px;
  font-size: 14px;
}

/* ---------- MOBILE NAV MENU ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 25px;
  height: 18px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: 0.3s;
}

/* Hide menu on mobile by default */
@media (max-width: 900px) {
  .menu {
    display: none;
    flex-direction: column;
    background: var(--primary);
    width: 100%;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    padding: 10px 0;
  }

  .menu.show {
    display: flex;
  }

  .menu-item {
    width: 100%;
    text-align: center;
  }

  .menu-button {
    width: 100%;
    padding: 12px 0;
    font-size: 16px;
  }

  .menu-item .dropdown a {
    padding: 10px;
    display: block;
  }

  /* Show hamburger icon */
  .nav-toggle {
    display: flex;
  }
}



/* ===================
   RESPONSIVE DESIGN
   =================== */
@media (max-width: 900px) {
  .hero,
  .home .services-section,
  .repair-content,
  .network-content,
  .datarecovery-content,
  .contact-content,
  .remote-content {
    margin: 20px 18px;
    text-align: left;
  }

  /* Mobile dropdown adjustments */
  .menu-item .dropdown {
    position: static;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: none;
    border: none;
  }

  .menu-item .dropdown.show {
    max-height: 1000px;
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .repair-content,
  .network-content,
  .datarecovery-content,
  .contact-content,
  .remote-content {
    grid-template-columns: 1fr; /* stack content for narrow screens */
  }
}

/* ===================
   DROPDOWN FIX FOR TOP SCREEN
   =================== */
.menu-item .dropdown[data-direction="down"] {
  top: 100%;
  bottom: auto;
}

.menu-item .dropdown[data-direction="up"] {
  top: auto;
  bottom: 100%;
}


/*extra for the index.html below cards*/

.why-choose-us {
  background: white;
  padding: 60px 20px;
  text-align: center;
}

.why-choose-us h2 {
  color: var(--primary);
  margin-bottom: 40px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.feature h3 {
  color: var(--secondary);
  margin-bottom: 10px;
}


.contact-cta {
  margin-top: 50px;
  background: var(--light-gray);
  padding: 30px 50px;
  border-radius: 12px;
  display: inline-block;
}

.contact-cta p {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--text);
}

.cta-btn {
  background: var(--secondary);
  color: white;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}

.cta-btn:hover {
  background: var(--primary);
}


/* ===================
   SERVICE DETAIL PAGES (websites, gamingpc, digital)
   =================== */
.page-hero {
  background: var(--light-gray);
  text-align: center;
  padding: 60px 20px;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  color: var(--primary);
  font-size: 2rem;
  margin-bottom: 10px;
}

.page-hero p {
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.content-section {
  max-width: 1100px;
  margin: 50px auto;
  padding: 0 20px;
  text-align: center;
}

.content-section h2 {
  color: var(--secondary);
  margin-bottom: 15px;
  font-size: 1.6rem;
}

.content-section p {
  color: var(--text);
  margin-bottom: 20px;
  line-height: 1.6;
}

.features-list {
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
}

.features-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}


/* ==========================
   FIX: Hover Dropdowns on Desktop
   ========================== */
@media (min-width: 901px) {
  .menu-item:hover .dropdown {
    display: block;
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
    overflow: visible;
    animation: dropdownFadeSlide 0.7s ease forwards;
  }
}

/* ==========================
   Dropdown Animation (Smooth Fade + Slide)
   ========================== */
@keyframes dropdownFadeSlide {
  0% {
    opacity: 0;
    transform: translateY(-8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ==========================
   Mobile Dropdown Animation
   ========================== */
@media (max-width: 900px) {
  .menu-item .dropdown {
    position: static;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease, max-height 0.25s ease;
    box-shadow: none;
    border: none;
  }

  .menu-item .dropdown.show {
    max-height: 1000px; /* ensure dropdown can expand fully */
    opacity: 1;
    transform: translateY(0);
    animation: dropdownFadeSlide 0.7s ease forwards;
  }
}



/*for booking page*/

/* ==========================
   BOOKING PAGE STYLING
   ========================== */
.booking-section {
  max-width: 700px;
  margin: 50px auto;
  padding: 30px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.booking-section h2 {
  color: var(--secondary);
  margin-bottom: 20px;
  text-align: center;
}

.booking-form label {
  display: block;
  font-weight: 600;
  margin-top: 15px;
  color: var(--primary);
}

.booking-form input,
.booking-form select,
.booking-form textarea {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
}

.booking-form button {
  margin-top: 20px;
  width: 100%;
  padding: 12px;
  font-size: 1.1rem;
}

.booking-form input:invalid,
.booking-form select:invalid {
  border-color: #f87171;
}

/********** Confirmation message */
.booking-success {
  background: #ecfdf5;
  color: #047857;
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  margin-top: 20px;
}


/* =========================
   UNIVERSAL IMAGE SLIDER
   (Works for websites + posters)
   ========================= */

.image-slider {
  position: relative;
  max-width: 700px;
  margin: 40px auto;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);

  /* stable size for all slides */
  height: 420px;
}

/* =========================
   SLIDES BASE
   ========================= */
.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* active slide */
.slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

/* =========================
   IMAGE HANDLING (IMPORTANT)
   ========================= */
.slide img {
  width: 100%;
  height: 100%;
  display: block;
}

/* DEFAULT MODE (for website screenshots) */
.image-slider.website-mode .slide img {
  object-fit: cover;   /* fills nicely, slight crop OK */
}

/* POSTER MODE (for flyers/posters) */
.image-slider.poster-mode .slide img {
  object-fit: contain; /* shows FULL image, no cropping */
  background: white;
}

/* =========================
   SLIDE ANIMATIONS
   ========================= */
.slide-in-right {
  animation: slideRight 0.6s ease;
}

.slide-in-left {
  animation: slideLeft 0.6s ease;
}

@keyframes slideRight {
  from {
    transform: translateX(40px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideLeft {
  from {
    transform: translateX(-40px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* =========================
   NAV BUTTONS
   ========================= */
.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(30, 58, 138, 0.8);
  color: white;
  border: none;
  padding: 10px 14px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 18px;
  transition: 0.3s;
  z-index: 5;
}

.prev:hover, .next:hover {
  background: var(--secondary);
  transform: translateY(-50%) scale(1.1);
}

.prev { left: 10px; }
.next { right: 10px; }


/*logo ***********/

.logo-img {
  height: 42px;   /* match your old square logo size */
  width: auto;
  object-fit: contain;
  display: block;
}