@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;700;800;900&family=Pacifico&display=swap');

/* --- DESIGN SYSTEM & VARIABLES --- */
:root {
  --bg-color: #1a1a1a;
  --bg-card: rgba(45, 55, 72, 0.4);
  --bg-card-hover: rgba(45, 55, 72, 0.7);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-color-hover: rgba(224, 96, 49, 0.5);
  
  --accent-color: #e06031;
  --accent-glow: rgba(224, 96, 49, 0.6);
  --accent-soft: rgba(224, 96, 49, 0.15);
  
  --text-primary: #f5f5f5;
  --text-secondary: #cbd5e0;
  --text-muted: #a0aec0;
  
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-accent: 'Pacifico', cursive;
  
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-body);
}

body {
  overflow-x: hidden;
  position: relative;
  background-color: var(--bg-color);
  background-image: 
    linear-gradient(rgba(224, 96, 49, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(224, 96, 49, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Hide scrollbar default */
body::-webkit-scrollbar {
  width: 8px;
}
body::-webkit-scrollbar-track {
  background: #080808;
}
body::-webkit-scrollbar-thumb {
  background: #202020;
  border-radius: 4px;
}
body::-webkit-scrollbar-thumb:hover {
  background: var(--accent-color);
}

section {
  padding: 100px 24px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  transition: border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.glass-card:hover {
  border-color: var(--border-color-hover);
  box-shadow: 0 10px 30px -10px rgba(224, 96, 49, 0.08);
}

/* --- CUSTOM CURSOR --- */
#custom-cursor {
  position: fixed;
  width: 8px;
  height: 8px;
  background-color: var(--accent-color);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background-color 0.2s;
}

#custom-cursor-ring {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 1px solid var(--accent-color);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.08s ease-out, width 0.3s, height 0.3s, border-color 0.3s;
}

/* Cursor Hover states */
body.hovering #custom-cursor {
  width: 4px;
  height: 4px;
  background-color: #fff;
}
body.hovering #custom-cursor-ring {
  width: 60px;
  height: 60px;
  border-color: #fff;
  background-color: rgba(255, 255, 255, 0.05);
}

/* Disable cursors on mobile touch screens */
@media (max-width: 768px) {
  #custom-cursor, #custom-cursor-ring {
    display: none !important;
  }
}

/* --- PRELOADER ANIMATION --- */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #080808;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: transform 1s cubic-bezier(0.85, 0, 0.15, 1);
}

.loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 80%;
  max-width: 400px;
}

.loading-text {
  display: flex;
  overflow: hidden;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 24px;
  letter-spacing: 0.1em;
  color: #fff;
}

.loading-letter {
  display: inline-block;
  transform: translateY(110%);
  animation: bounceUp 1.2s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

.progress-bar-bg {
  width: 100%;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
  position: relative;
}

.progress-bar-fill {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--accent-color), #ff8a5c);
  transition: width 0.1s linear;
}

@keyframes bounceUp {
  0% { transform: translateY(110%); }
  50% { transform: translateY(-10%); }
  100% { transform: translateY(0); }
}

/* Loader fade-out class */
#preloader.loaded {
  transform: translateY(-100%);
}

/* --- NAVIGATION BAR --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 24px 40px;
  z-index: 1000;
  background: rgba(5, 5, 5, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo span {
  color: var(--accent-color);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
}

nav a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
nav a:hover, nav a.active {
  color: var(--accent-color);
}

.nav-contact-btn {
  border: 1px solid var(--accent-color);
  padding: 10px 24px;
  border-radius: 30px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-color);
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.nav-contact-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--accent-color);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: -1;
}
.nav-contact-btn:hover {
  color: #fff;
}
.nav-contact-btn:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

/* Mobile nav toggle button */
.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

/* Mobile navigation container */
.mobile-nav-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(5, 5, 5, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
  transform: translateX(100%);
  transition: transform 0.6s cubic-bezier(0.85, 0, 0.15, 1);
}
.mobile-nav-menu.open {
  transform: translateX(0);
}
.mobile-nav-menu ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  list-style: none;
}
.mobile-nav-menu a {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: var(--text-secondary);
}
.mobile-nav-menu a:hover {
  color: var(--accent-color);
}
.close-mobile-btn {
  position: absolute;
  top: 24px;
  right: 40px;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
}

/* --- SOCIAL FLOATING BAR --- */
.floating-socials {
  position: fixed;
  left: 40px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 24px;
  z-index: 99;
}
.floating-socials a {
  font-size: 20px;
  color: var(--text-secondary);
}
.floating-socials a:hover {
  color: var(--accent-color);
  transform: translateY(-4px);
}

@media (max-width: 1024px) {
  .floating-socials {
    display: none;
  }
}

/* --- HERO SECTION & 3D BACKGROUND --- */
#hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  padding-top: 120px;
}

#three-bg-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: auto;
}

.hero-content {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.hero-subtitle-top {
  font-family: var(--font-accent);
  color: var(--accent-color);
  font-size: 28px;
  margin-bottom: 12px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 8vw;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 0.3em; /* Dynamic word gap */
}

.hero-word {
  display: inline-block;
  white-space: nowrap; /* Forces browser to wrap entire word rather than characters! */
}

.hero-letter {
  display: inline-block;
  transform: translateY(40px) scale(0.9);
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--accent-color);
  margin-bottom: 24px;
}

.hero-statement {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px auto;
  line-height: 1.6;
}

/* --- 3D PERSPECTIVE SYSTEM FOR CARDS --- */
.about-grid, .projects-grid, .awards-grid, .community-grid {
  perspective: 1000px; /* Activates 3D depth field for children */
}

.glass-card {
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1), 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Glass card boundary shadow highlights */
.glass-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: var(--transition-smooth);
}
.glass-card:hover::after {
  border-color: rgba(224, 96, 49, 0.2);
}

/* Studio light reflection glare layer */
.card-glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle 200px at var(--glare-x, 50%) var(--glare-y, 50%), rgba(255, 255, 255, 0.06) 0%, transparent 80%);
  opacity: 1;
  transition: opacity 0.3s ease;
  z-index: 5;
}
.glass-card:hover .card-glare {
  opacity: 1;
}


.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(224, 96, 49, 0.2);
  transition: var(--transition-smooth);
  pointer-events: auto;
}
.hero-btn:hover {
  background: var(--accent-color);
  box-shadow: 0 0 35px var(--accent-glow);
  transform: translateY(-4px);
}

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

@keyframes revealLetter {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    text-shadow: 0 0 30px var(--accent-glow);
  }
}

/* --- ABOUT ME SECTION --- */
.section-header {
  margin-bottom: 60px;
  text-align: center;
}
.section-tag {
  font-family: var(--font-accent);
  color: var(--accent-color);
  font-size: 20px;
  display: block;
  margin-bottom: 8px;
}
.section-title {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 48px;
  align-items: start;
}

.about-image-container {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}
.about-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: var(--transition-smooth);
}
.about-image-container:hover .about-image {
  transform: scale(1.05);
}
.about-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5,5,5,0.8) 0%, transparent 60%);
}

.about-info-blocks {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.quick-facts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.fact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  padding: 16px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 15px;
  transition: var(--transition-fast);
}
.fact-item i {
  color: var(--accent-color);
  font-size: 18px;
}
.fact-item:hover {
  border-color: var(--accent-color);
  transform: translateY(-2px);
  background: var(--bg-card-hover);
}

.bio-text {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.info-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.info-sub-card h4 {
  font-family: var(--font-display);
  color: var(--accent-color);
  font-size: 16px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 8px;
}

.timeline-item {
  margin-bottom: 16px;
}
.timeline-title {
  font-weight: 600;
  font-size: 14px;
}
.timeline-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.timeline-desc {
  font-size: 12px;
  color: var(--text-secondary);
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.skill-badge {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 12px;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}
.skill-badge:hover {
  background: var(--accent-soft);
  border-color: var(--accent-color);
  color: #fff;
}

.tech-grid-wrapper {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.tech-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  transition: var(--transition-fast);
}
.tech-item i {
  font-size: 24px;
  color: var(--accent-color);
  margin-bottom: 6px;
}
.tech-item p {
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
}
.tech-item:hover {
  border-color: var(--accent-color);
  box-shadow: 0 4px 15px rgba(224, 96, 49, 0.15);
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .info-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* --- PROJECTS SECTION --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

.project-card {
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.project-image-box {
  width: 100%;
  height: 200px;
  overflow: hidden;
  position: relative;
}
.project-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}
.project-card:hover .project-image-box img {
  transform: scale(1.05);
}

.project-tags {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 8px;
}
.project-tag {
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  color: #fff;
}

.project-info {
  padding: 24px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}
.project-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.project-links {
  display: flex;
  gap: 16px;
}
.project-link {
  font-size: 18px;
  color: var(--text-secondary);
}
.project-link:hover {
  color: var(--accent-color);
}

/* --- AWARDS & ACHIEVEMENTS SECTION --- */
.awards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.award-card {
  padding: 0;
  overflow: hidden;
  height: 100%;
}
.award-image-box {
  position: relative;
  width: 100%;
  height: 160px;
  overflow: hidden;
}
.award-image-box img,
.award-image-box embed {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}
.award-card:hover .award-image-box img,
.award-card:hover .award-image-box embed {
  transform: scale(1.05);
}

.award-info {
  padding: 20px;
}
.award-badge {
  font-family: var(--font-display);
  color: var(--accent-color);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.award-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* --- ART GALLERY MARQUEE --- */
#arts {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.art-marquee-container {
  overflow: hidden;
  width: 100%;
  display: flex;
  position: relative;
  padding: 20px 0;
}

.art-marquee-track {
  display: flex;
  width: max-content;
  animation: marqueeScroll 25s linear infinite;
  gap: 20px;
}

.art-slide {
  width: 280px;
  height: 280px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  position: relative;
}
.art-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}
.art-slide:hover img {
  transform: scale(1.08);
}
.art-slide-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  transition: var(--transition-fast);
}
.art-slide:hover .art-slide-overlay {
  opacity: 1;
}

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

/* --- COMMUNITY INVOLVEMENT SECTION --- */
.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}

.community-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.community-image-box {
  width: 100%;
  height: 180px;
  overflow: hidden;
}
.community-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}
.community-card:hover .community-image-box img {
  transform: scale(1.05);
}

.community-info {
  padding: 24px;
}
.community-date {
  font-size: 12px;
  color: var(--accent-color);
  font-family: var(--font-display);
  font-weight: 600;
}
.community-role {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  margin-top: 6px;
  margin-bottom: 4px;
}
.community-org {
  font-size: 14px;
  color: var(--text-secondary);
}

/* --- CONTACT ME SECTION --- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
}

.contact-form-box h3, .contact-details-box h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 24px;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}
.form-group input, .form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 14px 20px;
  border-radius: 8px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  transition: var(--transition-fast);
}
.form-group input:focus, .form-group textarea:focus {
  border-color: var(--accent-color);
  outline: none;
  box-shadow: 0 0 15px rgba(224, 96, 49, 0.1);
}

.submit-btn {
  background: var(--accent-soft);
  border: 1px solid var(--accent-color);
  color: #fff;
  width: 100%;
  padding: 16px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: var(--transition-smooth);
}
.submit-btn:hover {
  background: var(--accent-color);
  box-shadow: 0 0 25px var(--accent-glow);
}

.submit-btn i {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.submit-btn:hover i {
  transform: translateX(4px) translateY(-4px);
}

.contact-details-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.detail-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.detail-icon-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-color);
  font-size: 18px;
}
.detail-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 2px;
}
.detail-value {
  font-size: 16px;
  font-weight: 500;
}

.social-connect {
  margin-top: 40px;
}
.social-connect-title {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  text-transform: uppercase;
}
.social-icons-row {
  display: flex;
  gap: 16px;
}
.social-icon-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: var(--transition-fast);
}
.social-icon-btn:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: #fff;
  transform: translateY(-4px);
}

.availability-card {
  margin-top: 40px;
  border: 1px solid var(--border-color);
  background: rgba(224, 96, 49, 0.02);
}
.availability-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.availability-header i {
  color: var(--accent-color);
}
.availability-header h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
}
.availability-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

/* --- FOOTER --- */
footer {
  border-top: 1px solid var(--border-color);
  padding: 40px 24px;
  text-align: center;
}
.footer-text {
  font-size: 12px;
  color: var(--text-muted);
}

/* --- ANIMATION ON SCROLL REVEALS --- */
.reveal-on-scroll {
  /* GSAP handles opacity for children, so parent shouldn't hide them */
}
.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- RESPONSIVE SCREEN OPTIMIZATIONS (ALL BREAKPOINTS) --- */

/* 1. Ultra-Wide Monitors & Large Screens (1600px and up) */
@media (min-width: 1600px) {
  header {
    padding-left: calc((100% - 1200px) / 2);
    padding-right: calc((100% - 1200px) / 2);
  }
}

/* 2. Laptops & Large Tablets Landscape (1024px to 1366px) */
@media (max-width: 1200px) {
  .about-grid {
    gap: 32px;
  }
  .info-cards-grid {
    gap: 16px;
  }
}

/* 3. Small Laptops & Tablets Landscape (under 1024px) */
@media (max-width: 1024px) {
  .floating-socials {
    display: none; /* Hide sidebar socials on tablet views */
  }
}

/* 4. Tablets Portrait & Smaller Screens (under 768px) */
@media (max-width: 768px) {
  header {
    padding: 16px 24px;
  }
  .desktop-nav {
    display: none !important;
  }
  .mobile-nav-toggle {
    display: block !important;
  }
  section {
    padding: 60px 16px;
  }
  .section-header {
    margin-bottom: 40px;
  }
  .section-title {
    font-size: 32px;
  }
  
  /* Stacking columns */
  .about-grid {
    grid-template-columns: 1fr;
  }
  .info-cards-grid {
    grid-template-columns: 1fr;
  }
  .community-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  /* Centering stacked card elements to keep visual balance */
  .project-card, .award-card, .community-card {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
}

/* 5. Mobile Landscape / Small Tablets (under 600px) */
@media (max-width: 600px) {
  .form-group-row {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 16px;
  }
  .contact-wrapper {
    gap: 32px;
  }
}

/* 6. Mobile Portrait / Standard Phones (under 480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 42px;
    line-height: 1.1;
  }
  .hero-subtitle {
    font-size: 11px;
    letter-spacing: 0.08em;
    padding: 0 8px;
  }
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .awards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .about-photo {
    max-width: 240px;
    margin: 0 auto 24px auto;
  }
  .logo {
    font-size: 20px;
  }
}

/* 7. Extra-Small Mobile Devices (under 360px) */
@media (max-width: 360px) {
  .hero-title {
    font-size: 34px;
  }
  .logo {
    font-size: 18px;
  }
  .loading-text {
    font-size: 16px;
  }
}



.hero-word { display: inline-block; white-space: nowrap; margin-right: 15px; }
.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

/* Lenis smooth scrolling helper styles */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

/* --- DECK OF CARDS FANNING LAYOUT & MODAL SYSTEM --- */
.awards-grid {
  display: flex !important;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 480px;
  margin-top: 60px;
  padding: 40px 100px;
  overflow: visible !important;
}

.award-card {
  width: 250px;
  height: 330px;
  margin-left: -170px; /* Overlap stacking effect for 13 cards */
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.3, 1), box-shadow 0.6s ease, z-index 0.3s ease;
  cursor: pointer;
  transform-origin: bottom center;
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.award-card:first-child {
  margin-left: 0;
}

/* Symmetrical Fan Rotation & Y-Translation offsets for 13 cards */
.award-card:nth-child(1) { transform: rotate(-18deg) translateY(55px); }
.award-card:nth-child(2) { transform: rotate(-15deg) translateY(38px); }
.award-card:nth-child(3) { transform: rotate(-12deg) translateY(24px); }
.award-card:nth-child(4) { transform: rotate(-9deg) translateY(13px); }
.award-card:nth-child(5) { transform: rotate(-6deg) translateY(6px); }
.award-card:nth-child(6) { transform: rotate(-3deg) translateY(2px); }
.award-card:nth-child(7) { transform: rotate(0deg) translateY(0px); }
.award-card:nth-child(8) { transform: rotate(3deg) translateY(2px); }
.award-card:nth-child(9) { transform: rotate(6deg) translateY(6px); }
.award-card:nth-child(10) { transform: rotate(9deg) translateY(13px); }
.award-card:nth-child(11) { transform: rotate(12deg) translateY(24px); }
.award-card:nth-child(12) { transform: rotate(15deg) translateY(38px); }
.award-card:nth-child(13) { transform: rotate(18deg) translateY(55px); }

/* Premium Roll-out hover effect (straighten, scale, pop up, front z-index) */
.award-card:hover {
  transform: translateY(-80px) scale(1.22) rotate(0deg) !important;
  z-index: 150 !important;
  box-shadow: 0 25px 60px rgba(var(--accent-color-rgb), 0.25), 0 20px 45px rgba(0, 0, 0, 0.4);
}

/* Mobile rollout state (when clicked, before opening modal) */
.award-card.rolling-out {
  transform: translateY(-120px) scale(1.3) rotate(0deg) !important;
  z-index: 9999 !important;
  box-shadow: 0 30px 80px rgba(0,0,0,0.6), 0 20px 50px rgba(var(--accent-color-rgb), 0.35);
}

/* Modal CSS styling with elite blur backdrop */
.cert-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s cubic-bezier(0.25, 1, 0.3, 1), visibility 0.5s cubic-bezier(0.25, 1, 0.3, 1);
  pointer-events: none;
}

.cert-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cert-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 15, 0.82);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
}

.cert-modal-content {
  position: relative;
  width: 90vw;
  height: 85vh;
  max-width: 1050px;
  max-height: 750px;
  background: rgba(20, 20, 30, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.9);
  transform: translateY(30px) scale(0.92);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10;
}

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

.cert-modal-close {
  position: absolute;
  top: 25px;
  right: 25px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 22px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s cubic-bezier(0.2, 1, 0.2, 1), box-shadow 0.3s ease;
  z-index: 99;
}

.cert-modal-close:hover {
  background: #f43f5e;
  border-color: #f43f5e;
  transform: scale(1.1) rotate(90deg);
  box-shadow: 0 0 20px rgba(244, 63, 94, 0.4);
}

.cert-modal-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: white;
}

/* --- SKILLS SECTION (3D TagCloud & Categories) --- */
.skills-container {
  display: flex;
  flex-direction: row;
  gap: 40px;
  align-items: center;
  min-height: 500px;
}
.sphere-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 400px;
}
#skill-sphere {
  font-size: 28px;
  font-family: var(--font-display);
  cursor: pointer;
  color: #fff;
}
/* Style the icons inside the TagCloud */
.tagcloud {
  display: inline-block;
  font-weight: bold;
  letter-spacing: 1px;
}
.tagcloud--item {
  color: #fff;
  transition: color 0.3s;
}
.tagcloud--item:hover {
  color: var(--accent-color);
  text-shadow: 0 0 20px var(--accent-color);
}

.skills-cards-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.skill-category-card {
  padding: 24px;
}
.skill-category-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.skill-grid-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  gap: 16px;
  justify-items: center;
}
.skill-item-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: transform 0.3s ease;
}
.skill-item-box:hover {
  transform: translateY(-5px);
}
.skill-item-box i {
  font-size: 32px;
}
.skill-item-box span {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
}

/* --- FEATURED PROJECT --- */
.featured-project-card {
  display: flex;
  flex-direction: row;
  gap: 40px;
  padding: 40px;
  align-items: center;
}
.fp-image-container {
  flex: 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
}
.fp-image-container img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.fp-image-container:hover img {
  transform: scale(1.05);
}
.fp-info-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.fp-title {
  font-family: var(--font-display);
  font-size: 28px;
  color: #fff;
}
.fp-section h4 {
  font-size: 16px;
  color: var(--accent-color);
  margin-bottom: 8px;
}
.fp-section p, .fp-section ul {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.fp-section ul {
  padding-left: 20px;
}
.fp-links {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}
.fp-btn {
  padding: 12px 24px;
  font-size: 14px;
}
.fp-btn.outline {
  background: transparent;
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
}
.fp-btn.outline:hover {
  background: var(--accent-color);
  color: #fff;
  transform: translateY(-5px);
  box-shadow: 0 10px 30px -10px var(--accent-color);
}

/* VERCEL DEPLOYMENTS SPECIFIC STYLES */
.vercel-grid {
  display: flex;
  overflow-x: auto;
  gap: 24px;
  width: 100%;
  padding-bottom: 24px;
  scroll-snap-type: x mandatory;
}
.vercel-grid::-webkit-scrollbar {
  height: 8px;
}
.vercel-grid::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: 10px;
}
.vercel-grid::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 10px;
}

.vercel-card {
  background: #000;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  min-height: 200px;
  min-width: 320px;
  max-width: 320px;
  word-wrap: break-word;
  flex-shrink: 0;
  scroll-snap-align: start;
}

.vercel-card:hover {
  border-color: #fff;
  transform: translateY(-2px);
}

.vercel-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.vercel-card-title {
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.vercel-status {
  background: #000;
  border: 1px solid #333;
  color: #fff;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.vercel-status-dot {
  width: 8px;
  height: 8px;
  background: #50e3c2;
  border-radius: 50%;
  box-shadow: 0 0 10px #50e3c2;
}

.vercel-card-desc {
  color: #888;
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 24px;
  flex-grow: 1;
}

.vercel-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #333;
  padding-top: 16px;
}

.vercel-link-btn {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s;
}

.vercel-card:hover .vercel-link-btn {
  opacity: 0.8;
}
.fp-btn.outline:hover {
  background: var(--accent-color);
  color: #fff;
}

@media (max-width: 768px) {
  .featured-project-card {
    flex-direction: column;
    padding: 24px;
  }
}

/* --- STATUS DOT (Current Availability) --- */
.status-dot {
  width: 12px;
  height: 12px;
  background-color: #2ecc71;
  border-radius: 50%;
  box-shadow: 0 0 8px #2ecc71, 0 0 16px #2ecc71;
  animation: naturalFlicker 3s ease-in-out infinite alternate;
}

@keyframes naturalFlicker {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 10px #2ecc71, 0 0 20px #2ecc71;
  }
  30% {
    opacity: 0.7;
    transform: scale(0.95);
    box-shadow: 0 0 6px #2ecc71, 0 0 12px #2ecc71;
  }
  60% {
    opacity: 0.4;
    transform: scale(0.9);
    box-shadow: 0 0 4px #2ecc71, 0 0 8px #2ecc71;
  }
  80% {
    opacity: 0.9;
    transform: scale(1.05);
    box-shadow: 0 0 12px #2ecc71, 0 0 24px #2ecc71;
  }
}

/* --- FULL SCREEN SUCCESS OVERLAY --- */
.success-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: #2e7d32; /* Vibrant Green */
  z-index: 99997; /* Below the flying paper plane (99999) */
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}
.success-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.success-content {
  text-align: center;
  color: white;
  transform: scale(0.8);
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.success-overlay.active .success-content {
  transform: scale(1);
}
.success-content i {
  font-size: 80px;
  margin-bottom: 20px;
  text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.success-content h2 {
  font-size: 40px;
  font-family: var(--font-display);
  text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
  .success-content i { font-size: 60px; }
  .success-content h2 { font-size: 28px; }
}
/* --- FLYING PAPER PLANE ANIMATION --- */
.flying-paper-plane {
  position: fixed;
  z-index: 99999;
  font-size: 24px;
  color: white; /* White stands out on the green overlay */
  pointer-events: none;
  filter: drop-shadow(0 15px 25px rgba(0,0,0, 0.6));
  transform-origin: center center;
  transition: opacity 0.3s ease;
}

/* --- PREMIUM 3D PARALLAX CONTACT FORM --- */
.contact-form-box {
  transform-style: preserve-3d;
  perspective: 1000px;
}

.contact-form-box > * {
  transition: transform 0.3s ease-out, text-shadow 0.3s ease-out, box-shadow 0.3s ease-out;
  transform: translateZ(0);
}

.contact-form-box:hover h3 {
  transform: translateZ(60px);
  text-shadow: 0 10px 20px rgba(0,0,0,0.8);
}

.contact-form-box:hover form {
  transform: translateZ(40px);
}

.contact-form-box:hover .submit-btn {
  transform: translateZ(80px) scale(1.05);
  box-shadow: 0 20px 40px rgba(var(--accent-color-rgb), 0.4);
}

.contact-form-box:hover .form-group input, 
.contact-form-box:hover .form-group textarea {
  box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  transform: translateZ(20px);
}

/* =============================================
   COMPREHENSIVE MOBILE & ALL-SCREEN RESPONSIVE
   Breakpoints: 1600 | 1200 | 1024 | 900 | 768 | 600 | 480 | 360
   ============================================= */

/* ---- 1. Ultra-wide centering (1600px+) ---- */
@media (min-width: 1600px) {
  header {
    padding-left: calc((100vw - 1200px) / 2);
    padding-right: calc((100vw - 1200px) / 2);
  }
}

/* ---- 2. Large Laptop / 1200px ---- */
@media (max-width: 1200px) {
  .about-grid { gap: 32px; }
  .info-cards-grid { gap: 16px; }
  .resume-wrapper { gap: 24px; }
  .resume-tabs { min-width: 200px; }
}

/* ---- 3. Tablet Landscape / 1024px ---- */
@media (max-width: 1024px) {
  .floating-socials { display: none; }

  /* Header */
  header { padding: 14px 20px; }
  .desktop-nav { display: none !important; }
  .mobile-nav-toggle { display: block !important; }

  /* Awards / certifications horizontal scroll */
  .awards-grid {
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    padding: 60px 32px !important;
    min-height: 440px !important;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    gap: 0;
  }
  .awards-grid::-webkit-scrollbar { height: 6px; }
  .awards-grid::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
  }
  .award-card {
    flex: 0 0 230px !important;
    height: 310px !important;
    margin-left: -90px !important;
    scroll-snap-align: center;
    transform: rotate(0deg) translateY(0px) !important;
  }
  .award-card:first-child { margin-left: 0 !important; }
  .award-card:hover { transform: translateY(-20px) scale(1.08) !important; }

  .cert-modal-content { width: 95vw; height: 90vh; }
}

/* ---- 4. Tablet Portrait / 900px ---- */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .info-cards-grid { grid-template-columns: 1fr; }
  .skills-container { flex-direction: column; gap: 40px; }
  .sphere-wrapper { min-height: 350px; }
  .contact-wrapper { grid-template-columns: 1fr; gap: 48px; }
  .resume-wrapper { flex-direction: column; }
  .resume-tabs {
    flex-direction: row;
    overflow-x: auto;
    width: 100%;
    gap: 10px;
    padding-bottom: 8px;
    min-width: unset;
  }
  .resume-tab-btn {
    white-space: nowrap;
    padding: 12px 18px;
    font-size: 14px;
    flex-shrink: 0;
  }
  .resume-content { min-height: unset; }
}

/* ---- 5. Mobile / Tablet Portrait / 768px ---- */
@media (max-width: 768px) {
  /* Sections */
  section { padding: 60px 16px; }
  .section-header { margin-bottom: 36px; }
  .section-title { font-size: 28px; }
  .section-tag { font-size: 17px; }

  /* Hero */
  .hero-title { font-size: 13vw; }
  .hero-subtitle {
    font-size: 10px;
    letter-spacing: 0.12em;
    padding: 0 8px;
  }
  .hero-subtitle-top { font-size: 22px; }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .info-cards-grid { grid-template-columns: 1fr; }
  .bio-text { font-size: 15px; }

  /* Resume */
  .resume-wrapper { flex-direction: column; gap: 20px; }
  .resume-tabs {
    flex-direction: row;
    overflow-x: auto;
    width: 100%;
    padding-bottom: 8px;
    gap: 10px;
    min-width: unset;
  }
  .resume-tab-btn {
    white-space: nowrap;
    padding: 11px 16px;
    font-size: 13px;
    flex-shrink: 0;
  }
  .resume-timeline-title { font-size: 17px; }
  .resume-content { min-height: unset; }

  /* Projects — horizontal swipe carousel */
  .projects-grid {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px !important;
    padding: 8px 4px 16px !important;
    scrollbar-width: none;
  }
  .projects-grid::-webkit-scrollbar { display: none; }
  .project-card {
    flex: 0 0 78vw !important;
    max-width: 320px !important;
    scroll-snap-align: start;
    will-change: transform;
    transform: translate3d(0,0,0);
  }

  /* Highlights — horizontal swipe carousel */
  #highlights .awards-grid {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px !important;
    padding: 8px 4px 16px !important;
    margin-top: 0 !important;
    min-height: unset !important;
    scrollbar-width: none;
  }
  #highlights .awards-grid::-webkit-scrollbar { display: none; }
  #highlights .award-card {
    flex: 0 0 80vw !important;
    max-width: 340px !important;
    height: auto !important;
    min-height: 200px !important;
    margin-left: 0 !important;
    transform: none !important;
    scroll-snap-align: start;
    will-change: transform;
  }

  /* Contact */
  .contact-wrapper { grid-template-columns: 1fr; gap: 36px; }
  .form-group-row { grid-template-columns: 1fr; }
  .detail-value { font-size: 14px; }

  /* Footer */
  footer { padding: 28px 16px; }
  .footer-text { font-size: 11px; }
}

/* ---- 6. Small Mobile / 600px ---- */
@media (max-width: 600px) {
  section { padding: 48px 14px; }
  .section-title { font-size: 24px; }

  .hero-title { font-size: 14vw; line-height: 1.05; }
  .hero-subtitle { font-size: 9px; letter-spacing: 0.1em; }

  .resume-tab-btn { padding: 10px 14px; font-size: 12px; }

  /* Certifications — smooth horizontal swipe carousel */
  .awards-grid {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px !important;
    padding: 16px 4px 24px !important;
    min-height: unset !important;
    margin-top: 0 !important;
    scrollbar-width: none;
    /* GPU acceleration for buttery scrolling */
    will-change: scroll-position;
    transform: translate3d(0,0,0);
  }
  .awards-grid::-webkit-scrollbar { display: none; }
  .award-card {
    flex: 0 0 72vw !important;
    max-width: 280px !important;
    height: 300px !important;
    margin-left: 0 !important;
    transform: none !important;
    scroll-snap-align: start;
    will-change: transform;
    transform: translate3d(0,0,0);
    border-radius: 16px;
  }
  .award-card:active {
    transform: scale(0.97) !important;
  }

  .glass-card { padding: 22px; }
  .contact-form-box, .contact-details-box { padding: 0; }
  .social-icons-row { gap: 12px; }
}

/* ---- 7. Standard Phones / 480px ---- */
@media (max-width: 480px) {
  header { padding: 12px 16px; }
  .logo { font-size: 18px; }

  .hero-title { font-size: 11.5vw; line-height: 1.0; }
  .hero-subtitle { font-size: 8.5px; letter-spacing: 0.08em; padding: 0 4px; }
  .hero-btn { padding: 13px 24px; font-size: 12px; }

  section { padding: 44px 12px; }
  .section-title { font-size: 22px; }

  .resume-tabs { gap: 8px; }
  .resume-tab-btn { padding: 10px 12px; font-size: 12px; gap: 8px; }
  .resume-tab-btn i { font-size: 15px; }
  .resume-timeline-title { font-size: 16px; }
  .resume-timeline-org { font-size: 13px; }

  .skill-badge { font-size: 11px; padding: 5px 12px; }
  .skill-category h4 { font-size: 15px; }

  .projects-grid { gap: 16px; }
  .project-title { font-size: 17px; }



  .detail-value { font-size: 13px; }
  .detail-icon-box { width: 40px; height: 40px; font-size: 16px; }

  .availability-card { padding: 20px; }
  .availability-desc { font-size: 12px; }
}

/* ---- 8. Extra-Small Phones / 360px ---- */
@media (max-width: 360px) {
  .logo { font-size: 16px; }
  .hero-title { font-size: 10.5vw; }
  .hero-subtitle { font-size: 8px; }
  .loading-text { font-size: 16px; }
  .section-title { font-size: 20px; }

  .resume-tab-btn { padding: 9px 10px; font-size: 11px; }
  .resume-timeline-title { font-size: 15px; }

  .skill-badge { font-size: 10px; padding: 4px 10px; }
  section { padding: 36px 10px; }
}

/* --- GITHUB CALENDAR OVERRIDES --- */
:root {
  --color-calendar-graph-day-bg: #161b22;
  --color-calendar-graph-day-L1-bg: #0e4429;
  --color-calendar-graph-day-L2-bg: #006d32;
  --color-calendar-graph-day-L3-bg: #26a641;
  --color-calendar-graph-day-L4-bg: #39d353;
}
.calendar.js-calendar-graph {
  border: none !important;
  background: transparent !important;
  padding: 0 !important;
}
.calendar .contrib-column {
  border: none !important;
}
.calendar .contrib-column.table-column {
  display: none !important; /* The library adds a weird footer text by default */
}
.calendar text.wday, .calendar text.month {
  fill: var(--text-secondary) !important;
}
.calendar .contrib-legend text {
  fill: var(--text-secondary) !important;
}
.calendar .float-right.color-text-secondary {
  color: var(--text-secondary) !important;
}

/* GitHub Calendar Tooltip & Interactive Squares */
.calendar .ContributionCalendar-day, .calendar rect.day {
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease !important;
  cursor: pointer !important;
}
.calendar .ContributionCalendar-day:hover, .calendar rect.day:hover {
  transform: scale(1.6) !important;
  box-shadow: 0 0 10px var(--accent-color) !important;
  z-index: 10 !important;
  position: relative !important;
}

.gh-tooltip {
  position: absolute;
  background: rgba(10, 10, 15, 0.95);
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-family: var(--font-main);
  pointer-events: none;
  z-index: 99999;
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.8);
  transform: translate(-50%, -130%);
  transition: opacity 0.2s ease, transform 0.1s ease;
  white-space: nowrap;
}
.gh-tooltip.hidden {
  opacity: 0;
  transform: translate(-50%, -120%);
}
.gh-tooltip-date {
  color: var(--text-muted);
  font-size: 11px;
  display: block;
  margin-top: 4px;
}

/* MOBILE OPTIMIZATIONS (LOW-END DEVICES) */
body.is-mobile .glass-card, 
body.is-mobile .project-card, 
body.is-mobile .timeline-item-content, 
body.is-mobile .gallery-item {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: rgba(10, 10, 10, 0.95) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5) !important;
}

body.is-mobile nav {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: rgba(0, 0, 0, 0.98) !important;
}

body.is-mobile .tech-item:hover, 
body.is-mobile .btn:hover {
  box-shadow: 0 0 10px var(--accent-color) !important; /* Reduced shadow radius */
}

/* Hide custom cursor elements just in case JS failed */
body.is-mobile #custom-cursor,
body.is-mobile #custom-cursor-ring {
  display: none !important;
}

/* --- GITHUB REPOS SECTION --- */
.github-repos-grid {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  width: 100%;
  padding-bottom: 24px;
  scroll-snap-type: x mandatory;
}
.github-repos-grid::-webkit-scrollbar {
  height: 8px;
}
.github-repos-grid::-webkit-scrollbar-track {
  background: var(--bg-secondary);
  border-radius: 10px;
}
.github-repos-grid::-webkit-scrollbar-thumb {
  background: var(--accent-color);
  border-radius: 10px;
}

.github-repo-card {
  padding: 0;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  min-height: 250px;
  min-width: 300px;
  max-width: 300px;
  flex-shrink: 0;
  scroll-snap-align: start;
}
.repo-image-box {
  width: 100%;
  height: 140px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}
.repo-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}
.github-repo-card:hover .repo-image-box img {
  transform: scale(1.05);
}
.repo-type-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  color: var(--accent-color);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--accent-color);
  z-index: 10;
}
.repo-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
}
.github-repo-card:hover {
  transform: translateY(-5px);
  background: var(--bg-card-hover);
  border-color: var(--text-primary);
}
.repo-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--accent-color);
  display: flex;
  align-items: center;
  gap: 10px;
}
.repo-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
  flex-grow: 1;
}
.repo-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.repo-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.repo-lang-color {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}
