/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */

:root {
  /* Core Colors */
  --bg-dark: #060713;
  --bg-card: rgba(11, 14, 33, 0.48);
  --border-color: rgba(255, 255, 255, 0.07);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  /* Accent Colors (Unified Premium Purple Theme) */
  --accent-purple: #c084fc;
  --accent-purple-rgb: 192, 132, 252;
  
  --accent-blue: var(--accent-purple);
  --accent-blue-rgb: var(--accent-purple-rgb);
  --accent-teal: var(--accent-purple);
  --accent-teal-rgb: var(--accent-purple-rgb);
  --accent-amber: var(--accent-purple);
  --accent-amber-rgb: var(--accent-purple-rgb);
  --accent-pink: var(--accent-purple);
  --accent-pink-rgb: var(--accent-purple-rgb);

  /* Layout Constants */
  --card-radius: 12px;
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ==========================================================================
   GLOBAL RESET & FONTS
   ========================================================================== */

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

body {
  font-family: 'Sora', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  
  /* Make homepage text unselectable */
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* Scrollbars styling */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: rgba(8, 10, 24, 0.6);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  border: 2px solid rgba(8, 10, 24, 0.6);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   DECORATIVE & BACKGROUND ELEMENTS
   ========================================================================== */

#particles-js {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
}

/* Decorative Ambient Lights */

.radial-glow-2 {
  position: fixed;
  bottom: -10%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(192, 132, 252, 0.08) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
  filter: blur(60px);
}

/* ==========================================================================
   BENTO GRID CONTAINER
   ========================================================================== */

.container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(180px, auto);
  grid-gap: 24px;
  max-width: 1100px;
  width: 90%;
  margin: 60px auto;
  z-index: 2;
  position: relative;
  will-change: transform;
  transition: transform 0.15s ease-out;
}


/* ==========================================================================
   GLASSMORPHIC BENTO CARDS
   ========================================================================== */

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  padding: 30px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition-smooth);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 
              inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Smooth Card Hover Lift */
.glass-card:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
              0 0 30px var(--card-hover-glow);
}

/* Hover Accent Colors */
.card-intro {
  --card-hover-glow: rgba(var(--accent-blue-rgb), 0.12);
  grid-column: span 2;
  grid-row: span 2;
  justify-content: flex-end;
  padding: 40px;
}

.card-skills {
  --card-hover-glow: rgba(var(--accent-teal-rgb), 0.12);
  grid-column: span 1;
  grid-row: span 2;
}

.card-projects {
  --card-hover-glow: rgba(var(--accent-purple-rgb), 0.12);
  grid-column: span 1;
}

.card-certifications {
  --card-hover-glow: rgba(var(--accent-amber-rgb), 0.12);
  grid-column: span 1;
}

.card-contact {
  --card-hover-glow: rgba(var(--accent-pink-rgb), 0.12);
  grid-column: span 1;
}

/* Subtle Glowing Light on hover */
.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(800px circle at var(--mouse-x, 0px) var(--mouse-y, 0px), rgba(255,255,255,0.06), transparent 40%);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

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

/* ==========================================================================
   CARD INTERNAL CONTENT
   ========================================================================== */

/* Active Badge */
.card-badge {
  position: absolute;
  top: 30px;
  left: 30px;
  background: rgba(var(--accent-purple-rgb), 0.08);
  border: 1px solid rgba(var(--accent-purple-rgb), 0.2);
  padding: 6px 14px;
  border-radius: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

.badge-text {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-purple);
}

@keyframes pulse-glow {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 12px var(--accent-purple); }
  100% { transform: scale(0.9); opacity: 0.6; }
}

/* Card content details */
.card-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  margin-bottom: 8px;
}


.wave-hand {
  display: inline-block;
  animation: wave 2.5s infinite;
  transform-origin: 70% 70%;
}

@keyframes wave {
  0% { transform: rotate(0deg); }
  10% { transform: rotate(14deg); }
  20% { transform: rotate(-8deg); }
  30% { transform: rotate(14deg); }
  40% { transform: rotate(-4deg); }
  50% { transform: rotate(10deg); }
  60% { transform: rotate(0deg); }
  100% { transform: rotate(0deg); }
}

.hero-subtitle {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--accent-blue);
  margin-bottom: 16px;
}

.hero-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: 24px;
}

/* Cards generic headers */
.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}

.icon-wrapper {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--text-primary);
  transition: var(--transition-smooth);
}

/* Accented card icons */
.card-skills .icon-wrapper { color: var(--accent-purple); background: rgba(var(--accent-purple-rgb), 0.05); border-color: rgba(var(--accent-purple-rgb), 0.15); }
.card-projects .icon-wrapper { color: var(--accent-purple); background: rgba(var(--accent-purple-rgb), 0.05); border-color: rgba(var(--accent-purple-rgb), 0.15); }
.card-certifications .icon-wrapper { color: var(--accent-purple); background: rgba(var(--accent-purple-rgb), 0.05); border-color: rgba(var(--accent-purple-rgb), 0.15); }
.card-contact .icon-wrapper { color: var(--accent-purple); background: rgba(var(--accent-purple-rgb), 0.05); border-color: rgba(var(--accent-purple-rgb), 0.15); }

.glass-card:hover .icon-wrapper {
  transform: scale(1.1);
  background: var(--text-primary);
  color: var(--bg-dark);
}
.card-skills:hover .icon-wrapper { background: var(--accent-purple); color: var(--bg-dark); }
.card-projects:hover .icon-wrapper { background: var(--accent-purple); color: var(--bg-dark); }
.card-certifications:hover .icon-wrapper { background: var(--accent-purple); color: var(--bg-dark); }
.card-contact:hover .icon-wrapper { background: var(--accent-purple); color: var(--bg-dark); }

.icon-wrapper svg {
  width: 20px;
  height: 20px;
}

.card-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.card-desc {
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 20px;
  position: relative;
  z-index: 2;
}

/* Skills Layout inside Card */
.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  position: relative;
  z-index: 2;
}

.skill-tag {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.card-skills:hover .skill-tag {
  border-color: rgba(45, 212, 191, 0.2);
  color: var(--text-primary);
}

.skill-tag:hover {
  background: rgba(45, 212, 191, 0.1) !important;
  border-color: var(--accent-teal) !important;
  color: var(--accent-teal) !important;
  transform: translateY(-2px);
}

/* Call to action arrow link */
.cta-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  margin-top: auto;
  position: relative;
  z-index: 2;
  transition: var(--transition-smooth);
}

.card-intro .cta-link { color: var(--accent-purple); }
.card-projects .cta-link { color: var(--accent-purple); }
.card-certifications .cta-link { color: var(--accent-purple); }
.card-contact .cta-link { color: var(--accent-purple); }

.arrow-icon {
  width: 14px;
  height: 14px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.glass-card:hover .arrow-icon {
  transform: translateX(5px);
}

/* ==========================================================================
   FLOATING ANIME CHARACTERS
   ========================================================================== */

.anime-char {
  position: fixed;
  bottom: 0;
  z-index: 1;
  max-height: 48vh;
  width: auto;
  pointer-events: none; /* Crucial: Prevents overlapping and blocking card clicks */
  transition: filter 0.5s ease, opacity 0.5s ease;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4));
  animation: float-gentle 6s ease-in-out infinite;
}

.anime1 {
  right: 6%;
  animation-delay: 0s;
}

.anime2 {
  left: 3%;
  animation-delay: -3s;
}

/* Floating micro-animation */
@keyframes float-gentle {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(1deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

/* Dim anime figures when cards are hovered to put focus on grid */
.container:hover ~ .anime-char {
  opacity: 0.35;
  filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5)) grayscale(30%);
}

/* ==========================================================================
   INTERACTIVE MODAL OVERLAYS & POPUPS
   ========================================================================== */

/* The ambient radial color circle that expands */
.background-circle {
  position: fixed;
  width: 0;
  height: 0;
  border-radius: 50%;
  z-index: 3;
  opacity: 0;
  filter: blur(120px);
  -webkit-filter: blur(120px);
  transition: width 0.75s cubic-bezier(0.16, 1, 0.3, 1), 
              height 0.75s cubic-bezier(0.16, 1, 0.3, 1), 
              opacity 0.6s ease;
  pointer-events: none;
}

.background-circle.expand {
  width: 130vw;
  height: 130vw;
  opacity: 0.28;
}

/* Circle Ambient Colors */
.bg-red { background: radial-gradient(circle, var(--accent-blue) 0%, transparent 60%); top: 50%; left: 50%; transform: translate(-50%, -50%); }
.bg-blue { background: radial-gradient(circle, var(--accent-purple) 0%, transparent 60%); top: 50%; left: 50%; transform: translate(-50%, -50%); }
.bg-violet { background: radial-gradient(circle, var(--accent-amber) 0%, transparent 60%); top: 50%; left: 50%; transform: translate(-50%, -50%); }
.bg-pink { background: radial-gradient(circle, var(--accent-pink) 0%, transparent 60%); top: 50%; left: 50%; transform: translate(-50%, -50%); }

/* High-Quality Popup Window */
.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -46%) scale(0.95);
  background: rgba(8, 10, 24, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 40px;
  border-radius: 24px;
  z-index: 4;
  width: 90%;
  max-width: 720px;
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
              visibility 0.4s, 
              transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6), 
              0 0 100px rgba(0, 0, 0, 0.2), 
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
              
  /* Enable copy-paste capability inside modal popups */
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
}

.popup.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.popup-content-block {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

.modal-scroll-area {
  overflow-y: auto;
  flex: 1;
  padding-right: 12px; /* Margin to clear visual scrollbars neatly */
  min-height: 0;
}

/* Custom scrollbars for modal scroll area */
.modal-scroll-area::-webkit-scrollbar {
  width: 6px;
}

.modal-scroll-area::-webkit-scrollbar-track {
  background: rgba(8, 10, 24, 0.3);
  border-radius: 10px;
}

.modal-scroll-area::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  border: 1px solid rgba(8, 10, 24, 0.3);
}

.modal-scroll-area::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Popup Header styling */
.popup h2, .popup p strong {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text-primary);
}

.popup p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 15px;
  margin-bottom: 12px;
}

/* Close Button */
.popup-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 22px;
  color: var(--text-secondary);
  cursor: pointer;
  z-index: 5;
  transition: var(--transition-smooth);
}

.popup-close:hover {
  background: var(--accent-pink);
  color: var(--text-primary);
  border-color: var(--accent-pink);
  transform: rotate(90deg);
}

/* ==========================================================================
   MODAL RENDERED COMPONENT STYLES
   ========================================================================== */

/* Generic spacing */
.mt-4 { margin-top: 16px; }
.mb-6 { margin-bottom: 24px; }

/* Custom Headings inside Modal */
.modal-section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Projects grid inside modal */
.projects-modal-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 16px;
}

.project-modal-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 24px;
  transition: var(--transition-smooth);
}

.project-modal-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--accent-purple);
  transform: translateY(-2px);
}

.project-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 10px;
}

.project-modal-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
}

.project-github-link {
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.project-github-link:hover {
  background: var(--text-primary);
  color: var(--bg-dark);
}

.project-desc {
  font-size: 13.5px !important;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 12px !important;
}

.project-tech-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tech-badge {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(192, 132, 252, 0.1);
  border: 1px solid rgba(192, 132, 252, 0.2);
  color: var(--accent-purple);
}

/* Certifications grid */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  grid-gap: 20px;
  margin-top: 16px;
}

.cert-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 12px;
  cursor: zoom-in;
  transition: var(--transition-smooth);
}

.cert-card:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--accent-amber);
  transform: translateY(-3px);
}

.cert-img-wrapper {
  aspect-ratio: 4/3;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
  margin-bottom: 10px;
}

.cert-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.cert-card:hover .cert-img-wrapper img {
  transform: scale(1.06);
}

.cert-card-title {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
}

/* Contact layout inside modal */
.contact-modal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 16px;
  margin-top: 20px;
}

.contact-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition-smooth);
}

.contact-card svg {
  width: 32px;
  height: 32px;
  color: var(--text-secondary);
  transition: var(--transition-smooth);
}

.contact-card-title {
  font-size: 14px;
  font-weight: 700;
}

.contact-card:hover {
  transform: translateY(-4px);
  background: rgba(244, 63, 94, 0.05);
  border-color: var(--accent-pink);
  box-shadow: 0 10px 20px rgba(244, 63, 94, 0.1);
}

.contact-card:hover svg {
  color: var(--accent-pink);
  transform: scale(1.1);
}

/* ==========================================================================
   STUNNING LIGHTBOX MODAL FOR CERTIFICATES
   ========================================================================== */

.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99;
  background: rgba(4, 5, 12, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.lightbox-modal.show {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content {
  position: relative;
  max-width: 85vw;
  max-height: 85vh;
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-modal.show .lightbox-content {
  transform: scale(1);
}

.lightbox-content img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: -45px;
  right: 0;
  color: var(--text-primary);
  font-size: 32px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.lightbox-close:hover {
  color: var(--accent-pink);
}

/* ==========================================================================
   RESPONSIVENESS & MEDIA QUERIES
   ========================================================================== */

/* Medium Devices (Tablets, landscape & portrait, up to 992px) */
@media (max-width: 992px) {
  .container {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
    margin: 40px auto;
    grid-gap: 20px;
  }
  
  .card-intro {
    grid-column: span 2;
  }
  
  .card-skills {
    grid-column: span 1;
  }

  .card-projects {
    grid-column: span 1;
  }

  .card-certifications {
    grid-column: span 1;
  }

  .card-contact {
    grid-column: span 1;
  }
  
  .anime-char {
    max-height: 38vh;
  }
  .anime1 { right: 3%; }
  .anime2 { left: 1%; }
}

/* Small Devices (Mobiles, under 768px) */
@media (max-width: 768px) {
  body {
    align-items: flex-start;
  }
  
  .container {
    grid-template-columns: 1fr !important;
    margin: 40px auto;
    width: 92%;
    grid-gap: 16px;
  }
  
  .glass-card {
    grid-column: span 1 !important;
    padding: 24px;
    border-radius: 12px !important;
  }
  
  .card-intro {
    padding: 30px;
  }
  
  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 19px;
  }
  
  /* Hide character illustrations on mobile to keep focus clear and readable */
  .anime-char {
    display: none !important;
  }
  
  /* Modern Bottom Sheet Drawer for mobile modals */
  .popup {
    top: auto !important;
    bottom: 0 !important;
    left: 0 !important;
    transform: translateY(100%) scale(1) !important; /* Slide up from bottom */
    width: 100% !important;
    max-width: 100% !important;
    height: 88vh !important;
    max-height: 88vh !important;
    border-radius: 24px 24px 0 0 !important; /* Top-rounded bottom drawer */
    border-bottom: none !important;
    padding: 32px 18px 24px 18px !important;
    box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.4), 
                inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                visibility 0.4s,
                opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }
  
  .popup.show {
    transform: translateY(0) scale(1) !important;
    opacity: 1 !important;
  }
  
  /* Elegant iOS-style Drag Handle */
  .popup::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.16);
    border-radius: 2px;
    margin: -16px auto 16px auto;
  }
  
  .popup-close {
    top: 12px !important;
    right: 12px !important;
    width: 32px !important;
    height: 32px !important;
    font-size: 18px !important;
  }
  
  .popup h2 {
    font-size: 24px !important;
    margin-bottom: 16px !important;
  }
  
  .modal-section-title {
    font-size: 18px !important;
    margin-bottom: 12px !important;
  }
  
  /* Scoped Scroll Area padding fix for mobile drawer */
  .modal-scroll-area {
    padding-right: 6px !important;
  }
  
  /* Ultra-Premium 3-Column compact layout for contact cards on mobile */
  .contact-modal-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    grid-gap: 8px !important;
    margin-top: 16px !important;
  }
  
  .contact-card {
    padding: 16px 8px !important;
    border-radius: 12px !important;
    gap: 8px !important;
  }
  
  .contact-card svg {
    width: 24px !important;
    height: 24px !important;
  }
  
  .contact-card-title {
    font-size: 11px !important;
    font-weight: 600 !important;
  }
  
  /* Proportional updates for certs cards on mobile */
  .certs-grid {
    grid-template-columns: 1fr !important;
    grid-gap: 16px !important;
  }
  
  .cert-card {
    padding: 10px !important;
    border-radius: 12px !important;
  }
  
  .cert-card-title {
    font-size: 12px !important;
  }
  
  /* Project Modal Cards compact padding on mobile */
  .projects-modal-grid {
    gap: 14px !important;
  }
  
  .project-modal-card {
    padding: 16px !important;
    border-radius: 12px !important;
  }
  
  .project-modal-title {
    font-size: 15px !important;
  }
  
  .project-desc {
    font-size: 12.5px !important;
    line-height: 1.45 !important;
    margin-bottom: 8px !important;
  }
  
  .tech-badge {
    font-size: 9.5px !important;
    padding: 3px 8px !important;
  }
}

/* Extremely Small Screens (under 480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }
  
  .hero-subtitle {
    font-size: 17px;
  }
}

/* ==========================================================================
   LIQUID GLASS ENGINE STYLES
   ========================================================================== */

/* Active glass state with high-quality fallback dropshadows */
.liquid-glass-active {
  background: rgba(11, 14, 33, 0.22) !important; /* Lighter, highly transparent for seamless blending */
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.04) !important;
}

/* Premium Glass Modal State */
.popup.liquid-glass-popup {
  background: rgba(11, 14, 33, 0.52) !important; /* Semi-transparent to see refracted star network */
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), 
              inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

/* Specify hardware acceleration on refract layers */
.glass-card, .popup {
  transform: translateZ(0);
  backface-visibility: hidden;
  perspective: 1000px;
}

