/* PHC Global v3 - Custom Styles */

:root {
  --status-colorsyellowlight: rgba(255, 206, 100, 1);
  --medium: rgba(175, 184, 193, 1);
  --white: rgba(255, 255, 255, 1);
  --status-colorsnavylight: rgba(55, 178, 255, 1);
  --status-colorsnavysubtle: rgba(169, 222, 255, 1);
  --dark: rgba(29, 34, 41, 1);
  --bg-deep: #000e26;
  --bg-navy: #00132f;
  --bg-overlay: rgba(0, 0, 0, 0.8);
  --accent-gradient: linear-gradient(164deg, rgba(145, 205, 255, 1) 0%, rgba(30, 165, 241, 1) 100%);
}

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body, html {
  margin: 0;
  padding: 0;
  background-color: var(--bg-navy);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

h1, h2, h3, h4, .section-label, .btn, .nav-item {
  font-family: 'Space Grotesk', sans-serif;
}

hr {
  color: var(--white);
  opacity: .1;
  margin: 12px 0px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation */
.top-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 32px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(0, 19, 47, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(55, 178, 255, 0.1);
}

.phc-logo {
  width: 92px;
  height: auto;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-item {
  color: var(--status-colorsnavylight);
  text-decoration: none;
  font-size: 14px;
  letter-spacing: 0.7px;
  font-weight: 400;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.3s, border-bottom 0.3s;
}

.nav-item:hover, .nav-item.active {
  color: var(--white);
}

.nav-item.active {
  border-bottom: 2px solid var(--status-colorsnavysubtle);
}

.request-access-btn {
  background: var(--accent-gradient);
  border: none;
  padding: 8px 24px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.2px;
  color: #001e31;
  cursor: pointer;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  border-radius: 2px;
}

/* Hero Section */
.hero-section {
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background-color: var(--bg-deep);
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, 
    rgba(0, 14, 38, 0.2) 0%, 
    rgba(0, 14, 38, 0.5) 70%, 
    rgba(0, 14, 38, 1) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 900px;
  padding: 0 24px;
}

.alert-banner {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid var(--status-colorsyellowlight);
  background: rgba(255, 206, 100, 0.1);
  margin-bottom: 32px;
}

.alert-banner i {
  color: var(--status-colorsyellowlight);
  font-size: 14px;
}

.alert-banner span {
  color: var(--status-colorsyellowlight);
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 600;
}

.hero-heading h1 {
  font-size: 100px;
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 80px;
  letter-spacing: -2px;
  color: var(--white);
}

.text-negative {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 32px;
  background: rgba(55, 178, 255, 0.1);
  color: #00132f;
  border-radius: 4px;
  -webkit-backdrop-filter: invert(1) hue-rotate(180deg) saturate(2.5);
  backdrop-filter: invert(1) hue-rotate(180deg) saturate(2.5);
  border: 1px solid rgba(55, 178, 255, 0.3);
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.text-negative-b {
  display: inline-block;
  color: #37B2FF;
  mix-blend-mode: color-dodge;
  font-weight: 700;
  position: relative;
}

.hero-subtext {
  font-size: 16px;
  color: var(--medium);
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.hero-subtext em {
  display: block;
  margin-top: 8px;
  font-style: italic;
  opacity: 0.9;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn {
  padding: 18px 48px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.4px;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.3s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 2px;
}

.btn-primary {
  background: var(--accent-gradient);
  border: none;
  color: #001e31;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
}

.bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(180deg);
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.bg-video.video-active.video-loaded {
  opacity: 1;
}

/* Capabilities Section */
.capabilities-section {
  padding: 120px 0;
  background-color: var(--bg-deep);
  background-image: url(../assets/hex_grid.png);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  box-shadow: inset 0 250px 150px -100px var(--bg-deep);
  position: relative;
  overflow: hidden;
}

.capabilities-section .container {
  position: relative;
  z-index: 2;
}

.section-label {
  font-size: 12px;
  letter-spacing: 3.6px;
  color: var(--status-colorsyellowlight);
  font-weight: 700;
  margin-bottom: 16px;
}

.section-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 32px;
}

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.cap-card {
  background: rgba(0, 27, 62, 0.7);
  padding: 30px;
  border-radius: 4px;
  border: 1px solid rgba(55, 178, 255, 0.1);
  transition: transform 0.3s, border-color 0.3s, background 0.3s;
}

.cap-card:hover {
  background: rgba(0, 27, 62, 1);
  transform: translateY(-5px);
  border-color: var(--status-colorsnavylight);
}

.cap-card i {
  font-size: 32px;
  color: var(--status-colorsnavylight);
  margin-bottom: 24px;
  display: block;
}

.cap-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}

.cap-card p {
  font-size: 14px;
  color: var(--medium);
  line-height: 1.6;
}

/* ASHCA Section */
.ashca-section {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--status-colorsnavylight);
  border-bottom: 1px solid var(--status-colorsnavylight);
  background: black;
}

.ashca-bg-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.ashca-bg-video.video-active.video-loaded {
  opacity: 1;
  z-index: 2;
}

.ashca-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 2;
  mix-blend-mode: lighten;
}

.ashca-background-video {
  opacity: .1;
}

.ashca-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 3;
}

.ashca-section h3 {
  border-top: red 1px solid;
  border-bottom: red 1px solid;
  margin: 0px;
  padding: 24px 0px;
}

.ashca-content h3 {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
  padding: 12px 0;
  border-top: 2px solid;
  border-bottom: 2px solid;
  border-image: linear-gradient(to right, #ff333350 0%, #ffffff80 50%, #3333ff50 100%) 1;
  background: linear-gradient(to right, #ff333300 0%, #ffffff20 50%, #3333ff00 100%);
}

.ashca-content h3 i {
  font-size: 30px;
}

.ashca-desc {
  font-size: 18px;
  color: var(--medium);
  margin-bottom: 40px;
}

.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.feature-list i {
  font-size: 24px;
  color: var(--status-colorsnavylight);
}

.feature-text strong {
  display: block;
  font-size: 16px;
  letter-spacing: 0.7px;
  margin-bottom: 8px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
}

.feature-text p {
  font-size: 14px;
  color: #c4c6d0;
  line-height: 1.5;
}

.ashca-conclusion {
  font-size: 16px;
  color: var(--medium);
  margin-top: 40px;
  line-height: 1.6;
}

.ashca-content {
  padding: 120px 0px;
  z-index: 5;
}

.ashca-visual {
  position: relative;
  width: 100%;
  height: 100%;
}

.ashca-visual img, .ashca-visual video {
  position: absolute;
}

.ashca-overlay .flag-layer {
  -webkit-mask-image: linear-gradient(to right, black -40%, transparent 60%);
  mask-image: linear-gradient(to right, black -40%, transparent 60%);
  position: absolute;
  z-index: 2;
  opacity: 0.4;
}

.ashca-overlay .dna-layer {
  position: absolute;
  bottom: 71%;
  left: 63%;
  transform: rotate(280deg) translate(-50%, -50%);
  transform-origin: center;
  height: 105%; /* 105% of the container's height */
  width: auto;   /* Maintain aspect ratio */
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.ashca-overlay .dna-layer.video-loaded {
  opacity: 0.6;
}

.marine-layer {
  z-index: 2;
  right: -60%;
  bottom: 0%;
}

.tech-layer {
  z-index: 3;
  bottom: 35%;
  right: -40%;
  width: 670px;
}

/* Experience Section */
.experience-section {
  padding: 120px 0;
  background-color: var(--bg-deep);
  background-image: url(../assets/hex_grid.png);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
}

.experience-container {
  position: relative;
  z-index: 2;
}

.experience-header {
  margin-bottom: 48px;
  text-align: left;
}

.vision-statement {
  font-size: 26px;
  line-height: 1.4;
  letter-spacing: 1px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 300;
  font-style: italic;
  color: var(--status-colorsnavysubtle);
  margin-top: -32px;
  margin-bottom: 48px;
  opacity: 0.85;
}

.experience-quote {
  margin-bottom: 80px;
  padding: 24px 48px;
  background: rgba(255, 255, 255, 0.02);
  border-left: 2px solid var(--status-colorsnavylight);
  position: relative;
  overflow: hidden;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.experience-quote::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(55, 178, 255, 0.05) 0%, transparent 100%);
  pointer-events: none;
}

.experience-quote h3 {
  font-size: 18px;
  line-height: 1.8;
  font-weight: 300;
  color: var(--white);
  margin: 0;
  letter-spacing: 0.4px;
}

.expertise-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.expertise-col {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.expertise-col.staggered {
  margin-top: 60px;
}

.expertise-card {
  display: flex;
  gap: 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 40px;
  align-items: flex-start;
  transition: all 0.4s ease;
  cursor: default;
}

.expertise-card:hover {
  background: rgba(55, 178, 255, 0.08);
  border-color: rgba(55, 178, 255, 0.3);
  transform: translateY(-2px);
}

.expertise-card h3 {
  margin-top: 0px;
  margin-bottom: 6px;
  color: var(--status-colorsnavysubtle);
}

.expertise-icon {
  width: 48px;
  height: 48px;
  background: rgba(55, 178, 255, 0.1);
  border: 1px solid rgba(55, 178, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--status-colorsnavylight);
  flex-shrink: 0;
  transition: all 0.4s ease;
}

.expertise-card:hover .expertise-icon {
  background: rgba(55, 178, 255, 0.2);
  color: var(--white);
}

.expertise-content p {
  font-size: 16px;
  color: var(--white);
  line-height: 1.6;
  margin: 0 0 24px 0;
  font-weight: 400;
}

.expertise-line {
  height: 2px;
  width: 40px;
  background: var(--status-colorsnavylight);
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s ease;
  opacity: 0.4;
}

.expertise-card:hover .expertise-line {
  width: 100%;
  opacity: 1;
}

.expertise-footer {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.expertise-footer p {
  font-size: 12px;
  letter-spacing: 2.4px;
  color: var(--status-colorsnavysubtle);
  text-transform: uppercase;
  margin: 0;
}

/* Contact Section */
.contact-section {
  padding: 120px 0;
  background-color: var(--bg-deep);
  background-image: url(../assets/hex_grid.png);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--status-colorsnavylight);
}

.contact-container {
  max-width: 860px;
  position: relative;
  z-index: 2;
  text-align: left;
}

.contact-title {
  font-size: 56px;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  margin-bottom: 16px;
  color: var(--white);
  letter-spacing: -1px;
  text-align: left;
}

.contact-subtitle {
  font-size: 16px;
  color: var(--status-colorsyellowlight);
  margin-bottom: 48px;
  font-weight: 400;
  text-align: left;
  font-family: 'Space Grotesk', sans-serif;
  text-transform: uppercase;
}

.contact-form {
  text-align: left;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--status-colorsnavysubtle);
  margin-bottom: 12px;
  font-weight: 600;
}

.form-group input, .form-group textarea {
  width: 100%;
  background: #041b3b;
  border: none;
  border-bottom: 1px solid rgba(55, 178, 255, 0.3);
  padding: 16px;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  transition: border-color 0.3s, background 0.3s;
  border-radius: 2px 2px 0 0;
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-bottom-color: var(--status-colorsnavylight);
  background: #05244f;
}

.form-group textarea {
  height: 140px;
  resize: vertical;
}

.checkbox-group {
  margin-bottom: 40px;
}

.custom-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.custom-checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  min-width: 20px;
  min-height: 20px;
  background: var(--status-colorsnavylight);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.custom-checkbox input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid var(--bg-navy);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.custom-checkbox label {
  font-size: 10px;
  color: var(--status-colorsnavysubtle);
  margin: 0;
  line-height: 1.6;
  letter-spacing: 0.5px;
}

.form-actions {
  text-align: center;
}

.submit-btn {
  display: inline-block;
  padding: 20px 48px;
  background: var(--accent-gradient);
  border: none;
  color: #001e31;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 1.6px;
  cursor: pointer;
  transition: transform 0.3s, opacity 0.3s;
  border-radius: 2px;
}

.submit-btn:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* Footer */
.footer {
  padding: 24px 32px;
  background: linear-gradient(360deg, transparent, #0c0e11);
  border-top: 1px solid var(--status-colorsnavylight);
}

.footer-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: none;
  width: 100%;
  position: relative;
}

.footer-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.footer-logo {
  height: 48px;
  margin-bottom: 24px;
}

.copyright {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0;
}

.footer-info {
  display: flex;
  gap: 80px;
  text-align: left;
}

.info-col strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.5px;
}

.info-col span, .info-col a {
  display: block;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 4px;
  line-height: 1.5;
}

.info-col a:hover {
  color: var(--white);
}

/* Responsive */
@media (max-width: 1024px) {
  .capabilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .news-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 940px) {
  .nav-links {
    display: none;
  }
  .tech-layer {
    display: none;
  }
}

@media (max-width: 768px) {
  .top-nav-bar {
    padding: 12px 24px;
  }
  .bg-video {
    top: 43%;
    filter: blur(2px);
  }
  .ashca-overlay .dna-layer.video-loaded {
    opacity: 0.2;
  }
  .marine-layer {
    filter: brightness(0.25);
  }
  .hero-heading h1 {
    font-size: 50px;
    margin-bottom: 20px;
  }
  .ashca-section .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .expertise-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .expertise-col.staggered {
    margin-top: 0;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    flex-direction: column;
    gap: 48px;
    align-items: center;
    text-align: center;
  }
  .footer-center {
    position: static;
    transform: none;
  }
  .footer-info {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }
}

@media (max-width: 550px) {
  .capabilities-grid {
    grid-template-columns: 1fr;
  }
  .ashca-section {
    position: relative;
    background: black;
  }
  .ashca-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/ashca_platform_poster.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.1;
    z-index: 1;
  }
  .ashca-section .container {
    z-index: 5;
  }
}

@media (max-width: 400px) {
  .experience-title {
    font-size: 48px;
  }
  .expertise-line {
    margin-left: -72px;
  }
  .expertise-content p {
    margin-left: -72px;
    margin-top: 24px;
  }
}

@media (max-width: 440px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  min-width: 300px;
  max-width: 450px;
  padding: 16px 20px;
  background: rgba(17, 17, 17, 0.1);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-left: 4px solid #fff;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: toast-in 0.3s ease-out forwards;
  transition: all 0.3s ease;
  pointer-events: auto;
}

.toast.success {
  background: rgba(0, 255, 0, 0.1); 
  border-left-color: #00ff00; /* Neon Green */
}

.toast.error {
  background: rgba(255, 51, 51, 0.1); 
  border-left-color: #ff3333; /* Negative Red */
}

.toast.fade-out {
  opacity: 0;
  transform: translateX(100%);
}

@keyframes toast-in {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Navigation Request Access Button Visibility */
.request-access-btn {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.request-access-btn.visible {
  opacity: 1;
  visibility: visible;
}

.expertise-footer h2 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--status-colorsnavysubtle);
  line-height: 1.6;
  max-width: 1000px;
  margin: 0 auto;
  text-transform: uppercase;
  background: linear-gradient(180deg, var(--white) 0%, var(--status-colorsnavysubtle) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.9;
}

/* Temporarily hide social media links */
.social-links {
  display: none !important;
}
