/* ============================================================
   Cyber Security Portfolio — Main Stylesheet
   Theme: Dark Cybersecurity (Cyan + Purple Accent)
   ============================================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Fira+Code:wght@400;500;600&display=swap');

/* ---- CSS Custom Properties ---- */
:root {
  /* Colors */
  --bg-primary: #0a0a0f;
  --bg-secondary: #0f0f1a;
  --bg-card: #111827;
  --bg-glass: rgba(17, 24, 39, 0.7);

  --cyan: #00d4ff;
  --cyan-dark: #0099cc;
  --cyan-glow: rgba(0, 212, 255, 0.15);
  --purple: #7b2fff;
  --purple-dark: #5b1fcc;
  --purple-glow: rgba(123, 47, 255, 0.15);

  --text-primary: #f0f0f5;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  --border: rgba(255, 255, 255, 0.08);
  --border-cyan: rgba(0, 212, 255, 0.3);

  /* Typography */
  --font-main: 'Inter', sans-serif;
  --font-code: 'Fira Code', monospace;

  /* Spacing */
  --container: 1200px;
  --section-py: 100px;

  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 70px;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--purple);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--cyan);
}

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Typography ---- */
h1,
h2,
h3,
h4,
h5,
h6 {
  line-height: 1.2;
  font-weight: 700;
}

a {
  color: var(--cyan);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--cyan-dark);
}

/* ---- Section Header ---- */
.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-label {
  display: inline-block;
  font-family: var(--font-code);
  font-size: 0.8rem;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 12px;
  opacity: 0.8;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  margin: 0 auto;
  border-radius: 2px;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-cyan);
  padding: 12px 0;
  box-shadow: 0 4px 30px rgba(0, 212, 255, 0.05);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-code);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo .logo-bracket {
  color: var(--purple);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: 6px;
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--cyan);
  background: var(--cyan-glow);
}

.nav-cta {
  background: linear-gradient(135deg, var(--cyan), var(--purple)) !important;
  color: #fff !important;
  padding: 8px 20px !important;
  font-weight: 600 !important;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 100px 0 60px;
}

/* Animated grid background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% {
    background-position: 0 0;
  }

  100% {
    background-position: 60px 60px;
  }
}

/* Glow orbs */
.hero::after {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(123, 47, 255, 0.12) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  border-radius: 50%;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(0, 212, 255, 0.08) 0%, transparent 70%);
  bottom: -100px;
  left: -100px;
  border-radius: 50%;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-code);
  font-size: 0.8rem;
  color: var(--cyan);
  background: var(--cyan-glow);
  border: 1px solid var(--border-cyan);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.hero-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.3);
  }
}

.hero-name {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 12px;
}

.hero-name .highlight {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title {
  font-family: var(--font-code);
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--cyan);
  margin-bottom: 20px;
  min-height: 1.5em;
}

.hero-tagline {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-style: italic;
  border-left: 3px solid var(--purple);
  padding-left: 16px;
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.4);
  color: #fff;
}

.btn-secoundary {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #fff;
  box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

.btn-secoundary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.4);
  color: #fff;
}

#btn-projects-submit {
  margin-top: 40px;
}

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

.btn-outline:hover {
  background: var(--cyan-glow);
  transform: translateY(-2px);
  color: var(--cyan);
}

/* Hero Image */
.hero-image-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-avatar-ring {
  position: relative;
  width: 340px;
  height: 340px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-avatar-ring::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(var(--cyan), var(--purple), var(--cyan));
  animation: spin 4s linear infinite;
}

.hero-avatar-ring::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--bg-primary);
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.hero-avatar {
  position: relative;
  z-index: 1;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-avatar-placeholder {
  position: relative;
  z-index: 1;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 4rem;
}

/* Stats row */
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 32px;
}

.hero-stat {
  text-align: center;
}

.hero-stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.hero-stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */
#about {
  padding: var(--section-py) 0;
  background: var(--bg-secondary);
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-avatar {
  width: 100%;
  max-width: 340px;
  border-radius: 16px;
  border: 1px solid var(--border-cyan);
  box-shadow: 0 0 40px rgba(0, 212, 255, 0.1);
  display: block;
  object-fit: cover;
}

.about-avatar-placeholder {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1;
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border-cyan);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 5rem;
}

.about-badge {
  position: absolute;
  bottom: -16px;
  right: -16px;
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 0.875rem;
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.3);
}

.about-content p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.8;
}

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

.about-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--cyan);
  background: var(--cyan-glow);
  border: 1px solid var(--border-cyan);
  padding: 6px 14px;
  border-radius: 20px;
  font-family: var(--font-code);
}

/* ============================================================
   SKILLS SECTION
   ============================================================ */
#skills {
  padding: var(--section-py) 0;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  transform: scaleX(0);
  transition: transform 0.3s ease;
  transform-origin: left;
}

.skill-card:hover {
  border-color: var(--border-cyan);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 212, 255, 0.1);
}

.skill-card:hover::before {
  transform: scaleX(1);
}

.skill-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.skill-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
}

.skill-name i {
  font-size: 1.2rem;
  color: var(--cyan);
}

.skill-level-text {
  font-family: var(--font-code);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Level label colors */
.skill-level-text.level-expert {
  color: #00d4ff;
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.35);
}

.skill-level-text.level-advanced {
  color: #a78bfa;
  background: rgba(123, 47, 255, 0.12);
  border: 1px solid rgba(123, 47, 255, 0.35);
}

.skill-level-text.level-intermediate {
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.skill-level-text.level-beginner {
  color: #9ca3af;
  background: rgba(156, 163, 175, 0.08);
  border: 1px solid rgba(156, 163, 175, 0.2);
}

.skill-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--purple));
  border-radius: 3px;
  width: 0%;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================================
   EXPERIENCE SECTION
   ============================================================ */
#experience {
  padding: var(--section-py) 0;
  background: var(--bg-secondary);
}

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

.timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--cyan), var(--purple), transparent);
}

.timeline-item {
  display: flex;
  gap: 32px;
  margin-bottom: 40px;
  position: relative;
}

.timeline-dot {
  width: 50px;
  height: 50px;
  min-width: 50px;
  background: var(--bg-card);
  border: 2px solid var(--cyan);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  font-size: 1.1rem;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
}

.timeline-card {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: var(--transition);
}

.timeline-card:hover {
  border-color: var(--border-cyan);
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.08);
}

.timeline-period {
  font-family: var(--font-code);
  font-size: 0.8rem;
  color: var(--cyan);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-current {
  background: rgba(0, 212, 255, 0.15);
  color: var(--cyan);
  border: 1px solid var(--border-cyan);
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  animation: pulse 2s ease-in-out infinite;
}

.timeline-position {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.timeline-company {
  font-size: 0.9rem;
  color: var(--purple);
  font-weight: 500;
  margin-bottom: 12px;
}

.timeline-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================
   PROJECTS SECTION
   ============================================================ */
#projects {
  padding: var(--section-py) 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: var(--border-cyan);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0, 212, 255, 0.1);
}

.project-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.project-card:hover .project-image {
  transform: scale(1.05);
}

.project-image-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(123, 47, 255, 0.05) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.project-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.project-desc {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex: 1;
  margin-bottom: 16px;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.tech-tag {
  font-family: var(--font-code);
  font-size: 0.7rem;
  color: var(--purple);
  background: rgba(123, 47, 255, 0.1);
  border: 1px solid rgba(123, 47, 255, 0.25);
  padding: 4px 10px;
  border-radius: 6px;
}

.project-links {
  display: flex;
  gap: 10px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  padding: 7px 14px;
  border-radius: 6px;
  font-weight: 500;
  transition: var(--transition);
}

.project-link.github {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.project-link.github:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.project-link.demo {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #fff;
}

.project-link.demo:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 212, 255, 0.3);
  color: #fff;
}

/* ============================================================
   CERTIFICATES SECTION
   ============================================================ */
#certificates {
  padding: var(--section-py) 0;
  background: var(--bg-secondary);
}

.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  /* image fills to edge */
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
}

.cert-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.cert-card:hover {
  border-color: rgba(123, 47, 255, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(123, 47, 255, 0.1);
}

.cert-card:hover::after {
  transform: scaleX(1);
}

.cert-icon {
  width: 48px;
  height: 48px;
  background: var(--purple-glow);
  border: 1px solid rgba(123, 47, 255, 0.3);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--purple);
  margin-bottom: 16px;
}

.cert-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.4;
}

.cert-issuer {
  font-size: 0.825rem;
  color: var(--purple);
  font-weight: 500;
  margin-bottom: 8px;
}

.cert-date {
  font-family: var(--font-code);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.cert-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--cyan);
  background: var(--cyan-glow);
  border: 1px solid var(--border-cyan);
  padding: 6px 14px;
  border-radius: 6px;
  transition: var(--transition);
}

.cert-link:hover {
  background: rgba(0, 212, 255, 0.2);
  color: var(--cyan);
}

/* ---- Cert body (padding wrapper) ---- */
.cert-body {
  padding: 20px 22px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ---- Cert card: image (lightbox trigger) ---- */
.cert-image-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.cert-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.cert-image-wrap:hover .cert-image {
  transform: scale(1.06);
}

.cert-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.05) 0%,
      rgba(0, 0, 0, 0.55) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cert-image-wrap:hover .cert-image-overlay {
  opacity: 1;
}

.cert-image-overlay i {
  font-size: 1.8rem;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, .6));
}

.cert-image-overlay span {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .7);
}

/* ---- Cert card: PDF placeholder ---- */
.cert-pdf-wrap {
  display: block;
  text-decoration: none;
  flex-shrink: 0;
  border-bottom: 1px solid var(--border);
}

.cert-pdf-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg,
      rgba(239, 68, 68, 0.07) 0%,
      rgba(123, 47, 255, 0.06) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #f87171;
  transition: background 0.3s ease;
}

.cert-pdf-wrap:hover .cert-pdf-placeholder {
  background: linear-gradient(135deg,
      rgba(239, 68, 68, 0.14) 0%,
      rgba(123, 47, 255, 0.1) 100%);
}

.cert-pdf-placeholder i {
  font-size: 2.8rem;
  filter: drop-shadow(0 2px 12px rgba(248, 113, 113, 0.4));
}

.cert-pdf-placeholder span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.cert-pdf-placeholder small {
  font-size: 0.72rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}

/* ---- Default cert icon (no file) - add margin ---- */
.cert-card>.cert-icon {
  margin: 22px 22px 0;
  align-self: flex-start;
}

/* ============================================================
   CERTIFICATE LIGHTBOX
   ============================================================ */
.cert-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(5, 5, 10, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cert-lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.cert-lightbox-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 92vw;
  max-height: 90vh;
  transform: scale(0.93) translateY(12px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cert-lightbox.active .cert-lightbox-inner {
  transform: scale(1) translateY(0);
}

.cert-lightbox-img {
  max-width: 90vw;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 10px;
  border: 1px solid rgba(0, 212, 255, 0.2);
  box-shadow:
    0 0 0 1px rgba(0, 212, 255, 0.08),
    0 24px 80px rgba(0, 0, 0, 0.7),
    0 0 60px rgba(0, 212, 255, 0.08);
  display: block;
}

.cert-lightbox-caption {
  margin-top: 14px;
  font-family: var(--font-code);
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 600px;
  line-height: 1.5;
}

.cert-lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10001;
}

.cert-lightbox-close:hover {
  background: rgba(239, 68, 68, 0.25);
  border-color: rgba(239, 68, 68, 0.5);
  color: #fca5a5;
  transform: rotate(90deg);
}

/* Download button in lightbox */
.cert-lightbox-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.cert-lightbox-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 7px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid var(--border-cyan);
  background: var(--cyan-glow);
  color: var(--cyan);
  text-decoration: none;
  transition: all 0.2s ease;
}

.cert-lightbox-btn:hover {
  background: rgba(0, 212, 255, 0.2);
  color: var(--cyan);
  transform: translateY(-1px);
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
#contact {
  padding: var(--section-py) 0;
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.contact-info h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.8;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: var(--transition);
  width: 100%;
  max-width: 320px;
}

.contact-item:hover {
  border-color: var(--border-cyan);
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--cyan-glow);
  border: 1px solid var(--border-cyan);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--cyan);
}

.contact-item-text .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}

.contact-item-text .value {
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* Contact Form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-family: var(--font-main);
  transition: var(--transition);
  outline: none;
  resize: vertical;
}

.form-control:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-glow);
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-error {
  font-size: 0.78rem;
  color: #f87171;
  margin-top: 6px;
  display: block;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  margin-bottom: 32px;
}

.footer-brand .nav-logo {
  font-size: 1.1rem;
  margin-bottom: 12px;
  display: flex;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.footer-links h4 {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 42px;
  height: 42px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1rem;
  transition: var(--transition);
}

.social-link:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-glow);
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 0.825rem;
  color: var(--text-muted);
}

.footer-copy span {
  color: var(--cyan);
  font-family: var(--font-code);
}

/* ============================================================
   ALERT MESSAGES
   ============================================================ */
.alert {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 20px;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #6ee7b7;
}

.alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
}

.alert-warning {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.3);
  color: #fde68a;
}

.alert-info {
  background: var(--cyan-glow);
  border: 1px solid var(--border-cyan);
  color: var(--cyan);
}

.alert-icon {
  font-weight: 700;
  font-size: 1rem;
  min-width: 20px;
}

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

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

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

.reveal-delay-4 {
  transition-delay: 0.4s;
}

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.4;
}

.empty-state p {
  font-size: 0.9rem;
}

/* ============================================================
   PAGE HEADER (for inner pages)
   ============================================================ */
.page-header {
  padding: 120px 0 60px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}

.page-header .container {
  position: relative;
  z-index: 1;
}

.page-header-title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--text-primary), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-family: var(--font-code);
}

.breadcrumb a {
  color: var(--cyan);
}

/* ============================================================
   FILTER TABS
   ============================================================ */
.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.filter-tab {
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  transition: var(--transition);
}

.filter-tab:hover,
.filter-tab.active {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-glow);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-desc {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-image-wrap {
    order: -1;
  }

  .hero-avatar-ring {
    width: 240px;
    height: 240px;
  }

  .hero-avatar,
  .hero-avatar-placeholder {
    width: 220px;
    height: 220px;
  }

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

  .about-image-wrap {
    display: flex;
    justify-content: center;
  }

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

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

@media (max-width: 768px) {
  :root {
    --section-py: 70px;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 15, 0.98);
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 999;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: all;
  }

  .nav-links a {
    font-size: 1.1rem;
    padding: 12px 24px;
  }

  .nav-toggle {
    display: flex;
    position: relative;
    z-index: 1000;
  }

  .hero-name {
    font-size: 2.2rem;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 24px;
  }

  .timeline::before {
    left: 12px;
  }

  .timeline-dot {
    width: 26px;
    height: 26px;
    min-width: 26px;
    font-size: 0.7rem;
  }

  .timeline-item {
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-stats {
    gap: 20px;
  }
}
