/* ===================================
   Personal AI Developer Portfolio
   Custom Styles & Theme Variables
   =================================== */

/* Critical: Remove any default constraints */
#hero,
#hero *,
.hero-section,
.hero-section *,
.hero-image-wrapper,
.hero-image,
#animated-headshot {
  box-sizing: border-box !important;
}

/* CSS Variables - GitHub-style Dark Theme */
:root {
  /* Primary Colors */
  --color-primary: #79c0ff;
  --color-primary-hover: #58a6ff;
  
  /* Background Colors */
  --color-bg-dark: #0d1117;
  --color-surface-dark: #161b22;
  --color-border-dark: #30363d;
  
  /* Accent Colors */
  --color-accent-purple: #a371f7;
  --color-accent-green: #3fb950;
  --color-accent-red: #f85149;
  --color-accent-yellow: #d29922;
  
  /* Text Colors */
  --color-text-primary: #ffffff;
  --color-text-secondary: #8b949e;
  --color-text-tertiary: #6e7681;
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* Make all text non-selectable */
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

html {
  overflow-x: hidden;
  width: 100%;
  height: 100%;
  max-width: 100%;
  position: relative; /* Contain any absolute positioned children */
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--color-bg-dark);
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  max-width: 100%;
  position: relative;
}

/* Ensure all sections are contained */
section {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  position: relative;
}

/* Ensure no element causes horizontal scroll */
/* Removed: * { max-width: 100%; } - This was restricting JotForm chatbot */

*:not(html):not(body) {
  box-sizing: border-box;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-primary);
}

.font-mono {
  font-family: 'JetBrains Mono', monospace;
}

/* Smooth Scrolling - Removed duplicate */

/* Selection */
::selection {
  background-color: var(--color-primary);
  color: var(--color-bg-dark);
}

/* Focus Styles */
*:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* ===================================
   Social Media Icons with Brand Colors
   =================================== */

/* LinkedIn - Blue brand color with glow on hover */
.social-icon-linkedin:hover {
  border-color: #0A66C2;
  box-shadow: 0 4px 16px rgba(10, 102, 194, 0.4), 0 0 20px rgba(10, 102, 194, 0.2);
  transform: translateY(-2px) scale(1.05);
}

/* GitHub - White with glow on hover */
.social-icon-github:hover {
  border-color: #ffffff;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.3), 0 0 20px rgba(255, 255, 255, 0.15);
  transform: translateY(-2px) scale(1.05);
}

/* Twitter/X - White with glow on hover */
.social-icon-twitter:hover {
  border-color: #ffffff;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.3), 0 0 20px rgba(255, 255, 255, 0.15);
  transform: translateY(-2px) scale(1.05);
}

/* Medium - White with glow on hover */
.social-icon-medium:hover {
  border-color: #ffffff;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.3), 0 0 20px rgba(255, 255, 255, 0.15);
  transform: translateY(-2px) scale(1.05);
}

/* ===================================
   Section Gradient Glow Effects - Static Blue Theme
   =================================== */

/* Base gradient glow for sections - contained to prevent overflow */
.section-gradient-glow {
  position: relative;
  overflow: hidden; /* Contain gradients within section bounds */
}

/* Common gradient with blue theme - static and visible */
.section-gradient-glow::before {
  content: '';
  position: absolute;
  width: 250%;
  height: 200%;
  pointer-events: none;
  z-index: 0;
  filter: blur(120px);
  opacity: 0.6;
}

/* Testimonials Section - Gradient from top-right, circular with larger radius */
/* Contained within section - does NOT bleed into Engineering Insights */
#testimonials.section-gradient-glow::before {
  top: -20%;
  right: -5%;
  bottom: auto;
  left: auto;
  transform: none;
  width: 120%;
  height: 85%;
  background: radial-gradient(circle at 80% 0%, rgba(121, 192, 255, 0.55) 0%, rgba(88, 166, 255, 0.45) 12%, rgba(121, 192, 255, 0.35) 24%, rgba(88, 166, 255, 0.25) 36%, rgba(121, 192, 255, 0.15) 48%, transparent 60%);
  filter: blur(100px);
  opacity: 1.5;
}

/* Contact Section - Gradient from bottom-left to highlight form, keeping top dark */
#contact.section-gradient-glow::before {
  bottom: 05%; /* Push down slightly */
  top: auto;
  left: 25%; /* Slightly left of center */
  transform: translateX(-50%);
  width: 150%;
  height: 90%;
  background: radial-gradient(ellipse at 45% 85%, rgba(121, 192, 255, 0.5) 0%, rgba(88, 166, 255, 0.4) 15%, rgba(121, 192, 255, 0.3) 30%, rgba(88, 166, 255, 0.2) 45%, transparent 65%);
  filter: blur(120px);
  opacity: 0.75;
}

/* Small gradient on right side of contact section */
#contact.section-gradient-glow::after {
  content: '';
  position: absolute;
  top: 60%;
  right: -10%;
  width: 60%;
  height: 50%;
  background: radial-gradient(circle at 80% 50%, rgba(121, 192, 255, 0.3) 0%, rgba(88, 166, 255, 0.2) 20%, rgba(121, 192, 255, 0.15) 35%, transparent 50%);
  filter: blur(80px);
  opacity: 0.2;
  pointer-events: none;
  z-index: 0;
}

/* Footer gradient - same as contact */
footer.section-gradient-glow::before {
  top: 50%;
  left: -60%;
  transform: translateY(-50%);
  background: radial-gradient(ellipse at 30% 50%, rgba(121, 192, 255, 0.4) 0%, rgba(88, 166, 255, 0.3) 20%, rgba(121, 192, 255, 0.2) 40%, rgba(88, 166, 255, 0.1) 60%, transparent 80%);
}

/* Ensure content is above gradient */
.section-gradient-glow > * {
  position: relative;
  z-index: 1;
}

/* ===================================
   Contact Icons with Brand Colors
   =================================== */

/* Gmail icon - Official logo with glow effect */
.contact-icon-gmail {
  position: relative;
  transition: all 0.3s ease;
}

.contact-icon-gmail:hover {
  border-color: #EA4335;
  box-shadow: 0 4px 16px rgba(234, 67, 53, 0.4), 0 0 20px rgba(234, 67, 53, 0.2);
  transform: translateY(-2px) scale(1.05);
}

/* Phone icon - Green with glow on hover */
.contact-icon-phone {
  transition: all 0.3s ease;
}

.contact-icon-phone:hover {
  border-color: #34A853;
  box-shadow: 0 4px 16px rgba(52, 168, 83, 0.4), 0 0 20px rgba(52, 168, 83, 0.2);
  transform: translateY(-2px) scale(1.05);
}

/* Footer Gradient Glow Effect - Blue theme matching contact section */
.footer-with-glow {
  position: relative;
}

.footer-gradient-glow {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 150%;
  height: 250px;
  background: radial-gradient(ellipse at center, rgba(121, 192, 255, 0.3) 0%, rgba(88, 166, 255, 0.2) 30%, transparent 70%);
  pointer-events: none;
  filter: blur(80px);
  animation: footerGlowPulse 20s ease-in-out infinite;
  animation-delay: -12s;
}

@keyframes footerGlowPulse {
  0%, 100% {
    opacity: 0.6;
    transform: translateX(-50%) scale(1);
  }
  25% {
    opacity: 0.8;
    transform: translateX(-45%) scale(1.1);
  }
  50% {
    opacity: 0.7;
    transform: translateX(-50%) scale(1.05);
  }
  75% {
    opacity: 0.8;
    transform: translateX(-55%) scale(1.1);
  }
}

/* ===================================
   Utility Classes
   =================================== */

/* Glass Panel Effect */
.glass-panel {
  background: rgba(22, 27, 34, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border-dark);
}

/* Gradient Background */
.gradient-radial {
  background: radial-gradient(circle at center, rgba(121, 192, 255, 0.1) 0%, transparent 70%);
}

/* Glow Effect */
.glow-primary {
  box-shadow: 0 0 60px rgba(121, 192, 255, 0.3);
}

.glow-primary-hover:hover {
  box-shadow: 0 0 80px rgba(121, 192, 255, 0.5);
  transition: box-shadow var(--transition-base);
}

/* ===================================
   Hero Section - Fixed with Natural Scroll Frame Animation
   =================================== */

.hero-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  z-index: 1;
  /* Ensure no gaps or constraints */
  max-width: 100%;
  max-height: 100vh;
}

.hero-section.hidden {
  display: none;
}

/* Image wrapper - fills entire viewport edge to edge */
.hero-image-wrapper {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  /* Ensure no gaps on any screen size */
  background-color: #0d1117;
}

/* Full-screen headshot image - FORCE FILL ENTIRE SCREEN */
.hero-image,
#animated-headshot {
  /* Absolute positioning */
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  
  /* Force full viewport coverage */
  width: 100% !important;
  height: 100vh !important;
  min-width: 100% !important;
  min-height: 100vh !important;
  max-width: none !important;
  max-height: none !important;
  
  /* Cover entire area, crop if needed */
  object-fit: cover !important;
  object-position: center !important;
  
  /* Remove any spacing */
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  
  /* Disable dragging and selection */
  user-select: none !important;
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  pointer-events: none !important;
  -webkit-user-drag: none !important;
  -khtml-user-drag: none !important;
  -moz-user-drag: none !important;
  -o-user-drag: none !important;
  user-drag: none !important;
}

/* Remove media queries - force same behavior on ALL screens */

/* Text overlay container - positioned at bottom */
.hero-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end; /* Position at bottom */
  padding-bottom: 18vh; /* More elevation for desktop/laptop */
  z-index: 20;
  pointer-events: none;
}

/* Hero motto styling - Bottom positioned with gradient backdrop */
.hero-motto {
  opacity: 1;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
  font-weight: 800;
  font-size: 5rem;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: #ffffff;
  position: relative;
  text-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.8),
    0 2px 4px rgba(0, 0, 0, 0.6),
    0 4px 8px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(88, 166, 255, 0.3);
  display: inline-block;
  padding: 1.5rem 2.5rem;
  white-space: nowrap; /* Keep on one line by default */
}

/* Allow wrapping only on smaller screens */
@media (max-width: 768px) {
  .hero-motto {
    white-space: normal;
    max-width: 90%;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .hero-motto {
    max-width: 95%;
  }
}

/* Full-width bottom gradient overlay - rises up as you scroll */
.hero-bottom-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100vh;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(13, 17, 23, 0) 40%,
    rgba(13, 17, 23, 1) 100%
  );
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  z-index: 10;
  pointer-events: none;
  transition: none; /* Will be controlled by JS */
}

/* Individual letter styling */
.hero-motto .letter {
  display: inline-block;
  opacity: 1;
}

/* Falling animation for new letters */
.hero-motto .letter.falling {
  animation: letterDrop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes letterDrop {
  0% {
    opacity: 0;
    transform: translateY(-80px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Highlighted name - GitHub blue accent with extra glow */
.hero-name {
  color: #79c0ff;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-shadow: 
    0 0 20px rgba(121, 192, 255, 0.6),
    0 0 40px rgba(121, 192, 255, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.8);
  white-space: nowrap; /* Keep "Tirth Shah" on one line */
  display: inline-block;
}

/* Typewriter cursor - simple and clean */
.typewriter-cursor {
  color: #79c0ff;
  animation: blink 1s step-end infinite;
  font-weight: 300;
  margin-left: 2px;
  display: none; /* Hidden by default, shown by JS when typing starts */
  text-shadow: 0 0 10px rgba(88, 166, 255, 0.5);
}

@keyframes blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

/* Responsive text sizing */
@media (max-width: 1024px) {
  .hero-motto {
    font-size: 3.5rem;
    padding: 1.25rem 2rem;
  }
  
  .hero-content {
    padding-bottom: 20vh; /* More elevation for laptop */
  }
}

@media (max-width: 768px) {
  .hero-motto {
    font-size: 3.5rem;
    font-weight: 900;
    padding: 1rem 1.75rem;
    line-height: 1.2;
  }
  
  .hero-content {
    padding-bottom: 25vh; /* More elevation for tablet */
  }
}

@media (max-width: 640px) {
  .hero-motto {
    font-size: 3.25rem;
    font-weight: 900;
    padding: 1rem 1.5rem;
    line-height: 1.25;
    max-width: 95%;
  }
  
  .hero-content {
    padding-bottom: 35vh; /* More elevation for mobile */
  }
}

/* Scroll spacer to create scroll range for frame animation */
/* This creates the scroll distance but hero stays fixed */
.hero-scroll-spacer {
  height: calc(73 * 20px + 100vh); /* 73 frames * 20px + full viewport height buffer (reduced for faster animation) */
  width: 100%;
  position: relative;
  z-index: 0;
}

/* Mac window section - ensure it appears above hero when scrolled */
#mac-window {
  position: relative;
  z-index: 2;
  background-color: #0d1117;
  margin-top: -2rem; /* Slight overlap for smooth transition */
}

/* Mac window container - ensure content stays within bounds */
.mac-window {
  position: relative !important;
  overflow: visible !important;
  border-top: 1px solid rgba(121, 192, 255, 0.3) !important;
  border-left: 1px solid #30363d !important;
  border-right: 1px solid #30363d !important;
  border-bottom: 1px solid #30363d !important;
  border-radius: 1rem !important; /* 16px - more rounded like real Mac windows */
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 8px 24px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05); /* Subtle inner highlight */
}

/* Window chrome (top bar) styling */
.window-chrome {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(13, 17, 23, 0.95) !important;
}

/* Traffic light buttons - add subtle hover effects */
.window-chrome > div:first-child > div {
  transition: transform 0.2s ease, opacity 0.2s ease;
  cursor: pointer;
}

.window-chrome > div:first-child > div:hover {
  transform: scale(1.15);
  opacity: 0.8;
}

/* Add gradient overlay on top 60% only */
.mac-window::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  border-radius: 1rem; /* Match the Mac window border-radius */
  box-shadow: 
    0 -10px 80px -10px rgba(121, 192, 255, 0.25),
    0 -80px 120px -20px rgba(121, 192, 255, 0.15),
    -40px 0 80px -10px rgba(121, 192, 255, 0.25),
    40px 0 80px -10px rgba(121, 192, 255, 0.25),
    -80px 0 120px -20px rgba(121, 192, 255, 0.15),
    80px 0 120px -20px rgba(121, 192, 255, 0.15);
}

/* Tab content container - auto height to fit content, no scrollbar */
.tab-content-container {
  position: relative !important;
  overflow: visible !important;
  min-height: auto !important;
  height: auto !important;
  background-color: #161b22 !important;
}

/* Header transparency over hero section */
#main-header {
  /* Start completely transparent - NO !important so JS can override */
  background-color: transparent;
  border-bottom: 1px solid transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  z-index: 100 !important; /* Above hero section */
  /* Smooth transition for darkening effect */
  transition: background-color 0.3s ease, 
              border-bottom 0.3s ease, 
              backdrop-filter 0.3s ease,
              -webkit-backdrop-filter 0.3s ease;
}

/* Header Logo - Three states: Tirth Shah / TS / Solar System */
#header-logo {
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.2s ease;
}

#header-logo:hover {
  transform: scale(1.05);
}

/* Full name styling - larger */
#full-name-logo {
  color: #ffffff;
  font-size: 1.35rem;
  font-weight: 700;
  transition: all 0.3s ease;
}

/* TS Text styling - larger */
#ts-logo {
  color: #79c0ff;
  font-size: 1.5rem;
  font-weight: 900;
  text-shadow: 0 0 12px rgba(121, 192, 255, 0.6);
  transition: all 0.3s ease;
}

#ts-logo:hover {
  text-shadow: 0 0 18px rgba(121, 192, 255, 0.8);
}

/* Googly Eyes SVG styling - Mickey Mouse style, centered */
#solar-logo {
  filter: drop-shadow(0 0 10px rgba(121, 192, 255, 0.4));
  transition: filter 0.3s ease;
  min-width: 100px;
  min-height: 50px;
}

#solar-logo:hover {
  filter: drop-shadow(0 0 15px rgba(121, 192, 255, 0.6));
}

/* Smooth pupil movement */
#left-pupil, #right-pupil, #left-iris, #right-iris {
  transition: cx 0.1s ease-out, cy 0.1s ease-out;
}

/* ===================================
   Scroll to Top Button
   =================================== */

.scroll-to-top-btn {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 56px;
  height: 56px;
  border: 1.5px solid rgba(255, 255, 255, 0.25) !important;
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.5),
    0 2px 8px rgba(0, 0, 0, 0.3),
    0 1px 0 0 rgba(255, 255, 255, 0.1) inset,
    0 0 0 1px rgba(255, 255, 255, 0.15) inset;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.8);
}

.scroll-to-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.scroll-to-top-btn:hover {
  transform: translateY(-4px) scale(1.05);
  border-color: rgba(121, 192, 255, 0.5) !important;
  box-shadow: 
    0 12px 48px rgba(0, 0, 0, 0.6),
    0 4px 12px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(121, 192, 255, 0.4),
    0 1px 0 0 rgba(255, 255, 255, 0.2) inset,
    0 0 0 1px rgba(121, 192, 255, 0.3) inset;
  color: #ffffff;
}

.scroll-to-top-btn:active {
  transform: translateY(-2px) scale(1.05);
}

.scroll-to-top-btn svg {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

/* Better hover animation - contained within button */
.scroll-to-top-btn:hover svg {
  animation: arrowBounce 0.8s ease-in-out infinite;
}

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

/* Click animation - pulse effect */
.scroll-to-top-btn:active svg {
  animation: none;
  transform: scale(0.9);
}

/* Add ripple effect on click */
.scroll-to-top-btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s, opacity 0.6s;
  opacity: 0;
}

.scroll-to-top-btn:active::before {
  width: 100px;
  height: 100px;
  opacity: 0;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .scroll-to-top-btn {
    bottom: 1.5rem;
    left: 1.5rem;
    width: 48px;
    height: 48px;
  }
  
  .scroll-to-top-btn svg {
    width: 20px;
    height: 20px;
  }
}

/* ===================================
   Footer Heart Icon Animation
   =================================== */

.heart-icon {
  color: #ff6b6b !important;
  display: inline-block;
  animation: heartbeat 1.5s ease-in-out infinite;
  transform-origin: center;
  vertical-align: middle;
}

@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  10% {
    transform: scale(1.2);
  }
  20% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.2);
  }
  40% {
    transform: scale(1);
  }
}

.heart-icon:hover {
  animation: heartbeat 0.5s ease-in-out infinite;
  color: #ff5252 !important;
}

/* Hero text overlay styling - Minimal & Professional */
.hero-text {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.hero-text h1 {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.hero-text p {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* Simple labels - Stripe/GitHub style */
.simple-label {
  transition: color 0.2s ease;
  cursor: default;
}

.simple-label:hover {
  color: #c9d1d9;
}

/* ===================================
   Continuous Scrolling Skills Marquee (Section Width)
   =================================== */

/* Section-width wrapper - spans full section width, no side borders */
.marquee-wrapper-section {
  position: relative;
  padding: 1.5rem 0; /* Equal padding top and bottom */
  background-color: #0d1117;
  margin-top: 5px; /* Small space from top */
  margin-bottom: 8rem; /* Increased space between marquee and Mac window */
  margin-left: 0; /* No negative margin */
  margin-right: 0;
  padding-left: 1rem; /* Maintain content padding */
  padding-right: 1rem;
  border-top: 3px solid #30363d;
  border-bottom: 3px solid #30363d;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease-out;
  will-change: transform;
  overflow: hidden !important; /* Force prevent horizontal overflow */
  overflow-x: hidden !important; /* Explicitly prevent horizontal scroll */
  width: 100%; /* Ensure it doesn't exceed viewport */
  max-width: 100vw !important; /* Cap at viewport width */
}

/* Adjust for different screen sizes */
@media (min-width: 640px) {
  .marquee-wrapper-section {
    margin-left: 0;
    margin-right: 0;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

.marquee-container {
  width: 100%;
  overflow: hidden !important; /* Force hide overflow */
  overflow-x: hidden !important;
  position: relative;
  max-width: 100%; /* Prevent extending beyond parent */
}

.marquee-content {
  display: flex;
  gap: 4rem;
  animation: marqueeScroll 25s linear infinite;
  width: fit-content;
}

.marquee-item {
  font-size: 2rem;
  font-weight: 600;
  color: #8b949e;
  white-space: nowrap;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
  letter-spacing: -0.02em;
  transition: all 0.4s ease;
  cursor: pointer;
  display: inline-block;
  vertical-align: middle;
}

/* Subtle bluish tint on hover */
.marquee-item:hover {
  color: #79c0ff;
  text-shadow: 0 0 20px rgba(121, 192, 255, 0.4);
  transform: translateZ(0); /* Force GPU acceleration and prevent shifting */
}

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

/* Pause animation on hover */
.marquee-container:hover .marquee-content {
  animation-play-state: paused;
}

/* Responsive padding */
@media (max-width: 768px) {
  .marquee-wrapper-section {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
  }
}

@media (max-width: 640px) {
  .marquee-wrapper-section {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
}

/* Responsive font sizes */
@media (max-width: 768px) {
  .marquee-item {
    font-size: 1.5rem;
  }
  
  .marquee-content {
    gap: 6rem;
  }
}

@media (max-width: 640px) {
  .marquee-item {
    font-size: 1.25rem;
  }
  
  .marquee-content {
    gap: 4rem;
  }
}

/* Role tags styling */
.role-tag {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.role-tag:nth-child(1) { animation-delay: 0.1s; }
.role-tag:nth-child(2) { animation-delay: 0.2s; }
.role-tag:nth-child(3) { animation-delay: 0.3s; }
.role-tag:nth-child(4) { animation-delay: 0.4s; }
.role-tag:nth-child(5) { animation-delay: 0.5s; }

/* GitHub-style role pills */
.role-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(22, 27, 34, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(48, 54, 61, 0.8);
  border-radius: 6px;
  color: #c9d1d9;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
  transition: all 0.2s ease;
  animation: fadeInUp 0.6s ease-out forwards;
  opacity: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.role-pill:nth-child(1) { animation-delay: 0.1s; }
.role-pill:nth-child(2) { animation-delay: 0.2s; }
.role-pill:nth-child(3) { animation-delay: 0.3s; }
.role-pill:nth-child(4) { animation-delay: 0.4s; }

.role-pill:hover {
  background: rgba(48, 54, 61, 0.8);
  border-color: rgba(121, 192, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

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

/* Scroll indicator styling */
#scroll-indicator {
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 10px);
  }
}

/* Gradient Border */
.gradient-border-top {
  border-top: 4px solid;
  border-image: linear-gradient(to right, var(--color-primary), var(--color-accent-purple)) 1;
}

/* ===================================
   Enhanced Glass Button System
   =================================== */

/* Glass Button Base Container */
.glass-button {
  --bg-color: rgba(255, 255, 255, 0.08);
  --border-color: rgba(255, 255, 255, 0.2);
  --highlight: rgba(255, 255, 255, 0.4);
  --text: #ffffff;
  position: relative;
  cursor: pointer;
  overflow: hidden;
  background: transparent;
  border: 1px solid var(--border-color);
  transition: transform 0.2s ease, border-color 0.2s ease;
  outline: none;
}

.glass-button:hover {
  transform: scale(1.05);
  border-color: rgba(255, 255, 255, 0.3);
}

.glass-button:active {
  transform: scale(0.95);
}

/* Glass Layers */
.glass-filter,
.glass-overlay,
.glass-specular {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.glass-filter {
  z-index: 1;
  backdrop-filter: blur(8px) saturate(150%);
  -webkit-backdrop-filter: blur(8px) saturate(150%);
  filter: url(#glass-distortion) saturate(120%) brightness(1.1);
}

.glass-overlay {
  z-index: 2;
  background: var(--bg-color);
}

.glass-specular {
  z-index: 3;
  box-shadow: 
    inset 0 1px 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -1px 1px 0 rgba(0, 0, 0, 0.1);
  transition: background 0.2s ease;
}

.glass-content {
  position: relative;
  z-index: 4;
  color: var(--text);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===================================
   Button Styles
   =================================== */

/* GitHub-style Resume Button with Enhanced Glass Effect */
.resume-btn {
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
  font-weight: 500;
  line-height: 20px;
  white-space: nowrap;
  vertical-align: middle;
  user-select: none;
  border-radius: 14px;
  appearance: none;
  text-decoration: none;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.5),
    0 0 1px rgba(255, 255, 255, 0.8);
  box-shadow: 
    0 4px 16px rgba(0, 0, 0, 0.3),
    0 1px 0 0 rgba(255, 255, 255, 0.1) inset,
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.resume-btn:hover {
  transform: translateY(-2px) scale(1.02);
  border-color: rgba(121, 192, 255, 0.5) !important;
  color: rgba(255, 255, 255, 1);
  text-shadow: 
    0 1px 3px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(121, 192, 255, 0.5),
    0 0 1px rgba(255, 255, 255, 1);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 60px rgba(121, 192, 255, 0.4),
    0 1px 0 0 rgba(255, 255, 255, 0.2) inset,
    0 0 0 1px rgba(121, 192, 255, 0.3) inset;
}

.resume-btn:active {
  transform: translateY(0) scale(1);
  text-shadow: 
    0 1px 2px rgba(0, 0, 0, 0.5),
    0 0 10px rgba(255, 255, 255, 0.3);
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.4),
    0 1px 0 0 rgba(255, 255, 255, 0.05) inset;
}

.resume-btn:focus-visible {
  outline: 2px solid rgba(121, 192, 255, 0.5);
  outline-offset: 2px;
}

/* Alternative: Outline style button (more subtle) */
.resume-btn-outline {
  background: transparent;
  border: 1px solid rgba(240, 246, 252, 0.1);
  color: #c9d1d9;
  box-shadow: 0 0 transparent;
}

.resume-btn-outline:hover {
  background: rgba(240, 246, 252, 0.05);
  border-color: rgba(240, 246, 252, 0.2);
  color: #ffffff;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px; /* Minimum touch target for mobile */
  min-height: 44px; /* Minimum touch target for mobile */
  width: 2.75rem; /* Increased from 2.5rem */
  height: 2.75rem; /* Increased from 2.5rem */
  background-color: var(--color-surface-dark);
  color: var(--color-text-secondary);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-dark);
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
}

.icon-button:hover {
  background-color: var(--color-border-dark);
  color: var(--color-primary);
  border-color: var(--color-primary);
}

/* ===================================
   Badge Styles
   =================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  background-color: var(--color-border-dark);
  color: var(--color-text-secondary);
  font-size: 0.875rem;
  border-radius: 9999px;
}

.badge-success {
  background-color: rgba(63, 185, 80, 0.1);
  color: var(--color-accent-green);
}

.badge-warning {
  background-color: rgba(210, 153, 34, 0.1);
  color: var(--color-accent-yellow);
}

.badge-error {
  background-color: rgba(248, 81, 73, 0.1);
  color: var(--color-accent-red);
}

/* ===================================
   Tab Navigation Styles
   =================================== */

.tab-button {
  padding: 0.75rem 1rem;
  min-height: 44px; /* Minimum touch target for mobile */
  background-color: transparent;
  color: var(--color-text-secondary);
  font-size: 0.875rem !important; /* Reduced from 1rem for Mac-style refinement */
  font-weight: 500 !important; /* Reduced from 600 for subtler look */
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

@media (min-width: 640px) {
  .tab-button {
    padding: 1rem 1.5rem;
    font-size: 0.9375rem !important; /* Reduced from 1.125rem - more refined */
  }
}

.tab-button:hover {
  color: var(--color-text-primary);
  background-color: rgba(121, 192, 255, 0.05);
}

.tab-button.active {
  color: var(--color-text-primary);
  border-bottom-color: var(--color-primary);
}

.tab-button:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
}

/* Tab Content Styles */
.tab-content {
  opacity: 1;
  transition: opacity var(--transition-base);
}

.tab-content.hidden {
  display: none;
  opacity: 0;
}

.tab-content.active {
  display: block;
  opacity: 1;
  animation: fadeIn 0.3s ease-out;
}

/* ===================================
   Card Styles
   =================================== */

.card {
  background-color: var(--color-surface-dark);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: all var(--transition-base);
}

.card:hover {
  border-color: var(--color-primary);
  transform: translateY(-4px);
}

/* ===================================
   Tech Tag Styles
   =================================== */

.tech-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--color-surface-dark);
  color: var(--color-text-secondary);
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-dark);
}

/* ===================================
   Animations
   =================================== */

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

/* Loading Screen Googly Eyes Animations */
@keyframes eyeBounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pupilLookAround {
  0%, 100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(8px, -5px);
  }
  50% {
    transform: translate(-8px, 5px);
  }
  75% {
    transform: translate(5px, 8px);
  }
}

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

.loading-eyes {
  animation: eyeBounce 2s ease-in-out infinite;
}

.loading-pupil-left {
  animation: pupilLookAround 4s ease-in-out infinite;
  transform-origin: center;
}

.loading-pupil-right {
  animation: pupilLookAround 4s ease-in-out infinite 0.5s;
  transform-origin: center;
}

.loading-eye-left,
.loading-eye-right {
  animation: eyeBlink 3s ease-in-out infinite;
  transform-origin: center;
}

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

.animate-fade-in {
  animation: fadeIn 0.5s ease-out;
}

.animate-scroll {
  animation: scroll 30s linear infinite;
}

/* Pause animation on hover */
.carousel-container:hover .animate-scroll {
  animation-play-state: paused;
}

/* ===================================
   Enhanced Testimonial Card Styles
   =================================== */

/* Base card with glassmorphism effect - larger for better content fit */
.testimonial-card {
  position: relative;
  min-width: 360px;
  width: 550px;
  height: 380px; /* Fixed height for all cards */
  min-height: 380px;
  max-height: 380px;
  background: linear-gradient(135deg, rgba(22, 27, 34, 0.95), rgba(13, 17, 23, 0.98));
  backdrop-filter: blur(10px);
  border: 1px solid rgba(48, 54, 61, 0.6);
  border-radius: 16px;
  padding: 2rem;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  filter: grayscale(100%) brightness(0.7);
  opacity: 0.4;
  transform: scale(0.75);
  will-change: transform, opacity, filter; /* Optimize transforms */
  contain: layout style paint; /* Contain rendering to prevent overflow */
}

/* Visible carousel cards - smooth transitions */
.testimonial-card.carousel-card:not(.wrapping) {
  transition: filter 0.6s ease-out, 
              opacity 0.6s ease-out, 
              transform 0.4s cubic-bezier(0.34, 1.2, 0.64, 1),
              border-color 0.4s ease-out,
              border-width 0.4s ease-out,
              box-shadow 0.4s ease-out;
}

/* Center card - colorful and larger */
.testimonial-card.center-card {
  filter: grayscale(0%) brightness(1.1);
  opacity: 1;
  transform: scale(1.15);
  border-color: var(--border-color, #79c0ff);
  border-width: 2px;
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.6),
    0 0 0 2px var(--border-color, #79c0ff)60,
    0 0 100px var(--border-color, #79c0ff)40,
    0 0 150px var(--border-color, #79c0ff)20;
}

.testimonial-card.center-card .testimonial-gradient-bg {
  opacity: 1;
}

/* Wrapping cards - instantly hidden */
.testimonial-card.wrapping {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: none !important;
}

/* Responsive sizing - smaller on mobile */
@media (max-width: 640px) {
  .testimonial-card {
    min-width: 300px;
    width: 300px;
    height: 340px;
    min-height: 340px;
    max-height: 340px;
    padding: 1.5rem;
    transform: scale(0.8);
  }
  
  .testimonial-card.center-card {
    transform: scale(1.05);
  }
  
  .testimonial-card.center-card:hover {
    transform: translateY(-6px) scale(1.1);
  }
  
  .testimonial-quote {
    font-size: 0.9rem;
    line-height: 1.6;
    -webkit-line-clamp: 6;
  }
  
  .carousel-container {
    padding: 2rem 0;
  }
}

@media (min-width: 641px) and (max-width: 1024px) {
  .testimonial-card {
    min-width: 420px;
    width: 420px;
    height: 360px;
    min-height: 360px;
    max-height: 360px;
    padding: 1.75rem;
    transform: scale(0.82);
  }
  
  .testimonial-card.center-card {
    transform: scale(1.12);
  }
  
  .testimonial-card.center-card:hover {
    transform: translateY(-7px) scale(1.16);
  }
  
  .testimonial-quote {
    font-size: 0.95rem;
    line-height: 1.65;
    -webkit-line-clamp: 7;
  }
  
  .carousel-container {
    padding: 2.5rem 0;
  }
}

@media (min-width: 1025px) {
  .testimonial-card {
    min-width: 550px;
    width: 550px;
    height: 380px;
    min-height: 380px;
    max-height: 380px;
  }
}

/* Gradient background overlay */
.testimonial-gradient-bg {
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 30%, var(--border-color, #79c0ff)15, transparent 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}

/* Hover effects - only scale up slightly to prevent clipping */
.testimonial-card:not(.center-card):hover {
  transform: translateY(-4px) scale(0.78);
  filter: grayscale(80%) brightness(0.8);
  opacity: 0.5;
  transition: all 0.3s ease-out;
}

/* Center card hover - enhance instead of dim */
.testimonial-card.center-card:hover {
  transform: translateY(-8px) scale(1.18);
  filter: grayscale(0%) brightness(1.25) !important;
  border-width: 3px;
  box-shadow: 
    0 35px 70px rgba(0, 0, 0, 0.7),
    0 0 0 3px var(--border-color, #79c0ff)80,
    0 0 120px var(--border-color, #79c0ff)60,
    0 0 180px var(--border-color, #79c0ff)30;
  transition: all 0.3s ease-out;
}

/* Mobile: Reduce hover effects for better performance */
@media (max-width: 640px) {
  .testimonial-card:not(.center-card):hover {
    transform: translateY(-3px) scale(0.82);
  }
  
  .testimonial-card.center-card:hover {
    transform: translateY(-6px) scale(1.1);
    box-shadow: 
      0 25px 50px rgba(0, 0, 0, 0.6),
      0 0 0 2px var(--border-color, #79c0ff)70,
      0 0 80px var(--border-color, #79c0ff)50;
  }
}

/* Tablet: Moderate hover effects */
@media (min-width: 641px) and (max-width: 1024px) {
  .testimonial-card:not(.center-card):hover {
    transform: translateY(-3px) scale(0.8);
  }
  
  .testimonial-card.center-card:hover {
    transform: translateY(-7px) scale(1.16);
    box-shadow: 
      0 30px 60px rgba(0, 0, 0, 0.65),
      0 0 0 2px var(--border-color, #79c0ff)75,
      0 0 100px var(--border-color, #79c0ff)55;
  }
}

/* Enhance text brightness on center card hover */
.testimonial-card.center-card:hover .testimonial-quote {
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(121, 192, 255, 0.3) !important;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.testimonial-card.center-card:hover .author-name {
  color: #ffffff !important;
  transition: color 0.25s ease;
}

.testimonial-card.center-card:hover .author-title {
  color: #c9d1d9 !important;
  transition: color 0.25s ease;
}

.testimonial-card.center-card:hover .author-company {
  filter: brightness(1.3) !important;
  transition: filter 0.25s ease;
}

.testimonial-card:hover .testimonial-gradient-bg {
  opacity: 1;
  transition: opacity 0.25s ease;
}

.testimonial-card:hover .quote-mark {
  transform: scale(1.1) rotate(-5deg);
  opacity: 0.3;
  transition: all 0.25s ease;
}

.testimonial-card:hover .avatar-ring {
  transform: scale(1.15);
  opacity: 1;
  transition: all 0.25s ease;
}

/* Quote mark styling - smaller */
.quote-mark-wrapper {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1;
}

.quote-mark {
  font-size: 3rem;
  color: rgba(48, 54, 61, 0.4);
  opacity: 0.2;
  transition: all 0.4s ease;
  display: block;
}

/* Card content - flex to push author to bottom */
.testimonial-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

/* Quote text with enhanced typography - improved readability */
.testimonial-quote {
  color: #e6edf3;
  font-size: 1rem;
  line-height: 1.7;
  font-style: normal;
  font-weight: 400;
  margin-bottom: auto;
  position: relative;
  z-index: 2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 8;
  -webkit-box-orient: vertical;
  letter-spacing: 0.01em;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  flex: 1; /* Take up available space */
  min-height: 0;
}

@media (max-width: 640px) {
  .testimonial-quote {
    font-size: 0.9rem;
    line-height: 1.65;
    -webkit-line-clamp: 6;
    max-height: 8.91rem;
  }
}

/* Author section - at bottom */
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  position: relative;
  z-index: 2;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(48, 54, 61, 0.5);
}

/* Avatar wrapper with animated ring - smaller */
.avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}

.avatar-ring {
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    var(--avatar-color, #79c0ff),
    transparent 180deg,
    var(--avatar-color, #79c0ff) 360deg
  );
  opacity: 0;
  transform: scale(1);
  transition: all 0.4s ease;
  animation: rotate 3s linear infinite;
  animation-play-state: paused;
}

.testimonial-card:hover .avatar-ring {
  animation-play-state: running;
}

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

/* Avatar image - smaller */
.avatar-image {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--avatar-color, #79c0ff);
  object-fit: cover;
  position: relative;
  z-index: 1;
  background: #0d1117;
}

/* Avatar placeholder - smaller */
.avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--avatar-color, #79c0ff);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.avatar-icon {
  font-size: 1.5rem;
}

/* Author details - more compact */
.author-details {
  flex: 1;
  min-width: 0;
}

.author-name {
  font-weight: 700;
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 0.125rem;
  line-height: 1.3;
}

.author-title {
  font-size: 0.8rem;
  color: #8b949e;
  margin-bottom: 0.125rem;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.author-company {
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .author-name {
    font-size: 0.9rem;
  }
  .author-title,
  .author-company {
    font-size: 0.75rem;
  }
}

/* Carousel container enhancements */
.carousel-container {
  position: relative;
  overflow-x: hidden !important; /* Force hide horizontal overflow */
  overflow-y: visible;
  padding: 3rem 0;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  max-width: 100vw; /* Cap at viewport width */
  width: 100%; /* Full width */
}

/* Testimonials section - prevent overflow */
#testimonials {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100%;
  position: relative;
}

.carousel-container::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

/* Ensure cards outside viewport are hidden */
.carousel-track {
  position: relative;
  overflow: visible;
  max-width: 100vw; /* Prevent track from extending beyond viewport */
}

/* Wrapping cards - instantly hidden, no transition */
.testimonial-card.wrapping {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: none !important; /* Override all transitions for instant hide */
  position: absolute !important; /* Remove from document flow */
  transform: translateX(-9999px) !important; /* Move far off-screen */
}

/* Visible carousel cards - allow transitions */
.testimonial-card.carousel-card:not(.wrapping) {
  transition: filter 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), 
              opacity 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), 
              transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.3s ease,
              border-width 0.3s ease,
              box-shadow 0.3s ease;
}

/* Navigation buttons - below header, above carousel */
.carousel-nav-buttons {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  z-index: 20;
}

.carousel-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: rgba(22, 27, 34, 0.8);
  border: 1px solid rgba(48, 54, 61, 0.6);
  color: #8b949e;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.carousel-nav-btn:hover {
  background: rgba(22, 27, 34, 1);
  border-color: #79c0ff;
  color: #79c0ff;
  transform: translateY(-2px);
}

.carousel-nav-btn:active {
  transform: translateY(0);
}

.carousel-nav-btn .material-symbols-outlined {
  font-size: 1.75rem;
}

/* ===================================
   Blog Card Styles
   =================================== */

.blog-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden; /* Ensure content respects border radius */
}

.blog-card .aspect-video {
  overflow: hidden;
  border-radius: 24px 24px 0 0;
}

.blog-card .aspect-video img {
  filter: grayscale(100%);
  transition: filter 0.3s ease, transform var(--transition-base);
  border-radius: 24px 24px 0 0; /* Match parent container */
  display: block; /* Remove any inline spacing */
}

.blog-card:hover .aspect-video img {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.blog-card .aspect-video > div {
  transition: transform var(--transition-base);
}

.blog-card:hover .aspect-video > div {
  transform: scale(1.05);
}

/* Line clamp utility (for older browsers) */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===================================
   Responsive Utilities
   =================================== */

/* Tab navigation - hide scrollbar */
.tab-navigation {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox - hide scrollbar */
}

.tab-navigation::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Edge - hide scrollbar */
}

@media (max-width: 640px) {
  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

/* ===================================
   Touch Target Optimization for Mobile
   =================================== */

/* Ensure all interactive elements meet 44x44px minimum */
@media (max-width: 768px) {
  /* Header navigation links and buttons */
  header a,
  header button {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Window chrome action icons */
  .window-chrome .material-symbols-outlined {
    padding: 0.5rem;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  
  /* Contact section links */
  #contact a {
    min-height: 44px;
    padding: 0.5rem 0;
    display: inline-flex;
    align-items: center;
  }
  
  /* Footer social icons */
  footer a {
    min-width: 44px;
    min-height: 44px;
  }
  
  /* Blog card links */
  .blog-card a,
  .blog-card h3 {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  
  /* Project card action buttons */
  .project-card .icon-button {
    min-width: 44px;
    min-height: 44px;
  }
  
  .project-card button {
    min-height: 44px;
  }
  
  /* Form inputs and buttons */
  input,
  textarea,
  button[type="submit"] {
    min-height: 44px;
  }
  
  /* Increase spacing between interactive elements */
  .flex.gap-2 {
    gap: 0.75rem;
  }
  
  .flex.gap-3 {
    gap: 1rem;
  }
  
  .flex.gap-4 {
    gap: 1.25rem;
  }
  
  /* Tab buttons spacing */
  .tab-navigation {
    gap: 0.25rem;
  }
  
  /* Technology items - increase touch area */
  .tech-item {
    min-height: 44px;
    padding: 0.75rem;
  }
}

/* ===================================
   Contact Form Success Animation - Clean & Simple
   =================================== */

/* Override browser autofill styling */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
textarea:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px #0d1117 inset !important;
  -webkit-text-fill-color: #ffffff !important;
  caret-color: #ffffff;
  transition: background-color 5000s ease-in-out 0s;
}

/* Firefox autofill */
input:-moz-autofill,
input:-moz-autofill-preview,
textarea:-moz-autofill,
textarea:-moz-autofill-preview {
  background-color: #0d1117 !important;
  color: #ffffff !important;
}

.form-success-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 17, 23, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 0.5rem;
}

.form-success-overlay.active {
  opacity: 1;
}

.success-content {
  text-align: center;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.form-success-overlay.active .success-content {
  transform: translateY(0);
  opacity: 1;
}

.success-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  transform: scale(0);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.form-success-overlay.active .success-icon {
  transform: scale(1);
  transition-delay: 0.1s;
}

.success-icon svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 20px rgba(63, 185, 80, 0.4));
}

.success-icon circle {
  stroke-dasharray: 63;
  stroke-dashoffset: 63;
  animation: drawCircle 0.6s ease-out forwards;
  animation-delay: 0.2s;
}

.success-icon path {
  stroke-dasharray: 12;
  stroke-dashoffset: 12;
  animation: drawCheck 0.4s ease-out forwards;
  animation-delay: 0.6s;
}

.success-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #3fb950;
  margin-bottom: 0.75rem;
  opacity: 0;
  animation: fadeInUp 0.5s ease-out forwards;
  animation-delay: 0.8s;
}

.success-text {
  font-size: 1rem;
  color: #8b949e;
  opacity: 0;
  animation: fadeInUp 0.5s ease-out forwards;
  animation-delay: 1s;
}

@keyframes drawCircle {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes drawCheck {
  to {
    stroke-dashoffset: 0;
  }
}

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

/* ===================================
   Accessibility
   =================================== */

/* Hide scrollbar for horizontal icon scroll */
.scrollbar-hide {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;  /* Chrome, Safari and Opera */
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}


/* Visible carousel cards - smooth transitions */
.testimonial-card.carousel-card:not(.wrapping) {
  transition: filter 0.6s ease-out, 
              opacity 0.6s ease-out, 
              transform 0.4s cubic-bezier(0.34, 1.2, 0.64, 1),
              border-color 0.4s ease-out,
              border-width 0.4s ease-out,
              box-shadow 0.4s ease-out;
}

/* ===================================
   About Me Section - Improved Spacing
   =================================== */

/* Bio paragraphs - more breathing room */
#tab-about .space-y-4 > p {
  line-height: 1.75;
  margin-bottom: 1.25rem;
  text-align: justify;
}

/* Key achievements list - balanced spacing */
#tab-about ul.space-y-3 {
  gap: 0.25rem;
}

#tab-about ul.space-y-3 li {
  line-height: 1.7;
  padding: 0.25rem 0;
}

/* Education entries - better spacing */
#tab-about .lg\:col-span-2 .border-t {
  margin-top: 1.5rem !important;
  padding-top: 1.5rem !important;
}

/* Current Focus tags - more breathing room */
#current-focus-container {
  gap: 0.75rem !important;
  row-gap: 0.75rem !important;
}

/* ===================================
   Header Resume Button - Cyan Glow Effect
   =================================== */

#header-resume-btn {
  box-shadow: 
    0 2px 4px rgba(0, 0, 0, 0.2);
}

#header-resume-btn:hover {
  box-shadow: 
    0 0 20px rgba(121, 192, 255, 0.3),
    0 0 40px rgba(121, 192, 255, 0.2),
    0 4px 8px rgba(0, 0, 0, 0.3);
}

/* ===================================
   Projects Grid Section - Terminal-Style 2x2 Layout
   =================================== */

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding: 0.5rem;
  max-width: 100%;
}

/* Mobile: Stack vertically */
@media (max-width: 768px) {
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* Tablet and up: 2 columns */
@media (min-width: 769px) {
  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }
}

/* Project Filters - Category buttons */
.project-filters {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  background: #21262d;
  border: 1px solid #30363d;
  border-radius: 8px;
  color: #8b949e;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background: rgba(121, 192, 255, 0.1);
  border-color: rgba(121, 192, 255, 0.3);
  color: #79c0ff;
}

.filter-btn.active {
  background: rgba(121, 192, 255, 0.15);
  border-color: #79c0ff;
  color: #79c0ff;
}

/* Project Cards - Restructured layout */
.project-card {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-card:hover {
  border-color: #79c0ff;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(121, 192, 255, 0.15);
  background: linear-gradient(135deg, rgba(22, 27, 34, 1), rgba(121, 192, 255, 0.03));
}

/* Project header - title and year */
.project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.project-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #c9d1d9;
  line-height: 1.3;
  flex: 1;
  transition: color 0.3s ease;
}

.project-card:hover .project-title {
  color: #79c0ff;
}

.project-year {
  padding: 0.25rem 0.75rem;
  background: #21262d;
  border: 1px solid #30363d;
  border-radius: 6px;
  color: #8b949e;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.project-card:hover .project-year {
  background: rgba(121, 192, 255, 0.1);
  border-color: rgba(121, 192, 255, 0.3);
  color: #79c0ff;
}

/* Project content */
.project-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.project-description {
  color: #8b949e;
  font-size: 0.9375rem;
  line-height: 1.6;
  transition: color 0.3s ease;
  text-align: justify;
}

.project-card:hover .project-description {
  color: #c9d1d9;
}

/* Project tech tags - compact with max 5 visible */
.project-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.project-tech-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  background: #21262d;
  border: 1px solid #30363d;
  border-radius: 6px;
  color: #8b949e;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.tech-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
  filter: grayscale(100%) opacity(0.6);
  transition: filter 0.3s ease;
}

.project-card:hover .project-tech-tag {
  background: rgba(121, 192, 255, 0.1);
  border-color: rgba(121, 192, 255, 0.3);
  color: #79c0ff;
}

.project-card:hover .tech-icon {
  filter: grayscale(0%) opacity(1);
}

.tech-more {
  font-style: italic;
  opacity: 0.7;
}

/* Project actions - prominent buttons */
.project-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid #30363d;
}

.project-btn-primary {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: #21262d;
  border: 1px solid #30363d;
  border-radius: 8px;
  color: #8b949e;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.project-card:hover .project-btn-primary {
  background: rgba(121, 192, 255, 0.1);
  border-color: rgba(121, 192, 255, 0.3);
  color: #79c0ff;
}

.project-btn-primary:hover {
  background: rgba(121, 192, 255, 0.2);
  border-color: #79c0ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(121, 192, 255, 0.3);
}

.project-btn-primary .material-symbols-outlined {
  font-size: 1.125rem;
}

/* ===================================
   Modern Timeline Experience Section - Compact Layout
   =================================== */

/* KPI Cards Grid */
.experience-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
  padding: 0 0.5rem;
}

@media (min-width: 640px) {
  .experience-kpi-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .experience-kpi-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.kpi-card {
  background: linear-gradient(135deg, rgba(22, 27, 34, 0.95), rgba(13, 17, 23, 0.98));
  border: 1px solid #30363d;
  border-radius: 12px;
  padding: 1.25rem 1rem;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  overflow: hidden;
  cursor: default;
}

.kpi-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(121, 192, 255, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.kpi-card:hover {
  border-color: #79c0ff;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3),
              0 0 0 1px rgba(121, 192, 255, 0.2);
}

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

.kpi-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.kpi-icon .material-symbols-outlined {
  font-size: 2rem;
  color: #79c0ff;
  transition: all 0.3s ease;
}

.kpi-card:hover .kpi-icon .material-symbols-outlined {
  transform: scale(1.1);
  filter: drop-shadow(0 0 8px rgba(121, 192, 255, 0.5));
}

.kpi-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  margin-bottom: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
}

.kpi-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #8b949e;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

.experience-timeline-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* Central vertical line */
.timeline-center-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, 
    transparent 0%,
    #30363d 10%,
    #30363d 90%,
    transparent 100%
  );
  transform: translateX(-50%);
  z-index: 1;
}

/* Timeline item wrapper */
.timeline-item {
  position: relative;
  margin-bottom: 4rem; /* Increased from 2rem for better spacing */
  opacity: 0.3; /* More subtle inactive state */
  transform: scale(0.96);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smoother easing */
}

.timeline-item.active {
  opacity: 1;
  transform: scale(1);
}

/* Alternating left/right layout - more space efficient */
.timeline-item:nth-child(odd) .timeline-content-wrapper {
  padding-right: calc(50% + 2.5rem);
}

.timeline-item:nth-child(even) .timeline-content-wrapper {
  padding-left: calc(50% + 2.5rem);
}

/* Center dot indicator */
.timeline-dot {
  position: absolute;
  left: 50%;
  top: 1.25rem;
  width: 18px;
  height: 18px;
  background: #0d1117;
  border: 3px solid #30363d;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smoother transition */
}

.timeline-item.active .timeline-dot {
  width: 22px;
  height: 22px;
  border-color: #79c0ff;
  box-shadow: 0 0 0 6px rgba(121, 192, 255, 0.2),
              0 0 20px rgba(121, 192, 255, 0.4);
}

/* Experience card - compact design */
.experience-card-modern {
  background: linear-gradient(135deg, rgba(22, 27, 34, 0.95), rgba(13, 17, 23, 0.98));
  border: 1px solid #30363d;
  border-radius: 12px;
  padding: 1.25rem;
  backdrop-filter: blur(10px);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94); /* Smoother transition */
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 0.75rem;
}

.timeline-item.active .experience-card-modern {
  border-color: #79c0ff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4),
              0 0 0 1px rgba(121, 192, 255, 0.3);
}

.experience-card-modern::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 30%, rgba(121, 192, 255, 0.08), transparent 50%);
  opacity: 0;
  transition: opacity 0.6s ease; /* Smoother fade */
  pointer-events: none;
}

.timeline-item.active .experience-card-modern::before {
  opacity: 1;
}

/* Header row - company and current badge */
.experience-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.experience-company {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.experience-position {
  font-size: 1rem;
  font-weight: 600;
  color: #79c0ff;
  line-height: 1.3;
}

/* Meta information - horizontal compact layout */
.experience-meta {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.8125rem;
  color: #8b949e;
}

.experience-meta-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  background: rgba(48, 54, 61, 0.3);
  border-radius: 4px;
  white-space: nowrap;
}

.experience-meta-item .material-symbols-outlined {
  font-size: 0.875rem;
}

/* Summary text - more compact */
.experience-summary {
  color: #c9d1d9;
  line-height: 1.5;
  font-size: 0.875rem;
}

/* Tech tags - inline compact */
.experience-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.tech-tag-modern {
  padding: 0.1875rem 0.625rem;
  background: rgba(121, 192, 255, 0.1);
  border: 1px solid rgba(121, 192, 255, 0.2);
  border-radius: 4px;
  color: #79c0ff;
  font-size: 0.6875rem;
  font-weight: 500;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.timeline-item.active .tech-tag-modern:hover {
  background: rgba(121, 192, 255, 0.2);
  border-color: rgba(121, 192, 255, 0.4);
  transform: translateY(-2px);
}

/* Current position badge - compact */
.current-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  background: rgba(63, 185, 80, 0.15);
  border: 1px solid rgba(63, 185, 80, 0.3);
  border-radius: 4px;
  color: #3fb950;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.current-badge .material-symbols-outlined {
  font-size: 0.75rem;
  animation: pulse 2s ease-in-out infinite;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .timeline-center-line {
    left: 1.5rem;
  }
  
  .timeline-dot {
    left: 1.5rem;
    width: 16px;
    height: 16px;
  }
  
  .timeline-item.active .timeline-dot {
    width: 20px;
    height: 20px;
  }
  
  .timeline-item:nth-child(odd) .timeline-content-wrapper,
  .timeline-item:nth-child(even) .timeline-content-wrapper {
    padding-left: 3.5rem;
    padding-right: 0;
  }
  
  .experience-card-modern {
    padding: 1rem;
    gap: 0.625rem;
  }
  
  .experience-company {
    font-size: 1.125rem;
  }
  
  .experience-position {
    font-size: 0.9375rem;
  }
  
  .experience-meta {
    font-size: 0.75rem;
  }
  
  .experience-summary {
    font-size: 0.8125rem;
  }
  
  .tech-tag-modern {
    font-size: 0.625rem;
    padding: 0.1875rem 0.5rem;
  }
}


/* ===================================
   Certificates Tab Styles
   =================================== */

.certificates-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

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

.certificate-card {
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.certificate-card:hover {
  border-color: #79c0ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(121, 192, 255, 0.1);
}

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

.cert-icon {
  width: 3rem;
  height: 3rem;
  background: rgba(121, 192, 255, 0.1);
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cert-icon .material-symbols-outlined {
  color: #79c0ff;
  font-size: 1.75rem;
}

.cert-link {
  color: #79c0ff;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.3s ease;
  text-decoration: none;
}

.cert-link:hover {
  color: #58a6ff;
  text-decoration: underline;
}

.cert-link .material-symbols-outlined {
  font-size: 1rem;
}

.cert-name {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
}

.cert-issuer {
  color: #79c0ff;
  font-size: 1rem;
  margin: 0;
}

.cert-date {
  color: #8b949e;
  font-size: 0.875rem;
  margin: 0;
}

.cert-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.cert-skill-tag {
  background: #161b22;
  color: #8b949e;
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  border: 1px solid #30363d;
  transition: all 0.3s ease;
}

.certificate-card:hover .cert-skill-tag {
  border-color: rgba(121, 192, 255, 0.3);
  color: #c9d1d9;
}


/* ===================================
   Gallery Tab Styles
   =================================== */

/* Gallery Filters */
.gallery-filters {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  justify-content: center;
}

.gallery-filter-btn {
  padding: 0.5rem 1.25rem;
  background: #21262d;
  color: #8b949e;
  border: 1px solid #30363d;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-filter-btn:hover {
  background: rgba(121, 192, 255, 0.1);
  border-color: rgba(121, 192, 255, 0.3);
  color: #79c0ff;
}

.gallery-filter-btn.active {
  background: rgba(121, 192, 255, 0.15);
  border-color: #79c0ff;
  color: #79c0ff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.gallery-card {
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 0.75rem;
  overflow: hidden;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.gallery-card:hover {
  border-color: #79c0ff;
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(121, 192, 255, 0.15);
}

.gallery-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 66.67%; /* 3:2 aspect ratio */
  overflow: hidden;
  background: #161b22;
}

.gallery-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top; /* Show top part of image where faces are */
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: grayscale(100%);
}

/* Special positioning for images with headers - skip top 25% */
.gallery-image-crop-top-25 {
  object-position: center 25%;
}

/* Special positioning for TNP image - skip top 30% */
.gallery-image-crop-top-30 {
  object-position: center 30%;
}

/* Special positioning for Big Event and Scholarship - skip top 45% */
.gallery-image-crop-top-45 {
  object-position: center 45%;
}

.gallery-card:hover .gallery-image {
  transform: scale(1.05);
  filter: grayscale(0%);
}

.gallery-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0) 50%, rgba(0,0,0,0.7) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 1rem;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-category {
  background: rgba(121, 192, 255, 0.9);
  color: #0d1117;
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gallery-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.gallery-title {
  color: #ffffff;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
  margin: 0;
  transition: color 0.3s ease;
}

.gallery-card:hover .gallery-title {
  color: #79c0ff;
}

.gallery-description {
  color: #8b949e;
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
  text-align: justify;
  transition: color 0.3s ease;
}

.gallery-card:hover .gallery-description {
  color: #c9d1d9;
}


/* ===================================
   Mac Window Fullscreen Mode
   =================================== */

/* Fullscreen overlay - covers entire viewport including header/footer */
.mac-window-fullscreen-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  max-width: 100vw !important;
  max-height: 100vh !important;
  margin: 0 !important;
  padding: 0 !important;
  background: #0d1117;
  z-index: 99999 !important; /* Higher than everything */
  display: none;
  overflow: hidden;
  transform-origin: center center;
  box-sizing: border-box; /* Include padding/border in dimensions */
}

.mac-window-fullscreen-overlay.active {
  display: flex !important;
  animation: genieExpand 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Genie expand animation - from Mac window to fullscreen */
@keyframes genieExpand {
  0% {
    transform: scale(0.4) translateY(25vh);
    opacity: 0;
    border-radius: 1rem;
  }
  40% {
    opacity: 0.3;
  }
  70% {
    transform: scale(0.85) translateY(5vh);
    opacity: 0.8;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
    border-radius: 0;
  }
}

/* Genie collapse animation - from fullscreen back to Mac window */
.mac-window-fullscreen-overlay.closing {
  animation: genieCollapse 0.6s cubic-bezier(0.55, 0.055, 0.675, 0.19) forwards;
}

@keyframes genieCollapse {
  0% {
    transform: scale(1) translateY(0);
    opacity: 1;
    border-radius: 0;
  }
  30% {
    transform: scale(0.85) translateY(5vh);
    opacity: 0.8;
  }
  60% {
    opacity: 0.3;
  }
  100% {
    transform: scale(0.4) translateY(25vh);
    opacity: 0;
    border-radius: 1rem;
  }
}

/* Minimize animation - slide down like Mac */
.mac-window-fullscreen-overlay.minimizing {
  animation: genieCollapse 0.6s cubic-bezier(0.55, 0.055, 0.675, 0.19) forwards;
}

/* Restore animation - slide up from dock */
.mac-window-fullscreen-overlay.restoring {
  animation: genieExpand 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

/* Fullscreen Mac window container */
.mac-window-fullscreen {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  display: flex;
  flex-direction: column;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* Fullscreen window chrome */
.mac-window-fullscreen .window-chrome {
  border-radius: 0 !important;
  flex-shrink: 0;
  width: 100% !important;
  border-bottom: 1px solid #30363d !important;
}

/* Fullscreen tab navigation */
.mac-window-fullscreen .tab-navigation-wrapper {
  flex-shrink: 0;
  width: 100% !important;
  border-bottom: 1px solid #30363d !important;
}

/* Fullscreen content area - scrollable with Mac-style scrollbar */
.mac-window-fullscreen .tab-content-container {
  flex: 1 1 auto;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  background-color: #161b22 !important;
  
  /* Mac-style scrollbar */
  scrollbar-width: thin;
  scrollbar-color: #30363d #161b22;
}

/* Webkit scrollbar styling (Chrome, Safari, Edge) */
.mac-window-fullscreen .tab-content-container::-webkit-scrollbar {
  width: 12px;
  background-color: #161b22;
}

.mac-window-fullscreen .tab-content-container::-webkit-scrollbar-track {
  background: #161b22;
  border-left: 1px solid #30363d;
}

.mac-window-fullscreen .tab-content-container::-webkit-scrollbar-thumb {
  background-color: #30363d;
  border-radius: 6px;
  border: 2px solid #161b22;
  transition: background-color 0.2s ease;
}

.mac-window-fullscreen .tab-content-container::-webkit-scrollbar-thumb:hover {
  background-color: #484f58;
}

.mac-window-fullscreen .tab-content-container::-webkit-scrollbar-thumb:active {
  background-color: #6e7681;
}

/* Smooth scrolling for fullscreen content */
.mac-window-fullscreen .tab-content-container {
  scroll-behavior: smooth;
}

/* Ensure tab content takes full width */
.mac-window-fullscreen .tab-content {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* Override container max-widths in fullscreen */
.mac-window-fullscreen .experience-timeline-container,
.mac-window-fullscreen .certificates-grid,
.mac-window-fullscreen .gallery-grid,
.mac-window-fullscreen .projects-grid {
  max-width: 100% !important;
  width: 100% !important;
}

/* Ensure all content containers use full width */
.mac-window-fullscreen .container,
.mac-window-fullscreen .lg\\:container {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 2rem !important;
  padding-right: 2rem !important;
}

/* Grid layouts should use full width */
.mac-window-fullscreen .grid {
  width: 100% !important;
  max-width: 100% !important;
}

/* Hide original Mac window when in fullscreen */
body.mac-fullscreen-active #mac-window {
  visibility: hidden;
}

/* Prevent body scroll when fullscreen is active */
body.mac-fullscreen-active {
  overflow: hidden !important;
  overflow-x: hidden !important; /* Explicitly prevent horizontal scroll */
  position: fixed !important;
  width: 100vw !important; /* Use viewport width instead of percentage */
  max-width: 100vw !important; /* Cap at viewport width */
  height: 100vh !important;
  left: 0 !important; /* Anchor to left edge */
  top: 0 !important; /* Anchor to top edge */
  right: 0 !important; /* Anchor to right edge */
}

/* Ensure header is hidden in fullscreen */
body.mac-fullscreen-active #main-header {
  display: none !important;
}

/* Ensure footer is hidden in fullscreen */
body.mac-fullscreen-active footer {
  display: none !important;
}

/* Traffic light button hover effects in fullscreen */
.mac-window-fullscreen .window-chrome > div:first-child > button:hover {
  transform: scale(1.2);
  opacity: 1;
}

/* Close button - show X on hover */
.mac-window-fullscreen #mac-close-btn:hover::after {
  content: '×';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.75rem;
  color: #0d1117;
  font-weight: bold;
}

/* Minimize button - show dash on hover */
.mac-window-fullscreen #mac-minimize-btn:hover::after {
  content: '−';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.75rem;
  color: #0d1117;
  font-weight: bold;
}

/* Maximize button - show arrows on hover */
.mac-window-fullscreen #mac-maximize-btn:hover::after {
  content: '⤢';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.75rem;
  color: #0d1117;
  font-weight: bold;
}

/* Minimized state - slide down animation */
.mac-window-fullscreen-overlay.minimizing {
  animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideDown {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) scale(0.8);
    opacity: 0;
  }
}

/* Restore animation */
.mac-window-fullscreen-overlay.restoring {
  animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideUp {
  0% {
    transform: translateY(100vh) scale(0.8);
    opacity: 0;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}


/* ===================================
   Mac Window Maximize Hint Overlay
   =================================== */

/* Bottom gradient overlay - rises from bottom like hero section */
.mac-window-hint-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(13, 17, 23, 1) 0%,
    rgba(13, 17, 23, 0.95) 15%,
    rgba(13, 17, 23, 0.8) 30%,
    rgba(13, 17, 23, 0.5) 50%,
    transparent 100%
  );
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 5;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease, backdrop-filter 0.5s ease;
  border-radius: 0 0 1rem 1rem;
}

/* Visible state - gradient rises and becomes more opaque */
.mac-window-hint-overlay.visible {
  opacity: 1;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* Hint text at bottom */
.hint-content {
  padding: 2rem 2rem 3rem 2rem;
  text-align: center;
  max-width: 600px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}

.mac-window-hint-overlay.visible .hint-content {
  opacity: 1;
  transform: translateY(0);
}

/* Hint text styling - simple and clean */
.hint-text {
  font-size: 1.125rem;
  color: #c9d1d9;
  font-weight: 500;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  line-height: 1.5;
}

/* Arrow pointing to green maximize button (top-left, third button) */
.hint-arrow-up {
  position: absolute;
  top: 0.75rem;
  left: 2.5rem;
  font-size: 1.75rem;
  color: #3fb950;
  opacity: 0;
  animation: pointToGreen 2s ease-in-out infinite;
  filter: drop-shadow(0 0 8px rgba(63, 185, 80, 0.6));
  transition: opacity 0.6s ease 0.5s;
  transform: rotate(-45deg);
  line-height: 1;
}

.mac-window-hint-overlay.visible .hint-arrow-up {
  opacity: 1;
}

@keyframes pointToGreen {
  0%, 100% {
    transform: rotate(-45deg) translate(0, 0);
  }
  50% {
    transform: rotate(-45deg) translate(-4px, -4px);
  }
}

/* Hide hint when Mac window is in fullscreen */
body.mac-fullscreen-active .mac-window-hint-overlay {
  display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hint-content {
    padding: 1.5rem 1.5rem 2.5rem 1.5rem;
  }
  
  .hint-text {
    font-size: 1rem;
  }
  
  .hint-arrow-up {
    top: 0.625rem;
    left: 2rem;
    font-size: 1.5rem;
  }
}

@media (max-width: 640px) {
  .hint-arrow-up {
    left: 1.75rem;
  }
}

