/*
Theme Name: Hackistaan
Theme URI: https://hackistaan.com
Author: Hackistaan
Author URI: https://hackistaan.com
Description: A futuristic, dark cybersecurity theme for Hackistaan — built for selling ethical hacking courses, showcasing the YouTube channel, and displaying student reviews. Fully editable from the WordPress dashboard: logo, menus, hero text, courses, and reviews.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hackistaan
*/

:root{
  --bg-0:#05070B;
  --bg-1:#0A0E16;
  --bg-2:#10151F;
  --panel:rgba(18,24,36,0.55);
  --panel-border:rgba(90,220,255,0.14);
  --cyan:#37E7FF;
  --cyan-dim:#1B7A8C;
  --violet:#9B5CFF;
  --amber:#FF8A3D;
  --text-0:#EAF3F7;
  --text-1:#9FB3C2;
  --text-2:#61798A;
  --line:rgba(140,190,210,0.10);
  --radius:14px;
}
*{box-sizing:border-box; margin:0; padding:0;}
html{scroll-behavior:smooth;}
body{
  background:var(--bg-0);
  color:var(--text-0);
  font-family:'Inter',sans-serif;
  overflow-x:hidden;
  position:relative;
}
body::before{
  content:"";
  position:fixed; inset:0;
  background-image:
    linear-gradient(rgba(55,231,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(55,231,255,0.035) 1px, transparent 1px);
  background-size:42px 42px;
  pointer-events:none;
  z-index:0;
  mask-image:radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
}
.noise{
  position:fixed; inset:0; z-index:1; pointer-events:none; opacity:0.035;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
h1,h2,h3,.mono-label,nav a,.btn,.eyebrow{font-family:'Rajdhani',sans-serif; letter-spacing:0.02em;}
.mono{font-family:'JetBrains Mono',monospace;}
a{color:inherit; text-decoration:none;}
img{max-width:100%; display:block;}
.wrap{max-width:1180px; margin:0 auto; padding:0 32px; position:relative; z-index:2;}
.skip-link{position:absolute; left:-9999px; top:0; background:var(--cyan); color:#031015; padding:10px 16px; z-index:100;}
.skip-link:focus{left:16px; top:16px;}

/* ---------- NAV ---------- */
header{
  position:fixed; top:0; left:0; right:0; z-index:50;
  background:linear-gradient(to bottom, rgba(5,7,11,0.9), rgba(5,7,11,0));
  backdrop-filter:blur(6px);
  border-bottom:1px solid transparent;
  transition:background .25s, border-color .25s;
}
header.scrolled{border-bottom:1px solid var(--line); background:rgba(6,9,14,0.85);}
nav{display:flex; align-items:center; justify-content:space-between; padding:20px 32px; max-width:1180px; margin:0 auto; gap:20px;}
.logo{display:flex; align-items:center; gap:10px; font-weight:700; font-size:22px; letter-spacing:0.03em;}
.logo img{max-height:44px; width:auto;}
.logo .dot{width:9px;height:9px;border-radius:50%;background:var(--cyan); box-shadow:0 0 12px var(--cyan); flex-shrink:0;}
.nav-links{display:flex; gap:36px; font-size:15px; font-weight:600; color:var(--text-1); list-style:none;}
.nav-links a{position:relative; transition:color .2s;}
.nav-links a:hover{color:var(--cyan);}
.nav-cta{display:flex; gap:14px; align-items:center;}
.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding:11px 22px; border-radius:8px; font-weight:600; font-size:15px;
  cursor:pointer; border:1px solid transparent; transition:all .2s;
}
.btn-primary{background:var(--cyan); color:#031015; box-shadow:0 0 24px rgba(55,231,255,0.35);}
.btn-primary:hover{background:#5FF0FF; transform:translateY(-1px);}
.btn-ghost{border-color:var(--panel-border); color:var(--text-0);}
.btn-ghost:hover{border-color:var(--cyan); color:var(--cyan);}

/* ---------- HERO ---------- */
.hero{position:relative; min-height:100vh; display:flex; align-items:center; padding-top:90px;}
#hero-canvas{position:absolute; top:0; right:0; width:56%; height:100%; z-index:1; opacity:0.95;}
.hero-inner{position:relative; z-index:2; max-width:640px;}
.eyebrow{
  display:inline-flex; align-items:center; gap:10px;
  font-size:13px; font-weight:600; color:var(--cyan); letter-spacing:0.14em; text-transform:uppercase;
  padding:7px 14px; border:1px solid var(--panel-border); border-radius:100px;
  background:rgba(55,231,255,0.05); margin-bottom:26px;
}
.eyebrow::before{content:"●"; font-size:8px; color:var(--amber); animation:blink 1.6s infinite;}
@keyframes blink{50%{opacity:0.2;}}
h1.hero-title{font-size:clamp(38px,5.2vw,64px); font-weight:700; line-height:1.05; color:var(--text-0); margin-bottom:22px;}
h1.hero-title .grad{
  background:linear-gradient(100deg, var(--cyan), var(--violet) 70%);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.hero-sub{font-size:17px; line-height:1.7; color:var(--text-1); margin-bottom:34px; max-width:520px;}
.hero-actions{display:flex; gap:16px; margin-bottom:44px; flex-wrap:wrap;}
.hero-stats{display:flex; gap:38px; flex-wrap:wrap;}
.stat b{display:block; font-family:'Rajdhani',sans-serif; font-size:28px; font-weight:700; color:var(--text-0);}
.stat span{font-size:13px; color:var(--text-2); text-transform:uppercase; letter-spacing:0.08em;}

/* ---------- SECTION SHELL ---------- */
section{position:relative; z-index:2; padding:110px 0;}
.section-head{max-width:600px; margin-bottom:60px;}
.tag{
  font-size:12px; font-weight:600; color:var(--violet); letter-spacing:0.16em; text-transform:uppercase;
  display:flex; align-items:center; gap:10px; margin-bottom:14px;
}
.tag::before{content:""; width:24px; height:1px; background:var(--violet);}
.section-head h2{font-size:clamp(28px,3.4vw,40px); font-weight:700; color:var(--text-0); line-height:1.15;}
.section-head p{color:var(--text-1); font-size:16px; margin-top:14px; line-height:1.7;}

/* ---------- ABOUT / INTRO ---------- */
.about{background:linear-gradient(180deg, transparent, rgba(155,92,255,0.035), transparent); border-top:1px solid var(--line); border-bottom:1px solid var(--line);}
.about-grid{display:grid; grid-template-columns:1.1fr 0.9fr; gap:60px; align-items:center;}
.about-copy h2{font-size:32px; font-weight:700; margin-bottom:20px;}
.about-copy p{color:var(--text-1); font-size:16px; line-height:1.8; margin-bottom:18px;}
.about-copy strong{color:var(--cyan); font-weight:600;}
.yt-card{background:var(--panel); border:1px solid var(--panel-border); border-radius:var(--radius); padding:28px; backdrop-filter:blur(10px);}
.yt-top{display:flex; align-items:center; gap:14px; margin-bottom:18px;}
.yt-avatar{width:52px; height:52px; border-radius:50%; background:linear-gradient(135deg, var(--amber), var(--violet)); display:flex; align-items:center; justify-content:center; font-weight:700; font-family:'Rajdhani'; font-size:20px; color:#0A0E16; overflow:hidden;}
.yt-avatar img{width:100%; height:100%; object-fit:cover;}
.yt-name{font-weight:700; font-size:16px;}
.yt-sub{font-size:13px; color:var(--text-2);}
.yt-embed-placeholder{
  width:100%; aspect-ratio:16/9; border-radius:10px; border:1px solid var(--panel-border);
  background:linear-gradient(rgba(3,6,10,0.65), rgba(3,6,10,0.65)), repeating-linear-gradient(45deg, rgba(55,231,255,0.05) 0 2px, transparent 2px 14px);
  display:flex; align-items:center; justify-content:center; position:relative; margin-bottom:16px; overflow:hidden;
}
.yt-embed-placeholder iframe{width:100%; height:100%; border:0; position:absolute; inset:0;}
.play-btn{width:58px; height:58px; border-radius:50%; background:rgba(55,231,255,0.15); border:1.5px solid var(--cyan); display:flex; align-items:center; justify-content:center; cursor:pointer; box-shadow:0 0 30px rgba(55,231,255,0.25);}
.play-btn::after{content:""; width:0; height:0; border-top:9px solid transparent; border-bottom:9px solid transparent; border-left:14px solid var(--cyan); margin-left:4px;}
.yt-stats{display:flex; gap:22px; font-size:13px; color:var(--text-1); flex-wrap:wrap;}
.yt-stats b{color:var(--text-0); font-family:'Rajdhani'; font-size:16px;}

/* ---------- COURSES ---------- */
.courses-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:24px;}
.course-card{background:var(--panel); border:1px solid var(--panel-border); border-radius:var(--radius); padding:26px; position:relative; overflow:hidden; transition:transform .25s, border-color .25s;}
.course-card:hover{transform:translateY(-6px); border-color:var(--cyan);}
.course-card::before{content:""; position:absolute; top:0; left:0; right:0; height:2px; background:linear-gradient(90deg, var(--cyan), var(--violet)); transform:scaleX(0); transform-origin:left; transition:transform .3s;}
.course-card:hover::before{transform:scaleX(1);}
.course-thumb{border-radius:8px; overflow:hidden; margin-bottom:16px; aspect-ratio:16/9; background:var(--bg-2);}
.course-thumb img{width:100%; height:100%; object-fit:cover;}
.course-level{display:inline-block; font-size:11px; font-weight:600; letter-spacing:0.08em; text-transform:uppercase; padding:4px 10px; border-radius:5px; margin-bottom:16px;}
.lvl-beginner{background:rgba(55,231,255,0.12); color:var(--cyan);}
.lvl-intermediate{background:rgba(255,138,61,0.12); color:var(--amber);}
.lvl-advanced{background:rgba(155,92,255,0.15); color:var(--violet);}
.course-card h3{font-size:20px; font-weight:700; margin-bottom:10px;}
.course-card p{font-size:14px; color:var(--text-1); line-height:1.65; margin-bottom:20px; min-height:66px;}
.course-meta{display:flex; justify-content:space-between; align-items:center; border-top:1px solid var(--line); padding-top:16px;}
.course-price{font-family:'Rajdhani'; font-weight:700; font-size:22px; color:var(--text-0);}
.course-price span{font-size:13px; color:var(--text-2); font-family:'Inter'; font-weight:400; text-decoration:line-through; margin-left:6px;}
.course-link{font-size:13px; font-weight:600; color:var(--cyan);}
.empty-state{color:var(--text-2); font-size:15px; padding:20px; border:1px dashed var(--panel-border); border-radius:var(--radius);}

/* ---------- REVIEWS ---------- */
.reviews{background:var(--bg-1); border-top:1px solid var(--line); border-bottom:1px solid var(--line);}
.reviews-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:22px;}
.review-card{background:var(--panel); border:1px solid var(--panel-border); border-radius:var(--radius); padding:26px;}
.stars{color:var(--amber); font-size:14px; margin-bottom:14px; letter-spacing:2px;}
.review-card p{font-size:14.5px; color:var(--text-1); line-height:1.7; margin-bottom:20px;}
.reviewer{display:flex; align-items:center; gap:12px;}
.reviewer-avatar{width:38px; height:38px; border-radius:50%; background:var(--bg-2); border:1px solid var(--panel-border); display:flex; align-items:center; justify-content:center; font-family:'Rajdhani'; font-weight:700; font-size:14px; color:var(--cyan); overflow:hidden;}
.reviewer-avatar img{width:100%; height:100%; object-fit:cover;}
.reviewer b{font-size:14px; display:block;}
.reviewer span{font-size:12px; color:var(--text-2);}

/* ---------- CTA ---------- */
.cta{text-align:center; padding:130px 0;}
.cta h2{font-size:clamp(30px,4vw,46px); font-weight:700; margin-bottom:18px;}
.cta p{color:var(--text-1); font-size:16px; margin-bottom:36px;}

/* ---------- FOOTER ---------- */
footer{border-top:1px solid var(--line); padding:44px 0; position:relative; z-index:2;}
.footer-inner{display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:16px;}
.footer-inner p{font-size:13px; color:var(--text-2);}
.footer-links{display:flex; gap:26px; font-size:13px; color:var(--text-1); list-style:none;}
.footer-links a:hover{color:var(--cyan);}
.footer-widget{font-size:13px; color:var(--text-1);}
.footer-widget-title{font-size:14px; margin-bottom:10px; color:var(--text-0);}

/* ---------- GENERIC PAGE / SINGLE CONTENT ---------- */
.page-content, .single-content{padding-top:150px; padding-bottom:100px; max-width:800px;}
.page-content h1, .single-content h1{font-size:clamp(28px,4vw,42px); margin-bottom:24px; font-weight:700;}
.page-content p, .single-content p{color:var(--text-1); line-height:1.8; margin-bottom:18px; font-size:16px;}

@media(max-width:900px){
  .about-grid{grid-template-columns:1fr;}
  .courses-grid{grid-template-columns:1fr 1fr;}
  .reviews-grid{grid-template-columns:1fr;}
  #hero-canvas{width:100%; opacity:0.4;}
  .nav-links{display:none;}
}
@media(max-width:600px){
  .courses-grid{grid-template-columns:1fr;}
  .hero-stats{gap:24px;}
}
@media (prefers-reduced-motion: reduce){
  *{animation:none !important; transition:none !important;}
}
