/* ==========================================
   MATRIX/TRON CYBER AESTHETIC - STYLE.CSS
   ========================================== */

:root {
  --bg-dark: #050510;
  --bg-card: rgba(0, 20, 40, 0.6);
  --text-primary: #00f5ff;
  --text-secondary: #00ff88;
  --text-dim: rgba(0, 245, 255, 0.6);
  --accent-cyan: #00f5ff;
  --accent-pink: #ff00ff;
  --accent-green: #00ff88;
  --accent-orange: #ff6b00;
  --accent-red: #ff0040;
  --border-glow: rgba(0, 245, 255, 0.3);
  --font-display: 'Orbitron', sans-serif;
  --font-body: 'Rajdhani', sans-serif;
  --font-mono: 'Fira Code', monospace;
  /* Light mode variables */
  --bg-light: #f0f4f8;
  --bg-card-light: rgba(255, 255, 255, 0.9);
  --text-dark: #1a1a2e;
  --text-secondary-dark: #4a5568;
  --text-dim-dark: rgba(26, 26, 46, 0.6);
  --border-light: rgba(0, 245, 255, 0.3);
}

/* Light Mode */
body.light-mode {
  --bg-dark: var(--bg-light);
  --bg-card: var(--bg-card-light);
  --text-primary: var(--text-dark);
  --text-dim: var(--text-dim-dark);
  --border-glow: var(--border-light);
}

body.light-mode .grid-bg {
  background-image:
    linear-gradient(rgba(0, 245, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 245, 255, 0.05) 1px, transparent 1px);
}

body.light-mode .section-title {
  color: var(--text-dark);
}

body.light-mode .hero-subtitle,
body.light-mode .stat-label,
body.light-mode .system-label,
body.light-mode .skill-tech,
body.light-mode .project-info p,
body.light-mode .footer-credit {
  color: var(--text-secondary-dark);
}

body.light-mode .skill-card,
body.light-mode .system-card,
body.light-mode .project-info {
  background: var(--bg-card-light);
  border-color: var(--border-light);
}

body.light-mode .terminal-section {
  background: var(--bg-card-light);
  border-color: var(--border-light);
}

body.light-mode .contact-form {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 245, 255, 0.3);
}

body.light-mode .contact-form .form-group label {
  color: var(--accent-pink);
}

body.light-mode .contact-form .form-group input,
body.light-mode .contact-form .form-group textarea {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(0, 0, 0, 0.1);
  color: var(--text-dark);
}

body.light-mode .contact-form .form-group input:focus,
body.light-mode .contact-form .form-group textarea:focus {
  border-color: var(--accent-pink);
  box-shadow: 0 0 25px rgba(255, 0, 255, 0.15);
}

body.light-mode .whatsapp-btn {
  border-color: var(--accent-pink) !important;
  color: var(--text-dark) !important;
}

body.light-mode .whatsapp-btn:hover {
  background: rgba(255, 0, 255, 0.08) !important;
}

body.light-mode .contact-status {
  color: var(--accent-pink);
}

body.light-mode .contact-status.redirecting {
  color: #25D366;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  cursor: none;
}

/* GRID BACKGROUND */
.grid-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(0, 245, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 245, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: -2;
}

/* SCANLINE OVERLAY */
.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.1) 0px,
    rgba(0, 0, 0, 0.1) 1px,
    transparent 1px,
    transparent 2px
  );
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

/* CUSTOM CURSOR */
.cursor {
  width: 10px;
  height: 10px;
  background: var(--accent-cyan);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  box-shadow: 0 0 10px var(--accent-cyan), 0 0 20px var(--accent-cyan);
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
}

.cursor-follower {
  width: 40px;
  height: 40px;
  border: 2px solid var(--accent-cyan);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease-out, width 0.2s, height 0.2s;
  mix-blend-mode: screen;
}

/* Enlarge cursor on clickable elements */
a:hover ~ .cursor-follower,
a ~ .cursor-follower,
button:hover ~ .cursor-follower,
button ~ .cursor-follower,
[role="button"]:hover ~ .cursor-follower,
.clickable:hover ~ .cursor-follower {
  width: 50px;
  height: 50px;
  border-color: var(--accent-pink);
}

.cursor.hover {
  transform: translate(-50%, -50%) scale(1.5);
  background: var(--accent-pink);
}

/* ==========================================
   NAVBAR
   ========================================== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 2rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: linear-gradient(180deg, rgba(5, 5, 16, 0.95) 0%, transparent 100%);
  border-bottom: 1px solid var(--border-glow);
  z-index: 100;
  font-family: var(--font-display);
}

.logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent-cyan);
  text-shadow: 0 0 10px var(--accent-cyan), 0 0 20px var(--accent-cyan);
  letter-spacing: 2px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  justify-content: center;
  flex: 1;
}

nav {
  display: flex;
  gap: 1.5rem;
}

nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  transition: 0.3s;
  position: relative;
}

nav a::before {
  content: '//';
  margin-right: 5px;
  opacity: 0;
  transition: 0.3s;
}

nav a:hover {
  color: var(--accent-cyan);
  text-shadow: 0 0 10px var(--accent-cyan);
}

nav a:hover::before {
  opacity: 1;
}

.nav-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse 2s infinite;
  box-shadow: 0 0 10px var(--accent-green);
}

.status-text {
  color: var(--accent-green);
  letter-spacing: 1px;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Nav Right Container */
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Theme Toggle Button */
.theme-toggle {
  background: transparent;
  border: 1px solid var(--border-glow);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin-left: 15px;
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent-cyan);
  transition: all 0.3s ease;
}

.theme-toggle:hover {
  background: rgba(0, 245, 255, 0.1);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 245, 255, 0.3);
}

.theme-toggle:hover svg {
  stroke: var(--accent-pink);
  transform: rotate(180deg);
}

/* Light mode overrides for theme toggle */
body.light-mode .theme-toggle {
  border-color: var(--border-light);
}

body.light-mode .theme-toggle svg {
  stroke: var(--text-dark);
}

body.light-mode .theme-toggle:hover {
  background: rgba(0, 245, 255, 0.15);
  border-color: var(--accent-cyan);
}

body.light-mode .profile-btn {
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.2) 0%, rgba(233, 69, 255, 0.15) 100%);
  border-color: var(--accent-cyan);
  color: var(--text-dark);
  box-shadow: 0 0 15px rgba(0, 245, 255, 0.3), inset 0 0 15px rgba(0, 245, 255, 0.1);
}

body.light-mode .profile-btn:hover {
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.35) 0%, rgba(233, 69, 255, 0.25) 100%);
  box-shadow: 0 0 30px rgba(0, 245, 255, 0.5), 0 0 60px rgba(0, 245, 255, 0.3), inset 0 0 25px rgba(0, 245, 255, 0.15);
  text-shadow: 0 0 10px var(--accent-cyan);
}

body.light-mode .profile-btn svg {
  stroke: var(--text-dark);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

#heroCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-content {
  text-align: center;
  z-index: 1;
}

/* GLITCH TEXT */
.glitch-wrapper {
  position: relative;
  display: inline-block;
}

.glitch {
  font-family: var(--font-display);
  font-size: 72px;
  font-weight: 900;
  color: white;
  text-shadow: 0 0 20px var(--accent-cyan), 0 0 40px var(--accent-cyan);
  letter-spacing: 4px;
  position: relative;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.glitch::before {
  animation: glitch-1 2s infinite linear alternate-reverse;
  color: var(--accent-pink);
  z-index: -1;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
}

.glitch::after {
  animation: glitch-2 3s infinite linear alternate-reverse;
  color: var(--accent-cyan);
  z-index: -2;
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
}

@keyframes glitch-1 {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(-3px, 3px); }
  40% { transform: translate(-3px, -3px); }
  60% { transform: translate(3px, 3px); }
  80% { transform: translate(3px, -3px); }
}

@keyframes glitch-2 {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(3px, -3px); }
  40% { transform: translate(3px, 3px); }
  60% { transform: translate(-3px, -3px); }
  80% { transform: translate(-3px, 3px); }
}

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--text-dim);
  margin-top: 20px;
  letter-spacing: 3px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin-top: 50px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  color: var(--accent-green);
  text-shadow: 0 0 10px var(--accent-green);
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 2px;
  margin-top: 5px;
}

/* CYBER BUTTONS */
.hero-buttons {
  margin-top: 50px;
  display: flex;
  gap: 20px;
  justify-content: center;
}

.cyber-btn {
  padding: 16px 32px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: 0.3s;
}

.cyber-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: 0.5s;
}

.cyber-btn:hover::before {
  left: 100%;
}

.cyber-btn.primary {
  background: var(--accent-cyan);
  color: var(--bg-dark);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  box-shadow: 0 0 20px var(--accent-cyan), inset 0 0 20px rgba(255, 255, 255, 0.3);
}

.cyber-btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 40px var(--accent-cyan), inset 0 0 30px rgba(255, 255, 255, 0.4);
}

.cyber-btn.secondary {
  background: transparent;
  color: var(--accent-cyan);
  border: 2px solid var(--accent-cyan);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.cyber-btn.secondary:hover {
  background: rgba(0, 245, 255, 0.1);
  box-shadow: 0 0 30px var(--accent-cyan);
  transform: translateY(-3px);
}

/* ==========================================
   SECTION STYLES
   ========================================== */
.section {
  padding: 120px 20px;
  text-align: center;
}

.section-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 700;
  color: white;
  margin-bottom: 60px;
  letter-spacing: 4px;
}

.bracket {
  color: var(--accent-cyan);
  text-shadow: 0 0 10px var(--accent-cyan);
}

/* ==========================================
   SYSTEM STATUS CARDS
   ========================================== */
.system-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.system-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  padding: 30px;
  position: relative;
  clip-path: polygon(0 10px, 10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
  transition: 0.3s;
}

.system-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-pink));
}

.system-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 30px var(--border-glow);
  border-color: var(--accent-cyan);
}

.system-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.system-icon {
  font-size: 20px;
  color: var(--accent-cyan);
}

.system-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 2px;
}

.system-value {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--accent-green);
  text-shadow: 0 0 10px var(--accent-green);
  margin-bottom: 15px;
}

.system-bar {
  height: 4px;
  background: rgba(0, 245, 255, 0.2);
  border-radius: 2px;
  overflow: hidden;
}

.system-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-green));
  box-shadow: 0 0 10px var(--accent-cyan);
  width: 0;
  transition: width 1.5s ease-out;
}

/* ==========================================
   SKILLS MODULES
   ========================================== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  padding: 30px;
  text-align: left;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%);
  transition: 0.3s;
  position: relative;
}

.skill-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 15px 15px;
  border-color: transparent transparent var(--accent-pink) transparent;
  opacity: 0;
  transition: 0.3s;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 30px var(--border-glow);
  border-color: var(--accent-pink);
}

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

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

.skill-header h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--accent-cyan);
  text-shadow: 0 0 10px var(--accent-cyan);
}

.skill-level {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-green);
  background: rgba(0, 255, 136, 0.1);
  padding: 4px 10px;
  border: 1px solid var(--accent-green);
}

.skill-tech {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.skill-bar {
  height: 6px;
  background: rgba(0, 245, 255, 0.2);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 15px;
}

.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-pink));
  box-shadow: 0 0 10px var(--accent-cyan);
  width: 0;
  transition: width 1.5s ease-out;
}

.skill-tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-orange);
  background: rgba(255, 107, 0, 0.1);
  padding: 4px 10px;
  border: 1px solid var(--accent-orange);
  letter-spacing: 1px;
}

/* ==========================================
   PROJECTS - MODERN CARD DESIGN
   ========================================== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3),
              0 0 0 1px rgba(0, 245, 255, 0.1) inset;
  clip-path: inset(0 0 0 0 round 16px);
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 0%, rgba(0, 245, 255, 0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 1;
}

.project-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 245, 255, 0.2),
              0 0 0 1px rgba(0, 245, 255, 0.3) inset;
  border-color: var(--accent-cyan);
}

.project-card:hover::before {
  opacity: 1;
}

/* Project Preview Area */
.project-preview {
  position: relative;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}

.project-canvas {
  width: 100%;
  height: 180px;
  display: block;
  background: rgba(0, 10, 20, 0.8);
}

/* Hover Overlay */
.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(5, 5, 16, 0.92);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  border-radius: 16px 16px 0 0;
  z-index: 5;
}

.project-card:hover .project-overlay {
  opacity: 1;
  visibility: visible;
}

.project-overlay-content {
  text-align: center;
  padding: 20px;
  transform: translateY(20px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  max-width: 100%;
}

.project-card:hover .project-overlay-content {
  transform: translateY(0);
}

.project-overlay-content h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--accent-cyan);
  text-shadow: 0 0 20px var(--accent-cyan);
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.project-overlay-content p {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(0, 245, 255, 0.7);
  margin-bottom: 15px;
  line-height: 1.5;
}

/* Status Badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.status-badge .status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.live-badge {
  background: rgba(0, 255, 136, 0.15);
  border: 1px solid rgba(0, 255, 136, 0.4);
  color: var(--accent-green);
}

.live-badge .status-dot {
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
}

.dev-badge {
  background: rgba(255, 107, 0, 0.15);
  border: 1px solid rgba(255, 107, 0, 0.4);
  color: var(--accent-orange);
}

.dev-badge .status-dot {
  background: var(--accent-orange);
  box-shadow: 0 0 8px var(--accent-orange);
}

/* Project Buttons */
.project-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.project-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  letter-spacing: 1px;
}

.project-btn svg {
  width: 16px;
  height: 16px;
}

.project-btn.primary {
  background: linear-gradient(135deg, var(--accent-cyan), rgba(0, 245, 255, 0.7));
  color: var(--bg-dark);
  box-shadow: 0 4px 15px rgba(0, 245, 255, 0.3);
}

.project-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 245, 255, 0.5);
}

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

.project-btn.secondary:hover {
  background: rgba(0, 245, 255, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 245, 255, 0.2);
}

/* Shine Effect */
.project-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transition: left 0.6s ease;
  pointer-events: none;
  z-index: 2;
}

.project-card:hover .project-shine {
  left: 100%;
}

/* Project Info */
.project-info {
  padding: 25px;
  text-align: left;
  position: relative;
  z-index: 3;
  background: linear-gradient(180deg, rgba(0, 20, 40, 0.8) 0%, rgba(0, 20, 40, 0.95) 100%);
}

.project-info h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 8px;
  text-shadow: 0 0 10px rgba(0, 245, 255, 0.3);
}

.project-info p {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 15px;
}

.live {
  color: var(--accent-green);
  text-shadow: 0 0 5px var(--accent-green);
}

.dev {
  color: var(--accent-orange);
  text-shadow: 0 0 5px var(--accent-orange);
}

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

/* ==========================================
   CONTACT FORM
   ========================================== */
.cyber-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.form-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.form-group label {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.form-group input,
.form-group textarea {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  padding: 15px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 14px;
  outline: none;
  transition: 0.3s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px var(--border-glow);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.cyber-btn.submit {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-pink));
  color: var(--bg-dark);
  font-size: 16px;
  padding: 18px 36px;
  align-self: center;
  clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
  box-shadow: 0 0 30px var(--border-glow);
}

.cyber-btn.submit:hover {
  transform: scale(1.05);
  box-shadow: 0 0 50px var(--accent-cyan);
}

/* ==========================================
   CONTACT FORM
   ========================================== */
.contact-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px;
}

.contact-form {
  background: linear-gradient(145deg, rgba(10, 20, 40, 0.95), rgba(5, 10, 25, 0.98));
  border: 1px solid rgba(0, 245, 255, 0.15);
  border-radius: 24px;
  padding: 40px;
  backdrop-filter: blur(20px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 245, 255, 0.05);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-form .form-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.contact-form .form-group label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-bottom: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.contact-form .form-group input,
.contact-form .form-group textarea {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(0, 245, 255, 0.2);
  padding: 16px 18px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
  border-radius: 12px;
}

.contact-form .form-group input::placeholder,
.contact-form .form-group textarea::placeholder {
  color: var(--text-dim);
  opacity: 0.7;
}

.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 25px rgba(0, 245, 255, 0.15), inset 0 0 20px rgba(0, 245, 255, 0.03);
  background: rgba(0, 0, 0, 0.4);
}

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

.form-buttons {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.send-btn {
  background: linear-gradient(135deg, #25D366, #128C7E) !important;
  color: #ffffff !important;
  font-size: 15px !important;
  padding: 18px 36px !important;
  border: none !important;
  clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px) !important;
  box-shadow: 0 0 30px rgba(37, 211, 102, 0.3) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 1px;
}

.send-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 0 40px rgba(37, 211, 102, 0.5) !important;
}

.send-btn svg {
  width: 18px;
  height: 18px;
}

.whatsapp-btn {
  background: transparent !important;
  border: 1px solid rgba(0, 245, 255, 0.3) !important;
  color: var(--text-primary) !important;
  font-size: 14px !important;
  padding: 16px 30px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 1px;
  text-decoration: none;
}

.whatsapp-btn:hover {
  background: rgba(0, 245, 255, 0.08) !important;
  border-color: var(--accent-cyan) !important;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(0, 245, 255, 0.15);
}

.whatsapp-btn svg {
  width: 18px;
  height: 18px;
}

.contact-status {
  text-align: center;
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent-cyan);
  display: none;
}

.contact-status.show {
  display: block;
  animation: fadeInUp 0.4s ease;
}

.contact-status.redirecting {
  color: #25D366;
}

/* ==========================================
   TERMINAL
   ========================================== */
.terminal-section {
  padding: 100px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#terminal {
  width: 100%;
  max-width: 900px;
  height: 400px;
  background: rgba(0, 0, 0, 0.8);
  border: 1px solid var(--accent-cyan);
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  padding: 20px;
  font-family: var(--font-mono);
  color: var(--accent-green);
  box-shadow: 0 0 30px var(--border-glow), inset 0 0 50px rgba(0, 245, 255, 0.05);
  overflow-y: auto;
}

#output {
  margin-bottom: 15px;
  line-height: 1.8;
}

.input-line {
  display: flex;
  align-items: center;
  margin-top: 10px;
}

.prompt {
  margin-right: 12px;
  color: var(--accent-cyan);
  font-weight: bold;
  text-shadow: 0 0 5px var(--accent-cyan);
}

#commandInput {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--accent-green);
  font-family: var(--font-mono);
  font-size: 14px;
  caret-color: var(--accent-cyan);
}

/* ==========================================
   PROFILE SIDEBAR
   ========================================== */
.profile-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.15) 0%, rgba(233, 69, 255, 0.1) 100%);
  border: 1px solid var(--accent-cyan);
  border-radius: 8px;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  box-shadow: 0 0 15px rgba(0, 245, 255, 0.2), inset 0 0 15px rgba(0, 245, 255, 0.05);
}

.profile-btn svg {
  width: 16px;
  height: 16px;
}

.profile-btn:hover {
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.25) 0%, rgba(233, 69, 255, 0.2) 100%);
  box-shadow: 0 0 25px rgba(0, 245, 255, 0.4), 0 0 50px rgba(0, 245, 255, 0.2), inset 0 0 20px rgba(0, 245, 255, 0.1);
  transform: translateY(-2px);
  border-color: var(--accent-cyan);
  text-shadow: 0 0 10px var(--accent-cyan);
}

.profile-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

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

.profile-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 380px;
  max-width: 100%;
  height: 100%;
  background: rgba(10, 10, 25, 0.95);
  backdrop-filter: blur(20px);
  border-left: 1px solid var(--border-glow);
  z-index: 9999;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.profile-sidebar.active {
  transform: translateX(0);
}

.sidebar-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.sidebar-close svg {
  width: 20px;
  height: 20px;
}

.sidebar-close:hover {
  background: rgba(255, 0, 100, 0.2);
  border-color: rgba(255, 0, 100, 0.5);
  color: #ff0064;
  transform: rotate(90deg);
}

.profile-header {
  padding: 50px 30px 30px;
  text-align: center;
  border-bottom: 1px solid rgba(0, 245, 255, 0.1);
}

.profile-image-wrapper {
  display: inline-block;
  padding: 4px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-pink));
  border-radius: 50%;
  margin-bottom: 20px;
  box-shadow: 0 0 30px rgba(0, 245, 255, 0.4), 0 0 60px rgba(255, 0, 255, 0.2);
}

.profile-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.profile-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.profile-role {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--accent-cyan);
  letter-spacing: 0.5px;
}

.profile-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.profile-section .section-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.info-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 14px;
}

.info-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--accent-cyan);
}

.social-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  color: var(--text-main);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 14px;
  transition: all 0.3s ease;
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.social-link.instagram {
  border-color: rgba(224, 61, 14, 0.2);
}

.social-link.instagram:hover {
  background: rgba(224, 61, 14, 0.15);
  border-color: rgba(224, 61, 14, 0.4);
  box-shadow: 0 0 20px rgba(224, 61, 14, 0.2);
}

.social-link.instagram:hover svg {
  stroke: #E03D0E;
}

.social-link.linkedin {
  border-color: rgba(10, 102, 194, 0.2);
}

.social-link.linkedin:hover {
  background: rgba(10, 102, 194, 0.15);
  border-color: rgba(10, 102, 194, 0.4);
  box-shadow: 0 0 20px rgba(10, 102, 194, 0.2);
}

.social-link.linkedin:hover svg {
  stroke: #0A66C2;
}

.social-link.github {
  border-color: rgba(255, 255, 255, 0.15);
}

.social-link.github:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.social-link.github:hover svg {
  stroke: #fff;
}

.social-link.netlify {
  border-color: rgba(0, 199, 183, 0.2);
}

.social-link.netlify:hover {
  background: rgba(0, 199, 183, 0.15);
  border-color: rgba(0, 199, 183, 0.4);
  box-shadow: 0 0 20px rgba(0, 199, 183, 0.2);
}

.social-link.netlify:hover svg {
  stroke: #00C7B7;
}

@media (max-width: 480px) {
  .profile-sidebar {
    width: 100%;
  }
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  padding: 40px 20px;
  text-align: center;
  border-top: 1px solid var(--border-glow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.footer-social {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: pointer;
}

.social-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.social-btn:hover {
  transform: scale(1.05);
  transition: all 0.3s ease;
}

.social-btn.instagram {
  background: rgba(224, 61, 14, 0.1);
  border-color: rgba(224, 61, 14, 0.3);
}

.social-btn.instagram:hover {
  background: rgba(224, 61, 14, 0.2);
  box-shadow: 0 0 20px rgba(224, 61, 14, 0.3);
  border-color: rgba(224, 61, 14, 0.5);
  color: #E03D0E;
}

.social-btn.instagram:hover svg {
  stroke: #E03D0E;
}

.social-btn.linkedin {
  background: rgba(10, 102, 194, 0.1);
  border-color: rgba(10, 102, 194, 0.3);
}

.social-btn.linkedin:hover {
  background: rgba(10, 102, 194, 0.2);
  box-shadow: 0 0 20px rgba(10, 102, 194, 0.3);
  border-color: rgba(10, 102, 194, 0.5);
  color: #0A66C2;
}

.social-btn.linkedin:hover svg {
  stroke: #0A66C2;
}

.social-btn.github {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.social-btn.github:hover {
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.social-btn.github:hover svg {
  stroke: #fff;
}

.social-btn.netlify {
  background: rgba(0, 199, 183, 0.1);
  border-color: rgba(0, 199, 183, 0.3);
}

.social-btn.netlify:hover {
  background: rgba(0, 199, 183, 0.2);
  box-shadow: 0 0 20px rgba(0, 199, 183, 0.3);
  border-color: rgba(0, 199, 183, 0.5);
  color: #00C7B7;
}

.social-btn.netlify:hover svg {
  stroke: #00C7B7;
}

.footer-credit {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 2px;
  margin: 0;
}

.footer p {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 2px;
}

/* ==========================================
   MOBILE RESPONSIVE
   ========================================== */
@media (max-width: 968px) {
  .system-grid,
  .skills-grid,
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

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

.section {
  animation: fadeInUp 0.8s ease;
}

@keyframes borderGlow {
  0%, 100% {
    box-shadow: 0 0 10px var(--accent-cyan);
  }
  50% {
    box-shadow: 0 0 25px var(--accent-cyan);
  }
}

/* ==========================================
   FLOATING AI CHATBOT
   ========================================== */
.floating-chat {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  transform: none;
}

.chat-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-pink));
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px var(--accent-cyan), 0 0 40px rgba(0, 245, 255, 0.3);
  transition: transform 0.3s, box-shadow 0.3s;
}

.chat-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 0 30px var(--accent-cyan), 0 0 60px rgba(0, 245, 255, 0.5);
}

.chat-icon {
  font-size: 28px;
  color: var(--bg-dark);
  font-weight: bold;
}

.chat-popup {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 340px;
  height: 450px;
  background: rgba(5, 5, 16, 0.95);
  border: 1px solid var(--accent-cyan);
  border-radius: 16px;
  display: none;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 0 30px var(--border-glow), 0 10px 40px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(20px);
  animation: slideUp 0.3s ease;
}

.chat-popup.active {
  display: flex;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: linear-gradient(90deg, rgba(0, 245, 255, 0.15), rgba(255, 0, 255, 0.15));
  border-bottom: 1px solid var(--border-glow);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-cyan);
  letter-spacing: 1px;
}

.chat-close {
  background: none;
  border: none;
  color: var(--accent-pink);
  font-size: 24px;
  cursor: pointer;
  transition: transform 0.2s;
  line-height: 1;
}

.chat-close:hover {
  transform: scale(1.2);
}

.chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: var(--accent-cyan);
  border-radius: 3px;
}

.message {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
  animation: fadeInMsg 0.3s ease;
}

@keyframes fadeInMsg {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message.bot {
  align-self: flex-start;
  background: rgba(0, 245, 255, 0.1);
  border: 1px solid rgba(0, 245, 255, 0.3);
  color: var(--accent-cyan);
  border-bottom-left-radius: 4px;
}

.message.user {
  align-self: flex-end;
  background: rgba(255, 0, 255, 0.1);
  border: 1px solid rgba(255, 0, 255, 0.3);
  color: var(--accent-pink);
  border-bottom-right-radius: 4px;
}

.chat-input-area {
  display: flex;
  gap: 10px;
  padding: 16px;
  border-top: 1px solid var(--border-glow);
  background: rgba(0, 0, 0, 0.3);
}

.chat-input-area input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border-glow);
  border-radius: 25px;
  background: rgba(0, 245, 255, 0.05);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 13px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.chat-input-area input::placeholder {
  color: var(--text-dim);
}

.chat-input-area input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px var(--border-glow);
}

.chat-input-area button {
  padding: 12px 20px;
  border: none;
  border-radius: 25px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-pink));
  color: var(--bg-dark);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.chat-input-area button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px var(--accent-cyan);
}

/* Mobile responsive */
@media (max-width: 480px) {
  .floating-chat {
    bottom: 20px;
    right: 20px;
  }

  .chat-popup {
    width: 300px;
    height: 420px;
    bottom: 75px;
    right: -10px;
  }
}

/* ==========================================
   ACHIEVEMENTS SECTION
   ========================================== */
.achievements-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 50px;
}

.tab-btn {
  padding: 14px 36px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  border: 1px solid var(--border-glow);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.3s ease;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.tab-btn:hover {
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
  background: rgba(0, 245, 255, 0.05);
}

.tab-btn.active {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-pink));
  color: var(--bg-dark);
  border-color: transparent;
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.4);
}

.tab-content {
  display: none;
  animation: fadeInUp 0.5s ease;
}

.tab-content.active {
  display: block;
}

/* Skills Grid */
.skills-grid-achievements {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.skill-item {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 16px;
  padding: 25px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.skill-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-pink));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.skill-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 245, 255, 0.15);
  border-color: var(--accent-cyan);
}

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

.skill-item .skill-icon-html,
.skill-item .skill-icon-css,
.skill-item .skill-icon-js,
.skill-item .skill-icon-git,
.skill-item .skill-icon-responsive,
.skill-item .skill-icon-api,
.skill-item .skill-icon-ui,
.skill-item .skill-icon-ai {
  width: 50px;
  height: 50px;
  margin: 0 auto 15px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.skill-icon-html {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e34f26' stroke-width='2'%3E%3Cpath d='M12 2L2 19.5h7l1.5-3.5 2 3.5h4L12 2z'/%3E%3Cpath d='M2 19.5h20'/%3E%3C/svg%3E");
}

.skill-icon-css {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231572c2' stroke-width='2'%3E%3Cpath d='M12 2L2 19.5h7l1.5-3.5 2 3.5h4L12 2z'/%3E%3Cpath d='M2 19.5h20'/%3E%3C/svg%3E");
}

.skill-icon-js {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f7df1e' stroke-width='2'%3E%3Crect x='2' y='2' width='20' height='20' rx='2'/%3E%3Ctext x='6' y='17' font-size='10' fill='%23f7df1e' stroke='none'%3EJ%3C/text%3E%3C/svg%3E");
}

.skill-icon-git {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f05032' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 2a5 5 0 0 0-5 5v3a5 5 0 0 0 5 5 5 5 0 0 0 5-5V7a5 5 0 0 0-5-5z'/%3E%3Cpath d='M12 2v8'/%3E%3Cpath d='M8 6h8'/%3E%3C/svg%3E");
}

.skill-icon-responsive {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300f5ff' stroke-width='2'%3E%3Crect x='2' y='3' width='20' height='14' rx='2'/%3E%3Cpath d='M8 21h8M12 17v4'/%3E%3C/svg%3E");
}

.skill-icon-api {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300ff88' stroke-width='2'%3E%3Cpath d='M4 4h16v16H4z'/%3E%3Cpath d='M9 9h6v6H9z'/%3E%3Cpath d='M9 1v3M15 1v3M9 20v3M15 20v3M1 9h3M1 15h3M20 9h3M20 15h3'/%3E%3C/svg%3E");
}

.skill-icon-ui {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff00ff' stroke-width='2'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Cpath d='M3 9h18M9 21V9'/%3E%3C/svg%3E");
}

.skill-icon-ai {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff6b00' stroke-width='2'%3E%3Ccircle cx='12' cy='8' r='5'/%3E%3Cpath d='M12 13v8M7 16l5 5 5-5'/%3E%3Cpath d='M8.5 5.5L12 8l3.5-2.5'/%3E%3C/svg%3E");
}

.skill-item h4 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: white;
  margin-bottom: 15px;
  letter-spacing: 1px;
}

.skill-progress {
  height: 6px;
  background: rgba(0, 245, 255, 0.15);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 10px;
}

.skill-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-pink));
  border-radius: 3px;
  width: 0;
  transition: width 1.5s ease-out;
  box-shadow: 0 0 10px var(--accent-cyan);
}

.skill-percent {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-green);
  text-shadow: 0 0 5px var(--accent-green);
}

/* Certifications Grid */
.certifications-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

.cert-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: 16px;
  padding: 30px 25px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.cert-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 0%, rgba(0, 245, 255, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.cert-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 245, 255, 0.2);
  border-color: var(--accent-cyan);
}

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

.cert-badge {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-pink));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.4);
}

.cert-badge svg {
  width: 30px;
  height: 30px;
  stroke: var(--bg-dark);
}

.cert-card h3 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: white;
  margin-bottom: 10px;
  letter-spacing: 1px;
  line-height: 1.4;
}

.cert-org {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-cyan);
  margin-bottom: 5px;
}

.cert-date {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.cert-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: transparent;
  border: 1px solid var(--accent-cyan);
  border-radius: 25px;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.cert-btn:hover {
  background: rgba(0, 245, 255, 0.1);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.3);
  transform: translateY(-2px);
}

/* ==========================================
   RESUME SECTION
   ========================================== */
.resume-buttons {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.resume-btn {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding: 20px 40px;
  border-radius: 50px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 2px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.resume-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.6s ease;
}

.resume-btn:hover::before {
  left: 100%;
}

.resume-btn svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.resume-btn.download {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-pink));
  color: var(--bg-dark);
  box-shadow: 0 0 30px rgba(0, 245, 255, 0.4), 0 10px 40px rgba(0, 0, 0, 0.3);
}

.resume-btn.download:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 0 50px rgba(0, 245, 255, 0.6), 0 20px 60px rgba(0, 0, 0, 0.4);
}

.resume-btn.view {
  background: transparent;
  border: 2px solid var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.2);
}

.resume-btn.view:hover {
  background: rgba(0, 245, 255, 0.1);
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 0 40px rgba(0, 245, 255, 0.4);
}

/* ==========================================
   DOCUMENT MODAL
   ========================================== */
.doc-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

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

.doc-modal {
  background: rgba(10, 10, 25, 0.95);
  border: 1px solid rgba(0, 245, 255, 0.2);
  border-radius: 20px;
  padding: 40px;
  max-width: 700px;
  width: 90%;
  position: relative;
  transform: scale(0.8) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5), 0 0 40px rgba(0, 245, 255, 0.1);
  backdrop-filter: blur(20px);
}

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

.doc-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.doc-modal-close svg {
  width: 20px;
  height: 20px;
}

.doc-modal-close:hover {
  background: rgba(255, 0, 100, 0.2);
  border-color: rgba(255, 0, 100, 0.5);
  color: var(--accent-pink);
  transform: rotate(90deg);
}

.doc-modal-header {
  text-align: center;
  margin-bottom: 35px;
}

.doc-modal-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-pink));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px rgba(0, 245, 255, 0.4);
}

.doc-modal-icon svg {
  width: 35px;
  height: 35px;
  stroke: var(--bg-dark);
}

.doc-modal-header h2 {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: white;
  margin-bottom: 10px;
  letter-spacing: 2px;
}

.doc-modal-header p {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-dim);
}

.doc-modal-content {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.doc-card {
  background: rgba(0, 20, 40, 0.5);
  border: 1px solid rgba(0, 245, 255, 0.15);
  border-radius: 16px;
  padding: 30px 25px;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  z-index: 2;
}

.doc-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 0%, rgba(0, 245, 255, 0.1) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}

.doc-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0, 245, 255, 0.15);
  border-color: var(--accent-cyan);
}

.doc-card:hover::before {
  opacity: 1;
}

.doc-card-icon {
  width: 55px;
  height: 55px;
  margin: 0 auto 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.doc-card-icon svg {
  width: 28px;
  height: 28px;
}

.resume-icon {
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.2), rgba(0, 245, 255, 0.05));
  border: 1px solid rgba(0, 245, 255, 0.3);
}

.resume-icon svg {
  stroke: var(--accent-cyan);
}

.cv-icon {
  background: linear-gradient(135deg, rgba(255, 0, 255, 0.2), rgba(255, 0, 255, 0.05));
  border: 1px solid rgba(255, 0, 255, 0.3);
}

.cv-icon svg {
  stroke: var(--accent-pink);
}

.doc-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: white;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.doc-card p {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 20px;
}

.doc-card-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 2;
}

.doc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 12px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.doc-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.doc-btn.primary {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-pink));
  color: var(--bg-dark);
  box-shadow: 0 4px 15px rgba(0, 245, 255, 0.3);
}

.doc-btn.primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 245, 255, 0.5);
}

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

.doc-btn.secondary:hover {
  background: rgba(0, 245, 255, 0.1);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 245, 255, 0.2);
}

@media (max-width: 600px) {
  .doc-modal {
    padding: 30px 20px;
  }

  .doc-modal-content {
    grid-template-columns: 1fr;
  }

  .doc-modal-header h2 {
    font-size: 22px;
  }
}

/* ==========================================
   ACHIEVEMENTS RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
  .skills-grid-achievements,
  .certifications-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .skills-grid-achievements,
  .certifications-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }

  .achievements-tabs {
    flex-direction: column;
    align-items: center;
    gap: 15px;
  }

  .tab-btn {
    width: 200px;
  }

  .resume-buttons {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .resume-btn {
    width: 280px;
    justify-content: center;
  }
}

/* ==========================================
   PREMIUM CERTIFICATION SHOWCASE
   ========================================== */

/* Certification Stats Bar */
.cert-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto 40px;
}

.cert-stat-card {
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.1), rgba(255, 0, 255, 0.05));
  border: 1px solid rgba(0, 245, 255, 0.2);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.cert-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-pink));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.cert-stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 245, 255, 0.2);
  border-color: var(--accent-cyan);
}

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

.cert-stat-icon {
  font-size: 36px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 245, 255, 0.1);
  border-radius: 12px;
  flex-shrink: 0;
}

.cert-stat-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cert-stat-value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--accent-cyan);
  text-shadow: 0 0 20px rgba(0, 245, 255, 0.5);
  line-height: 1;
}

.cert-stat-label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Search and Filter Controls */
.cert-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 20px;
  background: rgba(0, 20, 40, 0.4);
  border: 1px solid rgba(0, 245, 255, 0.1);
  border-radius: 16px;
  backdrop-filter: blur(10px);
}

.cert-search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 250px;
  padding: 12px 16px;
  background: rgba(0, 245, 255, 0.05);
  border: 1px solid rgba(0, 245, 255, 0.2);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.cert-search-box:focus-within {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(0, 245, 255, 0.2);
}

.cert-search-box svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent-cyan);
  flex-shrink: 0;
}

.cert-search-box input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 14px;
  outline: none;
}

.cert-search-box input::placeholder {
  color: var(--text-dim);
}

.cert-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cert-filter-btn {
  padding: 10px 18px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid rgba(0, 245, 255, 0.2);
  background: transparent;
  color: var(--text-dim);
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cert-filter-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(0, 245, 255, 0.05);
}

.cert-filter-btn.active {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-pink));
  color: var(--bg-dark);
  border-color: transparent;
  box-shadow: 0 0 15px rgba(0, 245, 255, 0.3);
}

.cert-sort-box {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cert-sort-box label {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}

.cert-sort-box select {
  padding: 10px 16px;
  background: rgba(0, 245, 255, 0.05);
  border: 1px solid rgba(0, 245, 255, 0.2);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 13px;
  cursor: pointer;
  outline: none;
  transition: all 0.3s ease;
}

.cert-sort-box select:focus {
  border-color: var(--accent-cyan);
}

.cert-sort-box select option {
  background: var(--bg-dark);
  color: var(--text-primary);
}

/* Premium Certification Grid */
.premium-certs-grid {
  display: flex;
  gap: 24px;
  max-width: 100%;
  margin: 0 auto;
  overflow-x: auto;
  padding: 10px 0 30px;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 245, 255, 0.3) rgba(255, 255, 255, 0.05);
}

.premium-certs-grid::-webkit-scrollbar {
  height: 6px;
}

.premium-certs-grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
}

.premium-certs-grid::-webkit-scrollbar-thumb {
  background: rgba(0, 245, 255, 0.3);
  border-radius: 3px;
}

/* Premium Certificate Card */
.premium-cert-card {
  flex: 0 0 320px;
  min-height: 420px;
  background: linear-gradient(145deg, rgba(10, 20, 40, 0.95), rgba(5, 10, 25, 0.98));
  border: 1px solid rgba(0, 245, 255, 0.12);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  backdrop-filter: blur(20px);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.premium-cert-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 0%, rgba(0, 245, 255, 0.06) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

.premium-cert-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 245, 255, 0.2), 0 0 30px rgba(0, 245, 255, 0.08);
  border-color: rgba(0, 245, 255, 0.3);
}

.premium-cert-card:hover::before {
  opacity: 1;
}

.premium-cert-card.hidden {
  display: none;
}

/* Certificate Image */
.premium-cert-image {
  position: relative;
  height: 160px;
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.08), rgba(255, 0, 255, 0.04));
  overflow: hidden;
}

.premium-cert-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.premium-cert-card:hover .premium-cert-image img {
  transform: scale(1.05);
}

.premium-cert-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.premium-cert-card:hover .premium-cert-overlay {
  opacity: 1;
}

.premium-cert-view-text {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--accent-cyan);
  text-transform: uppercase;
}

/* Certificate Content */
.premium-cert-content {
  padding: 20px;
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.premium-cert-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.premium-cert-org {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cert-verified {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent-green);
}

.cert-verified svg {
  width: 14px;
  height: 14px;
  stroke: var(--accent-green);
}

.premium-cert-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}

.premium-cert-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
  line-height: 1.3;
  letter-spacing: 0.5px;
}

.premium-cert-issuer {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-pink);
  margin-bottom: 15px;
  line-height: 1.4;
}

.premium-cert-description {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Skills Tags */
.premium-cert-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.premium-cert-skill-tag {
  padding: 6px 12px;
  background: rgba(0, 255, 136, 0.08);
  border: 1px solid rgba(0, 255, 136, 0.2);
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-green);
}

/* Action Buttons */
.premium-cert-actions {
  display: flex;
  gap: 12px;
}

.premium-cert-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid var(--border-glow);
  min-width: 150px;
}

.premium-cert-btn svg {
  width: 14px;
  height: 14px;
}

.premium-cert-btn.primary {
  background: var(--accent-cyan);
  color: var(--bg-dark);
  border-color: var(--accent-cyan);
}

.premium-cert-btn.primary:hover {
  background: transparent;
  color: var(--accent-cyan);
}

.premium-cert-btn.secondary {
  background: transparent;
  border: 1px solid var(--border-glow);
  color: var(--text-dim);
}

.premium-cert-btn.secondary:hover {
  background: rgba(0, 245, 255, 0.1);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-3px);
}

/* No Results Message */
.cert-no-results {
  text-align: center;
  padding: 60px 20px;
  max-width: 400px;
  margin: 0 auto;
}

.cert-no-results svg {
  width: 60px;
  height: 60px;
  stroke: var(--text-dim);
  margin-bottom: 20px;
}

.cert-no-results h3 {
  font-family: var(--font-display);
  font-size: 20px;
  color: white;
  margin-bottom: 10px;
}

.cert-no-results p {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-dim);
}

/* Certificate Modal */
.cert-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

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

.cert-modal {
  background: linear-gradient(145deg, rgba(10, 20, 40, 0.98), rgba(5, 10, 25, 0.99));
  border: 1px solid rgba(0, 245, 255, 0.2);
  border-radius: 24px;
  max-width: 900px;
  width: 95%;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
  z-index: 1;
  transform: scale(0.85) translateY(30px);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.6), 0 0 50px rgba(0, 245, 255, 0.1);
}

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

.cert-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
}

.cert-modal-close svg {
  width: 20px;
  height: 20px;
}

.cert-modal-close:hover {
  background: rgba(255, 0, 100, 0.2);
  border-color: rgba(255, 0, 100, 0.5);
  color: var(--accent-pink);
  transform: rotate(90deg);
}

.cert-modal-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-height: 90vh;
}

.cert-modal-image {
  position: relative;
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.1), rgba(255, 0, 255, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.cert-modal-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cert-modal-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  text-align: center;
}

.cert-modal-image-overlay span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
}

.cert-modal-details {
  padding: 40px;
  overflow-y: auto;
  max-height: 90vh;
}

.cert-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.cert-modal-category {
  padding: 8px 16px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-pink));
  border-radius: 25px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--bg-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cert-modal-verified {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(0, 255, 136, 0.1);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent-green);
}

.cert-modal-verified svg {
  width: 16px;
  height: 16px;
  stroke: var(--accent-green);
}

.cert-modal-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: white;
  margin-bottom: 10px;
  line-height: 1.2;
}

.cert-modal-issuer {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-pink);
  margin-bottom: 5px;
}

.cert-modal-date {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 25px;
}

.cert-modal-description {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 25px;
}

.cert-modal-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 30px;
}

.cert-modal-skills .premium-cert-skill-tag {
  padding: 8px 16px;
  font-size: 12px;
}

.cert-modal-actions {
  display: flex;
  gap: 15px;
}

.cert-modal-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid var(--border-glow);
  min-width: 150px;
}

.cert-modal-btn svg {
  width: 14px;
  height: 14px;
}

.cert-modal-btn.primary {
  background: var(--accent-cyan);
  color: var(--bg-dark);
  border-color: var(--accent-cyan);
}

.cert-modal-btn.primary:hover {
  background: transparent;
  color: var(--accent-cyan);
}

.cert-modal-btn.secondary {
  background: transparent;
  border: 1px solid var(--border-glow);
  color: var(--text-dim);
}

.cert-modal-btn.secondary:hover {
  background: rgba(0, 245, 255, 0.1);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* Certification Showcase Responsive */
@media (max-width: 1024px) {
  .premium-certs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  .cert-stats-bar {
    grid-template-columns: 1fr;
  }

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

  .cert-controls {
    flex-direction: column;
    align-items: stretch;
  }

  .cert-filter-group {
    justify-content: center;
  }

  .cert-sort-box {
    justify-content: center;
  }

  .cert-modal-content {
    grid-template-columns: 1fr;
  }

  .cert-modal-image {
    height: 250px;
  }

  .cert-modal-details {
    padding: 25px;
  }

  .cert-modal-title {
    font-size: 22px;
  }

  .cert-modal-actions {
    flex-direction: column;
  }

  .premium-cert-actions {
    flex-direction: column;
  }
}

/* ==========================================
   LIGHT MODE - CERTIFICATION SHOWCASE
   ========================================== */
body.light-mode .cert-stats-bar {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--border-light);
}

body.light-mode .cert-stat-card {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 245, 255, 0.2);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

body.light-mode .cert-stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 245, 255, 0.15);
  border-color: var(--accent-cyan);
}

body.light-mode .cert-stat-value {
  color: var(--text-dark);
  text-shadow: 0 0 20px rgba(0, 245, 255, 0.3);
}

body.light-mode .cert-stat-label {
  color: var(--text-secondary-dark);
}

body.light-mode .cert-stat-icon {
  background: rgba(0, 245, 255, 0.1);
}

body.light-mode .cert-controls {
  background: rgba(255, 255, 255, 0.8);
  border-color: var(--border-light);
}

body.light-mode .cert-search-box {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 245, 255, 0.2);
}

body.light-mode .cert-search-box input {
  color: var(--text-dark);
}

body.light-mode .cert-search-box input::placeholder {
  color: var(--text-secondary-dark);
}

body.light-mode .cert-filter-btn {
  border-color: rgba(0, 245, 255, 0.2);
  color: var(--text-secondary-dark);
}

body.light-mode .cert-filter-btn:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(0, 245, 255, 0.05);
}

body.light-mode .cert-filter-btn.active {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-pink));
  color: var(--bg-light);
  border-color: transparent;
}

body.light-mode .cert-sort-box select {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 245, 255, 0.2);
  color: var(--text-dark);
}

body.light-mode .cert-sort-box label {
  color: var(--text-secondary-dark);
}

body.light-mode .premium-cert-card {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(0, 245, 255, 0.15);
}

body.light-mode .premium-cert-card:hover {
  box-shadow: 0 25px 50px rgba(0, 245, 255, 0.2), 0 0 30px rgba(0, 245, 255, 0.08);
  border-color: var(--accent-cyan);
}

body.light-mode .premium-cert-header {
  border-bottom-color: rgba(0, 245, 255, 0.1);
}

body.light-mode .premium-cert-org {
  color: var(--text-secondary-dark);
}

body.light-mode .cert-verified {
  color: var(--accent-green);
}

body.light-mode .cert-verified svg {
  stroke: var(--accent-green);
}

body.light-mode .premium-cert-title {
  color: var(--text-dark);
}

body.light-mode .premium-cert-meta {
  color: var(--text-secondary-dark);
}

body.light-mode .premium-cert-issuer {
  color: var(--accent-pink);
}

body.light-mode .premium-cert-date {
  color: var(--text-secondary-dark);
}

body.light-mode .premium-cert-btn.primary {
  background: var(--accent-cyan);
  color: var(--text-dark);
  border-color: var(--accent-cyan);
}

body.light-mode .premium-cert-btn.secondary {
  border-color: var(--border-light);
  color: var(--text-secondary-dark);
}

body.light-mode .premium-cert-btn.secondary:hover {
  background: rgba(0, 245, 255, 0.1);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

body.light-mode .cert-modal-overlay {
  background: rgba(0, 0, 0, 0.7);
}

body.light-mode .cert-modal {
  background: rgba(255, 255, 255, 0.98);
}

body.light-mode .cert-modal-close {
  color: var(--text-dark);
}

body.light-mode .cert-modal-close:hover {
  color: var(--accent-pink);
}

body.light-mode .cert-modal-category {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-pink));
  color: var(--bg-light);
}

body.light-mode .cert-modal-verified {
  color: var(--accent-green);
}

body.light-mode .cert-modal-title {
  color: var(--text-dark);
}

body.light-mode .cert-modal-issuer {
  color: var(--accent-pink);
}

body.light-mode .cert-modal-date {
  color: var(--text-secondary-dark);
}

body.light-mode .cert-modal-description {
  color: var(--text-secondary-dark);
}

body.light-mode .cert-modal-btn.primary {
  background: var(--accent-cyan);
  color: var(--text-dark);
  border-color: var(--accent-cyan);
}

body.light-mode .cert-modal-btn.secondary {
  border-color: var(--border-light);
  color: var(--text-secondary-dark);
}

body.light-mode .cert-modal-btn.secondary:hover {
  background: rgba(0, 245, 255, 0.1);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

body.light-mode .cert-no-results {
  color: var(--text-secondary-dark);
}

body.light-mode .cert-no-results svg {
  stroke: var(--text-secondary-dark);
}

/* ==========================================
   DOCUMENT MODAL - LIGHT MODE
   ========================================== */
body.light-mode .doc-card {
  background: var(--bg-card);
  border-color: rgba(0, 245, 255, 0.2);
}

body.light-mode .doc-card h3 {
  color: var(--text-dark);
}

body.light-mode .doc-card p {
  color: var(--text-secondary-dark);
}

body.light-mode .doc-btn.primary {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-pink));
  color: #ffffff;
}

body.light-mode .doc-btn.secondary {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

body.light-mode .doc-btn.secondary:hover {
  background: rgba(0, 245, 255, 0.1);
}

/* ==========================================
   COMPREHENSIVE MOBILE OPTIMIZATION
   Only affects screens 768px and below
   ========================================== */
@media (max-width: 768px) {

  /* GLOBAL FIXES */
  body {
    cursor: auto;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
  }

  .cursor,
  .cursor-follower {
    display: none !important;
  }

  .section {
    padding: 60px 20px;
  }

  .section-title {
    font-size: clamp(20px, 5vw, 26px);
    margin-bottom: 30px;
    letter-spacing: 2px;
  }

  /* NAVBAR */
  .navbar {
    padding: 10px 20px;
    gap: 8px;
  }

  .logo {
    font-size: clamp(14px, 4vw, 18px);
    letter-spacing: 1px;
    white-space: nowrap;
  }

  .nav-links {
    display: none;
  }

  .nav-status {
    display: none;
  }

  .profile-btn {
    padding: 4px 10px;
    font-size: 9px;
    gap: 4px;
    border-radius: 6px;
    white-space: nowrap;
  }

  .profile-btn svg {
    width: 12px;
    height: 12px;
  }

  .theme-toggle {
    width: 30px;
    height: 30px;
    margin-left: 6px;
    flex-shrink: 0;
  }

  .theme-toggle svg {
    width: 14px;
    height: 14px;
  }

  /* HERO - Fit exactly within first viewport */
  .hero {
    height: 100dvh;
    min-height: -webkit-fill-available;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(8px, 2vh, 16px);
    width: 100%;
    max-width: 100%;
    padding: 60px 0 20px;
  }

  .glitch {
    font-size: clamp(28px, 9vw, 42px);
    letter-spacing: 2px;
    text-shadow: 0 0 15px var(--accent-cyan), 0 0 35px var(--accent-cyan);
  }

  .hero-subtitle {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-top: 0;
    padding: 0;
    line-height: 1.6;
  }

  .subtitle-line {
    font-size: clamp(13px, 3.5vw, 16px);
    letter-spacing: 2px;
    color: var(--accent-cyan);
    text-shadow: 0 0 8px rgba(0, 245, 255, 0.4);
    font-family: var(--font-mono);
    font-weight: 500;
    opacity: 0.95;
  }

  .subtitle-line:nth-child(2) {
    color: var(--accent-green);
    text-shadow: 0 0 8px rgba(0, 255, 136, 0.4);
  }

  .subtitle-line:nth-child(3) {
    color: var(--accent-pink);
    text-shadow: 0 0 8px rgba(255, 0, 255, 0.4);
  }

  .hero-stats {
    display: flex;
    flex-direction: row;
    gap: clamp(12px, 3vw, 24px);
    margin-top: 0;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
  }

  .stat {
    flex: 1;
    min-width: 80px;
    max-width: 120px;
    padding: 8px 4px;
    background: rgba(0, 245, 255, 0.05);
    border: 1px solid rgba(0, 245, 255, 0.15);
    border-radius: 10px;
  }

  .stat-value {
    font-size: clamp(24px, 7vw, 34px);
    color: var(--accent-green);
    text-shadow: 0 0 8px var(--accent-green);
  }

  .stat-label {
    font-size: clamp(9px, 2.5vw, 11px);
    letter-spacing: 1px;
    color: var(--text-dim);
    margin-top: 4px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-top: 0;
    width: 100%;
  }

  .cyber-btn {
    padding: 14px 20px;
    font-size: clamp(11px, 3vw, 13px);
    width: 100%;
    max-width: 100%;
  }

  /* SYSTEM GRID */
  .system-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .system-card {
    padding: 18px 14px;
    clip-path: none;
    border-radius: 10px;
  }

  .system-value {
    font-size: 18px;
  }

  .system-label {
    font-size: 10px;
  }

  .system-icon {
    font-size: 16px;
  }

  /* SKILLS GRID */
  .skills-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .skill-card {
    padding: 20px 18px;
    clip-path: none;
    border-radius: 12px;
  }

  .skill-header h3 {
    font-size: 14px;
  }

  .skill-level {
    font-size: 10px;
    padding: 3px 8px;
  }

  .skill-tech {
    font-size: 12px;
  }

  .tag {
    font-size: 10px;
    padding: 3px 8px;
  }

  /* PROJECTS */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .project-card {
    clip-path: none;
    border-radius: 12px;
  }

  .project-card:hover {
    transform: none;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 245, 255, 0.1) inset;
  }

  .project-overlay {
    opacity: 1;
    visibility: visible;
    background: rgba(5, 5, 16, 0.85);
    backdrop-filter: blur(8px);
  }

  .project-overlay-content {
    transform: translateY(0);
  }

  .project-card:hover .project-overlay {
    opacity: 1;
    visibility: visible;
  }

  .project-card:hover .project-overlay-content {
    transform: translateY(0);
  }

  .project-overlay-content h3 {
    font-size: 16px;
  }

  .project-overlay-content p {
    font-size: 11px;
  }

  .project-shine {
    display: none;
  }

  .project-buttons {
    flex-direction: column;
    gap: 8px;
  }

  .project-btn {
    width: 100%;
    justify-content: center;
    padding: 10px 16px;
    font-size: 11px;
  }

  .project-info {
    padding: 16px;
  }

  .project-info h3 {
    font-size: 15px;
  }

  .project-info p {
    font-size: 12px;
  }

  .project-canvas {
    height: 140px;
  }

  /* ACHIEVEMENTS */
  .achievements-tabs {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .tab-btn {
    width: 100%;
    max-width: 260px;
    padding: 12px 24px;
    font-size: 12px;
    clip-path: none;
    border-radius: 8px;
  }

  .skills-grid-achievements {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .skill-item {
    padding: 16px 12px;
    border-radius: 12px;
  }

  .skill-item h4 {
    font-size: 12px;
  }

  .skill-item .skill-icon-html,
  .skill-item .skill-icon-css,
  .skill-item .skill-icon-js,
  .skill-item .skill-icon-git,
  .skill-item .skill-icon-responsive,
  .skill-item .skill-icon-api,
  .skill-item .skill-icon-ui,
  .skill-item .skill-icon-ai {
    width: 36px;
    height: 36px;
    margin-bottom: 10px;
  }

  .skill-percent {
    font-size: 10px;
  }

  /* CERTIFICATION STATS */
  .cert-stats-bar {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .cert-stat-card {
    padding: 14px;
    gap: 10px;
  }

  .cert-stat-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .cert-stat-value {
    font-size: 22px;
  }

  .cert-stat-label {
    font-size: 10px;
  }

  /* CERT CONTROLS */
  .cert-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 16px;
    border-radius: 12px;
  }

  .cert-search-box {
    min-width: auto;
    padding: 10px 14px;
  }

  .cert-search-box input {
    font-size: 13px;
  }

  .cert-filter-group {
    justify-content: center;
    gap: 6px;
  }

  .cert-filter-btn {
    padding: 8px 12px;
    font-size: 9px;
    white-space: nowrap;
  }

  .cert-sort-box {
    justify-content: space-between;
  }

  .cert-sort-box select {
    flex: 1;
    padding: 8px 12px;
    font-size: 12px;
  }

  /* PREMIUM CERT CARDS */
  .premium-certs-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    overflow-x: visible;
    padding: 0 0 20px;
  }

  .premium-cert-card {
    flex: none;
    min-height: auto;
    border-radius: 14px;
  }

  .premium-cert-image {
    height: 130px;
  }

  .premium-cert-content {
    padding: 16px;
  }

  .premium-cert-title {
    font-size: 15px;
  }

  .premium-cert-issuer {
    font-size: 10px;
  }

  .premium-cert-date {
    font-size: 10px;
  }

  .premium-cert-btn {
    font-size: 11px;
    padding: 8px 14px;
    min-width: auto;
  }

  .premium-cert-actions {
    flex-direction: column;
    gap: 8px;
  }

  .premium-cert-skill-tag {
    font-size: 10px;
    padding: 4px 10px;
  }

  /* CERT MODAL */
  .cert-modal {
    width: 100%;
    max-height: 100vh;
    border-radius: 16px;
    margin: 10px;
  }

  .cert-modal-content {
    grid-template-columns: 1fr;
  }

  .cert-modal-image {
    height: 200px;
  }

  .cert-modal-details {
    padding: 20px;
    max-height: 50vh;
  }

  .cert-modal-title {
    font-size: 20px;
  }

  .cert-modal-issuer {
    font-size: 12px;
  }

  .cert-modal-description {
    font-size: 13px;
  }

  .cert-modal-actions {
    flex-direction: column;
    gap: 10px;
  }

  .cert-modal-btn {
    min-width: auto;
    padding: 10px 16px;
    font-size: 11px;
  }

  .cert-modal-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .cert-modal-close {
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
  }

  .cert-no-results h3 {
    font-size: 16px;
  }

  .cert-no-results p {
    font-size: 12px;
  }

  .cert-no-results svg {
    width: 40px;
    height: 40px;
  }

  /* RESUME / DOC CARDS */
  .doc-modal-content {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .doc-card {
    padding: 20px 16px;
    border-radius: 12px;
  }

  .doc-card h3 {
    font-size: 16px;
  }

  .doc-card p {
    font-size: 11px;
  }

  .doc-card-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
  }

  .doc-card-icon svg {
    width: 22px;
    height: 22px;
  }

  .doc-btn {
    font-size: 12px;
    padding: 12px 20px;
  }

  .doc-btn svg {
    width: 16px;
    height: 16px;
  }

  .resume-buttons {
    flex-direction: column;
    align-items: center;
    gap: 14px;
  }

  .resume-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
    padding: 16px 28px;
    font-size: 13px;
  }

  .resume-btn svg {
    width: 20px;
    height: 20px;
  }

  /* CONTACT FORM */
  .contact-container {
    padding: 0;
  }

  .contact-form {
    padding: 24px 18px;
    border-radius: 16px;
    gap: 18px;
  }

  .contact-form .form-group label {
    font-size: 12px;
    margin-bottom: 6px;
  }

  .contact-form .form-group input,
  .contact-form .form-group textarea {
    padding: 14px 16px;
    font-size: 14px;
    border-radius: 10px;
  }

  .contact-form .form-group textarea {
    min-height: 100px;
  }

  .form-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .send-btn {
    font-size: 13px !important;
    padding: 16px 24px !important;
  }

  .send-btn svg {
    width: 16px;
    height: 16px;
  }

  .whatsapp-btn {
    font-size: 13px !important;
    padding: 14px 24px !important;
  }

  .whatsapp-btn svg {
    width: 16px;
    height: 16px;
  }

  .contact-status {
    font-size: 12px;
    padding: 12px;
  }

  /* TERMINAL */
  #terminal {
    height: 260px;
    clip-path: none;
    border-radius: 10px;
    padding: 14px;
  }

  .terminal-section {
    padding: 60px 16px;
  }

  #output {
    font-size: 12px;
    line-height: 1.6;
  }

  #commandInput {
    font-size: 12px;
  }

  .prompt {
    font-size: 12px;
  }

  /* PROFILE SIDEBAR */
  .profile-sidebar {
    width: 100%;
    max-width: 100%;
  }

  .profile-header {
    padding: 40px 20px 20px;
  }

  .profile-image {
    width: 90px;
    height: 90px;
  }

  .profile-image-wrapper {
    margin-bottom: 14px;
  }

  .profile-name {
    font-size: 20px;
  }

  .profile-role {
    font-size: 13px;
  }

  .profile-content {
    padding: 20px;
    gap: 18px;
  }

  .info-item {
    font-size: 13px;
  }

  .info-item svg {
    width: 16px;
    height: 16px;
  }

  .social-link {
    padding: 12px 14px;
    font-size: 13px;
  }

  .social-link svg {
    width: 18px;
    height: 18px;
  }

  .sidebar-close {
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
  }

  .sidebar-close svg {
    width: 16px;
    height: 16px;
  }

  /* FOOTER */
  .footer {
    padding: 30px 16px;
    gap: 20px;
  }

  .footer-social {
    gap: 10px;
  }

  .social-btn {
    padding: 10px 16px;
    font-size: 12px;
    gap: 6px;
  }

  .social-btn svg {
    width: 16px;
    height: 16px;
  }

  .footer-credit {
    font-size: 10px;
    letter-spacing: 1px;
  }

  /* FLOATING CHAT */
  .floating-chat {
    bottom: 16px;
    right: 16px;
  }

  .chat-toggle {
    width: 50px;
    height: 50px;
  }

  .chat-icon {
    font-size: 24px;
  }

  .chat-popup {
    width: calc(100vw - 32px);
    height: 60vh;
    bottom: 70px;
    right: 0;
    min-width: auto;
    border-radius: 14px;
  }

  .chat-header {
    padding: 14px 16px;
    font-size: 13px;
  }

  .chat-messages {
    padding: 14px;
  }

  .message {
    max-width: 90%;
    padding: 8px 12px;
    font-size: 12px;
  }

  .chat-input-area {
    padding: 12px;
    gap: 8px;
  }

  .chat-input-area input {
    padding: 10px 14px;
    font-size: 12px;
  }

  .chat-input-area button {
    padding: 10px 14px;
    font-size: 11px;
  }

  /* SCANLINES - Reduce opacity on mobile */
  .scanlines {
    opacity: 0.15;
  }
}

/* Small phones (max-width: 480px) */
@media (max-width: 480px) {
  .glitch {
    font-size: 26px;
  }

  .hero-stats {
    gap: 14px;
  }

  .stat-value {
    font-size: 24px;
  }

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

  .skills-grid-achievements {
    grid-template-columns: 1fr;
  }

  .cert-stats-bar {
    grid-template-columns: 1fr;
  }

  .cert-filter-group {
    flex-wrap: wrap;
  }

  .cert-filter-btn {
    font-size: 8px;
    padding: 6px 10px;
  }

  .premium-cert-card {
    border-radius: 12px;
  }

  .project-overlay-content {
    padding: 12px;
  }

  .project-overlay-content h3 {
    font-size: 14px;
  }

  .cyber-btn {
    max-width: 220px;
    padding: 12px 20px;
  }
}
