/* Custom Styles for Makronix Technologies */

/* Import Google Fonts */
@import url("https://fonts.googleapis.com/css2?family=Lato:wght@300;400;500;600;700;900&display=swap");

body {
  font-family: "Lato", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f8f9fa;
}

/* Common Theme Classes */
.theme-glass-light {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(248, 250, 252, 0.95) 100%
  ) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.theme-glass-dark {
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(20, 20, 30, 0.95) 100%
  ) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.theme-gradient-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.theme-gradient-secondary {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.theme-gradient-accent {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.theme-text-primary {
  color: #1a202c !important;
}

.theme-text-light {
  color: #f8f9fa !important;
}

.theme-shadow-light {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.theme-shadow-dark {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.theme-border-light {
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.theme-border-dark {
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.theme-hover-primary {
  transition: all 0.3s ease;
}

.theme-hover-primary:hover {
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.1) 0%,
    rgba(118, 75, 162, 0.1) 100%
  );
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("https://images.unsplash.com/photo-1551650975-87deedd944c3?ixlib=rb-4.0.3&auto=format&fit=crop&w=1974&q=80")
    no-repeat center center;
  background-size: cover;
  opacity: 0.06;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero .display-4 {
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out;
}

.hero .lead {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: #f8f9fa;
  animation: fadeInUp 1.2s ease-out;
}

.hero .btn {
  animation: fadeInUp 1.4s ease-out;
}

/* Navigation */
.navbar {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(248, 250, 252, 0.98) 100%
  ) !important;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  padding: 0.75rem 0;
  min-height: 70px;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  color: #1a202c !important;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
  position: relative;
  letter-spacing: -0.02em;
}

.brand-icon {
  font-size: 1.6rem;
  color: #667eea;
  transition: all 0.3s ease;
}

.brand-text {
  background: linear-gradient(135deg, #1a202c 0%, #667eea 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

.navbar-brand:hover {
  transform: translateY(-1px);
  .brand-icon {
    transform: rotate(5deg) scale(1.1);
  }
}

.navbar-toggler {
  border: none;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.2) 0%,
    rgba(118, 75, 162, 0.2) 100%
  );
  border-radius: 8px;
  padding: 0.5rem;
  transition: all 0.3s ease;
}

.navbar-toggler:hover {
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.4) 0%,
    rgba(118, 75, 162, 0.4) 100%
  );
  transform: scale(1.05);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(26, 32, 44, 0.8) !important;
  text-decoration: none;
  position: relative;
  padding: 0.5rem 1.25rem;
  margin: 0 0.125rem;
  border-radius: 6px;
  transition: all 0.3s ease;
  letter-spacing: 0.01em;
}

.nav-link:hover {
  color: #1a202c !important;
  background: rgba(102, 126, 234, 0.08);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

@keyframes navPulse {
  0% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-2px) scale(1.03);
  }
  100% {
    transform: translateY(-1px) scale(1);
  }
}

.nav-text {
  position: relative;
  z-index: 2;
}

.dropdown-menu {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(248, 250, 252, 0.98) 100%
  );
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  margin-top: 0.5rem;
  padding: 0.75rem 0;
  animation: fadeInDown 0.3s ease-out;
}

.dropdown-item {
  color: rgba(26, 32, 44, 0.9) !important;
  font-weight: 400;
  padding: 0.625rem 1.25rem;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
}

.dropdown-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(102, 126, 234, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.dropdown-item:hover::before {
  left: 100%;
}

.dropdown-item:hover {
  background: rgba(102, 126, 234, 0.06);
  color: #667eea !important;
  transform: translateX(2px);
}

.dropdown-item i {
  color: #667eea;
  width: 20px;
  transition: all 0.3s ease;
}

.dropdown-item:hover i {
  color: #764ba2;
  transform: scale(1.1);
}

.btn-primary.nav-cta {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 25px;
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  margin-left: 1rem;
}

.btn-primary.nav-cta:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

/* Navbar Scroll Effect */
.navbar-scrolled {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(248, 250, 252, 0.95) 100%
  ) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0.5rem 0;
  min-height: 65px;
}

/* Mobile Navigation */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(248, 250, 252, 0.98) 100%
    );
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 8px;
    margin-top: 1rem;
    padding: 1rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.06);
  }

  .nav-link {
    padding: 0.5rem 1rem;
    margin: 0.25rem 0;
    text-align: center;
    border-radius: 6px;
    font-size: 0.9rem;
  }

  .nav-link:hover {
    transform: translateY(0);
    background: rgba(102, 126, 234, 0.08);
  }

  .dropdown-menu {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
    margin-top: 0;
    padding: 0;
    position: static;
    transform: none !important;
    border-radius: 0;
  }

  .dropdown-item {
    padding: 0.5rem 2rem;
    border-radius: 6px;
    margin: 0.25rem 0;
  }

  .btn-primary.nav-cta {
    margin: 1rem 0 0 0;
    width: 100%;
    padding: 0.75rem 1rem;
  }
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

/* Active Navigation State */
.nav-link.active {
  color: #667eea !important;
  background: linear-gradient(
    135deg,
    rgba(102, 126, 234, 0.15) 0%,
    rgba(118, 75, 162, 0.15) 100%
  );
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(102, 126, 234, 0.15);
}

/* Ripple Effect */
.nav-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Services Cards */
.card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  background: #fff;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.card-img-top {
  transition: transform 0.3s ease;
}

.card:hover .card-img-top {
  transform: scale(1.1);
}

.card-title {
  font-weight: 600;
  color: #333;
  margin-bottom: 1rem;
}

.card-text {
  color: #666;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 25px;
  padding: 12px 30px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.4);
}

.btn-light {
  background: #fff;
  color: #667eea;
  border: 2px solid #667eea;
  border-radius: 25px;
  padding: 12px 30px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-light:hover {
  background: #667eea;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

/* Sections */
section {
  padding: 80px 0;
}

h2 {
  font-weight: 700;
  color: #333;
  margin-bottom: 2rem;
  position: relative;
}

h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* About Section */
#about {
  background: linear-gradient(135deg, #93adfb 0%, #17425d 100%);
  color: #fff;
}

#about h2 {
  color: #fff;
}

#about h2::after {
  background: #fff;
}

/* Testimonials */
.testimonial-card {
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  margin-bottom: 2rem;
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

/* Contact Section */
#contact {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
}

#contact h2 {
  color: #fff;
}

#contact h2::after {
  background: #fff;
}

#contact .form-control {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 1rem;
}

#contact .form-control:focus {
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.3);
}

/* Footer */
footer {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 50%, #1a1a1a 100%);
  color: #ffffff;
  padding: 60px 0 30px;
  margin-top: 80px;
  position: relative;
  font-family: "Lato", sans-serif;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

footer .container {
  position: relative;
  z-index: 2;
}

footer h5 {
  color: #ffffff;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

footer p {
  color: #cccccc;
  line-height: 1.7;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

footer .social-links {
  margin-top: 2rem;
}

footer .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #ffffff !important;
  margin-right: 0.75rem;
  margin-bottom: 0.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

footer .social-links a:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
  color: #ffffff !important;
}

footer ul.list-unstyled {
  padding: 0;
  margin: 0;
}

footer ul.list-unstyled li {
  margin-bottom: 0.75rem;
}

footer ul.list-unstyled a {
  color: #cccccc !important;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 400;
  transition: all 0.3s ease;
  display: inline-block;
}

footer ul.list-unstyled a:hover {
  color: #667eea !important;
  transform: translateX(5px);
}

footer .contact-info p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

footer .contact-info i {
  color: #667eea;
  width: 18px;
  margin-right: 0.75rem;
}

footer hr {
  border-color: rgba(255, 255, 255, 0.1);
  margin: 40px 0 30px;
}

footer .copyright {
  color: #888888;
  font-size: 0.85rem;
  margin: 0;
}

footer .footer-links {
  text-align: right;
}

footer .footer-links a {
  color: #888888 !important;
  text-decoration: none;
  font-size: 0.85rem;
  margin-left: 1.5rem;
  transition: color 0.3s ease;
}

footer .footer-links a:hover {
  color: #667eea !important;
}

/* Footer Responsive */
@media (max-width: 768px) {
  footer {
    padding: 40px 0 20px;
    margin-top: 60px;
  }

  footer h5 {
    font-size: 1rem;
    margin-bottom: 1.25rem;
  }

  footer .footer-links {
    text-align: left;
    margin-top: 1rem;
  }

  footer .footer-links a {
    margin-left: 0;
    margin-right: 1.5rem;
  }

  footer .social-links a {
    width: 36px;
    height: 36px;
  }
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.fade-in {
  opacity: 1;
  transform: translateY(0);
}

/* Process Steps */
.process-step {
  position: relative;
  padding: 2rem;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.process-step:hover {
  transform: translateY(-5px);
}

.step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
}

/* About Section */
#about h2 {
  color: #333;
  font-weight: 700;
}

#about .text-primary {
  font-size: 2.5rem;
  font-weight: 700;
}

/* Testimonials */
#testimonials .card {
  background: #f8f9fa;
}

/* Contact Section */
#contact {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

#contact h5 {
  font-weight: 600;
}

#contact .form-control {
  background: rgba(255, 255, 255, 0.9);
  border: none;
}

#contact .btn-light {
  background: #fff;
  color: #667eea;
  border: none;
  font-weight: 600;
}

#contact .btn-light:hover {
  background: #f8f9fa;
  color: #667eea;
}

/* Footer */
footer {
  font-size: 0.9rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero {
    min-height: 80vh;
    text-align: center;
  }

  .hero .display-4 {
    font-size: 2.5rem;
  }

  .hero .lead {
    font-size: 1rem;
  }
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Carousel Enhancements */
.carousel-item {
  transition: transform 0.6s ease-in-out, opacity 0.6s ease-in-out;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  background-color: rgba(102, 126, 234, 0.8);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  transition: all 0.3s ease;
}

.carousel-control-prev-icon:hover,
.carousel-control-next-icon:hover {
  background-color: rgba(102, 126, 234, 1);
  transform: scale(1.1);
}

.carousel-indicators button {
  background-color: rgba(102, 126, 234, 0.5);
  border-radius: 50%;
  width: 12px;
  height: 12px;
  margin: 0 5px;
  transition: all 0.3s ease;
}

.carousel-indicators .active {
  background-color: #667eea;
  transform: scale(1.2);
}

/* Testimonials Carousel */
.testimonial-card {
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.testimonial-card .bi-quote {
  color: #667eea;
  opacity: 0.3;
}

/* Case Studies Carousel */
#caseStudiesCarousel .card {
  border: none;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

#caseStudiesCarousel .card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

#caseStudiesCarousel .badge {
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
}

/* Hero Carousel */
.hero .carousel-item {
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero .carousel-item.active {
  opacity: 1;
}

.hero .display-4 {
  min-height: 120px;
  display: flex;
  align-items: center;
}

/* Process Steps */
.process-step {
  text-align: center;
  padding: 30px 20px;
  background: #fff;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
}

.process-step:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.step-number {
  display: inline-block;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: bold;
  line-height: 60px;
  margin-bottom: 1rem;
}

/* Responsive Carousel Adjustments */
@media (max-width: 768px) {
  .hero .display-4 {
    font-size: 2rem;
    min-height: auto;
  }

  .carousel-control-prev,
  .carousel-control-next {
    display: none;
  }

  .testimonial-card {
    padding: 2rem 1rem !important;
  }

  #caseStudiesCarousel .card .row {
    flex-direction: column;
  }

  #caseStudiesCarousel .card img {
    height: 200px;
    object-fit: cover;
  }
}

/* Loading Animation for Carousel Items */
.carousel-item-loading {
  opacity: 0;
  transform: translateY(20px);
}

.carousel-item-loading.loaded {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s ease;
}
