/* ===== CSS Variables ===== */
:root {
  --violet: #6a0dad;
  --aquafina: #7fffd4;
  --light-blue: #add8e6;
  --cool-grey: #8d99ae;
  --dark: #2b2d42;
  --white: #ffffff;
  --transition: 0.4s ease;
}

/* ===== Base Styles ===== */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Roboto', sans-serif;
  color: #333;
  overflow-x: hidden;
  line-height: 1.6;
  background-color: var(--white);
}

h1, h2, h3, h4 {
  font-family: 'Orbitron', sans-serif;
  color: var(--dark);
}

/* ===== Hero Section ===== */

.hero {
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.video-background video {
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.1);
  z-index: 1;
}

.microchip-container {
  position: relative;
  z-index: 100; /* Increased z-index to ensure it's above video */
}

.microchip {
  width: 300px;
  height: 300px;
  background-color: rgba(0, 0, 0, 0.7);
  border: 3px solid var(--aquafina);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  position: relative; /* Add this */
  z-index: 110; /* Higher than container */
  padding: 20px; /* Add padding to keep content inside */
  box-sizing: border-box; /* Include padding in width/height */
}

.microchip:hover {
  transform: scale(1.05);
  box-shadow: 0 0 30px var(--aquafina);
}

.microchip-inner {
  text-align: center;
  width: 100%; /* Take full width of microchip */
  height: 100%; /* Take full height of microchip */
  display: flex;
  flex-direction: column;
  justify-content: center; /* Center vertically */
  align-items: center; /* Center horizontally */
  padding: 15px; /* Inner padding */
  color: white;
}

.logo {
  max-width: 70%; /* Reduce max-width to ensure it fits */
  max-height: 60%; /* Limit height proportion */
  margin-bottom: 15px;
  transition: transform 0.3s ease;
  object-fit: contain; /* Ensure image maintains aspect ratio */
}


.logo:hover {
  transform: scale(1.05);
}

.tagline {
  font-family: 'Orbitron', sans-serif;
  font-weight: 400;
  color: var(--aquafina);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 1.1rem;
  margin-top: 20px;
}

/* ===== Content Transition ===== */
.content-hidden {
  display: none;
}

.content-visible {
  display: block;
  animation: fadeIn 0.8s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== Navbar ===== */
.navbar {
  background-color: rgba(0, 0, 0, 0.9) !important;
  padding: 15px 0;
  transition: all var(--transition);
}

.navbar-brand img {
  transition: all 0.3s ease;
}

.navbar-brand img:hover {
  transform: scale(1.1);
}

.nav-link {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--aquafina);
}

.btn-contact {
  background-color: var(--violet);
  border-radius: 4px;
  padding: 8px 20px !important;
  margin-left: 10px;
}

/* ===== Services Section ===== */
.services-section {
  padding: 80px 0;
}

.service-card {
  position: relative;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  background: white;
  margin-bottom: 30px;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

/* Specific card hover effects */
.purple-card:hover {
  box-shadow: 0 15px 30px rgba(106, 13, 173, 0.2);
}

.green-card:hover {
  box-shadow: 0 15px 30px rgba(40, 167, 69, 0.2);
}

.blue-card:hover {
  box-shadow: 0 15px 30px rgba(173, 216, 230, 0.3);
}

.red-card:hover {
  box-shadow: 0 15px 30px rgba(220, 53, 69, 0.2);
}

/* Ensure all icons animate on hover */
.service-card:hover .service-icon {
  transform: scale(1.2) rotate(10deg);
}

.service-badge {
  position: absolute;
  top: 15px;
  right: -30px;
  background: var(--violet);
  color: white;
  padding: 5px 30px;
  font-size: 0.8rem;
  font-weight: 600;
  transform: rotate(45deg);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
 .service-ribbon {
  position: absolute;
  top: 30px;
  right: -30px;
  background: var(--light-blue);
  color: var(--dark);
  padding: 5px 30px;
  font-size: 0.8rem;
  font-weight: 600;
  transform: rotate(45deg);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  
 }

.blue-card:hover .service-ribbon {
  background: #9bc4d8; /* Slightly lighter blue on hover */
  transition: background 0.3s ease;
}
/*.service-card:hover .service-ribbon {
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0% { transform: rotate(15deg) scale(1); }
  50% { transform: rotate(15deg) scale(1.05); }
  100% { transform: rotate(15deg) scale(1); }
}
*/

.service-icon {
  font-size: 2.5rem;
  margin: 20px auto;
  color: var(--violet);
  transition: all 0.5s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.2) rotate(10deg);
}

.service-card h3 {
  font-size: 1.4rem;
  margin: 0 25px 15px;
  color: var(--dark);
}

.service-price {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 25px 15px;
  color: var(--dark);
}

.service-content {
  flex: 1;
  padding: 0 25px 15px;
  display: flex;
  flex-direction: column;
}

.service-features {
  padding-left: 20px;
  margin: 20px 0;
  list-style: none;
}

.service-features li {
  margin-bottom: 10px;
  position: relative;
}

.service-features li i {
  margin-right: 8px;
  color: var(--violet);
}

.service-footer {
  margin-top: auto;
  padding: 20px;
  background: rgba(0,0,0,0.03);
  border-top: 1px solid rgba(0,0,0,0.05);
}

.service-btn {
  display: block;
  padding: 10px;
  text-align: center;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s ease;
  background: var(--violet);
  color: white;
  text-decoration: none;
}

.service-btn:hover {
  background: #5a0a9d;
  transform: translateY(-2px);
}

/* Card Color Themes */
.purple-card {
  border-top: 4px solid var(--violet);
}
.purple-card .service-btn {
  background: var(--violet);
}
.purple-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(106, 13, 173, 0.2);
}

/* ===== Contact Section ===== */
.contact-section {
  padding: 80px 0;
  background-color: #f8f9fa;
  position: relative;
}

.contact-section .container {
  max-width: 800px;
}

.contact-section h2 {
  text-align: center;
  margin-bottom: 40px;
  color: var(--violet);
  font-size: 2.5rem;
}

.contact-form {
  background: white;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--dark);
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--aquafina);
  outline: none;
  box-shadow: 0 0 0 3px rgba(127, 255, 212, 0.2);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.btn-submit {
  background-color: var(--violet);
  color: white;
  border: none;
  padding: 12px 30px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: block;
  margin: 0 auto;
}

.btn-submit:hover {
  background-color: #5a0a9d;
  transform: translateY(-2px);
}

.btn-submit i {
  margin-right: 8px;
}
.btn-contact {
    margin-left: 0;
    margin-top: 10px;
}

/* ===== Footer Styles ===== */
.footer {
  background-color: var(--dark);
  color: white;
  padding: 30px 0;
  text-align: center;
}

.footer p {
  margin: 0;
  line-height: 1.6;
}

.footer a {
  color: var(--aquafina);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: white;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
	.service-ribbon {
    right: -30px;
    width: 110px;
    font-size: 0.7rem;
    padding: 6px 10px;
  }
  
  .microchip {
    width: 250px;
    height: 250px;
	 padding: 15px;
  }
  
  .tagline {
    font-size: 0.9rem;
	 margin-top: 15px;
  }
}
  
  .btn-contact {
    margin-left: 0;
    margin-top: 10px;
  }
  
  .service-card {
    margin-bottom: 30px;
  }
}
/* ===== Pricing Toggle ===== */
.pricing-toggle {
  margin-bottom: 2rem;
}

.btn-toggle {
  background: white;
  border: 1px solid var(--cool-grey);
  color: var(--dark);
  padding: 8px 20px;
  transition: all 0.3s ease;
  font-weight: 600;
}

.btn-toggle.active {
  background: var(--violet);
  color: white;
  border-color: var(--violet);
}

.btn-toggle:first-child {
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
}

.btn-toggle:last-child {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
}

/* Service Card Color Themes */
.green-card {
  border-top: 4px solid #28a745;
}
.green-card .service-icon,
.green-card .service-features li i {
  color: #28a745;
}
.green-card .service-btn {
  background: #28a745;
}
.green-card:hover {
  box-shadow: 0 15px 30px rgba(40, 167, 69, 0.2);
}

.blue-card {
  border-top: 4px solid var(--light-blue);
}
.blue-card .service-icon,
.blue-card .service-features li i {
  color: var(--light-blue);
}
.blue-card .service-btn {
  background: var(--light-blue);
  color: var(--dark);
}
.blue-card:hover {
  box-shadow: 0 15px 30px rgba(173, 216, 230, 0.3);
}

.red-card {
  border-top: 4px solid #dc3545;
}
.red-card .service-icon,
.red-card .service-features li i {
  color: #dc3545;
}
.red-card .service-btn {
  background: #dc3545;
}
.red-card:hover {
  box-shadow: 0 15px 30px rgba(220, 53, 69, 0.2);
}
/* ===== Testimonial Styles ===== */
.service-testimonial {
  padding: 15px;
  margin: 15px;
  background: rgba(255,255,255,0.9);
  border-radius: 8px;
  font-style: italic;
  position: relative;
  border-left: 3px solid var(--aquafina);
}

.service-testimonial::before {
  content: '"';
  font-size: 3rem;
  position: absolute;
  top: -15px;
  left: 5px;
  opacity: 0.2;
  font-family: serif;
  color: var(--dark);
}

.testimonial-author {
  font-weight: bold;
  font-style: normal;
  font-size: 0.8rem;
  margin-top: 8px;
  text-align: right;
  color: var(--dark);
}

/* Adjust card spacing for testimonials */
.service-card {
  padding-bottom: 15px;
}

/* About Section Styles */
.about-section {
  background-color: #f8f9fa;
}

.underline {
  width: 80px;
  height: 3px;
  background: var(--violet);
  margin-top: 15px;
}

.feature-list {
  list-style: none;
  padding-left: 0;
}

.feature-list li {
  margin-bottom: 15px;
  padding-left: 30px;
  position: relative;
}

.feature-list i {
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--violet);
}

.service-item {
  background: white;
  transition: all 0.3s ease;
  border: 1px solid rgba(0,0,0,0.05);
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* FAQ Section Styles */
.faq-section {
  background-color: white;
}

.faq-card {
  background: #f8f9fa;
  border-left: 4px solid var(--violet);
  height: 100%;
}

.faq-card h3 {
  color: var(--violet);
}

.faq-card ul {
  padding-left: 20px;
}

.faq-card ul li {
  margin-bottom: 8px;
}

/* Testimonials Section */
.testimonials-section {
  background-color: #f8f9fa;
}

.testimonial-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  border-top: 3px solid var(--violet);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.rating {
  color: #FFD700; /* Gold color for stars */
}

.testimonial-text {
  font-style: italic;
  position: relative;
  padding-left: 20px;
}

.testimonial-text::before {
  content: '"';
  font-size: 3rem;
  position: absolute;
  left: -10px;
  top: -15px;
  opacity: 0.1;
  color: var(--dark);
}

.testimonial-author img {
  border: 2px solid var(--aquafina);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .testimonial-card {
    padding: 20px;
  }
  
  .testimonial-author {
    flex-direction: column;
    text-align: center;
  }
  
  .testimonial-author img {
    margin-bottom: 10px;
    margin-right: 0;
  }
}