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

body, figure{
    box-sizing: border-box;
    margin: 0;
    font-family: "Poppins", sans-serif;
    font-weight: 200;
    font-style: normal;
}

header{
    position:fixed;
    z-index: 2;
    background-color: white;
    width: 100%;
}

main{
  padding-top: 136px;
}

.header-section{
    color: rgba(0, 0, 0, 0.818);
    margin: 0 270px;
    display: flex;
    justify-content: center;
    gap: 40px;
    height: 100px;
    padding: 1px;
}

.icon-div{
    display: flex;
    align-items: center;
    gap: 5px;
}

a{
    color: white;
    text-decoration: none;
}

.nav-links{
    background-color: #353535;
    font-weight: 500;
    list-style: none;
    padding: 10px 0;
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 0;
    border: 1px solid lime;
}


/* This is where the slider begins */
.slider-container {
  position: relative;
  width: 100%;
  height: 885px;
  overflow: hidden;
  background-color: #000;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  display: flex;
  align-items: center;
  animation: fadeSlider 15s infinite; 
}

.slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4); 
  z-index: 1;
}

.slide-1 { background-image: url('./assets/modernCellphoneTradeIn.jpg'); }
.slide-2 { 
  background-image: url('./assets/Gemini_Generated_Image_rx0x5prx0x5prx0x.jpeg'); 
  animation-delay: 5s; 
}
.slide-3 { 
  background-image: url('./assets/supermodernstore.jpg'); 
  animation-delay: 10s; 
}

.slide-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 600px;
  padding: 40px;
  margin-left: 5%;
  background-color: rgba(0, 0, 0, 0.086);
}

.slide-content h2 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 15px;
  text-transform: uppercase;
}

.slide-content p {
  font-size: 1.5rem;
}

@keyframes fadeSlider {
  0% { opacity: 0; }
  5% { opacity: 1; }
  33.33% { opacity: 1; }
  38.33% { opacity: 0; }
  100% { opacity: 0; }
}
/* This is where the slider ends */

.services-container{
  display: flex;
  justify-content: center;
  gap: 50px;
  height: 300px;
}

.service-card{
  background-color: rgba(0, 0, 0, 0.586);
  border-radius: 8px;
  color: white;
  padding: 20px;
  text-align: center;
  max-width: 350px;
  background-blend-mode: darken;
  align-content: center;
}

.card-one{
  background-image: url(./assets/image_4e1fb078.jpg);
  background-position: center;
}

.card-two{
  background-image: url(./assets/image_1d82bfea.jpg);
  background-position: center;
}

.card-three{
  background-image: url(./assets/image_6cea4a23.jpg);
  background-position: center;
}

.about-us-container{
  background-image:linear-gradient(to right, blue, rgba(0, 255, 0, 0.789));
  font-weight: 500;
  color: white;
  padding: 60px;
}

.reviews {
  padding: 25px 25px 66px 25px;
  background-image: url(./assets/mountain.jpg);
  background-size: cover;
  background-repeat: no-repeat;
  background-color: rgba(0, 0, 0, 0.438);
  background-blend-mode: darken;
  background-position: center;
}

.reviews-section {
  margin-bottom: 60px;
}

.review-container {
  display: flex;
  justify-content: flex-start; 
  gap: 25px;
  overflow-x: auto; 
  padding: 20px 10px; 
  scroll-behavior: auto; /* Changed from smooth to auto for the JS interval to work seamlessly */
  
  /* Hides the scrollbar */
  -ms-overflow-style: none;  
  scrollbar-width: none;  
}

.review-container::-webkit-scrollbar {
  display: none; 
}

.review-figure {
  display: flex;
  justify-content: start;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto; 
  width: 320px; 
  background-color: #22242a5d;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 5px 5px 15px black;
  color: white;
  
  /* Added z-index to 1 so the hovered card sits on top of its neighbors */
  z-index: 1; 
  transition: transform 0.3s ease, z-index 0s; 
}

figure.review-figure:hover {
  border: 1px solid rgba(0, 255, 0, 0.805);
  transform: scale(1.08); /* Increased scale to make it visibly bigger */
  z-index: 1; /* Brings the hovered card to the very front */
}

.form-section{
  background-image: url(./assets/repairFormImg.jpg);
  background-color: rgba(24, 24, 24, 0.764);
  background-repeat: no-repeat;
  background-blend-mode: darken;
  background-size:cover;
  background-position: center;
  color: white;
  margin-top: 60px;
  border-right: 1px solid lime;
  width: 50%;
}

/* This is where the contact form begins */
form{
  padding: 15px 70px 70px 70px;
}

#message{
  border: 1px solid #e0e0e0;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  padding: 30px;
  background-color: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  font-family: sans-serif;
  border-radius: 8px;
}

.contact-form h2 {
  font-size: 24px;
  margin-bottom: 15px;
  font-weight: bold;
}

.contact-form p {
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 25px;
  color: #e0e0e0;
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  width: 40%;
}

.form-group label {
  font-size: 14px;
  margin-bottom: 8px;
  color: #ffffff;
}

.form-group input,
.form-group textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid #ffffff;
  color: #ffffff;
  padding: 8px 0;
  font-size: 16px;
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: lime;
}

.form-checkbox {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
  font-size: 14px;
}

.form-checkbox input {
  margin-right: 10px;
  accent-color: lime;
  transform: scale(1.2);
}

.form-checkbox a {
  color: #ffffff;
  text-decoration: underline;
}

.submit-btn {
  background-color: #ffffff;
  color: #000000;
  border: none;
  width: 18%;
  padding: 14px;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 1px;
  border-radius: 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.submit-btn:hover {
  background-color: #353535;
  border: 1px solid whitesmoke;
  color: whitesmoke;
}
/* Contact form ends */

.form-container{
  display: flex;
}

/* Right side of form */
/* Adjust width for the radio button questions so they don't wrap awkwardly */
.form-group.condition-group {
  width: 100%;
  max-width: 600px; 
}

/* Include select elements in your existing input styles */
.form-group input[type="text"]{
  background: transparent;
  border: none;
  border-bottom: 1px solid #ffffff;
  color: #ffffff;
  padding: 8px 0;
  font-size: 16px;
  outline: none;
  width: 100%;
}

.form-group select {
  -webkit-appearance: none;
  appearance: none;
  background-color: transparent;
  border: 1px solid #ffffff;
  border-radius: 8px;
  color: #ffffff;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  text-align-last: center; /* Centers the text inside the dropdown */
  cursor: pointer;
  width: 100%;
  outline: none;
  transition: all 0.2s ease;
}

/* Add the same hover/focus effect as the radio buttons */
.form-group select:hover,
.form-group select:focus {
  border-color: lime;
  color: lime;
  background-color: #353535;
}

/* Fix dropdown option colors so they are readable on dark backgrounds */
.form-group select option {
  background-color: #222222;
  color: #ffffff;
}

.form-group input:focus,
.form-group select:focus {
  border-bottom-color: lime;
}

/* Container for the buttons */
.radio-options {
  display: flex;
  gap: 20px;
  padding-top: 10px;
}

/* Style the label to look like a clickable button/card */
.radio-options label {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background-color: transparent;
  border: 1px solid #ffffff;
  border-radius: 8px;
  color: #ffffff;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.2s ease;
  width: 100%;
  text-align: center;
  margin-bottom: 0;
}

/* Hide the default circular radio input */
.radio-options input[type="radio"] {
  display: none;
}

/* Hover effect */
.radio-options label:hover {
  border-color: lime;
  color: lime;
  background-color: #353535; /* Faint lime glow */
}

/* Selected/Checked state */
.radio-options label:has(input[type="radio"]:checked) {
  border-color: lime;
  color: #000000;
  background-color: lime;
}

.right-side-questions{
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items:center;
}

.right-side-beginning{
  width: 50%;
}

.right-side-beginning > div{
  width: 100%;
}
/* Right side ends */

.custom-footer {
  background-color: #2d2d2d; 
  color: #f3f4f6; 
  font-family: Arial, sans-serif;
  padding: 60px 20px 20px;
  line-height: 1.6;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
}

.footer-col {
  flex: 1;
  min-width: 250px;
  padding: 20px;
}

/* Brand Column */
.brand-col p {
  color: #9ca3af;
  font-size: 0.95rem;
  margin-top: 15px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer-logo img {
  width: 50px; 
  height: auto;
}

.footer-logo h3 {
  color: #ffffff;
  margin: 0;
  font-size: 1.5rem;
}

/* Headings */
.footer-col h4 {
  color: #ffffff;
  font-size: 1.2rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}



/* Lists and Links */
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col ul li {
  margin-bottom: 12px;
  color: #9ca3af;
}

.footer-col ul li a,
.contact-info li a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-col ul li a:hover,
.contact-info li a:hover {
  color: #39FF14; 
}

/* Contact Specifics */
.contact-info li {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}

.contact-info i {
  color: #39FF14; /* Green icons */
  width: 20px;
  text-align: center;
}

.contact-info strong {
  color: #ffffff;
}

/* Social Media Section */
.social-section {
  margin-top: 30px;
}

.social-icons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #4b5563;
  color: #ffffff;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: #000000;
  color: #2d2d2d;
  transform: translateY(-3px); /* Slight lift on hover */
}


/* Bottom Bar */
.footer-bottom {
  max-width: 1200px;
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid #4b5563;
  text-align: center;
  color: #9ca3af;
  font-size: 0.85rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
  }
}

@media (max-width: 1100px) {
  .header-section {
    margin: 0 24px;
    gap: 24px;
  }

  .services-container {
    gap: 20px;
    padding: 0 20px;
  }

  .service-card {
    flex: 1 1 0;
  }

  .about-us-container h2,
  .about-us-container p {
    margin-right: 0 !important;
    margin-left: 0 !important;
  }
}

@media (max-width: 900px) {
  .header-section {
    margin: 0 16px;
    gap: 16px;
  }

  .header-section > img {
    flex: 0 0 auto;
  }

  .icon-div {
    font-size: 0.85rem;
  }

  .icon-div img {
    flex: 0 0 auto;
    width: 28px;
    height: 30px;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 10px 20px;
    padding: 10px 16px;
  }

  .slider-container {
    height: min(72vh, 720px);
    min-height: 520px;
  }

  .services-container {
    height: auto;
    flex-wrap: wrap;
  }

  .service-card {
    flex: 1 1 260px;
    min-height: 250px;
  }

  .about-us-container {
    padding: 40px;
  }

  .form-container {
    flex-direction: column;
  }

  .form-section {
    width: 100%;
    margin-top: 0;
  }

  .right-side-questions {
    gap: 24px;
  }

  .right-side-beginning {
    width: 50%;
  }

  .form-section > h2,
  .form-section > p {
    padding-left: 40px !important;
    padding-right: 40px !important;
  }

  .form-section > p {
    width: auto !important;
  }

  .form-section > h2 {
    padding-top: 40px !important;
  }
}

@media (max-width: 600px) {
  header {
    position: sticky;
    top: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  }

  main {
    padding-top: 0;
  }

  .header-section {
    height: auto;
    min-height: 64px;
    margin: 0;
    padding: 8px 16px;
    justify-content: center;
  }

  .header-section > img {
    width: 56px;
    height: auto;
  }

  .header-section .icon-div {
    display: none;
  }

  .nav-links {
    display: flex;
    flex-wrap: nowrap; /* Prevents wrapping to force a single line */
    overflow-x: auto; /* Enables horizontal scrolling */
    gap: 12px;
    padding: 12px 16px;
    border: none;
    border-bottom: 1px solid lime;
    background-color: #1a1a1a;
    
    /* Hides the scrollbar for a cleaner look */
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-behavior: smooth;
    align-items: center;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links li {
    flex: 1 1 30%;
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 8px 3px;
    font-size: 0.72rem;
    line-height: 1.2;
  }

  .nav-links a:hover{
    border-bottom: 1px solid lime;
  }

  .slider-container {
    height: min(68svh, 600px);
    min-height: 430px;
  }

  .slide-content {
    width: calc(100% - 32px);
    max-width: none;
    margin: 0 16px;
    padding: 24px 20px;
  }

  .slide-content h2 {
    font-size: clamp(1.75rem, 7vw, 2.25rem);
  }

  .slide-content p {
    font-size: 1rem;
  }

  #Services {
    margin: 28px 12px 20px;
    font-size: 1.5rem !important;
  }

  .services-container {
    flex-direction: column;
    gap: 16px;
    padding: 0 16px;
  }

  .service-card {
    flex: auto;
    width: 100%;
    min-height: 0;
    padding: 24px 20px;
    margin: 0 auto;
  }

  .reviews-section {
    margin-bottom: 32px;
  }

  .reviews-section > img {
    display: block;
    padding: 16px !important;
  }

  .about-us-container {
    padding: 28px 20px;
  }

  .about-us-container h2 {
    font-size: 1.5rem;
    line-height: 1.3;
  }

  .about-us-container p {
    line-height: 1.7 !important;
  }

  .reviews {
    padding: 20px 12px 40px;
  }

  .reviews > h2 {
    font-size: 1.8rem !important;
  }

  .review-container {
    gap: 16px;
    padding: 16px 4px;
    scroll-snap-type: x mandatory;
  }

  .review-figure {
    width: min(82vw, 320px);
    padding: 18px;
    scroll-snap-align: center;
  }

  .review-figure q {
    line-height: 1.7 !important;
  }

  .form-section > h2,
  .form-section > p {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .form-section > h2 {
    padding-top: 28px !important;
    font-size: 1.65rem !important;
  }

  form {
    padding: 16px 20px 28px;
  }

  .form-group {
    width: 100%;
  }

  .right-side-questions {
    flex-direction: column;
    gap: 0;
  }

  .right-side-beginning {
    width: 100%;
  }

  .right-side-beginning .half-width-group {
    width: 100% !important;
  }

  .radio-options {
    gap: 10px;
  }

  .radio-options label {
    padding: 12px 10px;
  }

  .form-checkbox {
    align-items: flex-start;
    line-height: 1.5;
  }

  .submit-btn,
  .form-section .quote-submit {
    width: 100% !important;
  }

  #Location {
    scroll-margin-top: 120px !important;
  }

  #Location h3 {
    font-size: 1.6rem !important;
  }

  #Location iframe {
    display: block;
    height: 320px;
  }

  .footer-container {
    gap: 12px;
  }

  .footer-col {
    min-width: 0;
    padding: 12px;
  }

  .footer-logo h3 {
    font-size: 1.25rem;
  }

  .links-col {
    align-items: flex-start !important;
  }

  .footer-col h4 {
    width: auto !important;
  }
}

/* index.html migration */
.header-logo {
  margin-top: 15px;
}

.header-details {
  font-weight: bolder;
  font-size: small;
}

.slide-content .slide-tagline {
  font-size: medium;
  font-weight: 500;
  color: lime;
}

#Services {
  text-align: center;
  font-size: xx-large;
  scroll-margin-top: 146px;
}

.reviews-image,
.review-image {
  padding: 20px 0;
}

.about-us-heading {
  margin: 0 270px;
}

.about-us-copy {
  margin: 0 270px;
  padding-top: 10px;
  line-height: 2;
}

.testimonies-heading {
  text-align: center;
  font-size: 2.5rem;
  color: white;
}

.review-quote {
  line-height: 2;
}

.form-heading {
  padding: 70px 0 0 70px;
  font-size: xx-large;
  scroll-margin-top: 146px;
}

.form-description {
  padding-left: 70px;
  width: 45%;
}

.form-section label span {
  color: lime;
}

.repair-form-note,
.quote-form-checkbox {
  padding: 20px 0;
  color: lime;
  font-weight: bold;
}

.quote-form-checkbox {
  margin-bottom: 0;
}

.exchange-section {
  background-image: url(./assets/sellexchange.jpg);
}

.half-width-group {
  width: 50%;
}

.quote-submit {
  width: 20%;
}

#Location {
  scroll-margin-top: 146px;
}

.location-heading {
  font-size: 2rem;
  text-align: center;
}

.location-map {
  width: 100%;
}

.links-col {
  text-align: center;
}

.footer-heading {
  border-bottom: 2px solid lime;
  text-align: center;
  margin-top: 0;
}

/* Promotional popup */
/* The transparent background overlay */
.gift-popup-overlay {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* Transparent dark background */
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

/* The actual popup box */
.gift-popup-content {
  background-image: url(./assets/PromotionalPopup.jpeg);
  background-size: cover;
  background-position: center;
  background-blend-mode: darken;
  background-color: #00000066;
  color: white;
  padding: 30px 40px;
  border-radius: 8px;
  text-align: center;
  position: relative;
  max-width: 400px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  animation: fadeIn 0.3s ease-in-out;
  font-weight: bold;
}

/* The close button (X) */
.close-popup {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  color: white;
}

.close-popup:hover {
  color: lime;
}

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