/* =====================================================================
   Love the Code theme (carried over from lovethecode.net)
   Bootstrap CSS provides the grid, navbar and utilities; this file supplies
   the dark palette, gradients, carousel and component styling.
   ===================================================================== */

:root,
[data-bs-theme='dark'] {
  --bs-body-bg: #0a0a0f;
  --bs-body-bg-rgb: 10, 10, 15;
  --bs-body-color: #fff;
  --bs-body-color-rgb: 255, 255, 255;
  --bs-secondary-color: rgba(255, 255, 255, 0.75);
  --bs-border-color: rgba(255, 255, 255, 0.1);
  --bs-body-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --bs-link-color: #8a99f5;
  --bs-link-color-rgb: 138, 153, 245;
  --bs-link-hover-color: #b2bcff;
  --bs-link-hover-color-rgb: 178, 188, 255;

  --ltc-brand: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --ltc-brand-glow: rgba(102, 126, 234, 0.4);
  --ltc-call: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

html {
  scroll-padding-top: 6rem; /* clears the fixed navbar */
}

@media (max-width: 767.98px) {
  html {
    scroll-padding-top: 8rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  overflow-x: hidden;
}

.site-container {
  max-width: 1400px;
  padding-inline: 5%;
}

.gradient-text {
  background: linear-gradient(135deg, #fff 0%, #e0e0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------------------------------------------------------------------
   Navigation
   --------------------------------------------------------------------- */
.site-nav {
  --bs-navbar-padding-y: 0;
  --bs-nav-link-color: rgba(255, 255, 255, 0.8);
  --bs-nav-link-hover-color: #fff;
  --bs-nav-link-padding-x: 0;
  --bs-nav-link-padding-y: 0.5rem;

  padding: 1.5rem 5%;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-nav .site-container {
  padding-inline: 0;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--ltc-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Horizontal link row, always */
.site-nav .site-nav-list {
  flex-wrap: nowrap;
  align-items: center;
  gap: 2.5rem;
}

.site-nav .nav-link {
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.3s;
}

@media (max-width: 767.98px) {
  .site-nav {
    padding-block: 1rem;
  }
  /* brand on the first line, links spread across the second */
  .site-nav .site-nav-list {
    width: 100%;
    margin-top: 0.5rem;
    justify-content: space-between;
    gap: 1rem;
  }
}

/* ---------------------------------------------------------------------
   Hero carousel (full width)
   --------------------------------------------------------------------- */
.hero-carousel {
  position: relative;
}

.hero-slide {
  position: relative;
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 7rem 5% 6rem;
  overflow: hidden;
}

.hero-slide.is-active {
  display: flex; /* switching from none to flex also replays the entrance animation */
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, transparent 0%, rgba(10, 10, 15, 0.8) 100%);
}

.particle {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}
.particle:nth-child(1) { width: 80px;  height: 80px;  top: 20%; left: 10%;  animation-delay: 0s; }
.particle:nth-child(2) { width: 120px; height: 120px; top: 60%; left: 80%;  animation-delay: 2s; }
.particle:nth-child(3) { width: 60px;  height: 60px;  top: 80%; left: 20%;  animation-delay: 4s; }
.particle:nth-child(4) { width: 100px; height: 100px; top: 30%; right: 15%; animation-delay: 1s; }

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  text-align: center;
}

.hero-subtitle {
  margin-bottom: 1rem;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.hero-title {
  margin-bottom: 1.5rem;
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-title-sm {
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  line-height: 1.1;
}

.subtitle {
  margin-bottom: 3rem;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 300;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.8);
}

.cta-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

/* Carousel controls */
.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  color: #fff;
  background: rgba(10, 10, 15, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  backdrop-filter: blur(6px);
  transform: translateY(-50%);
}
.hero-arrow-prev { left: 1.5rem; }
.hero-arrow-next { right: 1.5rem; }
.hero-arrow:hover { background: rgba(10, 10, 15, 0.6); }

.hero-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  z-index: 3;
  display: flex;
  gap: 0.25rem;
  transform: translateX(-50%);
}

.hero-dot {
  position: relative;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  background: transparent;
  border: 0;
}
.hero-dot::after {
  content: '';
  position: absolute;
  inset: 0.5rem;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
}
.hero-dot[aria-current='true']::after {
  inset: 0.4rem;
  background: #fff;
}

.hero-pause {
  position: absolute;
  bottom: 1.1rem;
  left: 5%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  color: #fff;
  background: rgba(10, 10, 15, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
}
.hero-pause:hover { background: rgba(10, 10, 15, 0.6); }

.hero-arrow:focus-visible,
.hero-dot:focus-visible,
.hero-pause:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

@media (max-width: 767.98px) {
  .hero-slide {
    padding-top: 8.5rem;
  }
  .hero-arrow {
    display: none; /* use the dots on phones */
  }
  .cta-container {
    flex-direction: column;
    align-items: center;
  }
  .cta-container .ltc-btn {
    width: 100%;
    max-width: 320px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .particle {
    animation: float 20s infinite ease-in-out;
  }
  .hero-subtitle { animation: slideUp 1s ease-out 0.2s both; }
  .hero-title    { animation: slideUp 1s ease-out 0.4s both; }
  .subtitle      { animation: slideUp 1s ease-out 0.6s both; }
  .cta-container { animation: slideUp 1s ease-out 0.9s both; }
}

@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); }
  25%      { transform: translateY(-30px) translateX(20px); }
  50%      { transform: translateY(-50px) translateX(-20px); }
  75%      { transform: translateY(-20px) translateX(10px); }
}

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

/* ---------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------- */
.ltc-btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  color: #fff;
  border: 2px solid transparent;
  border-radius: 50px;
}

.ltc-btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.ltc-btn-primary {
  background: var(--ltc-brand);
  box-shadow: 0 10px 40px var(--ltc-brand-glow);
}
.ltc-btn-primary:hover {
  color: #fff;
  box-shadow: 0 15px 50px rgba(102, 126, 234, 0.6);
}

.ltc-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}
.ltc-btn-secondary:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
}

/* dark label keeps text readable across the whole green gradient */
.ltc-btn-call {
  background: var(--ltc-call);
  color: #04231f;
  box-shadow: 0 10px 40px rgba(56, 239, 125, 0.3);
}
.ltc-btn-call:hover {
  color: #04231f;
  box-shadow: 0 15px 50px rgba(56, 239, 125, 0.5);
}

@media (prefers-reduced-motion: no-preference) {
  .ltc-btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .ltc-btn:hover {
    transform: translateY(-3px);
  }
}

/* ---------------------------------------------------------------------
   Sections, headings, cards
   --------------------------------------------------------------------- */
.site-section {
  padding-block: 2.5rem;
}

.section-title {
  margin-bottom: 1rem;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  text-align: center;
}

.section-subtitle {
  max-width: 70ch;
  margin: 0 auto 4rem;
  font-size: 1.2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
}

.tech-card {
  position: relative;
  padding: 1.5rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 25px;
}

.tech-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--ltc-brand);
  transform: scaleX(0);
}

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

.tech-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(102, 126, 234, 0.5);
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
}

.tech-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin-bottom: 2rem;
  font-size: 2.5rem;
  background: var(--ltc-brand);
  border-radius: 20px;
}

.tech-card h3 {
  margin-bottom: 1.5rem;
  font-size: 2rem;
  color: #fff;
}

.tech-card p {
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.75);
}

@media (prefers-reduced-motion: no-preference) {
  .tech-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .tech-card::before {
    transition: transform 0.4s;
  }
  .tech-card:hover {
    transform: translateY(-10px);
  }
  .tech-icon {
    transition: transform 0.4s;
  }
  .tech-card:hover .tech-icon {
    transform: scale(1.1) rotate(5deg);
  }
}

/* Per-technology icon colors */
.tech-card.cpanel .tech-icon    { background: linear-gradient(135deg, #ff6a13 0%, #ff8533 100%); }
.tech-card.webmin .tech-icon    { background: linear-gradient(135deg, #0066cc 0%, #0080ff 100%); }
.tech-card.angular .tech-icon   { background: linear-gradient(135deg, #dd0031 0%, #c3002f 100%); }
.tech-card.nodejs .tech-icon    { background: linear-gradient(135deg, #68a063 0%, #3c873a 100%); }
.tech-card.python .tech-icon    { background: linear-gradient(135deg, #306998 0%, #ffd43b 100%); }
.tech-card.wordpress .tech-icon { background: linear-gradient(135deg, #21759b 0%, #0073aa 100%); }

/* Green checkmark lists */
.tech-card ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.tech-card ul li {
  position: relative;
  margin-bottom: 0.6rem;
  padding-left: 2rem;
  line-height: 1.5;
}

.tech-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 1.2rem;
  height: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: bold;
  color: #00ff00;
}

/* ---------------------------------------------------------------------
   Videos
   --------------------------------------------------------------------- */
.ad-video {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 25px;
}

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
.site-footer {
  margin-top: 5rem;
  padding: 3rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
}

.footer-title {
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.footer-link {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.3s;
}
.footer-link:hover {
  color: #fff;
}

.footer-text {
  color: rgba(255, 255, 255, 0.6);
}

/* Horizontal footer link row */
.footer-nav {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-nav .nav {
  --bs-nav-link-color: rgba(255, 255, 255, 0.6);
  --bs-nav-link-hover-color: #fff;
  --bs-nav-link-padding-x: 1rem;
  --bs-nav-link-padding-y: 0.5rem;
  --bs-nav-link-font-size: 1rem;
}

.footer-nav .nav-link {
  transition: color 0.3s;
}

.footer-copyright {
  margin: 0;
  padding: 0.5rem 0 1.75rem;
  text-align: center;
  font-size: 0.9rem;
}

/* ---------------------------------------------------------------------
   Glow cursor (mouse devices only; shown by GlowCursor.jsx)
   --------------------------------------------------------------------- */
.glow-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  display: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0;
}

/* ---------------------------------------------------------------------
   Accessibility helpers
   --------------------------------------------------------------------- */
.skip-link:focus {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 2000;
  padding: 0.5rem 1rem;
  color: #000;
  background: #fff;
  border-radius: 6px;
}

.noscript {
  max-width: 40rem;
  margin: 4rem auto;
  padding: 0 1rem;
  text-align: center;
}
