/* GLOBAL FOR BOX-SIZING */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    background-color: #0D0D0D;
    color: #E0E0E0;
    scroll-behavior: smooth;
}

nav {
    width: 100%;
    position: fixed;
    top: 0;
    background-color: #0D0D0D;
    z-index: 5;
    transition: background-color 0.4s ease-in-out;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 3rem;
}

.mobile-toggle {
  display: none;
}

.logo-img {
    height: 50px;
    width: auto;
}

nav ul {
    list-style: none;
    display: flex;
    margin: 0;
    padding: 0;
    gap: 1.5rem;
}

nav ul li {
    margin: 0;
}

nav ul li a {
    color: #E0E0E0;
    text-decoration: none;
}

nav ul li a:hover {
    color: #4699C5;
}

.hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: opacity 1.5s ease-in-out;
}

#hero-top {
    opacity: 0;
    z-index: 1;
}

#hero-bottom {
    z-index: 0;
}

.mission-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  font-size: 2.2rem;
  text-align: center;
  padding: 1rem;
  color: #e0e0e0;
  font-weight: 600;
  letter-spacing: 1px;
  text-shadow:
    0 0 2px #000,
    0 0 6px rgba(0, 0, 0, 0.6),
    0 0 12px rgba(0, 0, 0, 0.5);
  filter: drop-shadow(0 0 2px #000) drop-shadow(0 0 6px rgba(0,0,0,0.4));
  transition: opacity 1s ease-in-out;
}
#mission-statement {
  transition: opacity 1s ease;
}

section {
    padding: 5rem 2rem;
}

.pillars {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

#about {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.about-section {
    padding: 4rem 2rem;
    background: url('/blob/about_bg.avif') no-repeat center center fixed;
    background-size: cover;
    color: #e0e0e0;
    text-shadow: 0px 0px 10px #000;
	position: relative;
	overflow: hidden;
}

.about-section:hover .about-left::before {
  transform: translateX(-50%) translateY(-5px) scale(1.02);
}

.about-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at 20% center, rgba(255,255,255,0.025) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.about-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: space-between;
    padding: 4rem;
	position:relative;
}

.about-right {
    flex: 1;
    display: flex;
    justify-content: center;
}

.about-box {
    background: rgba(30,30,30,0.75);
    padding: 2rem;
    border-radius: 10px;
    max-width: 70%;
    text-align: left;
}

.about-box p {
    font-size: 1.35rem; 
    line-height: 1.8; 
}

.divider {
    color: #888;
    padding: 0 0.5rem;
    pointer-events: none;
}
.about-left {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
}

.about-left h2 {
    font-size: 5rem;
}

.about-left subtagline {
  font-size: 1.1rem;
  font-style: italic;
  color: rgba(255,255,255,0.6);
  margin-top: 0.5rem;
}

.about-left::before {
  content: "";
  position: absolute;
  top: 0.2em;
  left: 25%;
  transform: translateX(-50%);
  width: 10vw;
  height: 10vw;
  background: url('/blob/crest.png') no-repeat center center;
  background-size: contain;
  opacity: 0.09;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;
  filter: grayscale(1) brightness(1.6) contrast(1.1) drop-shadow(0 0 8px rgba(255,255,255,0.04));
  will-change: transform;
  transition: transform 1.5s ease;
}

.about-right::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  Left: 40%;
  width: 1px;
  height: 80%;
  background: rgba(255, 255, 255, 0.3);
  z-index: 1;
  transition: background 0.3s ease;
}


#focus {
	background: #121212 url('/blob/focus_bg.avif') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

}

.focus-section {
    padding: 4rem 2rem;
}

.pillars {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.pillar {
    flex: 1 1 300px;
    background: rgba(26, 26, 26, 0.6);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    text-align:  center;
}

.pillar h3 {
	
	font-size: 1.55rem; 
	text-align: center;
	
}

.pillar p {
    font-size: 1.35rem; 
    line-height: 1.8; 
}

.pillar-image {
    width: 100%;
    height: 420px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    margin-bottom: 1rem;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 90%, transparent 100%);
    transition: transform 0.3s ease;
}

.pillar-imgage:hover {
	    transform: scale(1.05);
}

.pillar-materials {
	background-image: url('/blob/adv_mat.avif');
}
.pillar-electromag {
	background-image: url('/blob/radar.avif'); 
}
.pillar-missionready { 
	background-image: url('/blob/missionready.avif'); 
}

.contact-section {
    position: relative;
    background: url('/blob/contact_bg.avif') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    padding: 4rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
}

.contact-section::after {
    content: "";
    position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	left: 52%;
    width: 1px;
    height: 60%;
    background: rgba(255, 255, 255, 0.08);
    z-index: 1;
	transition: background 0.3s ease;
}

.contact-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    width: 100%;
    padding: 4rem;
    position: relative;
}

.contact-left {
  flex: 1;
  display: flex;
  justify-content: flex-end; /* pushes form closer to midline */
  align-items: center;
  padding-right: 2rem;
}

.contact-right {
  flex: 1;
  text-align: left;
  padding-left: 20%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-right h2 {
	font-size: 4.5rem;
	margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
    color: #e0e0e0;
    text-shadow: 0 0 10px #000;
}

.contact-right .subtagline {
    font-size: 1rem;
    color: rgba(255,255,255,0.6);
    font-style: italic;
	justify-content: center;
}


#contact-form {
  width: 100%;
  max-width: 75%;
  background: rgba(20, 20, 20, 0.8);
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(0,0,0,0.6);
  backdrop-filter: blur(5px);
}

#contact-form input {
    width: 100%;
    margin-bottom: 1rem;
    padding: 0.6rem 1rem;
    background: rgba(30, 30, 30, 0.85);
    border: 1px solid #555;
    border-radius: 6px;
    color: #e0e0e0;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    height: 44px;
}

#contact-form textarea {
    width: 100%;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(30, 30, 30, 0.85);
    border: 1px solid #555;
    border-radius: 6px;
    color: #e0e0e0;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    min-height: 220px;
    resize: vertical;
}

#contact-form button {
    background: #0e4c92;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s, box-shadow 0.3s;
	width: auto;
    min-width: 80px;
}

#contact-form button:hover {
    background: #1565c0;
    box-shadow: 0 0 10px rgba(21, 101, 192, 0.7);
}

#form-message {
  margin-top: 1rem;
  color: #00e6c0;
  font-weight: 500;
  font-size: 0.95rem;
  text-align: left;
  padding-left: 0.25rem;
}

footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  background: rgba(20, 20, 20, 0.88);
  color: #ccc;
  font-size: 0.72rem;
  line-height: 1.4;
  padding: 0.4rem 1.2rem 0.5rem;
  text-align: center;
  z-index: 999;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(5px);
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.4);
}

.footer-links {
  margin-bottom: 0.15rem;
}

.footer-links a {
  color: #66ccff;
  text-decoration: none;
  margin: 0 0.4rem;
  font-weight: 500;
}

.footer-links span {
  color: #555;
}

.footer-links a:hover {
  text-decoration: underline;
}


.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(6px);
  z-index: 10000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: rgba(20, 20, 20, 0.95);
  color: #e0e0e0;
  padding: 2rem 2.5rem;
  max-width: 800px;
  max-height: 85vh;
  overflow-y: auto;
  border-radius: 12px;
  position: relative;
  box-shadow: 0 0 30px rgba(0,0,0,0.7);
  font-size: 0.85rem;
  line-height: 1.6;
  text-shadow: 0 0 6px #000;
}

.legal-wrapper pre {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
}

.close-button {
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  background: transparent;
  border: none;
  color: #ccc;
  font-size: 1.4rem;
  cursor: pointer;
  transition: color 0.2s;
}

.close-button:hover {
  color: #66ccff;
}


#notfound {
	background: #121212 url('/blob/notfound.avif') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;

}

/* Mobile */

@media (max-width: 768px) {
  .mission-text {
    font-size: 1.2rem;
    padding: 0.5rem;
  }

  .pillars {
    flex-direction: column;
    gap: 2rem;
  }

  .pillar {
    padding: 1rem;
  }
  
 .about-box p, .pillar p {
  font-size: 1rem;
  line-height: 1.6;
}

.about-left h2 {
  font-size: 2rem;
}

.pillar h3 {
  font-size: 1.25rem;
}

  .pillar-image {
    height: 200px;
  }

  .contact-form {
    width: 100%;
    padding: 1rem;
  }

  .footer-links {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  nav {
    padding: 0.5rem 1rem;
  }

  nav a {
    font-size: 0.95rem;
    padding: 0.5rem;
  }
  
  .mobile-toggle {
    display: block;
    font-size: 2rem;
    cursor: pointer;
    color: #e0e0e0;
    z-index: 10;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0D0D0D;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-container {
    flex-wrap: wrap;
  }

  .divider {
    display: none;
  }
  
    .about-wrapper {
    flex-direction: column;
    padding: 2rem;
  }

  .about-left h2 {
    font-size: 2.5rem;
  }

  .about-right::after {
    display: none;
  }

  .about-box {
    max-width: 100%;
    padding: 1.5rem;
  }

  .about-left::before {
    left: 50% !important;
    width: 20vw;
    height: 20vw;
  }
  
  .contact-wrapper {
    flex-direction: column-reverse;
    padding: 2rem;
  }

  .contact-right {
    padding-left: 0;
    text-align: center;
  }

  .contact-right h2 {
    font-size: 2rem;
  }
  
  .contact-section::after {
    display: none;
  }

  #contact-form {
    max-width: 100%;
    padding: 1rem;
  }
}

