/* --- CSS Reset & Dark Mode Base Styles --- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { 
  scroll-behavior: smooth; 
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; 
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 80px;
}

/* Dark Backgrounds and Light Text */
body { 
  background-color: #050505;
  color: #a3a3a3;
  line-height: 1.6; 
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
.container { 
  max-width: 1100px; 
  margin: 0 auto; 
  padding: 0 20px; 
}

/* Typography */
h1, h2, h3 { 
  color: #fff; 
  font-weight: 800; 
  line-height: 1.2; 
  letter-spacing: -0.02em; 
}
p { color: #a3a3a3; }

/* Buttons with Tech Glow */
.btn { 
  display: inline-block; 
  padding: 14px 28px; 
  background-color: #0ea5e9;
  color: #fff; 
  font-weight: 600; 
  border-radius: 6px; 
  text-align: center; 
  transition: all 0.3s ease; 
  border: none; 
  cursor: pointer; 
  font-size: 1rem; 
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.3);
}
.btn:hover { 
  background-color: #38bdf8; 
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.6);
  transform: translateY(-2px);
}

/* --- Navigation --- */
nav { 
  padding: 20px 0; 
  border-bottom: 1px solid #1f2937; 
  background-color: rgba(5, 5, 5, 0.9); 
  position: sticky; 
  top: 0; 
  z-index: 100; 
  backdrop-filter: blur(10px); 
}
.nav-content { 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
}
.btn-nav {
  color: #fff !important;
  padding: 6px 14px !important;
  font-size: 0.85rem !important;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}
.logo { 
  font-size: 1.5rem; 
  font-weight: 800; 
  color: #fff; 
}
.logo-light {
  font-weight: 400;
  color: #a3a3a3;
}

.logo-accent {
  background: linear-gradient(to right, #38bdf8, #0ea5e9);
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.nav-links a { 
  margin-left: 20px; 
  font-weight: 500; 
  color: #a3a3a3; 
  transition: color 0.2s; 
}
.nav-links a:hover { color: #38bdf8; }

/* Menu Toggle Styles */
/* Menu Toggle Styles */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 101;
}

.line {
  height: 2px;
  background-color: #fff;
  transition: all 0.3s ease-in-out;
  border-radius: 2px;
}

.line-1 {
  width: 100%;
}

.line-2 {
  width: 75%;
  align-self: flex-end;
}

.line-3 {
  width: 100%;
}

.menu-toggle.is-active .line-1 {
  transform: translateY(11px) rotate(45deg);
  background-color: #0ea5e9;
  box-shadow: 0 0 8px rgba(14, 165, 233, 0.6);
}

.menu-toggle.is-active .line-2 {
  opacity: 0;
  transform: translateX(10px);
}

.menu-toggle.is-active .line-3 {
  transform: translateY(-11px) rotate(-45deg);
  background-color: #0ea5e9;
  box-shadow: 0 0 8px rgba(14, 165, 233, 0.6);
}

/* --- Hero Section (The Aurora Reveal) --- */
.hero { 
  position: relative;
  min-height: 85vh; 
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px; 
  text-align: center; 
  background-image: url('assets/design.webp'); 
  background-size: cover;
  background-position: center top;
}

/* Fades the bottom of the image into the solid black background */
.hero-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(to bottom, rgba(5, 5, 5, 0.3) 0%, rgba(5, 5, 5, 1) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 { 
  font-size: 3.5rem; 
  margin-bottom: 20px; 
}
.text-mask {
  background: linear-gradient(to right, #38bdf8, #0ea5e9);
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.5));
}
.hero p { 
  font-size: 1.25rem; 
  max-width: 700px; 
  margin: 0 auto 40px auto; 
  color: #d4d4d4; 
}

/* About Section Styles */
.about { 
  padding: 80px 20px; 
}
#about .section-header {
  margin-bottom: 20px;
}
.about-content { 
  max-width: 1000px; 
  margin: 0 auto; 
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}
.about-text {
  flex: 1;
  text-align: left;
}
.about p { 
  font-size: 1.125rem; 
  margin-bottom: 20px; 
}
.about-image {
  flex-shrink: 0;
}
.about-image img {
  width: 100%;
  max-width: 250px;
  border-radius: 50%;
  display: block;
  border: 3px solid #1f2937;
}

/* --- Global Card Glow Effect (Applies to Services, Portfolio, & Contact) --- */
.glow-card {
  background: #111827;
  border: 1px solid #1f2937;
  border-radius: 8px;
  transition: all 0.3s ease;
}
.glow-card:hover {
  transform: translateY(-5px);
  border-color: #0ea5e9;
  box-shadow: 0 10px 30px rgba(14, 165, 233, 0.15);
}

/* --- Services Section --- */
.services { padding: 80px 20px; }
.services-grid { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  /* gap: 40px; */
  gap: 2rem; 
  margin-top: 40px; 
}

.service-card {
  background: #111827;
  border: 1px solid #1f2937;
  border-top: 3px solid #0ea5e9;
  border-radius: 8px;
  padding: 30px;
}

.service-card h3 { 
  font-size: 1.5rem; 
  margin-bottom: 15px; 
  color: #38bdf8; 
}

/* Pricing Section Styles */
.pricing { padding: 80px 20px; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 450px));
  gap: 2rem;
  margin-top: 2rem;
  justify-content: center;
}
.pricing-card {
  padding: 30px;
  text-align: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: left;
  background: #111827;
  width: 100%;
}
.pricing-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #0ea5e9;
}
.price {
  font-size: 3.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: baseline;
  justify-content: left;
  gap: 0.25rem;
}
.price span {
  font-size: 1.2rem;
  color: #a3a3a3;
  font-weight: 400;
}
.pricing-card p {
  color: #a3a3a3;
  line-height: 1.6;
}
.pricing-banner {
  margin-top: 3rem;
  padding: 2.5rem;
  text-align: left;
  background: rgba(14, 165, 233, 0.05);
  border-left: 4px solid #0ea5e9;
  border-radius: 4px;
}
.pricing-banner h3 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0.75rem;
}
.pricing-banner p {
  color: #a3a3a3;
  max-width: 800px;
  margin: 0;
  line-height: 1.6;
}

/* --- Tooltip Styling --- */
.tooltip {
  color: #38bdf8;
  text-decoration: none;
  cursor: help;
  position: relative;
  display: inline-block;
}

.tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 130%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #050505;
  color: #fff;
  padding: 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  width: 240px;
  text-align: center;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  border: 1px solid #1f2937;
  z-index: 100;
  line-height: 1.4;
  pointer-events: none;
}

.tooltip:hover::after {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(-5px);
}

/* Tooltip Arrow */
.tooltip::before {
  content: "";
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: #1f2937 transparent transparent transparent;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 101;
}

.tooltip:hover::before {
  visibility: visible;
  opacity: 1;
}

/* --- Portfolio Section --- */
.portfolio { padding: 80px 20px; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 15px; }
.section-header p { 
  font-size: 1.125rem; 
  max-width: 600px; 
  margin: 0 auto;
 }

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* gap: 30px; */
  gap: 2rem;
}

.flip-card {
  background-color: transparent;
  height: 250px;
  perspective: 1000px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
  transform-style: preserve-3d;
}

@media (hover: hover) and (pointer: fine) {
  .flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
  }
}

.flip-card.is-flipped .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  border-radius: 8px;
}

.flip-card-front {
  background: #111827;
  border: 1px solid #1f2937;
}

.flip-card-front h3 {
  font-size: 1.5rem;
  color: #38bdf8;
  margin: 0;
}

.flip-card-front.hvac-bg {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8)), url('assets/hvac.jpg');
  background-size: cover;
  background-position: center;
}

.flip-card-front.mechanic-bg {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('assets/mechanic.jpg');
  background-size: cover;
  background-position: center;
}

.flip-card-front.restaurant-bg {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('assets/mexican.jpg');
  background-size: cover;
  background-position: center;
}

.flip-card-back {
  background: #0ea5e9;
  border: 1px solid #38bdf8;
  transform: rotateY(180deg);
  box-shadow: 0 10px 30px rgba(14, 165, 233, 0.2);
}

.flip-card-back p {
  color: #050505;
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
}

/* Rendering Fix so the cards do not disappear when scrolling*/
.flip-card, .flip-card-inner {
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  will-change: transform;
}

/* --- Section Threads (Aurora Dividers) --- */
.section-thread {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, #0ea5e9, transparent);
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.6);
  margin-top: 40px;
  margin-bottom: 40px;
}

/* --- Contact Form Section --- */
.contact { padding: 80px 20px; }
.contact-form { 
  max-width: 600px; 
  margin: 0 auto; 
  padding: 40px; 
}
.form-group { margin-bottom: 20px; }
.form-group label { 
  display: block; 
  font-weight: 600; 
  margin-bottom: 8px; 
  color: #d4d4d4; 
}
.form-group input, 
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background-color: #0a0a0a;
  border: 1px solid #1f2937;
  color: #fff;
  border-radius: 6px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}
.form-group textarea {
  height: 180px;
  resize: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #4b5563;
}

.form-group input:hover,
.form-group textarea:hover {
  border-color: #4b5563;
  background-color: #111827;
}

.form-group input:focus, 
.form-group textarea:focus {
  outline: none;
  border-color: #0ea5e9;
  background-color: #050505;
  box-shadow: 0 0 15px rgba(14, 165, 233, 0.25);
}
.btn-full { width: 100%; }

.form-field {
  display: none;
}

#form-success {
  text-align: center;
  padding: 60px 20px;
  background: transparent;
  border: none;
  animation: fadeIn 0.5s ease;
}

#form-success h3 {
  color: #38bdf8;
  margin-bottom: 15px;
  font-size: 1.75rem;
}

#form-success p {
  color: #a3a3a3;
  font-size: 1.1rem;
}

.contact-form:has(#form-success:not(.hidden)),
.contact-form:has(#form-success:not(.hidden)):hover {
  border-color: #38bdf8;
  cursor: default;
  transform: none;
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.5);
}

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

.hidden {
  display: none;
}

/* Phone Number Link Styles */
.direct-contact {
  margin-top: 15px;
}

.direct-contact a,
.footer-contact a {
  color: #38bdf8;
  font-weight: 600;
  transition: color 0.2s ease;
}

.direct-contact a:hover,
.footer-contact a:hover {
  color: #ffffff;
}

.footer-contact {
  margin-bottom: 10px;
}

/* Privacy Policy */
.sticky-footer-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  box-sizing: border-box;
}

.legal-content {
  flex: 1;
  padding: 60px 20px;
}

.text-container {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  text-align: center;
  margin-bottom: 20px;
}

.last-updated {
  text-align: center;
  color: #a3a3a3;
  margin-bottom: 40px;
  font-weight: bold;
}

.legal-content h3 {
  color: #38bdf8;
  margin-top: 30px;
  margin-bottom: 15px;
}

.legal-content p {
  margin-bottom: 20px;
  text-align: left;
  line-height: 1.6;
}

.policy-actions {
  margin-top: 50px;
  text-align: center;
  padding-bottom: 20px;
}

footer { 
  text-align: center; 
  padding: 30px 20px; 
  border-top: 1px solid #1f2937; 
  color: #6b7280; 
  font-size: 0.875rem; 
}

footer a {
  color: #a3a3a3;
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover {
  color: #fff;
}

/* Media Queries */
@media (max-width: 1024px) {
  .portfolio-grid,
  .services-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin-left: auto;
    margin-right: auto;
  }
  .hero { padding: 80px 20px; }
  .about, .services, .pricing, .portfolio, .contact { padding: 60px 20px; }
  .section-thread { 
    margin-top: 30px; 
    margin-bottom: 30px; 
  }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2.5rem; }
  .menu-toggle { display: flex; }
  .nav-content { flex-wrap: wrap; }
  .hero { 
    padding: 60px 20px;
    background-image: url('assets/design-mobile.webp');
  }
  
  .about, 
  .services, 
  .portfolio, 
  .contact { 
    padding: 40px 20px; 
  }
  .about-content {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }
  .about-text {
    text-align: center;
  }
  .section-thread { 
    margin-top: 20px; 
    margin-bottom: 20px; 
  }
  
  .glow-card {
    border-color: #0ea5e9;
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.15);
  }
  .glow-card:hover {
    transform: none;
  }
  
  .price {
    font-size: 2.75rem; 
    justify-content: flex-start;
    margin-bottom: 0.75rem;
  }

  .price span {
    font-size: 0.9rem;
  }

  .contact-form {
    padding: 30px 15px;
  }

  @keyframes menuFade {
    from { opacity: 0; transform: translateY(-15px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    text-align: center;
    position: absolute;
    top: 70px;
    left: 0;
    background-color: rgba(5, 5, 5, 0.98);
    padding: 20px 0;
    border-bottom: 1px solid #1f2937;
  }

  .nav-links.active {
    display: flex;
    animation: menuFade 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  }

  .nav-links a {
    margin: 15px 0;
    font-size: 1.125rem;
  }
  /* Flip Card Peeling Corner Effect */
  .flip-card-front {
    position: relative;
  }
  /* Mobile-Only Peeling Corner */
  .flip-card-front::after {
    content: "";
    position: absolute;
    top: -1px;
    right: -1px;
    border-width: 0 25px 25px 0;
    border-style: solid;
    border-color: #050505 #050505 #0ea5e9 #0ea5e9;
    box-shadow: -3px 3px 5px rgba(0, 0, 0, 0.3);
    border-bottom-left-radius: 3px;
  }
}

@media (max-width: 380px) {
  .flip-card-back {
    padding: 15px;
  }

  .flip-card-back p {
    font-size: 0.9rem;
    line-height: 1.4;
  }
}