/* ================= GOOGLE FONT ================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ================= ROOT VARIABLES ================= */

:root{
  --bg:#0a0f1e;
  --card:#111827;
  --text:#e2e8f0;
  --muted:#94a3b8;

  --accent:#00ff88;
  --accent2:#00cfff;

  --border:rgba(255,255,255,0.08);
}

/* ================= RESET ================= */

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:'Inter', sans-serif;
}

html{
  scroll-behavior:smooth;
}

body{
  background:
  radial-gradient(circle at top right,
  rgba(0,255,136,0.08),
  transparent 25%),

  radial-gradient(circle at bottom left,
  rgba(0,207,255,0.06),
  transparent 25%),

  #0a0f1e;

  color:var(--text);
  overflow-x:hidden;
  line-height:1.6;
}

/* ================= MATRIX ================= */

#matrix{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  z-index:-3;
}

/* ================= GRID OVERLAY ================= */

body::before{
  content:"";
  position:fixed;
  inset:0;

  background-image:
  linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);

  background-size:40px 40px;

  z-index:-2;

  animation:gridMove 20s linear infinite;
}

@keyframes gridMove{
  from{
    transform:translateY(0);
  }

  to{
    transform:translateY(40px);
  }
}

/* ================= HEADER ================= */

header{
  width:100%;
  position:fixed;
  top:0;
  left:0;

  padding:18px 8%;

  backdrop-filter:blur(12px);

  background:rgba(10,15,30,0.7);

  border-bottom:1px solid var(--border);

  z-index:1000;
}

/* ================= NAV ================= */

nav{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.logo{
  font-size:24px;
  font-weight:700;
  color:var(--accent);
}

.logo span{
  color:white;
}

nav ul{
  display:flex;
  list-style:none;
  gap:30px;
}

nav ul li a{
  text-decoration:none;
  color:#cbd5e1;
  font-size:15px;
  font-weight:500;
  transition:0.3s;
}

nav ul li a:hover{
  color:var(--accent);
}

/* ================= SECTION ================= */

section{
  padding:120px 8%;
}

.section-title{
  text-align:center;
  font-size:36px;
  margin-bottom:60px;
  position:relative;
}

.section-title::after{
  content:"";
  width:80px;
  height:4px;
  background:linear-gradient(to right, var(--accent), var(--accent2));

  position:absolute;
  left:50%;
  transform:translateX(-50%);
  bottom:-15px;

  border-radius:20px;
}

/* ================= HERO ================= */

.hero{
  min-height:100vh;

  display:flex;
  align-items:center;
  justify-content:space-between;

  gap:50px;
}

.hero-text{
  max-width:650px;
}

.hero-text h3{
  color:var(--muted);
  font-size:22px;
}

.hero-text h1{
  font-size:72px;
  margin-top:10px;
}

.hero-text h2{
  color:var(--accent);
  margin-top:10px;
  font-size:24px;
}

.hero-text p{
  margin-top:25px;
  color:var(--muted);
  max-width:600px;
}

.typing::after{
  content:"|";
  margin-left:5px;
  color:var(--accent);

  animation:blink 0.8s infinite;
}

@keyframes blink{
  50%{
    opacity:0;
  }
}









/* ================= BUTTONS ================= */

.buttons{
  margin-top:35px;
}

.btn{
  display:inline-block;

  padding:12px 26px;

  border-radius:12px;

  text-decoration:none;

  font-weight:600;

  transition:0.3s;

  margin-right:15px;

  background:linear-gradient(to right, var(--accent), var(--accent2));

  color:#081018;
}

.btn:hover{
  transform:translateY(-4px);
}

.secondary{
  background:transparent;
  border:1px solid var(--accent);
  color:var(--accent);
}

/* ================= SOCIAL ================= */

.social-icons{
  margin-top:35px;
}

.social-icons a{
  color:var(--accent);
  font-size:24px;
  margin-right:18px;
  transition:0.3s;
}

.social-icons a:hover{
  transform:translateY(-5px);
}

/* ================= HERO IMAGE ================= */

.hero-image img{
  width:320px;
  border-radius:20px;

  border:2px solid rgba(255,255,255,0.08);

  box-shadow:
  0 0 30px rgba(0,255,136,0.2);

  transition:0.4s;
}

.hero-image img:hover{
  transform:translateY(-10px);
}

/* ================= ABOUT ================= */

.about-content{
  max-width:900px;
  margin:auto;
  text-align:center;
  color:var(--muted);
  font-size:17px;
}

/* ================= JOURNEY ================= */

.timeline{
  max-width:900px;
  margin:auto;
  position:relative;
}

.timeline::before{
  content:"";
  position:absolute;
  left:20px;
  width:3px;
  height:100%;
  background:var(--accent);
}

.timeline-item{
  position:relative;
  padding-left:70px;
  margin-bottom:40px;
}

.timeline-dot{
  width:18px;
  height:18px;

  background:var(--accent);

  border-radius:50%;

  position:absolute;
  left:12px;
  top:8px;

  box-shadow:0 0 15px var(--accent);
}

.timeline-content{
  background:rgba(17,24,39,0.75);

  padding:25px;

  border-radius:16px;

  border:1px solid rgba(255,255,255,0.05);

  backdrop-filter:blur(10px);

  transition:0.3s;
}

.timeline-content:hover{
  transform:translateY(-5px);
  border-color:var(--accent);
}

.timeline-content span{
  color:var(--muted);
  font-size:14px;
}

.timeline-content h3{
  color:var(--accent);
  margin-top:10px;
}

.timeline-content h4{
  margin-top:5px;
}

/* ================= CERTIFICATES ================= */

.certifications{
  overflow:hidden;
}

.cert-timeline{
  position:relative;
  max-width:1200px;
  margin:auto;
}

.cert-timeline::after{
  content:"";
  position:absolute;
  width:4px;
  background:var(--accent);
  top:0;
  bottom:0;
  left:50%;
  margin-left:-2px;
}

.cert-item{
  position:relative;
  width:50%;
  padding:20px 40px;
}

.left{
  left:0;
}

.right{
  left:50%;
}

.cert-item::after{
  content:"";
  position:absolute;

  width:20px;
  height:20px;

  background:var(--accent);

  border-radius:50%;

  top:30px;

  z-index:1;
}

.left::after{
  right:-10px;
}

.right::after{
  left:-10px;
}

.cert-content{
  background:rgba(17,24,39,0.75);

  border:1px solid rgba(255,255,255,0.06);

  padding:18px;

  border-radius:18px;

  backdrop-filter:blur(10px);

  transition:0.3s;
}

.cert-content:hover{
  transform:translateY(-6px);
  border-color:var(--accent);
}

.cert-content img{
  width:100%;
  height:230px;
  object-fit:contain;

  background:white;

  border-radius:12px;

  padding:10px;
}

.cert-content h3{
  text-align:center;
  margin-top:15px;
  font-size:18px;
}

/* ================= SKILLS ================= */

.skills-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
  gap:25px;
}

.skill-card{
  background:rgba(17,24,39,0.75);

  border:1px solid rgba(255,255,255,0.06);

  padding:30px;

  border-radius:18px;

  backdrop-filter:blur(10px);

  transition:0.3s;
}

.skill-card:hover{
  transform:translateY(-8px);
  border-color:var(--accent);
}

.skill-card h3{
  color:var(--accent);
  margin-bottom:10px;
}

/* ================= PROJECTS ================= */

.project-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:25px;
}

.project-card{
  background:rgba(17,24,39,0.75);

  border:1px solid rgba(255,255,255,0.06);

  border-radius:18px;

  padding:25px;

  transition:0.3s;

  backdrop-filter:blur(10px);
}

.project-card:hover{
  transform:translateY(-8px);
  border-color:var(--accent);
}

.project-content h3{
  color:var(--accent);
}

.project-content p{
  margin-top:12px;
  color:var(--muted);
}

.tags{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:18px;
}

.tags span{
  padding:6px 12px;
  border-radius:30px;
  background:rgba(0,255,136,0.1);
  color:var(--accent);
  font-size:12px;
}

.project-buttons{
  margin-top:20px;
  display:flex;
  gap:12px;
}

.btn.small{
  padding:10px 18px;
  font-size:14px;
}

/* ================= CONTACT ================= */

.contact-content{
  text-align:center;
  color:var(--muted);
  font-size:18px;
}

/* ================= FOOTER ================= */

footer{
  text-align:center;
  padding:30px;
  border-top:1px solid rgba(255,255,255,0.06);
  color:var(--muted);
}

/* ================= SCROLL ANIMATION ================= */

.reveal{
  opacity:0;
  transform:translateY(40px);
  transition:0.6s;
}

.reveal.active{
  opacity:1;
  transform:translateY(0);
}

/* ================= RESPONSIVE ================= */

@media(max-width:900px){

  nav{
    flex-direction:column;
    gap:20px;
  }

  nav ul{
    flex-wrap:wrap;
    justify-content:center;
    gap:18px;
  }

  .hero{
    flex-direction:column;
    text-align:center;
    padding-top:140px;
  }

  .hero-text h1{
    font-size:48px;
  }

  .hero-image img{
    width:240px;
  }

  .cert-item{
    width:100%;
    left:0;
    padding-left:70px;
  }

  .cert-timeline::after{
    left:20px;
  }

  .cert-item::after{
    left:10px;
  }
}
/* ================= CERTIFICATE CAROUSEL ================= */

.cert-slider{
  display:flex;
  gap:20px;
  overflow-x:auto;
  padding:20px 10%;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
}

.cert-slider::-webkit-scrollbar{
  display:none;
}

.cert-card{
  min-width:300px;
  background:#111827;
  border:1px solid rgba(0,255,136,0.2);
  border-radius:16px;
  padding:15px;
  scroll-snap-align:center;
  transition:0.3s;
}

.cert-card:hover{
  transform:scale(1.05);
  box-shadow:0 0 25px rgba(0,255,136,0.3);
}

.cert-card img{
  width:100%;
  height:200px;
  object-fit:contain;
  background:white;
  border-radius:10px;
  padding:10px;
}

.cert-card h3{
  text-align:center;
  margin-top:10px;
  color:#e6f1ff;
}
/* ================= CYBERPUNK SKILLS UPGRADE ================= */

.skill-card{
  background: rgba(17, 24, 39, 0.75);
  border: 1px solid rgba(0,255,136,0.15);
  border-radius: 16px;
  padding: 20px;
  transition: 0.3s;
  position: relative;
  overflow: hidden;
}

/* glow hover */
.skill-card:hover{
  transform: translateY(-10px);
  box-shadow: 0 0 30px rgba(0,255,136,0.25);
  border-color: #00ff88;
}

/* scan line effect */
.skill-card::before{
  content:"";
  position:absolute;
  top:0;
  left:-100%;
  width:100%;
  height:100%;
  background: linear-gradient(120deg, transparent, rgba(0,255,136,0.12), transparent);
  transition:0.6s;
}

.skill-card:hover::before{
  left:100%;
}

/* header */
.skill-header{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
}

.skill-header i{
  font-size:24px;
  color:#00ff88;
}

/* tags */
.skill-tags{
  margin-top:10px;
  display:flex;
  flex-wrap:wrap;
  gap:6px;
}

.skill-tags span{
  font-size:11px;
  padding:3px 8px;
  border-radius:20px;
  background: rgba(0,255,136,0.1);
  border:1px solid rgba(0,255,136,0.2);
  color:#00ff88;
}

/* view button */
.skill-more{
  display:inline-block;
  margin-top:10px;
  font-size:12px;
  color:#00ff88;
  text-decoration:none;
  transition:0.3s;
}

.skill-more:hover{
  text-shadow:0 0 10px #00ff88;
}

/* ================= ABOUT DASHBOARD STYLE ================= */

.about-dashboard{
  display:grid;
  grid-template-columns: 1fr 0.6fr 1fr;
  gap:20px;
  margin-top:40px;
  align-items:start;
}

/* panels */
.about-box{
  background: rgba(17, 24, 39, 0.7);
  border: 1px solid rgba(0,255,136,0.15);
  border-radius: 16px;
  padding: 20px;
  transition:0.3s;
}

.about-box:hover{
  box-shadow:0 0 25px rgba(0,255,136,0.2);
  border-color:#00ff88;
}

/* headings */
.about-box h3{
  color:#00ff88;
  margin-bottom:10px;
}

/* center status */
.about-status{
  display:flex;
  flex-direction:column;
  gap:15px;
}

.status-card{
  background: rgba(0,0,0,0.3);
  border:1px solid rgba(0,255,136,0.2);
  padding:15px;
  border-radius:12px;
  text-align:center;
  transition:0.3s;
}

.status-card:hover{
  transform:scale(1.05);
  box-shadow:0 0 15px rgba(0,255,136,0.3);
}

.status-card h4{
  font-size:12px;
  color:#94a3b8;
  margin-bottom:5px;
}

.status-card p{
  color:#00ff88;
  font-weight:bold;
}

/* online glow */
.online{
  color:#00ff88;
  text-shadow:0 0 10px #00ff88;
}

/* list style */
.about-box ul{
  list-style:none;
  padding:0;
}

.about-box ul li{
  padding:6px 0;
  color:#cbd5e1;
  position:relative;
  padding-left:15px;
}

.about-box ul li::before{
  content:">";
  position:absolute;
  left:0;
  color:#00ff88;
}

/* responsive */
@media(max-width:900px){
  .about-dashboard{
    grid-template-columns:1fr;
  }
}

/* ================= ETHICAL HACKER TERMINAL CONTACT ================= */

.terminal-wrapper{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:30px;
  margin-top:40px;
  font-family: monospace;
}

/* LEFT PANEL */
.terminal-info{
  background: #0a0f1e;
  border:1px solid rgba(0,255,136,0.2);
  padding:25px;
  border-radius:10px;
  box-shadow:0 0 20px rgba(0,255,136,0.1);
}

/* terminal lines */
.line{
  color:#00ff88;
  font-size:13px;
  margin-bottom:6px;
}

/* system box */
.system-box{
  margin-top:20px;
  padding:15px;
  border:1px dashed rgba(0,255,136,0.3);
}

.system-box p{
  color:#cbd5e1;
  font-size:13px;
  margin:5px 0;
}

.system-box span{
  color:#00ff88;
}

/* system status */
.status{
  margin-top:15px;
  color:#94a3b8;
}

.status span{
  color:#00ff88;
  text-shadow:0 0 10px #00ff88;
}

/* RIGHT TERMINAL FORM */
.terminal-form{
  background:#0a0f1e;
  border:1px solid rgba(0,255,136,0.2);
  padding:25px;
  border-radius:10px;
  display:flex;
  flex-direction:column;
  gap:15px;
  box-shadow:0 0 20px rgba(0,255,136,0.1);
}

/* command prompt */
.prompt{
  color:#00ff88;
  font-size:14px;
  margin-bottom:10px;
}

/* inputs */
.terminal-form input,
.terminal-form textarea{
  background: transparent;
  border:none;
  border-bottom:1px solid rgba(0,255,136,0.3);
  color:#00ff88;
  padding:10px;
  outline:none;
  font-family: monospace;
}

.terminal-form input:focus,
.terminal-form textarea:focus{
  border-bottom:1px solid #00ff88;
  box-shadow:0 5px 10px rgba(0,255,136,0.1);
}

/* button */
.terminal-form button{
  background: transparent;
  border:1px solid #00ff88;
  color:#00ff88;
  padding:12px;
  font-family: monospace;
  cursor:pointer;
  transition:0.3s;
}

.terminal-form button:hover{
  background:#00ff88;
  color:#0a0f1e;
  box-shadow:0 0 20px #00ff88;
}

/* responsive */
@media(max-width:900px){
  .terminal-wrapper{
    grid-template-columns:1fr;
  }
}

/* ================= JOURNEY HACKER DASHBOARD ================= */

.journey-dashboard{
  position:relative;
  max-width:1100px;
  margin:auto;
  padding:50px 0;
}

/* glowing center line */
.timeline-line{
  position:absolute;
  left:50%;
  top:0;
  bottom:0;
  width:3px;
  background:linear-gradient(#00ff88, #00cfff);
  box-shadow:0 0 15px #00ff88;
  transform:translateX(-50%);
}

/* log cards */
.log-card{
  width:45%;
  background:rgba(17,24,39,0.8);
  border:1px solid rgba(0,255,136,0.3);
  padding:20px;
  border-radius:15px;
  position:relative;
  backdrop-filter:blur(10px);
  transition:0.3s;
}

/* left right positioning */
.log-card.left{
  left:0;
  margin-bottom:50px;
}

.log-card.right{
  left:55%;
  margin-bottom:50px;
}

/* hover glow */
.log-card:hover{
  transform:scale(1.03);
  box-shadow:0 0 25px rgba(0,255,136,0.4);
}

/* header */
.log-header{
  display:flex;
  justify-content:space-between;
  margin-bottom:10px;
  font-family:monospace;
  font-size:12px;
}

.status{
  padding:3px 8px;
  border-radius:10px;
  font-size:11px;
}

.status.secured{
  background:#00ff88;
  color:#000;
}

.status.active{
  background:#00cfff;
  color:#000;
}

/* text styling */
.log-card h3{
  color:#00ff88;
  font-family:monospace;
  margin-bottom:5px;
}

.log-card h4{
  color:#cbd5e1;
  font-size:14px;
  margin-bottom:10px;
}

.log-card p{
  font-size:13px;
  color:#94a3b8;
  line-height:1.5;
}

/* responsive */
@media(max-width:900px){
  .log-card{
    width:90%;
    left:5% !important;
  }

  .timeline-line{
    left:10px;
  }
}

/* =========================================
   CYBER FOOTER UI
========================================= */

.cyber-footer{
    position:relative;
    width:100%;
    background:#040404;
    padding:70px 8% 25px;
    overflow:hidden;
    border-top:1px solid rgba(0,255,170,0.2);
    z-index:5;
}

/* GRID OVERLAY */

.cyber-footer::before{
    content:'';
    position:absolute;
    inset:0;
    background:
    linear-gradient(rgba(0,255,170,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,170,0.05) 1px, transparent 1px);
    background-size:40px 40px;
    pointer-events:none;
    opacity:0.4;
}

/* GLOW EFFECT */

.cyber-footer::after{
    content:'';
    position:absolute;
    width:600px;
    height:600px;
    background:radial-gradient(circle,#00ffcc22,transparent 70%);
    top:-250px;
    right:-200px;
    animation:footerGlow 8s linear infinite;
}

@keyframes footerGlow{
    0%{transform:rotate(0deg);}
    100%{transform:rotate(360deg);}
}

/* GRID */

.footer-container{
    position:relative;
    z-index:2;

    display:grid;
    grid-template-columns:1.3fr 1fr 1fr;
    gap:40px;
}

/* FOOTER BOX */

.footer-box{
    position:relative;
    padding:25px;
    background:rgba(255,255,255,0.03);
    border:1px solid rgba(0,255,170,0.15);
    border-radius:20px;
    backdrop-filter:blur(12px);
    overflow:hidden;
    transition:0.4s ease;
}

/* HOVER */

.footer-box:hover{
    transform:translateY(-8px);
    border-color:#00ffcc;
    box-shadow:
    0 0 15px rgba(0,255,170,0.3),
    0 0 40px rgba(0,255,170,0.1);
}

/* TOP SCAN LINE */

.footer-box::before{
    content:'';
    position:absolute;
    top:0;
    left:-100%;
    width:100%;
    height:2px;
    background:#00ffcc;
    box-shadow:0 0 15px #00ffcc;
    animation:scanline 4s linear infinite;
}

@keyframes scanline{
    0%{left:-100%;}
    100%{left:120%;}
}

/* LOGO */

.footer-logo{
    font-size:2rem;
    color:#fff;
    margin-bottom:15px;
    letter-spacing:2px;
    text-shadow:0 0 10px rgba(255,255,255,0.2);
}

.footer-logo span{
    color:#00ffcc;
    text-shadow:
    0 0 10px #00ffcc,
    0 0 25px #00ffcc;
}

/* DESCRIPTION */

.footer-desc{
    color:#9ca3af;
    line-height:1.8;
    font-size:0.95rem;
}

/* TITLES */

.footer-box h3{
    color:#00ffcc;
    margin-bottom:20px;
    font-size:1.2rem;
    letter-spacing:1px;
    text-shadow:0 0 10px rgba(0,255,170,0.4);
}

/* LIST */

.footer-box ul{
    list-style:none;
    padding:0;
}

.footer-box ul li{
    color:#cbd5e1;
    margin-bottom:14px;
    transition:0.3s;
    display:flex;
    align-items:center;
    gap:10px;
    cursor:pointer;
}

.footer-box ul li:hover{
    color:#00ffcc;
    transform:translateX(8px);
    text-shadow:0 0 10px #00ffcc;
}

/* SOCIAL */

.footer-social{
    display:flex;
    gap:16px;
    margin-top:25px;
}

.footer-social a{
    position:relative;
    width:48px;
    height:48px;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#00ffcc;
    border:1px solid rgba(0,255,170,0.25);
    border-radius:14px;
    font-size:1.2rem;
    text-decoration:none;
    overflow:hidden;
    transition:0.4s ease;
    background:rgba(255,255,255,0.03);
}

/* ICON GLOW */

.footer-social a:hover{
    color:#000;
    background:#00ffcc;
    transform:translateY(-5px) scale(1.05);
    box-shadow:
    0 0 15px #00ffcc,
    0 0 35px rgba(0,255,170,0.5);
}

/* BOTTOM */

.footer-bottom{
    position:relative;
    z-index:2;

    margin-top:45px;
    padding-top:25px;
    border-top:1px solid rgba(255,255,255,0.08);
    text-align:center;
}

.footer-bottom p{
    color:#94a3b8;
    letter-spacing:1px;
    font-size:0.9rem;
}

/* RESPONSIVE */

@media(max-width:992px){

.footer-container{
    grid-template-columns:1fr;
}

}

@media(max-width:768px){

.footer-box{
    text-align:center;
}

.footer-social{
    justify-content:center;
}

.footer-box ul li{
    justify-content:center;
}

}


/* ================= CYBER OPS DASHBOARD (FINAL FIX) ================= */

.cyber-ops {
  background: #0b0f1a;
  padding: 60px;
  color: #ffffff;
  position: relative;
  z-index: 1;
  pointer-events: auto;
}

/* TITLE */
.cyber-ops .section-title {
  text-align: center;
  font-size: 28px;
  letter-spacing: 2px;
  margin-bottom: 40px;
  color: #ffffff;
  text-shadow: none;
}

/* GRID */
.grid-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  position: relative;
  z-index: 2;
}

/* CARD */
.week-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 20px;
  border-radius: 14px;
  transition: 0.3s ease;
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

/* HOVER */
.week-card:hover {
  transform: translateY(-8px);
  border-color: #ffffff;
  box-shadow: 0 0 15px rgba(255,255,255,0.15);
}

/* ICON */
.week-card .icon {
  font-size: 26px;
  margin-bottom: 10px;
}

/* TEXT */
.week-card h4 {
  color: #ffffff;
  font-size: 16px;
  margin-bottom: 8px;
}

.week-card p {
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.5;
  opacity: 1;
}

/* ================= IMPORTANT FIX: MATRIX BACKGROUND ================= */

#matrix {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -10;        /* IMPORTANT: push behind everything */
  pointer-events: none; /* IMPORTANT: allow clicks everywhere */
}

/* ================= SAFETY FIX ================= */

body {
  cursor: default; /* ensures no accidental cursor issues */
}


/* FORCE DEFAULT COLOR (WHITE LIKE OTHERS) */
nav ul li a[href="#events"]{
  color:#cbd5e1 !important;
}

/* HOVER COLOR (GREEN LIKE OTHERS) */
nav ul li a[href="#events"]:hover{
  color:var(--accent) !important;
}

/* CLICKED / ACTIVE STATE (GREEN) */
nav ul li a[href="#events"].active{
  color:var(--accent) !important;
}



/* ================= CYBER GALLERY ================= */

.gallery {
  padding: 100px 8%;
  background: #0b0f1a;
  position: relative;
  overflow: hidden;
}

/* subtle grid background */
.gallery::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.4;
  pointer-events: none;
}

/* title */
.gallery .section-title {
  text-align: center;
  font-size: 32px;
  color: #fff;
  margin-bottom: 60px;
  text-shadow: 0 0 10px #00ff88;
}

/* GRID (cyber tiles feel) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

/* ITEM CARD */
.gallery-item {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(10px);
  transition: 0.4s;
}

/* IMAGE */
.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: 0.5s ease;
}

/* HOVER EFFECT */
.gallery-item:hover {
  transform: translateY(-8px);
  border-color: #00ff88;
  box-shadow: 0 0 25px rgba(0,255,136,0.25);
}

/* zoom image */
.gallery-item:hover img {
  transform: scale(1.08);
}

/* OVERLAY */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  opacity: 0;
  transition: 0.4s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 15px;
}

/* show overlay on hover */
.gallery-item:hover .overlay {
  opacity: 1;
}

/* TITLE */
.overlay h3 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 6px;
  transform: translateY(10px);
  transition: 0.4s;
}

.gallery-item:hover .overlay h3 {
  transform: translateY(0);
}

/* TAG BADGE */
.tag {
  display: inline-block;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 20px;
  background: rgba(0,255,136,0.15);
  color: #00ff88;
  border: 1px solid rgba(0,255,136,0.3);
  width: fit-content;
  letter-spacing: 1px;
}


/* ===============================
   CTF WRITEUPS GRID UPGRADE
================================ */

.writeups-grid{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:28px;
    margin-top:50px;
}

/* HACKER FILE CARD */

.writeup-card{
    position:relative;
    background:
    linear-gradient(
        145deg,
        rgba(10,15,25,0.95),
        rgba(5,8,15,0.92)
    );

    border:1px solid rgba(0,255,170,0.15);
    border-radius:18px;

    padding:28px 22px;

    overflow:hidden;

    transition:0.4s ease;

    backdrop-filter:blur(14px);

    box-shadow:
    0 0 15px rgba(0,255,170,0.04);
}

/* CYBER GLOW */

.writeup-card::before{
    content:'';
    position:absolute;
    top:0;
    left:-100%;
    width:100%;
    height:2px;
    background:#00ffcc;
    box-shadow:0 0 15px #00ffcc;
    animation:fileScan 4s linear infinite;
}

@keyframes fileScan{
    0%{left:-100%;}
    100%{left:120%;}
}

/* HOVER EFFECT */

.writeup-card:hover{
    transform:
    translateY(-10px)
    scale(1.02);

    border-color:#00ffcc;

    box-shadow:
    0 0 18px rgba(0,255,170,0.2),
    0 0 40px rgba(0,255,170,0.08);
}

/* FILE ICON */

.writeup-icon{
    width:70px;
    height:70px;

    display:flex;
    align-items:center;
    justify-content:center;

    margin-bottom:20px;

    border-radius:16px;

    background:
    linear-gradient(
        145deg,
        rgba(0,255,170,0.12),
        rgba(0,255,255,0.06)
    );

    border:1px solid rgba(0,255,170,0.15);

    font-size:2rem;

    color:#00ffcc;

    text-shadow:0 0 15px #00ffcc;
}

/* TITLE */

.writeup-card h2{
    color:#fff;
    font-size:1.15rem;
    margin-bottom:14px;
    line-height:1.4;
}

/* DESCRIPTION */

.writeup-card p{
    color:#94a3b8;
    font-size:0.92rem;
    line-height:1.7;
    margin-bottom:22px;
}

/* DOWNLOAD BUTTON */

.writeup-card a{
    display:inline-flex;
    align-items:center;
    gap:10px;

    padding:12px 18px;

    border-radius:12px;

    border:1px solid rgba(0,255,170,0.25);

    text-decoration:none;

    color:#00ffcc;

    background:rgba(255,255,255,0.03);

    transition:0.35s ease;

    font-size:0.9rem;
}

.writeup-card a:hover{
    background:#00ffcc;
    color:#000;

    transform:translateY(-3px);

    box-shadow:
    0 0 15px #00ffcc,
    0 0 35px rgba(0,255,170,0.4);
}

/* RESPONSIVE */

@media(max-width:1200px){

.writeups-grid{
    grid-template-columns:repeat(2,1fr);
}

}

@media(max-width:768px){

.writeups-grid{
    grid-template-columns:1fr;
}

}




/* =========================================
   FUTURISTIC CYBER FOOTER
========================================= */

.cyber-footer{
    position: relative;
    background: #050505;
    padding: 90px 8% 30px;
    overflow: hidden;
    border-top: 1px solid rgba(0,255,170,0.15);
}

/* animated grid */

.footer-grid{
    position: absolute;
    inset: 0;
    background-image:
    linear-gradient(rgba(0,255,170,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,255,170,0.05) 1px, transparent 1px);

    background-size: 45px 45px;

    mask-image: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);

    animation: gridMove 10s linear infinite;
}

@keyframes gridMove{
    from{
        transform: translateY(0);
    }

    to{
        transform: translateY(45px);
    }
}

/* glow */

.footer-glow{
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle,
    rgba(0,255,170,0.12),
    transparent 70%);

    top: -250px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
}

/* layout */

.footer-container{
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
    gap: 50px;
}

/* box */

.footer-box{
    position: relative;
    padding: 25px;

    background: rgba(255,255,255,0.03);

    border: 1px solid rgba(0,255,170,0.12);

    backdrop-filter: blur(12px);

    border-radius: 18px;

    transition: 0.4s ease;
}

.footer-box:hover{
    transform: translateY(-8px);

    border-color: #00ffaa;

    box-shadow:
    0 0 25px rgba(0,255,170,0.15);
}

/* logo */

.footer-logo{
    font-size: 2rem;
    margin-bottom: 18px;
    color: white;
}

.footer-logo span{
    color: #00ffaa;
    text-shadow: 0 0 12px #00ffaa;
}

/* text */

.footer-desc{
    color: #9aa0a6;
    line-height: 1.8;
    font-size: 0.95rem;
}

/* headings */

.footer-box h3{
    color: #00ffaa;
    margin-bottom: 20px;
    font-size: 1.2rem;

    text-shadow: 0 0 12px rgba(0,255,170,0.5);
}

/* list */

.footer-box ul{
    list-style: none;
    padding: 0;
}

.footer-box ul li{
    margin-bottom: 14px;
    color: #cfcfcf;

    display: flex;
    align-items: center;
    gap: 12px;

    transition: 0.3s;
}

.footer-box ul li:hover{
    color: #00ffaa;
    transform: translateX(6px);
}

/* icons */

.footer-box ul li i{
    color: #00ffaa;
}

/* socials */

.footer-social{
    display: flex;
    gap: 16px;
    margin-top: 25px;
}

.footer-social a{
    width: 48px;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(255,255,255,0.05);

    border: 1px solid rgba(0,255,170,0.15);

    color: #00ffaa;
    font-size: 1.1rem;

    transition: 0.4s ease;
}

.footer-social a:hover{
    transform: translateY(-6px) scale(1.1);

    background: #00ffaa;
    color: black;

    box-shadow:
    0 0 20px #00ffaa,
    0 0 40px rgba(0,255,170,0.5);
}

/* bottom */

.footer-bottom{
    position: relative;
    z-index: 2;

    margin-top: 60px;
    text-align: center;
}

.cyber-line{
    width: 100%;
    height: 1px;

    background:
    linear-gradient(to right,
    transparent,
    #00ffaa,
    transparent);

    margin-bottom: 25px;

    animation: pulseLine 2s infinite;
}

@keyframes pulseLine{
    0%{
        opacity: 0.4;
    }

    50%{
        opacity: 1;
    }

    100%{
        opacity: 0.4;
    }
}

.footer-bottom p{
    color: #7d848c;
    letter-spacing: 2px;
    font-size: 0.85rem;
}

/* mobile */

@media(max-width:768px){

    .footer-container{
        grid-template-columns: 1fr;
    }

    .cyber-footer{
        padding: 70px 6% 30px;
    }

}












