/* ============================================
   PIERRE-LOUIS STYLE PORTFOLIO
   Dark Dashboard Theme
   ============================================ */

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

:root {
  --bg-primary: #101016;
  --bg-card: #1a1a24;
  --bg-card-hover: #22222e;
  --text-primary: #e5e5e5;
  --text-secondary: #8a8a9a;
  --text-muted: #3b3b44;
  --accent-blue: #1F367E;
  --accent-gold: #b58622;
  --accent-red: #95234C;
  --accent-green: #267267;
  --accent-purple: #4548a9;
  --accent-teal: #267267;
  --door-gray: #1c1c25;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-3d: 0 0.5em 0;
  --transition-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
  font-size: 13px;
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* --- Noise Overlay --- */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.4;
}

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

h1 { font-size: clamp(2.4rem, 4vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }

p {
  line-height: 1.6;
  color: var(--text-secondary);
  font-size: 1.15rem;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --- Main Container --- */
.dashboard {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(60px, auto);
  gap: 1.2rem;
  position: relative;
}

/* --- Card Base --- */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.4s var(--transition-spring), box-shadow 0.3s ease;
  border: 1px solid rgba(255,255,255,0.04);
}

.card:hover {
  transform: translateY(-2px);
}

/* --- Screen Grain Effect --- */
.card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(229,229,229,0.03) 0%, transparent 70%);
  pointer-events: none;
}

/* ============================================
   HERO / MAIN DEVICE SECTION
   ============================================ */
.card-hero {
  grid-column: 1 / -1;
  grid-row: span 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  background: var(--bg-card);
  position: relative;
  min-height: 500px;
}

.hero-device {
  position: relative;
  width: 100%;
  max-width: 700px;
}

.hero-screen {
  background: linear-gradient(145deg, #15151f, #1a1a28);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  position: relative;
  border: 2px solid rgba(255,255,255,0.06);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
}

.hero-dots {
  display: flex;
  gap: 6px;
  margin-bottom: 2rem;
}

.hero-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.5;
}

.hero-dots span:nth-child(1) { background: #ff5f57; opacity: 0.8; }
.hero-dots span:nth-child(2) { background: #ffbd2e; opacity: 0.8; }
.hero-dots span:nth-child(3) { background: #28c840; opacity: 0.8; }

.hero-greeting {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  font-weight: 500;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff, #b0b0c0);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

/* Speech Bubble */
.speech-bubble {
  position: absolute;
  top: -20px;
  right: -30px;
  background: var(--accent-gold);
  color: #fff;
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  animation: float 3s ease-in-out infinite;
  z-index: 2;
  white-space: nowrap;
}

.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 20px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid var(--accent-gold);
}

/* Character Avatar */
.avatar-container {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
  position: relative;
}

.avatar {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  position: relative;
  border: 3px solid rgba(255,255,255,0.1);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s var(--transition-spring);
}

.avatar:hover {
  transform: scale(1.1) rotate(5deg);
}

.avatar-face {
  position: relative;
  width: 60px;
  height: 60px;
}

.avatar-eyes {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-bottom: 8px;
}

.avatar-eye {
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  position: relative;
  animation: blink 4s ease-in-out infinite;
}

.avatar-eye::after {
  content: '';
  position: absolute;
  width: 5px;
  height: 5px;
  background: var(--bg-primary);
  border-radius: 50%;
  top: 3px;
  left: 4px;
  transition: transform 0.2s ease;
}

.avatar-mouth {
  width: 20px;
  height: 10px;
  border-bottom: 3px solid #fff;
  border-radius: 0 0 50% 50%;
  margin: 0 auto;
  transition: all 0.3s ease;
}

.avatar:hover .avatar-mouth {
  height: 14px;
  width: 16px;
}

/* Status Badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(38, 114, 103, 0.2);
  color: #4ade80;
  padding: 0.5rem 1.2rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 1rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

/* ============================================
   3D BUTTONS ROW
   ============================================ */
.card-buttons {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  padding: 1.5rem;
  flex-wrap: wrap;
  background: transparent;
  border: none;
}

.card-buttons:hover {
  transform: none;
}

.btn-3d {
  width: 55px;
  height: 55px;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  position: relative;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
}

.btn-3d:active {
  transform: translateY(4px);
  box-shadow: 0 0.1em 0 var(--shadow-color) !important;
}

.btn-3d-blue {
  background: var(--accent-blue);
  box-shadow: 0 0.4em 0 #141f52;
  --shadow-color: #141f52;
}

.btn-3d-gold {
  background: var(--accent-gold);
  box-shadow: 0 0.4em 0 #7a5a15;
  --shadow-color: #7a5a15;
}

.btn-3d-red {
  background: var(--accent-red);
  box-shadow: 0 0.4em 0 #5e1530;
  --shadow-color: #5e1530;
}

.btn-3d-green {
  background: var(--accent-green);
  box-shadow: 0 0.4em 0 #1a4a4a;
  --shadow-color: #1a4a4a;
}

.btn-3d-purple {
  background: var(--accent-purple);
  box-shadow: 0 0.4em 0 #2d2e6e;
  --shadow-color: #2d2e6e;
}

.btn-3d-dark {
  background: #2a2a38;
  box-shadow: 0 0.4em 0 #18181f;
  --shadow-color: #18181f;
}

.btn-3d-round {
  border-radius: 50%;
  width: 50px;
  height: 50px;
}

.btn-3d-round:hover {
  transform: rotate(15deg);
}

/* ============================================
   SKILLS / ROLE CARDS
   ============================================ */
.card-skills {
  grid-column: 1 / 5;
  grid-row: span 3;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.skill-item {
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-md);
  padding: 1.4rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: default;
  border: 1px solid rgba(255,255,255,0.03);
}

.skill-item:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.08);
}

.skill-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  border-radius: 0 4px 4px 0;
  transition: height 0.3s ease;
}

.skill-item:nth-child(1)::before { background: var(--accent-blue); }
.skill-item:nth-child(2)::before { background: var(--accent-gold); }
.skill-item:nth-child(3)::before { background: var(--accent-purple); }

.skill-icon {
  font-size: 1.8rem;
  margin-bottom: 0.6rem;
  display: block;
}

.skill-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--text-primary);
  text-transform: capitalize;
}

.skill-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ============================================
   EXPERIENCE BADGE
   ============================================ */
.card-experience {
  grid-column: 5 / 9;
  grid-row: span 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(145deg, var(--bg-card), #1e1e2d);
}

.experience-number {
  font-size: clamp(5rem, 10vw, 8rem);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent-gold), #d4a12a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.experience-label {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.experience-sublabel {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* ============================================
   FACE CUSTOMIZER CARD
   ============================================ */
.card-customizer {
  grid-column: 9 / 13;
  grid-row: span 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  position: relative;
}

.customizer-face {
  width: 130px;
  height: 130px;
  background: linear-gradient(135deg, var(--accent-red), #c73e6a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  transition: transform 0.4s var(--transition-spring);
  position: relative;
}

.customizer-face:hover {
  transform: scale(1.08);
}

.customizer-face-inner {
  position: relative;
  width: 80px;
  height: 80px;
}

.cf-eyes {
  display: flex;
  gap: 18px;
  justify-content: center;
  margin-top: 15px;
}

.cf-eye {
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  position: relative;
}

.cf-eye::after {
  content: '';
  position: absolute;
  width: 7px;
  height: 7px;
  background: var(--bg-primary);
  border-radius: 50%;
  top: 4px;
  left: 5px;
}

.cf-mouth {
  width: 25px;
  height: 12px;
  border-bottom: 3px solid #fff;
  border-radius: 0 0 50% 50%;
  margin: 10px auto 0;
}

.cf-accessory {
  position: absolute;
  top: -10px;
  right: -5px;
  font-size: 2rem;
  transform: rotate(20deg);
  transition: transform 0.3s var(--transition-spring);
}

.customizer-face:hover .cf-accessory {
  transform: rotate(40deg) scale(1.2);
}

.customizer-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.customizer-sublabel {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.3rem;
}

/* ============================================
   PORTFOLIO / PROJECTS SECTION
   ============================================ */
.card-portfolio {
  grid-column: 1 / -1;
  grid-row: span 6;
  padding: 2.5rem;
}

.portfolio-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.portfolio-title {
  font-size: 1.8rem;
  font-weight: 800;
}

.portfolio-nav {
  display: flex;
  gap: 0.8rem;
}

.portfolio-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.1);
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.portfolio-nav-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}

.portfolio-slider {
  display: flex;
  gap: 1.2rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding-bottom: 1rem;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.portfolio-slider::-webkit-scrollbar {
  display: none;
}

.project-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
  background: var(--door-gray);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.4s var(--transition-spring), box-shadow 0.3s ease;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,0.04);
}

.project-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

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

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

.project-image-wrapper {
  overflow: hidden;
  position: relative;
}

.project-image-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 60%, rgba(16,16,22,0.8));
  pointer-events: none;
}

.project-fullscreen-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 2;
}

.project-card:hover .project-fullscreen-icon {
  opacity: 1;
  transform: scale(1);
}

.project-info {
  padding: 1.2rem 1.4rem;
}

.project-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.project-type {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: lowercase;
}

/* Project color tags */
.project-tag {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

/* ============================================
   SIDE PROJECTS
   ============================================ */
.card-side-projects {
  grid-column: 1 / 8;
  grid-row: span 5;
  padding: 2rem;
}

.side-projects-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.side-project-item {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.2rem;
  border-radius: var(--radius-md);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid transparent;
  margin-bottom: 0.5rem;
}

.side-project-item:hover {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.06);
}

.side-project-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.sp-icon-1 { background: linear-gradient(135deg, #1a4a6e, #267267); }
.sp-icon-2 { background: linear-gradient(135deg, #4548a9, #6366f1); }
.sp-icon-3 { background: linear-gradient(135deg, #95234C, #c73e6a); }
.sp-icon-4 { background: linear-gradient(135deg, #b58622, #d4a12a); }
.sp-icon-5 { background: linear-gradient(135deg, #1F367E, #3b5bdb); }

.side-project-info {
  flex: 1;
  min-width: 0;
}

.side-project-name {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.side-project-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.side-project-go {
  padding: 0.4rem 1rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50px;
  color: var(--text-primary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.side-project-go:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
}

/* ============================================
   CONTACT CARD
   ============================================ */
.card-contact {
  grid-column: 8 / 13;
  grid-row: span 5;
  display: flex;
  flex-direction: column;
  padding: 2rem;
}

.contact-header {
  margin-bottom: 1.5rem;
}

.contact-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.contact-email {
  font-size: 0.95rem;
  color: var(--accent-gold);
  font-weight: 500;
  word-break: break-all;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.form-input, .form-textarea {
  width: 100%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  outline: none;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--accent-blue);
  background: rgba(31, 54, 126, 0.08);
  box-shadow: 0 0 0 3px rgba(31, 54, 126, 0.15);
}

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

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

.form-submit {
  padding: 1rem 2rem;
  background: var(--accent-blue);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  box-shadow: 0 0.35em 0 #141f52;
  position: relative;
}

.form-submit:hover {
  background: #253f96;
  transform: translateY(-1px);
  box-shadow: 0 0.45em 0 #141f52;
}

.form-submit:active {
  transform: translateY(3px);
  box-shadow: 0 0.1em 0 #141f52;
}

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
  color: #4ade80;
  font-weight: 600;
}

.form-success.show {
  display: block;
  animation: fadeInUp 0.5s ease;
}

/* ============================================
   SOCIAL LINKS
   ============================================ */
.card-socials {
  grid-column: 1 / 7;
  grid-row: span 2;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 2rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1.3rem;
  background: rgba(255,255,255,0.04);
  border-radius: 50px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255,255,255,0.06);
  cursor: pointer;
  text-decoration: none;
}

.social-link:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

.social-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.social-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.social-handle {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ============================================
   EASTER EGG / CRANK CARD
   ============================================ */
.card-easter {
  grid-column: 7 / 13;
  grid-row: span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.easter-content {
  position: relative;
  z-index: 1;
}

.crank-emoji {
  font-size: 3rem;
  display: block;
  margin-bottom: 0.5rem;
  transition: transform 0.3s var(--transition-spring);
}

.card-easter:hover .crank-emoji {
  transform: rotate(45deg);
}

.easter-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.easter-fact {
  display: none;
  padding: 1rem;
  font-size: 0.9rem;
  color: var(--accent-gold);
  animation: fadeInUp 0.5s ease;
}

.easter-fact.show {
  display: block;
}

/* ============================================
   CREDITS / FOOTER
   ============================================ */
.card-footer {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 2rem;
  background: transparent;
  border: none;
}

.card-footer:hover {
  transform: none;
}

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

.footer-credits {
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}

.footer-credits:hover {
  color: var(--text-secondary);
}

/* ============================================
   MARQUEE / SCROLLING TEXT
   ============================================ */
.marquee-wrapper {
  grid-column: 1 / -1;
  overflow: hidden;
  padding: 1rem 0;
  background: transparent;
  border: none;
}

.marquee-wrapper:hover {
  transform: none;
}

.marquee {
  display: flex;
  animation: marquee 20s linear infinite;
  white-space: nowrap;
}

.marquee-item {
  flex-shrink: 0;
  padding: 0 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 3px;
}

.marquee-separator {
  flex-shrink: 0;
  padding: 0 1rem;
  color: var(--accent-gold);
}

/* ============================================
   CREDITS MODAL
   ============================================ */
.credits-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(16, 16, 22, 0.9);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.credits-modal.open {
  opacity: 1;
  visibility: visible;
}

.credits-modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  padding: 3rem;
  max-width: 500px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.06);
  transform: translateY(20px) scale(0.95);
  transition: all 0.4s var(--transition-spring);
}

.credits-modal.open .credits-modal-content {
  transform: translateY(0) scale(1);
}

.credits-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.06);
  border: none;
  border-radius: 50%;
  color: var(--text-primary);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.credits-modal-close:hover {
  background: rgba(255,255,255,0.12);
}

/* ============================================
   ON BUTTON / POWER
   ============================================ */
.on-button-wrapper {
  position: absolute;
  bottom: -25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.on-button {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: var(--accent-blue);
  border: 3px solid rgba(255,255,255,0.15);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.3s var(--transition-spring);
  box-shadow: 0 5px 20px rgba(31, 54, 126, 0.4), 0 0.35em 0 #141f52;
  display: flex;
  align-items: center;
  justify-content: center;
}

.on-button:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(31, 54, 126, 0.6), 0 0.4em 0 #141f52;
}

.on-button:active {
  transform: scale(0.95) translateY(3px);
  box-shadow: 0 2px 10px rgba(31, 54, 126, 0.3), 0 0.1em 0 #141f52;
}

/* ============================================
   INTRO / LOADING ANIMATION
   ============================================ */
.intro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-primary);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.intro-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

.intro-text {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-primary);
  opacity: 0;
  animation: introFade 1s ease 0.3s forwards;
}

.intro-button {
  margin-top: 2rem;
  padding: 1rem 3rem;
  background: var(--accent-blue);
  color: #fff;
  border: none;
  border-radius: 50px;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  animation: introFade 1s ease 0.8s forwards;
  box-shadow: 0 0.4em 0 #141f52;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.intro-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.5em 0 #141f52;
}

.intro-button:active {
  transform: translateY(3px);
  box-shadow: 0 0.1em 0 #141f52;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

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

@keyframes blink {
  0%, 90%, 100% { transform: scaleY(1); }
  95% { transform: scaleY(0.1); }
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

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

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

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translate3d(0, 40px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes rotateIn {
  from { transform: rotate(-180deg); opacity: 0; }
  to { transform: rotate(0deg); opacity: 1; }
}

/* Staggered entrance animation */
.animate-in {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  transition: opacity 0.6s ease, transform 0.6s var(--transition-spring);
}

.animate-in.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(16, 16, 22, 0.95);
  backdrop-filter: blur(30px);
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  cursor: pointer;
}

.lightbox.open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
  transform: scale(0.9);
  transition: transform 0.4s var(--transition-spring);
}

.lightbox.open img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.2);
  transform: rotate(90deg);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1200px) {
  html { font-size: 12.5px; }
}

@media (max-width: 992px) {
  .dashboard {
    grid-template-columns: repeat(6, 1fr);
    padding: 1.5rem;
  }

  .card-hero { grid-column: 1 / -1; }
  .card-buttons { grid-column: 1 / -1; }
  .card-skills { grid-column: 1 / 4; }
  .card-experience { grid-column: 4 / 7; }
  .card-customizer { grid-column: 1 / -1; grid-row: span 2; }
  .card-portfolio { grid-column: 1 / -1; }
  .card-side-projects { grid-column: 1 / -1; }
  .card-contact { grid-column: 1 / -1; grid-row: span 4; }
  .card-socials { grid-column: 1 / -1; flex-wrap: wrap; }
  .card-easter { grid-column: 1 / -1; }
  .marquee-wrapper { grid-column: 1 / -1; }
  .card-footer { grid-column: 1 / -1; }

  .project-card { flex: 0 0 280px; }
}

@media (max-width: 768px) {
  html { font-size: 12px; }

  .dashboard {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1rem;
  }

  .card-hero { min-height: 400px; padding: 3rem 1.5rem; }
  .card-skills,
  .card-experience,
  .card-customizer,
  .card-portfolio,
  .card-side-projects,
  .card-contact,
  .card-socials,
  .card-easter,
  .marquee-wrapper,
  .card-buttons,
  .card-footer {
    grid-column: 1 / -1;
  }

  .card-buttons { gap: 0.8rem; }
  .btn-3d { width: 45px; height: 45px; }

  .portfolio-header { flex-direction: column; gap: 1rem; text-align: center; }

  .project-card { flex: 0 0 260px; }

  .card-socials { flex-direction: column; }
  .social-link { width: 100%; justify-content: center; }

  .hero-title { font-size: clamp(2.2rem, 8vw, 3.5rem); }

  .speech-bubble { right: 0; top: -15px; font-size: 0.75rem; }
}

@media (max-width: 480px) {
  .dashboard { padding: 0.8rem; }
  .card { padding: 1.3rem; }
  .hero-screen { padding: 2rem 1.5rem; }
  .project-card { flex: 0 0 240px; }
  .card-footer { flex-direction: column; gap: 0.5rem; text-align: center; }
  .side-project-item { flex-direction: column; text-align: center; }
  .side-project-desc { white-space: normal; }
}

/* --- Hover media query for touch devices --- */
@media (hover: hover) {
  .card:hover {
    transform: translateY(-2px);
  }
  .project-card:hover {
    transform: translateY(-8px) scale(1.02);
  }
}

@media (hover: none) {
  .card:hover,
  .project-card:hover {
    transform: none;
  }
}

/* --- Selection Color --- */
::selection {
  background: var(--accent-blue);
  color: #fff;
}

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

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

::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 10px;
}

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

/* --- Unselectable --- */
.unselectable {
  user-select: none;
  -webkit-user-select: none;
}

/* --- Scroll Hint --- */
.scroll-hint {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.5rem 0;
  cursor: pointer;
  user-select: none;
}

.scroll-hint-text {
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  opacity: 0.5;
  transition: opacity 0.3s;
}
.scroll-hint:hover .scroll-hint-text { opacity: 0.9; }

.scroll-hint-chevrons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.scroll-hint-chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--text-secondary);
  border-bottom: 2px solid var(--text-secondary);
  transform: rotate(45deg);
  opacity: 0;
  animation: chevronFade 1.6s ease-in-out infinite;
}
.scroll-hint-chevron:nth-child(2) { animation-delay: 0.25s; }

.scroll-hint:hover .scroll-hint-chevron {
  border-color: var(--accent-gold);
}

@keyframes chevronFade {
  0%   { opacity: 0;    transform: rotate(45deg) translateY(-3px); }
  50%  { opacity: 0.9;  transform: rotate(45deg) translateY(0); }
  100% { opacity: 0;    transform: rotate(45deg) translateY(3px); }
}
