@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&display=swap');

:root{
  --green:#00ff9d;
  --cyan:#25d5ff;
  --dark:#020705;
  --gold:#d6b95c;
  --text:#f4fff9;
  --muted:#b5c9c1;
}

*{
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
}

body{
  margin:0;
  font-family:"Cairo",system-ui,sans-serif;
  color:var(--text);
  overflow-x:hidden;
  min-height:100vh;
  position:relative;
  background:
    radial-gradient(circle at 80% 10%,rgba(0,255,157,.24),transparent 30%),
    radial-gradient(circle at 12% 18%,rgba(214,185,92,.18),transparent 28%),
    radial-gradient(circle at 50% 90%,rgba(37,213,255,.12),transparent 35%),
    linear-gradient(135deg,#020705 0%,#0b1f18 48%,#020705 100%);
}

body:before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-3;
  background-image:
    linear-gradient(rgba(0,255,157,.055) 1px,transparent 1px),
    linear-gradient(90deg,rgba(0,255,157,.055) 1px,transparent 1px);
  background-size:42px 42px;
  animation:gridMove 14s linear infinite;
}

body:after{
  content:"";
  position:fixed;
  inset:0;
  z-index:-2;
  background:
    linear-gradient(115deg,transparent 0%,rgba(0,255,157,.05) 46%,transparent 52%),
    radial-gradient(circle at 50% 20%,rgba(255,255,255,.06),transparent 34%);
  animation:screenPulse 6s ease-in-out infinite alternate;
  pointer-events:none;
}

a{
  text-decoration:none;
  color:inherit;
}

.container{
  width:min(1160px,92vw);
  margin-inline:auto;
}

.hidden{
  display:none!important;
}

.scan-line{
  position:fixed;
  top:-3px;
  left:0;
  width:100%;
  height:2px;
  z-index:999;
  background:linear-gradient(90deg,transparent,var(--green),var(--cyan),transparent);
  box-shadow:0 0 18px var(--green),0 0 34px rgba(37,213,255,.45);
  animation:scan 4.5s linear infinite;
  pointer-events:none;
}

.cyber-orb{
  position:fixed;
  width:420px;
  height:420px;
  border-radius:50%;
  filter:blur(75px);
  pointer-events:none;
  z-index:-1;
  opacity:.38;
}

.orb-one{
  top:10%;
  left:-120px;
  background:rgba(0,255,157,.45);
  animation:orbOne 9s ease-in-out infinite alternate;
}

.orb-two{
  right:-150px;
  bottom:8%;
  background:rgba(37,213,255,.26);
  animation:orbTwo 11s ease-in-out infinite alternate;
}

/* HEADER */

.header{
  position:sticky;
  top:0;
  z-index:50;
  background:rgba(2,7,5,.70);
  backdrop-filter:blur(18px);
  border-bottom:1px solid rgba(0,255,157,.16);
}

.header-inner{
  min-height:78px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
}

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:max-content;
}

.brand img{
  width:48px;
  height:48px;
  border-radius:15px;
  box-shadow:0 0 24px rgba(0,255,157,.20);
}

.brand strong{
  display:block;
  font-weight:900;
  font-size:18px;
}

.brand span{
  display:block;
  color:var(--green);
  font-size:12px;
  direction:ltr;
  text-align:right;
}

nav{
  display:flex;
  align-items:center;
  gap:18px;
  color:var(--muted);
  font-weight:800;
}

nav a:hover{
  color:#fff;
}

/* BUTTONS */

.header-btn,
.btn,
button{
  border:0;
  border-radius:16px;
  padding:13px 19px;
  font-family:inherit;
  font-weight:900;
  cursor:pointer;
  color:#03100b;
  background:linear-gradient(135deg,var(--green),var(--gold));
  box-shadow:0 15px 38px rgba(0,255,157,.18);
  transition:.22s;
}

.header-btn:hover,
.btn:hover,
button:hover{
  transform:translateY(-2px) scale(1.025);
  box-shadow:
    0 0 20px rgba(0,255,157,.55),
    0 20px 50px rgba(0,0,0,.25);
}

.outline,
.dark{
  background:rgba(255,255,255,.055);
  color:var(--text);
  border:1px solid rgba(0,255,157,.24);
  box-shadow:inset 0 0 18px rgba(0,255,157,.035);
}

/* HERO */

.hero{
  min-height:620px;
  padding:62px 0 38px;
  display:grid;
  grid-template-columns:1.07fr .93fr;
  gap:38px;
  align-items:center;
}

.reveal{
  animation:revealUp .8s ease both;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:9px;
  padding:9px 15px;
  border-radius:999px;
  color:#dfffee;
  font-weight:900;
  border:1px solid rgba(0,255,157,.26);
  background:rgba(0,255,157,.075);
  box-shadow:inset 0 0 18px rgba(0,255,157,.06);
  margin-bottom:17px;
}

.badge:before{
  content:"";
  width:9px;
  height:9px;
  border-radius:50%;
  background:var(--green);
  box-shadow:0 0 13px var(--green);
}

h1{
  margin:0;
  max-width:780px;
  font-size:clamp(46px,7vw,86px);
  line-height:1.05;
  font-weight:900;
  letter-spacing:-1.6px;
  color:#fff;
  text-shadow:0 0 28px rgba(0,255,157,.14);
}

.hero p{
  margin:24px 0 0;
  max-width:720px;
  color:var(--muted);
  font-size:20px;
  line-height:2;
}

.actions{
  margin-top:30px;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

/* CARDS */

.hero-card,
.card,
.stats article,
.service-card{
  background:rgba(255,255,255,.065);
  border:1px solid rgba(0,255,157,.17);
  box-shadow:
    0 24px 70px rgba(0,0,0,.26),
    inset 0 0 40px rgba(0,255,157,.025);
  backdrop-filter:blur(13px);
}

.hero-card{
  border-radius:34px;
  padding:34px;
  background:
    linear-gradient(180deg,rgba(255,255,255,.095),rgba(255,255,255,.035)),
    radial-gradient(circle at top right,rgba(0,255,157,.15),transparent 38%);
}

.shield{
  width:78px;
  height:78px;
  display:grid;
  place-items:center;
  border-radius:24px;
  font-size:36px;
  background:rgba(0,255,157,.11);
  border:1px solid rgba(0,255,157,.20);
  box-shadow:0 0 24px rgba(0,255,157,.12);
  animation:float 3.4s ease-in-out infinite;
}

.hero-card h2{
  margin:24px 0 16px;
  font-size:34px;
  font-weight:900;
}

.hero-card ul{
  list-style:none;
  padding:0;
  margin:0;
  display:grid;
  gap:12px;
  color:#d8e7e0;
}

.hero-card li{
  display:flex;
  align-items:center;
  gap:10px;
  padding:13px 14px;
  border-radius:16px;
  background:rgba(0,0,0,.20);
  border:1px solid rgba(255,255,255,.075);
}

.hero-card li:before{
  content:"";
  width:10px;
  height:10px;
  flex:0 0 10px;
  border-radius:50%;
  background:var(--green);
  box-shadow:0 0 14px var(--green);
}

/* STATS */

.stats{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:16px;
  margin-bottom:84px;
}

.stats article{
  padding:24px;
  text-align:center;
  border-radius:24px;
  transition:.22s;
}

.stats article:hover{
  transform:translateY(-5px);
  border-color:rgba(0,255,157,.35);
}

.stats b{
  display:block;
  color:var(--gold);
  font-size:32px;
  font-weight:900;
}

.stats span{
  color:#dbe9e2;
  font-weight:800;
}

/* TOOLS */

.tool{
  margin-top:92px;
  display:grid;
  grid-template-columns:.86fr 1.14fr;
  gap:30px;
  align-items:start;
}

.services-tool,
.chat-tool{
  grid-template-columns:1fr;
}

.title span{
  color:var(--green);
  font-weight:900;
  text-shadow:0 0 14px rgba(0,255,157,.22);
}

.title h2{
  margin:8px 0 10px;
  font-size:clamp(30px,4vw,54px);
  line-height:1.14;
  font-weight:900;
}

.title p{
  color:var(--muted);
  line-height:2;
  font-size:18px;
}

.card{
  position:relative;
  overflow:hidden;
  border-radius:30px;
  padding:26px;
}

label{
  display:block;
  margin:8px 0 9px;
  font-weight:900;
  color:#eafff5;
}

.row{
  display:grid;
  grid-template-columns:1fr auto auto;
  gap:10px;
}

/* INPUTS */

input,
textarea{
  width:100%;
  border:1px solid rgba(0,255,157,.22);
  background:rgba(0,0,0,.28);
  color:#fff;
  border-radius:17px;
  padding:15px 16px;
  font-family:inherit;
  outline:0;
  resize:vertical;
  transition:.22s;
}

input::placeholder,
textarea::placeholder{
  color:rgba(244,255,249,.45);
}

input:focus,
textarea:focus{
  border-color:var(--green);
  box-shadow:
    0 0 0 4px rgba(0,255,157,.10),
    0 0 22px rgba(0,255,157,.12);
}

input[type=file]{
  padding:13px;
  color:var(--muted);
}

.preview{
  margin-top:12px;
}

.preview img{
  max-width:100%;
  max-height:280px;
  border-radius:18px;
  border:1px solid rgba(0,255,157,.23);
  box-shadow:0 16px 38px rgba(0,0,0,.25);
}

/* RESULTS */

.result{
  margin-top:16px;
  min-height:82px;
  padding:18px;
  border-radius:20px;
  color:#d7e7df;
  line-height:2;
  white-space:pre-wrap;
  background:rgba(0,0,0,.26);
  border:1px solid rgba(255,255,255,.10);
  box-shadow:inset 0 0 20px rgba(0,0,0,.18);
}

.result.safe{
  border-color:rgba(0,255,157,.45);
  background:rgba(0,255,157,.08);
  color:#dfffee;
}

.result.warn{
  border-color:rgba(255,209,102,.48);
  background:rgba(255,209,102,.09);
  color:#fff3cc;
}

.result.danger{
  border-color:rgba(255,95,109,.50);
  background:rgba(255,95,109,.09);
  color:#ffe0e4;
}

/* SERVICES */

.services-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:16px;
}

.service-card{
  border-radius:24px;
  padding:22px;
}

.service-icon{
  width:58px;
  height:58px;
  border-radius:18px;
  display:grid;
  place-items:center;
  background:rgba(0,255,157,.11);
  font-size:28px;
  margin-bottom:14px;
}

.service-card h3{
  margin:0 0 8px;
}

.service-card p{
  color:var(--muted);
  line-height:1.8;
}

.service-card textarea{
  margin-top:12px;
  min-height:92px;
}

.service-card button{
  margin-top:12px;
}

/* CHAT */

.chat-card{
  padding:18px;
}

.chat-messages{
  height:420px;
  overflow:auto;
  display:flex;
  flex-direction:column;
  gap:12px;
  padding:8px;
}

.msg{
  max-width:78%;
  padding:14px 16px;
  border-radius:18px;
  line-height:1.9;
  border:1px solid rgba(255,255,255,.08);
}

.msg.ai{
  align-self:flex-start;
  background:rgba(0,255,157,.08);
  border-color:rgba(0,255,157,.18);
}

.msg.user{
  align-self:flex-end;
  background:rgba(37,213,255,.10);
  border-color:rgba(37,213,255,.18);
}

.chat-row{
  display:grid;
  grid-template-columns:1fr auto;
  gap:10px;
  margin-top:14px;
}

/* FOOTER */

.footer{
  margin-top:96px;
  margin-bottom:30px;
  padding-top:24px;
  border-top:1px solid rgba(0,255,157,.15);
  display:flex;
  justify-content:space-between;
  gap:16px;
  color:var(--muted);
}

.footer b{
  color:#fff;
}

/* ADMIN */

.admin-body{
  display:block !important;
  background:
    radial-gradient(circle at 80% 10%,rgba(0,255,157,.24),transparent 30%),
    radial-gradient(circle at 12% 18%,rgba(214,185,92,.18),transparent 28%),
    linear-gradient(135deg,#020705 0%,#0b1f18 48%,#020705 100%) !important;
  color:#fff !important;
  min-height:100vh;
}

.admin-layout{
  display:block !important;
  padding:60px 0;
}

.admin-login{
  max-width:520px;
  margin:30px auto;
  display:block !important;
}

.admin-login h1,
.admin-dashboard h1{
  font-size:42px;
}

.admin-dashboard{
  display:block;
  width:100%;
}

.admin-grid{
  display:grid;
  grid-template-columns:.9fr 1.1fr;
  gap:24px;
}

.admin-services{
  display:grid;
  gap:12px;
}

.admin-item{
  padding:16px;
  border-radius:18px;
  background:rgba(0,0,0,.22);
  border:1px solid rgba(0,255,157,.14);
}

.admin-item h3{
  margin:0 0 6px;
}

.admin-item p{
  color:var(--muted);
  line-height:1.7;
}

.admin-item-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:10px;
}

/* ANIMATIONS */

@keyframes gridMove{
  0%{background-position:0 0}
  100%{background-position:42px 42px}
}

@keyframes screenPulse{
  0%{opacity:.55}
  100%{opacity:1}
}

@keyframes scan{
  0%{top:-3px;opacity:0}
  8%{opacity:.9}
  92%{opacity:.9}
  100%{top:100%;opacity:0}
}

@keyframes orbOne{
  0%{transform:translate(0,0) scale(1)}
  100%{transform:translate(180px,80px) scale(1.15)}
}

@keyframes orbTwo{
  0%{transform:translate(0,0) scale(1)}
  100%{transform:translate(-140px,-100px) scale(1.18)}
}

@keyframes float{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-10px)}
}

@keyframes revealUp{
  0%{opacity:0;transform:translateY(24px)}
  100%{opacity:1;transform:translateY(0)}
}

/* MOBILE */

@media(max-width:900px){
  nav,
  .header-btn{
    display:none;
  }

  .hero,
  .tool,
  .admin-grid{
    grid-template-columns:1fr !important;
  }

  .hero{
    min-height:auto;
    padding-top:42px;
  }

  .stats,
  .services-grid{
    grid-template-columns:1fr 1fr;
  }

  .row,
  .chat-row{
    grid-template-columns:1fr;
  }

  .footer{
    display:block;
  }

  .cyber-orb{
    width:300px;
    height:300px;
  }

  .msg{
    max-width:100%;
  }

  .admin-layout{
    padding:20px 0 !important;
  }

  .admin-login,
  .admin-dashboard{
    width:100% !important;
    margin:20px auto !important;
  }

  .admin-grid{
    gap:18px;
  }

  .card{
    padding:18px !important;
  }

  input,
  textarea,
  button{
    width:100%;
  }

  .header-inner{
    min-height:70px;
  }

  .brand img{
    width:42px;
    height:42px;
  }

  .brand strong{
    font-size:15px;
  }
}

@media(max-width:560px){
  .stats,
  .services-grid{
    grid-template-columns:1fr;
  }

  h1{
    font-size:42px;
  }

  .hero p{
    font-size:18px;
  }

  .hero-card,
  .card{
    padding:20px;
  }

  .admin-login h1,
  .admin-dashboard h1{
    font-size:32px;
  }
}
/* ADMIN MOBILE RESPONSIVE FIX */

@media (max-width: 768px){

  body{
    overflow-x:hidden !important;
  }

  .container{
    width:100% !important;
    max-width:100% !important;
    padding-left:16px !important;
    padding-right:16px !important;
  }

  .header-inner{
    width:100% !important;
    min-height:72px !important;
    padding:10px 16px !important;
    justify-content:space-between !important;
  }

  .brand{
    gap:8px !important;
  }

  .brand img{
    width:44px !important;
    height:44px !important;
  }

  .brand strong{
    font-size:18px !important;
  }

  .brand span{
    font-size:13px !important;
  }

  .header button,
  .header .dark{
    width:auto !important;
    min-width:140px !important;
    padding:12px 14px !important;
    font-size:15px !important;
  }

  .admin-layout{
    width:100% !important;
    padding:24px 16px !important;
    margin:0 !important;
  }

  .admin-login,
  .admin-dashboard,
  .card{
    width:100% !important;
    max-width:100% !important;
    margin:18px 0 !important;
    padding:22px !important;
    border-radius:24px !important;
  }

  .admin-login h1,
  .admin-dashboard h1,
  .title h1{
    font-size:34px !important;
    line-height:1.25 !important;
    margin:0 0 14px !important;
    letter-spacing:0 !important;
  }

  .admin-login p,
  .admin-dashboard p,
  .title p{
    font-size:17px !important;
    line-height:1.9 !important;
  }

  .admin-grid{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:18px !important;
    width:100% !important;
  }

  h2{
    font-size:30px !important;
    line-height:1.25 !important;
  }

  label{
    font-size:17px !important;
    margin-top:16px !important;
  }

  input,
  textarea{
    width:100% !important;
    max-width:100% !important;
    font-size:16px !important;
    padding:14px 16px !important;
    border-radius:18px !important;
  }

  textarea{
    min-height:120px !important;
  }

  button{
    width:100% !important;
    font-size:16px !important;
    padding:14px 18px !important;
    border-radius:18px !important;
    margin-top:10px !important;
  }

  .actions{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:10px !important;
  }

  .admin-services{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:14px !important;
  }

  .admin-item{
    width:100% !important;
    padding:16px !important;
    border-radius:18px !important;
  }

  .admin-item h3{
    font-size:20px !important;
  }

  .admin-item p{
    font-size:15px !important;
  }

  .admin-item-actions{
    display:grid !important;
    grid-template-columns:1fr !important;
    gap:8px !important;
  }
}
/* ADMIN DARK BACKGROUND + MOBILE MENU FIX */

html,
body,
.admin-body{
  background:#020705 !important;
  background-color:#020705 !important;
  color:#fff !important;
}

.admin-body::before{
  content:"" !important;
  position:fixed !important;
  inset:0 !important;
  z-index:-3 !important;
  background-image:
    linear-gradient(rgba(0,255,157,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,157,.06) 1px, transparent 1px) !important;
  background-size:42px 42px !important;
}

.admin-body::after{
  content:"" !important;
  position:fixed !important;
  inset:0 !important;
  z-index:-2 !important;
  background:
    radial-gradient(circle at 80% 10%, rgba(0,255,157,.22), transparent 30%),
    radial-gradient(circle at 10% 20%, rgba(214,185,92,.16), transparent 28%),
    linear-gradient(135deg,#020705 0%,#0b1f18 50%,#020705 100%) !important;
}

.admin-header{
  background:rgba(2,7,5,.92) !important;
}

.admin-header-inner{
  position:relative;
}

.menu-btn{
  display:none;
  width:auto !important;
  padding:10px 14px !important;
  font-size:24px !important;
  color:#03100b !important;
}

.admin-menu{
  display:flex;
  align-items:center;
  gap:12px;
}

.admin-menu a{
  color:#fff;
  font-weight:900;
}

@media(max-width:768px){
  .admin-header-inner{
    width:100% !important;
    padding:10px 14px !important;
  }

  .menu-btn{
    display:block !important;
  }

  .admin-menu{
    display:none;
    position:absolute;
    top:76px;
    left:14px;
    right:14px;
    z-index:999;
    padding:14px;
    border-radius:18px;
    background:rgba(2,7,5,.96);
    border:1px solid rgba(0,255,157,.25);
    box-shadow:0 20px 50px rgba(0,0,0,.45);
  }

  .admin-menu.show{
    display:grid !important;
    gap:10px;
  }

  .admin-menu a,
  .admin-menu button{
    width:100% !important;
    text-align:center;
  }

  .admin-layout{
    padding:24px 14px !important;
  }

  .admin-login,
  .admin-dashboard,
  .card{
    background:rgba(5,18,13,.92) !important;
    color:#fff !important;
    border:1px solid rgba(0,255,157,.22) !important;
  }

  .container{
    width:100% !important;
    max-width:100% !important;
  }
}