/* ---------- CSS Variables & Resets ---------- */
:root {
  --bg1: #0d1b2a;
  --bg2: #1b263b;
  --accent1: #2ecce3;
  --accent2: #a4508b;
  --txt: #e0e0e0;
  --txt-light: #9ba9c1;
  --radius: 1.25rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  scroll-behavior: smooth;
  font-family: 'Inter', sans-serif;
  color: var(--txt);

  background: linear-gradient(
    135deg,
    #0d1b2a,
    #1b263b,
    #264653,
    #3a506b
  );
  background-size: 400% 400%;
  animation: bgScroll 28s ease-in-out infinite;
  overflow-x: hidden;
}

/* ---------- Gradient Text Utility ---------- */
.gradient-text {
  background: linear-gradient(to right, #ffffff, #7ed6f5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-fill-color: transparent;
}


/* ---------- Angular Background Pattern ---------- */
.bg-pattern {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -3;

  background: linear-gradient(
    135deg,
    rgba(46, 204, 113, 0.05) 25%,
    rgba(155, 89, 182, 0.05) 25%,
    rgba(155, 89, 182, 0.05) 50%,
    rgba(241, 196, 15, 0.05) 50%,
    rgba(241, 196, 15, 0.05) 75%,
    rgba(52, 152, 219, 0.05) 75%
  );
  background-size: 300% 300%;
  animation: bgWaves 40s ease infinite;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

/* ---------- Global Elements ---------- */
a { color: var(--accent1); text-decoration: none; }
h1, h2 { font-weight: 800; line-height: 1.1; }
h2 { font-size: 2.25rem; margin-bottom: .5em; }
p  { font-size: 1.1rem; color: var(--txt-light); }

.btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: .85rem 2.25rem;
  font-weight: 600;
  border-radius: var(--radius);
  background: var(--accent1);
  color: var(--bg1);
  transition: transform .25s, box-shadow .25s;
}
.btn.alt { background: var(--accent1); }
.btn:hover { transform: translateY(-4px); box-shadow: 0 10px 20px rgba(0,0,0,.35); }

/* ---------- Navigation Bar ---------- */
.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5vw;
  position: sticky;
  top: 0;
  z-index: 10;

  background: rgba(5, 10, 20, 0.65);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}
.logo a {
  font-size: 1.5rem;
  font-weight: 800;
  text-decoration: none;
}


.menu { display: flex; gap: 2rem; }
.menu a { position: relative; }
.menu a.active {
  font-weight: 800;
  color: var(--accent1);
}
.menu a.active::after { width: 100%; }


.menu a::after {
  content: '';
  position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--accent1);
  transition: width .3s;
}
.menu a:hover::after { width: 100%; }

.menu a.active {
  font-weight: 800;
  color: var(--accent1);
}

.menu a.active::after {
  width: 100%;
}

.burger { display: none; flex-direction: column; gap: .35rem; cursor: pointer; }
.burger span {
  width: 25px; height: 3px; background: var(--txt); border-radius: 3px;
  transition: transform .3s, opacity .3s;
}

/* ---------- Hero Section ---------- */
.hero {
  min-height: 80vh;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  padding: 0 5vw;
}
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
.hero p  { max-width: 35ch; margin-top: 1rem; }

.build-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
  justify-items: center;
}

.build-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  width: 100%;
  max-width: 640px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}

.build-card:hover {
  transform: translateY(-8px);
}

.build-card img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.build-card h3 {
  font-size: 1.25rem;
  margin: 0.5rem 0;
  color: var(--txt);
}

.build-card p {
  font-size: 1rem;
  color: var(--txt-light);
}


/* ---------- Services ---------- */
.service {
  display: flex; align-items: center; gap: 4vw;
  padding: 8rem 5vw;
}
.service.reverse { flex-direction: row-reverse; }
.service__text { flex: 1 1 50%; }
.service__img {
  flex: 1 1 50%;
  min-height: 340px;
  border-radius: var(--radius);
  background-size: cover; background-position: center;
  box-shadow: 0 10px 40px rgba(0,0,0,.45);
}
.img--custom  { background-image: linear-gradient(135deg, #2b5876, #4e4376), url('https://picsum.photos/800/600?random=1'); }
.img--repairs { background-image: linear-gradient(135deg, #cb2d3e, #ef473a), url('https://picsum.photos/800/600?random=2'); }
.img--ai      { background-image: linear-gradient(135deg, #1e3c72, #2a5298), url('https://picsum.photos/800/600?random=3'); }

/* ---------- Contact Section ---------- */
.contact {
  text-align: center;
  padding: 6rem 5vw;
}
.contact p { margin: 1rem 0 2rem; }

/* ---------- Footer ---------- */
footer {
  text-align: center;
  padding: 2rem 5vw;
  font-size: .9rem;
  color: var(--txt-light);
}

/* ---------- Fade-in Elements ---------- */
.fade { opacity: 0; transform: translateY(50px); transition: opacity .8s ease, transform .8s ease; }
.fade.visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .service, .service.reverse { flex-direction: column; }
  .menu { display: none; position: fixed; top: 64px; right: 0; flex-direction: column;
          background: var(--bg2); padding: 1rem 2rem; gap: 1.25rem; }
  .menu.show { display: flex; }
  .burger { display: flex; }
  .hero { padding-top: 6rem; }
}

/* ---------- Animations ---------- */
@keyframes bgScroll {
  0%   { background-position: 0% 50%; filter: hue-rotate(0deg); }
  50%  { background-position: 100% 50%; filter: hue-rotate(35deg); }
  100% { background-position: 0% 50%; filter: hue-rotate(0deg); }
}

@keyframes bgWaves {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
/* Flex row: List on left, gallery on right */
.repairs-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 4rem;
  padding: 5rem 5vw;
  align-items: flex-start;
}

/* Repair List */
.repair-list {
  flex: 1;
  min-width: 300px;
  max-width: 400px;
}

.repair-list h2 {
  margin-bottom: 1.5rem;
}

.repair-list ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

.repair-list li {
  font-size: 1.15rem;
  background: rgba(255,255,255,0.03);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.repair-list li span {
  font-size: 1.5rem;
}

/* Inherit PC card gallery style */
.repair-gallery {
  flex: 2;
  min-width: 500px;
}
.service-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2.5rem;
  margin-top: 3rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.service-card {
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease;
}

.service-card:hover {
  transform: translateY(-6px);
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-card p {
  font-size: 1.05rem;
  color: var(--txt-light);
}
