/* ===== SKIP LINK ===== */
.skip-link {
  position: absolute; top: -100px; left: 16px;
  background: var(--coffee); color: var(--white);
  padding: 10px 20px; border-radius: var(--radius-sm);
  font-size: 0.85rem; font-weight: 600; z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #FAFAF7;
  --white: #ffffff;
  --cream: #F3EDE3;
  --coffee: #8B5E3C;
  --coffee-light: #C8A27A;
  --coffee-dark: #6B4226;
  --espresso: #2C1A0E;
  --text: #1C1C1C;
  --muted: #6B6B6B;
  --border: #E8E2D9;
  --shadow: rgba(44,26,14,0.07);
  --shadow-md: rgba(44,26,14,0.13);
  --radius: 14px;
  --radius-sm: 8px;
  --sans: 'Inter', sans-serif;
  --serif: 'Playfair Display', Georgia, serif;
  --mono: 'JetBrains Mono', monospace;
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; }
body { font-family: var(--sans); background: var(--bg); color: var(--text); line-height: 1.7; font-size: 16px; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ===== TYPOGRAPHY ===== */
.serif { font-family: var(--serif); }
h1,h2,h3 { line-height: 1.2; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(250,250,247,0.93);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: 0 2px 24px var(--shadow-md); }
.nav-container {
  max-width: 1120px; margin: 0 auto; padding: 0 28px;
  height: 68px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; }
.logo-img { height: 38px; width: auto; object-fit: contain; border-radius: 6px; }
.nav-links { display: flex; gap: 36px; }
.nav-links a {
  font-size: 0.88rem; font-weight: 500; color: var(--muted);
  transition: color var(--transition); position: relative;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 2px; background: var(--coffee); transition: width var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--coffee-dark); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta {
  background: var(--coffee) !important; color: var(--white) !important;
  padding: 8px 20px; border-radius: 100px; font-weight: 600 !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--coffee-dark) !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--espresso); border-radius: 2px; transition: var(--transition); }

/* ===== HERO ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 100px 28px 60px; max-width: 1120px; margin: 0 auto;
}
.hero-inner { display: flex; gap: 64px; align-items: center; width: 100%; }
.hero-left { flex: 1; }
.hero-right { flex: 0 0 400px; display: flex; flex-direction: column; gap: 20px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.82rem; font-weight: 600; color: var(--coffee);
  letter-spacing: 0.3px; margin-bottom: 20px;
}
.dot-pulse {
  width: 8px; height: 8px; border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34,197,94,0.4);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(34,197,94,0.4)} 70%{box-shadow:0 0 0 8px rgba(34,197,94,0)} 100%{box-shadow:0 0 0 0 rgba(34,197,94,0)} }
.hero-title {
  font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 700; color: var(--espresso); letter-spacing: -1px; margin-bottom: 20px;
}
.hero-title .accent { color: var(--coffee); }
.hero-sub { font-size: 1rem; color: var(--muted); max-width: 500px; margin-bottom: 32px; line-height: 1.8; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-socials { display: flex; gap: 14px; }
.hero-socials a {
  width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 1rem; transition: all var(--transition);
}
.hero-socials a:hover { border-color: var(--coffee); color: var(--coffee); background: var(--cream); }

/* ===== TERMINAL ===== */
.terminal { background: var(--espresso); border-radius: var(--radius); overflow: hidden; box-shadow: 0 24px 64px rgba(44,26,14,0.22); font-family: var(--mono); }
.terminal-bar { background: #1a0f08; padding: 12px 16px; display: flex; align-items: center; gap: 8px; }
.tdot { width: 12px; height: 12px; border-radius: 50%; }
.tdot.red { background: #ff5f57; } .tdot.yellow { background: #febc2e; } .tdot.green { background: #28c840; }
.terminal-title { margin-left: auto; font-size: 0.72rem; color: rgba(255,255,255,0.35); }
.terminal-body { padding: 20px 24px; font-size: 0.8rem; line-height: 2.1; }
.terminal-body p { color: rgba(255,255,255,0.8); }
.prompt { color: var(--coffee-light); margin-right: 8px; }
.out { color: #a8d8a8; padding-left: 16px; }
.cursor { display: inline-block; animation: blink 1s step-end infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
.hero-stats { display: flex; gap: 0; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.hstat { flex: 1; text-align: center; padding: 18px 12px; border-right: 1px solid var(--border); }
.hstat:last-child { border-right: none; }
.hstat-n { display: block; font-size: 1.6rem; font-weight: 700; color: var(--coffee); font-family: var(--serif); }
.hstat-l { font-size: 0.75rem; color: var(--muted); margin-top: 2px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 600; cursor: pointer;
  transition: all var(--transition); border: 2px solid transparent;
}
.btn-primary { background: var(--coffee); color: var(--white); border-color: var(--coffee); }
.btn-primary:hover { background: var(--coffee-dark); border-color: var(--coffee-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(139,94,60,0.28); }
.btn-outline { background: transparent; color: var(--coffee-dark); border-color: var(--coffee-light); }
.btn-outline:hover { background: var(--cream); transform: translateY(-2px); }
.btn-full { width: 100%; justify-content: center; }

/* ===== SECTIONS ===== */
.section { padding: 96px 28px; }
.section-alt { background: var(--cream); }
.container { max-width: 1120px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-tag { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--coffee); margin-bottom: 12px; }
.section-header h2 { font-size: clamp(1.9rem, 3vw, 2.8rem); font-weight: 700; color: var(--espresso); letter-spacing: -0.5px; }
.section-desc { font-size: 1rem; color: var(--muted); max-width: 560px; margin: 14px auto 0; line-height: 1.8; }
.section-cta { text-align: center; margin-top: 48px; }

/* ===== SERVICES ===== */
.services-section { background: var(--white); }
.services-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.service-card {
  background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 22px; transition: all var(--transition);
}
.service-card:hover { border-color: var(--coffee-light); box-shadow: 0 8px 32px var(--shadow-md); transform: translateY(-4px); }
.service-icon { width: 46px; height: 46px; background: var(--cream); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--coffee); margin-bottom: 16px; }
.service-card h3 { font-size: 0.95rem; font-weight: 700; color: var(--espresso); margin-bottom: 8px; }
.service-card p { font-size: 0.86rem; color: var(--muted); }

/* ===== PROJECTS GRID ===== */
.projects-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.project-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; transition: all var(--transition); display: flex; flex-direction: column;
}
.project-card:hover { border-color: var(--coffee-light); box-shadow: 0 10px 40px var(--shadow-md); transform: translateY(-4px); }
.project-card.featured { border-color: var(--coffee-light); background: linear-gradient(135deg, var(--white) 0%, #fdf6ee 100%); }
.project-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.project-icon { width: 44px; height: 44px; background: var(--cream); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--coffee); }
.project-status { font-size: 0.72rem; font-weight: 700; padding: 4px 10px; border-radius: 100px; background: #f0f0f0; color: var(--muted); }
.project-status.active { background: #dcfce7; color: #16a34a; }
.project-card h3 { font-size: 1rem; font-weight: 700; color: var(--espresso); margin-bottom: 10px; }
.project-card p { font-size: 0.87rem; color: var(--muted); flex: 1; margin-bottom: 16px; }
.project-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.project-tags span { font-size: 0.72rem; font-weight: 600; background: var(--cream); color: var(--coffee-dark); padding: 3px 10px; border-radius: 100px; border: 1px solid var(--border); }
.project-link { font-size: 0.85rem; font-weight: 600; color: var(--coffee); display: flex; align-items: center; gap: 6px; margin-top: auto; transition: gap var(--transition); }
.project-link:hover { gap: 10px; }

/* ===== SKILLS ===== */
.skills-wrapper { display: grid; grid-template-columns: repeat(2,1fr); gap: 28px; }
.skill-group { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.skill-group h4 { font-size: 0.9rem; font-weight: 700; color: var(--espresso); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.skill-group h4 i { color: var(--coffee); }
.skill-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tags span { font-size: 0.8rem; font-weight: 500; background: var(--cream); color: var(--coffee-dark); padding: 5px 14px; border-radius: 100px; border: 1px solid var(--border); transition: all var(--transition); }
.skill-tags span:hover { background: var(--coffee); color: var(--white); border-color: var(--coffee); }

/* ===== CERTIFICATIONS ===== */
.certs-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.cert-card { display: flex; align-items: flex-start; gap: 16px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; transition: all var(--transition); }
.cert-card:hover { border-color: var(--coffee-light); box-shadow: 0 8px 32px var(--shadow-md); }
.cert-card.learning { opacity: 0.8; }
.cert-logo { width: 48px; height: 48px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.cert-logo.google { background: #fef3e2; color: #f59e0b; }
.cert-logo.cisco { background: #e8f4fd; color: #1d6fa4; }
.cert-logo.nde { background: #fde8e8; color: #c0392b; }
.cert-logo.arena { background: #e8fdf0; color: #27ae60; }
.cert-logo.ms { background: #e8f0fe; color: #1a73e8; }
.cert-info { flex: 1; }
.cert-info h3 { font-size: 0.9rem; font-weight: 700; color: var(--espresso); margin-bottom: 4px; }
.cert-info p { font-size: 0.8rem; color: var(--muted); margin-bottom: 10px; }
.cert-footer { display: flex; }
.cert-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 0.72rem; font-weight: 700; padding: 3px 10px; border-radius: 100px; }
.cert-badge.verified { background: #dcfce7; color: #16a34a; }
.cert-badge.learning { background: #fef9c3; color: #ca8a04; }
.cert-badge.planned { background: #f0f0f0; color: var(--muted); }

/* ===== ABOUT SPLIT ===== */
.about-split { display: grid; grid-template-columns: 1fr 380px; gap: 56px; align-items: start; }
.about-left .section-tag { display: inline-block; margin-bottom: 12px; }
.about-left h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--espresso); margin-bottom: 20px; }
.about-left p { color: var(--muted); margin-bottom: 14px; font-size: 0.97rem; }
.about-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: 0 4px 20px var(--shadow); margin-bottom: 16px; }
.about-card h4 { font-size: 0.9rem; font-weight: 700; color: var(--espresso); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.info-list li { display: flex; align-items: center; gap: 12px; font-size: 0.87rem; color: var(--muted); padding: 9px 0; border-bottom: 1px solid var(--border); }
.info-list li:last-child { border-bottom: none; }
.info-list i { color: var(--coffee); width: 16px; text-align: center; flex-shrink: 0; }
.about-stats-row { display: flex; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.astat { flex: 1; text-align: center; padding: 18px 10px; border-right: 1px solid var(--border); }
.astat:last-child { border-right: none; }
.astat-n { display: block; font-size: 1.6rem; font-weight: 700; color: var(--coffee); font-family: var(--serif); }
.astat-l { font-size: 0.72rem; color: var(--muted); }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-channels { display: flex; flex-direction: column; gap: 12px; }
.channel-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 20px; transition: all var(--transition); cursor: pointer;
}
.channel-card:hover { border-color: var(--coffee-light); box-shadow: 0 4px 20px var(--shadow-md); transform: translateX(4px); }
.channel-icon { width: 44px; height: 44px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.channel-icon.email { background: #fde8e8; color: #c0392b; }
.channel-icon.linkedin { background: #e8f4fd; color: #0077b5; }
.channel-icon.github { background: #f0f0f0; color: #1c1c1c; }
.channel-icon.medium { background: #f0f0f0; color: #1c1c1c; }
.channel-icon.phone { background: #e8fdf0; color: #27ae60; }
.channel-label { font-size: 0.75rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
.channel-val { font-size: 0.88rem; color: var(--text); font-weight: 500; }
.channel-arrow { margin-left: auto; color: var(--muted); font-size: 0.8rem; transition: transform var(--transition); }
.channel-card:hover .channel-arrow { transform: translateX(4px); color: var(--coffee); }

/* ===== CONTACT FORM ===== */
.contact-form { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; box-shadow: 0 4px 24px var(--shadow); }
.form-title { font-family: var(--serif); font-size: 1.4rem; color: var(--espresso); margin-bottom: 6px; }
.form-sub { font-size: 0.85rem; color: var(--muted); margin-bottom: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--espresso); margin-bottom: 7px; }
.req { color: var(--coffee); }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 12px 16px;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--sans); font-size: 0.9rem; color: var(--text);
  background: var(--bg); transition: border-color var(--transition), box-shadow var(--transition);
  outline: none; resize: vertical; appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--coffee); background: var(--white);
  box-shadow: 0 0 0 3px rgba(139,94,60,0.1);
}
.form-group select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B6B6B' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.form-note { font-size: 0.78rem; color: var(--muted); text-align: center; margin-top: 14px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.form-note i { color: var(--coffee); }

/* ===== PAGE HERO ===== */
.page-hero {
  background: var(--espresso); color: var(--white);
  padding: 120px 28px 72px; text-align: center;
}
.page-hero .section-tag { color: var(--coffee-light); }
.page-hero h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); color: var(--white); margin: 12px 0 16px; }
.page-hero p { font-size: 1rem; color: rgba(255,255,255,0.65); max-width: 560px; margin: 0 auto 28px; }

/* ===== PORTFOLIO PAGE ===== */
.portfolio-layout { display: flex; flex-direction: column; gap: 48px; }
.port-block {}
.port-title { font-size: 1.5rem; color: var(--espresso); margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.port-title i { color: var(--coffee); font-size: 1.1rem; }
.port-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.port-card p { color: var(--muted); font-size: 0.95rem; }
.skills-matrix { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.matrix-row { display: grid; grid-template-columns: 200px 1fr 160px; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--border); align-items: center; font-size: 0.88rem; }
.matrix-row:last-child { border-bottom: none; }
.matrix-row.header { background: var(--cream); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.level-bar { background: var(--border); border-radius: 100px; height: 6px; overflow: hidden; }
.level-fill { height: 100%; background: linear-gradient(90deg, var(--coffee-light), var(--coffee)); border-radius: 100px; }
.port-certs { display: flex; flex-direction: column; gap: 12px; }
.port-cert { display: flex; align-items: center; gap: 16px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 20px; }
.port-cert.learning { opacity: 0.7; }
.port-cert i { font-size: 1.3rem; color: var(--coffee); width: 28px; text-align: center; flex-shrink: 0; }
.port-cert strong { font-size: 0.92rem; color: var(--espresso); }
.port-cert p { font-size: 0.82rem; color: var(--muted); margin-top: 2px; }
.port-timeline { display: flex; flex-direction: column; gap: 0; position: relative; }
.port-timeline::before { content: ''; position: absolute; left: 18px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.pt-item { display: flex; gap: 28px; margin-bottom: 32px; }
.pt-dot { width: 38px; height: 38px; border-radius: 50%; background: var(--coffee); border: 3px solid var(--bg); box-shadow: 0 0 0 2px var(--coffee-light); flex-shrink: 0; margin-top: 4px; }
.pt-body { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; flex: 1; }
.pt-head { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.pt-head h3 { font-size: 0.97rem; font-weight: 700; color: var(--espresso); }
.pt-head span { font-size: 0.78rem; color: var(--coffee); font-weight: 600; font-family: var(--mono); }
.pt-org { font-size: 0.83rem; color: var(--coffee-dark); font-weight: 600; margin-bottom: 8px; }
.pt-body p:last-child { font-size: 0.88rem; color: var(--muted); }
.port-edu { display: flex; flex-direction: column; gap: 12px; }
.edu-row { display: flex; align-items: center; gap: 16px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 20px; }
.edu-icon-sm { width: 40px; height: 40px; background: var(--cream); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: var(--coffee); flex-shrink: 0; }
.edu-row strong { font-size: 0.92rem; color: var(--espresso); }
.edu-row p { font-size: 0.82rem; color: var(--muted); margin-top: 2px; }

/* ===== PROJECTS PAGE ===== */
.project-detail-list { display: flex; flex-direction: column; gap: 40px; }
.project-detail-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.pd-header { display: flex; align-items: flex-start; gap: 20px; padding: 28px; background: var(--cream); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.pd-icon { width: 52px; height: 52px; background: var(--white); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: var(--coffee); flex-shrink: 0; }
.pd-header h2 { font-size: 1.4rem; margin-bottom: 10px; }
.pd-header .project-status { margin-left: auto; }
.pd-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pd-tags span { font-size: 0.72rem; font-weight: 600; background: var(--white); color: var(--coffee-dark); padding: 3px 10px; border-radius: 100px; border: 1px solid var(--border); }
.pd-body { padding: 28px; display: flex; flex-direction: column; gap: 24px; }
.pd-section h4 { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--coffee); margin-bottom: 10px; }
.pd-section p { font-size: 0.92rem; color: var(--muted); }
.pd-section ol { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.pd-section ol li { font-size: 0.9rem; color: var(--muted); }
.screenshot-placeholder { background: var(--bg); border: 2px dashed var(--border); border-radius: var(--radius-sm); padding: 32px; text-align: center; color: var(--muted); }
.screenshot-placeholder i { font-size: 2rem; color: var(--border); margin-bottom: 10px; display: block; }
.screenshot-placeholder p { font-size: 0.85rem; }

/* ===== BLOG PAGE ===== */
.blog-filter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 40px; }
.filter-btn { padding: 8px 20px; border-radius: 100px; border: 1.5px solid var(--border); background: var(--white); font-size: 0.83rem; font-weight: 600; color: var(--muted); cursor: pointer; transition: all var(--transition); }
.filter-btn:hover, .filter-btn.active { background: var(--coffee); color: var(--white); border-color: var(--coffee); }
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.blog-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; transition: all var(--transition); }
.blog-card:hover { border-color: var(--coffee-light); box-shadow: 0 8px 32px var(--shadow-md); transform: translateY(-4px); }
.blog-cat { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; padding: 4px 12px; border-radius: 100px; display: inline-block; margin-bottom: 14px; width: fit-content; }
.blog-cat.soc { background: #dcfce7; color: #16a34a; }
.blog-cat.tryhackme { background: #fde8e8; color: #c0392b; }
.blog-cat.certs { background: #e8f4fd; color: #1d6fa4; }
.blog-cat.labs { background: #fef9c3; color: #ca8a04; }
.blog-card h3 { font-size: 0.97rem; font-weight: 700; color: var(--espresso); margin-bottom: 10px; line-height: 1.4; }
.blog-card p { font-size: 0.87rem; color: var(--muted); flex: 1; margin-bottom: 16px; }
.blog-meta { display: flex; gap: 16px; font-size: 0.78rem; color: var(--muted); margin-bottom: 16px; }
.blog-meta i { color: var(--coffee); margin-right: 4px; }
.blog-link { font-size: 0.85rem; font-weight: 600; color: var(--coffee); display: flex; align-items: center; gap: 6px; margin-top: auto; transition: gap var(--transition); }
.blog-link:hover { gap: 10px; }

/* ===== SECURITY PAGE ===== */
.sec-hero { background: linear-gradient(135deg, var(--espresso) 0%, #4a2c1a 100%); }
.sec-hero-badges { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 20px; }
.sec-hero-badges span { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.85); border: 1px solid rgba(255,255,255,0.15); padding: 6px 16px; border-radius: 100px; font-size: 0.82rem; font-weight: 600; }
.sec-stats-section { background: var(--white); padding: 48px 28px; }
.sec-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.sec-stat { text-align: center; padding: 28px 16px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); }
.sec-stat-icon { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin: 0 auto 14px; }
.sec-stat-icon.critical { background: #fde8e8; color: #c0392b; }
.sec-stat-icon.high { background: #fef3e2; color: #d97706; }
.sec-stat-icon.medium { background: #e8f4fd; color: #1d6fa4; }
.sec-stat-icon.low { background: #e8fdf0; color: #27ae60; }
.sec-stat-n { display: block; font-size: 1.8rem; font-weight: 700; color: var(--espresso); font-family: var(--serif); }
.sec-stat-l { font-size: 0.78rem; color: var(--muted); margin-top: 4px; }
.sec-layout { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; }
.sec-toc { position: sticky; top: 88px; }
.toc-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.toc-card h3 { font-size: 0.9rem; font-weight: 700; color: var(--espresso); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.toc-card h3 i { color: var(--coffee); }
.toc-list { display: flex; flex-direction: column; gap: 2px; counter-reset: toc; }
.toc-list li { counter-increment: toc; }
.toc-list a { display: flex; align-items: center; gap: 10px; font-size: 0.83rem; color: var(--muted); padding: 7px 10px; border-radius: var(--radius-sm); transition: all var(--transition); }
.toc-list a::before { content: counter(toc, decimal-leading-zero); font-size: 0.7rem; font-weight: 700; color: var(--coffee-light); font-family: var(--mono); min-width: 22px; }
.toc-list a:hover { background: var(--cream); color: var(--coffee-dark); }
.toc-note { margin-top: 16px; padding: 12px; background: var(--cream); border-radius: var(--radius-sm); display: flex; gap: 10px; }
.toc-note i { color: var(--coffee); margin-top: 2px; flex-shrink: 0; }
.toc-note p { font-size: 0.78rem; color: var(--muted); line-height: 1.5; }
.sec-content { display: flex; flex-direction: column; gap: 28px; }
.sec-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow var(--transition); }
.sec-card:hover { box-shadow: 0 8px 32px var(--shadow-md); }
.sec-card-header { display: flex; align-items: center; gap: 16px; padding: 24px 28px; background: var(--bg); border-bottom: 1px solid var(--border); }
.sec-num { font-family: var(--mono); font-size: 1.4rem; font-weight: 700; color: var(--border); min-width: 36px; }
.sec-icon { width: 46px; height: 46px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.sec-icon.critical { background: #fde8e8; color: #c0392b; }
.sec-icon.high { background: #fef3e2; color: #d97706; }
.sec-icon.medium { background: #e8f4fd; color: #1d6fa4; }
.sec-icon.low { background: #e8fdf0; color: #27ae60; }
.sec-card-header h2 { font-size: 1.2rem; margin-bottom: 6px; }
.sec-priority { font-size: 0.7rem; font-weight: 700; padding: 3px 10px; border-radius: 100px; }
.critical-badge { background: #fde8e8; color: #c0392b; }
.high-badge { background: #fef3e2; color: #d97706; }
.medium-badge { background: #e8f4fd; color: #1d6fa4; }
.low-badge { background: #e8fdf0; color: #27ae60; }
.sec-card-body { padding: 24px 28px; display: flex; flex-direction: column; gap: 18px; }
.sec-card-body > p { font-size: 0.93rem; color: var(--muted); }
.sec-list { display: flex; flex-direction: column; gap: 10px; }
.sec-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; color: var(--text); }
.sec-list i { color: #27ae60; margin-top: 3px; flex-shrink: 0; }
.sec-list code { background: var(--cream); color: var(--coffee-dark); padding: 1px 6px; border-radius: 4px; font-family: var(--mono); font-size: 0.82rem; }
.sec-code { background: var(--espresso); border-radius: var(--radius-sm); overflow: hidden; }
.sec-code-bar { background: #1a0f08; padding: 10px 16px; font-size: 0.75rem; color: rgba(255,255,255,0.4); font-family: var(--mono); }
.sec-code pre { padding: 16px 20px; overflow-x: auto; }
.sec-code code { font-family: var(--mono); font-size: 0.8rem; color: #a8d8a8; line-height: 1.8; }
.sec-tip { display: flex; align-items: flex-start; gap: 10px; background: #fef9c3; border: 1px solid #fde68a; border-radius: var(--radius-sm); padding: 14px 16px; font-size: 0.87rem; color: #92400e; }
.sec-tip i { color: #d97706; margin-top: 2px; flex-shrink: 0; }
.sec-threats { display: flex; gap: 8px; flex-wrap: wrap; }
.threat { font-size: 0.75rem; font-weight: 700; padding: 4px 12px; border-radius: 100px; }
.threat.xss { background: #fde8e8; color: #c0392b; }
.threat.sqli { background: #fef3e2; color: #d97706; }
.threat.cmd { background: #e8f4fd; color: #1d6fa4; }
.headers-table { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.ht-row { display: grid; grid-template-columns: 220px 1fr 160px; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 0.83rem; align-items: center; }
.ht-row:last-child { border-bottom: none; }
.ht-row.ht-header { background: var(--cream); font-weight: 700; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); }
.ht-row code { background: var(--cream); color: var(--coffee-dark); padding: 2px 6px; border-radius: 4px; font-family: var(--mono); font-size: 0.78rem; }
.cf-features { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cf-feat { display: flex; gap: 14px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; }
.cf-feat i { font-size: 1.2rem; color: var(--coffee); margin-top: 2px; flex-shrink: 0; }
.cf-feat strong { font-size: 0.9rem; color: var(--espresso); display: block; margin-bottom: 4px; }
.cf-feat p { font-size: 0.82rem; color: var(--muted); }
.sec-callout { background: linear-gradient(135deg, var(--espresso), #4a2c1a); border-radius: var(--radius); padding: 36px; display: flex; gap: 24px; align-items: flex-start; }
.sec-callout-icon { font-size: 2.4rem; color: var(--coffee-light); flex-shrink: 0; }
.sec-callout h3 { font-size: 1.4rem; color: var(--white); margin-bottom: 10px; }
.sec-callout p { font-size: 0.93rem; color: rgba(255,255,255,0.65); }
.sec-callout strong { color: var(--coffee-light); }

/* ===== FOOTER ===== */
.footer { background: var(--espresso); color: rgba(255,255,255,0.6); padding: 56px 28px 28px; }
.footer-top { display: grid; grid-template-columns: 1fr 160px 160px; gap: 48px; margin-bottom: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand .footer-logo { height: 36px; width: auto; border-radius: 6px; margin-bottom: 14px; }
.footer-brand p { font-size: 0.85rem; color: rgba(255,255,255,0.5); max-width: 280px; line-height: 1.7; }
.footer-links h5 { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,0.4); margin-bottom: 16px; }
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.87rem; color: rgba(255,255,255,0.55); transition: color var(--transition); }
.footer-links a:hover { color: var(--coffee-light); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 0.83rem; }
.footer-bottom a { color: var(--coffee-light); }
.footer-made { color: rgba(255,255,255,0.35); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2,1fr); }
  .projects-grid { grid-template-columns: repeat(2,1fr); }
  .certs-grid { grid-template-columns: repeat(2,1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-inner { flex-direction: column; }
  .hero-right { flex: none; width: 100%; }
  .about-split { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .skills-wrapper { grid-template-columns: 1fr; }
  .matrix-row { grid-template-columns: 1fr 1fr; }
  .matrix-row span:last-child { grid-column: 1/-1; }
}
@media (max-width: 640px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 20px 28px; gap: 18px; }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .projects-grid { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; }
  .hstat { border-right: none; border-bottom: 1px solid var(--border); }
}
