/* =========================================================
   DESIGN SYSTEM
========================================================= */
*, *::before, *::after {
  box-sizing:border-box;
  margin:0;
  padding:0;
}
:root {
  /* Colors */
  --primary:hsl(196,95%,20%);
  --primary-light:hsl(194,83%,43%); 
  --primary-glow:hsl(192,100%,58%); 
  --primary-fg:hsl(210,40%,98%);
  --accent:hsl(192,87%,59%);
  --accent-fg:hsl(220,40%,13%);
  --bg:hsl(197,20%,97%);
  --fg:hsl(197,40%,13%);
  --card:hsl(0,0%,100%);
  --muted:hsl(207,16%,47%); 
  --secondary-bg:hsl(194,25%,93%); 
  --border:hsl(215,25%,88%);
  /* Typography */
  --font-heading:'Arimo',serif;
  --font-body:'DM Sans',sans-serif;
  /* Shadows */
  --shadow-card:0 4px 24px -4px hsl(217 71% 25%/0.08);
  --shadow-elevated:0 12px 40px -8px hsl(217 71% 25%/0.15);
}
/* ========================================================= */
html { 
  scroll-behavior:smooth;
}
body { 
  font-family:var(--font-body);
  background:var(--bg);
  color:var(--fg);
  -webkit-font-smoothing:antialiased;
  line-height:1.6;
}
h1,h2,h3,h4,h5,h6 { 
  font-family:var(--font-heading); 
}
a { 
  text-decoration:none; 
  color:inherit; 
}
img { 
  max-width:100%; 
  display:block; 
}
.container { 
  max-width:1200px; 
  margin:0 auto; 
  padding:0 1.5rem; 
}

/* Animate on scroll ========================================= */
.anim {
  opacity:0;
  transform:translateY(30px);
  transition:opacity .6s ease,transform .6s ease;
}
.anim.visible {
  opacity:1;
  transform:translateY(0);
}
.anim-left {
  opacity:0;
  transform:translateX(-30px);
  transition:opacity .6s ease,transform .6s ease;
}
.anim-left.visible {
  opacity:1;
  transform:translateX(0);
}
.anim-right {
  opacity:0;
  transform:translateX(30px);
  transition:opacity .6s ease,transform .6s ease;
}
.anim-right.visible {
  opacity:1;
  transform:translateX(0);
}

/* Nav ===================================================== */
nav {
  position:fixed;
  top:0;
  left:0;
  right:0;
  background:hsla(0,0%,100%,.8);
  backdrop-filter:blur(16px);
  border-bottom:1px solid var(--border);
  z-index:100;
}
.nav-inner {
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:64px;
}
.logo {
  width:100%;
  max-width: 18rem;
}
.nav-links {
  display:flex;
  align-items:center;
  gap:2rem;
}
.nav-links a {
  font-size:.875rem;
  font-weight:500;
  color:var(--muted);
  transition:color .2s;
}
.nav-links a:hover {
  color:var(--primary);
}
.btn-primary {
  padding:.625rem 1.25rem;
  border-radius:.375rem;
  background:var(--primary);
  color:var(--primary-fg) !important;
  font-size:.875rem;
  font-weight:500;
  border:none;
  cursor:pointer;
  transition:background .2s;
}
.btn-primary:hover {
  background:var(--primary-light);
}
.btn-accent {
  padding:.875rem 2rem;
  border-radius:.375rem;
  background:var(--accent);
  color:var(--accent-fg);
  font-size:.875rem;
  font-weight:600;
  border:none;
  cursor:pointer;
  transition:opacity .2s;
  display:inline-block;
  text-align:center;
}
.btn-accent:hover {
  opacity:.9;
}
.btn-outline {
  padding:.875rem 2rem;
  border-radius:.375rem;
  border:1px solid hsla(210,40%,98%,.3);
  color:var(--primary-fg);
  font-size:.875rem;
  font-weight:500;
  background:transparent;
  cursor:pointer;
  transition:background .2s;
  display:inline-block;
  text-align:center;
}
.btn-outline:hover {
  background:hsla(210,40%,98%,.1);
}
.hamburger { display:none;
  background:none;
  border:none;
  cursor:pointer;
}
.hamburger svg {
  width:24px;
  height:24px;
  stroke:var(--fg);
  stroke-width:2;
  fill:none;
}
.mobile-menu {
  display:none;
  flex-direction:column;
  gap:.75rem;
  padding:1rem 1.5rem;
  background:var(--card);
  border-bottom:1px solid var(--border);
}
.mobile-menu.open { 
  display:flex; 
}
.mobile-menu a {
  font-size:.875rem;
  font-weight:500;
  color:var(--muted);
  padding:.5rem 0;
}
/* mobile */
@media(max-width:800px) {
  .nav-links { display:none; }
  .hamburger { display:block; }
  .nav-inner { height:56px; }
}
/* desktop */
@media(min-width:801px) {
  .mobile-menu.open { display:none; }
}

/* Hero ===================================================== */
.hero {
  position:relative;
  min-height:90vh;
  display:flex;
  align-items:center;
  overflow:hidden; 
  background-size:cover;
  background-position:center;
  background-repeat: no-repeat;
  transition: background-image 0.4s ease-in-out;
}
.hero-content {
  position:relative;
  padding-top:5rem;
  max-width:640px;
  z-index:2;
}
.hero .label {
  color:var(--primary-glow);
  font-size:.8rem;
  font-weight:600;
  letter-spacing:.15em;
  text-transform:uppercase;
  margin-bottom:1rem;
}
.label-line {
  width:60px;
  height:3px;
  border-radius:4px;
  background:linear-gradient(to right, #00c6ff, #006dd4);
}
.hero h1 {
  font-size:clamp(2.5rem,6vw,5.5rem);
  font-weight:700;line-height:1.1;
  color:var(--primary-fg);
  margin-bottom:1.5rem;
}
.hero h1 .grad {
  background:linear-gradient(135deg,var(--accent),hsl(187,95%,55%));
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
}
.hero p {
  font-size:1.15rem;
  color:hsla(210,40%,98%,.7);
  line-height:1.7;
  margin-bottom:2rem;
  max-width:540px;
}
.hero-btns {
  display:flex;
  gap:1rem;
  flex-wrap:wrap;
}
/* desktop */
@media(min-width:801px) {
  .hero-content { padding-top:4rem; }
  .hero-content { max-width:1200px; }
  .hero h1 { font-size:clamp(2.5rem,6vw,4rem); }
  .hero p { max-width:1040px; }
}

/* About ===================================================== */
.about {
  padding:5rem 0;
}
.about-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:5rem;
  align-items:center;
}
.about-img {
  border-radius:.5rem;
  overflow:hidden;
  box-shadow:var(--shadow-elevated);
  position:relative;
}
.about-img img {
  width:100%;
  height:auto;
  object-fit:cover;
}
.about-img::after {
  content:'';
  position:absolute;
  inset:0;
  background:hsla(217,71%,25%,.1);
}
.about .label {
  font-size:.8rem;
  font-weight:600;
  letter-spacing:.15em;
  text-transform:uppercase;
  color:var(--primary-light);
  margin-bottom:.75rem;
}
.about h2 {
  font-size:clamp(1.8rem,3vw,2.5rem);
  font-weight:700;
  margin-bottom:1.5rem;
  line-height:1.2;
}
.about p {
  color:var(--muted);
  line-height:1.7;
  margin-bottom:1rem;
}
.about-stats {
  display:flex;
  gap:1.5rem;
  margin-top:2rem;
}
.about-stat {
  border-left:2px solid var(--accent);
  padding-left:1rem;
}
.about-stat .val {
  font-family:var(--font-heading);
  font-size:1.5rem;
  font-weight:700;color:var(--fg);
}
.about-stat .lbl {
  font-size:.8rem;
  color:var(--muted);
}
/* mobile */
@media(max-width:768px) {
  .about-grid {
    grid-template-columns:1fr;
    gap:2.5rem;
  }
}

/* Our Philosophy ===================================================== */
.philosophy {
  padding:5rem 0;
  background:var(--secondary-bg);
}
.philosophy .header {
  text-align:center;
  margin-bottom:3.5rem;
}
.philosophy .label {
  font-size:.8rem;
  font-weight:600;
  letter-spacing:.15em;
  text-transform:uppercase;
  color:var(--primary-light);
  margin-bottom:.75rem;
}
.philosophy .label-line {
  margin: 0 auto;
}
.philosophy h2 {
  font-size:clamp(1.8rem,3vw,2.5rem);
  font-weight:700;
}
.philosophy-grid {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:1.5rem;
}
.philosophy-card {
  background:var(--card);
  border-radius:.5rem;
  padding:2rem;
  box-shadow:var(--shadow-card);
  transition:box-shadow .3s;
}
.philosophy-card:hover {
  box-shadow:var(--shadow-elevated);
}
.philosophy-icon {
  width:48px;
  height:48px;
  border-radius:.375rem;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-bottom:1.25rem;
  transition:background .3s;
}
.philosophy-card:nth-child(1) .philosophy-icon { background:var(--primary); }
.philosophy-card:nth-child(2) .philosophy-icon { background:hsl(204,77%,38%); }
.philosophy-card:nth-child(3) .philosophy-icon { background:var(--primary-light); }
.philosophy-card:nth-child(4) .philosophy-icon { background:var(--accent); }

.philosophy-card:nth-child(1):hover .philosophy-icon { background:hsla(196,95%,20%,.8); }
.philosophy-card:nth-child(2):hover .philosophy-icon { background:hsla(204,77%,38%,.8); }
.philosophy-card:nth-child(3):hover .philosophy-icon { background:hsla(194,83%,43%,.8); }
.philosophy-card:nth-child(4):hover .philosophy-icon { background:hsla(192,87%,59%,.8); }

.philosophy-icon svg {
  width:24px;
  height:24px;
  stroke:#fff; 
  stroke-width:2;
  fill:none;
}
.philosophy-card h3 {
  font-size:1.15rem;
  font-weight:600;
  margin-bottom:.75rem;
}
.philosophy-card p {
  font-size:.875rem;
  color:var(--muted);
  line-height:1.7;
}
/* mobile/tablet */
@media(max-width:1024px) {
  .philosophy-grid {
    grid-template-columns:repeat(2,1fr);
  }
}
/* mobile */
@media(max-width:520px) {
  .philosophy-grid {
    grid-template-columns:1fr;
  }
}

/* Contact ===================================================== */
.contact {
  padding:5rem 0;
  background:var(--primary);
}
.contact-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:5rem;
}
.contact .label {
  font-size:.8rem;
  font-weight:600;
  letter-spacing:.15em;
  text-transform:uppercase;
  color:var(--primary-glow);
  margin-bottom:.75rem;
}
.contact .label-line {
  margin-bottom: 20px;
}
.contact h2 {
  font-size:clamp(1.8rem,3vw,2.5rem);
  font-weight:700;
  color:var(--primary-fg);
  margin-bottom:1.5rem;
  line-height:1.2;
}
.contact>div>div>p {
  color:hsla(210,40%,98%,.7);
  line-height:1.7;
  margin-bottom:2.5rem;
  max-width:420px;
}
.contact-info {
  display:flex;
  flex-direction:column;
  gap:1.5rem;
}
.contact-row {
  display:flex;
  align-items:flex-start;
  gap:1rem;
}
.contact-row svg {
  width:20px;
  height:20px;
  stroke:var(--accent);
  stroke-width:2;
  fill:none;
  flex-shrink:0;
  margin-top:2px;
}
.contact-row .sublabel {
  font-size:.8rem;
  color:hsla(210,40%,98%,.5);
  margin-bottom:.25rem;
}
.contact-row .value {
  color:var(--primary-fg);
  font-weight:500;
}
.contact-row a {
  color:var(--primary-fg);
  font-weight:500;
  transition:color .2s;
}
.contact-row a:hover {
  color:var(--accent);
}
.contact-form {
  background:var(--card);
  border-radius:.5rem;
  padding:2rem;
  box-shadow:var(--shadow-elevated);
}
.contact-form label {
  display:block;
  font-size:.875rem;
  font-weight:500;
  color:var(--fg);
  margin-bottom:.375rem;
}
.contact-form input, .contact-form textarea {
  width:100%;
  padding:.75rem 1rem;
  border-radius:.375rem;
  border:1px solid var(--border);
  background:var(--bg);
  color:var(--fg);
  font-size:.875rem;
  font-family:var(--font-body);
  outline:none;
  transition:box-shadow .2s;
}
.contact-form input:focus, .contact-form textarea:focus {
  box-shadow:0 0 0 3px hsla(217,71%,25%,.15);
}
.contact-form textarea {
  resize:none;
}
.form-group {
  margin-bottom:1.25rem;
}
.contact-form button {
  width:100%;
  padding:.875rem;
  border-radius:.375rem;
  background:var(--accent);
  color:var(--accent-fg);
  font-weight:600;
  font-size:.875rem;
  border:none;
  cursor:pointer;
  transition:opacity .2s;
  font-family:var(--font-body);
}
.contact-form button:hover {
  opacity:.9;
}
#formStatus {
  text-align: center;
  font-weight: bold;
}
/* mobile */
@media(max-width:768px) {
  .contact-grid {
    grid-template-columns:1fr;gap:2.5rem;
  }
}

/* Footer ===================================================== */
footer {
  background:var(--fg);
  padding:3rem 10px;
}
#footer-login {
  background:hsl(195.63deg 98.87% 15.6%) !important; /* background:var(--primary); */
  padding:2.2rem 0 !important;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:1.5rem;
}
.footer-column {
  flex: 1;
  min-width: 250px;
}
.footer-logo-col {
  display: flex;
  justify-content: flex-start;
}
.footer-logo {
  width: 100%;
  max-width: 12rem;
  filter: brightness(0) invert(1); /* white logo */
}
.footer-links {
  display:flex;
  justify-content: center;
  gap:2rem;
}
.footer-links a {
  font-size:.875rem;
  color:hsla(220,20%,97%,.5);
  transition:color .2s;
}
.footer-links a:hover {
  color:hsla(220,20%,97%,.8);
}
.footer-contact-col {
  display: flex;
  justify-content: flex-end;
}
.footer-contact {
  font-size:.875rem;
  color:hsla(220,20%,97%,.5);
}
.footer-bottom {
  max-width: 1200px;
  margin: 30px auto 0 auto;
  padding-top: 20px;
  border-top: 1px solid #2c3c46;
  text-align: center;
}
.footer-copy {
  margin: 0;
  font-size:.75rem;
  color:hsla(220,20%,97%,.4);
}
/* mobile */
@media(max-width:640px) {
  .footer-inner { 
    flex-direction: column;
    text-align: center;
    gap: 25px;
  }
  .footer-logo-col, .footer-links, .footer-contact-col {
    justify-content: center;
    text-align: center;
  }
  .footer-links {
    flex-direction: column;
    gap:15px;
  }
}

/* Login ===================================================== */
#login-body {
  display:flex;
  flex-direction: column;
  min-height: 100dvh;
}
#login {
  position: relative;
  height: 85vh;
  min-height: 600px;
  display:flex;
  align-items: center;
  flex-direction: column;
  flex-grow: 1;
  gap: 2%;
  background:linear-gradient(135deg,rgba(3, 74, 99, 0.8), rgba(0, 85, 116, 0.6), rgba(68, 196, 231, 0.8)), url('../imgs/hero3_c.jpg') center/cover no-repeat;
}

/* mobile */
@media(max-width:800px) {
  #login {
    min-height: 700px;
  }
}

.login-header {
  width: 80%;
  padding: 80px 30px 2% 30px;
  text-align: center;
}

.login-header h2 {
  color: hsl(196deg 93.53% 9.4%); /* color: var(--primary); color: var(--primary-glow); */ 
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 1.6vw, 2rem);
  font-weight: 500;
  margin-bottom: .8rem;
  line-height: 1.2;
}

.login-header h1 {
  color: var(--primary-fg);
  font-size: clamp(2.5rem, 3vw, 3.5rem);
  font-weight: bold;
  line-height: 1.1;
  margin-bottom: 0rem;
}

.login-container {
  width: 320px;
  margin: 0 auto;
  padding: 30px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  text-align: center;
}

.login-container .logo {
  margin-bottom: 25px;
}

.login-container h2 {
  margin-bottom: 10px;
  color: #333;
  font-weight: normal;
}

.login-container input {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.login-container input:focus {
  outline: none;
  border-color:var(--primary);
}

.login-container button {
  margin-top: 8px;
  width: 100%;
  padding: 12px;
  background:var(--primary);
  color: white;
  font-size:.975rem;
  font-weight:500;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.login-container button:hover {
  background:var(--primary-light);
}

.login-container #error {
  background: #ffdddd;
  color: #a00;
  /* padding: 10px; */
  border-radius: 6px;
  margin-bottom: 10px;
}

/* mobile */
@media(max-width:800px) {
  #login {
    align-items: center;
  }
  .login-container {
    margin: 5% auto;
  }
}
