:root {
  /* iOS-inspired color palette */
  --color-bg: #000000;
  --color-bg-secondary: #1c1c1e;
  --color-surface: rgba(28, 28, 30, 0.72);
  --color-surface-strong: rgba(44, 44, 46, 0.8);
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-strong: rgba(255, 255, 255, 0.15);
  --color-accent: #007aff;
  --color-accent-soft: rgba(0, 122, 255, 0.12);
  --color-accent-strong: #0a84ff;
  --color-highlight: #64d2ff;
  --color-cyan: #5ac8fa;
  --color-success: #30d158;
  --color-text-primary: #ffffff;
  --color-text-secondary: #98989d;
  --color-text-muted: #6e6e73;
  --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.6);
  --shadow-sharp: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 24px rgba(0, 122, 255, 0.3);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --backdrop: blur(40px) saturate(180%);
  --gradient-primary: linear-gradient(135deg, #007aff 0%, #5ac8fa 100%);
  --gradient-secondary: linear-gradient(135deg, rgba(0, 122, 255, 0.1), rgba(90, 200, 250, 0.1));
  --gradient-surface: linear-gradient(135deg, rgba(44, 44, 46, 0.85) 0%, rgba(28, 28, 30, 0.85) 100%);
  --font-sans: "Fira Code", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace;
  --font-mono: "Fira Code", "Consolas", "Courier New", monospace;
  --transition: cubic-bezier(0.28, 0, 0.12, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Light mode theme - Enhanced iOS-style */
[data-theme="light"] {
  --color-bg: #f2f2f7;
  --color-bg-secondary: #ffffff;
  --color-surface: rgba(255, 255, 255, 0.9);
  --color-surface-strong: rgba(255, 255, 255, 0.95);
  --color-border: rgba(0, 0, 0, 0.12);
  --color-border-strong: rgba(0, 0, 0, 0.2);
  --color-accent: #007aff;
  --color-accent-soft: rgba(0, 122, 255, 0.15);
  --color-accent-strong: #0051d5;
  --color-highlight: #0066ff;
  --color-cyan: #32ade6;
  --color-success: #34c759;
  --color-text-primary: #000000;
  --color-text-secondary: #3a3a3c;
  --color-text-muted: #8e8e93;
  --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.1);
  --shadow-sharp: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-glow: 0 0 32px rgba(0, 122, 255, 0.25);
  --backdrop: blur(40px) saturate(180%) brightness(1.1);
  --gradient-primary: linear-gradient(135deg, #007aff 0%, #5ac8fa 100%);
  --gradient-secondary: linear-gradient(135deg, rgba(0, 122, 255, 0.1), rgba(90, 200, 250, 0.1));
  --gradient-surface: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(249, 249, 251, 0.9) 100%);
}

html {
  scroll-behavior: smooth;
  overflow-y: scroll;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-size: clamp(15px, 1.4vw, 17px);
  animation: fadeInPage 0.4s ease-out;
  width: 100%;
  max-width: 100vw;
}

@keyframes fadeInPage {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

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

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

main {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}
  max-width: 100vw;
  overflow-x: hidden;
}

/* iOS-style glass buttons */
button {
  background: var(--color-surface-strong);
  color: var(--color-text-primary);
  border: 0.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 24px;
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: all 0.35s var(--transition), background-color 0.5s ease;
  box-shadow: var(--shadow-sharp), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: var(--backdrop);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

button:active::before {
  width: 300px;
  height: 300px;
  transition: width 0.01s, height 0.01s;
}

button::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

button:hover {
  border-color: rgba(0, 122, 255, 0.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: translateY(-2px) scale(1.02);
  background: rgba(0, 122, 255, 0.12);
}

button:hover::after {
  opacity: 0.2;
}

button:active {
  transform: scale(0.96);
  transition: transform 0.1s ease;
}

.nav-option:focus-visible,
.download-btn:focus-visible,
.contact-icon-btn:focus-visible,
.view-credential-btn:focus-visible,
#scrollTopBtn:focus-visible,
button:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 4px;
  box-shadow: 0 0 0 6px var(--color-accent-soft);
}

/* Contact form styling */
.contact-section textarea,
.contact-section input {
  width: 100%;
  padding: 14px 16px;
  margin-bottom: 18px;
  background: rgba(30, 35, 60, 0.4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: all 0.3s ease;
  backdrop-filter: blur(20px);
}

.contact-section input:focus,
.contact-section textarea:focus {
  border-color: var(--color-accent);
  outline: none;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  background: rgba(30, 35, 60, 0.6);
}

/* Style for submit button */
.contact-section button {
  background: var(--gradient-primary);
  color: #fff;
  border: 1px solid rgba(139, 92, 246, 0.5);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.4), 0 0 30px rgba(139, 92, 246, 0.2);
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
}

.contact-section button:hover {
  box-shadow: 0 8px 32px rgba(139, 92, 246, 0.6), 0 0 50px rgba(139, 92, 246, 0.3);
  transform: translateY(-2px) scale(1.02);
}

body, h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  margin: 0;
  padding: 0;
  color: var(--color-text-primary);
}

p {
  color: var(--color-text-secondary);
  line-height: 1.7;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  color: var(--color-text-secondary);
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  position: relative;
  line-height: 1.65;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.5s var(--transition);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
        radial-gradient(circle at 30% 30%, rgba(0, 122, 255, 0.08), transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(90, 200, 250, 0.05), transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(48, 209, 88, 0.03), transparent 70%);
  z-index: -2;
  pointer-events: none;
  opacity: 1;
  animation: breathe 8s ease-in-out infinite;
  transition: opacity 0.5s ease;
}

[data-theme="light"] body::before {
  background:
        radial-gradient(circle at 30% 30%, rgba(0, 122, 255, 0.06), transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(90, 200, 250, 0.04), transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(52, 199, 89, 0.03), transparent 70%);
  opacity: 0.8;
}

@keyframes breathe {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

@keyframes bgPulse {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.006) 0px,
    transparent 1px,
    transparent 2px
  );
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
}

[data-theme="light"] body::after {
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.008) 0px,
    transparent 1px,
    transparent 2px
  );
  opacity: 0.3;
}

/* iOS-style safe area support */
@supports (padding: env(safe-area-inset-bottom)) {
  body {
    padding-bottom: env(safe-area-inset-bottom);
  }
}

/* Smooth scroll for iOS */
html {
  -webkit-overflow-scrolling: touch;
}

/* iOS selection styling */
::selection {
  background-color: rgba(0, 122, 255, 0.3);
  color: var(--color-text-primary);
}

::-moz-selection {
  background-color: rgba(0, 122, 255, 0.3);
  color: var(--color-text-primary);
}

[data-theme="light"] ::selection {
  background-color: rgba(0, 122, 255, 0.25);
  color: #000000;
}

[data-theme="light"] ::-moz-selection {
  background-color: rgba(0, 122, 255, 0.25);
  color: #000000;
}
    .container {
      flex: 1;
      max-width: 1080px;
      width: 100%;
      margin: 32px auto 56px;
      padding: 0 20px;
      position: relative;
      z-index: 1;
      animation: slideUpFadeIn 0.7s var(--transition);
      box-sizing: border-box;
    }
    
    .container::before {
      content: '';
      position: absolute;
      inset: 0;
      background: transparent;
      border-radius: inherit;
      opacity: 0;
      z-index: -1;
    }
    
    @keyframes slideUpFadeIn {
      from {
        opacity: 0;
        transform: translateY(20px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
        .profile-header {
          background: var(--color-surface);
          border-radius: var(--radius-xl);
          box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.1);
          padding: 32px 40px;
          margin-bottom: 20px;
          border: 0.5px solid var(--color-border);
          display: flex;
          align-items: center;
          justify-content: space-between;
          gap: 40px;
          position: relative;
          backdrop-filter: var(--backdrop);
          transition: all 0.5s var(--transition), background-color 0.5s ease;
          overflow: hidden;
          animation: fadeInUp 0.7s var(--transition) 0.1s backwards;
        }
        .profile-header::before {
          content: "";
          position: absolute;
          inset: 0;
          background: transparent;
          opacity: 0;
          pointer-events: none;
          border-radius: inherit;
        }
        .profile-header:hover {
          box-shadow: 0 12px 48px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.15);
          transform: translateY(-4px) scale(1.005);
          border-color: rgba(0, 122, 255, 0.2);
        }
        .profile-img {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            object-fit: cover;
          border: 3px solid transparent;
          background: linear-gradient(var(--color-bg), var(--color-bg)) padding-box,
                      linear-gradient(135deg, #007aff 0%, #5ac8fa 50%, #30d158 100%) border-box;
          box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 32px rgba(0, 122, 255, 0.5);
            transition: all 0.5s var(--spring);
          position: relative;
          z-index: 2;
          padding: 3px;
          animation: float 4s ease-in-out infinite;
        }
        .profile-img:hover {
            transform: scale(1.08) rotate(2deg);
          box-shadow: 0 12px 48px rgba(0, 0, 0, 0.7), 0 0 48px rgba(0, 122, 255, 0.7), 0 0 80px rgba(90, 200, 250, 0.5);
        }
        
        [data-theme="light"] .profile-img {
          box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 0 24px rgba(0, 122, 255, 0.3);
        }
        
        [data-theme="light"] .profile-img:hover {
          box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2), 0 0 36px rgba(0, 122, 255, 0.4), 0 0 60px rgba(90, 200, 250, 0.3);
        }
        .profile-info {
            flex-grow: 1;
          position: relative;
          z-index: 1;
        }
        .profile-info h1 {
          color: var(--color-text-primary);
          font-size: clamp(1.8rem, 4vw, 2.4rem);
          margin-bottom: 12px;
          font-weight: 700;
          letter-spacing: -0.03em;
          line-height: 1.1;
          animation: slideInLeft 0.6s var(--transition) 0.2s backwards;
        }
        .profile-info p {
          color: var(--color-text-secondary);
          font-size: 0.95rem;
          margin: 0 0 6px 0;
          font-weight: 500;
          letter-spacing: 0.01em;
          animation: slideInLeft 0.6s var(--transition) 0.3s backwards;
        }
        .profile-info p::before {
          content: "📍";
          margin-right: 8px;
          font-size: 1.1em;
        }
        .verified-badge {
          display: inline-flex;
          align-items: center;
          justify-content: center;
          font-size: 13px;
          color: #ffffff;
          margin-left: 8px;
          background: var(--gradient-primary);
          width: 20px;
          height: 20px;
          border-radius: 50%;
          box-shadow: 0 2px 8px rgba(0, 122, 255, 0.4);
          vertical-align: middle;
          position: relative;
          border: 2px solid #ffffff;
          font-weight: 900;
          transition: transform 0.3s var(--spring);
          animation: pulse 2s ease-in-out infinite;
        }
        .verified-badge::before {
          content: '✓';
          position: absolute;
          font-size: 12px;
          font-weight: 900;
          color: #ffffff;
          line-height: 1;
          text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
          left: 50%;
          top: 50%;
          transform: translate(-50%, -50%);
        }
        .verified-badge:hover {
          transform: scale(1.15) rotate(10deg);
        }
        .profile-meta {
          display: flex;
          flex-wrap: wrap;
          gap: 10px;
          margin-top: 16px;
          animation: slideInLeft 0.6s var(--transition) 0.4s backwards;
        }
        .status-pill {
          display: inline-flex;
          align-items: center;
          gap: 8px;
          padding: 7px 14px;
          border-radius: 999px;
          font-size: 0.8125rem;
          background: rgba(48, 209, 88, 0.15);
          color: var(--color-success);
          border: 0.5px solid rgba(48, 209, 88, 0.3);
          font-weight: 600;
          box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
          transition: all 0.3s var(--transition);
          backdrop-filter: blur(20px);
        }
        .status-pill::before {
          content: "";
          width: 6px;
          height: 6px;
          border-radius: 50%;
          background: var(--color-success);
          box-shadow: 0 0 8px var(--color-success);
          animation: pulse 2s ease-in-out infinite;
        }
        @keyframes pulse {
          0%, 100% { opacity: 1; }
          50% { opacity: 0.5; }
        }
        .status-pill.remote {
          background: rgba(0, 122, 255, 0.15);
          color: var(--color-accent-strong);
          border-color: rgba(0, 122, 255, 0.3);
        }
        .status-pill.remote::before {
          background: var(--color-accent-strong);
          box-shadow: 0 0 10px var(--color-accent-strong);
        }
        .profile-badges {
          list-style: none;
          display: flex;
          flex-wrap: wrap;
          gap: 10px;
          margin: 20px 0 0;
          padding: 0;
          animation: slideInLeft 0.6s var(--transition) 0.5s backwards;
        }
        .profile-badges li {
          display: inline-flex;
          align-items: center;
          gap: 8px;
          padding: 10px 16px;
          border-radius: var(--radius-md);
          background: rgba(22, 22, 35, 0.4);
          border: 1px solid var(--color-border);
          box-shadow: none;
          font-size: 0.8rem;
          color: var(--color-text-secondary);
          font-weight: 600;
          backdrop-filter: var(--backdrop);
          transition: all 0.3s var(--transition);
        }
        .profile-badges li:hover {
          background: rgba(59, 130, 246, 0.08);
          border-color: rgba(59, 130, 246, 0.2);
          transform: translateY(-1px);
          color: var(--color-text-primary);
        }
        .profile-badges li i {
          font-size: 1.1rem;
          color: var(--color-accent);
        }
        .nav-container {
          display: flex;
          align-items: center;
          gap: 16px;
          margin-bottom: 24px;
          position: relative;
          z-index: 100;
          animation: fadeInUp 0.7s var(--transition) 0.6s backwards;
          padding: 8px;
          background: var(--color-surface);
          border-radius: var(--radius-xl);
          backdrop-filter: var(--backdrop);
          border: 0.5px solid var(--color-border);
          box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.1);
          transition: all 0.4s var(--transition), background-color 0.5s ease;
        }
        
        .nav-container:hover {
          box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.15);
        }
        
        .nav-container.scrolled {
          box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.15);
          border-color: var(--color-border-strong);
        }

        .nav-options {
          display: grid;
          grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
          gap: 8px;
          padding: 0;
          border-radius: 0;
          background: transparent;
          border: none;
          box-shadow: none;
          backdrop-filter: none;
          overflow-x: auto;
          overscroll-behavior-x: contain;
          scrollbar-width: none;
          flex: 1;
          -ms-overflow-style: none;
        }
        
        .nav-options::-webkit-scrollbar {
          display: none;
        }

        .nav-options::-webkit-scrollbar {
          height: 3px;
        }

        .nav-options::-webkit-scrollbar-thumb {
          background: rgba(0, 122, 255, 0.3);
          border-radius: 999px;
        }

        .nav-options::-webkit-scrollbar-track {
          background: rgba(255, 255, 255, 0.03);
          border-radius: 999px;
        }

        /* iOS-style custom scrollbar for all elements */
        ::-webkit-scrollbar {
          width: 8px;
          height: 8px;
        }

        ::-webkit-scrollbar-track {
          background: rgba(255, 255, 255, 0.02);
        }

        ::-webkit-scrollbar-thumb {
          background: rgba(0, 122, 255, 0.3);
          border-radius: 999px;
          border: 2px solid transparent;
          background-clip: padding-box;
        }

        ::-webkit-scrollbar-thumb:hover {
          background: rgba(0, 122, 255, 0.5);
          background-clip: padding-box;
        }
        
        [data-theme="light"] ::-webkit-scrollbar-track {
          background: rgba(0, 0, 0, 0.03);
        }
        
        [data-theme="light"] ::-webkit-scrollbar-thumb {
          background: rgba(0, 122, 255, 0.35);
        }
        
        [data-theme="light"] ::-webkit-scrollbar-thumb:hover {
          background: rgba(0, 122, 255, 0.55);
        }

        /* iOS-style navigation buttons */
        .nav-option {
          background: transparent;
          color: var(--color-text-secondary);
          border: none;
          padding: 10px 14px;
          cursor: pointer;
          border-radius: var(--radius-md);
          font-size: 0.8125rem;
          font-weight: 600;
          display: flex;
          flex-direction: column;
          align-items: center;
          justify-content: center;
          gap: 6px;
          transition: all 0.35s var(--spring), background-color 0.5s ease;
          position: relative;
          overflow: visible;
          backdrop-filter: none;
          box-shadow: none;
          -webkit-tap-highlight-color: transparent;
        }
        
        .nav-option::before {
          content: '';
          position: absolute;
          inset: 0;
          background: var(--color-accent);
          opacity: 0;
          border-radius: inherit;
          transition: opacity 0.3s ease;
          z-index: -1;
        }

        .nav-option i {
          font-size: 1.25rem;
          transition: transform 0.35s var(--spring), color 0.25s ease;
          color: var(--color-text-secondary);
          position: relative;
          z-index: 1;
        }
        
        .nav-option span {
          position: relative;
          z-index: 1;
          font-size: 0.75rem;
          transition: color 0.25s ease;
          white-space: nowrap;
        }

        .nav-option:hover,
        .nav-option.active {
          background: var(--color-accent-soft);
          color: var(--color-accent-strong);
          border: none;
          box-shadow: 0 2px 12px rgba(0, 122, 255, 0.2);
          transform: translateY(-2px) scale(1.05);
        }
        
        .nav-option:hover::before,
        .nav-option.active::before {
          opacity: 0.15;
        }

        .nav-option:hover i,
        .nav-option.active i {
          color: var(--color-accent-strong);
          transform: scale(1.2) translateY(-2px);
        }
        
        .nav-option:hover span,
        .nav-option.active span {
          color: var(--color-accent-strong);
        }
        
        .nav-option.active {
          background: var(--color-accent-soft);
          position: relative;
        }
        
        .nav-option.active::after {
          content: '';
          position: absolute;
          bottom: 0;
          left: 50%;
          transform: translateX(-50%);
          width: 50%;
          height: 3px;
          background: var(--color-accent);
          border-radius: 2px 2px 0 0;
          box-shadow: 0 0 10px rgba(0, 122, 255, 0.7);
        }

        .nav-option:active {
          transform: scale(0.95);
          transition: transform 0.1s ease;
        }
        
        /* iOS-style theme toggle button */
        .theme-toggle {
          background: var(--color-surface-strong);
          border: 0.5px solid var(--color-border);
          border-radius: 50%;
          width: 44px;
          height: 44px;
          min-width: 44px;
          display: flex;
          align-items: center;
          justify-content: center;
          cursor: pointer;
          position: relative;
          overflow: hidden;
          backdrop-filter: var(--backdrop);
          box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.15);
          transition: all 0.5s var(--spring), background-color 0.5s ease;
          -webkit-tap-highlight-color: transparent;
        }
        
        [data-theme="light"] .theme-toggle {
          box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
        }

        .theme-toggle i {
          position: absolute;
          font-size: 1.2rem;
          transition: all 0.5s var(--spring);
        }

        .theme-toggle .fa-moon {
          opacity: 1;
          transform: rotate(0deg) scale(1);
          color: var(--color-accent-strong);
        }

        .theme-toggle .fa-sun {
          opacity: 0;
          transform: rotate(180deg) scale(0);
          color: #ff9500;
        }

        [data-theme="light"] .theme-toggle .fa-moon {
          opacity: 0;
          transform: rotate(-180deg) scale(0);
        }

        [data-theme="light"] .theme-toggle .fa-sun {
          opacity: 1;
          transform: rotate(0deg) scale(1);
        }

        .theme-toggle:hover {
          background: var(--color-accent-soft);
          border-color: var(--color-accent);
          box-shadow: 0 6px 24px rgba(0, 122, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
          transform: scale(1.1) rotate(15deg);
        }

        .theme-toggle:active {
          transform: scale(0.9);
          transition: transform 0.1s ease;
        }
        
        /* iOS-style glass resume section */
        .resume-container {
          background: var(--color-surface-strong);
          padding: 24px;
          border-radius: var(--radius-lg);
          box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.1);
          backdrop-filter: var(--backdrop);
          border: 0.5px solid var(--color-border);
          transition: all 0.5s ease;
        }

        .resume-frame {
          background: var(--color-bg-secondary);
          border-radius: var(--radius-md);
          overflow: hidden;
          box-shadow: var(--shadow-sharp), inset 0 1px 0 rgba(255, 255, 255, 0.06);
          border: 0.5px solid var(--color-border);
          transition: all 0.5s ease;
        }

        #resume-viewer {
            border: none;
          display: block;
          background: rgba(10, 14, 39, 0.8);
        }

        .resume-actions {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-top: 25px;
        }

        .download-btn {
            display: inline-flex;
            align-items: center;
            gap: 12px;
          background: var(--gradient-primary);
          color: #ffffff;
            text-decoration: none;
            padding: 16px 32px;
          border-radius: var(--radius-md);
            font-weight: 700;
            transition: all 0.35s var(--spring);
          box-shadow: 0 4px 20px rgba(0, 122, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
          border: none;
          position: relative;
          overflow: hidden;
          font-size: 1.05rem;
          letter-spacing: -0.01em;
        }
        
        .download-btn::before {
          content: '';
          position: absolute;
          inset: 0;
          background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), transparent);
          transform: translateX(-100%);
          transition: transform 0.6s ease;
        }
        
        .download-btn:hover::before {
          transform: translateX(100%);
        }

        .download-btn:hover {
          box-shadow: 0 6px 32px rgba(0, 122, 255, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25);
          transform: translateY(-3px) scale(1.03);
        }
        
        .download-btn:active {
          transform: scale(0.96);
          box-shadow: 0 2px 12px rgba(0, 122, 255, 0.4);
          transition: transform 0.1s ease;
        }

        .download-btn i {
            font-size: 1.2em;
        }
        .section {
          background: var(--color-surface);
          border-radius: var(--radius-xl);
          box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.1);
          padding: 36px;
          margin-bottom: 16px;
          border: 0.5px solid var(--color-border);
            transition: all 0.5s var(--spring), background-color 0.5s ease, transform 0.3s ease;
            display: none;
            color: var(--color-text-primary);
            opacity: 0;
            position: relative;
            overflow: hidden;
            animation: fadeInSection 0.7s ease;
          backdrop-filter: var(--backdrop);
          min-height: 400px;
          transform: translateY(20px);
        }
        
        .section.active {
          display: block;
          opacity: 1;
          animation: slideInScale 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
          transform: translateY(0);
        }
        
        @keyframes slideInScale {
          0% {
            opacity: 0;
            transform: translateY(30px) scale(0.95);
          }
          100% {
            opacity: 1;
            transform: translateY(0) scale(1);
          }
        }
        
        .section:hover {
          transform: translateY(-4px);
          box-shadow: 0 12px 40px rgba(0, 122, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.15);
          border-color: rgba(0, 122, 255, 0.3);
        }
        .section::after {
          content: '';
          position: absolute;
          top: 0;
          left: 0;
          width: 3px;
          height: 50px;
          background: var(--gradient-primary);
          border-radius: 0 3px 3px 0;
          opacity: 0.8;
          box-shadow: 0 0 12px rgba(0, 122, 255, 0.5);
        }
        .section::before {
          content: "";
          position: absolute;
          inset: 0;
          background: transparent;
          opacity: 0;
          pointer-events: none;
        }
        .section:hover {
          transform: translateY(-4px) scale(1.005);
          border-color: rgba(0, 122, 255, 0.15);
          box-shadow: 0 12px 48px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.15);
        }
        .section.active {
            display: block;
            opacity: 1;
            animation: fadeInSection 0.8s ease;
        }
        @keyframes fadeInSection {
            from { opacity: 0; transform: translateY(30px); }
            to { opacity: 1; transform: translateY(0); }
        }
        .section h2 {
          color: var(--color-text-primary);
          margin-bottom: 24px;
          padding-left: 0;
          padding-bottom: 16px;
          font-size: clamp(1.75rem, 3.5vw, 2rem);
          font-weight: 700;
          position: relative;
          border-bottom: 0.5px solid var(--color-border);
          letter-spacing: -0.035em;
          line-height: 1.15;
        }
        .section h2::before {
          content: "";
          position: absolute;
          bottom: -0.5px;
          left: 0;
          width: 70px;
          height: 2.5px;
          background: var(--gradient-primary);
          border-radius: 999px;
          box-shadow: 0 0 12px rgba(0, 122, 255, 0.6);
        }
        .section h2::after {
          content: attr(data-number);
          position: absolute;
          left: -48px;
          top: 0;
          font-size: 0.5em;
          color: var(--color-accent);
          font-weight: 600;
          opacity: 0.4;
        }
        .about-text {
          color: var(--color-text-secondary);
          font-size: 1.1rem;
          line-height: 1.9;
          letter-spacing: 0.01em;
          width: 100%;
          max-width: 100%;
          font-weight: 400;
          margin-bottom: 20px;
          text-align: justify;
        }
        
        @keyframes gradientShift {
          0% {
            background-position: 0% 50%;
          }
          50% {
            background-position: 100% 50%;
          }
          100% {
            background-position: 0% 50%;
          }
        }
        
        .gradient-text {
          background: linear-gradient(90deg, 
            var(--color-text-secondary) 0%, 
            var(--color-accent) 25%, 
            var(--color-cyan) 50%, 
            var(--color-accent) 75%, 
            var(--color-text-secondary) 100%);
          background-size: 200% auto;
          -webkit-background-clip: text;
          -webkit-text-fill-color: transparent;
          background-clip: text;
          animation: gradientShift 8s ease infinite;
        }
        
        .about-text strong {
          color: var(--color-text-primary);
          font-weight: 600;
        }
        .skills-list {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }
        .skill-item:nth-child(1) { animation: slideInRight 0.5s var(--transition) 0.1s backwards; }
        .skill-item:nth-child(2) { animation: slideInRight 0.5s var(--transition) 0.15s backwards; }
        .skill-item:nth-child(3) { animation: slideInRight 0.5s var(--transition) 0.2s backwards; }
        .skill-item:nth-child(4) { animation: slideInRight 0.5s var(--transition) 0.25s backwards; }
        .skill-item:nth-child(5) { animation: slideInRight 0.5s var(--transition) 0.3s backwards; }
        .skill-item:nth-child(6) { animation: slideInRight 0.5s var(--transition) 0.35s backwards; }
        .skill-item:nth-child(7) { animation: slideInRight 0.5s var(--transition) 0.4s backwards; }
        .skill-item:nth-child(8) { animation: slideInRight 0.5s var(--transition) 0.45s backwards; }
        .skill-item {
          background: var(--color-surface-strong);
          color: var(--color-text-primary);
          padding: 18px 70px 18px 20px;
          border-radius: var(--radius-lg);
          font-size: 0.94rem;
          font-weight: 600;
          transition: all 0.35s var(--spring), background-color 0.5s ease;
          display: flex;
          align-items: center;
          gap: 14px;
          box-shadow: var(--shadow-sharp), inset 0 1px 0 rgba(255, 255, 255, 0.08);
          position: relative;
          overflow: hidden;
          border: 0.5px solid var(--color-border);
          backdrop-filter: var(--backdrop);
        }
        .skill-item::after {
          content: attr(data-skill) "%";
          position: absolute;
          right: 16px;
          top: 50%;
          transform: translateY(-50%);
          padding: 3px 8px;
          border-radius: 12px;
          background: var(--color-accent-soft);
          color: var(--color-accent-strong);
          font-size: 0.75rem;
          font-weight: 600;
        }
        .skill-bar {
            position: absolute;
            left: 0;
            top: 0;
            height: 100%;
          background: linear-gradient(90deg, rgba(0, 122, 255, 0.2) 0%, rgba(90, 200, 250, 0.15) 100%);
          opacity: 1;
            z-index: 0;
            width: 0;
            transition: width 1.2s var(--spring);
        }
        .skill-bar::after {
          content: '';
          position: absolute;
          inset: 0;
          background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
          animation: shimmer 2s infinite;
        }
        @keyframes shimmer {
          0% { transform: translateX(-100%); }
          100% { transform: translateX(100%); }
        }
        .skill-item .skill-label {
            position: relative;
            z-index: 1;
          display: flex;
          align-items: center;
          gap: 12px;
        }
        .skill-item i {
          width: 36px;
          height: 36px;
          border-radius: 50%;
          background: var(--color-accent-soft);
          display: grid;
          place-items: center;
          font-size: 1.1em;
          color: var(--color-accent);
          box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
        }
        
        /* Language-specific text icons */
        #languages .skills-list .skill-item:nth-child(1) i::before {
          content: "EN" !important;
          font-size: 0.75em !important;
          font-weight: 700 !important;
          font-family: var(--font-sans) !important;
          font-style: normal !important;
        }
        
        #languages .skills-list .skill-item:nth-child(2) i::before {
          content: "ಕ" !important;
          font-size: 1em !important;
          font-weight: 700 !important;
          font-family: var(--font-sans) !important;
          font-style: normal !important;
        }
        
        #languages .skills-list .skill-item:nth-child(3) i::before {
          content: "हि" !important;
          font-size: 0.85em !important;
          font-weight: 700 !important;
          font-family: var(--font-sans) !important;
          font-style: normal !important;
        }
        
        #languages .skill-item i.fa-flag-usa::before,
        #languages .skill-item i.fa-flag::before {
          font-family: var(--font-sans) !important;
        }
        
        .skill-item:hover {
          background: rgba(0, 122, 255, 0.12);
          box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
          transform: translateY(-3px) scale(1.01);
          border-color: rgba(0, 122, 255, 0.3);
        }
        .project {
          margin-bottom: 16px;
          padding: 28px 32px;
          background: var(--color-surface-strong);
          border-radius: var(--radius-lg);
          box-shadow: var(--shadow-sharp), inset 0 1px 0 rgba(255, 255, 255, 0.08);
          transition: all 0.35s var(--spring), background-color 0.5s ease;
          border: 0.5px solid var(--color-border);
          position: relative;
          backdrop-filter: var(--backdrop);
          border-left: 3px solid transparent;
          opacity: 0;
          animation: slideInFromBottom 0.6s ease forwards;
        }
        
        .project:nth-child(2) { animation-delay: 0.1s; }
        .project:nth-child(3) { animation-delay: 0.2s; }
        .project:nth-child(4) { animation-delay: 0.3s; }
        .project:nth-child(5) { animation-delay: 0.4s; }
        .project:hover {
          box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
          transform: translateY(-3px) scale(1.005);
          border-color: rgba(0, 122, 255, 0.15);
          border-left-color: var(--color-accent-strong);
        }
        .project:last-child {
            border-bottom: none;
        }
        .project h3 {
          color: var(--color-text-primary);
          display: flex;
          align-items: center;
          gap: 14px;
          font-size: 1.2rem;
          margin-bottom: 14px;
          font-weight: 700;
          letter-spacing: -0.01em;
        }
        .project h3 i {
          font-size: 1.2rem;
          color: var(--color-accent);
          display: inline-flex;
          align-items: center;
          justify-content: center;
          width: 36px;
          height: 36px;
          border-radius: 50%;
          background: var(--color-accent-soft);
          box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
        }
        .project p {
          color: var(--color-text-secondary);
          font-size: 1rem;
          line-height: 1.7;
          margin: 0;
        }
        .project a,
        .project a:visited {
          color: var(--color-accent);
          text-decoration: none;
        }
        .project a:hover {
          color: var(--color-accent);
        }
        .certification-list {
          display: flex;
          flex-direction: column;
          gap: 18px;
          padding: 0;
          margin: 0;
        }
        .certification-list li {
          display: flex;
          flex-wrap: wrap;
          align-items: center;
          background: var(--color-surface-strong);
          border-radius: var(--radius-lg);
          box-shadow: var(--shadow-sharp), inset 0 1px 0 rgba(255, 255, 255, 0.08);
          padding: 20px 24px;
          font-size: 0.94rem;
          font-weight: 600;
          border: 0.5px solid var(--color-border);
          margin-bottom: 0;
          position: relative;
          gap: 14px;
          min-height: unset;
          transition: all 0.35s var(--spring), background-color 0.5s ease;
          backdrop-filter: var(--backdrop);
          opacity: 0;
          animation: slideInFromBottom 0.6s ease forwards;
        }
        
        .certification-list li:nth-child(1) { animation-delay: 0.1s; }
        .certification-list li:nth-child(2) { animation-delay: 0.2s; }
        .certification-list li:nth-child(3) { animation-delay: 0.3s; }
        .certification-list li:nth-child(4) { animation-delay: 0.4s; }
        .certification-list li:nth-child(5) { animation-delay: 0.5s; }
        .certification-list li:hover {
          box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 24px rgba(0, 122, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.12);
          transform: translateY(-3px) scale(1.005);
          border-color: rgba(0, 122, 255, 0.3);
        }
        .certification-list li > i {
          margin-right: 8px;
          font-size: 1.8rem;
          color: var(--color-accent);
          min-width: 48px;
          text-align: center;
          display: flex;
          align-items: center;
          justify-content: center;
          width: 48px;
          height: 48px;
          border-radius: 50%;
          background: var(--color-accent-soft);
          box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
        }
        .certification-list li a {
            margin-right: 16px;
            font-size: 0.97em;
          color: var(--color-text-primary) !important;
            font-weight: 600;
            letter-spacing: 0.01em;
            text-decoration: none;
            transition: color 0.3s;
        }
        .certification-list li a:hover {
          color: var(--color-accent) !important;
        }
        .cert-btns {
            display: flex;
            gap: 6px;
            margin-top: 8px;
            width: 100%;
            flex-basis: 100%;
        }
        .cert-btns button {
          background: rgba(18, 18, 32, 0.72);
          color: var(--color-text-primary);
          border: 1px solid rgba(255, 255, 255, 0.18);
          border-radius: 999px;
          padding: 6px 18px;
          font-size: 0.9rem;
          font-family: inherit;
          cursor: pointer;
          transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
          box-shadow: 0 10px 24px rgba(5, 12, 32, 0.45);
          outline: none;
          font-weight: 600;
          letter-spacing: 0.04em;
          min-width: 130px;
        }
        .cert-btns button:hover {
          transform: translateY(-2px);
          border-color: rgba(255, 255, 255, 0.28);
          box-shadow: 0 20px 40px rgba(13, 8, 28, 0.62);
        }
        .cert-btns button.view-cert-btn::before {
            content: "\f06e";
            font-family: 'Font Awesome 5 Free';
            font-weight: 900;
            margin-right: 7px;
            font-size: 1em;
            vertical-align: middle;
        }
        .cert-btns button.cred-btn::before {
            content: "\f5a2";
            font-family: 'Font Awesome 5 Free';
            font-weight: 900;
            margin-right: 7px;
            font-size: 1em;
            vertical-align: middle;
        }
        .code-bg {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            overflow: hidden;
            z-index: 0;
          background: transparent;
          opacity: 0.06;
          pointer-events: none;
        }
        .code-line {
            position: absolute;
            font-family: var(--font-mono);
          font-size: 12px;
          color: rgba(0, 122, 255, 0.12);
            white-space: nowrap;
        }
        
        [data-theme="light"] .code-bg {
          opacity: 0.03;
        }
        
        [data-theme="light"] .code-line {
          color: rgba(0, 122, 255, 0.08);
        }
        .education-item {
            display: flex;
            align-items: flex-start;
          background: var(--color-surface-strong);
          border-radius: var(--radius-lg);
          box-shadow: var(--shadow-sharp), inset 0 1px 0 rgba(255, 255, 255, 0.08);
          margin-bottom: 16px;
          padding: 20px 24px;
          border: 0.5px solid var(--color-border);
          transition: all 0.35s var(--spring), background-color 0.5s ease;
          position: relative;
          backdrop-filter: var(--backdrop);
          opacity: 0;
          animation: slideInFromBottom 0.6s ease forwards;
        }
        
        .education-item:nth-child(1) { animation-delay: 0.1s; }
        .education-item:nth-child(2) { animation-delay: 0.2s; }
        .education-item:nth-child(3) { animation-delay: 0.3s; }
        .education-item:last-child {
            margin-bottom: 0;
        }
        .education-item i {
          font-size: 1.75rem;
          color: var(--color-accent-strong);
          margin-right: 16px;
          min-width: 50px;
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
          width: 50px;
          height: 50px;
          border-radius: 50%;
          background: var(--color-accent-soft);
          box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
          position: relative;
          z-index: 1;
        }
        .education-item:hover {
          box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
          transform: translateY(-3px) scale(1.005);
          border-color: rgba(0, 122, 255, 0.3);
        }
        .education-content h3 {
          color: var(--color-text-primary);
          font-size: 1.15rem;
            font-weight: 600;
          margin-bottom: 8px;
            margin-top: 0;
        }
        .education-content p {
          color: var(--color-text-secondary);
          font-size: 0.9rem;
          margin: 0 0 6px 0;
          font-weight: 400;
        }
        .education-content {
          position: relative;
          z-index: 1;
        }
        footer {
          background: var(--color-surface);
          color: var(--color-text-secondary);
          text-align: center;
          padding: 28px 16px;
          width: 100%;
          z-index: 10;
          border-top: 0.5px solid var(--color-border);
          font-size: 0.94rem;
          backdrop-filter: var(--backdrop);
          box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
          margin-top: 56px;
          transition: all 0.5s ease;
        }
        footer a,
        footer a:visited {
          color: var(--color-accent) !important;
            text-decoration: none;
          transition: all 0.2s ease;
        }
        footer a:hover {
          color: var(--color-highlight) !important;
          text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
        }
        @media (max-width: 992px) {
          .container {
            padding: 28px 22px 38px;
          }
          body {
            font-size: clamp(15px, 2vw, 16px);
          }
          .profile-header {
            padding: 28px;
          }
          .profile-img {
            width: 148px;
            height: 148px;
          }
          .nav-options {
            grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
          }
          .nav-container {
            padding: 6px;
          }
          .section {
            padding: 32px 28px;
          }
        }
        @media (max-width: 768px) {
          .container {
            padding: 20px 0 28px;
            width: 100%;
            max-width: 100%;
          }
          body {
            font-size: clamp(14px, 2.4vw, 15.5px);
          }
          .profile-header {
            flex-direction: column;
            text-align: center;
            gap: 20px;
            padding: 24px 16px;
            margin: 0 12px 20px;
            width: calc(100% - 24px);
            box-sizing: border-box;
          }
          .profile-img {
            width: 100px;
            height: 100px;
          }
          .profile-info h1 {
            font-size: 2rem;
          }
          .profile-info p {
            letter-spacing: 0.03em;
          }
          .profile-meta {
            justify-content: center;
          }
          .profile-badges {
            justify-content: center;
          }
          .nav-options {
            position: relative;
            grid-template-columns: repeat(4, 1fr);
            padding: 0;
            gap: 6px;
          }
          .nav-container {
            position: relative;
            flex-direction: column;
            gap: 10px;
            padding: 12px;
            margin-bottom: 16px;
          }
          .theme-toggle {
            width: 40px;
            height: 40px;
            min-width: 40px;
            align-self: flex-end;
          }
          .nav-option {
            padding: 8px 6px;
            gap: 4px;
          }
          .nav-option i {
            font-size: 1.1rem;
          }
          .nav-option span {
            font-size: 0.7rem;
          }
          .nav-option {
            padding: 10px 12px;
            font-size: 0.8125rem;
          }
          .section {
            padding: 24px 16px;
            margin: 0 12px;
            width: calc(100% - 24px);
            box-sizing: border-box;
            scroll-margin-top: 100px;
          }
          .education-item {
            flex-direction: column;
            align-items: flex-start;
            gap: 16px;
          }
          .education-item i {
            margin-right: 0;
          }
          .certification-list li {
            flex-direction: column;
            align-items: flex-start;
            gap: 12px;
          }
          .cert-btns {
            width: 100%;
            flex-wrap: wrap;
            gap: 8px;
          }
          .cert-btns button {
            flex: 1 1 150px;
            text-align: center;
          }
          .project {
            padding: 20px 18px;
          }
          .project h3 {
            font-size: 1.1rem;
            gap: 10px;
          }
          .skill-item {
            padding: 14px 60px 14px 16px;
          }
        }
        @media (max-width: 540px) {
          .container {
            padding: 20px 0 28px;
            width: 100%;
          }
          .nav-container {
            flex-direction: column;
            align-items: stretch;
            padding: 10px;
            gap: 8px;
          }
          .nav-options {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 6px;
            padding: 0;
          }
          .nav-option {
            padding: 10px 4px;
          }
          .theme-toggle {
            align-self: center;
            width: 44px;
            height: 44px;
          }
          .nav-option {
            font-size: 0.88rem;
            padding: 11px 12px;
          }
          .section {
            padding: 24px 12px;
            margin: 0 8px;
            width: calc(100% - 16px);
            box-sizing: border-box;
            scroll-margin-top: 110px;
          }
          .skills-list {
            gap: 12px;
          }
          .skill-item {
            padding: 16px 58px 16px 18px;
            font-size: 0.95rem;
          }
          .skill-item::after {
            right: 14px;
          }
          .profile-meta {
            flex-direction: column;
            align-items: center;
            gap: 8px;
          }
          .profile-badges {
            gap: 10px;
            justify-content: center;
          }
          .contact-icons {
            gap: 12px;
            grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
          }
          .contact-icon-btn::after {
            display: none;
          }
          .resume-container {
            padding: 22px;
          }
          #resume-viewer {
            height: 420px;
          }
          .education-item {
            padding: 20px 18px;
          }
          .education-item i {
            width: 52px;
            height: 52px;
            font-size: 1.6rem;
          }
          .certification-list li {
            padding: 18px;
          }
          .certification-list li > i {
            width: 50px;
            height: 50px;
            font-size: 1.7rem;
          }
        }
        @media (max-width: 420px) {
          .container {
            padding: 16px 12px 24px;
          }
          body {
            font-size: clamp(13.5px, 3vw, 15px);
          }
          .profile-img {
            width: 90px;
            height: 90px;
          }
          .profile-header {
            padding: 20px 16px;
          }
          .nav-options {
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 4px;
          }
          .nav-option {
            font-size: 0.7rem;
            padding: 8px 4px;
            gap: 3px;
          }
          .nav-option i {
            font-size: 1rem;
          }
          .nav-option span {
            font-size: 0.65rem;
          }
          .nav-container {
            padding: 8px;
          }
          .theme-toggle {
            width: 40px;
            height: 40px;
          }
          .section {
            padding: 20px 14px;
            scroll-margin-top: 90px;
          }
          .project {
            padding: 16px 14px;
          }
          .project h3 {
            font-size: 1rem;
          }
          .skill-item {
            padding: 12px 52px 12px 14px;
          }
          .skill-item i {
            width: 32px;
            height: 32px;
            font-size: 1rem;
          }
          .status-pill {
            width: 100%;
            justify-content: center;
          }
          #resume-viewer {
            height: 340px;
          }
          #scrollTopBtn {
            width: 44px;
            height: 44px;
            right: 16px;
            bottom: 16px;
          }
        }

        @media (max-width: 360px) {
          .container {
            padding: 16px 10px 24px;
          }
          .nav-options {
            gap: 6px;
            padding: 12px 10px;
          }
          .nav-option {
            font-size: 0.8rem;
          }
          .section {
            scroll-margin-top: 92px;
          }
          .contact-icons {
            grid-template-columns: 1fr;
          }
          .contact-icon-btn {
            padding: 16px 14px;
          }
          .profile-badges li {
            width: 100%;
            justify-content: center;
          }
          .certification-list li {
            width: 100%;
          }
        }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
        /* Modern Progress Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-bg);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  transition: opacity 0.5s ease;
}

.loader-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  min-width: 320px;
  padding: 0 20px;
}

.logo-loader {
  font-size: 3.5rem;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: logoFloat 2s ease-in-out infinite;
  font-family: var(--font-sans);
  letter-spacing: 0.1em;
}

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

.progress-bar-container {
  width: 100%;
  height: 8px;
  background: var(--color-surface-strong);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
  position: relative;
}

.progress-bar-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.progress-bar {
  height: 100%;
  width: 0%;
  background: var(--gradient-primary);
  border-radius: 20px;
  transition: width 0.3s ease;
  position: relative;
  box-shadow: 0 0 20px rgba(0, 122, 255, 0.6);
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 30px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4));
  border-radius: 20px;
}

.loader-text {
  font-size: 1.1rem;
  color: var(--color-text-primary);
  font-weight: 600;
  letter-spacing: 0.05em;
}

[data-theme="light"] #preloader {
  background: var(--color-bg);
}
.cmd-preloader-box {
  height: 80px;
  margin: 0 auto 15px auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.progress-ring {
  transform: rotate(-90deg);
}
.progress-ring__circle {
  transition: stroke-dashoffset 0.2s linear;
}
.progress-percentage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--color-success);
  font-size: 1.1rem;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.1em;
}

/* Loading Text */
.loader-container p {
  color: var(--color-text-secondary);
  font-family: var(--font-mono);
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
}

#contact a,
#contact a:visited {
  color: var(--color-text-primary) !important;
  text-decoration: none;
}
#contact a:hover {
  color: var(--color-highlight) !important;
}



#scrollTopBtn {
  display: none;
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  background: var(--color-surface-strong);
  color: var(--color-accent);
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  width: 48px;
  height: 48px;
  font-size: 1.15em;
  box-shadow: var(--shadow-soft), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.35s var(--spring), background-color 0.5s ease;
  outline: none;
  align-items: center;
  justify-content: center;
  backdrop-filter: var(--backdrop);
}
#scrollTopBtn:hover {
  background: var(--color-accent);
  color: #ffffff;
  border-color: var(--color-accent);
  box-shadow: 0 8px 24px rgba(0, 122, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}
#scrollTopBtn:active {
  transform: scale(0.95) translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
  transition: transform 0.1s ease;
}

[data-theme="light"] #scrollTopBtn {
  background: var(--color-bg-secondary);
  color: var(--color-accent);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="light"] #scrollTopBtn:hover {
  background: var(--color-accent);
  color: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 122, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
@media (max-width: 700px) {
  #scrollTopBtn {
  right: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  font-size: 1.1em;
  }
}

/* Enhanced Contact Icons Styling */
#contact {
  overflow: hidden;
  width: 100%;
}

.contact-icons {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
}

.contact-icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  background: var(--color-surface-strong);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--color-text-primary);
  transition: all 0.35s var(--spring), background-color 0.5s ease;
  position: relative;
  box-shadow: var(--shadow-sharp), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  border: 0.5px solid var(--color-border);
  backdrop-filter: var(--backdrop);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.contact-icon-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gradient-secondary);
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
}



.contact-icon-btn i {
  font-size: 1.5rem;
  margin-bottom: 10px;
  transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  color: var(--color-accent);
  position: relative;
  z-index: 1;
}

.contact-icon-btn:hover i {
  transform: scale(1.12);
}

.contact-icon-btn span {
  font-size: 0.85rem;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.contact-icon-btn:hover {
  background: rgba(0, 122, 255, 0.16);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 24px rgba(0, 122, 255, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: translateY(-4px) scale(1.03);
  border-color: rgba(0, 122, 255, 0.4);
}

.contact-icon-btn:hover::before {
  opacity: 0.9;
}

.contact-icon-btn:active {
  transform: scale(0.96);
  transition: transform 0.1s ease;
}

/* Responsive grid adjustments */
@media (max-width: 1100px) {
  .contact-icons {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}

@media (max-width: 768px) {
  .contact-icons {
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  }
}

@media (max-width: 480px) {
  .contact-icons {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }
}
.cmd-preloader-box {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  padding: 32px 28px 24px 28px;
  width: min(320px, 90vw);
  font-family: var(--font-mono);
  color: var(--color-text-primary);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 0.5px solid var(--color-border-strong);
  backdrop-filter: var(--backdrop);
  transition: all 0.5s ease;
}

[data-theme="light"] .cmd-preloader-box {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.cmd-line {
  font-size: 1.05rem;
  margin-bottom: 16px;
  color: var(--color-accent-strong);
  letter-spacing: -0.01em;
  text-transform: none;
  font-weight: 600;
}
.cmd-progress-bar {
  font-size: 1rem;
  background: rgba(18, 18, 20, 0.85);
  color: var(--color-success);
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  width: 100%;
  max-width: 250px;
  letter-spacing: 0.02em;
  font-family: inherit;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 2px 12px rgba(0, 0, 0, 0.5);
  border: 0.5px solid var(--color-border);
  text-align: left;
  user-select: none;
}
@media (max-width: 500px) {
  .cmd-preloader-box {
    min-width: 0;
    padding: 18px 4vw 14px 4vw;
  }
  .cmd-progress-bar {
    font-size: 1em;
    min-width: 0;
    padding: 8px 6px;
  }
}

.view-credential-btn {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-cyan) 100%);
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 12px;
  margin-bottom: 8px;
  margin-right: 10px;
  box-shadow: 0 4px 16px rgba(0, 122, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.35s var(--spring), background-color 0.5s ease;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0.02em;
  border: none;
  color: #ffffff;
  backdrop-filter: var(--backdrop);
  -webkit-tap-highlight-color: transparent;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.view-credential-btn i {
  position: relative;
  z-index: 2;
}

.view-credential-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
  z-index: 0;
}

.view-credential-btn:hover::before {
  left: 100%;
}

.view-credential-btn:hover, .view-credential-btn:focus {
  background: linear-gradient(135deg, var(--color-cyan) 0%, var(--color-accent) 100%);
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 24px rgba(0, 122, 255, 0.5), 0 0 20px rgba(90, 200, 250, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.view-credential-btn:active {
  transform: scale(0.96);
  transition: transform 0.1s ease;
}

[data-theme="light"] .view-credential-btn {
  background: linear-gradient(135deg, #007aff 0%, #32ade6 100%);
  box-shadow: 0 4px 16px rgba(0, 122, 255, 0.25), 0 2px 8px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  color: #ffffff;
}

[data-theme="light"] .view-credential-btn:hover,
[data-theme="light"] .view-credential-btn:focus {
  background: linear-gradient(135deg, #32ade6 0%, #007aff 100%);
  box-shadow: 0 8px 24px rgba(0, 122, 255, 0.35), 0 4px 12px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transform: translateY(-3px) scale(1.05);
}

.view-credential-btn span,
.view-credential-btn i {
  position: relative;
  z-index: 2;
}.view-credential-btn i {
  margin-right: 6px;
  font-size: 1.05em;
  display: inline-block;
  vertical-align: middle;
}
@media (max-width: 700px) {
  .view-credential-btn {
    width: 100%;
    min-width: 0;
    margin-right: 0;
    justify-content: center;
    text-align: center;
    font-size: 1rem;
    padding: 12px 0;
  }
  .view-credential-btn i {
    margin-right: 8px;
    font-size: 1.2em;
  }
}