/* 
   Theme: Yogi Tech Modern
   Colors: White, Red, Dark Grey
   Font: Outfit
*/

:root {
  --primary-red: #d90429;
  --secondary-red: #ef233c;
  --dark-bg: #2b2d42;
  --light-bg: #8d99ae;
  --white: #ffffff;
  --off-white: #f8f9fa;
  --text-main: #212529;
  --text-light: #6c757d;

  --shadow-sm:
    0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md:
    0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg:
    0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --glow-red: 0 0 15px rgba(239, 35, 60, 0.4);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "Outfit", sans-serif;
  color: var(--text-main);
  background-color: var(--off-white);
  line-height: 1.6;
  overflow-x: hidden;
  /* Prevent horizontal scroll from animations */
}

h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

.text-red {
  color: var(--primary-red);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  /* Stronger blur for glass effect */
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
  transition: all 0.3s ease;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--dark-bg);
  letter-spacing: -0.5px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
  color: var(--text-main);
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary-red);
  transition: width 0.3s;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--primary-red);
}

.btn-rect {
  background-color: var(--primary-red);
  color: var(--white) !important;
  padding: 0.6rem 1.5rem;
  border-radius: 4px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.btn-rect:hover {
  background-color: var(--secondary-red);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), var(--glow-red);
}

/* Mobile Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: var(--text-main);
  margin: 3px 0;
  transition: 0.4s;
  border-radius: 2px;
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  /* Removed static image fallback for cleaner look with particles, or keep as subtle mix */
  background: radial-gradient(circle at center, #ffffff 0%, #f0f2f5 100%);
  overflow: hidden;
}

#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 0;
  /* Behind content */
}

.hero-bg-overlay {
  display: none;
  /* Removed overlay as we are using particles on clean bg */
}

.hero-content {
  position: relative;
  z-index: 10;
  /* Above particles */
  max-width: 600px;
}

.hero-title {
  font-size: 4rem;
  /* Larger */
  margin-bottom: 1.5rem;
  color: var(--dark-bg);
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-light);
  margin-bottom: 2.5rem;
}

.hero-btns {
  display: flex;
  gap: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  border-radius: 6px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.btn-primary {
  background-color: var(--primary-red);
  color: var(--white);
  border: 2px solid var(--primary-red);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background-color: transparent;
  color: var(--primary-red);
  box-shadow: var(--glow-red);
}

.btn-secondary {
  background-color: transparent;
  color: var(--dark-bg);
  border: 2px solid var(--dark-bg);
}

.btn-secondary:hover {
  background-color: var(--dark-bg);
  color: var(--white);
  box-shadow: 0 0 10px rgba(43, 45, 66, 0.3);
}

/* Services */
.services {
  padding: 6rem 0;
  background-color: var(--white);
  position: relative;
  z-index: 2;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem auto;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--dark-bg);
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-light);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2.5rem;
}

.service-card {
  background: var(--off-white);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  border-bottom: 4px solid transparent;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

/* Glass effect on hover or default */
.service-card:hover {
  box-shadow: var(--shadow-lg);
  border-bottom: 4px solid var(--primary-red);
  background: var(--white);
  transform: translateY(-10px) scale(1.02);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0) 100%
  );
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card:hover::before {
  opacity: 1;
}

.icon-box {
  font-size: 3rem;
  color: var(--primary-red);
  margin-bottom: 1.5rem;
  transition: transform 0.3s;
}

.service-card:hover .icon-box {
  transform: translateZ(20px);
  /* 3D effect */
}

.service-card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
  color: var(--dark-bg);
  transform: translateZ(10px);
}

.service-card p {
  color: var(--text-light);
  transform: translateZ(5px);
}

/* Contact */
.contact {
  padding: 6rem 0;
  background-color: var(--off-white);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 0;
  /* Seamless join */
  background: var(--white);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.contact-info {
  padding: 4rem 3rem;
  background: linear-gradient(145deg, var(--dark-bg), #1a1c29);
  color: var(--white);
  position: relative;
}

/* Abstract shape in contact info */
.contact-info::after {
  content: "";
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: rgba(217, 4, 41, 0.1);
  border-radius: 50%;
}

.contact-info h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.contact-info p {
  color: #ced4da;
  margin-bottom: 3rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.info-item i {
  color: var(--primary-red);
  font-size: 1.3rem;
}

.contact-form-container {
  padding: 4rem 3rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--dark-bg);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  background-color: #f8f9fa;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-red);
  background-color: var(--white);
  box-shadow: 0 0 0 4px rgba(217, 4, 41, 0.1);
}

.btn-full {
  width: 100%;
  background-color: var(--primary-red);
  color: var(--white);
  border: none;
  padding: 1.1rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-full:hover {
  background-color: var(--secondary-red);
  box-shadow: var(--glow-red);
}

/* Footer */
.footer {
  background-color: var(--dark-bg);
  color: var(--white);
  padding: 5rem 0 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo h2 {
  font-size: 2.2rem;
  margin-bottom: 0.8rem;
}

.footer-logo p {
  color: #adb5bd;
}

.footer-links h4 {
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
  color: var(--white);
}

.footer-links ul li {
  margin-bottom: 1rem;
}

.footer-links ul li a {
  color: #adb5bd;
  transition: all 0.3s;
}

.footer-links ul li a:hover {
  color: var(--primary-red);
  padding-left: 5px;
}

.footer-social {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.footer-social a {
  width: 45px;
  height: 45px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  font-size: 1.2rem;
}

.footer-social a:hover {
  background: var(--primary-red);
  transform: translateY(-5px);
  box-shadow: var(--glow-red);
}

.footer-bottom {
  text-align: center;
  padding: 2rem 0;
  background: rgba(0, 0, 0, 0.2);
  color: #6c757d;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 991px) {
  .hero-title {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  /* Nav Toggle */
  .nav-toggle {
    display: flex;
    z-index: 100;
  }

  .nav-menu {
    position: fixed;
    left: -100%;
    top: 0;
    flex-direction: column;
    background-color: var(--white);
    width: 100%;
    height: 100vh;
    justify-content: center;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-lg);
  }

  .nav-menu.active {
    left: 0;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .contact-info {
    padding: 2.5rem;
  }

  .contact-form-container {
    padding: 2.5rem;
  }
}

/* Success Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(43, 45, 66, 0.7);
  backdrop-filter: blur(5px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--white);
  padding: 3rem;
  border-radius: 16px;
  text-align: center;
  max-width: 450px;
  width: 90%;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  border-top: 5px solid var(--primary-red);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-icon {
  font-size: 4rem;
  color: var(--primary-red);
  margin-bottom: 1.5rem;
  animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.2s forwards;
  opacity: 0;
  transform: scale(0.5);
}

@keyframes popIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-content h2 {
  color: var(--dark-bg);
  margin-bottom: 1rem;
  font-size: 2rem;
}

.modal-content p {
  color: var(--text-light);
  margin-bottom: 2rem;
  font-size: 1.1rem;
}
