/* Root Colors */
:root {
  --lumath-dark: #0a0c15;
  --lumath-blue: #305b89;
  --lumath-gray: #66737d;
  --lumath-light-gray: #9a9ba2;
  --lumath-deep-dark: #020513;
  --white: #ffffff;
  --black: #000000;
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: var(--white);
  background-color: var(--lumath-deep-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 10;
}

/* Navigation Bar Styles */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(48, 91, 137, 0.2);
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(2, 5, 19, 0.98);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: max-width 0.3s ease;
  margin-top: 10px;
}

.navbar.scrolled .nav-menu {
  gap: 20px;
}

.navbar.scrolled .nav-container {
  max-width: 810px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-img {
  width: auto;
  height: 40px;
}

.nav-logo-text {
  font-size: 24px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 40px;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: color 0.3s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--lumath-blue);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--lumath-blue);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Header Section */
.header-section {
  position: relative;
  min-height: 100vh;
  background: url("./assets/bg-header.png") center / cover no-repeat;
  color: var(--white);
  overflow: hidden;
  padding: 80px 0 280px 0;
  z-index: 0;
}

.header-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 5, 19, 0.7);
  z-index: 1;
}

.header-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 150px;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0) 0%,
      var(--lumath-deep-dark) 100%);
  pointer-events: none;
  z-index: 2;
}

.header-section>* {
  position: relative;
  z-index: 3;
}

.header-why-matters-combined>* {
  position: relative;
  z-index: 2;
}

/* Hero Content */
.hero-content {
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 18vh;
  padding-bottom: 5vh;
  position: relative;
  z-index: 10;
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
}

.title-line-1,
.title-line-2 {
  display: block;
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--white);
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 60px;
  opacity: 0.9;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  max-width: 800px;
}

.section {
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}

.section-content {
  position: relative;
  z-index: 10;
}

.section-title {
  font-size: 3rem;
  font-weight: 800;
  text-align: left;
  margin-bottom: 80px;
  letter-spacing: -0.02em;
}

.icon-container {
  animation: swing 15s ease-in-out infinite;
  transform-origin: center;
}

@keyframes swing {
  0% {
    transform: translate(0px, 0px);
  }

  25% {
    transform: translate(8px, -6px);
  }

  50% {
    transform: translate(0px, -10px);
  }

  75% {
    transform: translate(-8px, -6px);
  }

  100% {
    transform: translate(0px, 0px);
  }
}






/* New Code */

#icon-container {
  position: absolute;
  top: 120%;
  left: 50%;
  width: 140px;
  height: 140px;
  transform: translate(-80%, -80%);
  perspective: 1000px;
  border-radius: 70%;
  background: radial-gradient(circle at center,
      rgba(138, 43, 226, 0.5),
      rgba(0, 0, 255, 0.1));
  animation: containerPulse 5s ease-in-out infinite;
  opacity: 1 !important;
}

@keyframes containerPulse {

  0%,
  100% {
    box-shadow: 0 0 30px rgba(138, 43, 226, 0.5);
  }

  50% {
    box-shadow: 0 0 60px rgba(0, 191, 255, 0.7);
  }
}

#icon-orbit {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: box-shadow 1.2s ease, transform 0.3s ease;
  border-radius: 50%;
  transform-style: preserve-3d;
  box-shadow: 0 0 30px 10px rgba(255, 215, 100, 0.5);
}

.pulse-glow {
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(rgba(160, 100, 255, 0.3), transparent 80%);
  z-index: -1;
  pointer-events: none;
  animation: pulse 3s ease-in-out infinite;
  box-shadow: 0 0 50px 20px rgba(160, 100, 255, 0.3);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.safari-blur {
  display: none;
  position: absolute;
  width: 300px;
  height: 300px;
  top: -80px;
  left: -80px;
  border-radius: 50%;
  background: var(--blur-color, rgba(120, 180, 255, 0.2));
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  pointer-events: none;
  z-index: -2;
  transition: transform 0.3s ease, background 0.4s ease;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 0.4;
  }

  50% {
    opacity: 0.9;
  }
}

@keyframes blurPulse {

  0%,
  100% {
    background: rgba(0, 140, 255, 0.2);
  }

  50% {
    background: rgba(120, 200, 255, 0.35);
  }
}

.safari-blur {
  animation: blurPulse 6s ease-in-out infinite;
}

#icon {
  width: 150px;
  height: 150px;
  cursor: pointer;
  transition: transform 0.3s ease;
  transform-style: preserve-3d;
}

.click-glow {
  position: absolute;
  width: 160px;
  height: 160px;
  top: -10px;
  left: -10px;
  border-radius: 40%;
  background: radial-gradient(circle,
      rgba(0, 170, 255, 0.7),
      transparent 90%);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.8s ease-out, transform 1s ease;
}

#ripple {
  position: absolute;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(0, 170, 255, 0.3);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: all 1s ease-out;
  z-index: 0;
}



/* New CSS */


@media (min-width: 768px) {}

@media(max-width: 767px) {
  .header-section {
    min-height: 85vh !important;
  }

  .navbar {
    position: absolute !important;
  }
}




/* Why It Matters */
.why-matters-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 10;
}

.hiii {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.why-matters-left h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 30px;
  letter-spacing: -0.02em;
}

.why-matters-left p {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 40px;
  color: var(--lumath-light-gray);
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  background: rgba(48, 91, 137, 0.1);
  border-radius: 12px;
  border-left: 4px solid var(--lumath-blue);
  transition: all 0.3s ease;
  cursor: pointer;
}

.benefit-item:hover span:last-child {
  margin-left: 20px;
  transition: 0.3s all ease-in-out;
}

.benefit-item:hover {
  box-shadow: 0 8px 25px rgba(48, 91, 137, 0.3);
  background: rgba(48, 91, 137, 0.2);
}

.benefit-item .material-icons {
  font-size: 24px;
  color: var(--lumath-blue);
  width: 40px;
  text-align: center;
}

.benefit-item span:last-child {
  font-size: 1.1rem;
  font-weight: 500;
}

.why-matters-right {
  display: flex;
  justify-content: center;
  align-items: center;
}

.dashboard-image:hover {
  box-shadow: 5px 15px 30px rgba(48, 91, 137, 0.2);
  transition: ease 0.5s;
}

.dashboard-image {
  width: 100%;
  max-width: 500px;
  height: 400px;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  object-fit: cover;
}

/* Blobs */
.blob-container {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
}

.blob-4 {
  width: 450px;
  height: 450px;
  background: var(--lumath-blue);
  opacity: 0.1;
  top: 50%;
  right: -225px;
  transform: translateY(-50%);
}

/* Core Applications */
.core-applications {
  background: var(--lumath-deep-dark);
  color: var(--white);
}

.core-applications-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 60px;
}

.core-applications-header .section-title {
  margin-bottom: 0;
}

.applications-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
  height: 500px;
  margin-bottom: 60px;
}

.brain-img {
  height: auto;
  width: 100%;
  max-width: 500px;
  margin-top: 30px;
  border: 1px solid var(--lumath-dark);
  border-radius: 16px;
}

.application-item {
  border-radius: 16px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(48, 91, 137, 0.2);
  position: relative;
  overflow: hidden;
}

.application-item::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: translate(30px, -30px);
}

.application-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(48, 91, 137, 0.3);
}

.application-item.large {
  grid-row: span 2;
}

.application-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.4s ease;
}

.application-icon i {
  font-size: 24px;
  color: var(--white);
}

/* Core Applications  */
.application-item:hover .application-icon {
  transform: scale(1.2) rotate(360deg);
  background: var(--lumath-blue);
  box-shadow: 0 0 20px rgba(48, 91, 137, 0.5);
}

.application-item:nth-child(2):hover .application-icon {
  transform: scale(1.2) rotateY(180deg);
}

.application-item:nth-child(3):hover .application-icon {
  transform: scale(1.2) rotateX(180deg);
}

.application-item:nth-child(4):hover .application-icon {
  transform: scale(1.2) rotate(-360deg);
}

.application-item:nth-child(5):hover .application-icon {
  transform: scale(1.2) skew(10deg);
}

.application-item h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--white);
}

.application-item p {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  font-size: 0.95rem;
}

.core-applications-footer {
  text-align: center;
  font-size: 1.25rem;
  color: var(--lumath-light-gray);
  font-style: italic;
  padding: 30px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
}

/* Built for Compatibility */
.compatibility {
  background: var(--lumath-deep-dark);
  color: var(--white);
}

.compatibility-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 10;
}

.compatibility-left {
  display: flex;
  justify-content: center;
  align-items: center;
}

.compatibility-image:hover {
  box-shadow: 5px 15px 30px rgba(48, 91, 137, 0.2);
  transition: ease 0.5s;
}

.compatibility-image {
  width: 100%;
  max-width: 500px;
  height: 400px;
  border-radius: 16px;
  object-fit: cover;
}

.compatibility-right h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 30px;
  letter-spacing: -0.02em;
}

.compatibility-right p {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 40px;
  color: var(--lumath-light-gray);
}

.compatibility-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.compatibility-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  background: rgba(48, 91, 137, 0.1);
  border-radius: 12px;
  border-left: 4px solid var(--lumath-blue);
  transition: all 0.3s ease;
  cursor: pointer;
}

.compatibility-item:hover span:last-child {
  margin-left: 20px;
  transition: 0.3s all ease-in-out;
}

.compatibility-item:hover {
  box-shadow: 0 8px 25px rgba(48, 91, 137, 0.3);
  background: rgba(48, 91, 137, 0.2);
}

.compatibility-item .material-icons {
  font-size: 24px;
  color: var(--lumath-blue);
  width: 40px;
  text-align: center;
}

.compatibility-item span:last-child {
  font-size: 1.1rem;
  font-weight: 500;
}

/*  Contact Section */
.contact-section {
  background: #1a1b2e;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.contact-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--lumath-deep-dark);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: flex-start;
  position: relative;
  z-index: 10;
}

.contact-left h2 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 30px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--white);
}

.contact-title-line1,
.contact-title-line2 {
  display: block;
}

.contact-left p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.form-group {
  position: relative;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-input {
  background: transparent;
  border: none;
  border-bottom: 2px solid #6366f1;
  padding: 15px 0;
  color: var(--white);
  font-size: 16px;
  font-family: inherit;
  width: 100%;
  transition: all 0.3s ease;
}

.form-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.form-input:focus {
  outline: none;
  border-bottom-color: #8b5cf6;
}

.form-submit-container {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.submit-btn {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 25px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

/* LuMATH Ventures Section */
.ventures {
  background: url(./assets/bg-last.png) center / cover;
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
  height: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ventures::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(17 36 52 / 80%);
}

.ventures-content {
  position: relative;
  z-index: 10;
  max-width: 800px;
  margin: 0 auto;
}

.ventures-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 30px;
  letter-spacing: -0.02em;
}

.ventures-subtitle {
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 50px;
  opacity: 0.9;
}

.ventures-btn {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 18px 25px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ventures-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
}

.hamburger-line {
  width: 25px;
  height: 3px;
  background: var(--white);
  margin: 3px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* Mobile Menu Dropdown */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: rgba(2, 5, 19, 0.98);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(48, 91, 137, 0.2);
  z-index: 999;
}

.mobile-nav-list {
  list-style: none;
  padding: 20px 0;
  margin: 0;
}

.mobile-nav-item {
  padding: 0;
}

.mobile-nav-link {
  display: block;
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  padding: 15px 20px;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(48, 91, 137, 0.1);
}

.mobile-nav-link:hover {
  background: rgba(48, 91, 137, 0.1);
  color: var(--lumath-blue);
}

.mobile-menu.active {
  display: block;
  animation: slideDown 0.3s ease-out;
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
  transform: rotate(-45deg) translate(-6px, 6px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
  transform: rotate(45deg) translate(-6px, -6px);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .hero-content {
    padding-top: 10vh;
    padding-bottom: 5vh;
  }

  .mobile-menu-btn {
    display: flex;
  }
}

/* Responsive Design */
@media (max-width: 992px) {

  .title-line-1,
  .title-line-2 {
    font-size: 3rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .why-matters-content,
  .compatibility-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .core-applications-header {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }

  .applications-grid {
    grid-template-columns: 1fr;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .application-item {
    min-height: 200px;
  }

  .application-item.large {
    grid-row: span 1;
    min-height: auto;
  }

  .brain-img {
    width: 100%;
    max-width: 300px;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .nav-container {
    max-width: 100% !important;
  }

  .container {
    padding: 0 15px;
  }

  .section {
    padding: 40px 0;
  }

  .title-line-1,
  .title-line-2 {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .why-matters-left h2,
  .compatibility-right h2,
  .contact-left h2 {
    font-size: 2.5rem;
  }

  .ventures-title {
    font-size: 2.5rem;
  }

  .dashboard-image,
  .compatibility-image {
    margin-top: 40px;
  }

  .compatibility-content,
  .contact-content {
    grid-template-columns: 1fr;
  }

  .compatibility-left {
    order: 2;
  }

  .compatibility-right {
    order: 1;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .icon-container {
    width: 120px;
    height: 120px;
  }

  .scroll-icon {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 480px) {

  .title-line-1,
  .title-line-2 {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .why-matters-left h2,
  .compatibility-right h2,
  .contact-left h2 {
    font-size: 1.75rem;
  }

  .ventures-title {
    font-size: 2rem;
  }

  .icon-container {
    width: 100px;
    height: 100px;
  }

  .scroll-icon {
    width: 100px;
    height: 100px;
  }
}

/* Smooth animations */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}