/* Cyberdyne Security — Matching Canva Deck Design */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,500;0,9..40,700;0,9..40,900;1,9..40,400&display=swap');

*,*::before,*::after{margin:0;padding:0;box-sizing:border-box}
:root{
  --navy:#0b1a3e;
  --navy-card:#111b2e;
  --ice:#a8c8e8;
  --ice-bright:#c4ddf0;
  --body-text:#6b9fc4;
  --accent:#3b82f6;
  --accent-bar:#7fadd4;
  --white:#ffffff;
}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  font-family:'DM Sans',system-ui,sans-serif;
  background:var(--navy);
  color:var(--body-text);
  line-height:1.7;
  min-height:100vh;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
}
a{-webkit-tap-highlight-color:transparent}

/* ========= NAV ========= */
.nav{padding:1.2rem 2.5rem;display:flex;align-items:center;justify-content:space-between}
.nav-brand{display:flex;align-items:center;gap:0.75rem;text-decoration:none}
.nav-logo{width:40px;height:40px}
.nav-name{font-weight:900;font-size:0.9rem;color:var(--ice-bright);letter-spacing:0.15em;text-transform:uppercase}
.nav-home{color:var(--accent);text-decoration:none;font-size:0.85rem;font-weight:600;transition:color 0.2s}
.nav-home:hover{color:var(--white)}

/* ========= HOMEPAGE ========= */
.home{display:flex;flex-direction:column;align-items:center;min-height:100vh}
.hero{position:relative;width:100%;text-align:center;padding:2.5rem 2rem 1.5rem;overflow:hidden}
.hero-bg{position:absolute;inset:0;z-index:0}
.hero-bg img{width:100%;height:100%;object-fit:cover;opacity:0.15}
.hero-bg::after{content:'';position:absolute;inset:0;background:linear-gradient(to bottom,var(--navy) 0%,transparent 30%,transparent 70%,var(--navy) 100%)}
.hero-content{position:relative;z-index:1;max-width:700px;margin:0 auto}
.hero-logo{width:90px;height:auto;margin-bottom:1rem}
.nav-logo{width:40px;height:40px;object-fit:contain}
.hero-brand{font-size:0.8rem;font-weight:700;letter-spacing:0.2em;text-transform:uppercase;color:var(--accent);margin-bottom:1.2rem}
.hero h1{font-size:clamp(2.2rem,5vw,3.2rem);font-weight:900;color:var(--ice-bright);line-height:1.08;margin-bottom:1rem}
.hero-intro{font-size:0.95rem;color:var(--body-text);max-width:580px;margin:0 auto 0.5rem;line-height:1.8}
.nav-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:0.75rem;max-width:600px;width:100%;padding:1.5rem 1.5rem 1.5rem}
.nav-card{
  display:flex;align-items:center;gap:0.9rem;
  padding:1rem 1.2rem;border-radius:10px;
  background:var(--navy-card);border:1px solid rgba(59,130,246,0.1);
  text-decoration:none;transition:all 0.25s;
}
.nav-card:hover{background:rgba(59,130,246,0.1);border-color:rgba(59,130,246,0.3);transform:translateY(-2px)}
.card-accent{
  width:4px;height:36px;border-radius:2px;
  background:var(--accent);opacity:0.6;
  flex-shrink:0;transition:opacity 0.25s;
}
.nav-card:hover .card-accent{opacity:1}
.nav-card .lbl{font-size:0.88rem;font-weight:600;color:var(--ice-bright)}
.nav-card .sub{font-size:0.7rem;color:var(--body-text);margin-top:0.15rem}
.contact-row{display:flex;flex-wrap:wrap;gap:1.5rem;justify-content:center;padding:1rem 2rem 2.5rem}
.contact-row a{color:var(--body-text);text-decoration:none;font-size:0.85rem;transition:color 0.2s}
.contact-row a:hover{color:var(--white)}

/* ========= SPLIT PAGE LAYOUT (detail pages) ========= */
.page-layout{
  display:grid;grid-template-columns:1fr 1fr;
  min-height:calc(100vh - 65px);
}
.page-visual{
  position:relative;
  display:flex;align-items:center;justify-content:center;
  overflow:hidden;
}
.page-visual::before{
  content:'';position:absolute;
  top:0;left:0;bottom:0;width:55px;
  background:var(--accent-bar);opacity:0.4;
  z-index:1;
}
.swoosh{
  position:absolute;
  width:500px;height:500px;
  background:var(--accent);
  border-radius:50% 50% 50% 8%;
  transform:rotate(-35deg);
  left:-30px;top:calc(50% - 250px);
  z-index:2;
  opacity:0.85;
}
.page-visual img{
  width:360px;height:360px;
  object-fit:cover;border-radius:50%;
  border:5px solid var(--accent);
  position:relative;z-index:3;
}
.page-text{
  display:flex;flex-direction:column;justify-content:center;
  padding:4rem 4rem 4rem 3rem;
}
.page-text h1{
  font-size:clamp(2.4rem,4.5vw,3.8rem);
  font-weight:900;color:var(--ice-bright);
  line-height:1.06;margin-bottom:1.8rem;
}
.page-text p{font-size:1.05rem;line-height:1.85;max-width:540px;margin-bottom:1rem}
.page-text p:last-child{margin-bottom:0}

/* ========= SERVICES OVERVIEW (4-col text grid) ========= */
.svc-page{max-width:1100px;margin:0 auto;padding:5rem 2rem;min-height:calc(100vh - 65px);display:flex;flex-direction:column;justify-content:center}
.svc-page h1{font-size:clamp(2.4rem,5vw,4rem);font-weight:900;color:var(--ice-bright);line-height:1.08;margin-bottom:3rem}
.services-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:2.5rem}
.svc-card{text-decoration:none;display:block;padding:1rem;border-radius:8px;transition:background 0.2s}
.svc-card:hover{background:rgba(59,130,246,0.06)}
.svc-card h2{font-size:1.1rem;font-weight:700;color:var(--ice-bright);margin-bottom:0.5rem}
.svc-card p{font-size:0.92rem;color:var(--body-text);line-height:1.7}

/* ========= CONTACT TEXT ========= */
.contact-intro{margin-bottom:1.5rem}
.contact-links{display:flex;flex-direction:column;gap:0.75rem;margin-top:1.5rem}
.contact-links a{color:var(--body-text);text-decoration:none;font-size:1.05rem;transition:color 0.2s}
.contact-links a:hover{color:var(--white)}
.contact-label{font-size:0.75rem;font-weight:700;letter-spacing:0.2em;text-transform:uppercase;color:var(--accent);margin-bottom:0.5rem}

/* ========= FOOTER ========= */
.footer{text-align:center;padding:1.5rem;font-size:0.75rem;color:rgba(126,168,200,0.3)}

/* ========= RESPONSIVE — TABLET ========= */
@media(max-width:900px){
  .nav{padding:1rem 1.5rem}
  .page-layout{grid-template-columns:1fr}
  .page-visual{min-height:45vh}
  .page-text{padding:2.5rem 1.5rem;text-align:center}
  .page-text p{max-width:100%}
  .page-text h1{font-size:2.4rem}
  .services-grid{grid-template-columns:1fr 1fr}
  .swoosh{width:380px;height:380px;left:-20px;top:calc(50% - 190px)}
  .page-visual img{width:260px;height:260px}
  .hero-intro{font-size:0.9rem}
  .nav-grid{max-width:500px;padding:1.5rem 1rem}
  .contact-row{gap:1rem;padding:0.75rem 1.5rem 2rem}
}

/* ========= RESPONSIVE — MOBILE ========= */
@media(max-width:600px){
  .nav{padding:0.8rem 1rem}
  .nav-name{font-size:0.75rem;letter-spacing:0.1em}
  .nav-home{font-size:0.8rem}
  .nav-grid{grid-template-columns:1fr;padding:1rem 1rem 1rem}
  .nav-card{padding:0.85rem 1rem}
  .hero{padding:2rem 1.2rem 1rem}
  .hero-logo{width:52px;height:52px}
  .hero h1{font-size:1.8rem;margin-bottom:0.75rem}
  .hero-brand{font-size:0.7rem;margin-bottom:0.8rem}
  .hero-intro{font-size:0.85rem;line-height:1.7}
  .services-grid{grid-template-columns:1fr;gap:1.5rem}
  .svc-page{padding:3rem 1.2rem}
  .svc-page h1{font-size:2rem;margin-bottom:2rem}
  .page-visual::before{width:35px}
  .page-visual{min-height:35vh}
  .swoosh{width:250px;height:250px;top:calc(50% - 125px);left:-25px}
  .page-visual img{width:180px;height:180px;border-width:3px}
  .page-text{padding:2rem 1.2rem}
  .page-text h1{font-size:1.9rem;margin-bottom:1.2rem}
  .page-text p{font-size:0.95rem;line-height:1.75}
  .contact-links a{font-size:0.95rem}
  .contact-row{flex-direction:column;align-items:center;gap:0.6rem;font-size:0.8rem}
  .footer{padding:1rem;font-size:0.65rem}
}

/* ========= RESPONSIVE — SMALL MOBILE ========= */
@media(max-width:380px){
  .hero h1{font-size:1.5rem}
  .hero-intro{font-size:0.8rem}
  .page-text h1{font-size:1.6rem}
  .page-text p{font-size:0.88rem}
  .swoosh{width:200px;height:200px;top:calc(50% - 100px)}
  .page-visual img{width:150px;height:150px}
  .nav-card .lbl{font-size:0.82rem}
}

/* ========= ANIMATIONS ========= */
.fade-in{animation:fadeIn 0.7s ease-out both}
@keyframes fadeIn{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:translateY(0)}}
.delay-1{animation-delay:0.12s}.delay-2{animation-delay:0.24s}
.delay-3{animation-delay:0.36s}.delay-4{animation-delay:0.48s}
