/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
  /* Fonts */
  --font-heading: jxkf, 'Space Grotesk', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: thsk, 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* HSL Colors - Light Mode (Default) */
  --bg-color: hsl(0, 0%, 100%);
  --bg-secondary: hsl(0, 0%, 98%);
  --text-color: hsl(0, 0%, 8%);
  --text-muted: hsl(0, 0%, 40%);
  --border-color: hsl(0, 0%, 90%);
  --border-hover: hsl(0, 0%, 75%);
  --shadow-color: rgba(0, 0, 0, 0.03);
  --shadow-hover: rgba(0, 0, 0, 0.08);
  
  /* Brand / Accent Colors */
  --accent-primary: hsl(235, 86%, 65%); /* Discord Blurple */
  --accent-primary-hover: hsl(235, 86%, 58%);
  --accent-secondary: hsl(14, 100%, 57%); /* Fire Studio Orange */
  
  /* Discord Specific */
  --discord-status-online: hsl(139, 47%, 43%);
  --discord-status-idle: hsl(38, 96%, 54%);
  --discord-status-dnd: hsl(359, 83%, 60%);
  --discord-status-offline: hsl(214, 10%, 56%);
  
  --discord-card-bg: hsl(223, 7%, 12%);
  --discord-card-text: hsl(210, 20%, 98%);
  --discord-card-text-muted: hsl(214, 8%, 70%);
  --discord-card-inner-bg: hsl(223, 7%, 8%);
  --discord-card-border: hsl(223, 7%, 16%);

  /* Animation Settings */
  --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --transition-fast: all 0.15s ease;
}

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

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

body {
  font-family: var(--font-body);
  font-weight: 300; /* Set body font weight to 300 to match thsk-300 */
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

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

/* ==========================================================================
   SITE HEADER (NAVBAR)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 4rem;
  background-color: rgba(var(--bg-color), 0.85);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 1000;
  transition: var(--transition-smooth), background-color 0.4s ease;
}



/* Match the exact placement in screenshot: nav on left, name on right */
.logo-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: default;
  user-select: none;
}

.nav-menu {
  display: flex;
  gap: 2.5rem;
}

.header-actions {
  display: flex;
  align-items: center;
}

/* Brand Logo Stylings */
.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.65rem; /* Increased size */
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  transition: var(--transition-smooth);
}

.status-dot.online {
  background-color: var(--discord-status-online);
  box-shadow: 0 0 8px var(--discord-status-online);
}

.status-dot.idle {
  background-color: var(--discord-status-idle);
  box-shadow: 0 0 8px var(--discord-status-idle);
}

.status-dot.dnd {
  background-color: var(--discord-status-dnd);
  box-shadow: 0 0 8px var(--discord-status-dnd);
}

.status-dot.offline {
  background-color: var(--discord-status-offline);
}

/* Navigation Links */
.nav-link {
  font-family: var(--font-heading);
  font-size: 1.3rem; /* Increased size */
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.2rem 0;
  transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-color);
}

/* Link underline hover effect */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--text-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-color);
  padding: 0.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.theme-toggle-btn:hover {
  background-color: var(--bg-secondary);
  border-color: var(--border-color);
}

.theme-toggle-btn .icon {
  width: 20px;
  height: 20px;
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   SECTIONS & STRUCTURE
   ========================================================================== */
.section {
  padding: 8rem 4rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}

.container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 4rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

.section-divider {
  width: 60px;
  height: 4px;
  background-color: var(--text-color);
}

/* ==========================================================================
   HERO SECTION (HOME)
   ========================================================================== */
.hero-section {
  height: 100vh; /* Set to exactly 100vh to cover the entire first fold */
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
  max-width: 800px;
  width: 100%;
}

/* Rotating Face GFX */
.rotating-face-container {
  width: 980px; /* Further increased size as requested */
  height: 980px;
  max-width: 98vw;
  max-height: 85vh;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  /* Floating animation */
  animation: float 6s ease-in-out infinite;
}

.rotating-face-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply; /* Blend white background of GIF seamlessly */
  transition: transform 0.5s ease;
  pointer-events: none; /* Disables right-clicks and dragging */
  user-select: none; /* Prevent selection */
  -webkit-user-drag: none; /* Prevent webkit dragging */
}

/* Intro Section (Second Fold) */
.intro-section {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 8rem 4rem;
  box-sizing: border-box;
}

.intro-container {
  max-width: 800px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-subtitle-primary {
  font-family: var(--font-body);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--text-color);
  max-width: 650px;
  line-height: 1.5;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
}

/* Big Sketch/Brush-style Buttons */
.hero-brush-buttons {
  display: flex;
  gap: 2.5rem;
  margin-top: 2rem;
  margin-bottom: 2.5rem;
  justify-content: center;
  align-items: center;
}

.brush-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--text-color);
  color: var(--bg-color);
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  padding: 1rem 3.5rem;
  min-width: 280px;
  cursor: pointer;
  transition: var(--transition-smooth);
  /* Organic sketch border-radius */
  border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
  border: 2px solid var(--text-color);
  box-shadow: 0 4px 15px var(--shadow-color);
}

.brush-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px var(--shadow-hover);
  background-color: var(--bg-color);
  color: var(--text-color);
}

/* Social icons below buttons */
.hero-social-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 2rem;
  justify-content: center;
  align-items: center;
}

.social-link-item {
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  border-radius: 50%;
  transition: var(--transition-smooth);
}

.social-link-item:hover {
  color: var(--text-color);
  transform: translateY(-3px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition-smooth);
  gap: 0.75rem;
}

.btn-primary {
  background-color: var(--text-color);
  color: var(--bg-color);
  border: 1px solid var(--text-color);
  box-shadow: 0 4px 12px var(--shadow-color);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--shadow-hover);
}

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

.btn-secondary:hover {
  background-color: var(--bg-secondary);
  border-color: var(--text-color);
}

/* ==========================================================================
   ABOUT SECTION
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: start;
}

.about-text .lead {
  font-size: 1.4rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.about-text p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.details-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px var(--shadow-color);
}

.details-card h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.skills-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.skill-item {
  display: flex;
  align-items: center;
  font-size: 1.05rem;
  font-weight: 500;
}

.skill-item::before {
  content: '→';
  margin-right: 0.75rem;
  color: var(--text-color);
  font-weight: bold;
}

/* ==========================================================================
   SERVICES SECTION
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.service-card {
  background-color: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 3rem 2.5rem;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 20px var(--shadow-color);
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--text-color);
  box-shadow: 0 10px 30px var(--shadow-hover);
}

.service-icon {
  width: 50px;
  height: 50px;
  background-color: var(--bg-secondary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  transition: var(--transition-smooth);
  border: 1px solid var(--border-color);
}

.service-card:hover .service-icon {
  background-color: var(--text-color);
  color: var(--bg-color);
  border-color: var(--text-color);
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.service-card p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
}

/* ==========================================================================
   CONNECT & DISCORD SECTION
   ========================================================================== */
.hidden {
  display: none !important;
}

.connect-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 4rem;
  align-items: center;
}

/* Centered layout fallback when Discord card is hidden */
.connect-grid:has(#discord-card.hidden) {
  grid-template-columns: 1fr;
  max-width: 600px;
  margin: 0 auto;
}

/* Discord Card styling */
/* Custom Sketch-style Discord Card (Light Mode, Premium) */
.discord-profile-card {
  background-color: #fff;
  color: var(--text-color);
  border: 3px solid #000;
  border-radius: 255px 15px 225px 15px/15px 225px 15px 255px; /* Hand-drawn organic border */
  padding: 3rem 2.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  font-family: var(--font-body);
  position: relative;
  max-width: 450px;
  justify-self: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.discord-profile-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.discord-card-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  width: 100%;
  margin-bottom: 1.5rem;
}

.discord-avatar-wrapper {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto;
}

.discord-avatar {
  border-radius: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 3px solid #000; /* Crisp hand-drawn-like border */
  background-color: #f7f7f7;
}

.discord-status-indicator {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 3px solid #fff;
  background-color: var(--discord-status-offline);
}

.discord-status-indicator.online {
  background-color: var(--discord-status-online);
}

.discord-status-indicator.idle {
  background-color: var(--discord-status-idle);
}

.discord-status-indicator.dnd {
  background-color: var(--discord-status-dnd);
}

.discord-badge-container {
  display: flex;
  gap: 0.35rem;
  justify-content: center;
  margin-top: 1rem;
  min-height: 24px;
}

.discord-badge {
  width: 20px;
  height: 20px;
}

.discord-card-body {
  width: 100%;
}

.discord-names {
  margin-bottom: 1.25rem;
}

.discord-display-name {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  color: #000;
  line-height: 1.2;
}

.discord-username {
  display: block;
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.discord-divider {
  height: 2px;
  background-color: #000;
  margin: 1.5rem 0;
  width: 100%;
}

.discord-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  letter-spacing: 0.08em;
}

.discord-bio {
  font-size: 1.1rem;
  line-height: 1.5;
  margin-bottom: 1rem;
  color: var(--text-color);
}

.discord-status-text {
  font-size: 1rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 1.5rem;
}

/* Discord live activity sub-card */
.discord-live-activity {
  background-color: #fcfcfc;
  border: 2px solid #000;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1.2rem;
  text-align: left;
}

.discord-activity-details {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
  align-items: center;
}

.discord-activity-icon {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  border: 1px solid #000;
  object-fit: cover;
}

.discord-activity-text {
  font-size: 0.9rem;
  line-height: 1.4;
}

.discord-activity-name {
  font-weight: 700;
  color: #000;
}

.discord-activity-state,
.discord-activity-details-text {
  color: var(--text-muted);
}

.discord-actions {
  margin-top: 1.8rem;
}

.btn-discord-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background-color: #000;
  color: #fff;
  border: none;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  padding: 0.8rem;
  border-radius: 255px 15px 225px 15px/15px 225px 15px 255px; /* Organic button border */
  cursor: pointer;
  position: relative;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.btn-discord-copy:hover {
  transform: scale(1.03);
  background-color: #222;
}

/* Clipboard Copy Tooltip */
.tooltip {
  visibility: hidden;
  background-color: #000;
  color: #fff;
  text-align: center;
  padding: 6px 12px;
  border-radius: 4px;
  position: absolute;
  z-index: 10;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 0.85rem;
  font-family: var(--font-body);
}

.tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #000 transparent transparent transparent;
}

.btn-discord-copy:active .tooltip,
.btn-discord-copy.copied .tooltip {
  visibility: visible;
  opacity: 1;
}

/* Connect Info Cards */
.connect-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.studio-card,
.profile-links-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px var(--shadow-color);
}

.studio-card h3,
.profile-links-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.studio-card p,
.profile-links-card p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.btn-discord-join {
  background-color: var(--accent-primary);
  color: #fff;
  border: 1px solid var(--accent-primary);
}

.btn-discord-join:hover {
  background-color: var(--accent-primary-hover);
  border-color: var(--accent-primary-hover);
  transform: translateY(-2px);
}

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

.btn-bbb:hover {
  background-color: var(--bg-color);
  border-color: var(--text-color);
  transform: translateY(-2px);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  padding: 4rem;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  text-align: center;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

.copyright {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
}

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

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

@keyframes blink {
  from, to { border-color: transparent }
  50% { border-color: var(--text-color); }
}

/* ==========================================================================
   DEV WORK SECTION (THIRD FOLD)
   ========================================================================== */
.dev-work-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 8rem 4rem;
  box-sizing: border-box;
  background-color: var(--bg-color);
}

.dev-work-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 4rem;
  text-align: center;
}

.dev-work-title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text-color);
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.scroll-down-arrow {
  color: var(--text-muted);
  animation: bounce 2s infinite;
  margin-top: 0.5rem;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-8px);
  }
  60% {
    transform: translateY(-4px);
  }
}

.dev-work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  width: 100%;
  max-width: 1300px;
  padding: 0;
}

.dev-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9; /* Strict 16:9 ratio */
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background-color: #0c0c0c; /* Deep rich dark background */
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  text-decoration: none;
}

.dev-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.18; /* Subtle background visual by default */
  filter: grayscale(30%) brightness(70%);
  transition: opacity 0.4s ease, transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.4s ease;
}

.dev-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Dark vignette gradient overlay to pop the white text */
  background: radial-gradient(circle, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.75) 100%);
  z-index: 1;
}

.dev-card-text {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.dev-card-title {
  font-family: 'Anton', 'Impact', 'Arial Black', sans-serif;
  font-size: 3.5rem; /* Huge title like ABSOLUT */
  font-weight: 900;
  color: #ffffff; /* Crisp white title */
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0;
  text-transform: uppercase;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), color 0.4s ease;
}

.dev-card-subtitle {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45); /* Semi-transparent white */
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-top: 0.6rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  transition: color 0.4s ease;
}

.dev-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 255, 255, 0.15);
}

.dev-card:hover .dev-card-bg {
  opacity: 0.45; /* Image becomes clearer on hover */
  filter: grayscale(0%) brightness(95%);
  transform: scale(1.04);
}

.dev-card:hover .dev-card-title {
  color: #ffffff;
  transform: scale(1.03);
}

.dev-card:hover .dev-card-subtitle {
  color: rgba(255, 255, 255, 0.85);
}

/* ==========================================================================
   EXPERIENCE SECTION (TWO-COLUMN PAGE)
   ========================================================================== */
.experience-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 8rem 4rem;
  box-sizing: border-box;
  background-color: var(--bg-color);
}

.experience-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 4rem;
  text-align: center;
}

.experience-title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text-color);
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4rem;
  width: 100%;
  max-width: 1200px;
  align-items: start;
}

.exp-card {
  background-color: #fbfbfb;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 16px;
  padding: 3rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.01);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.exp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

.exp-card-header {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--text-color);
  padding-bottom: 0.75rem;
}

.exp-lead {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-color);
  font-weight: 400;
  margin-bottom: 2rem;
}

.exp-bullets {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.bullet-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.bullet-icon {
  font-size: 1.2rem;
  color: var(--text-color);
  margin-top: 0.1rem;
}

.bullet-text {
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.bullet-text strong {
  color: var(--text-color);
}

/* Timeline Layout */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: relative;
  padding-left: 1rem;
}

.timeline-item {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1rem 0;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.08);
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-num {
  font-family: 'Anton', 'Impact', sans-serif;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--text-muted);
  opacity: 0.35;
  transition: opacity 0.3s ease, color 0.3s ease;
  min-width: 50px;
}

.timeline-content {
  flex-grow: 1;
}

.timeline-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
  letter-spacing: 0.05em;
  margin: 0;
  transition: transform 0.3s ease;
}

.timeline-item:hover .timeline-num {
  color: var(--text-color);
  opacity: 0.9;
}

.timeline-item:hover .timeline-title {
  transform: translateX(6px);
}

/* Custom Tag Display for Contact */
.tag-display-box {
  display: flex;
  flex-direction: column;
  background-color: #f7f7f7;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin-top: 1rem;
  font-family: var(--font-body);
}

.tag-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.tag-code {
  font-family: 'Courier New', Courier, monospace;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-color);
}

/* ==========================================================================
   RESPONSIVE STYLING (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 1024px) {
  .site-header {
    padding: 1.5rem 2rem;
  }
  
  .section {
    padding: 6rem 2rem;
  }
  
  .rotating-face-container {
    width: 400px; /* Scale down face on tablet */
    height: 400px;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .about-grid,
  .connect-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .discord-profile-card {
    justify-self: start;
  }

  .dev-work-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .experience-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

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

  .section {
    padding: 3.5rem 1.5rem;
    min-height: auto;
  }

  .hero-section {
    height: auto;
    min-height: 50vh;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .intro-section {
    min-height: auto;
    padding-top: 1rem;
    padding-bottom: 4rem;
  }

  .site-header {
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    position: relative;
  }
  
  .nav-menu {
    gap: 1.5rem;
  }
  
  .hero-name {
    font-size: 3rem;
  }
  
  .rotating-face-container {
    width: 320px; /* Scale down face on mobile */
    height: 320px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-brush-buttons {
    flex-direction: column;
    width: 100%;
    gap: 1.5rem;
  }

  .brush-btn {
    width: 100%;
    min-width: unset;
  }
  
  .btn {
    width: 100%;
  }

  .dev-work-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .exp-card {
    padding: 2rem 1.5rem;
  }
}
