/* Base styles and variables */
:root {
  --royal-blue: #0c0f3c; /* Darker indigo blue */
  --white: #ffffff;
  --light-blue: #2d3173;
  --transition-speed: 0.3s;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--royal-blue);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Particles container for animated shapes */
.particles-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Header styles */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 5%;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 100;
  transition: background-color 0.3s ease;
}

header.scrolled {
  background-color: rgba(26, 35, 126, 0.95);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.logo h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.logo span {
  font-weight: 300;
}

nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 2rem;
}

nav ul li a {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: opacity var(--transition-speed);
  position: relative;
}

nav ul li a:after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--white);
  transition: width var(--transition-speed);
}

nav ul li a:hover:after {
  width: 100%;
}

/* Main content sections */
main {
  position: relative;
  z-index: 1;
}

section {
  padding: 6rem 5%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-content {
  max-width: 1200px;
  width: 100%;
}

/* Hero section */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-content {
  max-width: 800px;
}

.hero h2 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 2.5rem;
}

.cta-button {
  background-color: transparent;
  color: var(--white);
  border: 2px solid var(--white);
  padding: 0.8rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-speed);
  font-family: 'Inter', sans-serif;
}

.cta-button:hover {
  background-color: var(--white);
  color: var(--royal-blue);
}

/* About section */
.about {
  background-color: rgba(26, 35, 126, 0.9);
}

.about h2 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
}

.about p {
  font-size: 1.2rem;
  max-width: 800px;
  line-height: 1.8;
}

/* Technology section */
.technology h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
}

.tech-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.card {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 2rem;
  border-radius: 8px;
  transition: transform var(--transition-speed);
}

.card:hover {
  transform: translateY(-10px);
}

.card-icon {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

.icon-placeholder {
  width: 60px;
  height: 60px;
  border: 2px solid var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Applications section */
.applications {
  background-color: rgba(26, 35, 126, 0.9);
}

.applications h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
  text-align: center;
}

.app-areas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.app-area {
  padding: 2rem;
  border-left: 2px solid var(--white);
  transition: transform var(--transition-speed);
}

.app-area:hover {
  transform: translateX(10px);
}

.app-area h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Contact section */
.contact {
  text-align: center;
}

.contact h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.contact p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.contact-form {
  margin-top: 2rem;
}

.contact-form form {
  display: flex;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto;
  justify-content: center;
}

.contact-form input[type="email"] {
  padding: 1rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font-size: 1rem;
  width: 300px;
}

.contact-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.contact-form .submit-button {
  padding: 1rem 2rem;
  border: none;
  border-radius: 30px;
  background: var(--light-blue);
  color: var(--white);
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  white-space: nowrap;
}

.contact-form .submit-button:hover {
  background: #3d4393;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .contact-form form {
    flex-direction: column;
    padding: 0 1rem;
  }

  .contact-form input[type="email"] {
    width: 100%;
  }
}

/* Footer styles */
footer {
  background-color: #080b2d;
  padding: 3rem 0;
  margin-top: 4rem;
  position: relative;
  z-index: 1;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

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

.footer-logo span {
  color: #4a90e2;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-nav {
  display: flex;
  gap: 2rem;
}

.footer-nav a {
  color: #ffffff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-nav a:hover {
  color: #4a90e2;
}

.footer-credits {
  text-align: right;
  color: #888;
  font-size: 0.9rem;
}

.footer-credits p {
  margin: 0.5rem 0;
}

.footer-credits a {
  color: #4a90e2;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-credits a:hover {
  color: #ffffff;
}

@media (max-width: 768px) {
  header {
    flex-direction: column;
    padding: 1rem 5%;
  }
  
  nav ul {
    margin-top: 1rem;
  }
  
  nav ul li {
    margin-left: 1rem;
    margin-right: 1rem;
  }
  
  .hero h2 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1.2rem;
  }
  
  .footer-content {
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    text-align: center;
  }

  .footer-links {
    align-items: center;
  }

  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-credits {
    text-align: center;
  }
}
