/* ===================================================
   JAYTEE XABA — PORTFOLIO STYLESHEET
   Redesigned 2026 | Inter + Space Grotesk | #1493ff
   Particles visible through semi-transparent sections
   =================================================== */

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

/* === DESIGN TOKENS === */
:root {
  --primary:        #1493ff;
  --primary-dim:    rgba(20, 147, 255, 0.12);
  --primary-glow:   rgba(20, 147, 255, 0.35);
  --primary-strong: rgba(20, 147, 255, 0.6);
  --bg:             #000000;
  --surface:        #0a0a0a;
  --card:           rgba(255,255,255,0.03);
  --card-border:    rgba(255,255,255,0.08);
  --glass:          rgba(10,10,10,0.8);
  --text:           #ffffff;
  --text-muted:     rgba(255,255,255,0.55);
  --text-subtle:    rgba(255,255,255,0.3);
  --font-body:      'Inter', sans-serif;
  --font-heading:   'Space Grotesk', sans-serif;
  --radius:         16px;
  --radius-sm:      10px;
  --radius-full:    999px;
  --transition:     0.3s ease;
  --transition-slow: 0.6s ease;
}

/* === RESET === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  border: none;
  outline: none;
}

/* html keeps the solid black so browser BG is never white */
html {
  font-size: 62.5%;
  scroll-behavior: smooth;
  background: var(--bg);
}

/* body is transparent so the fixed canvas bleeds through everything */
body {
  font-family: var(--font-body);
  background: transparent;
  color: var(--text);
  width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   PERSISTENT PARTICLE BACKGROUND CANVAS
   ============================================================ */
#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* Cursor trail canvas — sits just above particles */
#trail-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* All real content must sit above both canvases */
header,
#splash,
section,
footer,
.chat-bubble,
.chat-window,
.modal-overlay {
  position: relative;
  z-index: 2;
}

/* === SPLASH SCREEN === */
#splash {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3.2rem;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}

#splash.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#splash-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.splash-scene {
  perspective: 600px;
  width: 120px;
  height: 120px;
  position: relative;
  z-index: 2;
}

.splash-cube {
  width: 120px;
  height: 120px;
  transform-style: preserve-3d;
  animation: rotateCube 5s linear infinite;
}

.splash-cube .face {
  position: absolute;
  width: 120px;
  height: 120px;
  border: 1.5px solid var(--primary);
  background: rgba(20, 147, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 2px;
  backdrop-filter: blur(4px);
  box-shadow: inset 0 0 20px rgba(20, 147, 255, 0.1);
}

.splash-cube .front  { transform: translateZ(60px); }
.splash-cube .back   { transform: translateZ(-60px) rotateY(180deg); }
.splash-cube .left   { transform: rotateY(-90deg) translateZ(60px); }
.splash-cube .right  { transform: rotateY(90deg) translateZ(60px); }
.splash-cube .top    { transform: rotateX(90deg) translateZ(60px); }
.splash-cube .bottom { transform: rotateX(-90deg) translateZ(60px); }

@keyframes rotateCube {
  0%   { transform: rotateX(10deg) rotateY(0deg); }
  100% { transform: rotateX(10deg) rotateY(360deg); }
}

.splash-text {
  position: relative;
  z-index: 2;
  text-align: center;
}

.splash-text h1 {
  font-family: var(--font-heading);
  font-size: 3.6rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
  animation: fadeSlideUp 0.8s ease 0.6s both;
}

.splash-text h1 span { color: var(--primary); }

.splash-text p {
  font-size: 1.4rem;
  color: var(--text-muted);
  margin-top: 0.8rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  animation: fadeSlideUp 0.8s ease 1s both;
}

.splash-bar-wrap {
  position: relative;
  z-index: 2;
  width: 200px;
  height: 2px;
  background: rgba(255,255,255,0.07);
  border-radius: var(--radius-full);
  overflow: hidden;
  animation: fadeSlideUp 0.8s ease 1.2s both;
}

.splash-bar {
  height: 100%;
  background: var(--primary);
  border-radius: var(--radius-full);
  animation: loadBar 2.5s ease 1.2s forwards;
  width: 0;
  box-shadow: 0 0 12px var(--primary);
}

@keyframes loadBar { to { width: 100%; } }

/* === HEADER === */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.6rem 7%;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: background var(--transition);
}

.logo {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.logo:hover {
  opacity: 0.8;
  transform: scale(1.03);
}

nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

nav a {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-full);
  transition: var(--transition);
  text-decoration: none;
  letter-spacing: 0.2px;
}

nav a:hover,
nav a.active {
  color: var(--text);
  background: var(--primary-dim);
}

nav a.active { color: var(--primary); }

.nav-cv {
  background: var(--primary-dim);
  color: var(--primary) !important;
  border: 1px solid rgba(20, 147, 255, 0.25);
}

.nav-cv:hover {
  background: var(--primary) !important;
  color: #000 !important;
}

.hamburger {
  display: none;
  cursor: pointer;
  font-size: 2.2rem;
  color: var(--primary);
  background: none;
  padding: 0.4rem;
}

.menu-toggle { display: none; }

/* === SECTION BASE ===
   Sections have a semi-transparent dark bg so particles
   glow through but content stays readable */
section {
  min-height: 100vh;
  padding: 5rem 7% 5rem;
  background: rgba(0, 0, 0, 0.58);
}

/* Sections that shouldn't be full-height */
section.cert-strip-section { min-height: auto; }

/* === HOME PAGE === */
.home {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7rem;
  padding-top: 9rem;
  position: relative;
  overflow: hidden;
  background: rgba(0,0,0,0.55);
}

.home::before {
  content: '';
  position: absolute;
  top: 20%;
  right: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(20, 147, 255, 0.10) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: pulse-glow 4s ease-in-out infinite alternate;
  z-index: 0;
}

.home::after {
  content: '';
  position: absolute;
  bottom: 10%;
  left: 5%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(20, 147, 255, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: pulse-glow 6s ease-in-out infinite alternate-reverse;
  z-index: 0;
}

@keyframes pulse-glow {
  from { transform: scale(1) translate(0, 0); opacity: 0.6; }
  to   { transform: scale(1.2) translate(20px, -20px); opacity: 1; }
}

.home-img {
  position: relative;
  flex-shrink: 0;
  z-index: 1;
}

.home-img::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(var(--primary), transparent, var(--primary));
  animation: spinRing 6s linear infinite;
  z-index: -1;
  opacity: 0.5;
}

@keyframes spinRing { to { transform: rotate(360deg); } }

.home-img img {
  width: 32vw;
  max-width: 380px;
  min-width: 220px;
  border-radius: 50%;
  display: block;
  filter: drop-shadow(0 0 30px rgba(20,147,255,0.4));
  transition: transform 0.4s ease, filter 0.4s ease;
  position: relative;
  z-index: 1;
}

.home-img img:hover {
  transform: scale(1.03);
  filter: drop-shadow(0 0 50px rgba(20,147,255,0.6));
}

.home-content {
  max-width: 580px;
  animation: fadeSlideUp 0.8s ease 0.2s both;
  z-index: 1;
}

.home-content .greeting {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.greeting::before {
  content: '';
  display: inline-block;
  width: 30px;
  height: 2px;
  background: var(--primary);
}

.home-content h1 {
  font-family: var(--font-heading);
  font-size: 6.4rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 1.6rem;
}

.home-content h1 span {
  color: var(--primary);
  position: relative;
}

.home-content h1 span::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary);
  border-radius: var(--radius-full);
  opacity: 0.4;
}

.home-content p {
  font-size: 1.6rem;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

/* Social Icons */
.social-icons {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.social-icons a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 4.4rem;
  height: 4.4rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  font-size: 1.8rem;
  border-radius: var(--radius-full);
  transition: var(--transition);
  color: var(--text-muted);
  text-decoration: none;
}

.social-icons a:hover {
  color: #000;
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 8px 24px var(--primary-glow);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.2rem 2.8rem;
  background: var(--primary);
  color: #000;
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  transition: var(--transition);
  cursor: pointer;
  letter-spacing: 0.2px;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 32px var(--primary-glow);
  background: #2fa0ff;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary-dim);
  color: var(--primary);
  box-shadow: 0 8px 24px var(--primary-glow);
}

/* Typing animation */
.typing-text {
  font-size: 2.6rem;
  font-weight: 700;
  min-height: 4rem;
  display: inline-block;
}

.typing-text span {
  position: relative;
  display: inline-block;
  min-width: 280px;
}

.typing-text span::before {
  content: "Web Developer";
  color: var(--primary);
  animation: words 20s infinite;
}

.typing-text span::after {
  content: "";
  background: rgba(0,0,0,0.78);
  position: absolute;
  width: calc(100% + 8px);
  height: 100%;
  border-left: 3px solid rgba(0,0,0,0);
  right: -8px;
  animation: cursor 0.6s infinite;
}

@keyframes cursor {
  to { border-left-color: var(--primary); }
}

@keyframes words {
  0%,  18% { content: "Web Developer"; }
  20%, 38% { content: "UI/UX Designer"; }
  40%, 58% { content: "Graphic Designer"; }
  60%, 78% { content: "Prompt Engineer"; }
  80%,100% { content: "Creative Technologist"; }
}

/* === FOOTER === */
footer {
  background: rgba(10,10,10,0.9);
  border-top: 1px solid rgba(255,255,255,0.05);
  text-align: center;
  padding: 2.8rem 7%;
  margin-top: auto;
  position: relative;
  z-index: 2;
}

footer p { font-size: 1.3rem; color: var(--text-subtle); }
footer span { color: var(--primary); }

/* === CUTE BOT FACE CHAT BUBBLE === */
.chat-bubble {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 62px;
  height: 62px;
  background: rgba(0,0,0,0.85);
  border: 1.5px solid rgba(20,147,255,0.5);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 0 22px rgba(20,147,255,0.45), 0 4px 20px rgba(0,0,0,0.5);
  z-index: 999;
  transition: transform var(--transition), box-shadow var(--transition);
  animation: botFloat 3s ease-in-out infinite;
  backdrop-filter: blur(12px);
  overflow: visible;
}

.chat-bubble:hover {
  box-shadow: 0 0 36px rgba(20,147,255,0.7), 0 8px 32px rgba(0,0,0,0.5);
}

@keyframes botFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

/* Bot face SVG inside bubble */
.bot-face-svg {
  width: 52px;
  height: 52px;
  transition: transform 0.3s ease;
}

.bot-antenna-glow {
  animation: antennaGlow 2s ease-in-out infinite alternate;
}

@keyframes antennaGlow {
  from { filter: drop-shadow(0 0 3px #1493ff); opacity: 0.8; }
  to   { filter: drop-shadow(0 0 8px #1493ff); opacity: 1; }
}

.eye-inner {
  transition: transform 0.1s ease;
}

/* Eye scan effect */
@keyframes eyeScan {
  0%,100% { cx: 20; }
  50%      { cx: 21; }
}

/* === CHAT WINDOW === */
.chat-window {
  position: fixed;
  bottom: 104px;
  right: 28px;
  width: 90%;
  max-width: 390px;
  height: 500px;
  background: rgba(10,10,10,0.92);
  border: 1px solid rgba(20,147,255,0.3);
  border-radius: 20px;
  box-shadow: 0 16px 60px rgba(0,0,0,0.6), 0 0 40px rgba(20,147,255,0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.97);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  backdrop-filter: blur(16px);
}

.chat-window.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(20,147,255,0.06);
  padding: 1.2rem 1.8rem;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.6rem;
  border-bottom: 1px solid rgba(20,147,255,0.15);
}

.chat-header-title { flex-grow: 1; text-align: center; }

.chat-close-button {
  background: none;
  color: rgba(255,255,255,0.3);
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
  transition: var(--transition);
}

.chat-close-button:hover { color: var(--text); }

.chat-body {
  flex-grow: 1;
  padding: 1.4rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.chat-message {
  padding: 1rem 1.4rem;
  border-radius: 16px;
  max-width: 82%;
  line-height: 1.5;
  font-size: 1.4rem;
  word-wrap: break-word;
}

.chat-message.user {
  background: var(--primary);
  color: #000;
  font-weight: 600;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-message.bot {
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.85);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  border: 1px solid rgba(255,255,255,0.06);
}

.chat-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}

.chat-shortcut {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: var(--primary-dim);
  border: 1px solid rgba(20,147,255,0.3);
  color: #8ecbff;
  font-size: 1.2rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.chat-shortcut:hover {
  background: rgba(20,147,255,0.22);
  color: #fff;
  transform: translateY(-1px);
}

.typing-indicator span {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  margin: 0 2px;
  animation: pulse 1.5s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes pulse {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50%       { opacity: 1; transform: scale(1); }
}

.chat-footer {
  display: flex;
  padding: 1rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  gap: 0.8rem;
}

.chat-footer input {
  flex-grow: 1;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1.4rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.4rem;
}

.chat-footer input:focus {
  border-color: rgba(20,147,255,0.4);
  background: rgba(20,147,255,0.04);
}

.chat-footer button {
  background: var(--primary);
  color: #000;
  border-radius: var(--radius-sm);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}

.chat-footer button:hover {
  background: #2fa0ff;
  transform: scale(1.05);
}

/* === MODAL === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-content {
  background: rgba(14,14,14,0.95);
  padding: 4.4rem;
  border-radius: 24px;
  border: 1px solid rgba(20,147,255,0.25);
  box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 60px rgba(20,147,255,0.1);
  text-align: center;
  max-width: 480px;
  width: 90%;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  backdrop-filter: blur(20px);
}

.modal-overlay.active .modal-content { transform: scale(1) translateY(0); }

.modal-icon { font-size: 5rem; color: #00d48a; margin-bottom: 1.6rem; }

.modal-content h2 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
}

.modal-content p {
  font-size: 1.6rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2.4rem;
}

.modal-actions a {
  display: inline-block;
  padding: 1.1rem 2.8rem;
  background: var(--primary);
  border-radius: var(--radius-sm);
  font-size: 1.5rem;
  color: #000;
  font-weight: 700;
  transition: var(--transition);
  text-decoration: none;
  margin: 0 6px;
}

.modal-actions a:hover {
  background: rgba(14,14,14,0.95);
  color: var(--primary);
  border: 1px solid var(--primary);
}

.close-modal {
  position: absolute;
  top: 1.4rem;
  right: 1.8rem;
  font-size: 2.4rem;
  color: var(--text-subtle);
  cursor: pointer;
  transition: var(--transition);
}

.close-modal:hover { color: var(--text); }

/* === UTILITY ANIMATIONS === */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* ============================================================
   CERTIFICATE MARQUEE STRIP
   ============================================================ */
.cert-strip-section {
  padding: 7rem 0 5rem;
  overflow: hidden;
  min-height: auto;
  background: rgba(0,0,0,0.7);
}

.cert-strip-header {
  text-align: center;
  padding: 0 7%;
  margin-bottom: 4rem;
}

.cert-strip-header .section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: rgba(20,147,255,0.12);
  border: 1px solid rgba(20,147,255,0.35);
  color: var(--primary);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 1.4rem;
  border-radius: 999px;
  margin-bottom: 1.8rem;
}

.cert-strip-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.cert-strip-header h2 span { color: var(--primary); }

.cert-strip-sub {
  color: var(--text-muted);
  font-size: 1.5rem;
}

.cert-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to right, transparent 0%, black 8%, black 92%, transparent 100%
  );
  mask-image: linear-gradient(
    to right, transparent 0%, black 8%, black 92%, transparent 100%
  );
}

.cert-track {
  display: flex;
  gap: 2.4rem;
  width: max-content;
  animation: certScroll 55s linear infinite;
  will-change: transform;
}

.cert-marquee:hover .cert-track {
  animation-play-state: paused;
}

@keyframes certScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.cert-card {
  flex: 0 0 auto;
  width: 200px; 
  height: 191px; 
  border-radius: 1rem;
  overflow: hidden;
  border: 1.5px solid rgba(20,147,255,0.45);
  box-shadow: 0 0 18px rgba(20,147,255,0.12), inset 0 0 0 1px rgba(255,255,255,0.04);
  background: #050810;
  opacity: 0.6;
  transition: opacity 0.35s ease, transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  cursor: pointer;
  position: relative;
}

.cert-card:hover {
  opacity: 1;
  transform: scale(1.04) translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 0 32px rgba(20,147,255,0.35), 0 8px 32px rgba(0,0,0,0.4);
}

.cert-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  pointer-events: none;
}

.cert-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(20,147,255,0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.cert-card:hover::after { opacity: 1; }

/* === CONTACT PAGE === */
.contact {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 6rem;
  padding: 12rem 7% 6rem;
  flex-wrap: wrap;
}

.contact-text { flex: 1; min-width: 280px; }

.contact-text h1 {
  font-family: var(--font-heading);
  font-size: 5.6rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 1.6rem;
}

.contact-text p {
  font-size: 1.7rem;
  color: var(--text-muted);
  margin-bottom: 3.2rem;
  line-height: 1.7;
}

.email-social h2 {
  font-size: 1.5rem;
  color: var(--text-muted);
  margin-bottom: 1.6rem;
}

.email-link {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.6rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 2.4rem;
  transition: var(--transition);
  text-decoration: none;
}

.email-link:hover { opacity: 0.8; gap: 1.2rem; }

.contact form {
  flex: 1;
  min-width: 280px;
  max-width: 580px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 24px;
  padding: 3.6rem;
  backdrop-filter: blur(20px);
}

.contact form label {
  display: block;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.contact form input,
.contact form textarea {
  width: 100%;
  padding: 1.3rem 1.6rem;
  font-size: 1.6rem;
  color: var(--text);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  margin-bottom: 2rem;
  transition: var(--transition);
  font-family: var(--font-body);
}

.contact form input:focus,
.contact form textarea:focus {
  border-color: rgba(20,147,255,0.5);
  background: rgba(20,147,255,0.04);
  box-shadow: 0 0 0 3px rgba(20,147,255,0.1);
}

.contact form textarea { resize: vertical; min-height: 140px; }

.contact form button {
  width: 100%;
  padding: 1.4rem;
  background: var(--primary);
  border-radius: var(--radius-sm);
  font-size: 1.6rem;
  color: #000;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}

.contact form button:hover {
  background: #2fa0ff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--primary-glow);
}

/* === RESPONSIVE === */
@media (max-width: 995px) {
  header { padding: 1.4rem 4%; }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(20px);
    width: 100%;
    flex-direction: column;
    align-items: center;
    padding: 1.6rem 0 2.4rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    gap: 0.2rem;
  }

  .hamburger { display: block; }

  #menu-toggle:checked ~ nav,
  #menu-toggle:checked + .hamburger + nav { display: flex; }

  nav a {
    font-size: 1.7rem;
    width: 100%;
    text-align: center;
    border-radius: 0;
    padding: 1rem 0;
  }

  .home {
    flex-direction: column;
    text-align: center;
    padding: 13rem 4% 6rem;
    gap: 4rem;
  }

  .home::before, .home::after { display: none; }

  .home-img img { width: 65vw; max-width: 280px; }
  .home-content h1 { font-size: 5rem; }
  .social-icons { justify-content: center; }
  .greeting { justify-content: center; }
  .typing-text { font-size: 2.2rem; min-width: 0; }
  .typing-text span { min-width: 0; }

  .contact {
    flex-direction: column;
    gap: 3.2rem;
    padding: 11rem 5% 5rem;
  }

  .contact-text h1 { font-size: 4.2rem; text-align: center; }
  .contact-text p  { text-align: center; }
  .email-social { text-align: center; }
  .social-icons { justify-content: center; }
  .contact form { width: 100%; }
}

@media (max-width: 640px) {
  section { padding: 5rem 5% 4rem; }
  .home { padding: 11rem 4% 4rem; gap: 3rem; }
  .home-content h1 { font-size: 4rem; }
  .home-content p  { font-size: 1.5rem; }
  .home-img img { width: min(75vw, 260px); }
  .typing-text { font-size: 2rem; }
  .btn { width: 100%; justify-content: center; }
  .chat-bubble { bottom: 18px; right: 18px; width: 56px; height: 56px; }
  .chat-window {
    left: 14px; right: 14px;
    bottom: 84px;
    width: auto;
    max-width: none;
    height: min(72vh, 500px);
  }
}

@media (max-width: 420px) {
  header { padding: 1.2rem 3.5%; }
  .logo  { font-size: 1.9rem; }
  .home-content h1 { font-size: 3.4rem; }
  .contact form { padding: 2.4rem 1.8rem; }
  .contact-text h1 { font-size: 3.6rem; }
}

@media (max-width: 788px) {
  .cert-card { width: 200px; height: 152px; }
  .cert-track { gap: 1.8rem; }
  .cert-strip-section { padding: 5rem 0 3.5rem; }
}
